chainstorage

package
v0.0.0-...-4d3ba72 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainStorage_GetLatestBlock_FullMethodName          = "/coinbase.chainstorage.ChainStorage/GetLatestBlock"
	ChainStorage_GetBlockFile_FullMethodName            = "/coinbase.chainstorage.ChainStorage/GetBlockFile"
	ChainStorage_GetBlockFilesByRange_FullMethodName    = "/coinbase.chainstorage.ChainStorage/GetBlockFilesByRange"
	ChainStorage_GetRawBlock_FullMethodName             = "/coinbase.chainstorage.ChainStorage/GetRawBlock"
	ChainStorage_GetRawBlocksByRange_FullMethodName     = "/coinbase.chainstorage.ChainStorage/GetRawBlocksByRange"
	ChainStorage_GetNativeBlock_FullMethodName          = "/coinbase.chainstorage.ChainStorage/GetNativeBlock"
	ChainStorage_GetNativeBlocksByRange_FullMethodName  = "/coinbase.chainstorage.ChainStorage/GetNativeBlocksByRange"
	ChainStorage_GetRosettaBlock_FullMethodName         = "/coinbase.chainstorage.ChainStorage/GetRosettaBlock"
	ChainStorage_GetRosettaBlocksByRange_FullMethodName = "/coinbase.chainstorage.ChainStorage/GetRosettaBlocksByRange"
	ChainStorage_StreamChainEvents_FullMethodName       = "/coinbase.chainstorage.ChainStorage/StreamChainEvents"
	ChainStorage_GetChainEvents_FullMethodName          = "/coinbase.chainstorage.ChainStorage/GetChainEvents"
	ChainStorage_GetChainMetadata_FullMethodName        = "/coinbase.chainstorage.ChainStorage/GetChainMetadata"
	ChainStorage_GetVersionedChainEvent_FullMethodName  = "/coinbase.chainstorage.ChainStorage/GetVersionedChainEvent"
	ChainStorage_GetBlockByTransaction_FullMethodName   = "/coinbase.chainstorage.ChainStorage/GetBlockByTransaction"
	ChainStorage_GetNativeTransaction_FullMethodName    = "/coinbase.chainstorage.ChainStorage/GetNativeTransaction"
	ChainStorage_GetVerifiedAccountState_FullMethodName = "/coinbase.chainstorage.ChainStorage/GetVerifiedAccountState"
)
View Source
const Delimiter = "_"

Variables

View Source
var (
	Compression_name = map[int32]string{
		0: "NONE",
		1: "GZIP",
	}
	Compression_value = map[string]int32{
		"NONE": 0,
		"GZIP": 1,
	}
)

Enum value maps for Compression.

View Source
var (
	InitialPosition_name = map[int32]string{
		0: "EARLIEST",
		1: "LATEST",
	}
	InitialPosition_value = map[string]int32{
		"EARLIEST": 0,
		"LATEST":   1,
	}
)

Enum value maps for InitialPosition.

View Source
var (
	BlockchainEvent_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "BLOCK_ADDED",
		2: "BLOCK_REMOVED",
	}
	BlockchainEvent_Type_value = map[string]int32{
		"UNKNOWN":       0,
		"BLOCK_ADDED":   1,
		"BLOCK_REMOVED": 2,
	}
)

Enum value maps for BlockchainEvent_Type.

View Source
var (
	SideChain_name = map[int32]string{
		0: "SIDECHAIN_NONE",
		1: "SIDECHAIN_ETHEREUM_MAINNET_BEACON",
		2: "SIDECHAIN_ETHEREUM_HOLESKY_BEACON",
	}
	SideChain_value = map[string]int32{
		"SIDECHAIN_NONE":                    0,
		"SIDECHAIN_ETHEREUM_MAINNET_BEACON": 1,
		"SIDECHAIN_ETHEREUM_HOLESKY_BEACON": 2,
	}
)

Enum value maps for SideChain.

View Source
var (
	AptosTransaction_TransactionType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "GENESIS",
		2: "BLOCK_METADATA",
		3: "STATE_CHECKPOINT",
		4: "USER",
	}
	AptosTransaction_TransactionType_value = map[string]int32{
		"UNSPECIFIED":      0,
		"GENESIS":          1,
		"BLOCK_METADATA":   2,
		"STATE_CHECKPOINT": 3,
		"USER":             4,
	}
)

