wire

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorResponse_name = map[int32]string{
		0: "None",
		1: "NotFound",
		2: "BadRequest",
		3: "NotCurrent",
	}
	ErrorResponse_value = map[string]int32{
		"None":       0,
		"NotFound":   1,
		"BadRequest": 2,
		"NotCurrent": 3,
	}
)

Enum value maps for ErrorResponse.

View Source
var File_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse int32
const (
	ErrorResponse_None       ErrorResponse = 0
	ErrorResponse_NotFound   ErrorResponse = 1
	ErrorResponse_BadRequest ErrorResponse = 2
	ErrorResponse_NotCurrent ErrorResponse = 3
)

func (ErrorResponse) Descriptor

func (ErrorResponse) Enum

func (x ErrorResponse) Enum() *ErrorResponse

func (ErrorResponse) EnumDescriptor deprecated

func (ErrorResponse) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorResponse.Descriptor instead.

func (ErrorResponse) Number

func (ErrorResponse) String

func (x ErrorResponse) String() string

func (ErrorResponse) Type

type GetBestReq

type GetBestReq struct {
	// contains filtered or unexported fields
}

func (*GetBestReq) Descriptor deprecated

func (*GetBestReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBestReq.ProtoReflect.Descriptor instead.

func (*GetBestReq) ProtoMessage

func (*GetBestReq) ProtoMessage()

func (*GetBestReq) ProtoReflect

func (x *GetBestReq) ProtoReflect() protoreflect.Message

func (*GetBestReq) Reset

func (x *GetBestReq) Reset()

func (*GetBestReq) String

func (x *GetBestReq) String() string

type GetBlockIDReq

type GetBlockIDReq struct {
	Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockIDReq) Descriptor deprecated

func (*GetBlockIDReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockIDReq.ProtoReflect.Descriptor instead.

func (*GetBlockIDReq) GetHeight

func (x *GetBlockIDReq) GetHeight() uint32

func (*GetBlockIDReq) ProtoMessage

func (*GetBlockIDReq) ProtoMessage()

func (*GetBlockIDReq) ProtoReflect

func (x *GetBlockIDReq) ProtoReflect() protoreflect.Message

func (*GetBlockIDReq) Reset

func (x *GetBlockIDReq) Reset()

func (*GetBlockIDReq) String

func (x *GetBlockIDReq) String() string

type GetBlockReq

type GetBlockReq struct {
	Block_ID []byte `protobuf:"bytes,1,opt,name=block_ID,json=blockID,proto3" json:"block_ID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockReq) Descriptor deprecated

func (*GetBlockReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockReq.ProtoReflect.Descriptor instead.

func (*GetBlockReq) GetBlock_ID

func (x *GetBlockReq) GetBlock_ID() []byte

func (*GetBlockReq) ProtoMessage

func (*GetBlockReq) ProtoMessage()

func (*GetBlockReq) ProtoReflect

func (x *GetBlockReq) ProtoReflect() protoreflect.Message

func (*GetBlockReq) Reset

func (x *GetBlockReq) Reset()

func (*GetBlockReq) String

func (x *GetBlockReq) String() string

type GetBlockTxidsReq

type GetBlockTxidsReq struct {
	Block_ID []byte `protobuf:"bytes,1,opt,name=block_ID,json=blockID,proto3" json:"block_ID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockTxidsReq) Descriptor deprecated

func (*GetBlockTxidsReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockTxidsReq.ProtoReflect.Descriptor instead.

func (*GetBlockTxidsReq) GetBlock_ID

func (x *GetBlockTxidsReq) GetBlock_ID() []byte

func (*GetBlockTxidsReq) ProtoMessage

func (*GetBlockTxidsReq) ProtoMessage()

func (*GetBlockTxidsReq) ProtoReflect

func (x *GetBlockTxidsReq) ProtoReflect() protoreflect.Message

func (*GetBlockTxidsReq) Reset

func (x *GetBlockTxidsReq) Reset()

func (*GetBlockTxidsReq) String

func (x *GetBlockTxidsReq) String() string

type GetBlockTxsReq

type GetBlockTxsReq struct {
	Block_ID  []byte   `protobuf:"bytes,1,opt,name=block_ID,json=blockID,proto3" json:"block_ID,omitempty"`
	TxIndexes []uint32 `protobuf:"varint,2,rep,packed,name=tx_indexes,json=txIndexes,proto3" json:"tx_indexes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockTxsReq) Descriptor deprecated

func (*GetBlockTxsReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockTxsReq.ProtoReflect.Descriptor instead.

func (*GetBlockTxsReq) GetBlock_ID

func (x *GetBlockTxsReq) GetBlock_ID() []byte

func (*GetBlockTxsReq) GetTxIndexes

func (x *GetBlockTxsReq) GetTxIndexes() []uint32

func (*GetBlockTxsReq) ProtoMessage

func (*GetBlockTxsReq) ProtoMessage()

func (*GetBlockTxsReq) ProtoReflect

func (x *GetBlockTxsReq) ProtoReflect() protoreflect.Message

func (*GetBlockTxsReq) Reset

func (x *GetBlockTxsReq) Reset()

func (*GetBlockTxsReq) String

func (x *GetBlockTxsReq) String() string

type GetBlockTxsStreamReq

type GetBlockTxsStreamReq struct {
	StartHeight uint32 `protobuf:"varint,1,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockTxsStreamReq) Descriptor deprecated

func (*GetBlockTxsStreamReq) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockTxsStreamReq.ProtoReflect.Descriptor instead.

func (*GetBlockTxsStreamReq) GetStartHeight

func (x *GetBlockTxsStreamReq) GetStartHeight() uint32

func (*GetBlockTxsStreamReq) ProtoMessage

func (*GetBlockTxsStreamReq) ProtoMessage()

func (*GetBlockTxsStreamReq) ProtoReflect

func (x *GetBlockTxsStreamReq) ProtoReflect() protoreflect.Message

func (*GetBlockTxsStreamReq) Reset

func (x *GetBlockTxsStreamReq) Reset()

func (*GetBlockTxsStreamReq) String

func (x *GetBlockTxsStreamReq) String() string

type GetHeadersStreamReq

type GetHeadersStreamReq struct {
	StartHeight uint32 `protobuf:"varint,1,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHeadersStreamReq) Descriptor deprecated

func (*GetHeadersStreamReq) Descriptor() ([]byte, []int)

Deprecated: Use GetHeadersStreamReq.ProtoReflect.Descriptor instead.

func (*GetHeadersStreamReq) GetStartHeight

func (x *GetHeadersStreamReq) GetStartHeight() uint32

func (*GetHeadersStreamReq) ProtoMessage

func (*GetHeadersStreamReq) ProtoMessage()

func (*GetHeadersStreamReq) ProtoReflect

func (x *GetHeadersStreamReq) ProtoReflect() protoreflect.Message

func (*GetHeadersStreamReq) Reset

func (x *GetHeadersStreamReq) Reset()

func (*GetHeadersStreamReq) String

func (x *GetHeadersStreamReq) String() string

type MsgAvaRequest

type MsgAvaRequest struct {
	Request_ID uint32   `protobuf:"varint,1,opt,name=request_ID,json=requestID,proto3" json:"request_ID,omitempty"`
	Invs       [][]byte `protobuf:"bytes,2,rep,name=invs,proto3" json:"invs,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgAvaRequest) Descriptor deprecated

func (*MsgAvaRequest) Descriptor() ([]byte, []int)

Deprecated: Use MsgAvaRequest.ProtoReflect.Descriptor instead.

func (*MsgAvaRequest) GetInvs

func (x *MsgAvaRequest) GetInvs() [][]byte

func (*MsgAvaRequest) GetRequest_ID

func (x *MsgAvaRequest) GetRequest_ID() uint32

func (*MsgAvaRequest) ProtoMessage

func (*MsgAvaRequest) ProtoMessage()

func (*MsgAvaRequest) ProtoReflect

func (x *MsgAvaRequest) ProtoReflect() protoreflect.Message

func (*MsgAvaRequest) Reset

func (x *MsgAvaRequest) Reset()

func (*MsgAvaRequest) String

func (x *MsgAvaRequest) String() string

type MsgAvaResponse

type MsgAvaResponse struct {
	Request_ID uint32 `protobuf:"varint,1,opt,name=request_ID,json=requestID,proto3" json:"request_ID,omitempty"`
	Votes      []byte `protobuf:"bytes,2,opt,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgAvaResponse) Descriptor deprecated

func (*MsgAvaResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgAvaResponse.ProtoReflect.Descriptor instead.

func (*MsgAvaResponse) GetRequest_ID

func (x *MsgAvaResponse) GetRequest_ID() uint32

func (*MsgAvaResponse) GetVotes

func (x *MsgAvaResponse) GetVotes() []byte

func (*MsgAvaResponse) ProtoMessage

func (*MsgAvaResponse) ProtoMessage()

func (*MsgAvaResponse) ProtoReflect

func (x *MsgAvaResponse) ProtoReflect() protoreflect.Message

func (*MsgAvaResponse) Reset

func (x *MsgAvaResponse) Reset()

func (*MsgAvaResponse) String

func (x *MsgAvaResponse) String() string

type MsgBlockResp

type MsgBlockResp struct {
	Block *blocks.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Error ErrorResponse `protobuf:"varint,2,opt,name=error,proto3,enum=ErrorResponse" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgBlockResp) Descriptor deprecated

func (*MsgBlockResp) Descriptor() ([]byte, []int)

Deprecated: Use MsgBlockResp.ProtoReflect.Descriptor instead.

func (*MsgBlockResp) GetBlock

func (x *MsgBlockResp) GetBlock() *blocks.Block

func (*MsgBlockResp) GetError

func (x *MsgBlockResp) GetError() ErrorResponse

func (*MsgBlockResp) ProtoMessage

func (*MsgBlockResp) ProtoMessage()

func (*MsgBlockResp) ProtoReflect

func (x *MsgBlockResp) ProtoReflect() protoreflect.Message

func (*MsgBlockResp) Reset

func (x *MsgBlockResp) Reset()

func (*MsgBlockResp) String

func (x *MsgBlockResp) String() string

type MsgBlockTxidsResp

type MsgBlockTxidsResp struct {
	Txids [][]byte      `protobuf:"bytes,1,rep,name=txids,proto3" json:"txids,omitempty"`
	Error ErrorResponse `protobuf:"varint,2,opt,name=error,proto3,enum=ErrorResponse" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgBlockTxidsResp) Descriptor deprecated

func (*MsgBlockTxidsResp) Descriptor() ([]byte, []int)

Deprecated: Use MsgBlockTxidsResp.ProtoReflect.Descriptor instead.

func (*MsgBlockTxidsResp) GetError

func (x *MsgBlockTxidsResp) GetError() ErrorResponse

func (*MsgBlockTxidsResp) GetTxids

func (x *MsgBlockTxidsResp) GetTxids() [][]byte

func (*MsgBlockTxidsResp) ProtoMessage

func (*MsgBlockTxidsResp) ProtoMessage()

func (*MsgBlockTxidsResp) ProtoReflect

func (x *MsgBlockTxidsResp) ProtoReflect() protoreflect.Message

func (*MsgBlockTxidsResp) Reset

func (x *MsgBlockTxidsResp) Reset()

func (*MsgBlockTxidsResp) String

func (x *MsgBlockTxidsResp) String() string

type MsgBlockTxsResp

type MsgBlockTxsResp struct {
	Transactions []*transactions.Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	Error        ErrorResponse               `protobuf:"varint,2,opt,name=error,proto3,enum=ErrorResponse" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgBlockTxsResp) Descriptor deprecated

func (*MsgBlockTxsResp) Descriptor() ([]byte, []int)

Deprecated: Use MsgBlockTxsResp.ProtoReflect.Descriptor instead.

func (*MsgBlockTxsResp) GetError

func (x *MsgBlockTxsResp) GetError() ErrorResponse

func (*MsgBlockTxsResp) GetTransactions

func (x *MsgBlockTxsResp) GetTransactions() []*transactions.Transaction

func (*MsgBlockTxsResp) ProtoMessage

func (*MsgBlockTxsResp) ProtoMessage()

func (*MsgBlockTxsResp) ProtoReflect

func (x *MsgBlockTxsResp) ProtoReflect() protoreflect.Message

func (*MsgBlockTxsResp) Reset

func (x *MsgBlockTxsResp) Reset()

func (*MsgBlockTxsResp) String

func (x *MsgBlockTxsResp) String() string

type MsgChainServiceRequest

type MsgChainServiceRequest struct {

	// Types that are assignable to Msg:
	//	*MsgChainServiceRequest_GetBlockTxs
	//	*MsgChainServiceRequest_GetBlockTxids
	//	*MsgChainServiceRequest_GetBlock
	//	*MsgChainServiceRequest_GetBlockId
	//	*MsgChainServiceRequest_GetHeadersStream
	//	*MsgChainServiceRequest_GetBlockTxsStream
	//	*MsgChainServiceRequest_GetBest
	Msg isMsgChainServiceRequest_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*MsgChainServiceRequest) Descriptor deprecated

func (*MsgChainServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use MsgChainServiceRequest.ProtoReflect.Descriptor instead.

func (*MsgChainServiceRequest) GetGetBest

func (x *MsgChainServiceRequest) GetGetBest() *GetBestReq

func (*MsgChainServiceRequest) GetGetBlock

func (x *MsgChainServiceRequest) GetGetBlock() *GetBlockReq

func (*MsgChainServiceRequest) GetGetBlockId

func (x *MsgChainServiceRequest) GetGetBlockId() *GetBlockIDReq

func (*MsgChainServiceRequest) GetGetBlockTxids

func (x *MsgChainServiceRequest) GetGetBlockTxids() *GetBlockTxidsReq

func (*MsgChainServiceRequest) GetGetBlockTxs

func (x *MsgChainServiceRequest) GetGetBlockTxs() *GetBlockTxsReq

func (*MsgChainServiceRequest) GetGetBlockTxsStream

func (x *MsgChainServiceRequest) GetGetBlockTxsStream() *GetBlockTxsStreamReq

func (*MsgChainServiceRequest) GetGetHeadersStream

func (x *MsgChainServiceRequest) GetGetHeadersStream() *GetHeadersStreamReq

func (*MsgChainServiceRequest) GetMsg

func (m *MsgChainServiceRequest) GetMsg() isMsgChainServiceRequest_Msg

func (*MsgChainServiceRequest) ProtoMessage

func (*MsgChainServiceRequest) ProtoMessage()

func (*MsgChainServiceRequest) ProtoReflect

func (x *MsgChainServiceRequest) ProtoReflect() protoreflect.Message

func (*MsgChainServiceRequest) Reset

func (x *MsgChainServiceRequest) Reset()

func (*MsgChainServiceRequest) String

func (x *MsgChainServiceRequest) String() string

type MsgChainServiceRequest_GetBest

type MsgChainServiceRequest_GetBest struct {
	GetBest *GetBestReq `protobuf:"bytes,7,opt,name=get_best,json=getBest,proto3,oneof"`
}

type MsgChainServiceRequest_GetBlock

type MsgChainServiceRequest_GetBlock struct {
	GetBlock *GetBlockReq `protobuf:"bytes,3,opt,name=get_block,json=getBlock,proto3,oneof"`
}

type MsgChainServiceRequest_GetBlockId

type MsgChainServiceRequest_GetBlockId struct {
	GetBlockId *GetBlockIDReq `protobuf:"bytes,4,opt,name=get_block_id,json=getBlockId,proto3,oneof"`
}

type MsgChainServiceRequest_GetBlockTxids

type MsgChainServiceRequest_GetBlockTxids struct {
	GetBlockTxids *GetBlockTxidsReq `protobuf:"bytes,2,opt,name=get_block_txids,json=getBlockTxids,proto3,oneof"`
}

type MsgChainServiceRequest_GetBlockTxs

type MsgChainServiceRequest_GetBlockTxs struct {
	GetBlockTxs *GetBlockTxsReq `protobuf:"bytes,1,opt,name=get_block_txs,json=getBlockTxs,proto3,oneof"`
}

type MsgChainServiceRequest_GetBlockTxsStream

type MsgChainServiceRequest_GetBlockTxsStream struct {
	GetBlockTxsStream *GetBlockTxsStreamReq `protobuf:"bytes,6,opt,name=get_block_txs_stream,json=getBlockTxsStream,proto3,oneof"`
}

type MsgChainServiceRequest_GetHeadersStream

type MsgChainServiceRequest_GetHeadersStream struct {
	GetHeadersStream *GetHeadersStreamReq `protobuf:"bytes,5,opt,name=get_headers_stream,json=getHeadersStream,proto3,oneof"`
}

type MsgGetBestResp

type MsgGetBestResp struct {
	Block_ID []byte        `protobuf:"bytes,1,opt,name=block_ID,json=blockID,proto3" json:"block_ID,omitempty"`
	Height   uint32        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Error    ErrorResponse `protobuf:"varint,3,opt,name=error,proto3,enum=ErrorResponse" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgGetBestResp) Descriptor deprecated

func (*MsgGetBestResp) Descriptor() ([]byte, []int)

Deprecated: Use MsgGetBestResp.ProtoReflect.Descriptor instead.

func (*MsgGetBestResp) GetBlock_ID

func (x *MsgGetBestResp) GetBlock_ID() []byte

func (*MsgGetBestResp) GetError

func (x *MsgGetBestResp) GetError() ErrorResponse

func (*MsgGetBestResp) GetHeight

func (x *MsgGetBestResp) GetHeight() uint32

func (*MsgGetBestResp) ProtoMessage

func (*MsgGetBestResp) ProtoMessage()

func (*MsgGetBestResp) ProtoReflect

func (x *MsgGetBestResp) ProtoReflect() protoreflect.Message

func (*MsgGetBestResp) Reset

func (x *MsgGetBestResp) Reset()

func (*MsgGetBestResp) String

func (x *MsgGetBestResp) String() string

type MsgGetBlockIDResp

type MsgGetBlockIDResp struct {
	Block_ID []byte        `protobuf:"bytes,1,opt,name=block_ID,json=blockID,proto3" json:"block_ID,omitempty"`
	Error    ErrorResponse `protobuf:"varint,2,opt,name=error,proto3,enum=ErrorResponse" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgGetBlockIDResp) Descriptor deprecated

func (*MsgGetBlockIDResp) Descriptor() ([]byte, []int)

Deprecated: Use MsgGetBlockIDResp.ProtoReflect.Descriptor instead.

func (*MsgGetBlockIDResp) GetBlock_ID

func (x *MsgGetBlockIDResp) GetBlock_ID() []byte

func (*MsgGetBlockIDResp) GetError

func (x *MsgGetBlockIDResp) GetError() ErrorResponse

func (*MsgGetBlockIDResp) ProtoMessage

func (*MsgGetBlockIDResp) ProtoMessage()

func (*MsgGetBlockIDResp) ProtoReflect

func (x *MsgGetBlockIDResp) ProtoReflect() protoreflect.Message

func (*MsgGetBlockIDResp) Reset

func (x *MsgGetBlockIDResp) Reset()

func (*MsgGetBlockIDResp) String

func (x *MsgGetBlockIDResp) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL