Documentation ¶
Index ¶
- Variables
- type Address
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHeader) GetChainId() *ChainID
- func (x *BlockHeader) GetEvents() *Merkle
- func (x *BlockHeader) GetParentBlock() *BlockID
- func (x *BlockHeader) GetProofFact() *Hash
- func (x *BlockHeader) GetProtocolVersion() uint32
- func (x *BlockHeader) GetReceipts() *Merkle
- func (x *BlockHeader) GetSequencerAddress() *Address
- func (x *BlockHeader) GetState() *Merkle
- func (x *BlockHeader) GetStateDiffs() *Merkle
- func (x *BlockHeader) GetTime() *timestamppb.Timestamp
- func (x *BlockHeader) GetTransactions() *Merkle
- func (*BlockHeader) ProtoMessage()
- func (x *BlockHeader) ProtoReflect() protoreflect.Message
- func (x *BlockHeader) Reset()
- func (x *BlockHeader) String() string
- type BlockID
- type BlockProof
- type ChainID
- type Class
- type Classes
- type CommonTransactionReceiptProperties
- func (*CommonTransactionReceiptProperties) Descriptor() ([]byte, []int)deprecated
- func (x *CommonTransactionReceiptProperties) GetActualFee() *Felt252
- func (x *CommonTransactionReceiptProperties) GetConsumedMessage() *MessageToL2
- func (x *CommonTransactionReceiptProperties) GetExecutionResources() *ExecutionResources
- func (x *CommonTransactionReceiptProperties) GetMessagesSent() []*MessageToL1
- func (x *CommonTransactionReceiptProperties) GetTransactionHash() *Felt252
- func (x *CommonTransactionReceiptProperties) GetTransactionIndex() uint32
- func (*CommonTransactionReceiptProperties) ProtoMessage()
- func (x *CommonTransactionReceiptProperties) ProtoReflect() protoreflect.Message
- func (x *CommonTransactionReceiptProperties) Reset()
- func (x *CommonTransactionReceiptProperties) String() string
- type ContractRange
- type ContractState
- func (*ContractState) Descriptor() ([]byte, []int)deprecated
- func (x *ContractState) GetAddress() *Hash
- func (x *ContractState) GetClass() *Hash
- func (x *ContractState) GetNonce() uint64
- func (x *ContractState) GetStorage() *Hash
- func (*ContractState) ProtoMessage()
- func (x *ContractState) ProtoReflect() protoreflect.Message
- func (x *ContractState) Reset()
- func (x *ContractState) String() string
- type ContractStorageRange
- func (*ContractStorageRange) Descriptor() ([]byte, []int)deprecated
- func (x *ContractStorageRange) GetKeyValue() []*ContractStoredValue
- func (x *ContractStorageRange) GetRangeId() uint32
- func (x *ContractStorageRange) GetRoot() *Hash
- func (*ContractStorageRange) ProtoMessage()
- func (x *ContractStorageRange) ProtoReflect() protoreflect.Message
- func (x *ContractStorageRange) Reset()
- func (x *ContractStorageRange) String() string
- type ContractStoredValue
- func (*ContractStoredValue) Descriptor() ([]byte, []int)deprecated
- func (x *ContractStoredValue) GetKey() *Felt252
- func (x *ContractStoredValue) GetValue() *Felt252
- func (*ContractStoredValue) ProtoMessage()
- func (x *ContractStoredValue) ProtoReflect() protoreflect.Message
- func (x *ContractStoredValue) Reset()
- func (x *ContractStoredValue) String() string
- type DeclareTransaction
- func (*DeclareTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *DeclareTransaction) GetClassHash() *Hash
- func (x *DeclareTransaction) GetCompiledHash() *Hash
- func (*DeclareTransaction) ProtoMessage()
- func (x *DeclareTransaction) ProtoReflect() protoreflect.Message
- func (x *DeclareTransaction) Reset()
- func (x *DeclareTransaction) String() string
- type DeclareTransactionReceipt
- func (*DeclareTransactionReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *DeclareTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
- func (*DeclareTransactionReceipt) ProtoMessage()
- func (x *DeclareTransactionReceipt) ProtoReflect() protoreflect.Message
- func (x *DeclareTransactionReceipt) Reset()
- func (x *DeclareTransactionReceipt) String() string
- type DeployAccountTransactionReceipt
- func (*DeployAccountTransactionReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *DeployAccountTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
- func (x *DeployAccountTransactionReceipt) GetContractAddress() *Felt252
- func (*DeployAccountTransactionReceipt) ProtoMessage()
- func (x *DeployAccountTransactionReceipt) ProtoReflect() protoreflect.Message
- func (x *DeployAccountTransactionReceipt) Reset()
- func (x *DeployAccountTransactionReceipt) String() string
- type DeprecatedDeployTransactionReceipt
- func (*DeprecatedDeployTransactionReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *DeprecatedDeployTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
- func (x *DeprecatedDeployTransactionReceipt) GetContractAddress() *Felt252
- func (*DeprecatedDeployTransactionReceipt) ProtoMessage()
- func (x *DeprecatedDeployTransactionReceipt) ProtoReflect() protoreflect.Message
- func (x *DeprecatedDeployTransactionReceipt) Reset()
- func (x *DeprecatedDeployTransactionReceipt) String() string
- type EthereumAddress
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetData() []*Felt252
- func (x *Event) GetFromAddress() *Felt252
- func (x *Event) GetKeys() []*Felt252
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Events
- type ExecutionResources
- func (*ExecutionResources) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionResources) GetBuiltinInstanceCounter() *ExecutionResources_BuiltinInstanceCounter
- func (x *ExecutionResources) GetNMemoryHoles() uint64
- func (x *ExecutionResources) GetNSteps() uint64
- func (*ExecutionResources) ProtoMessage()
- func (x *ExecutionResources) ProtoReflect() protoreflect.Message
- func (x *ExecutionResources) Reset()
- func (x *ExecutionResources) String() string
- type ExecutionResources_BuiltinInstanceCounter
- func (*ExecutionResources_BuiltinInstanceCounter) Descriptor() ([]byte, []int)deprecated
- func (x *ExecutionResources_BuiltinInstanceCounter) GetBitwiseBuiltin() uint64
- func (x *ExecutionResources_BuiltinInstanceCounter) GetEcOpBuiltin() uint64
- func (x *ExecutionResources_BuiltinInstanceCounter) GetEcdsaBuiltin() uint64
- func (x *ExecutionResources_BuiltinInstanceCounter) GetOutputBuiltin() uint64
- func (x *ExecutionResources_BuiltinInstanceCounter) GetPedersenBuiltin() uint64
- func (x *ExecutionResources_BuiltinInstanceCounter) GetRangeCheckBuiltin() uint64
- func (*ExecutionResources_BuiltinInstanceCounter) ProtoMessage()
- func (x *ExecutionResources_BuiltinInstanceCounter) ProtoReflect() protoreflect.Message
- func (x *ExecutionResources_BuiltinInstanceCounter) Reset()
- func (x *ExecutionResources_BuiltinInstanceCounter) String() string
- type Felt252
- type GetBlocks
- func (*GetBlocks) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlocks) GetDirection() GetBlocks_Direction
- func (x *GetBlocks) GetLimit() uint64
- func (x *GetBlocks) GetSkip() uint64
- func (x *GetBlocks) GetStart() *BlockID
- func (x *GetBlocks) GetStep() uint64
- func (*GetBlocks) ProtoMessage()
- func (x *GetBlocks) ProtoReflect() protoreflect.Message
- func (x *GetBlocks) Reset()
- func (x *GetBlocks) String() string
- type GetBlocks_Direction
- func (GetBlocks_Direction) Descriptor() protoreflect.EnumDescriptor
- func (x GetBlocks_Direction) Enum() *GetBlocks_Direction
- func (GetBlocks_Direction) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetBlocks_Direction) Number() protoreflect.EnumNumber
- func (x GetBlocks_Direction) String() string
- func (GetBlocks_Direction) Type() protoreflect.EnumType
- type GetClassRange
- func (*GetClassRange) Descriptor() ([]byte, []int)deprecated
- func (x *GetClassRange) GetChunksPerProof() uint32
- func (x *GetClassRange) GetEnd() *Hash
- func (x *GetClassRange) GetRoot() *Hash
- func (x *GetClassRange) GetStart() *Hash
- func (*GetClassRange) ProtoMessage()
- func (x *GetClassRange) ProtoReflect() protoreflect.Message
- func (x *GetClassRange) Reset()
- func (x *GetClassRange) String() string
- type GetContractRange
- func (*GetContractRange) Descriptor() ([]byte, []int)deprecated
- func (x *GetContractRange) GetChunksPerProof() uint32
- func (x *GetContractRange) GetEnd() *Hash
- func (x *GetContractRange) GetRoot() *Hash
- func (x *GetContractRange) GetStart() *Hash
- func (*GetContractRange) ProtoMessage()
- func (x *GetContractRange) ProtoReflect() protoreflect.Message
- func (x *GetContractRange) Reset()
- func (x *GetContractRange) String() string
- type GetContractStorageRange
- func (*GetContractStorageRange) Descriptor() ([]byte, []int)deprecated
- func (x *GetContractStorageRange) GetQuery() []*StorageRangeQuery
- func (x *GetContractStorageRange) GetStateRoot() *Hash
- func (*GetContractStorageRange) ProtoMessage()
- func (x *GetContractStorageRange) ProtoReflect() protoreflect.Message
- func (x *GetContractStorageRange) Reset()
- func (x *GetContractStorageRange) String() string
- type GetEvents
- type GetReceipts
- type GetSignatures
- type GetTransactions
- type Hash
- type InvokeTransaction
- func (*InvokeTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeTransaction) GetCalldata() []*Felt252
- func (*InvokeTransaction) ProtoMessage()
- func (x *InvokeTransaction) ProtoReflect() protoreflect.Message
- func (x *InvokeTransaction) Reset()
- func (x *InvokeTransaction) String() string
- type InvokeTransactionReceipt
- func (*InvokeTransactionReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
- func (*InvokeTransactionReceipt) ProtoMessage()
- func (x *InvokeTransactionReceipt) ProtoReflect() protoreflect.Message
- func (x *InvokeTransactionReceipt) Reset()
- func (x *InvokeTransactionReceipt) String() string
- type L1HandlerTransaction
- func (*L1HandlerTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *L1HandlerTransaction) GetCalldata() []*Felt252
- func (x *L1HandlerTransaction) GetContract() *Address
- func (x *L1HandlerTransaction) GetEntryPointSelector() *Felt252
- func (*L1HandlerTransaction) ProtoMessage()
- func (x *L1HandlerTransaction) ProtoReflect() protoreflect.Message
- func (x *L1HandlerTransaction) Reset()
- func (x *L1HandlerTransaction) String() string
- type L1HandlerTransactionReceipt
- func (*L1HandlerTransactionReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *L1HandlerTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
- func (*L1HandlerTransactionReceipt) ProtoMessage()
- func (x *L1HandlerTransactionReceipt) ProtoReflect() protoreflect.Message
- func (x *L1HandlerTransactionReceipt) Reset()
- func (x *L1HandlerTransactionReceipt) String() string
- type L2Transaction
- func (*L2Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *L2Transaction) GetCommon() *L2TransactionCommon
- func (x *L2Transaction) GetDeclare() *DeclareTransaction
- func (x *L2Transaction) GetInvoke() *InvokeTransaction
- func (m *L2Transaction) GetTxn() isL2Transaction_Txn
- func (*L2Transaction) ProtoMessage()
- func (x *L2Transaction) ProtoReflect() protoreflect.Message
- func (x *L2Transaction) Reset()
- func (x *L2Transaction) String() string
- type L2TransactionCommon
- func (*L2TransactionCommon) Descriptor() ([]byte, []int)deprecated
- func (x *L2TransactionCommon) GetMaxFee() *Felt252
- func (x *L2TransactionCommon) GetSender() *Address
- func (x *L2TransactionCommon) GetSignature() *Signature
- func (*L2TransactionCommon) ProtoMessage()
- func (x *L2TransactionCommon) ProtoReflect() protoreflect.Message
- func (x *L2TransactionCommon) Reset()
- func (x *L2TransactionCommon) String() string
- type L2Transaction_Declare
- type L2Transaction_Invoke
- type Merkle
- type MessageToL1
- func (*MessageToL1) Descriptor() ([]byte, []int)deprecated
- func (x *MessageToL1) GetFromAddress() *Felt252
- func (x *MessageToL1) GetPayload() []*Felt252
- func (x *MessageToL1) GetToAddress() *EthereumAddress
- func (*MessageToL1) ProtoMessage()
- func (x *MessageToL1) ProtoReflect() protoreflect.Message
- func (x *MessageToL1) Reset()
- func (x *MessageToL1) String() string
- type MessageToL2
- func (*MessageToL2) Descriptor() ([]byte, []int)deprecated
- func (x *MessageToL2) GetEntryPointSelector() *Felt252
- func (x *MessageToL2) GetFromAddress() *EthereumAddress
- func (x *MessageToL2) GetNonce() *Felt252
- func (x *MessageToL2) GetPayload() []*Felt252
- func (x *MessageToL2) GetToAddress() *Felt252
- func (*MessageToL2) ProtoMessage()
- func (x *MessageToL2) ProtoReflect() protoreflect.Message
- func (x *MessageToL2) Reset()
- func (x *MessageToL2) String() string
- type NewBlock
- type PatriciaNode
- func (*PatriciaNode) Descriptor() ([]byte, []int)deprecated
- func (x *PatriciaNode) GetBinary() *PatriciaNode_Binary
- func (x *PatriciaNode) GetEdge() *PatriciaNode_Edge
- func (m *PatriciaNode) GetNode() isPatriciaNode_Node
- func (*PatriciaNode) ProtoMessage()
- func (x *PatriciaNode) ProtoReflect() protoreflect.Message
- func (x *PatriciaNode) Reset()
- func (x *PatriciaNode) String() string
- type PatriciaNode_Binary
- func (*PatriciaNode_Binary) Descriptor() ([]byte, []int)deprecated
- func (x *PatriciaNode_Binary) GetLeft() *Felt252
- func (x *PatriciaNode_Binary) GetRight() *Felt252
- func (*PatriciaNode_Binary) ProtoMessage()
- func (x *PatriciaNode_Binary) ProtoReflect() protoreflect.Message
- func (x *PatriciaNode_Binary) Reset()
- func (x *PatriciaNode_Binary) String() string
- type PatriciaNode_Binary_
- type PatriciaNode_Edge
- func (*PatriciaNode_Edge) Descriptor() ([]byte, []int)deprecated
- func (x *PatriciaNode_Edge) GetLength() uint32
- func (x *PatriciaNode_Edge) GetPath() *Felt252
- func (x *PatriciaNode_Edge) GetValue() *Felt252
- func (*PatriciaNode_Edge) ProtoMessage()
- func (x *PatriciaNode_Edge) ProtoReflect() protoreflect.Message
- func (x *PatriciaNode_Edge) Reset()
- func (x *PatriciaNode_Edge) String() string
- type PatriciaNode_Edge_
- type PatriciaRangeProof
- func (*PatriciaRangeProof) Descriptor() ([]byte, []int)deprecated
- func (x *PatriciaRangeProof) GetNodes() []*PatriciaNode
- func (*PatriciaRangeProof) ProtoMessage()
- func (x *PatriciaRangeProof) ProtoReflect() protoreflect.Message
- func (x *PatriciaRangeProof) Reset()
- func (x *PatriciaRangeProof) String() string
- type PeerID
- type Receipt
- func (*Receipt) Descriptor() ([]byte, []int)deprecated
- func (x *Receipt) GetDeclare() *DeclareTransactionReceipt
- func (x *Receipt) GetDeployAccount() *DeployAccountTransactionReceipt
- func (x *Receipt) GetDeprecatedDeploy() *DeprecatedDeployTransactionReceipt
- func (x *Receipt) GetInvoke() *InvokeTransactionReceipt
- func (x *Receipt) GetL1Handler() *L1HandlerTransactionReceipt
- func (m *Receipt) GetReceipt() isReceipt_Receipt
- func (*Receipt) ProtoMessage()
- func (x *Receipt) ProtoReflect() protoreflect.Message
- func (x *Receipt) Reset()
- func (x *Receipt) String() string
- type Receipt_Declare
- type Receipt_DeployAccount
- type Receipt_DeprecatedDeploy
- type Receipt_Invoke
- type Receipt_L1Handler
- type Receipts
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetGetBlocks() *GetBlocks
- func (x *Request) GetGetEvents() *GetEvents
- func (x *Request) GetGetReceipts() *GetReceipts
- func (x *Request) GetGetSignatures() *GetSignatures
- func (x *Request) GetGetTransactions() *GetTransactions
- func (m *Request) GetReq() isRequest_Req
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Request_GetBlocks
- type Request_GetEvents
- type Request_GetReceipts
- type Request_GetSignatures
- type Request_GetTransactions
- type Signature
- type Signatures
- func (*Signatures) Descriptor() ([]byte, []int)deprecated
- func (x *Signatures) GetId() *BlockID
- func (x *Signatures) GetSignatures() []*Signature
- func (*Signatures) ProtoMessage()
- func (x *Signatures) ProtoReflect() protoreflect.Message
- func (x *Signatures) Reset()
- func (x *Signatures) String() string
- type StateDiff
- func (*StateDiff) Descriptor() ([]byte, []int)deprecated
- func (x *StateDiff) GetContractDiffs() []*StateDiff_ContractDiff
- func (x *StateDiff) GetTreeId() uint32
- func (*StateDiff) ProtoMessage()
- func (x *StateDiff) ProtoReflect() protoreflect.Message
- func (x *StateDiff) Reset()
- func (x *StateDiff) String() string
- type StateDiff_ContractDiff
- func (*StateDiff_ContractDiff) Descriptor() ([]byte, []int)deprecated
- func (x *StateDiff_ContractDiff) GetAddress() *Address
- func (x *StateDiff_ContractDiff) GetClassHash() *Felt252
- func (x *StateDiff_ContractDiff) GetNonce() *Felt252
- func (x *StateDiff_ContractDiff) GetValues() []*ContractStoredValue
- func (*StateDiff_ContractDiff) ProtoMessage()
- func (x *StateDiff_ContractDiff) ProtoReflect() protoreflect.Message
- func (x *StateDiff_ContractDiff) Reset()
- func (x *StateDiff_ContractDiff) String() string
- type StorageLeafQuery
- func (*StorageLeafQuery) Descriptor() ([]byte, []int)deprecated
- func (x *StorageLeafQuery) GetKey() *Felt252
- func (x *StorageLeafQuery) GetRoot() *Hash
- func (*StorageLeafQuery) ProtoMessage()
- func (x *StorageLeafQuery) ProtoReflect() protoreflect.Message
- func (x *StorageLeafQuery) Reset()
- func (x *StorageLeafQuery) String() string
- type StorageRangeQuery
- func (*StorageRangeQuery) Descriptor() ([]byte, []int)deprecated
- func (x *StorageRangeQuery) GetEnd() *StorageLeafQuery
- func (x *StorageRangeQuery) GetRangeId() uint32
- func (x *StorageRangeQuery) GetStart() *StorageLeafQuery
- func (*StorageRangeQuery) ProtoMessage()
- func (x *StorageRangeQuery) ProtoReflect() protoreflect.Message
- func (x *StorageRangeQuery) Reset()
- func (x *StorageRangeQuery) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetCommon() *TransactionCommon
- func (x *Transaction) GetL1Handler() *L1HandlerTransaction
- func (x *Transaction) GetL2Transaction() *L2Transaction
- func (m *Transaction) GetTxn() isTransaction_Txn
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionCommon
- func (*TransactionCommon) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionCommon) GetNonce() *Felt252
- func (x *TransactionCommon) GetVersion() *Felt252
- func (*TransactionCommon) ProtoMessage()
- func (x *TransactionCommon) ProtoReflect() protoreflect.Message
- func (x *TransactionCommon) Reset()
- func (x *TransactionCommon) String() string
- type Transaction_L1Handler
- type Transaction_L2Transaction
- type Transactions
Constants ¶
This section is empty.
Variables ¶
var ( GetBlocks_Direction_name = map[int32]string{ 0: "Forward", 1: "Backward", } GetBlocks_Direction_value = map[string]int32{ "Forward": 0, "Backward": 1, } )
Enum value maps for GetBlocks_Direction.
var File_p2p_proto_block_proto protoreflect.FileDescriptor
var File_p2p_proto_common_proto protoreflect.FileDescriptor
var File_p2p_proto_event_proto protoreflect.FileDescriptor
var File_p2p_proto_receipt_proto protoreflect.FileDescriptor
var File_p2p_proto_requests_proto protoreflect.FileDescriptor
var File_p2p_proto_snapshot_proto protoreflect.FileDescriptor
var File_p2p_proto_state_proto protoreflect.FileDescriptor
var File_p2p_proto_transaction_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetElements ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type BlockHeader ¶
type BlockHeader struct { ParentBlock *BlockID `protobuf:"bytes,1,opt,name=parent_block,json=parentBlock,proto3" json:"parent_block,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // TODO: see if this needs to be Felt252 or can be converted SequencerAddress *Address `protobuf:"bytes,3,opt,name=sequencer_address,json=sequencerAddress,proto3" json:"sequencer_address,omitempty"` StateDiffs *Merkle `protobuf:"bytes,4,opt,name=state_diffs,json=stateDiffs,proto3" json:"state_diffs,omitempty"` // By order of (contract, key), taking last in case of duplicates. // State is optional and appears every X blocks for the last block. This is to support // snapshot sync and also so that light nodes can sync on state without state diffs. State *Merkle `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // hash of contract and class patricia tries. Same as in L1. Later more trees will be included ProofFact *Hash `protobuf:"bytes,6,opt,name=proof_fact,json=proofFact,proto3" json:"proof_fact,omitempty"` // for Kth block behind. A hash of the output of the proof // The following merkles can be built on the fly while sequencing/validating txs. Transactions *Merkle `protobuf:"bytes,7,opt,name=transactions,proto3" json:"transactions,omitempty"` // By order of execution Events *Merkle `protobuf:"bytes,8,opt,name=events,proto3" json:"events,omitempty"` // By order of issuance. Receipts *Merkle `protobuf:"bytes,9,opt,name=receipts,proto3" json:"receipts,omitempty"` // By order of issuance. ProtocolVersion uint32 `protobuf:"varint,10,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` ChainId *ChainID `protobuf:"bytes,11,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // contains filtered or unexported fields }
Note: commitments may change to be for the previous blocks like comet/tendermint hash of block header sent to L1
func (*BlockHeader) Descriptor
deprecated
func (*BlockHeader) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.
func (*BlockHeader) GetChainId ¶
func (x *BlockHeader) GetChainId() *ChainID
func (*BlockHeader) GetEvents ¶
func (x *BlockHeader) GetEvents() *Merkle
func (*BlockHeader) GetParentBlock ¶
func (x *BlockHeader) GetParentBlock() *BlockID
func (*BlockHeader) GetProofFact ¶
func (x *BlockHeader) GetProofFact() *Hash
func (*BlockHeader) GetProtocolVersion ¶
func (x *BlockHeader) GetProtocolVersion() uint32
func (*BlockHeader) GetReceipts ¶
func (x *BlockHeader) GetReceipts() *Merkle
func (*BlockHeader) GetSequencerAddress ¶
func (x *BlockHeader) GetSequencerAddress() *Address
func (*BlockHeader) GetState ¶
func (x *BlockHeader) GetState() *Merkle
func (*BlockHeader) GetStateDiffs ¶
func (x *BlockHeader) GetStateDiffs() *Merkle
func (*BlockHeader) GetTime ¶
func (x *BlockHeader) GetTime() *timestamppb.Timestamp
func (*BlockHeader) GetTransactions ¶
func (x *BlockHeader) GetTransactions() *Merkle
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) ProtoReflect ¶
func (x *BlockHeader) ProtoReflect() protoreflect.Message
func (*BlockHeader) Reset ¶
func (x *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (x *BlockHeader) String() string
type BlockID ¶
type BlockID struct { Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*BlockID) Descriptor
deprecated
func (*BlockID) ProtoMessage ¶
func (*BlockID) ProtoMessage()
func (*BlockID) ProtoReflect ¶
func (x *BlockID) ProtoReflect() protoreflect.Message
type BlockProof ¶
type BlockProof struct { Proof []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` // proof size is currently 142K // contains filtered or unexported fields }
func (*BlockProof) Descriptor
deprecated
func (*BlockProof) Descriptor() ([]byte, []int)
Deprecated: Use BlockProof.ProtoReflect.Descriptor instead.
func (*BlockProof) GetProof ¶
func (x *BlockProof) GetProof() []byte
func (*BlockProof) ProtoMessage ¶
func (*BlockProof) ProtoMessage()
func (*BlockProof) ProtoReflect ¶
func (x *BlockProof) ProtoReflect() protoreflect.Message
func (*BlockProof) Reset ¶
func (x *BlockProof) Reset()
func (*BlockProof) String ¶
func (x *BlockProof) String() string
type ChainID ¶
type ChainID struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ChainID) Descriptor
deprecated
func (*ChainID) ProtoMessage ¶
func (*ChainID) ProtoMessage()
func (*ChainID) ProtoReflect ¶
func (x *ChainID) ProtoReflect() protoreflect.Message
type Class ¶
type Class struct { CompiledHash *Hash `protobuf:"bytes,2,opt,name=compiled_hash,json=compiledHash,proto3" json:"compiled_hash,omitempty"` // TBD: add also/instead CASM definition (instead of every node compiling)? Definition []byte `protobuf:"bytes,3,opt,name=definition,proto3" json:"definition,omitempty"` // compressed? size limit or split to chunks. // contains filtered or unexported fields }
is it better to separate the definition from the hashes? (will need to repeate the hashes for the definitions stream) or, make the definitions optional? maybe it is enough to know only that a class exists, not its definition which may be fetched lazily later.
func (*Class) Descriptor
deprecated
func (*Class) GetCompiledHash ¶
func (*Class) GetDefinition ¶
func (*Class) ProtoMessage ¶
func (*Class) ProtoMessage()
func (*Class) ProtoReflect ¶
func (x *Class) ProtoReflect() protoreflect.Message
type Classes ¶
type Classes struct { TreeId uint32 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"` Classes []*Class `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes,omitempty"` // contains filtered or unexported fields }
func (*Classes) Descriptor
deprecated
func (*Classes) GetClasses ¶
func (*Classes) ProtoMessage ¶
func (*Classes) ProtoMessage()
func (*Classes) ProtoReflect ¶
func (x *Classes) ProtoReflect() protoreflect.Message
type CommonTransactionReceiptProperties ¶
type CommonTransactionReceiptProperties struct { TransactionHash *Felt252 `protobuf:"bytes,1,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` TransactionIndex uint32 `protobuf:"varint,2,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` ActualFee *Felt252 `protobuf:"bytes,3,opt,name=actual_fee,json=actualFee,proto3" json:"actual_fee,omitempty"` MessagesSent []*MessageToL1 `protobuf:"bytes,4,rep,name=messages_sent,json=messagesSent,proto3" json:"messages_sent,omitempty"` // repeated Event events = 5; separate // Optional ConsumedMessage *MessageToL2 `protobuf:"bytes,5,opt,name=consumed_message,json=consumedMessage,proto3" json:"consumed_message,omitempty"` ExecutionResources *ExecutionResources `protobuf:"bytes,6,opt,name=execution_resources,json=executionResources,proto3" json:"execution_resources,omitempty"` // contains filtered or unexported fields }
func (*CommonTransactionReceiptProperties) Descriptor
deprecated
func (*CommonTransactionReceiptProperties) Descriptor() ([]byte, []int)
Deprecated: Use CommonTransactionReceiptProperties.ProtoReflect.Descriptor instead.
func (*CommonTransactionReceiptProperties) GetActualFee ¶
func (x *CommonTransactionReceiptProperties) GetActualFee() *Felt252
func (*CommonTransactionReceiptProperties) GetConsumedMessage ¶
func (x *CommonTransactionReceiptProperties) GetConsumedMessage() *MessageToL2
func (*CommonTransactionReceiptProperties) GetExecutionResources ¶
func (x *CommonTransactionReceiptProperties) GetExecutionResources() *ExecutionResources
func (*CommonTransactionReceiptProperties) GetMessagesSent ¶
func (x *CommonTransactionReceiptProperties) GetMessagesSent() []*MessageToL1
func (*CommonTransactionReceiptProperties) GetTransactionHash ¶
func (x *CommonTransactionReceiptProperties) GetTransactionHash() *Felt252
func (*CommonTransactionReceiptProperties) GetTransactionIndex ¶
func (x *CommonTransactionReceiptProperties) GetTransactionIndex() uint32
func (*CommonTransactionReceiptProperties) ProtoMessage ¶
func (*CommonTransactionReceiptProperties) ProtoMessage()
func (*CommonTransactionReceiptProperties) ProtoReflect ¶
func (x *CommonTransactionReceiptProperties) ProtoReflect() protoreflect.Message
func (*CommonTransactionReceiptProperties) Reset ¶
func (x *CommonTransactionReceiptProperties) Reset()
func (*CommonTransactionReceiptProperties) String ¶
func (x *CommonTransactionReceiptProperties) String() string
type ContractRange ¶
type ContractRange struct { State []*ContractState `protobuf:"bytes,1,rep,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
stream of leaves in the contracts tree
func (*ContractRange) Descriptor
deprecated
func (*ContractRange) Descriptor() ([]byte, []int)
Deprecated: Use ContractRange.ProtoReflect.Descriptor instead.
func (*ContractRange) GetState ¶
func (x *ContractRange) GetState() []*ContractState
func (*ContractRange) ProtoMessage ¶
func (*ContractRange) ProtoMessage()
func (*ContractRange) ProtoReflect ¶
func (x *ContractRange) ProtoReflect() protoreflect.Message
func (*ContractRange) Reset ¶
func (x *ContractRange) Reset()
func (*ContractRange) String ¶
func (x *ContractRange) String() string
type ContractState ¶
type ContractState struct { Address *Hash `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // the key Class *Hash `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` Storage *Hash `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty"` // patricia Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
leafs of the contract state tre
func (*ContractState) Descriptor
deprecated
func (*ContractState) Descriptor() ([]byte, []int)
Deprecated: Use ContractState.ProtoReflect.Descriptor instead.
func (*ContractState) GetAddress ¶
func (x *ContractState) GetAddress() *Hash
func (*ContractState) GetClass ¶
func (x *ContractState) GetClass() *Hash
func (*ContractState) GetNonce ¶
func (x *ContractState) GetNonce() uint64
func (*ContractState) GetStorage ¶
func (x *ContractState) GetStorage() *Hash
func (*ContractState) ProtoMessage ¶
func (*ContractState) ProtoMessage()
func (*ContractState) ProtoReflect ¶
func (x *ContractState) ProtoReflect() protoreflect.Message
func (*ContractState) Reset ¶
func (x *ContractState) Reset()
func (*ContractState) String ¶
func (x *ContractState) String() string
type ContractStorageRange ¶
type ContractStorageRange struct { RangeId uint32 `protobuf:"varint,1,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"` Root *Hash `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` KeyValue []*ContractStoredValue `protobuf:"bytes,3,rep,name=keyValue,proto3" json:"keyValue,omitempty"` // contains filtered or unexported fields }
func (*ContractStorageRange) Descriptor
deprecated
func (*ContractStorageRange) Descriptor() ([]byte, []int)
Deprecated: Use ContractStorageRange.ProtoReflect.Descriptor instead.
func (*ContractStorageRange) GetKeyValue ¶
func (x *ContractStorageRange) GetKeyValue() []*ContractStoredValue
func (*ContractStorageRange) GetRangeId ¶
func (x *ContractStorageRange) GetRangeId() uint32
func (*ContractStorageRange) GetRoot ¶
func (x *ContractStorageRange) GetRoot() *Hash
func (*ContractStorageRange) ProtoMessage ¶
func (*ContractStorageRange) ProtoMessage()
func (*ContractStorageRange) ProtoReflect ¶
func (x *ContractStorageRange) ProtoReflect() protoreflect.Message
func (*ContractStorageRange) Reset ¶
func (x *ContractStorageRange) Reset()
func (*ContractStorageRange) String ¶
func (x *ContractStorageRange) String() string
type ContractStoredValue ¶
type ContractStoredValue struct { Key *Felt252 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *Felt252 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
optimized for flat storage, not through a trie (not sharing key prefixes)
func (*ContractStoredValue) Descriptor
deprecated
func (*ContractStoredValue) Descriptor() ([]byte, []int)
Deprecated: Use ContractStoredValue.ProtoReflect.Descriptor instead.
func (*ContractStoredValue) GetKey ¶
func (x *ContractStoredValue) GetKey() *Felt252
func (*ContractStoredValue) GetValue ¶
func (x *ContractStoredValue) GetValue() *Felt252
func (*ContractStoredValue) ProtoMessage ¶
func (*ContractStoredValue) ProtoMessage()
func (*ContractStoredValue) ProtoReflect ¶
func (x *ContractStoredValue) ProtoReflect() protoreflect.Message
func (*ContractStoredValue) Reset ¶
func (x *ContractStoredValue) Reset()
func (*ContractStoredValue) String ¶
func (x *ContractStoredValue) String() string
type DeclareTransaction ¶
type DeclareTransaction struct { ClassHash *Hash `protobuf:"bytes,1,opt,name=class_hash,json=classHash,proto3" json:"class_hash,omitempty"` CompiledHash *Hash `protobuf:"bytes,2,opt,name=compiled_hash,json=compiledHash,proto3" json:"compiled_hash,omitempty"` // contains filtered or unexported fields }
func (*DeclareTransaction) Descriptor
deprecated
func (*DeclareTransaction) Descriptor() ([]byte, []int)
Deprecated: Use DeclareTransaction.ProtoReflect.Descriptor instead.
func (*DeclareTransaction) GetClassHash ¶
func (x *DeclareTransaction) GetClassHash() *Hash
func (*DeclareTransaction) GetCompiledHash ¶
func (x *DeclareTransaction) GetCompiledHash() *Hash
func (*DeclareTransaction) ProtoMessage ¶
func (*DeclareTransaction) ProtoMessage()
func (*DeclareTransaction) ProtoReflect ¶
func (x *DeclareTransaction) ProtoReflect() protoreflect.Message
func (*DeclareTransaction) Reset ¶
func (x *DeclareTransaction) Reset()
func (*DeclareTransaction) String ¶
func (x *DeclareTransaction) String() string
type DeclareTransactionReceipt ¶
type DeclareTransactionReceipt struct { Common *CommonTransactionReceiptProperties `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*DeclareTransactionReceipt) Descriptor
deprecated
func (*DeclareTransactionReceipt) Descriptor() ([]byte, []int)
Deprecated: Use DeclareTransactionReceipt.ProtoReflect.Descriptor instead.
func (*DeclareTransactionReceipt) GetCommon ¶
func (x *DeclareTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
func (*DeclareTransactionReceipt) ProtoMessage ¶
func (*DeclareTransactionReceipt) ProtoMessage()
func (*DeclareTransactionReceipt) ProtoReflect ¶
func (x *DeclareTransactionReceipt) ProtoReflect() protoreflect.Message
func (*DeclareTransactionReceipt) Reset ¶
func (x *DeclareTransactionReceipt) Reset()
func (*DeclareTransactionReceipt) String ¶
func (x *DeclareTransactionReceipt) String() string
type DeployAccountTransactionReceipt ¶
type DeployAccountTransactionReceipt struct { Common *CommonTransactionReceiptProperties `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` ContractAddress *Felt252 `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // contains filtered or unexported fields }
func (*DeployAccountTransactionReceipt) Descriptor
deprecated
func (*DeployAccountTransactionReceipt) Descriptor() ([]byte, []int)
Deprecated: Use DeployAccountTransactionReceipt.ProtoReflect.Descriptor instead.
func (*DeployAccountTransactionReceipt) GetCommon ¶
func (x *DeployAccountTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
func (*DeployAccountTransactionReceipt) GetContractAddress ¶
func (x *DeployAccountTransactionReceipt) GetContractAddress() *Felt252
func (*DeployAccountTransactionReceipt) ProtoMessage ¶
func (*DeployAccountTransactionReceipt) ProtoMessage()
func (*DeployAccountTransactionReceipt) ProtoReflect ¶
func (x *DeployAccountTransactionReceipt) ProtoReflect() protoreflect.Message
func (*DeployAccountTransactionReceipt) Reset ¶
func (x *DeployAccountTransactionReceipt) Reset()
func (*DeployAccountTransactionReceipt) String ¶
func (x *DeployAccountTransactionReceipt) String() string
type DeprecatedDeployTransactionReceipt ¶
type DeprecatedDeployTransactionReceipt struct { Common *CommonTransactionReceiptProperties `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` ContractAddress *Felt252 `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // contains filtered or unexported fields }
func (*DeprecatedDeployTransactionReceipt) Descriptor
deprecated
func (*DeprecatedDeployTransactionReceipt) Descriptor() ([]byte, []int)
Deprecated: Use DeprecatedDeployTransactionReceipt.ProtoReflect.Descriptor instead.
func (*DeprecatedDeployTransactionReceipt) GetCommon ¶
func (x *DeprecatedDeployTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
func (*DeprecatedDeployTransactionReceipt) GetContractAddress ¶
func (x *DeprecatedDeployTransactionReceipt) GetContractAddress() *Felt252
func (*DeprecatedDeployTransactionReceipt) ProtoMessage ¶
func (*DeprecatedDeployTransactionReceipt) ProtoMessage()
func (*DeprecatedDeployTransactionReceipt) ProtoReflect ¶
func (x *DeprecatedDeployTransactionReceipt) ProtoReflect() protoreflect.Message
func (*DeprecatedDeployTransactionReceipt) Reset ¶
func (x *DeprecatedDeployTransactionReceipt) Reset()
func (*DeprecatedDeployTransactionReceipt) String ¶
func (x *DeprecatedDeployTransactionReceipt) String() string
type EthereumAddress ¶
type EthereumAddress struct { Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"` // contains filtered or unexported fields }
func (*EthereumAddress) Descriptor
deprecated
func (*EthereumAddress) Descriptor() ([]byte, []int)
Deprecated: Use EthereumAddress.ProtoReflect.Descriptor instead.
func (*EthereumAddress) GetElements ¶
func (x *EthereumAddress) GetElements() []byte
func (*EthereumAddress) ProtoMessage ¶
func (*EthereumAddress) ProtoMessage()
func (*EthereumAddress) ProtoReflect ¶
func (x *EthereumAddress) ProtoReflect() protoreflect.Message
func (*EthereumAddress) Reset ¶
func (x *EthereumAddress) Reset()
func (*EthereumAddress) String ¶
func (x *EthereumAddress) String() string
type Event ¶
type Event struct { FromAddress *Felt252 `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` Keys []*Felt252 `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` Data []*Felt252 `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetFromAddress ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Events ¶
type Events struct { Events []*Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
can be several in a single reply
func (*Events) Descriptor
deprecated
func (*Events) ProtoMessage ¶
func (*Events) ProtoMessage()
func (*Events) ProtoReflect ¶
func (x *Events) ProtoReflect() protoreflect.Message
type ExecutionResources ¶
type ExecutionResources struct { BuiltinInstanceCounter *ExecutionResources_BuiltinInstanceCounter `` /* 129-byte string literal not displayed */ NSteps uint64 `protobuf:"varint,2,opt,name=n_steps,json=nSteps,proto3" json:"n_steps,omitempty"` NMemoryHoles uint64 `protobuf:"varint,3,opt,name=n_memory_holes,json=nMemoryHoles,proto3" json:"n_memory_holes,omitempty"` // contains filtered or unexported fields }
func (*ExecutionResources) Descriptor
deprecated
func (*ExecutionResources) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionResources.ProtoReflect.Descriptor instead.
func (*ExecutionResources) GetBuiltinInstanceCounter ¶
func (x *ExecutionResources) GetBuiltinInstanceCounter() *ExecutionResources_BuiltinInstanceCounter
func (*ExecutionResources) GetNMemoryHoles ¶
func (x *ExecutionResources) GetNMemoryHoles() uint64
func (*ExecutionResources) GetNSteps ¶
func (x *ExecutionResources) GetNSteps() uint64
func (*ExecutionResources) ProtoMessage ¶
func (*ExecutionResources) ProtoMessage()
func (*ExecutionResources) ProtoReflect ¶
func (x *ExecutionResources) ProtoReflect() protoreflect.Message
func (*ExecutionResources) Reset ¶
func (x *ExecutionResources) Reset()
func (*ExecutionResources) String ¶
func (x *ExecutionResources) String() string
type ExecutionResources_BuiltinInstanceCounter ¶
type ExecutionResources_BuiltinInstanceCounter struct { BitwiseBuiltin uint64 `protobuf:"varint,1,opt,name=bitwise_builtin,json=bitwiseBuiltin,proto3" json:"bitwise_builtin,omitempty"` EcdsaBuiltin uint64 `protobuf:"varint,2,opt,name=ecdsa_builtin,json=ecdsaBuiltin,proto3" json:"ecdsa_builtin,omitempty"` EcOpBuiltin uint64 `protobuf:"varint,3,opt,name=ec_op_builtin,json=ecOpBuiltin,proto3" json:"ec_op_builtin,omitempty"` OutputBuiltin uint64 `protobuf:"varint,4,opt,name=output_builtin,json=outputBuiltin,proto3" json:"output_builtin,omitempty"` PedersenBuiltin uint64 `protobuf:"varint,5,opt,name=pedersen_builtin,json=pedersenBuiltin,proto3" json:"pedersen_builtin,omitempty"` RangeCheckBuiltin uint64 `protobuf:"varint,6,opt,name=range_check_builtin,json=rangeCheckBuiltin,proto3" json:"range_check_builtin,omitempty"` // contains filtered or unexported fields }
func (*ExecutionResources_BuiltinInstanceCounter) Descriptor
deprecated
func (*ExecutionResources_BuiltinInstanceCounter) Descriptor() ([]byte, []int)
Deprecated: Use ExecutionResources_BuiltinInstanceCounter.ProtoReflect.Descriptor instead.
func (*ExecutionResources_BuiltinInstanceCounter) GetBitwiseBuiltin ¶
func (x *ExecutionResources_BuiltinInstanceCounter) GetBitwiseBuiltin() uint64
func (*ExecutionResources_BuiltinInstanceCounter) GetEcOpBuiltin ¶
func (x *ExecutionResources_BuiltinInstanceCounter) GetEcOpBuiltin() uint64
func (*ExecutionResources_BuiltinInstanceCounter) GetEcdsaBuiltin ¶
func (x *ExecutionResources_BuiltinInstanceCounter) GetEcdsaBuiltin() uint64
func (*ExecutionResources_BuiltinInstanceCounter) GetOutputBuiltin ¶
func (x *ExecutionResources_BuiltinInstanceCounter) GetOutputBuiltin() uint64
func (*ExecutionResources_BuiltinInstanceCounter) GetPedersenBuiltin ¶
func (x *ExecutionResources_BuiltinInstanceCounter) GetPedersenBuiltin() uint64
func (*ExecutionResources_BuiltinInstanceCounter) GetRangeCheckBuiltin ¶
func (x *ExecutionResources_BuiltinInstanceCounter) GetRangeCheckBuiltin() uint64
func (*ExecutionResources_BuiltinInstanceCounter) ProtoMessage ¶
func (*ExecutionResources_BuiltinInstanceCounter) ProtoMessage()
func (*ExecutionResources_BuiltinInstanceCounter) ProtoReflect ¶
func (x *ExecutionResources_BuiltinInstanceCounter) ProtoReflect() protoreflect.Message
func (*ExecutionResources_BuiltinInstanceCounter) Reset ¶
func (x *ExecutionResources_BuiltinInstanceCounter) Reset()
func (*ExecutionResources_BuiltinInstanceCounter) String ¶
func (x *ExecutionResources_BuiltinInstanceCounter) String() string
type Felt252 ¶
type Felt252 struct { Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"` // contains filtered or unexported fields }
func (*Felt252) Descriptor
deprecated
func (*Felt252) GetElements ¶
func (*Felt252) ProtoMessage ¶
func (*Felt252) ProtoMessage()
func (*Felt252) ProtoReflect ¶
func (x *Felt252) ProtoReflect() protoreflect.Message
type GetBlocks ¶
type GetBlocks struct { Start *BlockID `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` // exclude start from the result Direction GetBlocks_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=GetBlocks_Direction" json:"direction,omitempty"` Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Skip uint64 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` // when starting, can send to first node skip=0, limit=100, second skip=100, limit=100, etc. Step uint64 `protobuf:"varint,5,opt,name=step,proto3" json:"step,omitempty"` // to allow interleaving from several nodes // contains filtered or unexported fields }
result is (BlockHeader, StateDiff*)*
func (*GetBlocks) Descriptor
deprecated
func (*GetBlocks) GetDirection ¶
func (x *GetBlocks) GetDirection() GetBlocks_Direction
func (*GetBlocks) ProtoMessage ¶
func (*GetBlocks) ProtoMessage()
func (*GetBlocks) ProtoReflect ¶
func (x *GetBlocks) ProtoReflect() protoreflect.Message
type GetBlocks_Direction ¶
type GetBlocks_Direction int32
const ( GetBlocks_Forward GetBlocks_Direction = 0 GetBlocks_Backward GetBlocks_Direction = 1 )
func (GetBlocks_Direction) Descriptor ¶
func (GetBlocks_Direction) Descriptor() protoreflect.EnumDescriptor
func (GetBlocks_Direction) Enum ¶
func (x GetBlocks_Direction) Enum() *GetBlocks_Direction
func (GetBlocks_Direction) EnumDescriptor
deprecated
func (GetBlocks_Direction) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetBlocks_Direction.Descriptor instead.
func (GetBlocks_Direction) Number ¶
func (x GetBlocks_Direction) Number() protoreflect.EnumNumber
func (GetBlocks_Direction) String ¶
func (x GetBlocks_Direction) String() string
func (GetBlocks_Direction) Type ¶
func (GetBlocks_Direction) Type() protoreflect.EnumType
type GetClassRange ¶
type GetClassRange struct { Root *Hash `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` Start *Hash `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"` End *Hash `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"` ChunksPerProof uint32 `protobuf:"varint,4,opt,name=chunks_per_proof,json=chunksPerProof,proto3" json:"chunks_per_proof,omitempty"` // contains filtered or unexported fields }
duplicate of GetContractRange. Can introduce a 'type' instead. result is (Classes+, PatriciaRangeProof)*
func (*GetClassRange) Descriptor
deprecated
func (*GetClassRange) Descriptor() ([]byte, []int)
Deprecated: Use GetClassRange.ProtoReflect.Descriptor instead.
func (*GetClassRange) GetChunksPerProof ¶
func (x *GetClassRange) GetChunksPerProof() uint32
func (*GetClassRange) GetEnd ¶
func (x *GetClassRange) GetEnd() *Hash
func (*GetClassRange) GetRoot ¶
func (x *GetClassRange) GetRoot() *Hash
func (*GetClassRange) GetStart ¶
func (x *GetClassRange) GetStart() *Hash
func (*GetClassRange) ProtoMessage ¶
func (*GetClassRange) ProtoMessage()
func (*GetClassRange) ProtoReflect ¶
func (x *GetClassRange) ProtoReflect() protoreflect.Message
func (*GetClassRange) Reset ¶
func (x *GetClassRange) Reset()
func (*GetClassRange) String ¶
func (x *GetClassRange) String() string
type GetContractRange ¶
type GetContractRange struct { Root *Hash `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` Start *Hash `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"` End *Hash `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"` ChunksPerProof uint32 `protobuf:"varint,5,opt,name=chunks_per_proof,json=chunksPerProof,proto3" json:"chunks_per_proof,omitempty"` // how many ContractRange items to send before sending a proof // contains filtered or unexported fields }
request a range from the contract state tree that matches the given root (block) starts at 'start' and ends no less than 'end'. the result is (ContractRange+, PatriciaRangeProof)*
func (*GetContractRange) Descriptor
deprecated
func (*GetContractRange) Descriptor() ([]byte, []int)
Deprecated: Use GetContractRange.ProtoReflect.Descriptor instead.
func (*GetContractRange) GetChunksPerProof ¶
func (x *GetContractRange) GetChunksPerProof() uint32
func (*GetContractRange) GetEnd ¶
func (x *GetContractRange) GetEnd() *Hash
func (*GetContractRange) GetRoot ¶
func (x *GetContractRange) GetRoot() *Hash
func (*GetContractRange) GetStart ¶
func (x *GetContractRange) GetStart() *Hash
func (*GetContractRange) ProtoMessage ¶
func (*GetContractRange) ProtoMessage()
func (*GetContractRange) ProtoReflect ¶
func (x *GetContractRange) ProtoReflect() protoreflect.Message
func (*GetContractRange) Reset ¶
func (x *GetContractRange) Reset()
func (*GetContractRange) String ¶
func (x *GetContractRange) String() string
type GetContractStorageRange ¶
type GetContractStorageRange struct { StateRoot *Hash `protobuf:"bytes,1,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` Query []*StorageRangeQuery `protobuf:"bytes,2,rep,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
result is (ContractStorageRange+, PatriciaRangeProof)*
func (*GetContractStorageRange) Descriptor
deprecated
func (*GetContractStorageRange) Descriptor() ([]byte, []int)
Deprecated: Use GetContractStorageRange.ProtoReflect.Descriptor instead.
func (*GetContractStorageRange) GetQuery ¶
func (x *GetContractStorageRange) GetQuery() []*StorageRangeQuery
func (*GetContractStorageRange) GetStateRoot ¶
func (x *GetContractStorageRange) GetStateRoot() *Hash
func (*GetContractStorageRange) ProtoMessage ¶
func (*GetContractStorageRange) ProtoMessage()
func (*GetContractStorageRange) ProtoReflect ¶
func (x *GetContractStorageRange) ProtoReflect() protoreflect.Message
func (*GetContractStorageRange) Reset ¶
func (x *GetContractStorageRange) Reset()
func (*GetContractStorageRange) String ¶
func (x *GetContractStorageRange) String() string
type GetEvents ¶
type GetEvents struct { Id *BlockID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetEvents) Descriptor
deprecated
func (*GetEvents) ProtoMessage ¶
func (*GetEvents) ProtoMessage()
func (*GetEvents) ProtoReflect ¶
func (x *GetEvents) ProtoReflect() protoreflect.Message
type GetReceipts ¶
type GetReceipts struct { Id *BlockID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetReceipts) Descriptor
deprecated
func (*GetReceipts) Descriptor() ([]byte, []int)
Deprecated: Use GetReceipts.ProtoReflect.Descriptor instead.
func (*GetReceipts) GetId ¶
func (x *GetReceipts) GetId() *BlockID
func (*GetReceipts) ProtoMessage ¶
func (*GetReceipts) ProtoMessage()
func (*GetReceipts) ProtoReflect ¶
func (x *GetReceipts) ProtoReflect() protoreflect.Message
func (*GetReceipts) Reset ¶
func (x *GetReceipts) Reset()
func (*GetReceipts) String ¶
func (x *GetReceipts) String() string
type GetSignatures ¶
type GetSignatures struct { Id *BlockID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetSignatures) Descriptor
deprecated
func (*GetSignatures) Descriptor() ([]byte, []int)
Deprecated: Use GetSignatures.ProtoReflect.Descriptor instead.
func (*GetSignatures) GetId ¶
func (x *GetSignatures) GetId() *BlockID
func (*GetSignatures) ProtoMessage ¶
func (*GetSignatures) ProtoMessage()
func (*GetSignatures) ProtoReflect ¶
func (x *GetSignatures) ProtoReflect() protoreflect.Message
func (*GetSignatures) Reset ¶
func (x *GetSignatures) Reset()
func (*GetSignatures) String ¶
func (x *GetSignatures) String() string
type GetTransactions ¶
type GetTransactions struct { Id *BlockID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetTransactions) Descriptor
deprecated
func (*GetTransactions) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactions.ProtoReflect.Descriptor instead.
func (*GetTransactions) GetId ¶
func (x *GetTransactions) GetId() *BlockID
func (*GetTransactions) ProtoMessage ¶
func (*GetTransactions) ProtoMessage()
func (*GetTransactions) ProtoReflect ¶
func (x *GetTransactions) ProtoReflect() protoreflect.Message
func (*GetTransactions) Reset ¶
func (x *GetTransactions) Reset()
func (*GetTransactions) String ¶
func (x *GetTransactions) String() string
type Hash ¶
type Hash struct { Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"` // contains filtered or unexported fields }
func (*Hash) Descriptor
deprecated
func (*Hash) GetElements ¶
func (*Hash) ProtoMessage ¶
func (*Hash) ProtoMessage()
func (*Hash) ProtoReflect ¶
func (x *Hash) ProtoReflect() protoreflect.Message
type InvokeTransaction ¶
type InvokeTransaction struct { Calldata []*Felt252 `protobuf:"bytes,1,rep,name=calldata,proto3" json:"calldata,omitempty"` // not streaming this, meaning limited to ~30K felts. // contains filtered or unexported fields }
func (*InvokeTransaction) Descriptor
deprecated
func (*InvokeTransaction) Descriptor() ([]byte, []int)
Deprecated: Use InvokeTransaction.ProtoReflect.Descriptor instead.
func (*InvokeTransaction) GetCalldata ¶
func (x *InvokeTransaction) GetCalldata() []*Felt252
func (*InvokeTransaction) ProtoMessage ¶
func (*InvokeTransaction) ProtoMessage()
func (*InvokeTransaction) ProtoReflect ¶
func (x *InvokeTransaction) ProtoReflect() protoreflect.Message
func (*InvokeTransaction) Reset ¶
func (x *InvokeTransaction) Reset()
func (*InvokeTransaction) String ¶
func (x *InvokeTransaction) String() string
type InvokeTransactionReceipt ¶
type InvokeTransactionReceipt struct { Common *CommonTransactionReceiptProperties `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
TBD: also deploy of contract?
func (*InvokeTransactionReceipt) Descriptor
deprecated
func (*InvokeTransactionReceipt) Descriptor() ([]byte, []int)
Deprecated: Use InvokeTransactionReceipt.ProtoReflect.Descriptor instead.
func (*InvokeTransactionReceipt) GetCommon ¶
func (x *InvokeTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
func (*InvokeTransactionReceipt) ProtoMessage ¶
func (*InvokeTransactionReceipt) ProtoMessage()
func (*InvokeTransactionReceipt) ProtoReflect ¶
func (x *InvokeTransactionReceipt) ProtoReflect() protoreflect.Message
func (*InvokeTransactionReceipt) Reset ¶
func (x *InvokeTransactionReceipt) Reset()
func (*InvokeTransactionReceipt) String ¶
func (x *InvokeTransactionReceipt) String() string
type L1HandlerTransaction ¶
type L1HandlerTransaction struct { Contract *Address `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` EntryPointSelector *Felt252 `protobuf:"bytes,2,opt,name=entry_point_selector,json=entryPointSelector,proto3" json:"entry_point_selector,omitempty"` Calldata []*Felt252 `protobuf:"bytes,3,rep,name=calldata,proto3" json:"calldata,omitempty"` // contains filtered or unexported fields }
func (*L1HandlerTransaction) Descriptor
deprecated
func (*L1HandlerTransaction) Descriptor() ([]byte, []int)
Deprecated: Use L1HandlerTransaction.ProtoReflect.Descriptor instead.
func (*L1HandlerTransaction) GetCalldata ¶
func (x *L1HandlerTransaction) GetCalldata() []*Felt252
func (*L1HandlerTransaction) GetContract ¶
func (x *L1HandlerTransaction) GetContract() *Address
func (*L1HandlerTransaction) GetEntryPointSelector ¶
func (x *L1HandlerTransaction) GetEntryPointSelector() *Felt252
func (*L1HandlerTransaction) ProtoMessage ¶
func (*L1HandlerTransaction) ProtoMessage()
func (*L1HandlerTransaction) ProtoReflect ¶
func (x *L1HandlerTransaction) ProtoReflect() protoreflect.Message
func (*L1HandlerTransaction) Reset ¶
func (x *L1HandlerTransaction) Reset()
func (*L1HandlerTransaction) String ¶
func (x *L1HandlerTransaction) String() string
type L1HandlerTransactionReceipt ¶
type L1HandlerTransactionReceipt struct { Common *CommonTransactionReceiptProperties `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*L1HandlerTransactionReceipt) Descriptor
deprecated
func (*L1HandlerTransactionReceipt) Descriptor() ([]byte, []int)
Deprecated: Use L1HandlerTransactionReceipt.ProtoReflect.Descriptor instead.
func (*L1HandlerTransactionReceipt) GetCommon ¶
func (x *L1HandlerTransactionReceipt) GetCommon() *CommonTransactionReceiptProperties
func (*L1HandlerTransactionReceipt) ProtoMessage ¶
func (*L1HandlerTransactionReceipt) ProtoMessage()
func (*L1HandlerTransactionReceipt) ProtoReflect ¶
func (x *L1HandlerTransactionReceipt) ProtoReflect() protoreflect.Message
func (*L1HandlerTransactionReceipt) Reset ¶
func (x *L1HandlerTransactionReceipt) Reset()
func (*L1HandlerTransactionReceipt) String ¶
func (x *L1HandlerTransactionReceipt) String() string
type L2Transaction ¶
type L2Transaction struct { Common *L2TransactionCommon `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // Types that are assignable to Txn: // // *L2Transaction_Invoke // *L2Transaction_Declare Txn isL2Transaction_Txn `protobuf_oneof:"txn"` // contains filtered or unexported fields }
func (*L2Transaction) Descriptor
deprecated
func (*L2Transaction) Descriptor() ([]byte, []int)
Deprecated: Use L2Transaction.ProtoReflect.Descriptor instead.
func (*L2Transaction) GetCommon ¶
func (x *L2Transaction) GetCommon() *L2TransactionCommon
func (*L2Transaction) GetDeclare ¶
func (x *L2Transaction) GetDeclare() *DeclareTransaction
func (*L2Transaction) GetInvoke ¶
func (x *L2Transaction) GetInvoke() *InvokeTransaction
func (*L2Transaction) GetTxn ¶
func (m *L2Transaction) GetTxn() isL2Transaction_Txn
func (*L2Transaction) ProtoMessage ¶
func (*L2Transaction) ProtoMessage()
func (*L2Transaction) ProtoReflect ¶
func (x *L2Transaction) ProtoReflect() protoreflect.Message
func (*L2Transaction) Reset ¶
func (x *L2Transaction) Reset()
func (*L2Transaction) String ¶
func (x *L2Transaction) String() string
type L2TransactionCommon ¶
type L2TransactionCommon struct { Sender *Address `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` MaxFee *Felt252 `protobuf:"bytes,4,opt,name=max_fee,json=maxFee,proto3" json:"max_fee,omitempty"` // FFU: may change according to fee market spec // contains filtered or unexported fields }
func (*L2TransactionCommon) Descriptor
deprecated
func (*L2TransactionCommon) Descriptor() ([]byte, []int)
Deprecated: Use L2TransactionCommon.ProtoReflect.Descriptor instead.
func (*L2TransactionCommon) GetMaxFee ¶
func (x *L2TransactionCommon) GetMaxFee() *Felt252
func (*L2TransactionCommon) GetSender ¶
func (x *L2TransactionCommon) GetSender() *Address
func (*L2TransactionCommon) GetSignature ¶
func (x *L2TransactionCommon) GetSignature() *Signature
func (*L2TransactionCommon) ProtoMessage ¶
func (*L2TransactionCommon) ProtoMessage()
func (*L2TransactionCommon) ProtoReflect ¶
func (x *L2TransactionCommon) ProtoReflect() protoreflect.Message
func (*L2TransactionCommon) Reset ¶
func (x *L2TransactionCommon) Reset()
func (*L2TransactionCommon) String ¶
func (x *L2TransactionCommon) String() string
type L2Transaction_Declare ¶
type L2Transaction_Declare struct {
Declare *DeclareTransaction `protobuf:"bytes,3,opt,name=declare,proto3,oneof"`
}
type L2Transaction_Invoke ¶
type L2Transaction_Invoke struct {
Invoke *InvokeTransaction `protobuf:"bytes,2,opt,name=invoke,proto3,oneof"`
}
type Merkle ¶
type Merkle struct { NLeaves uint32 `protobuf:"varint,1,opt,name=n_leaves,json=nLeaves,proto3" json:"n_leaves,omitempty"` // needed to know the height, so as to how many nodes to expect in a proof. // and also when receiving all leaves, how many to expect Root *Hash `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` // contains filtered or unexported fields }
func (*Merkle) Descriptor
deprecated
func (*Merkle) GetNLeaves ¶
func (*Merkle) ProtoMessage ¶
func (*Merkle) ProtoMessage()
func (*Merkle) ProtoReflect ¶
func (x *Merkle) ProtoReflect() protoreflect.Message
type MessageToL1 ¶
type MessageToL1 struct { FromAddress *Felt252 `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` Payload []*Felt252 `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty"` ToAddress *EthereumAddress `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // contains filtered or unexported fields }
func (*MessageToL1) Descriptor
deprecated
func (*MessageToL1) Descriptor() ([]byte, []int)
Deprecated: Use MessageToL1.ProtoReflect.Descriptor instead.
func (*MessageToL1) GetFromAddress ¶
func (x *MessageToL1) GetFromAddress() *Felt252
func (*MessageToL1) GetPayload ¶
func (x *MessageToL1) GetPayload() []*Felt252
func (*MessageToL1) GetToAddress ¶
func (x *MessageToL1) GetToAddress() *EthereumAddress
func (*MessageToL1) ProtoMessage ¶
func (*MessageToL1) ProtoMessage()
func (*MessageToL1) ProtoReflect ¶
func (x *MessageToL1) ProtoReflect() protoreflect.Message
func (*MessageToL1) Reset ¶
func (x *MessageToL1) Reset()
func (*MessageToL1) String ¶
func (x *MessageToL1) String() string
type MessageToL2 ¶
type MessageToL2 struct { FromAddress *EthereumAddress `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` Payload []*Felt252 `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty"` ToAddress *Felt252 `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` EntryPointSelector *Felt252 `protobuf:"bytes,4,opt,name=entry_point_selector,json=entryPointSelector,proto3" json:"entry_point_selector,omitempty"` Nonce *Felt252 `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*MessageToL2) Descriptor
deprecated
func (*MessageToL2) Descriptor() ([]byte, []int)
Deprecated: Use MessageToL2.ProtoReflect.Descriptor instead.
func (*MessageToL2) GetEntryPointSelector ¶
func (x *MessageToL2) GetEntryPointSelector() *Felt252
func (*MessageToL2) GetFromAddress ¶
func (x *MessageToL2) GetFromAddress() *EthereumAddress
func (*MessageToL2) GetNonce ¶
func (x *MessageToL2) GetNonce() *Felt252
func (*MessageToL2) GetPayload ¶
func (x *MessageToL2) GetPayload() []*Felt252
func (*MessageToL2) GetToAddress ¶
func (x *MessageToL2) GetToAddress() *Felt252
func (*MessageToL2) ProtoMessage ¶
func (*MessageToL2) ProtoMessage()
func (*MessageToL2) ProtoReflect ¶
func (x *MessageToL2) ProtoReflect() protoreflect.Message
func (*MessageToL2) Reset ¶
func (x *MessageToL2) Reset()
func (*MessageToL2) String ¶
func (x *MessageToL2) String() string
type NewBlock ¶
type NewBlock struct { Id *BlockID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
sent to all peers (except the ones this was received from, if any). for a fraction of peers, also send the GetBlocks response (as if they asked for it for this block)
func (*NewBlock) Descriptor
deprecated
func (*NewBlock) ProtoMessage ¶
func (*NewBlock) ProtoMessage()
func (*NewBlock) ProtoReflect ¶
func (x *NewBlock) ProtoReflect() protoreflect.Message
type PatriciaNode ¶
type PatriciaNode struct { // Types that are assignable to Node: // // *PatriciaNode_Edge_ // *PatriciaNode_Binary_ Node isPatriciaNode_Node `protobuf_oneof:"node"` // contains filtered or unexported fields }
func (*PatriciaNode) Descriptor
deprecated
func (*PatriciaNode) Descriptor() ([]byte, []int)
Deprecated: Use PatriciaNode.ProtoReflect.Descriptor instead.
func (*PatriciaNode) GetBinary ¶
func (x *PatriciaNode) GetBinary() *PatriciaNode_Binary
func (*PatriciaNode) GetEdge ¶
func (x *PatriciaNode) GetEdge() *PatriciaNode_Edge
func (*PatriciaNode) GetNode ¶
func (m *PatriciaNode) GetNode() isPatriciaNode_Node
func (*PatriciaNode) ProtoMessage ¶
func (*PatriciaNode) ProtoMessage()
func (*PatriciaNode) ProtoReflect ¶
func (x *PatriciaNode) ProtoReflect() protoreflect.Message
func (*PatriciaNode) Reset ¶
func (x *PatriciaNode) Reset()
func (*PatriciaNode) String ¶
func (x *PatriciaNode) String() string
type PatriciaNode_Binary ¶
type PatriciaNode_Binary struct { Left *Felt252 `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"` Right *Felt252 `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"` // contains filtered or unexported fields }
func (*PatriciaNode_Binary) Descriptor
deprecated
func (*PatriciaNode_Binary) Descriptor() ([]byte, []int)
Deprecated: Use PatriciaNode_Binary.ProtoReflect.Descriptor instead.
func (*PatriciaNode_Binary) GetLeft ¶
func (x *PatriciaNode_Binary) GetLeft() *Felt252
func (*PatriciaNode_Binary) GetRight ¶
func (x *PatriciaNode_Binary) GetRight() *Felt252
func (*PatriciaNode_Binary) ProtoMessage ¶
func (*PatriciaNode_Binary) ProtoMessage()
func (*PatriciaNode_Binary) ProtoReflect ¶
func (x *PatriciaNode_Binary) ProtoReflect() protoreflect.Message
func (*PatriciaNode_Binary) Reset ¶
func (x *PatriciaNode_Binary) Reset()
func (*PatriciaNode_Binary) String ¶
func (x *PatriciaNode_Binary) String() string
type PatriciaNode_Binary_ ¶
type PatriciaNode_Binary_ struct {
Binary *PatriciaNode_Binary `protobuf:"bytes,2,opt,name=binary,proto3,oneof"`
}
type PatriciaNode_Edge ¶
type PatriciaNode_Edge struct { Length uint32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` Path *Felt252 `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // as bits of left/right Value *Felt252 `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PatriciaNode_Edge) Descriptor
deprecated
func (*PatriciaNode_Edge) Descriptor() ([]byte, []int)
Deprecated: Use PatriciaNode_Edge.ProtoReflect.Descriptor instead.
func (*PatriciaNode_Edge) GetLength ¶
func (x *PatriciaNode_Edge) GetLength() uint32
func (*PatriciaNode_Edge) GetPath ¶
func (x *PatriciaNode_Edge) GetPath() *Felt252
func (*PatriciaNode_Edge) GetValue ¶
func (x *PatriciaNode_Edge) GetValue() *Felt252
func (*PatriciaNode_Edge) ProtoMessage ¶
func (*PatriciaNode_Edge) ProtoMessage()
func (*PatriciaNode_Edge) ProtoReflect ¶
func (x *PatriciaNode_Edge) ProtoReflect() protoreflect.Message
func (*PatriciaNode_Edge) Reset ¶
func (x *PatriciaNode_Edge) Reset()
func (*PatriciaNode_Edge) String ¶
func (x *PatriciaNode_Edge) String() string
type PatriciaNode_Edge_ ¶
type PatriciaNode_Edge_ struct {
Edge *PatriciaNode_Edge `protobuf:"bytes,1,opt,name=edge,proto3,oneof"`
}
type PatriciaRangeProof ¶
type PatriciaRangeProof struct { Nodes []*PatriciaNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
non leaf nodes required to build the trie given the range (leaves)
func (*PatriciaRangeProof) Descriptor
deprecated
func (*PatriciaRangeProof) Descriptor() ([]byte, []int)
Deprecated: Use PatriciaRangeProof.ProtoReflect.Descriptor instead.
func (*PatriciaRangeProof) GetNodes ¶
func (x *PatriciaRangeProof) GetNodes() []*PatriciaNode
func (*PatriciaRangeProof) ProtoMessage ¶
func (*PatriciaRangeProof) ProtoMessage()
func (*PatriciaRangeProof) ProtoReflect ¶
func (x *PatriciaRangeProof) ProtoReflect() protoreflect.Message
func (*PatriciaRangeProof) Reset ¶
func (x *PatriciaRangeProof) Reset()
func (*PatriciaRangeProof) String ¶
func (x *PatriciaRangeProof) String() string
type PeerID ¶
type PeerID struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PeerID) Descriptor
deprecated
func (*PeerID) ProtoMessage ¶
func (*PeerID) ProtoMessage()
func (*PeerID) ProtoReflect ¶
func (x *PeerID) ProtoReflect() protoreflect.Message
type Receipt ¶
type Receipt struct { // Types that are assignable to Receipt: // // *Receipt_Invoke // *Receipt_L1Handler // *Receipt_Declare // *Receipt_DeprecatedDeploy // *Receipt_DeployAccount Receipt isReceipt_Receipt `protobuf_oneof:"receipt"` // contains filtered or unexported fields }
func (*Receipt) Descriptor
deprecated
func (*Receipt) GetDeclare ¶
func (x *Receipt) GetDeclare() *DeclareTransactionReceipt
func (*Receipt) GetDeployAccount ¶
func (x *Receipt) GetDeployAccount() *DeployAccountTransactionReceipt
func (*Receipt) GetDeprecatedDeploy ¶
func (x *Receipt) GetDeprecatedDeploy() *DeprecatedDeployTransactionReceipt
func (*Receipt) GetInvoke ¶
func (x *Receipt) GetInvoke() *InvokeTransactionReceipt
func (*Receipt) GetL1Handler ¶
func (x *Receipt) GetL1Handler() *L1HandlerTransactionReceipt
func (*Receipt) GetReceipt ¶
func (m *Receipt) GetReceipt() isReceipt_Receipt
func (*Receipt) ProtoMessage ¶
func (*Receipt) ProtoMessage()
func (*Receipt) ProtoReflect ¶
func (x *Receipt) ProtoReflect() protoreflect.Message
type Receipt_Declare ¶
type Receipt_Declare struct {
Declare *DeclareTransactionReceipt `protobuf:"bytes,3,opt,name=declare,proto3,oneof"`
}
type Receipt_DeployAccount ¶
type Receipt_DeployAccount struct {
DeployAccount *DeployAccountTransactionReceipt `protobuf:"bytes,5,opt,name=deploy_account,json=deployAccount,proto3,oneof"`
}
type Receipt_DeprecatedDeploy ¶
type Receipt_DeprecatedDeploy struct {
DeprecatedDeploy *DeprecatedDeployTransactionReceipt `protobuf:"bytes,4,opt,name=deprecated_deploy,json=deprecatedDeploy,proto3,oneof"`
}
type Receipt_Invoke ¶
type Receipt_Invoke struct {
Invoke *InvokeTransactionReceipt `protobuf:"bytes,1,opt,name=invoke,proto3,oneof"`
}
type Receipt_L1Handler ¶
type Receipt_L1Handler struct {
L1Handler *L1HandlerTransactionReceipt `protobuf:"bytes,2,opt,name=l1_handler,json=l1Handler,proto3,oneof"`
}
type Receipts ¶
type Receipts struct { Receipts []*Receipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"` // contains filtered or unexported fields }
func (*Receipts) Descriptor
deprecated
func (*Receipts) GetReceipts ¶
func (*Receipts) ProtoMessage ¶
func (*Receipts) ProtoMessage()
func (*Receipts) ProtoReflect ¶
func (x *Receipts) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { // Types that are assignable to Req: // // *Request_GetBlocks // *Request_GetSignatures // *Request_GetEvents // *Request_GetReceipts // *Request_GetTransactions Req isRequest_Req `protobuf_oneof:"req"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetGetBlocks ¶
func (*Request) GetGetEvents ¶
func (*Request) GetGetReceipts ¶
func (x *Request) GetGetReceipts() *GetReceipts
func (*Request) GetGetSignatures ¶
func (x *Request) GetGetSignatures() *GetSignatures
func (*Request) GetGetTransactions ¶
func (x *Request) GetGetTransactions() *GetTransactions
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Request_GetBlocks ¶
type Request_GetBlocks struct {
GetBlocks *GetBlocks `protobuf:"bytes,1,opt,name=get_blocks,json=getBlocks,proto3,oneof"`
}
type Request_GetEvents ¶
type Request_GetEvents struct {
GetEvents *GetEvents `protobuf:"bytes,4,opt,name=get_events,json=getEvents,proto3,oneof"`
}
type Request_GetReceipts ¶
type Request_GetReceipts struct {
GetReceipts *GetReceipts `protobuf:"bytes,5,opt,name=get_receipts,json=getReceipts,proto3,oneof"`
}
type Request_GetSignatures ¶
type Request_GetSignatures struct {
GetSignatures *GetSignatures `protobuf:"bytes,2,opt,name=get_signatures,json=getSignatures,proto3,oneof"`
}
type Request_GetTransactions ¶
type Request_GetTransactions struct {
GetTransactions *GetTransactions `protobuf:"bytes,6,opt,name=get_transactions,json=getTransactions,proto3,oneof"`
}
type Signature ¶
type Signature struct { Parts []*Felt252 `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts,omitempty"` // no separation of r, s because of AA // contains filtered or unexported fields }
func (*Signature) Descriptor
deprecated
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
type Signatures ¶
type Signatures struct { Id *BlockID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Signatures []*Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` // can be more explicit here about the signature structure as this is not part of account abstraction // contains filtered or unexported fields }
for now, we assume a small consensus, so this fits in 1M. Else, these will be repeated
func (*Signatures) Descriptor
deprecated
func (*Signatures) Descriptor() ([]byte, []int)
Deprecated: Use Signatures.ProtoReflect.Descriptor instead.
func (*Signatures) GetId ¶
func (x *Signatures) GetId() *BlockID
func (*Signatures) GetSignatures ¶
func (x *Signatures) GetSignatures() []*Signature
func (*Signatures) ProtoMessage ¶
func (*Signatures) ProtoMessage()
func (*Signatures) ProtoReflect ¶
func (x *Signatures) ProtoReflect() protoreflect.Message
func (*Signatures) Reset ¶
func (x *Signatures) Reset()
func (*Signatures) String ¶
func (x *Signatures) String() string
type StateDiff ¶
type StateDiff struct { TreeId uint32 `protobuf:"varint,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"` ContractDiffs []*StateDiff_ContractDiff `protobuf:"bytes,2,rep,name=contract_diffs,json=contractDiffs,proto3" json:"contract_diffs,omitempty"` // contains filtered or unexported fields }
func (*StateDiff) Descriptor
deprecated
func (*StateDiff) GetContractDiffs ¶
func (x *StateDiff) GetContractDiffs() []*StateDiff_ContractDiff
func (*StateDiff) ProtoMessage ¶
func (*StateDiff) ProtoMessage()
func (*StateDiff) ProtoReflect ¶
func (x *StateDiff) ProtoReflect() protoreflect.Message
type StateDiff_ContractDiff ¶
type StateDiff_ContractDiff struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Nonce *Felt252 `protobuf:"bytes,2,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"` ClassHash *Felt252 `protobuf:"bytes,3,opt,name=class_hash,json=classHash,proto3,oneof" json:"class_hash,omitempty"` // can change for replace_class or new contract Values []*ContractStoredValue `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
a bit more efficient than the state sync separation
func (*StateDiff_ContractDiff) Descriptor
deprecated
func (*StateDiff_ContractDiff) Descriptor() ([]byte, []int)
Deprecated: Use StateDiff_ContractDiff.ProtoReflect.Descriptor instead.
func (*StateDiff_ContractDiff) GetAddress ¶
func (x *StateDiff_ContractDiff) GetAddress() *Address
func (*StateDiff_ContractDiff) GetClassHash ¶
func (x *StateDiff_ContractDiff) GetClassHash() *Felt252
func (*StateDiff_ContractDiff) GetNonce ¶
func (x *StateDiff_ContractDiff) GetNonce() *Felt252
func (*StateDiff_ContractDiff) GetValues ¶
func (x *StateDiff_ContractDiff) GetValues() []*ContractStoredValue
func (*StateDiff_ContractDiff) ProtoMessage ¶
func (*StateDiff_ContractDiff) ProtoMessage()
func (*StateDiff_ContractDiff) ProtoReflect ¶
func (x *StateDiff_ContractDiff) ProtoReflect() protoreflect.Message
func (*StateDiff_ContractDiff) Reset ¶
func (x *StateDiff_ContractDiff) Reset()
func (*StateDiff_ContractDiff) String ¶
func (x *StateDiff_ContractDiff) String() string
type StorageLeafQuery ¶
type StorageLeafQuery struct { Root *Hash `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` Key *Felt252 `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
A position in some contract's state tree is identified by the state tree's root and the key in it
func (*StorageLeafQuery) Descriptor
deprecated
func (*StorageLeafQuery) Descriptor() ([]byte, []int)
Deprecated: Use StorageLeafQuery.ProtoReflect.Descriptor instead.
func (*StorageLeafQuery) GetKey ¶
func (x *StorageLeafQuery) GetKey() *Felt252
func (*StorageLeafQuery) GetRoot ¶
func (x *StorageLeafQuery) GetRoot() *Hash
func (*StorageLeafQuery) ProtoMessage ¶
func (*StorageLeafQuery) ProtoMessage()
func (*StorageLeafQuery) ProtoReflect ¶
func (x *StorageLeafQuery) ProtoReflect() protoreflect.Message
func (*StorageLeafQuery) Reset ¶
func (x *StorageLeafQuery) Reset()
func (*StorageLeafQuery) String ¶
func (x *StorageLeafQuery) String() string
type StorageRangeQuery ¶
type StorageRangeQuery struct { RangeId uint32 `protobuf:"varint,1,opt,name=range_id,json=rangeId,proto3" json:"range_id,omitempty"` Start *StorageLeafQuery `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"` End *StorageLeafQuery `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*StorageRangeQuery) Descriptor
deprecated
func (*StorageRangeQuery) Descriptor() ([]byte, []int)
Deprecated: Use StorageRangeQuery.ProtoReflect.Descriptor instead.
func (*StorageRangeQuery) GetEnd ¶
func (x *StorageRangeQuery) GetEnd() *StorageLeafQuery
func (*StorageRangeQuery) GetRangeId ¶
func (x *StorageRangeQuery) GetRangeId() uint32
func (*StorageRangeQuery) GetStart ¶
func (x *StorageRangeQuery) GetStart() *StorageLeafQuery
func (*StorageRangeQuery) ProtoMessage ¶
func (*StorageRangeQuery) ProtoMessage()
func (*StorageRangeQuery) ProtoReflect ¶
func (x *StorageRangeQuery) ProtoReflect() protoreflect.Message
func (*StorageRangeQuery) Reset ¶
func (x *StorageRangeQuery) Reset()
func (*StorageRangeQuery) String ¶
func (x *StorageRangeQuery) String() string
type Transaction ¶
type Transaction struct { Common *TransactionCommon `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // Types that are assignable to Txn: // // *Transaction_L2Transaction // *Transaction_L1Handler Txn isTransaction_Txn `protobuf_oneof:"txn"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetCommon ¶
func (x *Transaction) GetCommon() *TransactionCommon
func (*Transaction) GetL1Handler ¶
func (x *Transaction) GetL1Handler() *L1HandlerTransaction
func (*Transaction) GetL2Transaction ¶
func (x *Transaction) GetL2Transaction() *L2Transaction
func (*Transaction) GetTxn ¶
func (m *Transaction) GetTxn() isTransaction_Txn
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionCommon ¶
type TransactionCommon struct { Nonce *Felt252 `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // FFU: volition will also add the selected state tree Version *Felt252 `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*TransactionCommon) Descriptor
deprecated
func (*TransactionCommon) Descriptor() ([]byte, []int)
Deprecated: Use TransactionCommon.ProtoReflect.Descriptor instead.
func (*TransactionCommon) GetNonce ¶
func (x *TransactionCommon) GetNonce() *Felt252
func (*TransactionCommon) GetVersion ¶
func (x *TransactionCommon) GetVersion() *Felt252
func (*TransactionCommon) ProtoMessage ¶
func (*TransactionCommon) ProtoMessage()
func (*TransactionCommon) ProtoReflect ¶
func (x *TransactionCommon) ProtoReflect() protoreflect.Message
func (*TransactionCommon) Reset ¶
func (x *TransactionCommon) Reset()
func (*TransactionCommon) String ¶
func (x *TransactionCommon) String() string
type Transaction_L1Handler ¶
type Transaction_L1Handler struct {
L1Handler *L1HandlerTransaction `protobuf:"bytes,3,opt,name=l1handler,proto3,oneof"`
}
type Transaction_L2Transaction ¶
type Transaction_L2Transaction struct {
L2Transaction *L2Transaction `protobuf:"bytes,2,opt,name=l2Transaction,proto3,oneof"`
}
type Transactions ¶
type Transactions struct { Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
can be several in a single reply
func (*Transactions) Descriptor
deprecated
func (*Transactions) Descriptor() ([]byte, []int)
Deprecated: Use Transactions.ProtoReflect.Descriptor instead.
func (*Transactions) GetTransactions ¶
func (x *Transactions) GetTransactions() []*Transaction
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) ProtoReflect ¶
func (x *Transactions) ProtoReflect() protoreflect.Message
func (*Transactions) Reset ¶
func (x *Transactions) Reset()
func (*Transactions) String ¶
func (x *Transactions) String() string