Enum value maps for AptosTransaction_TransactionType.

View Source
var (
	AptosWriteSetChange_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "DELETE_MODULE",
		2: "DELETE_RESOURCE",
		3: "DELETE_TABLE_ITEM",
		4: "WRITE_MODULE",
		5: "WRITE_RESOURCE",
		6: "WRITE_TABLE_ITEM",
	}
	AptosWriteSetChange_Type_value = map[string]int32{
		"UNSPECIFIED":       0,
		"DELETE_MODULE":     1,
		"DELETE_RESOURCE":   2,
		"DELETE_TABLE_ITEM": 3,
		"WRITE_MODULE":      4,
		"WRITE_RESOURCE":    5,
		"WRITE_TABLE_ITEM":  6,
	}
)

Enum value maps for AptosWriteSetChange_Type.

View Source
var (
	AptosWriteSet_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "SCRIPT_WRITE_SET",
		2: "DIRECT_WRITE_SET",
	}
	AptosWriteSet_Type_value = map[string]int32{
		"UNSPECIFIED":      0,
		"SCRIPT_WRITE_SET": 1,
		"DIRECT_WRITE_SET": 2,
	}
)

Enum value maps for AptosWriteSet_Type.

View Source
var (
	AptosTransactionPayload_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "ENTRY_FUNCTION_PAYLOAD",
		2: "SCRIPT_PAYLOAD",
		3: "MODULE_BUNDLE_PAYLOAD",
		4: "WRITE_SET_PAYLOAD",
		5: "MULTISIG_PAYLOAD",
	}
	AptosTransactionPayload_Type_value = map[string]int32{
		"UNSPECIFIED":            0,
		"ENTRY_FUNCTION_PAYLOAD": 1,
		"SCRIPT_PAYLOAD":         2,
		"MODULE_BUNDLE_PAYLOAD":  3,
		"WRITE_SET_PAYLOAD":      4,
		"MULTISIG_PAYLOAD":       5,
	}
)

Enum value maps for AptosTransactionPayload_Type.

View Source
var (
	AptosMoveFunction_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "PRIVATE",
		2: "PUBLIC",
		3: "FRIEND",
	}
	AptosMoveFunction_Type_value = map[string]int32{
		"UNSPECIFIED": 0,
		"PRIVATE":     1,
		"PUBLIC":      2,
		"FRIEND":      3,
	}
)

Enum value maps for AptosMoveFunction_Type.

View Source
var (
	AptosMultisigTransactionPayload_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "ENTRY_FUNCTION_PAYLOAD",
	}
	AptosMultisigTransactionPayload_Type_value = map[string]int32{
		"UNSPECIFIED":            0,
		"ENTRY_FUNCTION_PAYLOAD": 1,
	}
)

Enum value maps for AptosMultisigTransactionPayload_Type.

View Source
var (
	AptosSignature_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "ED25519",
		2: "MULTI_ED25519",
		3: "MULTI_AGENT",
		4: "FEE_PAYER",
	}
	AptosSignature_Type_value = map[string]int32{
		"UNSPECIFIED":   0,
		"ED25519":       1,
		"MULTI_ED25519": 2,
		"MULTI_AGENT":   3,
		"FEE_PAYER":     4,
	}
)

Enum value maps for AptosSignature_Type.

View Source
var (
	AptosAccountSignature_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "ED25519",
		2: "MULTI_ED25519",
		3: "FEE_PAYER",
	}
	AptosAccountSignature_Type_value = map[string]int32{
		"UNSPECIFIED":   0,
		"ED25519":       1,
		"MULTI_ED25519": 2,
		"FEE_PAYER":     3,
	}
)

Enum value maps for AptosAccountSignature_Type.

