block_store

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_koinos_block_store_block_store_proto protoreflect.FileDescriptor
View Source
var File_koinos_rpc_block_store_block_store_rpc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddBlockRequest

type AddBlockRequest struct {
	BlockToAdd   *protocol.Block        `protobuf:"bytes,1,opt,name=block_to_add,json=blockToAdd,proto3" json:"block_to_add,omitempty"`
	ReceiptToAdd *protocol.BlockReceipt `protobuf:"bytes,2,opt,name=receipt_to_add,json=receiptToAdd,proto3" json:"receipt_to_add,omitempty"`
	// contains filtered or unexported fields
}

func (*AddBlockRequest) Descriptor deprecated

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

Deprecated: Use AddBlockRequest.ProtoReflect.Descriptor instead.

func (*AddBlockRequest) GetBlockToAdd

func (x *AddBlockRequest) GetBlockToAdd() *protocol.Block

func (*AddBlockRequest) GetReceiptToAdd

func (x *AddBlockRequest) GetReceiptToAdd() *protocol.BlockReceipt

func (*AddBlockRequest) ProtoMessage

func (*AddBlockRequest) ProtoMessage()

func (*AddBlockRequest) ProtoReflect

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

func (*AddBlockRequest) Reset

func (x *AddBlockRequest) Reset()

func (*AddBlockRequest) String

func (x *AddBlockRequest) String() string

type AddBlockResponse

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

func (*AddBlockResponse) Descriptor deprecated

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

Deprecated: Use AddBlockResponse.ProtoReflect.Descriptor instead.

func (*AddBlockResponse) ProtoMessage

func (*AddBlockResponse) ProtoMessage()

func (*AddBlockResponse) ProtoReflect

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

func (*AddBlockResponse) Reset

func (x *AddBlockResponse) Reset()

func (*AddBlockResponse) String

func (x *AddBlockResponse) String() string

type BlockItem

