Documentation
¶
Index ¶
- Variables
- func RegisterAdmissionControlServer(s *grpc.Server, srv AdmissionControlServer)
- func RegisterMempoolServer(s *grpc.Server, srv MempoolServer)
- type AccessPath
- func (*AccessPath) Descriptor() ([]byte, []int)
- func (m *AccessPath) GetAddress() []byte
- func (m *AccessPath) GetPath() []byte
- func (*AccessPath) ProtoMessage()
- func (m *AccessPath) Reset()
- func (m *AccessPath) String() string
- func (m *AccessPath) XXX_DiscardUnknown()
- func (m *AccessPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessPath) XXX_Merge(src proto.Message)
- func (m *AccessPath) XXX_Size() int
- func (m *AccessPath) XXX_Unmarshal(b []byte) error
- type AccountState
- func (*AccountState) Descriptor() ([]byte, []int)
- func (m *AccountState) GetAddress() []byte
- func (m *AccountState) GetBlob() []byte
- func (*AccountState) ProtoMessage()
- func (m *AccountState) Reset()
- func (m *AccountState) String() string
- func (m *AccountState) XXX_DiscardUnknown()
- func (m *AccountState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountState) XXX_Merge(src proto.Message)
- func (m *AccountState) XXX_Size() int
- func (m *AccountState) XXX_Unmarshal(b []byte) error
- type AccountStateBlob
- func (*AccountStateBlob) Descriptor() ([]byte, []int)
- func (m *AccountStateBlob) GetBlob() []byte
- func (*AccountStateBlob) ProtoMessage()
- func (m *AccountStateBlob) Reset()
- func (m *AccountStateBlob) String() string
- func (m *AccountStateBlob) XXX_DiscardUnknown()
- func (m *AccountStateBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountStateBlob) XXX_Merge(src proto.Message)
- func (m *AccountStateBlob) XXX_Size() int
- func (m *AccountStateBlob) XXX_Unmarshal(b []byte) error
- type AccountStateProof
- func (*AccountStateProof) Descriptor() ([]byte, []int)
- func (m *AccountStateProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof
- func (m *AccountStateProof) GetTransactionInfo() *TransactionInfo
- func (m *AccountStateProof) GetTransactionInfoToAccountProof() *SparseMerkleProof
- func (*AccountStateProof) ProtoMessage()
- func (m *AccountStateProof) Reset()
- func (m *AccountStateProof) String() string
- func (m *AccountStateProof) XXX_DiscardUnknown()
- func (m *AccountStateProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountStateProof) XXX_Merge(src proto.Message)
- func (m *AccountStateProof) XXX_Size() int
- func (m *AccountStateProof) XXX_Unmarshal(b []byte) error
- type AccountStateWithProof
- func (*AccountStateWithProof) Descriptor() ([]byte, []int)
- func (m *AccountStateWithProof) GetBlob() *AccountStateBlob
- func (m *AccountStateWithProof) GetProof() *AccountStateProof
- func (m *AccountStateWithProof) GetVersion() uint64
- func (*AccountStateWithProof) ProtoMessage()
- func (m *AccountStateWithProof) Reset()
- func (m *AccountStateWithProof) String() string
- func (m *AccountStateWithProof) XXX_DiscardUnknown()
- func (m *AccountStateWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountStateWithProof) XXX_Merge(src proto.Message)
- func (m *AccountStateWithProof) XXX_Size() int
- func (m *AccountStateWithProof) XXX_Unmarshal(b []byte) error
- type AccumulatorProof
- func (*AccumulatorProof) Descriptor() ([]byte, []int)
- func (m *AccumulatorProof) GetBitmap() uint64
- func (m *AccumulatorProof) GetNonDefaultSiblings() [][]byte
- func (*AccumulatorProof) ProtoMessage()
- func (m *AccumulatorProof) Reset()
- func (m *AccumulatorProof) String() string
- func (m *AccumulatorProof) XXX_DiscardUnknown()
- func (m *AccumulatorProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccumulatorProof) XXX_Merge(src proto.Message)
- func (m *AccumulatorProof) XXX_Size() int
- func (m *AccumulatorProof) XXX_Unmarshal(b []byte) error
- type AddTransactionWithValidationRequest
- func (*AddTransactionWithValidationRequest) Descriptor() ([]byte, []int)
- func (m *AddTransactionWithValidationRequest) GetAccountBalance() uint64
- func (m *AddTransactionWithValidationRequest) GetLatestSequenceNumber() uint64
- func (m *AddTransactionWithValidationRequest) GetMaxGasCost() uint64
- func (m *AddTransactionWithValidationRequest) GetSignedTxn() *SignedTransaction
- func (*AddTransactionWithValidationRequest) ProtoMessage()
- func (m *AddTransactionWithValidationRequest) Reset()
- func (m *AddTransactionWithValidationRequest) String() string
- func (m *AddTransactionWithValidationRequest) XXX_DiscardUnknown()
- func (m *AddTransactionWithValidationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddTransactionWithValidationRequest) XXX_Merge(src proto.Message)
- func (m *AddTransactionWithValidationRequest) XXX_Size() int
- func (m *AddTransactionWithValidationRequest) XXX_Unmarshal(b []byte) error
- type AddTransactionWithValidationResponse
- func (*AddTransactionWithValidationResponse) Descriptor() ([]byte, []int)
- func (m *AddTransactionWithValidationResponse) GetCurrentVersion() uint64
- func (m *AddTransactionWithValidationResponse) GetStatus() *MempoolAddTransactionStatus
- func (*AddTransactionWithValidationResponse) ProtoMessage()
- func (m *AddTransactionWithValidationResponse) Reset()
- func (m *AddTransactionWithValidationResponse) String() string
- func (m *AddTransactionWithValidationResponse) XXX_DiscardUnknown()
- func (m *AddTransactionWithValidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddTransactionWithValidationResponse) XXX_Merge(src proto.Message)
- func (m *AddTransactionWithValidationResponse) XXX_Size() int
- func (m *AddTransactionWithValidationResponse) XXX_Unmarshal(b []byte) error
- type AdmissionControlClient
- type AdmissionControlServer
- type AdmissionControlStatus
- func (*AdmissionControlStatus) Descriptor() ([]byte, []int)
- func (m *AdmissionControlStatus) GetCode() AdmissionControlStatusCode
- func (m *AdmissionControlStatus) GetMessage() string
- func (*AdmissionControlStatus) ProtoMessage()
- func (m *AdmissionControlStatus) Reset()
- func (m *AdmissionControlStatus) String() string
- func (m *AdmissionControlStatus) XXX_DiscardUnknown()
- func (m *AdmissionControlStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdmissionControlStatus) XXX_Merge(src proto.Message)
- func (m *AdmissionControlStatus) XXX_Size() int
- func (m *AdmissionControlStatus) XXX_Unmarshal(b []byte) error
- type AdmissionControlStatusCode
- type ArithmeticError
- func (*ArithmeticError) Descriptor() ([]byte, []int)
- func (m *ArithmeticError) GetErrorCode() ArithmeticError_ArithmeticErrorType
- func (*ArithmeticError) ProtoMessage()
- func (m *ArithmeticError) Reset()
- func (m *ArithmeticError) String() string
- func (m *ArithmeticError) XXX_DiscardUnknown()
- func (m *ArithmeticError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArithmeticError) XXX_Merge(src proto.Message)
- func (m *ArithmeticError) XXX_Size() int
- func (m *ArithmeticError) XXX_Unmarshal(b []byte) error
- type ArithmeticError_ArithmeticErrorType
- type AssertionFailure
- func (*AssertionFailure) Descriptor() ([]byte, []int)
- func (m *AssertionFailure) GetAssertionErrorCode() uint64
- func (*AssertionFailure) ProtoMessage()
- func (m *AssertionFailure) Reset()
- func (m *AssertionFailure) String() string
- func (m *AssertionFailure) XXX_DiscardUnknown()
- func (m *AssertionFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssertionFailure) XXX_Merge(src proto.Message)
- func (m *AssertionFailure) XXX_Size() int
- func (m *AssertionFailure) XXX_Unmarshal(b []byte) error
- type BinaryError
- type CommitTransactionsRequest
- func (*CommitTransactionsRequest) Descriptor() ([]byte, []int)
- func (m *CommitTransactionsRequest) GetBlockTimestampUsecs() uint64
- func (m *CommitTransactionsRequest) GetTransactions() []*CommittedTransaction
- func (*CommitTransactionsRequest) ProtoMessage()
- func (m *CommitTransactionsRequest) Reset()
- func (m *CommitTransactionsRequest) String() string
- func (m *CommitTransactionsRequest) XXX_DiscardUnknown()
- func (m *CommitTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommitTransactionsRequest) XXX_Merge(src proto.Message)
- func (m *CommitTransactionsRequest) XXX_Size() int
- func (m *CommitTransactionsRequest) XXX_Unmarshal(b []byte) error
- type CommitTransactionsResponse
- func (*CommitTransactionsResponse) Descriptor() ([]byte, []int)
- func (*CommitTransactionsResponse) ProtoMessage()
- func (m *CommitTransactionsResponse) Reset()
- func (m *CommitTransactionsResponse) String() string
- func (m *CommitTransactionsResponse) XXX_DiscardUnknown()
- func (m *CommitTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommitTransactionsResponse) XXX_Merge(src proto.Message)
- func (m *CommitTransactionsResponse) XXX_Size() int
- func (m *CommitTransactionsResponse) XXX_Unmarshal(b []byte) error
- type CommittedTransaction
- func (*CommittedTransaction) Descriptor() ([]byte, []int)
- func (m *CommittedTransaction) GetIsRejected() bool
- func (m *CommittedTransaction) GetSender() []byte
- func (m *CommittedTransaction) GetSequenceNumber() uint64
- func (*CommittedTransaction) ProtoMessage()
- func (m *CommittedTransaction) Reset()
- func (m *CommittedTransaction) String() string
- func (m *CommittedTransaction) XXX_DiscardUnknown()
- func (m *CommittedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommittedTransaction) XXX_Merge(src proto.Message)
- func (m *CommittedTransaction) XXX_Size() int
- func (m *CommittedTransaction) XXX_Unmarshal(b []byte) error
- type DynamicReferenceError
- func (*DynamicReferenceError) Descriptor() ([]byte, []int)
- func (m *DynamicReferenceError) GetErrorCode() DynamicReferenceError_DynamicReferenceErrorType
- func (*DynamicReferenceError) ProtoMessage()
- func (m *DynamicReferenceError) Reset()
- func (m *DynamicReferenceError) String() string
- func (m *DynamicReferenceError) XXX_DiscardUnknown()
- func (m *DynamicReferenceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DynamicReferenceError) XXX_Merge(src proto.Message)
- func (m *DynamicReferenceError) XXX_Size() int
- func (m *DynamicReferenceError) XXX_Unmarshal(b []byte) error
- type DynamicReferenceError_DynamicReferenceErrorType
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetAccessPath() *AccessPath
- func (m *Event) GetEventData() []byte
- func (m *Event) GetSequenceNumber() uint64
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventProof
- func (*EventProof) Descriptor() ([]byte, []int)
- func (m *EventProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof
- func (m *EventProof) GetTransactionInfo() *TransactionInfo
- func (m *EventProof) GetTransactionInfoToEventProof() *AccumulatorProof
- func (*EventProof) ProtoMessage()
- func (m *EventProof) Reset()
- func (m *EventProof) String() string
- func (m *EventProof) XXX_DiscardUnknown()
- func (m *EventProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventProof) XXX_Merge(src proto.Message)
- func (m *EventProof) XXX_Size() int
- func (m *EventProof) XXX_Unmarshal(b []byte) error
- type EventWithProof
- func (*EventWithProof) Descriptor() ([]byte, []int)
- func (m *EventWithProof) GetEvent() *Event
- func (m *EventWithProof) GetEventIndex() uint64
- func (m *EventWithProof) GetProof() *EventProof
- func (m *EventWithProof) GetTransactionVersion() uint64
- func (*EventWithProof) ProtoMessage()
- func (m *EventWithProof) Reset()
- func (m *EventWithProof) String() string
- func (m *EventWithProof) XXX_DiscardUnknown()
- func (m *EventWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithProof) XXX_Merge(src proto.Message)
- func (m *EventWithProof) XXX_Size() int
- func (m *EventWithProof) XXX_Unmarshal(b []byte) error
- type EventsForVersions
- func (*EventsForVersions) Descriptor() ([]byte, []int)
- func (m *EventsForVersions) GetEventsForVersion() []*EventsList
- func (*EventsForVersions) ProtoMessage()
- func (m *EventsForVersions) Reset()
- func (m *EventsForVersions) String() string
- func (m *EventsForVersions) XXX_DiscardUnknown()
- func (m *EventsForVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventsForVersions) XXX_Merge(src proto.Message)
- func (m *EventsForVersions) XXX_Size() int
- func (m *EventsForVersions) XXX_Unmarshal(b []byte) error
- type EventsList
- func (*EventsList) Descriptor() ([]byte, []int)
- func (m *EventsList) GetEvents() []*Event
- func (*EventsList) ProtoMessage()
- func (m *EventsList) Reset()
- func (m *EventsList) String() string
- func (m *EventsList) XXX_DiscardUnknown()
- func (m *EventsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventsList) XXX_Merge(src proto.Message)
- func (m *EventsList) XXX_Size() int
- func (m *EventsList) XXX_Unmarshal(b []byte) error
- type ExecutionStatus
- func (*ExecutionStatus) Descriptor() ([]byte, []int)
- func (m *ExecutionStatus) GetArithmeticError() *ArithmeticError
- func (m *ExecutionStatus) GetAssertionFailure() *AssertionFailure
- func (m *ExecutionStatus) GetExecutionStatus() isExecutionStatus_ExecutionStatus
- func (m *ExecutionStatus) GetReferenceError() *DynamicReferenceError
- func (m *ExecutionStatus) GetRuntimeStatus() RuntimeStatus
- func (*ExecutionStatus) ProtoMessage()
- func (m *ExecutionStatus) Reset()
- func (m *ExecutionStatus) String() string
- func (m *ExecutionStatus) XXX_DiscardUnknown()
- func (m *ExecutionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecutionStatus) XXX_Merge(src proto.Message)
- func (*ExecutionStatus) XXX_OneofWrappers() []interface{}
- func (m *ExecutionStatus) XXX_Size() int
- func (m *ExecutionStatus) XXX_Unmarshal(b []byte) error
- type ExecutionStatus_ArithmeticError
- type ExecutionStatus_AssertionFailure
- type ExecutionStatus_ReferenceError
- type ExecutionStatus_RuntimeStatus
- type GetAccountStateRequest
- func (*GetAccountStateRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountStateRequest) GetAddress() []byte
- func (*GetAccountStateRequest) ProtoMessage()
- func (m *GetAccountStateRequest) Reset()
- func (m *GetAccountStateRequest) String() string
- func (m *GetAccountStateRequest) XXX_DiscardUnknown()
- func (m *GetAccountStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountStateRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountStateRequest) XXX_Size() int
- func (m *GetAccountStateRequest) XXX_Unmarshal(b []byte) error
- type GetAccountStateResponse
- func (*GetAccountStateResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountStateResponse) GetAccountStateWithProof() *AccountStateWithProof
- func (*GetAccountStateResponse) ProtoMessage()
- func (m *GetAccountStateResponse) Reset()
- func (m *GetAccountStateResponse) String() string
- func (m *GetAccountStateResponse) XXX_DiscardUnknown()
- func (m *GetAccountStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountStateResponse) XXX_Merge(src proto.Message)
- func (m *GetAccountStateResponse) XXX_Size() int
- func (m *GetAccountStateResponse) XXX_Unmarshal(b []byte) error
- type GetAccountTransactionBySequenceNumberRequest
- func (*GetAccountTransactionBySequenceNumberRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountTransactionBySequenceNumberRequest) GetAccount() []byte
- func (m *GetAccountTransactionBySequenceNumberRequest) GetFetchEvents() bool
- func (m *GetAccountTransactionBySequenceNumberRequest) GetSequenceNumber() uint64
- func (*GetAccountTransactionBySequenceNumberRequest) ProtoMessage()
- func (m *GetAccountTransactionBySequenceNumberRequest) Reset()
- func (m *GetAccountTransactionBySequenceNumberRequest) String() string
- func (m *GetAccountTransactionBySequenceNumberRequest) XXX_DiscardUnknown()
- func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Size() int
- func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Unmarshal(b []byte) error
- type GetAccountTransactionBySequenceNumberResponse
- func (*GetAccountTransactionBySequenceNumberResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountTransactionBySequenceNumberResponse) GetProofOfCurrentSequenceNumber() *AccountStateWithProof
- func (m *GetAccountTransactionBySequenceNumberResponse) GetSignedTransactionWithProof() *SignedTransactionWithProof
- func (*GetAccountTransactionBySequenceNumberResponse) ProtoMessage()
- func (m *GetAccountTransactionBySequenceNumberResponse) Reset()
- func (m *GetAccountTransactionBySequenceNumberResponse) String() string
- func (m *GetAccountTransactionBySequenceNumberResponse) XXX_DiscardUnknown()
- func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Merge(src proto.Message)
- func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Size() int
- func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Unmarshal(b []byte) error
- type GetBlockRequest
- func (*GetBlockRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockRequest) GetMaxBlockSize() uint64
- func (m *GetBlockRequest) GetTransactions() []*TransactionExclusion
- func (*GetBlockRequest) ProtoMessage()
- func (m *GetBlockRequest) Reset()
- func (m *GetBlockRequest) String() string
- func (m *GetBlockRequest) XXX_DiscardUnknown()
- func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockRequest) XXX_Size() int
- func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error
- type GetBlockResponse
- func (*GetBlockResponse) Descriptor() ([]byte, []int)
- func (m *GetBlockResponse) GetBlock() *SignedTransactionsBlock
- func (*GetBlockResponse) ProtoMessage()
- func (m *GetBlockResponse) Reset()
- func (m *GetBlockResponse) String() string
- func (m *GetBlockResponse) XXX_DiscardUnknown()
- func (m *GetBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockResponse) XXX_Merge(src proto.Message)
- func (m *GetBlockResponse) XXX_Size() int
- func (m *GetBlockResponse) XXX_Unmarshal(b []byte) error
- type GetEventsByEventAccessPathRequest
- func (*GetEventsByEventAccessPathRequest) Descriptor() ([]byte, []int)
- func (m *GetEventsByEventAccessPathRequest) GetAccessPath() *AccessPath
- func (m *GetEventsByEventAccessPathRequest) GetAscending() bool
- func (m *GetEventsByEventAccessPathRequest) GetLimit() uint64
- func (m *GetEventsByEventAccessPathRequest) GetStartEventSeqNum() uint64
- func (*GetEventsByEventAccessPathRequest) ProtoMessage()
- func (m *GetEventsByEventAccessPathRequest) Reset()
- func (m *GetEventsByEventAccessPathRequest) String() string
- func (m *GetEventsByEventAccessPathRequest) XXX_DiscardUnknown()
- func (m *GetEventsByEventAccessPathRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEventsByEventAccessPathRequest) XXX_Merge(src proto.Message)
- func (m *GetEventsByEventAccessPathRequest) XXX_Size() int
- func (m *GetEventsByEventAccessPathRequest) XXX_Unmarshal(b []byte) error
- type GetEventsByEventAccessPathResponse
- func (*GetEventsByEventAccessPathResponse) Descriptor() ([]byte, []int)
- func (m *GetEventsByEventAccessPathResponse) GetEventsWithProof() []*EventWithProof
- func (m *GetEventsByEventAccessPathResponse) GetProofOfLatestEvent() *AccountStateWithProof
- func (*GetEventsByEventAccessPathResponse) ProtoMessage()
- func (m *GetEventsByEventAccessPathResponse) Reset()
- func (m *GetEventsByEventAccessPathResponse) String() string
- func (m *GetEventsByEventAccessPathResponse) XXX_DiscardUnknown()
- func (m *GetEventsByEventAccessPathResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEventsByEventAccessPathResponse) XXX_Merge(src proto.Message)
- func (m *GetEventsByEventAccessPathResponse) XXX_Size() int
- func (m *GetEventsByEventAccessPathResponse) XXX_Unmarshal(b []byte) error
- type GetTransactionsRequest
- func (*GetTransactionsRequest) Descriptor() ([]byte, []int)
- func (m *GetTransactionsRequest) GetFetchEvents() bool
- func (m *GetTransactionsRequest) GetLimit() uint64
- func (m *GetTransactionsRequest) GetStartVersion() uint64
- func (*GetTransactionsRequest) ProtoMessage()
- func (m *GetTransactionsRequest) Reset()
- func (m *GetTransactionsRequest) String() string
- func (m *GetTransactionsRequest) XXX_DiscardUnknown()
- func (m *GetTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTransactionsRequest) XXX_Merge(src proto.Message)
- func (m *GetTransactionsRequest) XXX_Size() int
- func (m *GetTransactionsRequest) XXX_Unmarshal(b []byte) error
- type GetTransactionsResponse
- func (*GetTransactionsResponse) Descriptor() ([]byte, []int)
- func (m *GetTransactionsResponse) GetTxnListWithProof() *TransactionListWithProof
- func (*GetTransactionsResponse) ProtoMessage()
- func (m *GetTransactionsResponse) Reset()
- func (m *GetTransactionsResponse) String() string
- func (m *GetTransactionsResponse) XXX_DiscardUnknown()
- func (m *GetTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTransactionsResponse) XXX_Merge(src proto.Message)
- func (m *GetTransactionsResponse) XXX_Size() int
- func (m *GetTransactionsResponse) XXX_Unmarshal(b []byte) error
- type HealthCheckRequest
- func (*HealthCheckRequest) Descriptor() ([]byte, []int)
- func (*HealthCheckRequest) ProtoMessage()
- func (m *HealthCheckRequest) Reset()
- func (m *HealthCheckRequest) String() string
- func (m *HealthCheckRequest) XXX_DiscardUnknown()
- func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthCheckRequest) XXX_Merge(src proto.Message)
- func (m *HealthCheckRequest) XXX_Size() int
- func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)
- func (m *HealthCheckResponse) GetIsHealthy() bool
- func (*HealthCheckResponse) ProtoMessage()
- func (m *HealthCheckResponse) Reset()
- func (m *HealthCheckResponse) String() string
- func (m *HealthCheckResponse) XXX_DiscardUnknown()
- func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthCheckResponse) XXX_Merge(src proto.Message)
- func (m *HealthCheckResponse) XXX_Size() int
- func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
- type LedgerInfo
- func (*LedgerInfo) Descriptor() ([]byte, []int)
- func (m *LedgerInfo) GetConsensusBlockId() []byte
- func (m *LedgerInfo) GetConsensusDataHash() []byte
- func (m *LedgerInfo) GetEpochNum() uint64
- func (m *LedgerInfo) GetTimestampUsecs() uint64
- func (m *LedgerInfo) GetTransactionAccumulatorHash() []byte
- func (m *LedgerInfo) GetVersion() uint64
- func (*LedgerInfo) ProtoMessage()
- func (m *LedgerInfo) Reset()
- func (m *LedgerInfo) String() string
- func (m *LedgerInfo) XXX_DiscardUnknown()
- func (m *LedgerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LedgerInfo) XXX_Merge(src proto.Message)
- func (m *LedgerInfo) XXX_Size() int
- func (m *LedgerInfo) XXX_Unmarshal(b []byte) error
- type LedgerInfoWithSignatures
- func (*LedgerInfoWithSignatures) Descriptor() ([]byte, []int)
- func (m *LedgerInfoWithSignatures) GetLedgerInfo() *LedgerInfo
- func (m *LedgerInfoWithSignatures) GetSignatures() []*ValidatorSignature
- func (*LedgerInfoWithSignatures) ProtoMessage()
- func (m *LedgerInfoWithSignatures) Reset()
- func (m *LedgerInfoWithSignatures) String() string
- func (m *LedgerInfoWithSignatures) XXX_DiscardUnknown()
- func (m *LedgerInfoWithSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LedgerInfoWithSignatures) XXX_Merge(src proto.Message)
- func (m *LedgerInfoWithSignatures) XXX_Size() int
- func (m *LedgerInfoWithSignatures) XXX_Unmarshal(b []byte) error
- type MempoolAddTransactionStatus
- func (*MempoolAddTransactionStatus) Descriptor() ([]byte, []int)
- func (m *MempoolAddTransactionStatus) GetCode() MempoolAddTransactionStatusCode
- func (m *MempoolAddTransactionStatus) GetMessage() string
- func (*MempoolAddTransactionStatus) ProtoMessage()
- func (m *MempoolAddTransactionStatus) Reset()
- func (m *MempoolAddTransactionStatus) String() string
- func (m *MempoolAddTransactionStatus) XXX_DiscardUnknown()
- func (m *MempoolAddTransactionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MempoolAddTransactionStatus) XXX_Merge(src proto.Message)
- func (m *MempoolAddTransactionStatus) XXX_Size() int
- func (m *MempoolAddTransactionStatus) XXX_Unmarshal(b []byte) error
- type MempoolAddTransactionStatusCode
- type MempoolClient
- type MempoolServer
- type Program
- func (*Program) Descriptor() ([]byte, []int)
- func (m *Program) GetArguments() []*TransactionArgument
- func (m *Program) GetCode() []byte
- func (m *Program) GetModules() [][]byte
- func (*Program) ProtoMessage()
- func (m *Program) Reset()
- func (m *Program) String() string
- func (m *Program) XXX_DiscardUnknown()
- func (m *Program) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Program) XXX_Merge(src proto.Message)
- func (m *Program) XXX_Size() int
- func (m *Program) XXX_Unmarshal(b []byte) error
- type RawTransaction
- func (*RawTransaction) Descriptor() ([]byte, []int)
- func (m *RawTransaction) GetExpirationTime() uint64
- func (m *RawTransaction) GetGasUnitPrice() uint64
- func (m *RawTransaction) GetMaxGasAmount() uint64
- func (m *RawTransaction) GetPayload() isRawTransaction_Payload
- func (m *RawTransaction) GetProgram() *Program
- func (m *RawTransaction) GetSenderAccount() []byte
- func (m *RawTransaction) GetSequenceNumber() uint64
- func (m *RawTransaction) GetWriteSet() *WriteSet
- func (*RawTransaction) ProtoMessage()
- func (m *RawTransaction) Reset()
- func (m *RawTransaction) String() string
- func (m *RawTransaction) XXX_DiscardUnknown()
- func (m *RawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawTransaction) XXX_Merge(src proto.Message)
- func (*RawTransaction) XXX_OneofWrappers() []interface{}
- func (m *RawTransaction) XXX_Size() int
- func (m *RawTransaction) XXX_Unmarshal(b []byte) error
- type RawTransaction_Program
- type RawTransaction_WriteSet
- type RequestItem
- func (*RequestItem) Descriptor() ([]byte, []int)
- func (m *RequestItem) GetGetAccountStateRequest() *GetAccountStateRequest
- func (m *RequestItem) GetGetAccountTransactionBySequenceNumberRequest() *GetAccountTransactionBySequenceNumberRequest
- func (m *RequestItem) GetGetEventsByEventAccessPathRequest() *GetEventsByEventAccessPathRequest
- func (m *RequestItem) GetGetTransactionsRequest() *GetTransactionsRequest
- func (m *RequestItem) GetRequestedItems() isRequestItem_RequestedItems
- func (*RequestItem) ProtoMessage()
- func (m *RequestItem) Reset()
- func (m *RequestItem) String() string
- func (m *RequestItem) XXX_DiscardUnknown()
- func (m *RequestItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestItem) XXX_Merge(src proto.Message)
- func (*RequestItem) XXX_OneofWrappers() []interface{}
- func (m *RequestItem) XXX_Size() int
- func (m *RequestItem) XXX_Unmarshal(b []byte) error
- type RequestItem_GetAccountStateRequest
- type RequestItem_GetAccountTransactionBySequenceNumberRequest
- type RequestItem_GetEventsByEventAccessPathRequest
- type RequestItem_GetTransactionsRequest
- type ResponseItem
- func (*ResponseItem) Descriptor() ([]byte, []int)
- func (m *ResponseItem) GetGetAccountStateResponse() *GetAccountStateResponse
- func (m *ResponseItem) GetGetAccountTransactionBySequenceNumberResponse() *GetAccountTransactionBySequenceNumberResponse
- func (m *ResponseItem) GetGetEventsByEventAccessPathResponse() *GetEventsByEventAccessPathResponse
- func (m *ResponseItem) GetGetTransactionsResponse() *GetTransactionsResponse
- func (m *ResponseItem) GetResponseItems() isResponseItem_ResponseItems
- func (*ResponseItem) ProtoMessage()
- func (m *ResponseItem) Reset()
- func (m *ResponseItem) String() string
- func (m *ResponseItem) XXX_DiscardUnknown()
- func (m *ResponseItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseItem) XXX_Merge(src proto.Message)
- func (*ResponseItem) XXX_OneofWrappers() []interface{}
- func (m *ResponseItem) XXX_Size() int
- func (m *ResponseItem) XXX_Unmarshal(b []byte) error
- type ResponseItem_GetAccountStateResponse
- type ResponseItem_GetAccountTransactionBySequenceNumberResponse
- type ResponseItem_GetEventsByEventAccessPathResponse
- type ResponseItem_GetTransactionsResponse
- type RuntimeStatus
- type SignedTransaction
- func (*SignedTransaction) Descriptor() ([]byte, []int)
- func (m *SignedTransaction) GetRawTxnBytes() []byte
- func (m *SignedTransaction) GetSenderPublicKey() []byte
- func (m *SignedTransaction) GetSenderSignature() []byte
- func (*SignedTransaction) ProtoMessage()
- func (m *SignedTransaction) Reset()
- func (m *SignedTransaction) String() string
- func (m *SignedTransaction) XXX_DiscardUnknown()
- func (m *SignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedTransaction) XXX_Merge(src proto.Message)
- func (m *SignedTransaction) XXX_Size() int
- func (m *SignedTransaction) XXX_Unmarshal(b []byte) error
- type SignedTransactionProof
- func (*SignedTransactionProof) Descriptor() ([]byte, []int)
- func (m *SignedTransactionProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof
- func (m *SignedTransactionProof) GetTransactionInfo() *TransactionInfo
- func (*SignedTransactionProof) ProtoMessage()
- func (m *SignedTransactionProof) Reset()
- func (m *SignedTransactionProof) String() string
- func (m *SignedTransactionProof) XXX_DiscardUnknown()
- func (m *SignedTransactionProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedTransactionProof) XXX_Merge(src proto.Message)
- func (m *SignedTransactionProof) XXX_Size() int
- func (m *SignedTransactionProof) XXX_Unmarshal(b []byte) error
- type SignedTransactionWithProof
- func (*SignedTransactionWithProof) Descriptor() ([]byte, []int)
- func (m *SignedTransactionWithProof) GetEvents() *EventsList
- func (m *SignedTransactionWithProof) GetProof() *SignedTransactionProof
- func (m *SignedTransactionWithProof) GetSignedTransaction() *SignedTransaction
- func (m *SignedTransactionWithProof) GetVersion() uint64
- func (*SignedTransactionWithProof) ProtoMessage()
- func (m *SignedTransactionWithProof) Reset()
- func (m *SignedTransactionWithProof) String() string
- func (m *SignedTransactionWithProof) XXX_DiscardUnknown()
- func (m *SignedTransactionWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedTransactionWithProof) XXX_Merge(src proto.Message)
- func (m *SignedTransactionWithProof) XXX_Size() int
- func (m *SignedTransactionWithProof) XXX_Unmarshal(b []byte) error
- type SignedTransactionsBlock
- func (*SignedTransactionsBlock) Descriptor() ([]byte, []int)
- func (m *SignedTransactionsBlock) GetTransactions() []*SignedTransaction
- func (m *SignedTransactionsBlock) GetValidatorPublicKey() []byte
- func (m *SignedTransactionsBlock) GetValidatorSignature() []byte
- func (*SignedTransactionsBlock) ProtoMessage()
- func (m *SignedTransactionsBlock) Reset()
- func (m *SignedTransactionsBlock) String() string
- func (m *SignedTransactionsBlock) XXX_DiscardUnknown()
- func (m *SignedTransactionsBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedTransactionsBlock) XXX_Merge(src proto.Message)
- func (m *SignedTransactionsBlock) XXX_Size() int
- func (m *SignedTransactionsBlock) XXX_Unmarshal(b []byte) error
- type SparseMerkleProof
- func (*SparseMerkleProof) Descriptor() ([]byte, []int)
- func (m *SparseMerkleProof) GetBitmap() []byte
- func (m *SparseMerkleProof) GetLeaf() []byte
- func (m *SparseMerkleProof) GetNonDefaultSiblings() [][]byte
- func (*SparseMerkleProof) ProtoMessage()
- func (m *SparseMerkleProof) Reset()
- func (m *SparseMerkleProof) String() string
- func (m *SparseMerkleProof) XXX_DiscardUnknown()
- func (m *SparseMerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SparseMerkleProof) XXX_Merge(src proto.Message)
- func (m *SparseMerkleProof) XXX_Size() int
- func (m *SparseMerkleProof) XXX_Unmarshal(b []byte) error
- type SubmitTransactionRequest
- func (*SubmitTransactionRequest) Descriptor() ([]byte, []int)
- func (m *SubmitTransactionRequest) GetSignedTxn() *SignedTransaction
- func (*SubmitTransactionRequest) ProtoMessage()
- func (m *SubmitTransactionRequest) Reset()
- func (m *SubmitTransactionRequest) String() string
- func (m *SubmitTransactionRequest) XXX_DiscardUnknown()
- func (m *SubmitTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubmitTransactionRequest) XXX_Merge(src proto.Message)
- func (m *SubmitTransactionRequest) XXX_Size() int
- func (m *SubmitTransactionRequest) XXX_Unmarshal(b []byte) error
- type SubmitTransactionResponse
- func (*SubmitTransactionResponse) Descriptor() ([]byte, []int)
- func (m *SubmitTransactionResponse) GetAcStatus() *AdmissionControlStatus
- func (m *SubmitTransactionResponse) GetMempoolStatus() *MempoolAddTransactionStatus
- func (m *SubmitTransactionResponse) GetStatus() isSubmitTransactionResponse_Status
- func (m *SubmitTransactionResponse) GetValidatorId() []byte
- func (m *SubmitTransactionResponse) GetVmStatus() *VMStatus
- func (*SubmitTransactionResponse) ProtoMessage()
- func (m *SubmitTransactionResponse) Reset()
- func (m *SubmitTransactionResponse) String() string
- func (m *SubmitTransactionResponse) XXX_DiscardUnknown()
- func (m *SubmitTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubmitTransactionResponse) XXX_Merge(src proto.Message)
- func (*SubmitTransactionResponse) XXX_OneofWrappers() []interface{}
- func (m *SubmitTransactionResponse) XXX_Size() int
- func (m *SubmitTransactionResponse) XXX_Unmarshal(b []byte) error
- type SubmitTransactionResponse_AcStatus
- type SubmitTransactionResponse_MempoolStatus
- type SubmitTransactionResponse_VmStatus
- type TransactionArgument
- func (*TransactionArgument) Descriptor() ([]byte, []int)
- func (m *TransactionArgument) GetData() []byte
- func (m *TransactionArgument) GetType() TransactionArgument_ArgType
- func (*TransactionArgument) ProtoMessage()
- func (m *TransactionArgument) Reset()
- func (m *TransactionArgument) String() string
- func (m *TransactionArgument) XXX_DiscardUnknown()
- func (m *TransactionArgument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionArgument) XXX_Merge(src proto.Message)
- func (m *TransactionArgument) XXX_Size() int
- func (m *TransactionArgument) XXX_Unmarshal(b []byte) error
- type TransactionArgument_ArgType
- type TransactionExclusion
- func (*TransactionExclusion) Descriptor() ([]byte, []int)
- func (m *TransactionExclusion) GetSender() []byte
- func (m *TransactionExclusion) GetSequenceNumber() uint64
- func (*TransactionExclusion) ProtoMessage()
- func (m *TransactionExclusion) Reset()
- func (m *TransactionExclusion) String() string
- func (m *TransactionExclusion) XXX_DiscardUnknown()
- func (m *TransactionExclusion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionExclusion) XXX_Merge(src proto.Message)
- func (m *TransactionExclusion) XXX_Size() int
- func (m *TransactionExclusion) XXX_Unmarshal(b []byte) error
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)
- func (m *TransactionInfo) GetEventRootHash() []byte
- func (m *TransactionInfo) GetGasUsed() uint64
- func (m *TransactionInfo) GetSignedTransactionHash() []byte
- func (m *TransactionInfo) GetStateRootHash() []byte
- func (*TransactionInfo) ProtoMessage()
- func (m *TransactionInfo) Reset()
- func (m *TransactionInfo) String() string
- func (m *TransactionInfo) XXX_DiscardUnknown()
- func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionInfo) XXX_Merge(src proto.Message)
- func (m *TransactionInfo) XXX_Size() int
- func (m *TransactionInfo) XXX_Unmarshal(b []byte) error
- type TransactionListWithProof
- func (*TransactionListWithProof) Descriptor() ([]byte, []int)
- func (m *TransactionListWithProof) GetEventsForVersions() *EventsForVersions
- func (m *TransactionListWithProof) GetFirstTransactionVersion() *wrappers.UInt64Value
- func (m *TransactionListWithProof) GetInfos() []*TransactionInfo
- func (m *TransactionListWithProof) GetProofOfFirstTransaction() *AccumulatorProof
- func (m *TransactionListWithProof) GetProofOfLastTransaction() *AccumulatorProof
- func (m *TransactionListWithProof) GetTransactions() []*SignedTransaction
- func (*TransactionListWithProof) ProtoMessage()
- func (m *TransactionListWithProof) Reset()
- func (m *TransactionListWithProof) String() string
- func (m *TransactionListWithProof) XXX_DiscardUnknown()
- func (m *TransactionListWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionListWithProof) XXX_Merge(src proto.Message)
- func (m *TransactionListWithProof) XXX_Size() int
- func (m *TransactionListWithProof) XXX_Unmarshal(b []byte) error
- type TransactionToCommit
- func (*TransactionToCommit) Descriptor() ([]byte, []int)
- func (m *TransactionToCommit) GetAccountStates() []*AccountState
- func (m *TransactionToCommit) GetEvents() []*Event
- func (m *TransactionToCommit) GetGasUsed() uint64
- func (m *TransactionToCommit) GetSignedTxn() *SignedTransaction
- func (*TransactionToCommit) ProtoMessage()
- func (m *TransactionToCommit) Reset()
- func (m *TransactionToCommit) String() string
- func (m *TransactionToCommit) XXX_DiscardUnknown()
- func (m *TransactionToCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionToCommit) XXX_Merge(src proto.Message)
- func (m *TransactionToCommit) XXX_Size() int
- func (m *TransactionToCommit) XXX_Unmarshal(b []byte) error
- type UpdateToLatestLedgerRequest
- func (*UpdateToLatestLedgerRequest) Descriptor() ([]byte, []int)
- func (m *UpdateToLatestLedgerRequest) GetClientKnownVersion() uint64
- func (m *UpdateToLatestLedgerRequest) GetRequestedItems() []*RequestItem
- func (*UpdateToLatestLedgerRequest) ProtoMessage()
- func (m *UpdateToLatestLedgerRequest) Reset()
- func (m *UpdateToLatestLedgerRequest) String() string
- func (m *UpdateToLatestLedgerRequest) XXX_DiscardUnknown()
- func (m *UpdateToLatestLedgerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateToLatestLedgerRequest) XXX_Merge(src proto.Message)
- func (m *UpdateToLatestLedgerRequest) XXX_Size() int
- func (m *UpdateToLatestLedgerRequest) XXX_Unmarshal(b []byte) error
- type UpdateToLatestLedgerResponse
- func (*UpdateToLatestLedgerResponse) Descriptor() ([]byte, []int)
- func (m *UpdateToLatestLedgerResponse) GetLedgerInfoWithSigs() *LedgerInfoWithSignatures
- func (m *UpdateToLatestLedgerResponse) GetResponseItems() []*ResponseItem
- func (m *UpdateToLatestLedgerResponse) GetValidatorChangeEvents() []*ValidatorChangeEventWithProof
- func (*UpdateToLatestLedgerResponse) ProtoMessage()
- func (m *UpdateToLatestLedgerResponse) Reset()
- func (m *UpdateToLatestLedgerResponse) String() string
- func (m *UpdateToLatestLedgerResponse) XXX_DiscardUnknown()
- func (m *UpdateToLatestLedgerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateToLatestLedgerResponse) XXX_Merge(src proto.Message)
- func (m *UpdateToLatestLedgerResponse) XXX_Size() int
- func (m *UpdateToLatestLedgerResponse) XXX_Unmarshal(b []byte) error
- type VMInvariantViolationError
- type VMStatus
- func (*VMStatus) Descriptor() ([]byte, []int)
- func (m *VMStatus) GetDeserialization() BinaryError
- func (m *VMStatus) GetErrorType() isVMStatus_ErrorType
- func (m *VMStatus) GetExecution() *ExecutionStatus
- func (m *VMStatus) GetInvariantViolation() VMInvariantViolationError
- func (m *VMStatus) GetValidation() *VMValidationStatus
- func (m *VMStatus) GetVerification() *VMVerificationStatusList
- func (*VMStatus) ProtoMessage()
- func (m *VMStatus) Reset()
- func (m *VMStatus) String() string
- func (m *VMStatus) XXX_DiscardUnknown()
- func (m *VMStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VMStatus) XXX_Merge(src proto.Message)
- func (*VMStatus) XXX_OneofWrappers() []interface{}
- func (m *VMStatus) XXX_Size() int
- func (m *VMStatus) XXX_Unmarshal(b []byte) error
- type VMStatus_Deserialization
- type VMStatus_Execution
- type VMStatus_InvariantViolation
- type VMStatus_Validation
- type VMStatus_Verification
- type VMValidationStatus
- func (*VMValidationStatus) Descriptor() ([]byte, []int)
- func (m *VMValidationStatus) GetCode() VMValidationStatusCode
- func (m *VMValidationStatus) GetMessage() string
- func (*VMValidationStatus) ProtoMessage()
- func (m *VMValidationStatus) Reset()
- func (m *VMValidationStatus) String() string
- func (m *VMValidationStatus) XXX_DiscardUnknown()
- func (m *VMValidationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VMValidationStatus) XXX_Merge(src proto.Message)
- func (m *VMValidationStatus) XXX_Size() int
- func (m *VMValidationStatus) XXX_Unmarshal(b []byte) error
- type VMValidationStatusCode
- type VMVerificationErrorKind
- type VMVerificationStatus
- func (*VMVerificationStatus) Descriptor() ([]byte, []int)
- func (m *VMVerificationStatus) GetErrorKind() VMVerificationErrorKind
- func (m *VMVerificationStatus) GetMessage() string
- func (m *VMVerificationStatus) GetModuleIdx() uint32
- func (m *VMVerificationStatus) GetStatusKind() VMVerificationStatus_StatusKind
- func (*VMVerificationStatus) ProtoMessage()
- func (m *VMVerificationStatus) Reset()
- func (m *VMVerificationStatus) String() string
- func (m *VMVerificationStatus) XXX_DiscardUnknown()
- func (m *VMVerificationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VMVerificationStatus) XXX_Merge(src proto.Message)
- func (m *VMVerificationStatus) XXX_Size() int
- func (m *VMVerificationStatus) XXX_Unmarshal(b []byte) error
- type VMVerificationStatusList
- func (*VMVerificationStatusList) Descriptor() ([]byte, []int)
- func (m *VMVerificationStatusList) GetStatusList() []*VMVerificationStatus
- func (*VMVerificationStatusList) ProtoMessage()
- func (m *VMVerificationStatusList) Reset()
- func (m *VMVerificationStatusList) String() string
- func (m *VMVerificationStatusList) XXX_DiscardUnknown()
- func (m *VMVerificationStatusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VMVerificationStatusList) XXX_Merge(src proto.Message)
- func (m *VMVerificationStatusList) XXX_Size() int
- func (m *VMVerificationStatusList) XXX_Unmarshal(b []byte) error
- type VMVerificationStatus_StatusKind
- type ValidatorChangeEventWithProof
- func (*ValidatorChangeEventWithProof) Descriptor() ([]byte, []int)
- func (m *ValidatorChangeEventWithProof) GetEventWithProof() *EventWithProof
- func (m *ValidatorChangeEventWithProof) GetLedgerInfoWithSigs() *LedgerInfoWithSignatures
- func (*ValidatorChangeEventWithProof) ProtoMessage()
- func (m *ValidatorChangeEventWithProof) Reset()
- func (m *ValidatorChangeEventWithProof) String() string
- func (m *ValidatorChangeEventWithProof) XXX_DiscardUnknown()
- func (m *ValidatorChangeEventWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorChangeEventWithProof) XXX_Merge(src proto.Message)
- func (m *ValidatorChangeEventWithProof) XXX_Size() int
- func (m *ValidatorChangeEventWithProof) XXX_Unmarshal(b []byte) error
- type ValidatorPublicKeys
- func (*ValidatorPublicKeys) Descriptor() ([]byte, []int)
- func (m *ValidatorPublicKeys) GetAccountAddress() []byte
- func (m *ValidatorPublicKeys) GetConsensusPublicKey() []byte
- func (m *ValidatorPublicKeys) GetNetworkIdentityPublicKey() []byte
- func (m *ValidatorPublicKeys) GetNetworkSigningPublicKey() []byte
- func (*ValidatorPublicKeys) ProtoMessage()
- func (m *ValidatorPublicKeys) Reset()
- func (m *ValidatorPublicKeys) String() string
- func (m *ValidatorPublicKeys) XXX_DiscardUnknown()
- func (m *ValidatorPublicKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorPublicKeys) XXX_Merge(src proto.Message)
- func (m *ValidatorPublicKeys) XXX_Size() int
- func (m *ValidatorPublicKeys) XXX_Unmarshal(b []byte) error
- type ValidatorSet
- func (*ValidatorSet) Descriptor() ([]byte, []int)
- func (m *ValidatorSet) GetValidatorPublicKeys() []*ValidatorPublicKeys
- func (*ValidatorSet) ProtoMessage()
- func (m *ValidatorSet) Reset()
- func (m *ValidatorSet) String() string
- func (m *ValidatorSet) XXX_DiscardUnknown()
- func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorSet) XXX_Merge(src proto.Message)
- func (m *ValidatorSet) XXX_Size() int
- func (m *ValidatorSet) XXX_Unmarshal(b []byte) error
- type ValidatorSignature
- func (*ValidatorSignature) Descriptor() ([]byte, []int)
- func (m *ValidatorSignature) GetSignature() []byte
- func (m *ValidatorSignature) GetValidatorId() []byte
- func (*ValidatorSignature) ProtoMessage()
- func (m *ValidatorSignature) Reset()
- func (m *ValidatorSignature) String() string
- func (m *ValidatorSignature) XXX_DiscardUnknown()
- func (m *ValidatorSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorSignature) XXX_Merge(src proto.Message)
- func (m *ValidatorSignature) XXX_Size() int
- func (m *ValidatorSignature) XXX_Unmarshal(b []byte) error
- type WriteOp
- func (*WriteOp) Descriptor() ([]byte, []int)
- func (m *WriteOp) GetAccessPath() *AccessPath
- func (m *WriteOp) GetType() WriteOpType
- func (m *WriteOp) GetValue() []byte
- func (*WriteOp) ProtoMessage()
- func (m *WriteOp) Reset()
- func (m *WriteOp) String() string
- func (m *WriteOp) XXX_DiscardUnknown()
- func (m *WriteOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteOp) XXX_Merge(src proto.Message)
- func (m *WriteOp) XXX_Size() int
- func (m *WriteOp) XXX_Unmarshal(b []byte) error
- type WriteOpType
- type WriteSet
- func (*WriteSet) Descriptor() ([]byte, []int)
- func (m *WriteSet) GetWriteSet() []*WriteOp
- func (*WriteSet) ProtoMessage()
- func (m *WriteSet) Reset()
- func (m *WriteSet) String() string
- func (m *WriteSet) XXX_DiscardUnknown()
- func (m *WriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteSet) XXX_Merge(src proto.Message)
- func (m *WriteSet) XXX_Size() int
- func (m *WriteSet) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var AdmissionControlStatusCode_name = map[int32]string{
0: "Accepted",
1: "Blacklisted",
2: "Rejected",
}
var AdmissionControlStatusCode_value = map[string]int32{
"Accepted": 0,
"Blacklisted": 1,
"Rejected": 2,
}
var ArithmeticError_ArithmeticErrorType_name = map[int32]string{
0: "UnknownArithmeticError",
1: "Underflow",
2: "Overflow",
3: "DivisionByZero",
}
var ArithmeticError_ArithmeticErrorType_value = map[string]int32{
"UnknownArithmeticError": 0,
"Underflow": 1,
"Overflow": 2,
"DivisionByZero": 3,
}
var BinaryError_name = map[int32]string{
0: "UnknownBinaryError",
1: "Malformed",
2: "BadMagic",
3: "UnknownVersion",
4: "UnknownTableType",
5: "UnknownSignatureType",
6: "UnknownSerializedType",
7: "UnknownOpcode",
8: "BadHeaderTable",
9: "UnexpectedSignatureType",
10: "DuplicateTable",
}
var BinaryError_value = map[string]int32{
"UnknownBinaryError": 0,
"Malformed": 1,
"BadMagic": 2,
"UnknownVersion": 3,
"UnknownTableType": 4,
"UnknownSignatureType": 5,
"UnknownSerializedType": 6,
"UnknownOpcode": 7,
"BadHeaderTable": 8,
"UnexpectedSignatureType": 9,
"DuplicateTable": 10,
}
var DynamicReferenceError_DynamicReferenceErrorType_name = map[int32]string{
0: "UnknownDynamicReferenceError",
1: "MoveOfBorrowedResource",
2: "GlobalRefAlreadyReleased",
3: "MissingReleaseRef",
4: "GlobalAlreadyBorrowed",
}
var DynamicReferenceError_DynamicReferenceErrorType_value = map[string]int32{
"UnknownDynamicReferenceError": 0,
"MoveOfBorrowedResource": 1,
"GlobalRefAlreadyReleased": 2,
"MissingReleaseRef": 3,
"GlobalAlreadyBorrowed": 4,
}
var MempoolAddTransactionStatusCode_name = map[int32]string{
0: "Valid",
1: "InsufficientBalance",
2: "InvalidSeqNumber",
3: "MempoolIsFull",
4: "TooManyTransactions",
5: "InvalidUpdate",
}
var MempoolAddTransactionStatusCode_value = map[string]int32{
"Valid": 0,
"InsufficientBalance": 1,
"InvalidSeqNumber": 2,
"MempoolIsFull": 3,
"TooManyTransactions": 4,
"InvalidUpdate": 5,
}
var RuntimeStatus_name = map[int32]string{
0: "UnknownRuntimeStatus",
1: "Executed",
2: "OutOfGas",
3: "ResourceDoesNotExist",
4: "ResourceAlreadyExists",
5: "EvictedAccountAccess",
6: "AccountAddressAlreadyExists",
7: "TypeError",
8: "MissingData",
9: "DataFormatError",
10: "InvalidData",
11: "RemoteDataError",
12: "CannotWriteExistingResource",
13: "ValueSerializationError",
14: "ValueDeserializationError",
15: "DuplicateModuleName",
}
var RuntimeStatus_value = map[string]int32{
"UnknownRuntimeStatus": 0,
"Executed": 1,
"OutOfGas": 2,
"ResourceDoesNotExist": 3,
"ResourceAlreadyExists": 4,
"EvictedAccountAccess": 5,
"AccountAddressAlreadyExists": 6,
"TypeError": 7,
"MissingData": 8,
"DataFormatError": 9,
"InvalidData": 10,
"RemoteDataError": 11,
"CannotWriteExistingResource": 12,
"ValueSerializationError": 13,
"ValueDeserializationError": 14,
"DuplicateModuleName": 15,
}
var TransactionArgument_ArgType_name = map[int32]string{
0: "U64",
1: "ADDRESS",
2: "STRING",
3: "BYTEARRAY",
}
var TransactionArgument_ArgType_value = map[string]int32{
"U64": 0,
"ADDRESS": 1,
"STRING": 2,
"BYTEARRAY": 3,
}
var VMInvariantViolationError_name = map[int32]string{
0: "UnknownInvariantViolationError",
1: "OutOfBoundsIndex",
2: "OutOfBoundsRange",
3: "EmptyValueStack",
4: "EmptyCallStack",
5: "PCOverflow",
6: "LinkerError",
7: "LocalReferenceError",
8: "StorageError",
}
var VMInvariantViolationError_value = map[string]int32{
"UnknownInvariantViolationError": 0,
"OutOfBoundsIndex": 1,
"OutOfBoundsRange": 2,
"EmptyValueStack": 3,
"EmptyCallStack": 4,
"PCOverflow": 5,
"LinkerError": 6,
"LocalReferenceError": 7,
"StorageError": 8,
}
var VMValidationStatusCode_name = map[int32]string{
0: "UnknownValidationStatus",
1: "InvalidSignature",
2: "InvalidAuthKey",
3: "SequenceNumberTooOld",
4: "SequenceNumberTooNew",
5: "InsufficientBalanceForTransactionFee",
6: "TransactionExpired",
7: "SendingAccountDoesNotExist",
8: "RejectedWriteSet",
9: "InvalidWriteSet",
10: "ExceededMaxTransactionSize",
11: "UnknownScript",
12: "UnknownModule",
13: "MaxGasUnitsExceedsMaxGasUnitsBound",
14: "MaxGasUnitsBelowMinTransactionGasUnits",
15: "GasUnitPriceBelowMinBound",
16: "GasUnitPriceAboveMaxBound",
}
var VMValidationStatusCode_value = map[string]int32{
"UnknownValidationStatus": 0,
"InvalidSignature": 1,
"InvalidAuthKey": 2,
"SequenceNumberTooOld": 3,
"SequenceNumberTooNew": 4,
"InsufficientBalanceForTransactionFee": 5,
"TransactionExpired": 6,
"SendingAccountDoesNotExist": 7,
"RejectedWriteSet": 8,
"InvalidWriteSet": 9,
"ExceededMaxTransactionSize": 10,
"UnknownScript": 11,
"UnknownModule": 12,
"MaxGasUnitsExceedsMaxGasUnitsBound": 13,
"MaxGasUnitsBelowMinTransactionGasUnits": 14,
"GasUnitPriceBelowMinBound": 15,
"GasUnitPriceAboveMaxBound": 16,
}
var VMVerificationErrorKind_name = map[int32]string{
0: "UnknownVerificationError",
1: "IndexOutOfBounds",
2: "RangeOutOfBounds",
3: "InvalidSignatureToken",
4: "InvalidFieldDefReference",
5: "RecursiveStructDefinition",
6: "InvalidResourceField",
7: "InvalidFallThrough",
8: "JoinFailure",
9: "NegativeStackSizeWithinBlock",
10: "UnbalancedStack",
11: "InvalidMainFunctionSignature",
12: "DuplicateElement",
13: "InvalidModuleHandle",
14: "UnimplementedHandle",
15: "InconsistentFields",
16: "UnusedFields",
17: "LookupFailed",
18: "VisibilityMismatch",
19: "TypeResolutionFailure",
20: "TypeMismatch",
21: "MissingDependency",
22: "PopReferenceError",
23: "PopResourceError",
24: "ReleaseRefTypeMismatchError",
25: "BrTypeMismatchError",
26: "AssertTypeMismatchError",
27: "StLocTypeMismatchError",
28: "StLocUnsafeToDestroyError",
29: "RetUnsafeToDestroyError",
30: "RetTypeMismatchError",
31: "FreezeRefTypeMismatchError",
32: "FreezeRefExistsMutableBorrowError",
33: "BorrowFieldTypeMismatchError",
34: "BorrowFieldBadFieldError",
35: "BorrowFieldExistsMutableBorrowError",
36: "CopyLocUnavailableError",
37: "CopyLocResourceError",
38: "CopyLocExistsBorrowError",
39: "MoveLocUnavailableError",
40: "MoveLocExistsBorrowError",
41: "BorrowLocReferenceError",
42: "BorrowLocUnavailableError",
43: "BorrowLocExistsBorrowError",
44: "CallTypeMismatchError",
45: "CallBorrowedMutableReferenceError",
46: "PackTypeMismatchError",
47: "UnpackTypeMismatchError",
48: "ReadRefTypeMismatchError",
49: "ReadRefResourceError",
50: "ReadRefExistsMutableBorrowError",
51: "WriteRefTypeMismatchError",
52: "WriteRefResourceError",
53: "WriteRefExistsBorrowError",
54: "WriteRefNoMutableReferenceError",
55: "IntegerOpTypeMismatchError",
56: "BooleanOpTypeMismatchError",
57: "EqualityOpTypeMismatchError",
58: "ExistsResourceTypeMismatchError",
59: "BorrowGlobalTypeMismatchError",
60: "BorrowGlobalNoResourceError",
61: "MoveFromTypeMismatchError",
62: "MoveFromNoResourceError",
63: "MoveToSenderTypeMismatchError",
64: "MoveToSenderNoResourceError",
65: "CreateAccountTypeMismatchError",
66: "ModuleAddressDoesNotMatchSender",
67: "NoModuleHandles",
}
var VMVerificationErrorKind_value = map[string]int32{
"UnknownVerificationError": 0,
"IndexOutOfBounds": 1,
"RangeOutOfBounds": 2,
"InvalidSignatureToken": 3,
"InvalidFieldDefReference": 4,
"RecursiveStructDefinition": 5,
"InvalidResourceField": 6,
"InvalidFallThrough": 7,
"JoinFailure": 8,
"NegativeStackSizeWithinBlock": 9,
"UnbalancedStack": 10,
"InvalidMainFunctionSignature": 11,
"DuplicateElement": 12,
"InvalidModuleHandle": 13,
"UnimplementedHandle": 14,
"InconsistentFields": 15,
"UnusedFields": 16,
"LookupFailed": 17,
"VisibilityMismatch": 18,
"TypeResolutionFailure": 19,
"TypeMismatch": 20,
"MissingDependency": 21,
"PopReferenceError": 22,
"PopResourceError": 23,
"ReleaseRefTypeMismatchError": 24,
"BrTypeMismatchError": 25,
"AssertTypeMismatchError": 26,
"StLocTypeMismatchError": 27,
"StLocUnsafeToDestroyError": 28,
"RetUnsafeToDestroyError": 29,
"RetTypeMismatchError": 30,
"FreezeRefTypeMismatchError": 31,
"FreezeRefExistsMutableBorrowError": 32,
"BorrowFieldTypeMismatchError": 33,
"BorrowFieldBadFieldError": 34,
"BorrowFieldExistsMutableBorrowError": 35,
"CopyLocUnavailableError": 36,
"CopyLocResourceError": 37,
"CopyLocExistsBorrowError": 38,
"MoveLocUnavailableError": 39,
"MoveLocExistsBorrowError": 40,
"BorrowLocReferenceError": 41,
"BorrowLocUnavailableError": 42,
"BorrowLocExistsBorrowError": 43,
"CallTypeMismatchError": 44,
"CallBorrowedMutableReferenceError": 45,
"PackTypeMismatchError": 46,
"UnpackTypeMismatchError": 47,
"ReadRefTypeMismatchError": 48,
"ReadRefResourceError": 49,
"ReadRefExistsMutableBorrowError": 50,
"WriteRefTypeMismatchError": 51,
"WriteRefResourceError": 52,
"WriteRefExistsBorrowError": 53,
"WriteRefNoMutableReferenceError": 54,
"IntegerOpTypeMismatchError": 55,
"BooleanOpTypeMismatchError": 56,
"EqualityOpTypeMismatchError": 57,
"ExistsResourceTypeMismatchError": 58,
"BorrowGlobalTypeMismatchError": 59,
"BorrowGlobalNoResourceError": 60,
"MoveFromTypeMismatchError": 61,
"MoveFromNoResourceError": 62,
"MoveToSenderTypeMismatchError": 63,
"MoveToSenderNoResourceError": 64,
"CreateAccountTypeMismatchError": 65,
"ModuleAddressDoesNotMatchSender": 66,
"NoModuleHandles": 67,
}
var VMVerificationStatus_StatusKind_name = map[int32]string{
0: "SCRIPT",
1: "MODULE",
}
var VMVerificationStatus_StatusKind_value = map[string]int32{
"SCRIPT": 0,
"MODULE": 1,
}
var WriteOpType_name = map[int32]string{
0: "Write",
1: "Delete",
}
var WriteOpType_value = map[string]int32{
"Write": 0,
"Delete": 1,
}
Functions ¶
func RegisterAdmissionControlServer ¶
func RegisterAdmissionControlServer(s *grpc.Server, srv AdmissionControlServer)
func RegisterMempoolServer ¶
func RegisterMempoolServer(s *grpc.Server, srv MempoolServer)
Types ¶
type AccessPath ¶
type AccessPath struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccessPath) Descriptor ¶
func (*AccessPath) Descriptor() ([]byte, []int)
func (*AccessPath) GetAddress ¶
func (m *AccessPath) GetAddress() []byte
func (*AccessPath) GetPath ¶
func (m *AccessPath) GetPath() []byte
func (*AccessPath) ProtoMessage ¶
func (*AccessPath) ProtoMessage()
func (*AccessPath) Reset ¶
func (m *AccessPath) Reset()
func (*AccessPath) String ¶
func (m *AccessPath) String() string
func (*AccessPath) XXX_DiscardUnknown ¶
func (m *AccessPath) XXX_DiscardUnknown()
func (*AccessPath) XXX_Marshal ¶
func (m *AccessPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessPath) XXX_Merge ¶
func (m *AccessPath) XXX_Merge(src proto.Message)
func (*AccessPath) XXX_Size ¶
func (m *AccessPath) XXX_Size() int
func (*AccessPath) XXX_Unmarshal ¶
func (m *AccessPath) XXX_Unmarshal(b []byte) error
type AccountState ¶
type AccountState struct { // Account address Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Account state blob Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account state as a whole. After execution, updates to accounts are passed in this form to storage for persistence.
func (*AccountState) Descriptor ¶
func (*AccountState) Descriptor() ([]byte, []int)
func (*AccountState) GetAddress ¶
func (m *AccountState) GetAddress() []byte
func (*AccountState) GetBlob ¶
func (m *AccountState) GetBlob() []byte
func (*AccountState) ProtoMessage ¶
func (*AccountState) ProtoMessage()
func (*AccountState) Reset ¶
func (m *AccountState) Reset()
func (*AccountState) String ¶
func (m *AccountState) String() string
func (*AccountState) XXX_DiscardUnknown ¶
func (m *AccountState) XXX_DiscardUnknown()
func (*AccountState) XXX_Marshal ¶
func (m *AccountState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountState) XXX_Merge ¶
func (m *AccountState) XXX_Merge(src proto.Message)
func (*AccountState) XXX_Size ¶
func (m *AccountState) XXX_Size() int
func (*AccountState) XXX_Unmarshal ¶
func (m *AccountState) XXX_Unmarshal(b []byte) error
type AccountStateBlob ¶
type AccountStateBlob struct { Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountStateBlob) Descriptor ¶
func (*AccountStateBlob) Descriptor() ([]byte, []int)
func (*AccountStateBlob) GetBlob ¶
func (m *AccountStateBlob) GetBlob() []byte
func (*AccountStateBlob) ProtoMessage ¶
func (*AccountStateBlob) ProtoMessage()
func (*AccountStateBlob) Reset ¶
func (m *AccountStateBlob) Reset()
func (*AccountStateBlob) String ¶
func (m *AccountStateBlob) String() string
func (*AccountStateBlob) XXX_DiscardUnknown ¶
func (m *AccountStateBlob) XXX_DiscardUnknown()
func (*AccountStateBlob) XXX_Marshal ¶
func (m *AccountStateBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountStateBlob) XXX_Merge ¶
func (m *AccountStateBlob) XXX_Merge(src proto.Message)
func (*AccountStateBlob) XXX_Size ¶
func (m *AccountStateBlob) XXX_Size() int
func (*AccountStateBlob) XXX_Unmarshal ¶
func (m *AccountStateBlob) XXX_Unmarshal(b []byte) error
type AccountStateProof ¶
type AccountStateProof struct { LedgerInfoToTransactionInfoProof *AccumulatorProof `` /* 165-byte string literal not displayed */ TransactionInfo *TransactionInfo `protobuf:"bytes,2,opt,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"` TransactionInfoToAccountProof *SparseMerkleProof `` /* 154-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The complete proof used to authenticate an account state.
func (*AccountStateProof) Descriptor ¶
func (*AccountStateProof) Descriptor() ([]byte, []int)
func (*AccountStateProof) GetLedgerInfoToTransactionInfoProof ¶
func (m *AccountStateProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof
func (*AccountStateProof) GetTransactionInfo ¶
func (m *AccountStateProof) GetTransactionInfo() *TransactionInfo
func (*AccountStateProof) GetTransactionInfoToAccountProof ¶
func (m *AccountStateProof) GetTransactionInfoToAccountProof() *SparseMerkleProof
func (*AccountStateProof) ProtoMessage ¶
func (*AccountStateProof) ProtoMessage()
func (*AccountStateProof) Reset ¶
func (m *AccountStateProof) Reset()
func (*AccountStateProof) String ¶
func (m *AccountStateProof) String() string
func (*AccountStateProof) XXX_DiscardUnknown ¶
func (m *AccountStateProof) XXX_DiscardUnknown()
func (*AccountStateProof) XXX_Marshal ¶
func (m *AccountStateProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountStateProof) XXX_Merge ¶
func (m *AccountStateProof) XXX_Merge(src proto.Message)
func (*AccountStateProof) XXX_Size ¶
func (m *AccountStateProof) XXX_Size() int
func (*AccountStateProof) XXX_Unmarshal ¶
func (m *AccountStateProof) XXX_Unmarshal(b []byte) error
type AccountStateWithProof ¶
type AccountStateWithProof struct { Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Blob *AccountStateBlob `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"` Proof *AccountStateProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountStateWithProof) Descriptor ¶
func (*AccountStateWithProof) Descriptor() ([]byte, []int)
func (*AccountStateWithProof) GetBlob ¶
func (m *AccountStateWithProof) GetBlob() *AccountStateBlob
func (*AccountStateWithProof) GetProof ¶
func (m *AccountStateWithProof) GetProof() *AccountStateProof
func (*AccountStateWithProof) GetVersion ¶
func (m *AccountStateWithProof) GetVersion() uint64
func (*AccountStateWithProof) ProtoMessage ¶
func (*AccountStateWithProof) ProtoMessage()
func (*AccountStateWithProof) Reset ¶
func (m *AccountStateWithProof) Reset()
func (*AccountStateWithProof) String ¶
func (m *AccountStateWithProof) String() string
func (*AccountStateWithProof) XXX_DiscardUnknown ¶
func (m *AccountStateWithProof) XXX_DiscardUnknown()
func (*AccountStateWithProof) XXX_Marshal ¶
func (m *AccountStateWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountStateWithProof) XXX_Merge ¶
func (m *AccountStateWithProof) XXX_Merge(src proto.Message)
func (*AccountStateWithProof) XXX_Size ¶
func (m *AccountStateWithProof) XXX_Size() int
func (*AccountStateWithProof) XXX_Unmarshal ¶
func (m *AccountStateWithProof) XXX_Unmarshal(b []byte) error
type AccumulatorProof ¶
type AccumulatorProof struct { // The bitmap indicating which siblings are default. 1 means non-default and // 0 means default. The LSB corresponds to the sibling at the bottom of the // accumulator. The leftmost 1-bit corresponds to the sibling at the level // just below root level in the accumulator, since this one is always // non-default. Bitmap uint64 `protobuf:"varint,1,opt,name=bitmap,proto3" json:"bitmap,omitempty"` // The non-default siblings. The ones near the root are at the beginning of // the list. NonDefaultSiblings [][]byte `protobuf:"bytes,2,rep,name=non_default_siblings,json=nonDefaultSiblings,proto3" json:"non_default_siblings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccumulatorProof) Descriptor ¶
func (*AccumulatorProof) Descriptor() ([]byte, []int)
func (*AccumulatorProof) GetBitmap ¶
func (m *AccumulatorProof) GetBitmap() uint64
func (*AccumulatorProof) GetNonDefaultSiblings ¶
func (m *AccumulatorProof) GetNonDefaultSiblings() [][]byte
func (*AccumulatorProof) ProtoMessage ¶
func (*AccumulatorProof) ProtoMessage()
func (*AccumulatorProof) Reset ¶
func (m *AccumulatorProof) Reset()
func (*AccumulatorProof) String ¶
func (m *AccumulatorProof) String() string
func (*AccumulatorProof) XXX_DiscardUnknown ¶
func (m *AccumulatorProof) XXX_DiscardUnknown()
func (*AccumulatorProof) XXX_Marshal ¶
func (m *AccumulatorProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccumulatorProof) XXX_Merge ¶
func (m *AccumulatorProof) XXX_Merge(src proto.Message)
func (*AccumulatorProof) XXX_Size ¶
func (m *AccumulatorProof) XXX_Size() int
func (*AccumulatorProof) XXX_Unmarshal ¶
func (m *AccumulatorProof) XXX_Unmarshal(b []byte) error
type AddTransactionWithValidationRequest ¶
type AddTransactionWithValidationRequest struct { // Transaction from a wallet SignedTxn *SignedTransaction `protobuf:"bytes,1,opt,name=signed_txn,json=signedTxn,proto3" json:"signed_txn,omitempty"` // Max amount of gas required to execute the transaction // Without running the program, it is very difficult to determine this number, // so we use the max gas specified by the signed transaction. // This field is still included separately from the signed transaction so that // if we have a better methodology in the future, we can more accurately // specify the max gas. MaxGasCost uint64 `protobuf:"varint,2,opt,name=max_gas_cost,json=maxGasCost,proto3" json:"max_gas_cost,omitempty"` // Latest sequence number of the involved account from state db. LatestSequenceNumber uint64 `protobuf:"varint,3,opt,name=latest_sequence_number,json=latestSequenceNumber,proto3" json:"latest_sequence_number,omitempty"` // Latest account balance of the involved account from state db. AccountBalance uint64 `protobuf:"varint,4,opt,name=account_balance,json=accountBalance,proto3" json:"account_balance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddTransactionWithValidationRequest) Descriptor ¶
func (*AddTransactionWithValidationRequest) Descriptor() ([]byte, []int)
func (*AddTransactionWithValidationRequest) GetAccountBalance ¶
func (m *AddTransactionWithValidationRequest) GetAccountBalance() uint64
func (*AddTransactionWithValidationRequest) GetLatestSequenceNumber ¶
func (m *AddTransactionWithValidationRequest) GetLatestSequenceNumber() uint64
func (*AddTransactionWithValidationRequest) GetMaxGasCost ¶
func (m *AddTransactionWithValidationRequest) GetMaxGasCost() uint64
func (*AddTransactionWithValidationRequest) GetSignedTxn ¶
func (m *AddTransactionWithValidationRequest) GetSignedTxn() *SignedTransaction
func (*AddTransactionWithValidationRequest) ProtoMessage ¶
func (*AddTransactionWithValidationRequest) ProtoMessage()
func (*AddTransactionWithValidationRequest) Reset ¶
func (m *AddTransactionWithValidationRequest) Reset()
func (*AddTransactionWithValidationRequest) String ¶
func (m *AddTransactionWithValidationRequest) String() string
func (*AddTransactionWithValidationRequest) XXX_DiscardUnknown ¶
func (m *AddTransactionWithValidationRequest) XXX_DiscardUnknown()
func (*AddTransactionWithValidationRequest) XXX_Marshal ¶
func (m *AddTransactionWithValidationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddTransactionWithValidationRequest) XXX_Merge ¶
func (m *AddTransactionWithValidationRequest) XXX_Merge(src proto.Message)
func (*AddTransactionWithValidationRequest) XXX_Size ¶
func (m *AddTransactionWithValidationRequest) XXX_Size() int
func (*AddTransactionWithValidationRequest) XXX_Unmarshal ¶
func (m *AddTransactionWithValidationRequest) XXX_Unmarshal(b []byte) error
type AddTransactionWithValidationResponse ¶
type AddTransactionWithValidationResponse struct { // The ledger version at the time of the transaction submitted. The submitted // transaction will have version bigger than this 'current_version' CurrentVersion uint64 `protobuf:"varint,1,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"` // The result of the transaction submission Status *MempoolAddTransactionStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddTransactionWithValidationResponse) Descriptor ¶
func (*AddTransactionWithValidationResponse) Descriptor() ([]byte, []int)
func (*AddTransactionWithValidationResponse) GetCurrentVersion ¶
func (m *AddTransactionWithValidationResponse) GetCurrentVersion() uint64
func (*AddTransactionWithValidationResponse) GetStatus ¶
func (m *AddTransactionWithValidationResponse) GetStatus() *MempoolAddTransactionStatus
func (*AddTransactionWithValidationResponse) ProtoMessage ¶
func (*AddTransactionWithValidationResponse) ProtoMessage()
func (*AddTransactionWithValidationResponse) Reset ¶
func (m *AddTransactionWithValidationResponse) Reset()
func (*AddTransactionWithValidationResponse) String ¶
func (m *AddTransactionWithValidationResponse) String() string
func (*AddTransactionWithValidationResponse) XXX_DiscardUnknown ¶
func (m *AddTransactionWithValidationResponse) XXX_DiscardUnknown()
func (*AddTransactionWithValidationResponse) XXX_Marshal ¶
func (m *AddTransactionWithValidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddTransactionWithValidationResponse) XXX_Merge ¶
func (m *AddTransactionWithValidationResponse) XXX_Merge(src proto.Message)
func (*AddTransactionWithValidationResponse) XXX_Size ¶
func (m *AddTransactionWithValidationResponse) XXX_Size() int
func (*AddTransactionWithValidationResponse) XXX_Unmarshal ¶
func (m *AddTransactionWithValidationResponse) XXX_Unmarshal(b []byte) error
type AdmissionControlClient ¶
type AdmissionControlClient interface { // Public API to submit transaction to a validator. SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error) // This API is used to update the client to the latest ledger version and // optionally also request 1..n other pieces of data. This allows for batch // queries. All queries return proofs that a client should check to validate // the data. Note that if a client only wishes to update to the latest // LedgerInfo and receive the proof of this latest version, they can simply // omit the requested_items (or pass an empty list) UpdateToLatestLedger(ctx context.Context, in *UpdateToLatestLedgerRequest, opts ...grpc.CallOption) (*UpdateToLatestLedgerResponse, error) }
AdmissionControlClient is the client API for AdmissionControl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdmissionControlClient ¶
func NewAdmissionControlClient(cc *grpc.ClientConn) AdmissionControlClient
type AdmissionControlServer ¶
type AdmissionControlServer interface { // Public API to submit transaction to a validator. SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error) // This API is used to update the client to the latest ledger version and // optionally also request 1..n other pieces of data. This allows for batch // queries. All queries return proofs that a client should check to validate // the data. Note that if a client only wishes to update to the latest // LedgerInfo and receive the proof of this latest version, they can simply // omit the requested_items (or pass an empty list) UpdateToLatestLedger(context.Context, *UpdateToLatestLedgerRequest) (*UpdateToLatestLedgerResponse, error) }
AdmissionControlServer is the server API for AdmissionControl service.
type AdmissionControlStatus ¶
type AdmissionControlStatus struct { Code AdmissionControlStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=admission_control.AdmissionControlStatusCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AC response status containing code and optionally an error message.
func (*AdmissionControlStatus) Descriptor ¶
func (*AdmissionControlStatus) Descriptor() ([]byte, []int)
func (*AdmissionControlStatus) GetCode ¶
func (m *AdmissionControlStatus) GetCode() AdmissionControlStatusCode
func (*AdmissionControlStatus) GetMessage ¶
func (m *AdmissionControlStatus) GetMessage() string
func (*AdmissionControlStatus) ProtoMessage ¶
func (*AdmissionControlStatus) ProtoMessage()
func (*AdmissionControlStatus) Reset ¶
func (m *AdmissionControlStatus) Reset()
func (*AdmissionControlStatus) String ¶
func (m *AdmissionControlStatus) String() string
func (*AdmissionControlStatus) XXX_DiscardUnknown ¶
func (m *AdmissionControlStatus) XXX_DiscardUnknown()
func (*AdmissionControlStatus) XXX_Marshal ¶
func (m *AdmissionControlStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdmissionControlStatus) XXX_Merge ¶
func (m *AdmissionControlStatus) XXX_Merge(src proto.Message)
func (*AdmissionControlStatus) XXX_Size ¶
func (m *AdmissionControlStatus) XXX_Size() int
func (*AdmissionControlStatus) XXX_Unmarshal ¶
func (m *AdmissionControlStatus) XXX_Unmarshal(b []byte) error
type AdmissionControlStatusCode ¶
type AdmissionControlStatusCode int32
Additional statuses that are possible from admission control in addition to VM statuses.
const ( // Validator accepted the transaction. AdmissionControlStatusCode_Accepted AdmissionControlStatusCode = 0 // The sender is blacklisted. AdmissionControlStatusCode_Blacklisted AdmissionControlStatusCode = 1 // The transaction is rejected, e.g. due to incorrect signature. AdmissionControlStatusCode_Rejected AdmissionControlStatusCode = 2 )
func (AdmissionControlStatusCode) EnumDescriptor ¶
func (AdmissionControlStatusCode) EnumDescriptor() ([]byte, []int)
func (AdmissionControlStatusCode) String ¶
func (x AdmissionControlStatusCode) String() string
type ArithmeticError ¶
type ArithmeticError struct { ErrorCode ArithmeticError_ArithmeticErrorType `` /* 136-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArithmeticError) Descriptor ¶
func (*ArithmeticError) Descriptor() ([]byte, []int)
func (*ArithmeticError) GetErrorCode ¶
func (m *ArithmeticError) GetErrorCode() ArithmeticError_ArithmeticErrorType
func (*ArithmeticError) ProtoMessage ¶
func (*ArithmeticError) ProtoMessage()
func (*ArithmeticError) Reset ¶
func (m *ArithmeticError) Reset()
func (*ArithmeticError) String ¶
func (m *ArithmeticError) String() string
func (*ArithmeticError) XXX_DiscardUnknown ¶
func (m *ArithmeticError) XXX_DiscardUnknown()
func (*ArithmeticError) XXX_Marshal ¶
func (m *ArithmeticError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArithmeticError) XXX_Merge ¶
func (m *ArithmeticError) XXX_Merge(src proto.Message)
func (*ArithmeticError) XXX_Size ¶
func (m *ArithmeticError) XXX_Size() int
func (*ArithmeticError) XXX_Unmarshal ¶
func (m *ArithmeticError) XXX_Unmarshal(b []byte) error
type ArithmeticError_ArithmeticErrorType ¶
type ArithmeticError_ArithmeticErrorType int32
const ( ArithmeticError_UnknownArithmeticError ArithmeticError_ArithmeticErrorType = 0 ArithmeticError_Underflow ArithmeticError_ArithmeticErrorType = 1 ArithmeticError_Overflow ArithmeticError_ArithmeticErrorType = 2 ArithmeticError_DivisionByZero ArithmeticError_ArithmeticErrorType = 3 )
func (ArithmeticError_ArithmeticErrorType) EnumDescriptor ¶
func (ArithmeticError_ArithmeticErrorType) EnumDescriptor() ([]byte, []int)
func (ArithmeticError_ArithmeticErrorType) String ¶
func (x ArithmeticError_ArithmeticErrorType) String() string
type AssertionFailure ¶
type AssertionFailure struct { AssertionErrorCode uint64 `protobuf:"varint,1,opt,name=assertion_error_code,json=assertionErrorCode,proto3" json:"assertion_error_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
user-defined assertion error code number
func (*AssertionFailure) Descriptor ¶
func (*AssertionFailure) Descriptor() ([]byte, []int)
func (*AssertionFailure) GetAssertionErrorCode ¶
func (m *AssertionFailure) GetAssertionErrorCode() uint64
func (*AssertionFailure) ProtoMessage ¶
func (*AssertionFailure) ProtoMessage()
func (*AssertionFailure) Reset ¶
func (m *AssertionFailure) Reset()
func (*AssertionFailure) String ¶
func (m *AssertionFailure) String() string
func (*AssertionFailure) XXX_DiscardUnknown ¶
func (m *AssertionFailure) XXX_DiscardUnknown()
func (*AssertionFailure) XXX_Marshal ¶
func (m *AssertionFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssertionFailure) XXX_Merge ¶
func (m *AssertionFailure) XXX_Merge(src proto.Message)
func (*AssertionFailure) XXX_Size ¶
func (m *AssertionFailure) XXX_Size() int
func (*AssertionFailure) XXX_Unmarshal ¶
func (m *AssertionFailure) XXX_Unmarshal(b []byte) error
type BinaryError ¶
type BinaryError int32
Errors that can arise from binary decoding (deserialization)
const ( BinaryError_UnknownBinaryError BinaryError = 0 BinaryError_Malformed BinaryError = 1 BinaryError_BadMagic BinaryError = 2 BinaryError_UnknownVersion BinaryError = 3 BinaryError_UnknownTableType BinaryError = 4 BinaryError_UnknownSignatureType BinaryError = 5 BinaryError_UnknownSerializedType BinaryError = 6 BinaryError_UnknownOpcode BinaryError = 7 BinaryError_BadHeaderTable BinaryError = 8 BinaryError_UnexpectedSignatureType BinaryError = 9 BinaryError_DuplicateTable BinaryError = 10 )
func (BinaryError) EnumDescriptor ¶
func (BinaryError) EnumDescriptor() ([]byte, []int)
func (BinaryError) String ¶
func (x BinaryError) String() string
type CommitTransactionsRequest ¶
type CommitTransactionsRequest struct { Transactions []*CommittedTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // agreed monotonic timestamp microseconds since the epoch for a committed block // used by Mempool to GC expired transactions BlockTimestampUsecs uint64 `protobuf:"varint,2,opt,name=block_timestamp_usecs,json=blockTimestampUsecs,proto3" json:"block_timestamp_usecs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
----------------------------------------------------------------------------- ---------------- CommitTransactions -----------------------------------------------------------------------------
func (*CommitTransactionsRequest) Descriptor ¶
func (*CommitTransactionsRequest) Descriptor() ([]byte, []int)
func (*CommitTransactionsRequest) GetBlockTimestampUsecs ¶
func (m *CommitTransactionsRequest) GetBlockTimestampUsecs() uint64
func (*CommitTransactionsRequest) GetTransactions ¶
func (m *CommitTransactionsRequest) GetTransactions() []*CommittedTransaction
func (*CommitTransactionsRequest) ProtoMessage ¶
func (*CommitTransactionsRequest) ProtoMessage()
func (*CommitTransactionsRequest) Reset ¶
func (m *CommitTransactionsRequest) Reset()
func (*CommitTransactionsRequest) String ¶
func (m *CommitTransactionsRequest) String() string
func (*CommitTransactionsRequest) XXX_DiscardUnknown ¶
func (m *CommitTransactionsRequest) XXX_DiscardUnknown()
func (*CommitTransactionsRequest) XXX_Marshal ¶
func (m *CommitTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommitTransactionsRequest) XXX_Merge ¶
func (m *CommitTransactionsRequest) XXX_Merge(src proto.Message)
func (*CommitTransactionsRequest) XXX_Size ¶
func (m *CommitTransactionsRequest) XXX_Size() int
func (*CommitTransactionsRequest) XXX_Unmarshal ¶
func (m *CommitTransactionsRequest) XXX_Unmarshal(b []byte) error
type CommitTransactionsResponse ¶
type CommitTransactionsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommitTransactionsResponse) Descriptor ¶
func (*CommitTransactionsResponse) Descriptor() ([]byte, []int)
func (*CommitTransactionsResponse) ProtoMessage ¶
func (*CommitTransactionsResponse) ProtoMessage()
func (*CommitTransactionsResponse) Reset ¶
func (m *CommitTransactionsResponse) Reset()
func (*CommitTransactionsResponse) String ¶
func (m *CommitTransactionsResponse) String() string
func (*CommitTransactionsResponse) XXX_DiscardUnknown ¶
func (m *CommitTransactionsResponse) XXX_DiscardUnknown()
func (*CommitTransactionsResponse) XXX_Marshal ¶
func (m *CommitTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommitTransactionsResponse) XXX_Merge ¶
func (m *CommitTransactionsResponse) XXX_Merge(src proto.Message)
func (*CommitTransactionsResponse) XXX_Size ¶
func (m *CommitTransactionsResponse) XXX_Size() int
func (*CommitTransactionsResponse) XXX_Unmarshal ¶
func (m *CommitTransactionsResponse) XXX_Unmarshal(b []byte) error
type CommittedTransaction ¶
type CommittedTransaction struct { Sender []byte `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` IsRejected bool `protobuf:"varint,3,opt,name=is_rejected,json=isRejected,proto3" json:"is_rejected,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommittedTransaction) Descriptor ¶
func (*CommittedTransaction) Descriptor() ([]byte, []int)
func (*CommittedTransaction) GetIsRejected ¶
func (m *CommittedTransaction) GetIsRejected() bool
func (*CommittedTransaction) GetSender ¶
func (m *CommittedTransaction) GetSender() []byte
func (*CommittedTransaction) GetSequenceNumber ¶
func (m *CommittedTransaction) GetSequenceNumber() uint64
func (*CommittedTransaction) ProtoMessage ¶
func (*CommittedTransaction) ProtoMessage()
func (*CommittedTransaction) Reset ¶
func (m *CommittedTransaction) Reset()
func (*CommittedTransaction) String ¶
func (m *CommittedTransaction) String() string
func (*CommittedTransaction) XXX_DiscardUnknown ¶
func (m *CommittedTransaction) XXX_DiscardUnknown()
func (*CommittedTransaction) XXX_Marshal ¶
func (m *CommittedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommittedTransaction) XXX_Merge ¶
func (m *CommittedTransaction) XXX_Merge(src proto.Message)
func (*CommittedTransaction) XXX_Size ¶
func (m *CommittedTransaction) XXX_Size() int
func (*CommittedTransaction) XXX_Unmarshal ¶
func (m *CommittedTransaction) XXX_Unmarshal(b []byte) error
type DynamicReferenceError ¶
type DynamicReferenceError struct { ErrorCode DynamicReferenceError_DynamicReferenceErrorType `` /* 148-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DynamicReferenceError) Descriptor ¶
func (*DynamicReferenceError) Descriptor() ([]byte, []int)
func (*DynamicReferenceError) GetErrorCode ¶
func (m *DynamicReferenceError) GetErrorCode() DynamicReferenceError_DynamicReferenceErrorType
func (*DynamicReferenceError) ProtoMessage ¶
func (*DynamicReferenceError) ProtoMessage()
func (*DynamicReferenceError) Reset ¶
func (m *DynamicReferenceError) Reset()
func (*DynamicReferenceError) String ¶
func (m *DynamicReferenceError) String() string
func (*DynamicReferenceError) XXX_DiscardUnknown ¶
func (m *DynamicReferenceError) XXX_DiscardUnknown()
func (*DynamicReferenceError) XXX_Marshal ¶
func (m *DynamicReferenceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DynamicReferenceError) XXX_Merge ¶
func (m *DynamicReferenceError) XXX_Merge(src proto.Message)
func (*DynamicReferenceError) XXX_Size ¶
func (m *DynamicReferenceError) XXX_Size() int
func (*DynamicReferenceError) XXX_Unmarshal ¶
func (m *DynamicReferenceError) XXX_Unmarshal(b []byte) error
type DynamicReferenceError_DynamicReferenceErrorType ¶
type DynamicReferenceError_DynamicReferenceErrorType int32
const ( DynamicReferenceError_UnknownDynamicReferenceError DynamicReferenceError_DynamicReferenceErrorType = 0 DynamicReferenceError_MoveOfBorrowedResource DynamicReferenceError_DynamicReferenceErrorType = 1 DynamicReferenceError_GlobalRefAlreadyReleased DynamicReferenceError_DynamicReferenceErrorType = 2 DynamicReferenceError_MissingReleaseRef DynamicReferenceError_DynamicReferenceErrorType = 3 DynamicReferenceError_GlobalAlreadyBorrowed DynamicReferenceError_DynamicReferenceErrorType = 4 )
func (DynamicReferenceError_DynamicReferenceErrorType) EnumDescriptor ¶
func (DynamicReferenceError_DynamicReferenceErrorType) EnumDescriptor() ([]byte, []int)
func (DynamicReferenceError_DynamicReferenceErrorType) String ¶
func (x DynamicReferenceError_DynamicReferenceErrorType) String() string
type Event ¶
type Event struct { AccessPath *AccessPath `protobuf:"bytes,1,opt,name=access_path,json=accessPath,proto3" json:"access_path,omitempty"` SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` EventData []byte `protobuf:"bytes,3,opt,name=event_data,json=eventData,proto3" json:"event_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event emitted from a smart contract
func (*Event) Descriptor ¶
func (*Event) GetAccessPath ¶
func (m *Event) GetAccessPath() *AccessPath
func (*Event) GetEventData ¶
func (*Event) GetSequenceNumber ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type EventProof ¶
type EventProof struct { LedgerInfoToTransactionInfoProof *AccumulatorProof `` /* 165-byte string literal not displayed */ TransactionInfo *TransactionInfo `protobuf:"bytes,2,opt,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"` TransactionInfoToEventProof *AccumulatorProof `` /* 148-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The complete proof used to authenticate an event.
func (*EventProof) Descriptor ¶
func (*EventProof) Descriptor() ([]byte, []int)
func (*EventProof) GetLedgerInfoToTransactionInfoProof ¶
func (m *EventProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof
func (*EventProof) GetTransactionInfo ¶
func (m *EventProof) GetTransactionInfo() *TransactionInfo
func (*EventProof) GetTransactionInfoToEventProof ¶
func (m *EventProof) GetTransactionInfoToEventProof() *AccumulatorProof
func (*EventProof) ProtoMessage ¶
func (*EventProof) ProtoMessage()
func (*EventProof) Reset ¶
func (m *EventProof) Reset()
func (*EventProof) String ¶
func (m *EventProof) String() string
func (*EventProof) XXX_DiscardUnknown ¶
func (m *EventProof) XXX_DiscardUnknown()
func (*EventProof) XXX_Marshal ¶
func (m *EventProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventProof) XXX_Merge ¶
func (m *EventProof) XXX_Merge(src proto.Message)
func (*EventProof) XXX_Size ¶
func (m *EventProof) XXX_Size() int
func (*EventProof) XXX_Unmarshal ¶
func (m *EventProof) XXX_Unmarshal(b []byte) error
type EventWithProof ¶
type EventWithProof struct { TransactionVersion uint64 `protobuf:"varint,1,opt,name=transaction_version,json=transactionVersion,proto3" json:"transaction_version,omitempty"` EventIndex uint64 `protobuf:"varint,2,opt,name=event_index,json=eventIndex,proto3" json:"event_index,omitempty"` Event *Event `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` Proof *EventProof `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event along with the proof for the event
func (*EventWithProof) Descriptor ¶
func (*EventWithProof) Descriptor() ([]byte, []int)
func (*EventWithProof) GetEvent ¶
func (m *EventWithProof) GetEvent() *Event
func (*EventWithProof) GetEventIndex ¶
func (m *EventWithProof) GetEventIndex() uint64
func (*EventWithProof) GetProof ¶
func (m *EventWithProof) GetProof() *EventProof
func (*EventWithProof) GetTransactionVersion ¶
func (m *EventWithProof) GetTransactionVersion() uint64
func (*EventWithProof) ProtoMessage ¶
func (*EventWithProof) ProtoMessage()
func (*EventWithProof) Reset ¶
func (m *EventWithProof) Reset()
func (*EventWithProof) String ¶
func (m *EventWithProof) String() string
func (*EventWithProof) XXX_DiscardUnknown ¶
func (m *EventWithProof) XXX_DiscardUnknown()
func (*EventWithProof) XXX_Marshal ¶
func (m *EventWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithProof) XXX_Merge ¶
func (m *EventWithProof) XXX_Merge(src proto.Message)
func (*EventWithProof) XXX_Size ¶
func (m *EventWithProof) XXX_Size() int
func (*EventWithProof) XXX_Unmarshal ¶
func (m *EventWithProof) XXX_Unmarshal(b []byte) error
type EventsForVersions ¶
type EventsForVersions struct { EventsForVersion []*EventsList `protobuf:"bytes,1,rep,name=events_for_version,json=eventsForVersion,proto3" json:"events_for_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A list of EventList's, each representing all events for a transaction.
func (*EventsForVersions) Descriptor ¶
func (*EventsForVersions) Descriptor() ([]byte, []int)
func (*EventsForVersions) GetEventsForVersion ¶
func (m *EventsForVersions) GetEventsForVersion() []*EventsList
func (*EventsForVersions) ProtoMessage ¶
func (*EventsForVersions) ProtoMessage()
func (*EventsForVersions) Reset ¶
func (m *EventsForVersions) Reset()
func (*EventsForVersions) String ¶
func (m *EventsForVersions) String() string
func (*EventsForVersions) XXX_DiscardUnknown ¶
func (m *EventsForVersions) XXX_DiscardUnknown()
func (*EventsForVersions) XXX_Marshal ¶
func (m *EventsForVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventsForVersions) XXX_Merge ¶
func (m *EventsForVersions) XXX_Merge(src proto.Message)
func (*EventsForVersions) XXX_Size ¶
func (m *EventsForVersions) XXX_Size() int
func (*EventsForVersions) XXX_Unmarshal ¶
func (m *EventsForVersions) XXX_Unmarshal(b []byte) error
type EventsList ¶
type EventsList struct { Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A list of events.
func (*EventsList) Descriptor ¶
func (*EventsList) Descriptor() ([]byte, []int)
func (*EventsList) GetEvents ¶
func (m *EventsList) GetEvents() []*Event
func (*EventsList) ProtoMessage ¶
func (*EventsList) ProtoMessage()
func (*EventsList) Reset ¶
func (m *EventsList) Reset()
func (*EventsList) String ¶
func (m *EventsList) String() string
func (*EventsList) XXX_DiscardUnknown ¶
func (m *EventsList) XXX_DiscardUnknown()
func (*EventsList) XXX_Marshal ¶
func (m *EventsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventsList) XXX_Merge ¶
func (m *EventsList) XXX_Merge(src proto.Message)
func (*EventsList) XXX_Size ¶
func (m *EventsList) XXX_Size() int
func (*EventsList) XXX_Unmarshal ¶
func (m *EventsList) XXX_Unmarshal(b []byte) error
type ExecutionStatus ¶
type ExecutionStatus struct { // Types that are valid to be assigned to ExecutionStatus: // *ExecutionStatus_RuntimeStatus // *ExecutionStatus_AssertionFailure // *ExecutionStatus_ArithmeticError // *ExecutionStatus_ReferenceError ExecutionStatus isExecutionStatus_ExecutionStatus `protobuf_oneof:"execution_status"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExecutionStatus) Descriptor ¶
func (*ExecutionStatus) Descriptor() ([]byte, []int)
func (*ExecutionStatus) GetArithmeticError ¶
func (m *ExecutionStatus) GetArithmeticError() *ArithmeticError
func (*ExecutionStatus) GetAssertionFailure ¶
func (m *ExecutionStatus) GetAssertionFailure() *AssertionFailure
func (*ExecutionStatus) GetExecutionStatus ¶
func (m *ExecutionStatus) GetExecutionStatus() isExecutionStatus_ExecutionStatus
func (*ExecutionStatus) GetReferenceError ¶
func (m *ExecutionStatus) GetReferenceError() *DynamicReferenceError
func (*ExecutionStatus) GetRuntimeStatus ¶
func (m *ExecutionStatus) GetRuntimeStatus() RuntimeStatus
func (*ExecutionStatus) ProtoMessage ¶
func (*ExecutionStatus) ProtoMessage()
func (*ExecutionStatus) Reset ¶
func (m *ExecutionStatus) Reset()
func (*ExecutionStatus) String ¶
func (m *ExecutionStatus) String() string
func (*ExecutionStatus) XXX_DiscardUnknown ¶
func (m *ExecutionStatus) XXX_DiscardUnknown()
func (*ExecutionStatus) XXX_Marshal ¶
func (m *ExecutionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecutionStatus) XXX_Merge ¶
func (m *ExecutionStatus) XXX_Merge(src proto.Message)
func (*ExecutionStatus) XXX_OneofWrappers ¶
func (*ExecutionStatus) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ExecutionStatus) XXX_Size ¶
func (m *ExecutionStatus) XXX_Size() int
func (*ExecutionStatus) XXX_Unmarshal ¶
func (m *ExecutionStatus) XXX_Unmarshal(b []byte) error
type ExecutionStatus_ArithmeticError ¶
type ExecutionStatus_ArithmeticError struct {
ArithmeticError *ArithmeticError `protobuf:"bytes,3,opt,name=arithmetic_error,json=arithmeticError,proto3,oneof"`
}
type ExecutionStatus_AssertionFailure ¶
type ExecutionStatus_AssertionFailure struct {
AssertionFailure *AssertionFailure `protobuf:"bytes,2,opt,name=assertion_failure,json=assertionFailure,proto3,oneof"`
}
type ExecutionStatus_ReferenceError ¶
type ExecutionStatus_ReferenceError struct {
ReferenceError *DynamicReferenceError `protobuf:"bytes,4,opt,name=reference_error,json=referenceError,proto3,oneof"`
}
type ExecutionStatus_RuntimeStatus ¶
type ExecutionStatus_RuntimeStatus struct {
RuntimeStatus RuntimeStatus `protobuf:"varint,1,opt,name=runtime_status,json=runtimeStatus,proto3,enum=types.RuntimeStatus,oneof"`
}
type GetAccountStateRequest ¶
type GetAccountStateRequest struct { // Account for which we are fetching the state. Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Gets latest state for an account.
func (*GetAccountStateRequest) Descriptor ¶
func (*GetAccountStateRequest) Descriptor() ([]byte, []int)
func (*GetAccountStateRequest) GetAddress ¶
func (m *GetAccountStateRequest) GetAddress() []byte
func (*GetAccountStateRequest) ProtoMessage ¶
func (*GetAccountStateRequest) ProtoMessage()
func (*GetAccountStateRequest) Reset ¶
func (m *GetAccountStateRequest) Reset()
func (*GetAccountStateRequest) String ¶
func (m *GetAccountStateRequest) String() string
func (*GetAccountStateRequest) XXX_DiscardUnknown ¶
func (m *GetAccountStateRequest) XXX_DiscardUnknown()
func (*GetAccountStateRequest) XXX_Marshal ¶
func (m *GetAccountStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountStateRequest) XXX_Merge ¶
func (m *GetAccountStateRequest) XXX_Merge(src proto.Message)
func (*GetAccountStateRequest) XXX_Size ¶
func (m *GetAccountStateRequest) XXX_Size() int
func (*GetAccountStateRequest) XXX_Unmarshal ¶
func (m *GetAccountStateRequest) XXX_Unmarshal(b []byte) error
type GetAccountStateResponse ¶
type GetAccountStateResponse struct { // Blob value representing the account state together with proof the client // can utilize to verify it. AccountStateWithProof *AccountStateWithProof `` /* 128-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
State information returned by a get account state query.
func (*GetAccountStateResponse) Descriptor ¶
func (*GetAccountStateResponse) Descriptor() ([]byte, []int)
func (*GetAccountStateResponse) GetAccountStateWithProof ¶
func (m *GetAccountStateResponse) GetAccountStateWithProof() *AccountStateWithProof
func (*GetAccountStateResponse) ProtoMessage ¶
func (*GetAccountStateResponse) ProtoMessage()
func (*GetAccountStateResponse) Reset ¶
func (m *GetAccountStateResponse) Reset()
func (*GetAccountStateResponse) String ¶
func (m *GetAccountStateResponse) String() string
func (*GetAccountStateResponse) XXX_DiscardUnknown ¶
func (m *GetAccountStateResponse) XXX_DiscardUnknown()
func (*GetAccountStateResponse) XXX_Marshal ¶
func (m *GetAccountStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountStateResponse) XXX_Merge ¶
func (m *GetAccountStateResponse) XXX_Merge(src proto.Message)
func (*GetAccountStateResponse) XXX_Size ¶
func (m *GetAccountStateResponse) XXX_Size() int
func (*GetAccountStateResponse) XXX_Unmarshal ¶
func (m *GetAccountStateResponse) XXX_Unmarshal(b []byte) error
type GetAccountTransactionBySequenceNumberRequest ¶
type GetAccountTransactionBySequenceNumberRequest struct { // Account for which to query transactions Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` // Set to true to fetch events for the transaction at this version FetchEvents bool `protobuf:"varint,3,opt,name=fetch_events,json=fetchEvents,proto3" json:"fetch_events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
----------------------------------------------------------------------------- ---------------- Get single transaction by account + sequence number ----------------------------------------------------------------------------- Get transactions that altered an account - this includes both sent and received. A user of this should check that the data returned matches what they expect. As an example, a potential attack vector would be something like the following: Alice is buying an apple from Bob. Alice's phone signs a transaction X with sequence number N that pays coins to Bob. Alice transmits this signature to Bob's payment terminal which then submits the transaction and checks its status to see if Alice can be given the apple. However, as Bob is doing this Alice constructs a second transaction X' also with sequence number N. Alice gets that transaction inserted in the blockchain. If Bob isn't thoughtful about how he uses this API he may assume that if he asks for the N'th transaction on Alice's account that when the API returns that this means the transaction has gone through. The point here is that one should be careful in reading too much into "transaction X is on the chain" and focus on the logs, which tell you what the transaction did.
If a client submitted a transaction, they should also verify that the hash of the returned transaction matches what they submitted. As an example, if a client has two wallets that share the same account, they may both submit a transaction at the same sequence number and only one will be committed. A client should never assume that if they receive the response that this transaction was included that it means that this is definitely the transaction that was submitted. They should check that the hash matches what they sent
func (*GetAccountTransactionBySequenceNumberRequest) Descriptor ¶
func (*GetAccountTransactionBySequenceNumberRequest) Descriptor() ([]byte, []int)
func (*GetAccountTransactionBySequenceNumberRequest) GetAccount ¶
func (m *GetAccountTransactionBySequenceNumberRequest) GetAccount() []byte
func (*GetAccountTransactionBySequenceNumberRequest) GetFetchEvents ¶
func (m *GetAccountTransactionBySequenceNumberRequest) GetFetchEvents() bool
func (*GetAccountTransactionBySequenceNumberRequest) GetSequenceNumber ¶
func (m *GetAccountTransactionBySequenceNumberRequest) GetSequenceNumber() uint64
func (*GetAccountTransactionBySequenceNumberRequest) ProtoMessage ¶
func (*GetAccountTransactionBySequenceNumberRequest) ProtoMessage()
func (*GetAccountTransactionBySequenceNumberRequest) Reset ¶
func (m *GetAccountTransactionBySequenceNumberRequest) Reset()
func (*GetAccountTransactionBySequenceNumberRequest) String ¶
func (m *GetAccountTransactionBySequenceNumberRequest) String() string
func (*GetAccountTransactionBySequenceNumberRequest) XXX_DiscardUnknown ¶
func (m *GetAccountTransactionBySequenceNumberRequest) XXX_DiscardUnknown()
func (*GetAccountTransactionBySequenceNumberRequest) XXX_Marshal ¶
func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountTransactionBySequenceNumberRequest) XXX_Merge ¶
func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Merge(src proto.Message)
func (*GetAccountTransactionBySequenceNumberRequest) XXX_Size ¶
func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Size() int
func (*GetAccountTransactionBySequenceNumberRequest) XXX_Unmarshal ¶
func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Unmarshal(b []byte) error
type GetAccountTransactionBySequenceNumberResponse ¶
type GetAccountTransactionBySequenceNumberResponse struct { // When the transaction requested is committed, return the committed // transaction with proof. SignedTransactionWithProof *SignedTransactionWithProof `` /* 143-byte string literal not displayed */ // When the transaction requested is not committed, we give a proof that // shows the current sequence number is smaller than what would have been if // the transaction was committed. ProofOfCurrentSequenceNumber *AccountStateWithProof `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Transaction information for transactions requested by GetAccountTransactionsRequest
func (*GetAccountTransactionBySequenceNumberResponse) Descriptor ¶
func (*GetAccountTransactionBySequenceNumberResponse) Descriptor() ([]byte, []int)
func (*GetAccountTransactionBySequenceNumberResponse) GetProofOfCurrentSequenceNumber ¶
func (m *GetAccountTransactionBySequenceNumberResponse) GetProofOfCurrentSequenceNumber() *AccountStateWithProof
func (*GetAccountTransactionBySequenceNumberResponse) GetSignedTransactionWithProof ¶
func (m *GetAccountTransactionBySequenceNumberResponse) GetSignedTransactionWithProof() *SignedTransactionWithProof
func (*GetAccountTransactionBySequenceNumberResponse) ProtoMessage ¶
func (*GetAccountTransactionBySequenceNumberResponse) ProtoMessage()
func (*GetAccountTransactionBySequenceNumberResponse) Reset ¶
func (m *GetAccountTransactionBySequenceNumberResponse) Reset()
func (*GetAccountTransactionBySequenceNumberResponse) String ¶
func (m *GetAccountTransactionBySequenceNumberResponse) String() string
func (*GetAccountTransactionBySequenceNumberResponse) XXX_DiscardUnknown ¶
func (m *GetAccountTransactionBySequenceNumberResponse) XXX_DiscardUnknown()
func (*GetAccountTransactionBySequenceNumberResponse) XXX_Marshal ¶
func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountTransactionBySequenceNumberResponse) XXX_Merge ¶
func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Merge(src proto.Message)
func (*GetAccountTransactionBySequenceNumberResponse) XXX_Size ¶
func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Size() int
func (*GetAccountTransactionBySequenceNumberResponse) XXX_Unmarshal ¶
func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Unmarshal(b []byte) error
type GetBlockRequest ¶
type GetBlockRequest struct { MaxBlockSize uint64 `protobuf:"varint,1,opt,name=max_block_size,json=maxBlockSize,proto3" json:"max_block_size,omitempty"` Transactions []*TransactionExclusion `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
----------------------------------------------------------------------------- ---------------- GetBlock -----------------------------------------------------------------------------
func (*GetBlockRequest) Descriptor ¶
func (*GetBlockRequest) Descriptor() ([]byte, []int)
func (*GetBlockRequest) GetMaxBlockSize ¶
func (m *GetBlockRequest) GetMaxBlockSize() uint64
func (*GetBlockRequest) GetTransactions ¶
func (m *GetBlockRequest) GetTransactions() []*TransactionExclusion
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) Reset ¶
func (m *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (m *GetBlockRequest) String() string
func (*GetBlockRequest) XXX_DiscardUnknown ¶
func (m *GetBlockRequest) XXX_DiscardUnknown()
func (*GetBlockRequest) XXX_Marshal ¶
func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockRequest) XXX_Merge ¶
func (m *GetBlockRequest) XXX_Merge(src proto.Message)
func (*GetBlockRequest) XXX_Size ¶
func (m *GetBlockRequest) XXX_Size() int
func (*GetBlockRequest) XXX_Unmarshal ¶
func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error
type GetBlockResponse ¶
type GetBlockResponse struct { Block *SignedTransactionsBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockResponse) Descriptor ¶
func (*GetBlockResponse) Descriptor() ([]byte, []int)
func (*GetBlockResponse) GetBlock ¶
func (m *GetBlockResponse) GetBlock() *SignedTransactionsBlock
func (*GetBlockResponse) ProtoMessage ¶
func (*GetBlockResponse) ProtoMessage()
func (*GetBlockResponse) Reset ¶
func (m *GetBlockResponse) Reset()
func (*GetBlockResponse) String ¶
func (m *GetBlockResponse) String() string
func (*GetBlockResponse) XXX_DiscardUnknown ¶
func (m *GetBlockResponse) XXX_DiscardUnknown()
func (*GetBlockResponse) XXX_Marshal ¶
func (m *GetBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockResponse) XXX_Merge ¶
func (m *GetBlockResponse) XXX_Merge(src proto.Message)
func (*GetBlockResponse) XXX_Size ¶
func (m *GetBlockResponse) XXX_Size() int
func (*GetBlockResponse) XXX_Unmarshal ¶
func (m *GetBlockResponse) XXX_Unmarshal(b []byte) error
type GetEventsByEventAccessPathRequest ¶
type GetEventsByEventAccessPathRequest struct { AccessPath *AccessPath `protobuf:"bytes,1,opt,name=access_path,json=accessPath,proto3" json:"access_path,omitempty"` // The sequence number of the event to start with for this query. Use a // sequence number of MAX_INT to represent the latest. StartEventSeqNum uint64 `protobuf:"varint,2,opt,name=start_event_seq_num,json=startEventSeqNum,proto3" json:"start_event_seq_num,omitempty"` // If ascending is true this query will return up to `limit` events that were // emitted after `start_event_seq_num`. Otherwise it will return up to `limit` // events before the offset. Both cases are inclusive. Ascending bool `protobuf:"varint,3,opt,name=ascending,proto3" json:"ascending,omitempty"` // Limit number of results Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Get events that exist on an event access path. In the current world, a user may specify events that were received, events that were sent, or any event that modifies their account
func (*GetEventsByEventAccessPathRequest) Descriptor ¶
func (*GetEventsByEventAccessPathRequest) Descriptor() ([]byte, []int)
func (*GetEventsByEventAccessPathRequest) GetAccessPath ¶
func (m *GetEventsByEventAccessPathRequest) GetAccessPath() *AccessPath
func (*GetEventsByEventAccessPathRequest) GetAscending ¶
func (m *GetEventsByEventAccessPathRequest) GetAscending() bool
func (*GetEventsByEventAccessPathRequest) GetLimit ¶
func (m *GetEventsByEventAccessPathRequest) GetLimit() uint64
func (*GetEventsByEventAccessPathRequest) GetStartEventSeqNum ¶
func (m *GetEventsByEventAccessPathRequest) GetStartEventSeqNum() uint64
func (*GetEventsByEventAccessPathRequest) ProtoMessage ¶
func (*GetEventsByEventAccessPathRequest) ProtoMessage()
func (*GetEventsByEventAccessPathRequest) Reset ¶
func (m *GetEventsByEventAccessPathRequest) Reset()
func (*GetEventsByEventAccessPathRequest) String ¶
func (m *GetEventsByEventAccessPathRequest) String() string
func (*GetEventsByEventAccessPathRequest) XXX_DiscardUnknown ¶
func (m *GetEventsByEventAccessPathRequest) XXX_DiscardUnknown()
func (*GetEventsByEventAccessPathRequest) XXX_Marshal ¶
func (m *GetEventsByEventAccessPathRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetEventsByEventAccessPathRequest) XXX_Merge ¶
func (m *GetEventsByEventAccessPathRequest) XXX_Merge(src proto.Message)
func (*GetEventsByEventAccessPathRequest) XXX_Size ¶
func (m *GetEventsByEventAccessPathRequest) XXX_Size() int
func (*GetEventsByEventAccessPathRequest) XXX_Unmarshal ¶
func (m *GetEventsByEventAccessPathRequest) XXX_Unmarshal(b []byte) error
type GetEventsByEventAccessPathResponse ¶
type GetEventsByEventAccessPathResponse struct { // Returns an event and proof of each of the events in the request. The first // element of proofs will be the closest to `start_event_seq_num`. EventsWithProof []*EventWithProof `protobuf:"bytes,1,rep,name=events_with_proof,json=eventsWithProof,proto3" json:"events_with_proof,omitempty"` // If the number of events returned is less than `limit` for an ascending // query or if start_event_seq_num > the latest seq_num for a descending // query, returns the state of the account containing the given access path // in the latest state. This allows the client to verify that there are in // fact no extra events. // // The LedgerInfoWithSignatures which is on the main // UpdateToLatestLedgerResponse can be used to validate this. ProofOfLatestEvent *AccountStateWithProof `protobuf:"bytes,2,opt,name=proof_of_latest_event,json=proofOfLatestEvent,proto3" json:"proof_of_latest_event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetEventsByEventAccessPathResponse) Descriptor ¶
func (*GetEventsByEventAccessPathResponse) Descriptor() ([]byte, []int)
func (*GetEventsByEventAccessPathResponse) GetEventsWithProof ¶
func (m *GetEventsByEventAccessPathResponse) GetEventsWithProof() []*EventWithProof
func (*GetEventsByEventAccessPathResponse) GetProofOfLatestEvent ¶
func (m *GetEventsByEventAccessPathResponse) GetProofOfLatestEvent() *AccountStateWithProof
func (*GetEventsByEventAccessPathResponse) ProtoMessage ¶
func (*GetEventsByEventAccessPathResponse) ProtoMessage()
func (*GetEventsByEventAccessPathResponse) Reset ¶
func (m *GetEventsByEventAccessPathResponse) Reset()
func (*GetEventsByEventAccessPathResponse) String ¶
func (m *GetEventsByEventAccessPathResponse) String() string
func (*GetEventsByEventAccessPathResponse) XXX_DiscardUnknown ¶
func (m *GetEventsByEventAccessPathResponse) XXX_DiscardUnknown()
func (*GetEventsByEventAccessPathResponse) XXX_Marshal ¶
func (m *GetEventsByEventAccessPathResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetEventsByEventAccessPathResponse) XXX_Merge ¶
func (m *GetEventsByEventAccessPathResponse) XXX_Merge(src proto.Message)
func (*GetEventsByEventAccessPathResponse) XXX_Size ¶
func (m *GetEventsByEventAccessPathResponse) XXX_Size() int
func (*GetEventsByEventAccessPathResponse) XXX_Unmarshal ¶
func (m *GetEventsByEventAccessPathResponse) XXX_Unmarshal(b []byte) error
type GetTransactionsRequest ¶
type GetTransactionsRequest struct { // The version of the transaction to start with for this query. Use a version // of MAX_INT to represent the latest. StartVersion uint64 `protobuf:"varint,1,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` // Limit number of results Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // Set to true to fetch events for the transaction at each version FetchEvents bool `protobuf:"varint,3,opt,name=fetch_events,json=fetchEvents,proto3" json:"fetch_events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Get up to limit transactions starting from start_version.
func (*GetTransactionsRequest) Descriptor ¶
func (*GetTransactionsRequest) Descriptor() ([]byte, []int)
func (*GetTransactionsRequest) GetFetchEvents ¶
func (m *GetTransactionsRequest) GetFetchEvents() bool
func (*GetTransactionsRequest) GetLimit ¶
func (m *GetTransactionsRequest) GetLimit() uint64
func (*GetTransactionsRequest) GetStartVersion ¶
func (m *GetTransactionsRequest) GetStartVersion() uint64
func (*GetTransactionsRequest) ProtoMessage ¶
func (*GetTransactionsRequest) ProtoMessage()
func (*GetTransactionsRequest) Reset ¶
func (m *GetTransactionsRequest) Reset()
func (*GetTransactionsRequest) String ¶
func (m *GetTransactionsRequest) String() string
func (*GetTransactionsRequest) XXX_DiscardUnknown ¶
func (m *GetTransactionsRequest) XXX_DiscardUnknown()
func (*GetTransactionsRequest) XXX_Marshal ¶
func (m *GetTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionsRequest) XXX_Merge ¶
func (m *GetTransactionsRequest) XXX_Merge(src proto.Message)
func (*GetTransactionsRequest) XXX_Size ¶
func (m *GetTransactionsRequest) XXX_Size() int
func (*GetTransactionsRequest) XXX_Unmarshal ¶
func (m *GetTransactionsRequest) XXX_Unmarshal(b []byte) error
type GetTransactionsResponse ¶
type GetTransactionsResponse struct { TxnListWithProof *TransactionListWithProof `protobuf:"bytes,1,opt,name=txn_list_with_proof,json=txnListWithProof,proto3" json:"txn_list_with_proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionsResponse) Descriptor ¶
func (*GetTransactionsResponse) Descriptor() ([]byte, []int)
func (*GetTransactionsResponse) GetTxnListWithProof ¶
func (m *GetTransactionsResponse) GetTxnListWithProof() *TransactionListWithProof
func (*GetTransactionsResponse) ProtoMessage ¶
func (*GetTransactionsResponse) ProtoMessage()
func (*GetTransactionsResponse) Reset ¶
func (m *GetTransactionsResponse) Reset()
func (*GetTransactionsResponse) String ¶
func (m *GetTransactionsResponse) String() string
func (*GetTransactionsResponse) XXX_DiscardUnknown ¶
func (m *GetTransactionsResponse) XXX_DiscardUnknown()
func (*GetTransactionsResponse) XXX_Marshal ¶
func (m *GetTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionsResponse) XXX_Merge ¶
func (m *GetTransactionsResponse) XXX_Merge(src proto.Message)
func (*GetTransactionsResponse) XXX_Size ¶
func (m *GetTransactionsResponse) XXX_Size() int
func (*GetTransactionsResponse) XXX_Unmarshal ¶
func (m *GetTransactionsResponse) XXX_Unmarshal(b []byte) error
type HealthCheckRequest ¶
type HealthCheckRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
----------------------------------------------------------------------------- ---------------- HealthCheck -----------------------------------------------------------------------------
func (*HealthCheckRequest) Descriptor ¶
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) Reset ¶
func (m *HealthCheckRequest) Reset()
func (*HealthCheckRequest) String ¶
func (m *HealthCheckRequest) String() string
func (*HealthCheckRequest) XXX_DiscardUnknown ¶
func (m *HealthCheckRequest) XXX_DiscardUnknown()
func (*HealthCheckRequest) XXX_Marshal ¶
func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckRequest) XXX_Merge ¶
func (m *HealthCheckRequest) XXX_Merge(src proto.Message)
func (*HealthCheckRequest) XXX_Size ¶
func (m *HealthCheckRequest) XXX_Size() int
func (*HealthCheckRequest) XXX_Unmarshal ¶
func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error
type HealthCheckResponse ¶
type HealthCheckResponse struct { // Indicate whether Mempool is in healthy condition. IsHealthy bool `protobuf:"varint,1,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthCheckResponse) Descriptor ¶
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
func (*HealthCheckResponse) GetIsHealthy ¶
func (m *HealthCheckResponse) GetIsHealthy() bool
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) Reset ¶
func (m *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (m *HealthCheckResponse) String() string
func (*HealthCheckResponse) XXX_DiscardUnknown ¶
func (m *HealthCheckResponse) XXX_DiscardUnknown()
func (*HealthCheckResponse) XXX_Marshal ¶
func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckResponse) XXX_Merge ¶
func (m *HealthCheckResponse) XXX_Merge(src proto.Message)
func (*HealthCheckResponse) XXX_Size ¶
func (m *HealthCheckResponse) XXX_Size() int
func (*HealthCheckResponse) XXX_Unmarshal ¶
func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
type LedgerInfo ¶
type LedgerInfo struct { // Current latest version of the system Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Root hash of transaction accumulator at this version TransactionAccumulatorHash []byte `` /* 141-byte string literal not displayed */ // Hash of consensus-specific data that is opaque to all parts of the system // other than consensus. This is needed to verify signatures because // consensus signing includes this hash ConsensusDataHash []byte `protobuf:"bytes,3,opt,name=consensus_data_hash,json=consensusDataHash,proto3" json:"consensus_data_hash,omitempty"` // The block id of the last committed block corresponding to this ledger info. // This field is not particularly interesting to the clients, but can be used // by the validators for synchronization. ConsensusBlockId []byte `protobuf:"bytes,4,opt,name=consensus_block_id,json=consensusBlockId,proto3" json:"consensus_block_id,omitempty"` // Epoch number corresponds to the set of validators that are active for this // ledger info. The main motivation for keeping the epoch number in the // LedgerInfo is to ensure that the client has enough information to verify // that the signatures for this info are coming from the validators that // indeed form a quorum. Without epoch number a potential attack could reuse // the signatures from the validators in one epoch in order to sign the wrong // info belonging to another epoch, in which these validators do not form a // quorum. The very first epoch number is 0. EpochNum uint64 `protobuf:"varint,5,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"` // Timestamp that represents the microseconds since the epoch (unix time) that is // generated by the proposer of the block. This is strictly increasing with every block. // If a client reads a timestamp > the one they specified for transaction expiration time, // they can be certain that their transaction will never be included in a block in the future // (assuming that their transaction has not yet been included) TimestampUsecs uint64 `protobuf:"varint,6,opt,name=timestamp_usecs,json=timestampUsecs,proto3" json:"timestamp_usecs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
/ Even though we don't always need all hashes, we pass them in and return them / always so that we keep them in sync on the client and don't make the client / worry about which one(s) to pass in which cases / / This structure serves a dual purpose. / / First, if this structure is signed by 2f+1 validators it signifies the state / of the ledger at version `version` -- it contains the transaction / accumulator at that version which commits to all historical transactions. / This structure may be expanded to include other information that is derived / from that accumulator (e.g. the current time according to the time contract) / to reduce the number of proofs a client must get. / / Second, the structure contains a `consensus_data_hash` value. This is the / hash of an internal data structure that represents a block that is voted on / by consensus. / / Combining these two concepts when the consensus algorithm votes on a block B / it votes for a LedgerInfo with the `version` being the latest version that / will be committed if B gets 2f+1 votes. It sets `consensus_data_hash` to / represent B so that if those 2f+1 votes are gathered, the block is valid to / commit
func (*LedgerInfo) Descriptor ¶
func (*LedgerInfo) Descriptor() ([]byte, []int)
func (*LedgerInfo) GetConsensusBlockId ¶
func (m *LedgerInfo) GetConsensusBlockId() []byte
func (*LedgerInfo) GetConsensusDataHash ¶
func (m *LedgerInfo) GetConsensusDataHash() []byte
func (*LedgerInfo) GetEpochNum ¶
func (m *LedgerInfo) GetEpochNum() uint64
func (*LedgerInfo) GetTimestampUsecs ¶
func (m *LedgerInfo) GetTimestampUsecs() uint64
func (*LedgerInfo) GetTransactionAccumulatorHash ¶
func (m *LedgerInfo) GetTransactionAccumulatorHash() []byte
func (*LedgerInfo) GetVersion ¶
func (m *LedgerInfo) GetVersion() uint64
func (*LedgerInfo) ProtoMessage ¶
func (*LedgerInfo) ProtoMessage()
func (*LedgerInfo) Reset ¶
func (m *LedgerInfo) Reset()
func (*LedgerInfo) String ¶
func (m *LedgerInfo) String() string
func (*LedgerInfo) XXX_DiscardUnknown ¶
func (m *LedgerInfo) XXX_DiscardUnknown()
func (*LedgerInfo) XXX_Marshal ¶
func (m *LedgerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LedgerInfo) XXX_Merge ¶
func (m *LedgerInfo) XXX_Merge(src proto.Message)
func (*LedgerInfo) XXX_Size ¶
func (m *LedgerInfo) XXX_Size() int
func (*LedgerInfo) XXX_Unmarshal ¶
func (m *LedgerInfo) XXX_Unmarshal(b []byte) error
type LedgerInfoWithSignatures ¶
type LedgerInfoWithSignatures struct { // Signatures of the root node from each validator Signatures []*ValidatorSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"` LedgerInfo *LedgerInfo `protobuf:"bytes,2,opt,name=ledger_info,json=ledgerInfo,proto3" json:"ledger_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
/ The validator node returns this structure which includes signatures / from each validator to confirm the state. The client needs to only pass / back the LedgerInfo element since the validator node doesn't need to know / the signatures again when the client performs a query, those are only there / for the client to be able to verify the state
func (*LedgerInfoWithSignatures) Descriptor ¶
func (*LedgerInfoWithSignatures) Descriptor() ([]byte, []int)
func (*LedgerInfoWithSignatures) GetLedgerInfo ¶
func (m *LedgerInfoWithSignatures) GetLedgerInfo() *LedgerInfo
func (*LedgerInfoWithSignatures) GetSignatures ¶
func (m *LedgerInfoWithSignatures) GetSignatures() []*ValidatorSignature
func (*LedgerInfoWithSignatures) ProtoMessage ¶
func (*LedgerInfoWithSignatures) ProtoMessage()
func (*LedgerInfoWithSignatures) Reset ¶
func (m *LedgerInfoWithSignatures) Reset()
func (*LedgerInfoWithSignatures) String ¶
func (m *LedgerInfoWithSignatures) String() string
func (*LedgerInfoWithSignatures) XXX_DiscardUnknown ¶
func (m *LedgerInfoWithSignatures) XXX_DiscardUnknown()
func (*LedgerInfoWithSignatures) XXX_Marshal ¶
func (m *LedgerInfoWithSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LedgerInfoWithSignatures) XXX_Merge ¶
func (m *LedgerInfoWithSignatures) XXX_Merge(src proto.Message)
func (*LedgerInfoWithSignatures) XXX_Size ¶
func (m *LedgerInfoWithSignatures) XXX_Size() int
func (*LedgerInfoWithSignatures) XXX_Unmarshal ¶
func (m *LedgerInfoWithSignatures) XXX_Unmarshal(b []byte) error
type MempoolAddTransactionStatus ¶
type MempoolAddTransactionStatus struct { Code MempoolAddTransactionStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=mempool.MempoolAddTransactionStatusCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MempoolAddTransactionStatus) Descriptor ¶
func (*MempoolAddTransactionStatus) Descriptor() ([]byte, []int)
func (*MempoolAddTransactionStatus) GetCode ¶
func (m *MempoolAddTransactionStatus) GetCode() MempoolAddTransactionStatusCode
func (*MempoolAddTransactionStatus) GetMessage ¶
func (m *MempoolAddTransactionStatus) GetMessage() string
func (*MempoolAddTransactionStatus) ProtoMessage ¶
func (*MempoolAddTransactionStatus) ProtoMessage()
func (*MempoolAddTransactionStatus) Reset ¶
func (m *MempoolAddTransactionStatus) Reset()
func (*MempoolAddTransactionStatus) String ¶
func (m *MempoolAddTransactionStatus) String() string
func (*MempoolAddTransactionStatus) XXX_DiscardUnknown ¶
func (m *MempoolAddTransactionStatus) XXX_DiscardUnknown()
func (*MempoolAddTransactionStatus) XXX_Marshal ¶
func (m *MempoolAddTransactionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MempoolAddTransactionStatus) XXX_Merge ¶
func (m *MempoolAddTransactionStatus) XXX_Merge(src proto.Message)
func (*MempoolAddTransactionStatus) XXX_Size ¶
func (m *MempoolAddTransactionStatus) XXX_Size() int
func (*MempoolAddTransactionStatus) XXX_Unmarshal ¶
func (m *MempoolAddTransactionStatus) XXX_Unmarshal(b []byte) error
type MempoolAddTransactionStatusCode ¶
type MempoolAddTransactionStatusCode int32
const ( // Transaction was sent to Mempool MempoolAddTransactionStatusCode_Valid MempoolAddTransactionStatusCode = 0 // The sender does not have enough balance for the transaction. MempoolAddTransactionStatusCode_InsufficientBalance MempoolAddTransactionStatusCode = 1 // Sequence number is old, etc. MempoolAddTransactionStatusCode_InvalidSeqNumber MempoolAddTransactionStatusCode = 2 // Mempool is full (reached max global capacity) MempoolAddTransactionStatusCode_MempoolIsFull MempoolAddTransactionStatusCode = 3 // Account reached max capacity per account MempoolAddTransactionStatusCode_TooManyTransactions MempoolAddTransactionStatusCode = 4 // Invalid update. Only gas price increase is allowed MempoolAddTransactionStatusCode_InvalidUpdate MempoolAddTransactionStatusCode = 5 )
func (MempoolAddTransactionStatusCode) EnumDescriptor ¶
func (MempoolAddTransactionStatusCode) EnumDescriptor() ([]byte, []int)
func (MempoolAddTransactionStatusCode) String ¶
func (x MempoolAddTransactionStatusCode) String() string
type MempoolClient ¶
type MempoolClient interface { // Adds a new transaction to the mempool with validation against existing // transactions in the mempool. Note that this function performs additional // validation that AC is unable to perform. (because AC knows only about a // single transaction, but mempool potentially knows about multiple pending // transactions) AddTransactionWithValidation(ctx context.Context, in *AddTransactionWithValidationRequest, opts ...grpc.CallOption) (*AddTransactionWithValidationResponse, error) // Fetch ordered block of transactions GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) // Remove committed transactions from Mempool CommitTransactions(ctx context.Context, in *CommitTransactionsRequest, opts ...grpc.CallOption) (*CommitTransactionsResponse, error) // Check the health of mempool HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) }
MempoolClient is the client API for Mempool service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMempoolClient ¶
func NewMempoolClient(cc *grpc.ClientConn) MempoolClient
type MempoolServer ¶
type MempoolServer interface { // Adds a new transaction to the mempool with validation against existing // transactions in the mempool. Note that this function performs additional // validation that AC is unable to perform. (because AC knows only about a // single transaction, but mempool potentially knows about multiple pending // transactions) AddTransactionWithValidation(context.Context, *AddTransactionWithValidationRequest) (*AddTransactionWithValidationResponse, error) // Fetch ordered block of transactions GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error) // Remove committed transactions from Mempool CommitTransactions(context.Context, *CommitTransactionsRequest) (*CommitTransactionsResponse, error) // Check the health of mempool HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) }
MempoolServer is the server API for Mempool service.
type Program ¶
type Program struct { Code []byte `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Arguments []*TransactionArgument `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"` Modules [][]byte `protobuf:"bytes,3,rep,name=modules,proto3" json:"modules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The code for the transaction to execute
func (*Program) Descriptor ¶
func (*Program) GetArguments ¶
func (m *Program) GetArguments() []*TransactionArgument
func (*Program) GetModules ¶
func (*Program) ProtoMessage ¶
func (*Program) ProtoMessage()
func (*Program) XXX_DiscardUnknown ¶
func (m *Program) XXX_DiscardUnknown()
func (*Program) XXX_Marshal ¶
func (*Program) XXX_Unmarshal ¶
type RawTransaction ¶
type RawTransaction struct { // Sender's account address SenderAccount []byte `protobuf:"bytes,1,opt,name=sender_account,json=senderAccount,proto3" json:"sender_account,omitempty"` // Sequence number of this transaction corresponding to sender's account. SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` // Types that are valid to be assigned to Payload: // *RawTransaction_Program // *RawTransaction_WriteSet Payload isRawTransaction_Payload `protobuf_oneof:"payload"` // Maximal total gas specified by wallet to spend for this transaction. MaxGasAmount uint64 `protobuf:"varint,5,opt,name=max_gas_amount,json=maxGasAmount,proto3" json:"max_gas_amount,omitempty"` // The price to be paid for each unit of gas. GasUnitPrice uint64 `protobuf:"varint,6,opt,name=gas_unit_price,json=gasUnitPrice,proto3" json:"gas_unit_price,omitempty"` // Expiration time for this transaction. If storage is queried and // the time returned is greater than or equal to this time and this // transaction has not been included, you can be certain that it will // never be included. // If set to 0, there will be no expiration time ExpirationTime uint64 `protobuf:"varint,7,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A generic structure that describes a transaction that a client submits
func (*RawTransaction) Descriptor ¶
func (*RawTransaction) Descriptor() ([]byte, []int)
func (*RawTransaction) GetExpirationTime ¶
func (m *RawTransaction) GetExpirationTime() uint64
func (*RawTransaction) GetGasUnitPrice ¶
func (m *RawTransaction) GetGasUnitPrice() uint64
func (*RawTransaction) GetMaxGasAmount ¶
func (m *RawTransaction) GetMaxGasAmount() uint64
func (*RawTransaction) GetPayload ¶
func (m *RawTransaction) GetPayload() isRawTransaction_Payload
func (*RawTransaction) GetProgram ¶
func (m *RawTransaction) GetProgram() *Program
func (*RawTransaction) GetSenderAccount ¶
func (m *RawTransaction) GetSenderAccount() []byte
func (*RawTransaction) GetSequenceNumber ¶
func (m *RawTransaction) GetSequenceNumber() uint64
func (*RawTransaction) GetWriteSet ¶
func (m *RawTransaction) GetWriteSet() *WriteSet
func (*RawTransaction) ProtoMessage ¶
func (*RawTransaction) ProtoMessage()
func (*RawTransaction) Reset ¶
func (m *RawTransaction) Reset()
func (*RawTransaction) String ¶
func (m *RawTransaction) String() string
func (*RawTransaction) XXX_DiscardUnknown ¶
func (m *RawTransaction) XXX_DiscardUnknown()
func (*RawTransaction) XXX_Marshal ¶
func (m *RawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RawTransaction) XXX_Merge ¶
func (m *RawTransaction) XXX_Merge(src proto.Message)
func (*RawTransaction) XXX_OneofWrappers ¶
func (*RawTransaction) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RawTransaction) XXX_Size ¶
func (m *RawTransaction) XXX_Size() int
func (*RawTransaction) XXX_Unmarshal ¶
func (m *RawTransaction) XXX_Unmarshal(b []byte) error
type RawTransaction_Program ¶
type RawTransaction_Program struct {
Program *Program `protobuf:"bytes,3,opt,name=program,proto3,oneof"`
}
type RawTransaction_WriteSet ¶
type RawTransaction_WriteSet struct {
WriteSet *WriteSet `protobuf:"bytes,4,opt,name=write_set,json=writeSet,proto3,oneof"`
}
type RequestItem ¶
type RequestItem struct { // Types that are valid to be assigned to RequestedItems: // *RequestItem_GetAccountStateRequest // *RequestItem_GetAccountTransactionBySequenceNumberRequest // *RequestItem_GetEventsByEventAccessPathRequest // *RequestItem_GetTransactionsRequest RequestedItems isRequestItem_RequestedItems `protobuf_oneof:"requested_items"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RequestItem) Descriptor ¶
func (*RequestItem) Descriptor() ([]byte, []int)
func (*RequestItem) GetGetAccountStateRequest ¶
func (m *RequestItem) GetGetAccountStateRequest() *GetAccountStateRequest
func (*RequestItem) GetGetAccountTransactionBySequenceNumberRequest ¶
func (m *RequestItem) GetGetAccountTransactionBySequenceNumberRequest() *GetAccountTransactionBySequenceNumberRequest
func (*RequestItem) GetGetEventsByEventAccessPathRequest ¶
func (m *RequestItem) GetGetEventsByEventAccessPathRequest() *GetEventsByEventAccessPathRequest
func (*RequestItem) GetGetTransactionsRequest ¶
func (m *RequestItem) GetGetTransactionsRequest() *GetTransactionsRequest
func (*RequestItem) GetRequestedItems ¶
func (m *RequestItem) GetRequestedItems() isRequestItem_RequestedItems
func (*RequestItem) ProtoMessage ¶
func (*RequestItem) ProtoMessage()
func (*RequestItem) Reset ¶
func (m *RequestItem) Reset()
func (*RequestItem) String ¶
func (m *RequestItem) String() string
func (*RequestItem) XXX_DiscardUnknown ¶
func (m *RequestItem) XXX_DiscardUnknown()
func (*RequestItem) XXX_Marshal ¶
func (m *RequestItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestItem) XXX_Merge ¶
func (m *RequestItem) XXX_Merge(src proto.Message)
func (*RequestItem) XXX_OneofWrappers ¶
func (*RequestItem) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RequestItem) XXX_Size ¶
func (m *RequestItem) XXX_Size() int
func (*RequestItem) XXX_Unmarshal ¶
func (m *RequestItem) XXX_Unmarshal(b []byte) error
type RequestItem_GetAccountStateRequest ¶
type RequestItem_GetAccountStateRequest struct {
GetAccountStateRequest *GetAccountStateRequest `protobuf:"bytes,1,opt,name=get_account_state_request,json=getAccountStateRequest,proto3,oneof"`
}
type RequestItem_GetAccountTransactionBySequenceNumberRequest ¶
type RequestItem_GetAccountTransactionBySequenceNumberRequest struct {
GetAccountTransactionBySequenceNumberRequest *GetAccountTransactionBySequenceNumberRequest `` /* 141-byte string literal not displayed */
}
type RequestItem_GetEventsByEventAccessPathRequest ¶
type RequestItem_GetEventsByEventAccessPathRequest struct {
GetEventsByEventAccessPathRequest *GetEventsByEventAccessPathRequest `protobuf:"bytes,3,opt,name=get_events_by_event_access_path_request,json=getEventsByEventAccessPathRequest,proto3,oneof"`
}
type RequestItem_GetTransactionsRequest ¶
type RequestItem_GetTransactionsRequest struct {
GetTransactionsRequest *GetTransactionsRequest `protobuf:"bytes,4,opt,name=get_transactions_request,json=getTransactionsRequest,proto3,oneof"`
}
type ResponseItem ¶
type ResponseItem struct { // Types that are valid to be assigned to ResponseItems: // *ResponseItem_GetAccountStateResponse // *ResponseItem_GetAccountTransactionBySequenceNumberResponse // *ResponseItem_GetEventsByEventAccessPathResponse // *ResponseItem_GetTransactionsResponse ResponseItems isResponseItem_ResponseItems `protobuf_oneof:"response_items"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Individual response items to the queries posed by the requests
func (*ResponseItem) Descriptor ¶
func (*ResponseItem) Descriptor() ([]byte, []int)
func (*ResponseItem) GetGetAccountStateResponse ¶
func (m *ResponseItem) GetGetAccountStateResponse() *GetAccountStateResponse
func (*ResponseItem) GetGetAccountTransactionBySequenceNumberResponse ¶
func (m *ResponseItem) GetGetAccountTransactionBySequenceNumberResponse() *GetAccountTransactionBySequenceNumberResponse
func (*ResponseItem) GetGetEventsByEventAccessPathResponse ¶
func (m *ResponseItem) GetGetEventsByEventAccessPathResponse() *GetEventsByEventAccessPathResponse
func (*ResponseItem) GetGetTransactionsResponse ¶
func (m *ResponseItem) GetGetTransactionsResponse() *GetTransactionsResponse
func (*ResponseItem) GetResponseItems ¶
func (m *ResponseItem) GetResponseItems() isResponseItem_ResponseItems
func (*ResponseItem) ProtoMessage ¶
func (*ResponseItem) ProtoMessage()
func (*ResponseItem) Reset ¶
func (m *ResponseItem) Reset()
func (*ResponseItem) String ¶
func (m *ResponseItem) String() string
func (*ResponseItem) XXX_DiscardUnknown ¶
func (m *ResponseItem) XXX_DiscardUnknown()
func (*ResponseItem) XXX_Marshal ¶
func (m *ResponseItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseItem) XXX_Merge ¶
func (m *ResponseItem) XXX_Merge(src proto.Message)
func (*ResponseItem) XXX_OneofWrappers ¶
func (*ResponseItem) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ResponseItem) XXX_Size ¶
func (m *ResponseItem) XXX_Size() int
func (*ResponseItem) XXX_Unmarshal ¶
func (m *ResponseItem) XXX_Unmarshal(b []byte) error
type ResponseItem_GetAccountStateResponse ¶
type ResponseItem_GetAccountStateResponse struct {
GetAccountStateResponse *GetAccountStateResponse `protobuf:"bytes,3,opt,name=get_account_state_response,json=getAccountStateResponse,proto3,oneof"`
}
type ResponseItem_GetAccountTransactionBySequenceNumberResponse ¶
type ResponseItem_GetAccountTransactionBySequenceNumberResponse struct {
GetAccountTransactionBySequenceNumberResponse *GetAccountTransactionBySequenceNumberResponse `` /* 143-byte string literal not displayed */
}
type ResponseItem_GetEventsByEventAccessPathResponse ¶
type ResponseItem_GetEventsByEventAccessPathResponse struct {
GetEventsByEventAccessPathResponse *GetEventsByEventAccessPathResponse `protobuf:"bytes,5,opt,name=get_events_by_event_access_path_response,json=getEventsByEventAccessPathResponse,proto3,oneof"`
}
type ResponseItem_GetTransactionsResponse ¶
type ResponseItem_GetTransactionsResponse struct {
GetTransactionsResponse *GetTransactionsResponse `protobuf:"bytes,6,opt,name=get_transactions_response,json=getTransactionsResponse,proto3,oneof"`
}
type RuntimeStatus ¶
type RuntimeStatus int32
const ( RuntimeStatus_UnknownRuntimeStatus RuntimeStatus = 0 RuntimeStatus_Executed RuntimeStatus = 1 RuntimeStatus_OutOfGas RuntimeStatus = 2 // We tried to access a resource that does not exist under the account. RuntimeStatus_ResourceDoesNotExist RuntimeStatus = 3 // We tried to create a resource under an account where that resource // already exists. RuntimeStatus_ResourceAlreadyExists RuntimeStatus = 4 // We accessed an account that is evicted. RuntimeStatus_EvictedAccountAccess RuntimeStatus = 5 // We tried to create an account at an address where an account already // exists. RuntimeStatus_AccountAddressAlreadyExists RuntimeStatus = 6 RuntimeStatus_TypeError RuntimeStatus = 7 RuntimeStatus_MissingData RuntimeStatus = 8 RuntimeStatus_DataFormatError RuntimeStatus = 9 RuntimeStatus_InvalidData RuntimeStatus = 10 RuntimeStatus_RemoteDataError RuntimeStatus = 11 RuntimeStatus_CannotWriteExistingResource RuntimeStatus = 12 RuntimeStatus_ValueSerializationError RuntimeStatus = 13 RuntimeStatus_ValueDeserializationError RuntimeStatus = 14 // The sender is trying to publish a module named `M`, but the sender's account already contains // a module with this name. RuntimeStatus_DuplicateModuleName RuntimeStatus = 15 )
func (RuntimeStatus) EnumDescriptor ¶
func (RuntimeStatus) EnumDescriptor() ([]byte, []int)
func (RuntimeStatus) String ¶
func (x RuntimeStatus) String() string
type SignedTransaction ¶
type SignedTransaction struct { // The serialized Protobuf bytes for RawTransaction, for which the signature // was signed. Protobuf doesn't guarantee the serialized bytes is canonical // across different language implementations, but for our use cases for // transaction it is not necessary because the client is the only one to // produce this bytes, which is then persisted in storage. RawTxnBytes []byte `protobuf:"bytes,1,opt,name=raw_txn_bytes,json=rawTxnBytes,proto3" json:"raw_txn_bytes,omitempty"` // public key that corresponds to RawTransaction::sender_account SenderPublicKey []byte `protobuf:"bytes,2,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` // signature for the hash SenderSignature []byte `protobuf:"bytes,3,opt,name=sender_signature,json=senderSignature,proto3" json:"sender_signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A generic structure that represents signed RawTransaction
func (*SignedTransaction) Descriptor ¶
func (*SignedTransaction) Descriptor() ([]byte, []int)
func (*SignedTransaction) GetRawTxnBytes ¶
func (m *SignedTransaction) GetRawTxnBytes() []byte
func (*SignedTransaction) GetSenderPublicKey ¶
func (m *SignedTransaction) GetSenderPublicKey() []byte
func (*SignedTransaction) GetSenderSignature ¶
func (m *SignedTransaction) GetSenderSignature() []byte
func (*SignedTransaction) ProtoMessage ¶
func (*SignedTransaction) ProtoMessage()
func (*SignedTransaction) Reset ¶
func (m *SignedTransaction) Reset()
func (*SignedTransaction) String ¶
func (m *SignedTransaction) String() string
func (*SignedTransaction) XXX_DiscardUnknown ¶
func (m *SignedTransaction) XXX_DiscardUnknown()
func (*SignedTransaction) XXX_Marshal ¶
func (m *SignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedTransaction) XXX_Merge ¶
func (m *SignedTransaction) XXX_Merge(src proto.Message)
func (*SignedTransaction) XXX_Size ¶
func (m *SignedTransaction) XXX_Size() int
func (*SignedTransaction) XXX_Unmarshal ¶
func (m *SignedTransaction) XXX_Unmarshal(b []byte) error
type SignedTransactionProof ¶
type SignedTransactionProof struct { LedgerInfoToTransactionInfoProof *AccumulatorProof `` /* 165-byte string literal not displayed */ TransactionInfo *TransactionInfo `protobuf:"bytes,2,opt,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The complete proof used to authenticate a signed transaction.
func (*SignedTransactionProof) Descriptor ¶
func (*SignedTransactionProof) Descriptor() ([]byte, []int)
func (*SignedTransactionProof) GetLedgerInfoToTransactionInfoProof ¶
func (m *SignedTransactionProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof
func (*SignedTransactionProof) GetTransactionInfo ¶
func (m *SignedTransactionProof) GetTransactionInfo() *TransactionInfo
func (*SignedTransactionProof) ProtoMessage ¶
func (*SignedTransactionProof) ProtoMessage()
func (*SignedTransactionProof) Reset ¶
func (m *SignedTransactionProof) Reset()
func (*SignedTransactionProof) String ¶
func (m *SignedTransactionProof) String() string
func (*SignedTransactionProof) XXX_DiscardUnknown ¶
func (m *SignedTransactionProof) XXX_DiscardUnknown()
func (*SignedTransactionProof) XXX_Marshal ¶
func (m *SignedTransactionProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedTransactionProof) XXX_Merge ¶
func (m *SignedTransactionProof) XXX_Merge(src proto.Message)
func (*SignedTransactionProof) XXX_Size ¶
func (m *SignedTransactionProof) XXX_Size() int
func (*SignedTransactionProof) XXX_Unmarshal ¶
func (m *SignedTransactionProof) XXX_Unmarshal(b []byte) error
type SignedTransactionWithProof ¶
type SignedTransactionWithProof struct { // The version of the returned signed transaction. Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // The transaction itself. SignedTransaction *SignedTransaction `protobuf:"bytes,2,opt,name=signed_transaction,json=signedTransaction,proto3" json:"signed_transaction,omitempty"` // The proof authenticating the signed transaction. Proof *SignedTransactionProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` // The events yielded by executing the transaction, if requested. Events *EventsList `protobuf:"bytes,4,opt,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedTransactionWithProof) Descriptor ¶
func (*SignedTransactionWithProof) Descriptor() ([]byte, []int)
func (*SignedTransactionWithProof) GetEvents ¶
func (m *SignedTransactionWithProof) GetEvents() *EventsList
func (*SignedTransactionWithProof) GetProof ¶
func (m *SignedTransactionWithProof) GetProof() *SignedTransactionProof
func (*SignedTransactionWithProof) GetSignedTransaction ¶
func (m *SignedTransactionWithProof) GetSignedTransaction() *SignedTransaction
func (*SignedTransactionWithProof) GetVersion ¶
func (m *SignedTransactionWithProof) GetVersion() uint64
func (*SignedTransactionWithProof) ProtoMessage ¶
func (*SignedTransactionWithProof) ProtoMessage()
func (*SignedTransactionWithProof) Reset ¶
func (m *SignedTransactionWithProof) Reset()
func (*SignedTransactionWithProof) String ¶
func (m *SignedTransactionWithProof) String() string
func (*SignedTransactionWithProof) XXX_DiscardUnknown ¶
func (m *SignedTransactionWithProof) XXX_DiscardUnknown()
func (*SignedTransactionWithProof) XXX_Marshal ¶
func (m *SignedTransactionWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedTransactionWithProof) XXX_Merge ¶
func (m *SignedTransactionWithProof) XXX_Merge(src proto.Message)
func (*SignedTransactionWithProof) XXX_Size ¶
func (m *SignedTransactionWithProof) XXX_Size() int
func (*SignedTransactionWithProof) XXX_Unmarshal ¶
func (m *SignedTransactionWithProof) XXX_Unmarshal(b []byte) error
type SignedTransactionsBlock ¶
type SignedTransactionsBlock struct { // Set of Signed Transactions Transactions []*SignedTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // Public key of the validator that created this block ValidatorPublicKey []byte `protobuf:"bytes,2,opt,name=validator_public_key,json=validatorPublicKey,proto3" json:"validator_public_key,omitempty"` // Signature of the validator that created this block ValidatorSignature []byte `protobuf:"bytes,3,opt,name=validator_signature,json=validatorSignature,proto3" json:"validator_signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A generic structure that represents a block of transactions originated from a particular validator instance.
func (*SignedTransactionsBlock) Descriptor ¶
func (*SignedTransactionsBlock) Descriptor() ([]byte, []int)
func (*SignedTransactionsBlock) GetTransactions ¶
func (m *SignedTransactionsBlock) GetTransactions() []*SignedTransaction
func (*SignedTransactionsBlock) GetValidatorPublicKey ¶
func (m *SignedTransactionsBlock) GetValidatorPublicKey() []byte
func (*SignedTransactionsBlock) GetValidatorSignature ¶
func (m *SignedTransactionsBlock) GetValidatorSignature() []byte
func (*SignedTransactionsBlock) ProtoMessage ¶
func (*SignedTransactionsBlock) ProtoMessage()
func (*SignedTransactionsBlock) Reset ¶
func (m *SignedTransactionsBlock) Reset()
func (*SignedTransactionsBlock) String ¶
func (m *SignedTransactionsBlock) String() string
func (*SignedTransactionsBlock) XXX_DiscardUnknown ¶
func (m *SignedTransactionsBlock) XXX_DiscardUnknown()
func (*SignedTransactionsBlock) XXX_Marshal ¶
func (m *SignedTransactionsBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedTransactionsBlock) XXX_Merge ¶
func (m *SignedTransactionsBlock) XXX_Merge(src proto.Message)
func (*SignedTransactionsBlock) XXX_Size ¶
func (m *SignedTransactionsBlock) XXX_Size() int
func (*SignedTransactionsBlock) XXX_Unmarshal ¶
func (m *SignedTransactionsBlock) XXX_Unmarshal(b []byte) error
type SparseMerkleProof ¶
type SparseMerkleProof struct { // This proof can be used to authenticate whether a given leaf exists in the // tree or not. In Rust: // - If this is `Some(HashValue, HashValue)` // - If the first `HashValue` equals requested key, this is an inclusion // proof and the second `HashValue` equals the hash of the // corresponding account blob. // - Otherwise this is a non-inclusion proof. The first `HashValue` is // the only key that exists in the subtree and the second `HashValue` // equals the hash of the corresponding account blob. // - If this is `None`, this is also a non-inclusion proof which indicates // the subtree is empty. // // In protobuf, this leaf field should either be // - empty, which corresponds to None in the Rust structure. // - exactly 64 bytes, which corresponds to Some<(HashValue, HashValue)> // in the Rust structure. Leaf []byte `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"` // The bitmap indicating which siblings are default. 1 means non-default and // 0 means default. The MSB of the first byte corresponds to the sibling at // the top of the Sparse Merkle Tree. The rightmost 1-bit of the last byte // corresponds to the sibling at the bottom, since this one is always // non-default. Bitmap []byte `protobuf:"bytes,2,opt,name=bitmap,proto3" json:"bitmap,omitempty"` // The non-default siblings. The ones near the root are at the beginning of // the list. NonDefaultSiblings [][]byte `protobuf:"bytes,3,rep,name=non_default_siblings,json=nonDefaultSiblings,proto3" json:"non_default_siblings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SparseMerkleProof) Descriptor ¶
func (*SparseMerkleProof) Descriptor() ([]byte, []int)
func (*SparseMerkleProof) GetBitmap ¶
func (m *SparseMerkleProof) GetBitmap() []byte
func (*SparseMerkleProof) GetLeaf ¶
func (m *SparseMerkleProof) GetLeaf() []byte
func (*SparseMerkleProof) GetNonDefaultSiblings ¶
func (m *SparseMerkleProof) GetNonDefaultSiblings() [][]byte
func (*SparseMerkleProof) ProtoMessage ¶
func (*SparseMerkleProof) ProtoMessage()
func (*SparseMerkleProof) Reset ¶
func (m *SparseMerkleProof) Reset()
func (*SparseMerkleProof) String ¶
func (m *SparseMerkleProof) String() string
func (*SparseMerkleProof) XXX_DiscardUnknown ¶
func (m *SparseMerkleProof) XXX_DiscardUnknown()
func (*SparseMerkleProof) XXX_Marshal ¶
func (m *SparseMerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SparseMerkleProof) XXX_Merge ¶
func (m *SparseMerkleProof) XXX_Merge(src proto.Message)
func (*SparseMerkleProof) XXX_Size ¶
func (m *SparseMerkleProof) XXX_Size() int
func (*SparseMerkleProof) XXX_Unmarshal ¶
func (m *SparseMerkleProof) XXX_Unmarshal(b []byte) error
type SubmitTransactionRequest ¶
type SubmitTransactionRequest struct { // Transaction signed by wallet. SignedTxn *SignedTransaction `protobuf:"bytes,1,opt,name=signed_txn,json=signedTxn,proto3" json:"signed_txn,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
----------------------------------------------------------------------------- ---------------- Submit transaction ----------------------------------------------------------------------------- The request for transaction submission.
func (*SubmitTransactionRequest) Descriptor ¶
func (*SubmitTransactionRequest) Descriptor() ([]byte, []int)
func (*SubmitTransactionRequest) GetSignedTxn ¶
func (m *SubmitTransactionRequest) GetSignedTxn() *SignedTransaction
func (*SubmitTransactionRequest) ProtoMessage ¶
func (*SubmitTransactionRequest) ProtoMessage()
func (*SubmitTransactionRequest) Reset ¶
func (m *SubmitTransactionRequest) Reset()
func (*SubmitTransactionRequest) String ¶
func (m *SubmitTransactionRequest) String() string
func (*SubmitTransactionRequest) XXX_DiscardUnknown ¶
func (m *SubmitTransactionRequest) XXX_DiscardUnknown()
func (*SubmitTransactionRequest) XXX_Marshal ¶
func (m *SubmitTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubmitTransactionRequest) XXX_Merge ¶
func (m *SubmitTransactionRequest) XXX_Merge(src proto.Message)
func (*SubmitTransactionRequest) XXX_Size ¶
func (m *SubmitTransactionRequest) XXX_Size() int
func (*SubmitTransactionRequest) XXX_Unmarshal ¶
func (m *SubmitTransactionRequest) XXX_Unmarshal(b []byte) error
type SubmitTransactionResponse ¶
type SubmitTransactionResponse struct { // The status of a transaction submission can either be a VM status, or // some other admission control/mempool specific status e.g. Blacklisted. // // Types that are valid to be assigned to Status: // *SubmitTransactionResponse_VmStatus // *SubmitTransactionResponse_AcStatus // *SubmitTransactionResponse_MempoolStatus Status isSubmitTransactionResponse_Status `protobuf_oneof:"status"` // Public key(id) of the validator that processed this transaction ValidatorId []byte `protobuf:"bytes,4,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response for transaction submission.
How does a client know if their transaction was included? A response from the transaction submission only means that the transaction was successfully added to mempool, but not that it is guaranteed to be included in the chain. Each transaction should include an expiration time in the signed transaction. Let's call this T0. As a client, I submit my transaction to a validator. I now need to poll for the transaction I submitted. I can use the query that takes my account and sequence number. If I receive back that the transaction is completed, I will verify the proofs to ensure that this is the transaction I expected. If I receive a response that my transaction is not yet completed, I must check the latest timestamp in the ledgerInfo that I receive back from the query. If this time is greater than T0, I can be certain that my transaction will never be included. If this time is less than T0, I need to continue polling.
func (*SubmitTransactionResponse) Descriptor ¶
func (*SubmitTransactionResponse) Descriptor() ([]byte, []int)
func (*SubmitTransactionResponse) GetAcStatus ¶
func (m *SubmitTransactionResponse) GetAcStatus() *AdmissionControlStatus
func (*SubmitTransactionResponse) GetMempoolStatus ¶
func (m *SubmitTransactionResponse) GetMempoolStatus() *MempoolAddTransactionStatus
func (*SubmitTransactionResponse) GetStatus ¶
func (m *SubmitTransactionResponse) GetStatus() isSubmitTransactionResponse_Status
func (*SubmitTransactionResponse) GetValidatorId ¶
func (m *SubmitTransactionResponse) GetValidatorId() []byte
func (*SubmitTransactionResponse) GetVmStatus ¶
func (m *SubmitTransactionResponse) GetVmStatus() *VMStatus
func (*SubmitTransactionResponse) ProtoMessage ¶
func (*SubmitTransactionResponse) ProtoMessage()
func (*SubmitTransactionResponse) Reset ¶
func (m *SubmitTransactionResponse) Reset()
func (*SubmitTransactionResponse) String ¶
func (m *SubmitTransactionResponse) String() string
func (*SubmitTransactionResponse) XXX_DiscardUnknown ¶
func (m *SubmitTransactionResponse) XXX_DiscardUnknown()
func (*SubmitTransactionResponse) XXX_Marshal ¶
func (m *SubmitTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubmitTransactionResponse) XXX_Merge ¶
func (m *SubmitTransactionResponse) XXX_Merge(src proto.Message)
func (*SubmitTransactionResponse) XXX_OneofWrappers ¶
func (*SubmitTransactionResponse) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SubmitTransactionResponse) XXX_Size ¶
func (m *SubmitTransactionResponse) XXX_Size() int
func (*SubmitTransactionResponse) XXX_Unmarshal ¶
func (m *SubmitTransactionResponse) XXX_Unmarshal(b []byte) error
type SubmitTransactionResponse_AcStatus ¶
type SubmitTransactionResponse_AcStatus struct {
AcStatus *AdmissionControlStatus `protobuf:"bytes,2,opt,name=ac_status,json=acStatus,proto3,oneof"`
}
type SubmitTransactionResponse_MempoolStatus ¶
type SubmitTransactionResponse_MempoolStatus struct {
MempoolStatus *MempoolAddTransactionStatus `protobuf:"bytes,3,opt,name=mempool_status,json=mempoolStatus,proto3,oneof"`
}
type SubmitTransactionResponse_VmStatus ¶
type SubmitTransactionResponse_VmStatus struct {
VmStatus *VMStatus `protobuf:"bytes,1,opt,name=vm_status,json=vmStatus,proto3,oneof"`
}
type TransactionArgument ¶
type TransactionArgument struct { Type TransactionArgument_ArgType `protobuf:"varint,1,opt,name=type,proto3,enum=types.TransactionArgument_ArgType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An argument to the transaction if the transaction takes arguments
func (*TransactionArgument) Descriptor ¶
func (*TransactionArgument) Descriptor() ([]byte, []int)
func (*TransactionArgument) GetData ¶
func (m *TransactionArgument) GetData() []byte
func (*TransactionArgument) GetType ¶
func (m *TransactionArgument) GetType() TransactionArgument_ArgType
func (*TransactionArgument) ProtoMessage ¶
func (*TransactionArgument) ProtoMessage()
func (*TransactionArgument) Reset ¶
func (m *TransactionArgument) Reset()
func (*TransactionArgument) String ¶
func (m *TransactionArgument) String() string
func (*TransactionArgument) XXX_DiscardUnknown ¶
func (m *TransactionArgument) XXX_DiscardUnknown()
func (*TransactionArgument) XXX_Marshal ¶
func (m *TransactionArgument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionArgument) XXX_Merge ¶
func (m *TransactionArgument) XXX_Merge(src proto.Message)
func (*TransactionArgument) XXX_Size ¶
func (m *TransactionArgument) XXX_Size() int
func (*TransactionArgument) XXX_Unmarshal ¶
func (m *TransactionArgument) XXX_Unmarshal(b []byte) error
type TransactionArgument_ArgType ¶
type TransactionArgument_ArgType int32
const ( TransactionArgument_U64 TransactionArgument_ArgType = 0 TransactionArgument_ADDRESS TransactionArgument_ArgType = 1 TransactionArgument_STRING TransactionArgument_ArgType = 2 TransactionArgument_BYTEARRAY TransactionArgument_ArgType = 3 )
func (TransactionArgument_ArgType) EnumDescriptor ¶
func (TransactionArgument_ArgType) EnumDescriptor() ([]byte, []int)
func (TransactionArgument_ArgType) String ¶
func (x TransactionArgument_ArgType) String() string
type TransactionExclusion ¶
type TransactionExclusion struct { Sender []byte `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionExclusion) Descriptor ¶
func (*TransactionExclusion) Descriptor() ([]byte, []int)
func (*TransactionExclusion) GetSender ¶
func (m *TransactionExclusion) GetSender() []byte
func (*TransactionExclusion) GetSequenceNumber ¶
func (m *TransactionExclusion) GetSequenceNumber() uint64
func (*TransactionExclusion) ProtoMessage ¶
func (*TransactionExclusion) ProtoMessage()
func (*TransactionExclusion) Reset ¶
func (m *TransactionExclusion) Reset()
func (*TransactionExclusion) String ¶
func (m *TransactionExclusion) String() string
func (*TransactionExclusion) XXX_DiscardUnknown ¶
func (m *TransactionExclusion) XXX_DiscardUnknown()
func (*TransactionExclusion) XXX_Marshal ¶
func (m *TransactionExclusion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionExclusion) XXX_Merge ¶
func (m *TransactionExclusion) XXX_Merge(src proto.Message)
func (*TransactionExclusion) XXX_Size ¶
func (m *TransactionExclusion) XXX_Size() int
func (*TransactionExclusion) XXX_Unmarshal ¶
func (m *TransactionExclusion) XXX_Unmarshal(b []byte) error
type TransactionInfo ¶
type TransactionInfo struct { // Hash of the signed transaction that is stored SignedTransactionHash []byte `` /* 126-byte string literal not displayed */ // The root hash of Sparse Merkle Tree describing the world state at the end // of this transaction StateRootHash []byte `protobuf:"bytes,2,opt,name=state_root_hash,json=stateRootHash,proto3" json:"state_root_hash,omitempty"` // The root hash of Merkle Accumulator storing all events emitted during this // transaction. EventRootHash []byte `protobuf:"bytes,3,opt,name=event_root_hash,json=eventRootHash,proto3" json:"event_root_hash,omitempty"` // The amount of gas used by this transaction. GasUsed uint64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
`TransactionInfo` is the object we store in the transaction accumulator. It consists of the transaction as well as the execution result of this transaction. This are later returned to the client so that a client can validate the tree
func (*TransactionInfo) Descriptor ¶
func (*TransactionInfo) Descriptor() ([]byte, []int)
func (*TransactionInfo) GetEventRootHash ¶
func (m *TransactionInfo) GetEventRootHash() []byte
func (*TransactionInfo) GetGasUsed ¶
func (m *TransactionInfo) GetGasUsed() uint64
func (*TransactionInfo) GetSignedTransactionHash ¶
func (m *TransactionInfo) GetSignedTransactionHash() []byte
func (*TransactionInfo) GetStateRootHash ¶
func (m *TransactionInfo) GetStateRootHash() []byte
func (*TransactionInfo) ProtoMessage ¶
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) Reset ¶
func (m *TransactionInfo) Reset()
func (*TransactionInfo) String ¶
func (m *TransactionInfo) String() string
func (*TransactionInfo) XXX_DiscardUnknown ¶
func (m *TransactionInfo) XXX_DiscardUnknown()
func (*TransactionInfo) XXX_Marshal ¶
func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionInfo) XXX_Merge ¶
func (m *TransactionInfo) XXX_Merge(src proto.Message)
func (*TransactionInfo) XXX_Size ¶
func (m *TransactionInfo) XXX_Size() int
func (*TransactionInfo) XXX_Unmarshal ¶
func (m *TransactionInfo) XXX_Unmarshal(b []byte) error
type TransactionListWithProof ¶
type TransactionListWithProof struct { // The list of transactions. Transactions []*SignedTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // The list of corresponding TransactionInfo objects. Infos []*TransactionInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos,omitempty"` // The list of corresponding Event objects (only present if fetch_events was set to true in req) EventsForVersions *EventsForVersions `protobuf:"bytes,3,opt,name=events_for_versions,json=eventsForVersions,proto3" json:"events_for_versions,omitempty"` // If the list is not empty, the version of the first transaction. FirstTransactionVersion *wrappers.UInt64Value `` /* 132-byte string literal not displayed */ // The proofs of the first and last transaction in this chunk. When this is // used for state synchronization, the validator who requests the transactions // will provide a version in the request and the proofs will be relative to // the given version. When this is returned in GetTransactionsResponse, the // proofs will be relative to the ledger info returned in // UpdateToLatestLedgerResponse. ProofOfFirstTransaction *AccumulatorProof `` /* 134-byte string literal not displayed */ ProofOfLastTransaction *AccumulatorProof `` /* 131-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A list of consecutive transactions with proof. This is mainly used for state synchronization when a validator would request a list of transactions from a peer, verify the proof, execute the transactions and persist them. Note that the transactions are supposed to belong to the same epoch E, otherwise verification will fail.
func (*TransactionListWithProof) Descriptor ¶
func (*TransactionListWithProof) Descriptor() ([]byte, []int)
func (*TransactionListWithProof) GetEventsForVersions ¶
func (m *TransactionListWithProof) GetEventsForVersions() *EventsForVersions
func (*TransactionListWithProof) GetFirstTransactionVersion ¶
func (m *TransactionListWithProof) GetFirstTransactionVersion() *wrappers.UInt64Value
func (*TransactionListWithProof) GetInfos ¶
func (m *TransactionListWithProof) GetInfos() []*TransactionInfo
func (*TransactionListWithProof) GetProofOfFirstTransaction ¶
func (m *TransactionListWithProof) GetProofOfFirstTransaction() *AccumulatorProof
func (*TransactionListWithProof) GetProofOfLastTransaction ¶
func (m *TransactionListWithProof) GetProofOfLastTransaction() *AccumulatorProof
func (*TransactionListWithProof) GetTransactions ¶
func (m *TransactionListWithProof) GetTransactions() []*SignedTransaction
func (*TransactionListWithProof) ProtoMessage ¶
func (*TransactionListWithProof) ProtoMessage()
func (*TransactionListWithProof) Reset ¶
func (m *TransactionListWithProof) Reset()
func (*TransactionListWithProof) String ¶
func (m *TransactionListWithProof) String() string
func (*TransactionListWithProof) XXX_DiscardUnknown ¶
func (m *TransactionListWithProof) XXX_DiscardUnknown()
func (*TransactionListWithProof) XXX_Marshal ¶
func (m *TransactionListWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionListWithProof) XXX_Merge ¶
func (m *TransactionListWithProof) XXX_Merge(src proto.Message)
func (*TransactionListWithProof) XXX_Size ¶
func (m *TransactionListWithProof) XXX_Size() int
func (*TransactionListWithProof) XXX_Unmarshal ¶
func (m *TransactionListWithProof) XXX_Unmarshal(b []byte) error
type TransactionToCommit ¶
type TransactionToCommit struct { // The signed transaction which was executed SignedTxn *SignedTransaction `protobuf:"bytes,1,opt,name=signed_txn,json=signedTxn,proto3" json:"signed_txn,omitempty"` // State db updates AccountStates []*AccountState `protobuf:"bytes,2,rep,name=account_states,json=accountStates,proto3" json:"account_states,omitempty"` // Events yielded by the transaction. Events []*Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` // The amount of gas used. GasUsed uint64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Transaction struct to commit to storage
func (*TransactionToCommit) Descriptor ¶
func (*TransactionToCommit) Descriptor() ([]byte, []int)
func (*TransactionToCommit) GetAccountStates ¶
func (m *TransactionToCommit) GetAccountStates() []*AccountState
func (*TransactionToCommit) GetEvents ¶
func (m *TransactionToCommit) GetEvents() []*Event
func (*TransactionToCommit) GetGasUsed ¶
func (m *TransactionToCommit) GetGasUsed() uint64
func (*TransactionToCommit) GetSignedTxn ¶
func (m *TransactionToCommit) GetSignedTxn() *SignedTransaction
func (*TransactionToCommit) ProtoMessage ¶
func (*TransactionToCommit) ProtoMessage()
func (*TransactionToCommit) Reset ¶
func (m *TransactionToCommit) Reset()
func (*TransactionToCommit) String ¶
func (m *TransactionToCommit) String() string
func (*TransactionToCommit) XXX_DiscardUnknown ¶
func (m *TransactionToCommit) XXX_DiscardUnknown()
func (*TransactionToCommit) XXX_Marshal ¶
func (m *TransactionToCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionToCommit) XXX_Merge ¶
func (m *TransactionToCommit) XXX_Merge(src proto.Message)
func (*TransactionToCommit) XXX_Size ¶
func (m *TransactionToCommit) XXX_Size() int
func (*TransactionToCommit) XXX_Unmarshal ¶
func (m *TransactionToCommit) XXX_Unmarshal(b []byte) error
type UpdateToLatestLedgerRequest ¶
type UpdateToLatestLedgerRequest struct { // This is the version the client already trusts. Usually the client should // set this to the version it obtained the last time it synced with the // chain. If this is the first time ever the client sends a request, it must // use the waypoint hard-coded in its software. ClientKnownVersion uint64 `protobuf:"varint,1,opt,name=client_known_version,json=clientKnownVersion,proto3" json:"client_known_version,omitempty"` // The items for which we are requesting data in this API call. RequestedItems []*RequestItem `protobuf:"bytes,2,rep,name=requested_items,json=requestedItems,proto3" json:"requested_items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This API is used to update the client to the latest ledger version and optionally also request 1..n other pieces of data. This allows for batch queries. All queries return proofs that a client should check to validate the data.
Note that if a client only wishes to update to the latest LedgerInfo and receive the proof that this latest ledger extends the client_known_version ledger the client had, they can simply set the requested_items to an empty list.
func (*UpdateToLatestLedgerRequest) Descriptor ¶
func (*UpdateToLatestLedgerRequest) Descriptor() ([]byte, []int)
func (*UpdateToLatestLedgerRequest) GetClientKnownVersion ¶
func (m *UpdateToLatestLedgerRequest) GetClientKnownVersion() uint64
func (*UpdateToLatestLedgerRequest) GetRequestedItems ¶
func (m *UpdateToLatestLedgerRequest) GetRequestedItems() []*RequestItem
func (*UpdateToLatestLedgerRequest) ProtoMessage ¶
func (*UpdateToLatestLedgerRequest) ProtoMessage()
func (*UpdateToLatestLedgerRequest) Reset ¶
func (m *UpdateToLatestLedgerRequest) Reset()
func (*UpdateToLatestLedgerRequest) String ¶
func (m *UpdateToLatestLedgerRequest) String() string
func (*UpdateToLatestLedgerRequest) XXX_DiscardUnknown ¶
func (m *UpdateToLatestLedgerRequest) XXX_DiscardUnknown()
func (*UpdateToLatestLedgerRequest) XXX_Marshal ¶
func (m *UpdateToLatestLedgerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateToLatestLedgerRequest) XXX_Merge ¶
func (m *UpdateToLatestLedgerRequest) XXX_Merge(src proto.Message)
func (*UpdateToLatestLedgerRequest) XXX_Size ¶
func (m *UpdateToLatestLedgerRequest) XXX_Size() int
func (*UpdateToLatestLedgerRequest) XXX_Unmarshal ¶
func (m *UpdateToLatestLedgerRequest) XXX_Unmarshal(b []byte) error
type UpdateToLatestLedgerResponse ¶
type UpdateToLatestLedgerResponse struct { // Responses to the queries posed by the requests. The proofs generated will // be relative to the version of the latest ledger provided below. ResponseItems []*ResponseItem `protobuf:"bytes,1,rep,name=response_items,json=responseItems,proto3" json:"response_items,omitempty"` // The latest ledger info this node has. It will come with at least 2f+1 // validator signatures as well as a proof that shows the latest ledger // extends the old ledger the client had. LedgerInfoWithSigs *LedgerInfoWithSignatures `protobuf:"bytes,2,opt,name=ledger_info_with_sigs,json=ledgerInfoWithSigs,proto3" json:"ledger_info_with_sigs,omitempty"` // Validator change events from what the client last knew. This is used to // inform the client of validator changes from the client's last known version // until the current version ValidatorChangeEvents []*ValidatorChangeEventWithProof `` /* 126-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response from getting latest ledger
func (*UpdateToLatestLedgerResponse) Descriptor ¶
func (*UpdateToLatestLedgerResponse) Descriptor() ([]byte, []int)
func (*UpdateToLatestLedgerResponse) GetLedgerInfoWithSigs ¶
func (m *UpdateToLatestLedgerResponse) GetLedgerInfoWithSigs() *LedgerInfoWithSignatures
func (*UpdateToLatestLedgerResponse) GetResponseItems ¶
func (m *UpdateToLatestLedgerResponse) GetResponseItems() []*ResponseItem
func (*UpdateToLatestLedgerResponse) GetValidatorChangeEvents ¶
func (m *UpdateToLatestLedgerResponse) GetValidatorChangeEvents() []*ValidatorChangeEventWithProof
func (*UpdateToLatestLedgerResponse) ProtoMessage ¶
func (*UpdateToLatestLedgerResponse) ProtoMessage()
func (*UpdateToLatestLedgerResponse) Reset ¶
func (m *UpdateToLatestLedgerResponse) Reset()
func (*UpdateToLatestLedgerResponse) String ¶
func (m *UpdateToLatestLedgerResponse) String() string
func (*UpdateToLatestLedgerResponse) XXX_DiscardUnknown ¶
func (m *UpdateToLatestLedgerResponse) XXX_DiscardUnknown()
func (*UpdateToLatestLedgerResponse) XXX_Marshal ¶
func (m *UpdateToLatestLedgerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateToLatestLedgerResponse) XXX_Merge ¶
func (m *UpdateToLatestLedgerResponse) XXX_Merge(src proto.Message)
func (*UpdateToLatestLedgerResponse) XXX_Size ¶
func (m *UpdateToLatestLedgerResponse) XXX_Size() int
func (*UpdateToLatestLedgerResponse) XXX_Unmarshal ¶
func (m *UpdateToLatestLedgerResponse) XXX_Unmarshal(b []byte) error
type VMInvariantViolationError ¶
type VMInvariantViolationError int32
These are errors that the VM might raise if a violation of internal invariants takes place.
const ( VMInvariantViolationError_UnknownInvariantViolationError VMInvariantViolationError = 0 VMInvariantViolationError_OutOfBoundsIndex VMInvariantViolationError = 1 VMInvariantViolationError_OutOfBoundsRange VMInvariantViolationError = 2 VMInvariantViolationError_EmptyValueStack VMInvariantViolationError = 3 VMInvariantViolationError_EmptyCallStack VMInvariantViolationError = 4 VMInvariantViolationError_PCOverflow VMInvariantViolationError = 5 VMInvariantViolationError_LinkerError VMInvariantViolationError = 6 VMInvariantViolationError_LocalReferenceError VMInvariantViolationError = 7 VMInvariantViolationError_StorageError VMInvariantViolationError = 8 )
func (VMInvariantViolationError) EnumDescriptor ¶
func (VMInvariantViolationError) EnumDescriptor() ([]byte, []int)
func (VMInvariantViolationError) String ¶
func (x VMInvariantViolationError) String() string
type VMStatus ¶
type VMStatus struct { // Types that are valid to be assigned to ErrorType: // *VMStatus_Validation // *VMStatus_Verification // *VMStatus_InvariantViolation // *VMStatus_Deserialization // *VMStatus_Execution ErrorType isVMStatus_ErrorType `protobuf_oneof:"error_type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The status of the VM
func (*VMStatus) Descriptor ¶
func (*VMStatus) GetDeserialization ¶
func (m *VMStatus) GetDeserialization() BinaryError
func (*VMStatus) GetErrorType ¶
func (m *VMStatus) GetErrorType() isVMStatus_ErrorType
func (*VMStatus) GetExecution ¶
func (m *VMStatus) GetExecution() *ExecutionStatus
func (*VMStatus) GetInvariantViolation ¶
func (m *VMStatus) GetInvariantViolation() VMInvariantViolationError
func (*VMStatus) GetValidation ¶
func (m *VMStatus) GetValidation() *VMValidationStatus
func (*VMStatus) GetVerification ¶
func (m *VMStatus) GetVerification() *VMVerificationStatusList
func (*VMStatus) ProtoMessage ¶
func (*VMStatus) ProtoMessage()
func (*VMStatus) XXX_DiscardUnknown ¶
func (m *VMStatus) XXX_DiscardUnknown()
func (*VMStatus) XXX_Marshal ¶
func (*VMStatus) XXX_OneofWrappers ¶
func (*VMStatus) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*VMStatus) XXX_Unmarshal ¶
type VMStatus_Deserialization ¶
type VMStatus_Deserialization struct {
Deserialization BinaryError `protobuf:"varint,4,opt,name=deserialization,proto3,enum=types.BinaryError,oneof"`
}
type VMStatus_Execution ¶
type VMStatus_Execution struct {
Execution *ExecutionStatus `protobuf:"bytes,5,opt,name=execution,proto3,oneof"`
}
type VMStatus_InvariantViolation ¶
type VMStatus_InvariantViolation struct {
InvariantViolation VMInvariantViolationError `protobuf:"varint,3,opt,name=invariant_violation,json=invariantViolation,proto3,enum=types.VMInvariantViolationError,oneof"`
}
type VMStatus_Validation ¶
type VMStatus_Validation struct {
Validation *VMValidationStatus `protobuf:"bytes,1,opt,name=validation,proto3,oneof"`
}
type VMStatus_Verification ¶
type VMStatus_Verification struct {
Verification *VMVerificationStatusList `protobuf:"bytes,2,opt,name=verification,proto3,oneof"`
}
type VMValidationStatus ¶
type VMValidationStatus struct { Code VMValidationStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=types.VMValidationStatusCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VMValidationStatus) Descriptor ¶
func (*VMValidationStatus) Descriptor() ([]byte, []int)
func (*VMValidationStatus) GetCode ¶
func (m *VMValidationStatus) GetCode() VMValidationStatusCode
func (*VMValidationStatus) GetMessage ¶
func (m *VMValidationStatus) GetMessage() string
func (*VMValidationStatus) ProtoMessage ¶
func (*VMValidationStatus) ProtoMessage()
func (*VMValidationStatus) Reset ¶
func (m *VMValidationStatus) Reset()
func (*VMValidationStatus) String ¶
func (m *VMValidationStatus) String() string
func (*VMValidationStatus) XXX_DiscardUnknown ¶
func (m *VMValidationStatus) XXX_DiscardUnknown()
func (*VMValidationStatus) XXX_Marshal ¶
func (m *VMValidationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VMValidationStatus) XXX_Merge ¶
func (m *VMValidationStatus) XXX_Merge(src proto.Message)
func (*VMValidationStatus) XXX_Size ¶
func (m *VMValidationStatus) XXX_Size() int
func (*VMValidationStatus) XXX_Unmarshal ¶
func (m *VMValidationStatus) XXX_Unmarshal(b []byte) error
type VMValidationStatusCode ¶
type VMValidationStatusCode int32
The status of a transaction as determined by the prologue.
const ( // We don't want the default value to be valid VMValidationStatusCode_UnknownValidationStatus VMValidationStatusCode = 0 // The transaction has a bad signature VMValidationStatusCode_InvalidSignature VMValidationStatusCode = 1 // Bad account authentication key VMValidationStatusCode_InvalidAuthKey VMValidationStatusCode = 2 // Sequence number is too old VMValidationStatusCode_SequenceNumberTooOld VMValidationStatusCode = 3 // Sequence number is too new VMValidationStatusCode_SequenceNumberTooNew VMValidationStatusCode = 4 // Insufficient balance to pay minimum transaction fee VMValidationStatusCode_InsufficientBalanceForTransactionFee VMValidationStatusCode = 5 // The transaction has expired VMValidationStatusCode_TransactionExpired VMValidationStatusCode = 6 // The sending account does not exist VMValidationStatusCode_SendingAccountDoesNotExist VMValidationStatusCode = 7 // This write set transaction was rejected because it did not meet the // requirements for one. VMValidationStatusCode_RejectedWriteSet VMValidationStatusCode = 8 // This write set transaction cannot be applied to the current state. VMValidationStatusCode_InvalidWriteSet VMValidationStatusCode = 9 // Length of program field in raw transaction exceeded max length VMValidationStatusCode_ExceededMaxTransactionSize VMValidationStatusCode = 10 // This script is not on our whitelist of script. VMValidationStatusCode_UnknownScript VMValidationStatusCode = 11 // Transaction is trying to publish a new module. VMValidationStatusCode_UnknownModule VMValidationStatusCode = 12 // Max gas units submitted with transaction exceeds max gas units bound // in VM VMValidationStatusCode_MaxGasUnitsExceedsMaxGasUnitsBound VMValidationStatusCode = 13 // Max gas units submitted with transaction not enough to cover the // intrinsic cost of the transaction. VMValidationStatusCode_MaxGasUnitsBelowMinTransactionGasUnits VMValidationStatusCode = 14 // Gas unit price submitted with transaction is below minimum gas price // set in the VM. VMValidationStatusCode_GasUnitPriceBelowMinBound VMValidationStatusCode = 15 // Gas unit price submitted with the transaction is above the maximum // gas price set in the VM. VMValidationStatusCode_GasUnitPriceAboveMaxBound VMValidationStatusCode = 16 )
func (VMValidationStatusCode) EnumDescriptor ¶
func (VMValidationStatusCode) EnumDescriptor() ([]byte, []int)
func (VMValidationStatusCode) String ¶
func (x VMValidationStatusCode) String() string
type VMVerificationErrorKind ¶
type VMVerificationErrorKind int32
When a code module/script is published it is verified. These are the possible errors that can arise from the verification process.
const ( // Likewise default to a unknown verification error VMVerificationErrorKind_UnknownVerificationError VMVerificationErrorKind = 0 VMVerificationErrorKind_IndexOutOfBounds VMVerificationErrorKind = 1 VMVerificationErrorKind_RangeOutOfBounds VMVerificationErrorKind = 2 VMVerificationErrorKind_InvalidSignatureToken VMVerificationErrorKind = 3 VMVerificationErrorKind_InvalidFieldDefReference VMVerificationErrorKind = 4 VMVerificationErrorKind_RecursiveStructDefinition VMVerificationErrorKind = 5 VMVerificationErrorKind_InvalidResourceField VMVerificationErrorKind = 6 VMVerificationErrorKind_InvalidFallThrough VMVerificationErrorKind = 7 VMVerificationErrorKind_JoinFailure VMVerificationErrorKind = 8 VMVerificationErrorKind_NegativeStackSizeWithinBlock VMVerificationErrorKind = 9 VMVerificationErrorKind_UnbalancedStack VMVerificationErrorKind = 10 VMVerificationErrorKind_InvalidMainFunctionSignature VMVerificationErrorKind = 11 VMVerificationErrorKind_DuplicateElement VMVerificationErrorKind = 12 VMVerificationErrorKind_InvalidModuleHandle VMVerificationErrorKind = 13 VMVerificationErrorKind_UnimplementedHandle VMVerificationErrorKind = 14 VMVerificationErrorKind_InconsistentFields VMVerificationErrorKind = 15 VMVerificationErrorKind_UnusedFields VMVerificationErrorKind = 16 VMVerificationErrorKind_LookupFailed VMVerificationErrorKind = 17 VMVerificationErrorKind_VisibilityMismatch VMVerificationErrorKind = 18 VMVerificationErrorKind_TypeResolutionFailure VMVerificationErrorKind = 19 VMVerificationErrorKind_TypeMismatch VMVerificationErrorKind = 20 VMVerificationErrorKind_MissingDependency VMVerificationErrorKind = 21 VMVerificationErrorKind_PopReferenceError VMVerificationErrorKind = 22 VMVerificationErrorKind_PopResourceError VMVerificationErrorKind = 23 VMVerificationErrorKind_ReleaseRefTypeMismatchError VMVerificationErrorKind = 24 VMVerificationErrorKind_BrTypeMismatchError VMVerificationErrorKind = 25 VMVerificationErrorKind_AssertTypeMismatchError VMVerificationErrorKind = 26 VMVerificationErrorKind_StLocTypeMismatchError VMVerificationErrorKind = 27 VMVerificationErrorKind_StLocUnsafeToDestroyError VMVerificationErrorKind = 28 VMVerificationErrorKind_RetUnsafeToDestroyError VMVerificationErrorKind = 29 VMVerificationErrorKind_RetTypeMismatchError VMVerificationErrorKind = 30 VMVerificationErrorKind_FreezeRefTypeMismatchError VMVerificationErrorKind = 31 VMVerificationErrorKind_FreezeRefExistsMutableBorrowError VMVerificationErrorKind = 32 VMVerificationErrorKind_BorrowFieldTypeMismatchError VMVerificationErrorKind = 33 VMVerificationErrorKind_BorrowFieldBadFieldError VMVerificationErrorKind = 34 VMVerificationErrorKind_BorrowFieldExistsMutableBorrowError VMVerificationErrorKind = 35 VMVerificationErrorKind_CopyLocResourceError VMVerificationErrorKind = 37 VMVerificationErrorKind_CopyLocExistsBorrowError VMVerificationErrorKind = 38 VMVerificationErrorKind_MoveLocExistsBorrowError VMVerificationErrorKind = 40 VMVerificationErrorKind_BorrowLocReferenceError VMVerificationErrorKind = 41 VMVerificationErrorKind_BorrowLocExistsBorrowError VMVerificationErrorKind = 43 VMVerificationErrorKind_CallTypeMismatchError VMVerificationErrorKind = 44 VMVerificationErrorKind_CallBorrowedMutableReferenceError VMVerificationErrorKind = 45 VMVerificationErrorKind_PackTypeMismatchError VMVerificationErrorKind = 46 VMVerificationErrorKind_UnpackTypeMismatchError VMVerificationErrorKind = 47 VMVerificationErrorKind_ReadRefTypeMismatchError VMVerificationErrorKind = 48 VMVerificationErrorKind_ReadRefResourceError VMVerificationErrorKind = 49 VMVerificationErrorKind_ReadRefExistsMutableBorrowError VMVerificationErrorKind = 50 VMVerificationErrorKind_WriteRefTypeMismatchError VMVerificationErrorKind = 51 VMVerificationErrorKind_WriteRefResourceError VMVerificationErrorKind = 52 VMVerificationErrorKind_WriteRefExistsBorrowError VMVerificationErrorKind = 53 VMVerificationErrorKind_WriteRefNoMutableReferenceError VMVerificationErrorKind = 54 VMVerificationErrorKind_IntegerOpTypeMismatchError VMVerificationErrorKind = 55 VMVerificationErrorKind_BooleanOpTypeMismatchError VMVerificationErrorKind = 56 VMVerificationErrorKind_EqualityOpTypeMismatchError VMVerificationErrorKind = 57 VMVerificationErrorKind_ExistsResourceTypeMismatchError VMVerificationErrorKind = 58 VMVerificationErrorKind_BorrowGlobalTypeMismatchError VMVerificationErrorKind = 59 VMVerificationErrorKind_BorrowGlobalNoResourceError VMVerificationErrorKind = 60 VMVerificationErrorKind_MoveFromTypeMismatchError VMVerificationErrorKind = 61 VMVerificationErrorKind_MoveFromNoResourceError VMVerificationErrorKind = 62 VMVerificationErrorKind_MoveToSenderTypeMismatchError VMVerificationErrorKind = 63 VMVerificationErrorKind_MoveToSenderNoResourceError VMVerificationErrorKind = 64 VMVerificationErrorKind_CreateAccountTypeMismatchError VMVerificationErrorKind = 65 // The self address of a module the transaction is publishing is not the sender address VMVerificationErrorKind_ModuleAddressDoesNotMatchSender VMVerificationErrorKind = 66 // The module does not have any module handles. Each module or script must have at least one module handle. VMVerificationErrorKind_NoModuleHandles VMVerificationErrorKind = 67 )
func (VMVerificationErrorKind) EnumDescriptor ¶
func (VMVerificationErrorKind) EnumDescriptor() ([]byte, []int)
func (VMVerificationErrorKind) String ¶
func (x VMVerificationErrorKind) String() string
type VMVerificationStatus ¶
type VMVerificationStatus struct { StatusKind VMVerificationStatus_StatusKind `` /* 135-byte string literal not displayed */ // For StatusKind::SCRIPT this is ignored. ModuleIdx uint32 `protobuf:"varint,2,opt,name=module_idx,json=moduleIdx,proto3" json:"module_idx,omitempty"` ErrorKind VMVerificationErrorKind `protobuf:"varint,3,opt,name=error_kind,json=errorKind,proto3,enum=types.VMVerificationErrorKind" json:"error_kind,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VMVerificationStatus) Descriptor ¶
func (*VMVerificationStatus) Descriptor() ([]byte, []int)
func (*VMVerificationStatus) GetErrorKind ¶
func (m *VMVerificationStatus) GetErrorKind() VMVerificationErrorKind
func (*VMVerificationStatus) GetMessage ¶
func (m *VMVerificationStatus) GetMessage() string
func (*VMVerificationStatus) GetModuleIdx ¶
func (m *VMVerificationStatus) GetModuleIdx() uint32
func (*VMVerificationStatus) GetStatusKind ¶
func (m *VMVerificationStatus) GetStatusKind() VMVerificationStatus_StatusKind
func (*VMVerificationStatus) ProtoMessage ¶
func (*VMVerificationStatus) ProtoMessage()
func (*VMVerificationStatus) Reset ¶
func (m *VMVerificationStatus) Reset()
func (*VMVerificationStatus) String ¶
func (m *VMVerificationStatus) String() string
func (*VMVerificationStatus) XXX_DiscardUnknown ¶
func (m *VMVerificationStatus) XXX_DiscardUnknown()
func (*VMVerificationStatus) XXX_Marshal ¶
func (m *VMVerificationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VMVerificationStatus) XXX_Merge ¶
func (m *VMVerificationStatus) XXX_Merge(src proto.Message)
func (*VMVerificationStatus) XXX_Size ¶
func (m *VMVerificationStatus) XXX_Size() int
func (*VMVerificationStatus) XXX_Unmarshal ¶
func (m *VMVerificationStatus) XXX_Unmarshal(b []byte) error
type VMVerificationStatusList ¶
type VMVerificationStatusList struct { StatusList []*VMVerificationStatus `protobuf:"bytes,1,rep,name=status_list,json=statusList,proto3" json:"status_list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VMVerificationStatusList) Descriptor ¶
func (*VMVerificationStatusList) Descriptor() ([]byte, []int)
func (*VMVerificationStatusList) GetStatusList ¶
func (m *VMVerificationStatusList) GetStatusList() []*VMVerificationStatus
func (*VMVerificationStatusList) ProtoMessage ¶
func (*VMVerificationStatusList) ProtoMessage()
func (*VMVerificationStatusList) Reset ¶
func (m *VMVerificationStatusList) Reset()
func (*VMVerificationStatusList) String ¶
func (m *VMVerificationStatusList) String() string
func (*VMVerificationStatusList) XXX_DiscardUnknown ¶
func (m *VMVerificationStatusList) XXX_DiscardUnknown()
func (*VMVerificationStatusList) XXX_Marshal ¶
func (m *VMVerificationStatusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VMVerificationStatusList) XXX_Merge ¶
func (m *VMVerificationStatusList) XXX_Merge(src proto.Message)
func (*VMVerificationStatusList) XXX_Size ¶
func (m *VMVerificationStatusList) XXX_Size() int
func (*VMVerificationStatusList) XXX_Unmarshal ¶
func (m *VMVerificationStatusList) XXX_Unmarshal(b []byte) error
type VMVerificationStatus_StatusKind ¶
type VMVerificationStatus_StatusKind int32
const ( VMVerificationStatus_SCRIPT VMVerificationStatus_StatusKind = 0 VMVerificationStatus_MODULE VMVerificationStatus_StatusKind = 1 )
func (VMVerificationStatus_StatusKind) EnumDescriptor ¶
func (VMVerificationStatus_StatusKind) EnumDescriptor() ([]byte, []int)
func (VMVerificationStatus_StatusKind) String ¶
func (x VMVerificationStatus_StatusKind) String() string
type ValidatorChangeEventWithProof ¶
type ValidatorChangeEventWithProof struct { LedgerInfoWithSigs *LedgerInfoWithSignatures `protobuf:"bytes,1,opt,name=ledger_info_with_sigs,json=ledgerInfoWithSigs,proto3" json:"ledger_info_with_sigs,omitempty"` EventWithProof *EventWithProof `protobuf:"bytes,2,opt,name=event_with_proof,json=eventWithProof,proto3" json:"event_with_proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This is used to prove validator changes. When a validator is changing, it triggers an event on /validator_change_account/events/sent. To tell the client about validator changes, we query /validator_change_account/events/sent to get all versions that contain validator changes after the version that we are trying to update from. For each of these versions, the old validator set would have signed the ledger info at that version. The client needs this as well as the event results + proof. The client can then verify that these events were under the current tree and that the changes were signed by the old validators (and that the events correctly show which validators are the new validators).
This message represents a single validator change event and the proof that corresponds to it
func (*ValidatorChangeEventWithProof) Descriptor ¶
func (*ValidatorChangeEventWithProof) Descriptor() ([]byte, []int)
func (*ValidatorChangeEventWithProof) GetEventWithProof ¶
func (m *ValidatorChangeEventWithProof) GetEventWithProof() *EventWithProof
func (*ValidatorChangeEventWithProof) GetLedgerInfoWithSigs ¶
func (m *ValidatorChangeEventWithProof) GetLedgerInfoWithSigs() *LedgerInfoWithSignatures
func (*ValidatorChangeEventWithProof) ProtoMessage ¶
func (*ValidatorChangeEventWithProof) ProtoMessage()
func (*ValidatorChangeEventWithProof) Reset ¶
func (m *ValidatorChangeEventWithProof) Reset()
func (*ValidatorChangeEventWithProof) String ¶
func (m *ValidatorChangeEventWithProof) String() string
func (*ValidatorChangeEventWithProof) XXX_DiscardUnknown ¶
func (m *ValidatorChangeEventWithProof) XXX_DiscardUnknown()
func (*ValidatorChangeEventWithProof) XXX_Marshal ¶
func (m *ValidatorChangeEventWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorChangeEventWithProof) XXX_Merge ¶
func (m *ValidatorChangeEventWithProof) XXX_Merge(src proto.Message)
func (*ValidatorChangeEventWithProof) XXX_Size ¶
func (m *ValidatorChangeEventWithProof) XXX_Size() int
func (*ValidatorChangeEventWithProof) XXX_Unmarshal ¶
func (m *ValidatorChangeEventWithProof) XXX_Unmarshal(b []byte) error
type ValidatorPublicKeys ¶
type ValidatorPublicKeys struct { // Validator account address AccountAddress []byte `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // Consensus public key ConsensusPublicKey []byte `protobuf:"bytes,2,opt,name=consensus_public_key,json=consensusPublicKey,proto3" json:"consensus_public_key,omitempty"` // Network signing publick key NetworkSigningPublicKey []byte `` /* 134-byte string literal not displayed */ /// Network identity publick key NetworkIdentityPublicKey []byte `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Protobuf definition for the Rust struct ValidatorPublicKeys
func (*ValidatorPublicKeys) Descriptor ¶
func (*ValidatorPublicKeys) Descriptor() ([]byte, []int)
func (*ValidatorPublicKeys) GetAccountAddress ¶
func (m *ValidatorPublicKeys) GetAccountAddress() []byte
func (*ValidatorPublicKeys) GetConsensusPublicKey ¶
func (m *ValidatorPublicKeys) GetConsensusPublicKey() []byte
func (*ValidatorPublicKeys) GetNetworkIdentityPublicKey ¶
func (m *ValidatorPublicKeys) GetNetworkIdentityPublicKey() []byte
func (*ValidatorPublicKeys) GetNetworkSigningPublicKey ¶
func (m *ValidatorPublicKeys) GetNetworkSigningPublicKey() []byte
func (*ValidatorPublicKeys) ProtoMessage ¶
func (*ValidatorPublicKeys) ProtoMessage()
func (*ValidatorPublicKeys) Reset ¶
func (m *ValidatorPublicKeys) Reset()
func (*ValidatorPublicKeys) String ¶
func (m *ValidatorPublicKeys) String() string
func (*ValidatorPublicKeys) XXX_DiscardUnknown ¶
func (m *ValidatorPublicKeys) XXX_DiscardUnknown()
func (*ValidatorPublicKeys) XXX_Marshal ¶
func (m *ValidatorPublicKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorPublicKeys) XXX_Merge ¶
func (m *ValidatorPublicKeys) XXX_Merge(src proto.Message)
func (*ValidatorPublicKeys) XXX_Size ¶
func (m *ValidatorPublicKeys) XXX_Size() int
func (*ValidatorPublicKeys) XXX_Unmarshal ¶
func (m *ValidatorPublicKeys) XXX_Unmarshal(b []byte) error
type ValidatorSet ¶
type ValidatorSet struct { ValidatorPublicKeys []*ValidatorPublicKeys `protobuf:"bytes,1,rep,name=validator_public_keys,json=validatorPublicKeys,proto3" json:"validator_public_keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Protobuf definition for the Rust struct ValidatorSet.
func (*ValidatorSet) Descriptor ¶
func (*ValidatorSet) Descriptor() ([]byte, []int)
func (*ValidatorSet) GetValidatorPublicKeys ¶
func (m *ValidatorSet) GetValidatorPublicKeys() []*ValidatorPublicKeys
func (*ValidatorSet) ProtoMessage ¶
func (*ValidatorSet) ProtoMessage()
func (*ValidatorSet) Reset ¶
func (m *ValidatorSet) Reset()
func (*ValidatorSet) String ¶
func (m *ValidatorSet) String() string
func (*ValidatorSet) XXX_DiscardUnknown ¶
func (m *ValidatorSet) XXX_DiscardUnknown()
func (*ValidatorSet) XXX_Marshal ¶
func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorSet) XXX_Merge ¶
func (m *ValidatorSet) XXX_Merge(src proto.Message)
func (*ValidatorSet) XXX_Size ¶
func (m *ValidatorSet) XXX_Size() int
func (*ValidatorSet) XXX_Unmarshal ¶
func (m *ValidatorSet) XXX_Unmarshal(b []byte) error
type ValidatorSignature ¶
type ValidatorSignature struct { // The account address of the validator, which can be used for retrieving its // public key during the given epoch. ValidatorId []byte `protobuf:"bytes,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValidatorSignature) Descriptor ¶
func (*ValidatorSignature) Descriptor() ([]byte, []int)
func (*ValidatorSignature) GetSignature ¶
func (m *ValidatorSignature) GetSignature() []byte
func (*ValidatorSignature) GetValidatorId ¶
func (m *ValidatorSignature) GetValidatorId() []byte
func (*ValidatorSignature) ProtoMessage ¶
func (*ValidatorSignature) ProtoMessage()
func (*ValidatorSignature) Reset ¶
func (m *ValidatorSignature) Reset()
func (*ValidatorSignature) String ¶
func (m *ValidatorSignature) String() string
func (*ValidatorSignature) XXX_DiscardUnknown ¶
func (m *ValidatorSignature) XXX_DiscardUnknown()
func (*ValidatorSignature) XXX_Marshal ¶
func (m *ValidatorSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorSignature) XXX_Merge ¶
func (m *ValidatorSignature) XXX_Merge(src proto.Message)
func (*ValidatorSignature) XXX_Size ¶
func (m *ValidatorSignature) XXX_Size() int
func (*ValidatorSignature) XXX_Unmarshal ¶
func (m *ValidatorSignature) XXX_Unmarshal(b []byte) error
type WriteOp ¶
type WriteOp struct { // AccessPath of the write set. AccessPath *AccessPath `protobuf:"bytes,1,opt,name=access_path,json=accessPath,proto3" json:"access_path,omitempty"` // The value of the write op. Empty if `type` is Delete. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // WriteOp type. Type WriteOpType `protobuf:"varint,3,opt,name=type,proto3,enum=types.WriteOpType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Write Operation on underlying storage.
func (*WriteOp) Descriptor ¶
func (*WriteOp) GetAccessPath ¶
func (m *WriteOp) GetAccessPath() *AccessPath
func (*WriteOp) GetType ¶
func (m *WriteOp) GetType() WriteOpType
func (*WriteOp) ProtoMessage ¶
func (*WriteOp) ProtoMessage()
func (*WriteOp) XXX_DiscardUnknown ¶
func (m *WriteOp) XXX_DiscardUnknown()
func (*WriteOp) XXX_Marshal ¶
func (*WriteOp) XXX_Unmarshal ¶
type WriteOpType ¶
type WriteOpType int32
Type of write operation
const ( // The WriteOp is to create/update the field from storage. WriteOpType_Write WriteOpType = 0 // The WriteOp is to delete the field from storage. WriteOpType_Delete WriteOpType = 1 )
func (WriteOpType) EnumDescriptor ¶
func (WriteOpType) EnumDescriptor() ([]byte, []int)
func (WriteOpType) String ¶
func (x WriteOpType) String() string
type WriteSet ¶
type WriteSet struct { // Set of WriteOp for storage update. WriteSet []*WriteOp `protobuf:"bytes,1,rep,name=write_set,json=writeSet,proto3" json:"write_set,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Set of WriteOps to save to storage.
func (*WriteSet) Descriptor ¶
func (*WriteSet) GetWriteSet ¶
func (*WriteSet) ProtoMessage ¶
func (*WriteSet) ProtoMessage()
func (*WriteSet) XXX_DiscardUnknown ¶
func (m *WriteSet) XXX_DiscardUnknown()