View Source
var (
	SolanaProgram_name = map[int32]string{
		0:  "RAW",
		1:  "ADDRESS_LOOKUP_TABLE",
		2:  "BPF_Loader",
		3:  "BPF_UPGRADEABLE_Loader",
		4:  "VOTE",
		5:  "SYSTEM",
		6:  "STAKE",
		7:  "SPL_MEMO",
		8:  "SPL_TOKEN",
		9:  "SPL_TOKEN_2022",
		10: "SPL_ASSOCIATED_TOKEN_ACCOUNT",
		11: "UNPARSED",
	}
	SolanaProgram_value = map[string]int32{
		"RAW":                          0,
		"ADDRESS_LOOKUP_TABLE":         1,
		"BPF_Loader":                   2,
		"BPF_UPGRADEABLE_Loader":       3,
		"VOTE":                         4,
		"SYSTEM":                       5,
		"STAKE":                        6,
		"SPL_MEMO":                     7,
		"SPL_TOKEN":                    8,
		"SPL_TOKEN_2022":               9,
		"SPL_ASSOCIATED_TOKEN_ACCOUNT": 10,
		"UNPARSED":                     11,
	}
)

Enum value maps for SolanaProgram.

View Source
var (
	SolanaAddressLookupTableProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
	}
	SolanaAddressLookupTableProgram_InstructionType_value = map[string]int32{
		"UNKNOWN": 0,
	}
)

Enum value maps for SolanaAddressLookupTableProgram_InstructionType.

View Source
var (
	SolanaBpfLoaderProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
	}
	SolanaBpfLoaderProgram_InstructionType_value = map[string]int32{
		"UNKNOWN": 0,
	}
)

Enum value maps for SolanaBpfLoaderProgram_InstructionType.

View Source
var (
	SolanaBpfUpgradeableLoaderProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
	}
	SolanaBpfUpgradeableLoaderProgram_InstructionType_value = map[string]int32{
		"UNKNOWN": 0,
	}
)

Enum value maps for SolanaBpfUpgradeableLoaderProgram_InstructionType.

View Source
var (
	SolanaVoteProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "INITIALIZE",
		2: "VOTE",
		3: "WITHDRAW",
		4: "COMPACT_UPDATE_VOTE_STATE",
	}
	SolanaVoteProgram_InstructionType_value = map[string]int32{
		"UNKNOWN":                   0,
		"INITIALIZE":                1,
		"VOTE":                      2,
		"WITHDRAW":                  3,
		"COMPACT_UPDATE_VOTE_STATE": 4,
	}
)

Enum value maps for SolanaVoteProgram_InstructionType.

View Source
var (
	SolanaSystemProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "CREATE_ACCOUNT",
		2: "TRANSFER",
		3: "CREATE_ACCOUNT_WITH_SEED",
		4: "TRANSFER_WITH_SEED",
	}
	SolanaSystemProgram_InstructionType_value = map[string]int32{
		"UNKNOWN":                  0,
		"CREATE_ACCOUNT":           1,
		"TRANSFER":                 2,
		"CREATE_ACCOUNT_WITH_SEED": 3,
		"TRANSFER_WITH_SEED":       4,
	}
)

Enum value maps for SolanaSystemProgram_InstructionType.

View Source
var (
	SolanaStakeProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "INITIALIZE",
		2: "DELEGATE",
		3: "DEACTIVATE",
		4: "MERGE",
		5: "SPLIT",
		6: "WITHDRAW",
	}
	SolanaStakeProgram_InstructionType_value = map[string]int32{
		"UNKNOWN":    0,
		"INITIALIZE": 1,
		"DELEGATE":   2,
		"DEACTIVATE": 3,
		"MERGE":      4,
		"SPLIT":      5,
		"WITHDRAW":   6,
	}
)

Enum value maps for SolanaStakeProgram_InstructionType.

View Source
var (
	SolanaSplMemoProgram_InstructionType_name = map[int32]string{
		0: "SPL_MEMO",
	}
	SolanaSplMemoProgram_InstructionType_value = map[string]int32{
		"SPL_MEMO": 0,
	}
)

Enum value maps for SolanaSplMemoProgram_InstructionType.

View Source
var (
	SolanaSplTokenProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "GET_ACCOUNT_DATA_SIZE",
		2: "INITIALIZE_IMMUTABLE_OWNER",
		3: "TRANSFER",
	}
	SolanaSplTokenProgram_InstructionType_value = map[string]int32{
		"UNKNOWN":                    0,
		"GET_ACCOUNT_DATA_SIZE":      1,
		"INITIALIZE_IMMUTABLE_OWNER": 2,
		"TRANSFER":                   3,
	}
)

Enum value maps for SolanaSplTokenProgram_InstructionType.