type BlockItem struct {
	BlockId     []byte                 `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	BlockHeight uint64                 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Block       *protocol.Block        `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`     //optional
	Receipt     *protocol.BlockReceipt `protobuf:"bytes,4,opt,name=receipt,proto3" json:"receipt,omitempty"` //optional
	// contains filtered or unexported fields
}

func (*BlockItem) Descriptor deprecated

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

Deprecated: Use BlockItem.ProtoReflect.Descriptor instead.

func (*BlockItem) GetBlock

func (x *BlockItem) GetBlock() *protocol.Block

func (*BlockItem) GetBlockHeight

func (x *BlockItem) GetBlockHeight() uint64

func (*BlockItem) GetBlockId

func (x *BlockItem) GetBlockId() []byte

func (*BlockItem) GetReceipt

func (x *BlockItem) GetReceipt() *protocol.BlockReceipt

func (*BlockItem) ProtoMessage

func (*BlockItem) ProtoMessage()

func (*BlockItem) ProtoReflect

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

func (*BlockItem) Reset

func (x *BlockItem) Reset()

func (*BlockItem) String

func (x *BlockItem) String() string

type BlockRecord

type BlockRecord struct {
	BlockId          []byte                 `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	BlockHeight      uint64                 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Block            *protocol.Block        `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`
	Receipt          *protocol.BlockReceipt `protobuf:"bytes,4,opt,name=receipt,proto3" json:"receipt,omitempty"` //optional
	PreviousBlockIds [][]byte               `protobuf:"bytes,5,rep,name=previous_block_ids,json=previousBlockIds,proto3" json:"previous_block_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockRecord) Descriptor deprecated

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

Deprecated: Use BlockRecord.ProtoReflect.Descriptor instead.

func (*BlockRecord) GetBlock

func (x *BlockRecord) GetBlock() *protocol.Block

func (*BlockRecord) GetBlockHeight

func (x *BlockRecord) GetBlockHeight() uint64

func (*BlockRecord) GetBlockId

func (x *BlockRecord) GetBlockId() []byte

func (*BlockRecord) GetPreviousBlockIds

func (x *BlockRecord) GetPreviousBlockIds() [][]byte

func (*BlockRecord) GetReceipt

func (x *BlockRecord) GetReceipt() *protocol.BlockReceipt

func (*BlockRecord) ProtoMessage

func (*BlockRecord) ProtoMessage()

func (*BlockRecord) ProtoReflect

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

func (*BlockRecord) Reset

func (x *BlockRecord) Reset()

func (*BlockRecord) String

func (x *BlockRecord) String() string

type BlockStoreRequest

type BlockStoreRequest struct {

	// Types that are assignable to Request:
	//	*BlockStoreRequest_Reserved
	//	*BlockStoreRequest_GetBlocksById
	//	*BlockStoreRequest_GetBlocksByHeight
	//	*BlockStoreRequest_AddBlock
	//	*BlockStoreRequest_GetHighestBlock
	Request isBlockStoreRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*BlockStoreRequest) Descriptor deprecated

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

Deprecated: Use BlockStoreRequest.ProtoReflect.Descriptor instead.

func (*BlockStoreRequest) GetAddBlock

func (x *BlockStoreRequest) GetAddBlock() *AddBlockRequest

func (*BlockStoreRequest) GetGetBlocksByHeight

func (x *BlockStoreRequest) GetGetBlocksByHeight() *GetBlocksByHeightRequest

func (*BlockStoreRequest) GetGetBlocksById

func (x *BlockStoreRequest) GetGetBlocksById() *GetBlocksByIdRequest

func (*BlockStoreRequest) GetGetHighestBlock

func (x *BlockStoreRequest) GetGetHighestBlock() *GetHighestBlockRequest

func (*BlockStoreRequest) GetRequest

func (m *BlockStoreRequest) GetRequest() isBlockStoreRequest_Request

func (*BlockStoreRequest) GetReserved

func (x *BlockStoreRequest) GetReserved() *rpc.ReservedRpc

func (*BlockStoreRequest) ProtoMessage

func (*BlockStoreRequest) ProtoMessage()

func (*BlockStoreRequest) ProtoReflect

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

func (*BlockStoreRequest) Reset

func (x *BlockStoreRequest) Reset()

func (*BlockStoreRequest) String

func (x *BlockStoreRequest) String() string

type BlockStoreRequest_AddBlock

type BlockStoreRequest_AddBlock struct {
	AddBlock *AddBlockRequest `protobuf:"bytes,4,opt,name=add_block,json=addBlock,proto3,oneof"`
}

type BlockStoreRequest_GetBlocksByHeight

type BlockStoreRequest_GetBlocksByHeight struct {
	GetBlocksByHeight *GetBlocksByHeightRequest `protobuf:"bytes,3,opt,name=get_blocks_by_height,json=getBlocksByHeight,proto3,oneof"`
}

type BlockStoreRequest_GetBlocksById

type BlockStoreRequest_GetBlocksById struct {
	GetBlocksById *GetBlocksByIdRequest `protobuf:"bytes,2,opt,name=get_blocks_by_id,json=getBlocksById,proto3,oneof"`
}

type BlockStoreRequest_GetHighestBlock

type BlockStoreRequest_GetHighestBlock struct {
	GetHighestBlock *GetHighestBlockRequest `protobuf:"bytes,5,opt,name=get_highest_block,json=getHighestBlock,proto3,oneof"`
}

type BlockStoreRequest_Reserved

type BlockStoreRequest_Reserved struct {
	Reserved *rpc.ReservedRpc `protobuf:"bytes,1,opt,name=reserved,proto3,oneof"`
}

type BlockStoreResponse

type BlockStoreResponse struct {

	// Types that are assignable to Response:
	//	*BlockStoreResponse_Reserved
	//	*BlockStoreResponse_Error
	//	*BlockStoreResponse_GetBlocksById
	//	*BlockStoreResponse_GetBlocksByHeight
	//	*BlockStoreResponse_AddBlock
	//	*BlockStoreResponse_GetHighestBlock
	Response isBlockStoreResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*BlockStoreResponse) Descriptor deprecated

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

Deprecated: Use BlockStoreResponse.ProtoReflect.Descriptor instead.

func (*BlockStoreResponse) GetAddBlock

func (x *BlockStoreResponse) GetAddBlock() *AddBlockResponse

func (*BlockStoreResponse) GetError

func (x *BlockStoreResponse) GetError() *rpc.ErrorStatus

func (*BlockStoreResponse) GetGetBlocksByHeight

func (x *BlockStoreResponse) GetGetBlocksByHeight() *GetBlocksByHeightResponse

func (*BlockStoreResponse) GetGetBlocksById

func (x *BlockStoreResponse) GetGetBlocksById() *GetBlocksByIdResponse

func (*BlockStoreResponse) GetGetHighestBlock

func (x *BlockStoreResponse) GetGetHighestBlock() *GetHighestBlockResponse

func (*BlockStoreResponse) GetReserved

func (x *BlockStoreResponse) GetReserved() *rpc.ReservedRpc

func (*BlockStoreResponse) GetResponse

func (m *BlockStoreResponse) GetResponse() isBlockStoreResponse_Response

func (*BlockStoreResponse) ProtoMessage

func (*BlockStoreResponse) ProtoMessage()

func (*BlockStoreResponse) ProtoReflect

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

func (*BlockStoreResponse) Reset

func (x *BlockStoreResponse) Reset()

func (*BlockStoreResponse) String

func (x *BlockStoreResponse) String() string

type BlockStoreResponse_AddBlock

type BlockStoreResponse_AddBlock struct {
	AddBlock *AddBlockResponse `protobuf:"bytes,5,opt,name=add_block,json=addBlock,proto3,oneof"`
}

type BlockStoreResponse_Error

type BlockStoreResponse_Error struct {
	Error *rpc.ErrorStatus `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type BlockStoreResponse_GetBlocksByHeight

type BlockStoreResponse_GetBlocksByHeight struct {
	GetBlocksByHeight *GetBlocksByHeightResponse `protobuf:"bytes,4,opt,name=get_blocks_by_height,json=getBlocksByHeight,proto3,oneof"`
}

type BlockStoreResponse_GetBlocksById

type BlockStoreResponse_GetBlocksById struct {
	GetBlocksById *GetBlocksByIdResponse `protobuf:"bytes,3,opt,name=get_blocks_by_id,json=getBlocksById,proto3,oneof"`
}

type BlockStoreResponse_GetHighestBlock

type BlockStoreResponse_GetHighestBlock struct {
	GetHighestBlock *GetHighestBlockResponse `protobuf:"bytes,6,opt,name=get_highest_block,json=getHighestBlock,proto3,oneof"`
}

type BlockStoreResponse_Reserved

type BlockStoreResponse_Reserved struct {
	Reserved *rpc.ReservedRpc `protobuf:"bytes,1,opt,name=reserved,proto3,oneof"`
}

type GetBlocksByHeightRequest

type GetBlocksByHeightRequest struct {
	HeadBlockId         []byte `protobuf:"bytes,1,opt,name=head_block_id,json=headBlockId,proto3" json:"head_block_id,omitempty"`
	AncestorStartHeight uint64 `protobuf:"varint,2,opt,name=ancestor_start_height,json=ancestorStartHeight,proto3" json:"ancestor_start_height,omitempty"`
	NumBlocks           uint32 `protobuf:"varint,3,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	ReturnBlock         bool   `protobuf:"varint,4,opt,name=return_block,json=returnBlock,proto3" json:"return_block,omitempty"`
	ReturnReceipt       bool   `protobuf:"varint,5,opt,name=return_receipt,json=returnReceipt,proto3" json:"return_receipt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByHeightRequest) Descriptor deprecated

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

Deprecated: Use GetBlocksByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetBlocksByHeightRequest) GetAncestorStartHeight

func (x *GetBlocksByHeightRequest) GetAncestorStartHeight() uint64

func (*GetBlocksByHeightRequest) GetHeadBlockId

func (x *GetBlocksByHeightRequest) GetHeadBlockId() []byte

func (*GetBlocksByHeightRequest) GetNumBlocks

func (x *GetBlocksByHeightRequest) GetNumBlocks() uint32

func (*GetBlocksByHeightRequest) GetReturnBlock

func (x *GetBlocksByHeightRequest) GetReturnBlock() bool

func (*GetBlocksByHeightRequest) GetReturnReceipt

func (x *GetBlocksByHeightRequest) GetReturnReceipt() bool

func (*GetBlocksByHeightRequest) ProtoMessage

func (*GetBlocksByHeightRequest) ProtoMessage()

func (*GetBlocksByHeightRequest) ProtoReflect

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

func (*GetBlocksByHeightRequest) Reset

func (x *GetBlocksByHeightRequest) Reset()

func (*GetBlocksByHeightRequest) String

func (x *GetBlocksByHeightRequest) String() string

type GetBlocksByHeightResponse

type GetBlocksByHeightResponse struct {
	BlockItems []*BlockItem `protobuf:"bytes,1,rep,name=block_items,json=blockItems,proto3" json:"block_items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByHeightResponse) Descriptor deprecated

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

Deprecated: Use GetBlocksByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetBlocksByHeightResponse) GetBlockItems

func (x *GetBlocksByHeightResponse) GetBlockItems() []*BlockItem

func (*GetBlocksByHeightResponse) ProtoMessage

func (*GetBlocksByHeightResponse) ProtoMessage()

func (*GetBlocksByHeightResponse) ProtoReflect

func (*GetBlocksByHeightResponse) Reset

func (x *GetBlocksByHeightResponse) Reset()

func (*GetBlocksByHeightResponse) String

func (x *GetBlocksByHeightResponse) String() string

type GetBlocksByIdRequest

type GetBlocksByIdRequest struct {
	BlockIds      [][]byte `protobuf:"bytes,1,rep,name=block_ids,json=blockIds,proto3" json:"block_ids,omitempty"`
	ReturnBlock   bool     `protobuf:"varint,2,opt,name=return_block,json=returnBlock,proto3" json:"return_block,omitempty"`
	ReturnReceipt bool     `protobuf:"varint,3,opt,name=return_receipt,json=returnReceipt,proto3" json:"return_receipt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByIdRequest) Descriptor deprecated

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

Deprecated: Use GetBlocksByIdRequest.ProtoReflect.Descriptor instead.

func (*GetBlocksByIdRequest) GetBlockIds

func (x *GetBlocksByIdRequest) GetBlockIds() [][]byte

func (*GetBlocksByIdRequest) GetReturnBlock

func (x *GetBlocksByIdRequest) GetReturnBlock() bool

func (*GetBlocksByIdRequest) GetReturnReceipt

func (x *GetBlocksByIdRequest) GetReturnReceipt() bool

func (*GetBlocksByIdRequest) ProtoMessage

func (*GetBlocksByIdRequest) ProtoMessage()

func (*GetBlocksByIdRequest) ProtoReflect

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

func (*GetBlocksByIdRequest) Reset

func (x *GetBlocksByIdRequest) Reset()

func (*GetBlocksByIdRequest) String

func (x *GetBlocksByIdRequest) String() string

type GetBlocksByIdResponse

type GetBlocksByIdResponse struct {
	BlockItems []*BlockItem `protobuf:"bytes,1,rep,name=block_items,json=blockItems,proto3" json:"block_items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByIdResponse) Descriptor deprecated

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

Deprecated: Use GetBlocksByIdResponse.ProtoReflect.Descriptor instead.

func (*GetBlocksByIdResponse) GetBlockItems

func (x *GetBlocksByIdResponse) GetBlockItems() []*BlockItem

func (*GetBlocksByIdResponse) ProtoMessage

func (*GetBlocksByIdResponse) ProtoMessage()

func (*GetBlocksByIdResponse) ProtoReflect

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

func (*GetBlocksByIdResponse) Reset

func (x *GetBlocksByIdResponse) Reset()

func (*GetBlocksByIdResponse) String

func (x *GetBlocksByIdResponse) String() string

type GetHighestBlockRequest

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

func (*GetHighestBlockRequest) Descriptor deprecated

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

Deprecated: Use GetHighestBlockRequest.ProtoReflect.Descriptor instead.

func (*GetHighestBlockRequest) ProtoMessage

func (*GetHighestBlockRequest) ProtoMessage()

func (*GetHighestBlockRequest) ProtoReflect

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

func (*GetHighestBlockRequest) Reset

func (x *GetHighestBlockRequest) Reset()

func (*GetHighestBlockRequest) String

func (x *GetHighestBlockRequest) String() string

type GetHighestBlockResponse

type GetHighestBlockResponse struct {
	Topology *koinos.BlockTopology `protobuf:"bytes,1,opt,name=topology,proto3" json:"topology,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHighestBlockResponse) Descriptor deprecated

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

Deprecated: Use GetHighestBlockResponse.ProtoReflect.Descriptor instead.

func (*GetHighestBlockResponse) GetTopology

func (x *GetHighestBlockResponse) GetTopology() *koinos.BlockTopology

func (*GetHighestBlockResponse) ProtoMessage

func (*GetHighestBlockResponse) ProtoMessage()

func (*GetHighestBlockResponse) ProtoReflect

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

func (*GetHighestBlockResponse) Reset

func (x *GetHighestBlockResponse) Reset()

func (*GetHighestBlockResponse) String

func (x *GetHighestBlockResponse) String() string

Jump to

Keyboard shortcuts

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