View Source
var (
	SolanaSplToken2022Program_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
	}
	SolanaSplToken2022Program_InstructionType_value = map[string]int32{
		"UNKNOWN": 0,
	}
)

Enum value maps for SolanaSplToken2022Program_InstructionType.

View Source
var (
	SolanaSplAssociatedTokenAccountProgram_InstructionType_name = map[int32]string{
		0: "UNKNOWN",
	}
	SolanaSplAssociatedTokenAccountProgram_InstructionType_value = map[string]int32{
		"UNKNOWN": 0,
	}
)

Enum value maps for SolanaSplAssociatedTokenAccountProgram_InstructionType.

View Source
var ChainStorage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "coinbase.chainstorage.ChainStorage",
	HandlerType: (*ChainStorageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLatestBlock",
			Handler:    _ChainStorage_GetLatestBlock_Handler,
		},
		{
			MethodName: "GetBlockFile",
			Handler:    _ChainStorage_GetBlockFile_Handler,
		},
		{
			MethodName: "GetBlockFilesByRange",
			Handler:    _ChainStorage_GetBlockFilesByRange_Handler,
		},
		{
			MethodName: "GetRawBlock",
			Handler:    _ChainStorage_GetRawBlock_Handler,
		},
		{
			MethodName: "GetRawBlocksByRange",
			Handler:    _ChainStorage_GetRawBlocksByRange_Handler,
		},
		{
			MethodName: "GetNativeBlock",
			Handler:    _ChainStorage_GetNativeBlock_Handler,
		},
		{
			MethodName: "GetNativeBlocksByRange",
			Handler:    _ChainStorage_GetNativeBlocksByRange_Handler,
		},
		{
			MethodName: "GetRosettaBlock",
			Handler:    _ChainStorage_GetRosettaBlock_Handler,
		},
		{
			MethodName: "GetRosettaBlocksByRange",
			Handler:    _ChainStorage_GetRosettaBlocksByRange_Handler,
		},
		{
			MethodName: "GetChainEvents",
			Handler:    _ChainStorage_GetChainEvents_Handler,
		},
		{
			MethodName: "GetChainMetadata",
			Handler:    _ChainStorage_GetChainMetadata_Handler,
		},
		{
			MethodName: "GetVersionedChainEvent",
			Handler:    _ChainStorage_GetVersionedChainEvent_Handler,
		},
		{
			MethodName: "GetBlockByTransaction",
			Handler:    _ChainStorage_GetBlockByTransaction_Handler,
		},
		{
			MethodName: "GetNativeTransaction",
			Handler:    _ChainStorage_GetNativeTransaction_Handler,
		},
		{
			MethodName: "GetVerifiedAccountState",
			Handler:    _ChainStorage_GetVerifiedAccountState_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamChainEvents",
			Handler:       _ChainStorage_StreamChainEvents_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "coinbase/chainstorage/api.proto",
}

ChainStorage_ServiceDesc is the grpc.ServiceDesc for ChainStorage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_coinbase_chainstorage_api_proto protoreflect.FileDescriptor
View Source
var File_coinbase_chainstorage_blockchain_aptos_proto protoreflect.FileDescriptor
View Source
var File_coinbase_chainstorage_blockchain_bitcoin_proto protoreflect.FileDescriptor
View Source
var File_coinbase_chainstorage_blockchain_ethereum_proto protoreflect.FileDescriptor
View Source
var File_coinbase_chainstorage_blockchain_proto protoreflect.FileDescriptor
View Source
var File_coinbase_chainstorage_blockchain_rosetta_proto protoreflect.FileDescriptor
View Source
var File_coinbase_chainstorage_blockchain_solana_proto protoreflect.FileDescriptor

Functions

func EnumName

func EnumName(m map[int32]string, v int32) string

EnumName returns the string value of the enum based on the given int

func RegisterChainStorageServer

func RegisterChainStorageServer(s grpc.ServiceRegistrar, srv ChainStorageServer)

Types

type AccountKey

type AccountKey struct {
	Pubkey   string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Signer   bool   `protobuf:"varint,2,opt,name=signer,proto3" json:"signer,omitempty"`
	Source   string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	Writable bool   `protobuf:"varint,4,opt,name=writable,proto3" json:"writable,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountKey) Descriptor deprecated

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

Deprecated: Use AccountKey.ProtoReflect.Descriptor instead.

func (*AccountKey) GetPubkey

func (x *AccountKey) GetPubkey() string

func (*AccountKey) GetSigner

func (x *AccountKey) GetSigner() bool

func (*AccountKey) GetSource

func (x *AccountKey) GetSource() string

func (*AccountKey) GetWritable

func (x *AccountKey) GetWritable() bool

func (*AccountKey) ProtoMessage

func (*AccountKey) ProtoMessage()

func (*AccountKey) ProtoReflect

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

func (*AccountKey) Reset

func (x *AccountKey) Reset()

func (*AccountKey) String

func (x *AccountKey) String() string

type AddressTableLookup

type AddressTableLookup struct {
	AccountKey      string   `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
	ReadonlyIndexes []uint64 `protobuf:"varint,2,rep,packed,name=readonly_indexes,json=readonlyIndexes,proto3" json:"readonly_indexes,omitempty"`
	WritableIndexes []uint64 `protobuf:"varint,3,rep,packed,name=writable_indexes,json=writableIndexes,proto3" json:"writable_indexes,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressTableLookup) Descriptor deprecated

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

Deprecated: Use AddressTableLookup.ProtoReflect.Descriptor instead.

func (*AddressTableLookup) GetAccountKey

func (x *AddressTableLookup) GetAccountKey() string

func (*AddressTableLookup) GetReadonlyIndexes

func (x *AddressTableLookup) GetReadonlyIndexes() []uint64

func (*AddressTableLookup) GetWritableIndexes

func (x *AddressTableLookup) GetWritableIndexes() []uint64

func (*AddressTableLookup) ProtoMessage

func (*AddressTableLookup) ProtoMessage()

func (*AddressTableLookup) ProtoReflect

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

func (*AddressTableLookup) Reset

func (x *AddressTableLookup) Reset()

func (*AddressTableLookup) String

func (x *AddressTableLookup) String() string

type AptosAccountSignature

type AptosAccountSignature struct {
	Type AptosAccountSignature_Type `protobuf:"varint,1,opt,name=type,proto3,enum=coinbase.chainstorage.AptosAccountSignature_Type" json:"type,omitempty"`
	// Types that are assignable to Signature:
	//
	//	*AptosAccountSignature_Ed25519
	//	*AptosAccountSignature_MultiEd25519
	//	*AptosAccountSignature_FeePayer
	Signature isAptosAccountSignature_Signature `protobuf_oneof:"signature"`
	// contains filtered or unexported fields
}

func (*AptosAccountSignature) Descriptor deprecated

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

Deprecated: Use AptosAccountSignature.ProtoReflect.Descriptor instead.

func (*AptosAccountSignature) GetEd25519

func (*AptosAccountSignature) GetFeePayer

func (*AptosAccountSignature) GetMultiEd25519

func (x *AptosAccountSignature) GetMultiEd25519() *AptosMultiEd25519Signature

func (*AptosAccountSignature) GetSignature

func (m *AptosAccountSignature) GetSignature() isAptosAccountSignature_Signature

func (*AptosAccountSignature) GetType

func (*AptosAccountSignature) ProtoMessage

func (*AptosAccountSignature) ProtoMessage()

func (*AptosAccountSignature) ProtoReflect

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

func (*AptosAccountSignature) Reset

func (x *AptosAccountSignature) Reset()

func (*AptosAccountSignature) String

func (x *AptosAccountSignature) String() string

type AptosAccountSignature_Ed25519

type AptosAccountSignature_Ed25519 struct {
	Ed25519 *AptosEd25519Signature `protobuf:"bytes,2,opt,name=ed25519,proto3,oneof"`
}

type AptosAccountSignature_FeePayer

type AptosAccountSignature_FeePayer struct {
	FeePayer *AptosFeePayerSignature `protobuf:"bytes,4,opt,name=fee_payer,json=feePayer,proto3,oneof"`
}

type AptosAccountSignature_MultiEd25519

type AptosAccountSignature_MultiEd25519 struct {
	MultiEd25519 *AptosMultiEd25519Signature `protobuf:"bytes,3,opt,name=multi_ed25519,json=multiEd25519,proto3,oneof"`
}

type AptosAccountSignature_Type

type AptosAccountSignature_Type int32
const (
	AptosAccountSignature_UNSPECIFIED   AptosAccountSignature_Type = 0
	AptosAccountSignature_ED25519       AptosAccountSignature_Type = 1
	AptosAccountSignature_MULTI_ED25519 AptosAccountSignature_Type = 2
	AptosAccountSignature_FEE_PAYER     AptosAccountSignature_Type = 3
)

func (AptosAccountSignature_Type) Descriptor

func (AptosAccountSignature_Type) Enum

func (AptosAccountSignature_Type) EnumDescriptor deprecated

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

Deprecated: Use AptosAccountSignature_Type.Descriptor instead.

func (AptosAccountSignature_Type) Number

func (AptosAccountSignature_Type) String

func (AptosAccountSignature_Type) Type

type AptosBlobdata

type AptosBlobdata struct {
	Block []byte `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

One request can fetch all the needed data for a raw block in Aptos.

func (*AptosBlobdata) Descriptor deprecated

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

Deprecated: Use AptosBlobdata.ProtoReflect.Descriptor instead.

func (*AptosBlobdata) GetBlock

func (x *AptosBlobdata) GetBlock() []byte

func (*AptosBlobdata) ProtoMessage

func (*AptosBlobdata) ProtoMessage()

func (*AptosBlobdata) ProtoReflect

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

func (*AptosBlobdata) Reset

func (x *AptosBlobdata) Reset()

func (*AptosBlobdata) String

func (x *AptosBlobdata) String() string

type AptosBlock

type AptosBlock struct {
	Header *AptosHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// All transactions that happened in the Block.
	Transactions []*AptosTransaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

A block on Aptos holds transactions in chronological order (ordered by a transactions monotonically increasing `version` field) All blocks start with a `BlockMetadataTransaction`, and are followed by zero or more transactions. The next `BlockMetadataTransaction` denotes the end of the current block, and the start of the next one.

The Block `height` is a strictly monotonically increasing count of the number of blocks, and there will never be a gap in the numbers. It is also a unique identifier: there will never be two blocks with the same `height`.

The Genesis Transaction (version 0) is contained within the first block, which has a height of `0`.

func (*AptosBlock) Descriptor deprecated

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

Deprecated: Use AptosBlock.ProtoReflect.Descriptor instead.

func (*AptosBlock) GetHeader

func (x *AptosBlock) GetHeader() *AptosHeader

func (*AptosBlock) GetTransactions

func (x *AptosBlock) GetTransactions() []*AptosTransaction

func (*AptosBlock) ProtoMessage

func (*AptosBlock) ProtoMessage()

func (*AptosBlock) ProtoReflect

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

func (*AptosBlock) Reset

func (x *AptosBlock) Reset()

func (*AptosBlock) String

func (x *AptosBlock) String() string

type AptosBlockMetadataTransaction

type AptosBlockMetadataTransaction struct {
	Id                       string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Epoch                    uint64        `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Round                    uint64        `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	Events                   []*AptosEvent `protobuf:"bytes,4,rep,name=events,proto3" json:"events,omitempty"`
	PreviousBlockVotesBitvec []byte        `` /* 137-byte string literal not displayed */
	Proposer                 string        `protobuf:"bytes,6,opt,name=proposer,proto3" json:"proposer,omitempty"`
	FailedProposerIndices    []uint32      `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

Block metadata transaction.

func (*AptosBlockMetadataTransaction) Descriptor deprecated

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

Deprecated: Use AptosBlockMetadataTransaction.ProtoReflect.Descriptor instead.

func (*AptosBlockMetadataTransaction) GetEpoch

func (x *AptosBlockMetadataTransaction) GetEpoch() uint64

func (*AptosBlockMetadataTransaction) GetEvents

func (x *AptosBlockMetadataTransaction) GetEvents() []*AptosEvent

func (*AptosBlockMetadataTransaction) GetFailedProposerIndices

func (x *AptosBlockMetadataTransaction) GetFailedProposerIndices() []uint32

func (*AptosBlockMetadataTransaction) GetId

func (*AptosBlockMetadataTransaction) GetPreviousBlockVotesBitvec

func (x *AptosBlockMetadataTransaction) GetPreviousBlockVotesBitvec() []byte

func (*AptosBlockMetadataTransaction) GetProposer

func (x *AptosBlockMetadataTransaction) GetProposer() string