Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertPubKeys(validatorsPubKeys map[uint32][][]byte) map[uint32]*PubKeys
- func GetBody(bodyHandler data.BodyHandler) (*block.Body, error)
- func GetHeaderBytesAndType(marshaller marshal.Marshalizer, headerHandler data.HeaderHandler) ([]byte, core.HeaderType, error)
- type Accounts
- func (*Accounts) Descriptor() ([]byte, []int)
- func (this *Accounts) Equal(that interface{}) bool
- func (m *Accounts) GetAlteredAccounts() map[string]*alteredAccount.AlteredAccount
- func (m *Accounts) GetBlockTimestamp() uint64
- func (m *Accounts) GetShardID() uint32
- func (this *Accounts) GoString() string
- func (m *Accounts) Marshal() (dAtA []byte, err error)
- func (m *Accounts) MarshalTo(dAtA []byte) (int, error)
- func (m *Accounts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Accounts) ProtoMessage()
- func (m *Accounts) Reset()
- func (m *Accounts) Size() (n int)
- func (this *Accounts) String() string
- func (m *Accounts) Unmarshal(dAtA []byte) error
- func (m *Accounts) XXX_DiscardUnknown()
- func (m *Accounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Accounts) XXX_Merge(src proto.Message)
- func (m *Accounts) XXX_Size() int
- func (m *Accounts) XXX_Unmarshal(b []byte) error
- type BlockData
- func (*BlockData) Descriptor() ([]byte, []int)
- func (this *BlockData) Equal(that interface{}) bool
- func (m *BlockData) GetBody() *block.Body
- func (m *BlockData) GetHeaderBytes() []byte
- func (m *BlockData) GetHeaderHash() []byte
- func (m *BlockData) GetHeaderType() string
- func (m *BlockData) GetIntraShardMiniBlocks() []*block.MiniBlock
- func (m *BlockData) GetShardID() uint32
- func (this *BlockData) GoString() string
- func (m *BlockData) Marshal() (dAtA []byte, err error)
- func (m *BlockData) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockData) ProtoMessage()
- func (m *BlockData) Reset()
- func (m *BlockData) Size() (n int)
- func (this *BlockData) String() string
- func (m *BlockData) Unmarshal(dAtA []byte) error
- func (m *BlockData) XXX_DiscardUnknown()
- func (m *BlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockData) XXX_Merge(src proto.Message)
- func (m *BlockData) XXX_Size() int
- func (m *BlockData) XXX_Unmarshal(b []byte) error
- type FeeInfo
- func (*FeeInfo) Descriptor() ([]byte, []int)
- func (this *FeeInfo) Equal(that interface{}) bool
- func (m *FeeInfo) GetFee() *math_big.Int
- func (m *FeeInfo) GetGasUsed() uint64
- func (m *FeeInfo) GetInitialPaidFee() *math_big.Int
- func (this *FeeInfo) GoString() string
- func (m *FeeInfo) Marshal() (dAtA []byte, err error)
- func (m *FeeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeInfo) ProtoMessage()
- func (m *FeeInfo) Reset()
- func (f *FeeInfo) SetFee(fee *big.Int)
- func (f *FeeInfo) SetGasUsed(gasUsed uint64)
- func (f *FeeInfo) SetInitialPaidFee(fee *big.Int)
- func (m *FeeInfo) Size() (n int)
- func (this *FeeInfo) String() string
- func (m *FeeInfo) Unmarshal(dAtA []byte) error
- func (m *FeeInfo) XXX_DiscardUnknown()
- func (m *FeeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeInfo) XXX_Merge(src proto.Message)
- func (m *FeeInfo) XXX_Size() int
- func (m *FeeInfo) XXX_Unmarshal(b []byte) error
- type FinalizedBlock
- func (*FinalizedBlock) Descriptor() ([]byte, []int)
- func (this *FinalizedBlock) Equal(that interface{}) bool
- func (m *FinalizedBlock) GetHeaderHash() []byte
- func (m *FinalizedBlock) GetShardID() uint32
- func (this *FinalizedBlock) GoString() string
- func (m *FinalizedBlock) Marshal() (dAtA []byte, err error)
- func (m *FinalizedBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *FinalizedBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FinalizedBlock) ProtoMessage()
- func (m *FinalizedBlock) Reset()
- func (m *FinalizedBlock) Size() (n int)
- func (this *FinalizedBlock) String() string
- func (m *FinalizedBlock) Unmarshal(dAtA []byte) error
- func (m *FinalizedBlock) XXX_DiscardUnknown()
- func (m *FinalizedBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FinalizedBlock) XXX_Merge(src proto.Message)
- func (m *FinalizedBlock) XXX_Size() int
- func (m *FinalizedBlock) XXX_Unmarshal(b []byte) error
- type HeaderDataWithBody
- type HeaderGasConsumption
- func (*HeaderGasConsumption) Descriptor() ([]byte, []int)
- func (this *HeaderGasConsumption) Equal(that interface{}) bool
- func (m *HeaderGasConsumption) GetGasPenalized() uint64
- func (m *HeaderGasConsumption) GetGasProvided() uint64
- func (m *HeaderGasConsumption) GetGasRefunded() uint64
- func (m *HeaderGasConsumption) GetMaxGasPerBlock() uint64
- func (this *HeaderGasConsumption) GoString() string
- func (m *HeaderGasConsumption) Marshal() (dAtA []byte, err error)
- func (m *HeaderGasConsumption) MarshalTo(dAtA []byte) (int, error)
- func (m *HeaderGasConsumption) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeaderGasConsumption) ProtoMessage()
- func (m *HeaderGasConsumption) Reset()
- func (m *HeaderGasConsumption) Size() (n int)
- func (this *HeaderGasConsumption) String() string
- func (m *HeaderGasConsumption) Unmarshal(dAtA []byte) error
- func (m *HeaderGasConsumption) XXX_DiscardUnknown()
- func (m *HeaderGasConsumption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderGasConsumption) XXX_Merge(src proto.Message)
- func (m *HeaderGasConsumption) XXX_Size() int
- func (m *HeaderGasConsumption) XXX_Unmarshal(b []byte) error
- type LogData
- func (*LogData) Descriptor() ([]byte, []int)
- func (this *LogData) Equal(that interface{}) bool
- func (m *LogData) GetLog() *transaction.Log
- func (m *LogData) GetTxHash() string
- func (this *LogData) GoString() string
- func (m *LogData) Marshal() (dAtA []byte, err error)
- func (m *LogData) MarshalTo(dAtA []byte) (int, error)
- func (m *LogData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogData) ProtoMessage()
- func (m *LogData) Reset()
- func (m *LogData) Size() (n int)
- func (this *LogData) String() string
- func (m *LogData) Unmarshal(dAtA []byte) error
- func (m *LogData) XXX_DiscardUnknown()
- func (m *LogData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogData) XXX_Merge(src proto.Message)
- func (m *LogData) XXX_Size() int
- func (m *LogData) XXX_Unmarshal(b []byte) error
- type OutportBlock
- func (*OutportBlock) Descriptor() ([]byte, []int)
- func (this *OutportBlock) Equal(that interface{}) bool
- func (m *OutportBlock) GetAlteredAccounts() map[string]*alteredAccount.AlteredAccount
- func (m *OutportBlock) GetBlockData() *BlockData
- func (m *OutportBlock) GetHeaderGasConsumption() *HeaderGasConsumption
- func (m *OutportBlock) GetHighestFinalBlockHash() []byte
- func (m *OutportBlock) GetHighestFinalBlockNonce() uint64
- func (m *OutportBlock) GetNotarizedHeadersHashes() []string
- func (m *OutportBlock) GetNumberOfShards() uint32
- func (m *OutportBlock) GetShardID() uint32
- func (m *OutportBlock) GetSignersIndexes() []uint64
- func (m *OutportBlock) GetTransactionPool() *TransactionPool
- func (this *OutportBlock) GoString() string
- func (m *OutportBlock) Marshal() (dAtA []byte, err error)
- func (m *OutportBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *OutportBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OutportBlock) ProtoMessage()
- func (m *OutportBlock) Reset()
- func (m *OutportBlock) Size() (n int)
- func (this *OutportBlock) String() string
- func (m *OutportBlock) Unmarshal(dAtA []byte) error
- func (m *OutportBlock) XXX_DiscardUnknown()
- func (m *OutportBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutportBlock) XXX_Merge(src proto.Message)
- func (m *OutportBlock) XXX_Size() int
- func (m *OutportBlock) XXX_Unmarshal(b []byte) error
- type OutportBlockWithHeader
- type OutportBlockWithHeaderAndBody
- type OutportConfig
- func (*OutportConfig) Descriptor() ([]byte, []int)
- func (this *OutportConfig) Equal(that interface{}) bool
- func (m *OutportConfig) GetIsInImportDBMode() bool
- func (m *OutportConfig) GetShardID() uint32
- func (this *OutportConfig) GoString() string
- func (m *OutportConfig) Marshal() (dAtA []byte, err error)
- func (m *OutportConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *OutportConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OutportConfig) ProtoMessage()
- func (m *OutportConfig) Reset()
- func (m *OutportConfig) Size() (n int)
- func (this *OutportConfig) String() string
- func (m *OutportConfig) Unmarshal(dAtA []byte) error
- func (m *OutportConfig) XXX_DiscardUnknown()
- func (m *OutportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutportConfig) XXX_Merge(src proto.Message)
- func (m *OutportConfig) XXX_Size() int
- func (m *OutportConfig) XXX_Unmarshal(b []byte) error
- type PubKeys
- func (*PubKeys) Descriptor() ([]byte, []int)
- func (this *PubKeys) Equal(that interface{}) bool
- func (m *PubKeys) GetKeys() [][]byte
- func (this *PubKeys) GoString() string
- func (m *PubKeys) Marshal() (dAtA []byte, err error)
- func (m *PubKeys) MarshalTo(dAtA []byte) (int, error)
- func (m *PubKeys) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubKeys) ProtoMessage()
- func (m *PubKeys) Reset()
- func (m *PubKeys) Size() (n int)
- func (this *PubKeys) String() string
- func (m *PubKeys) Unmarshal(dAtA []byte) error
- func (m *PubKeys) XXX_DiscardUnknown()
- func (m *PubKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKeys) XXX_Merge(src proto.Message)
- func (m *PubKeys) XXX_Size() int
- func (m *PubKeys) XXX_Unmarshal(b []byte) error
- type RewardInfo
- func (*RewardInfo) Descriptor() ([]byte, []int)
- func (this *RewardInfo) Equal(that interface{}) bool
- func (m *RewardInfo) GetExecutionOrder() uint32
- func (m *RewardInfo) GetReward() *rewardTx.RewardTx
- func (r *RewardInfo) GetTxHandler() data.TransactionHandler
- func (this *RewardInfo) GoString() string
- func (m *RewardInfo) Marshal() (dAtA []byte, err error)
- func (m *RewardInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RewardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RewardInfo) ProtoMessage()
- func (m *RewardInfo) Reset()
- func (r *RewardInfo) SetExecutionOrder(order uint32)
- func (m *RewardInfo) Size() (n int)
- func (this *RewardInfo) String() string
- func (m *RewardInfo) Unmarshal(dAtA []byte) error
- func (m *RewardInfo) XXX_DiscardUnknown()
- func (m *RewardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RewardInfo) XXX_Merge(src proto.Message)
- func (m *RewardInfo) XXX_Size() int
- func (m *RewardInfo) XXX_Unmarshal(b []byte) error
- type RoundInfo
- func (*RoundInfo) Descriptor() ([]byte, []int)
- func (this *RoundInfo) Equal(that interface{}) bool
- func (m *RoundInfo) GetBlockWasProposed() bool
- func (m *RoundInfo) GetEpoch() uint32
- func (m *RoundInfo) GetRound() uint64
- func (m *RoundInfo) GetShardId() uint32
- func (m *RoundInfo) GetSignersIndexes() []uint64
- func (m *RoundInfo) GetTimestamp() uint64
- func (this *RoundInfo) GoString() string
- func (m *RoundInfo) Marshal() (dAtA []byte, err error)
- func (m *RoundInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RoundInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoundInfo) ProtoMessage()
- func (m *RoundInfo) Reset()
- func (m *RoundInfo) Size() (n int)
- func (this *RoundInfo) String() string
- func (m *RoundInfo) Unmarshal(dAtA []byte) error
- func (m *RoundInfo) XXX_DiscardUnknown()
- func (m *RoundInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoundInfo) XXX_Merge(src proto.Message)
- func (m *RoundInfo) XXX_Size() int
- func (m *RoundInfo) XXX_Unmarshal(b []byte) error
- type RoundsInfo
- func (*RoundsInfo) Descriptor() ([]byte, []int)
- func (this *RoundsInfo) Equal(that interface{}) bool
- func (m *RoundsInfo) GetRoundsInfo() []*RoundInfo
- func (m *RoundsInfo) GetShardID() uint32
- func (this *RoundsInfo) GoString() string
- func (m *RoundsInfo) Marshal() (dAtA []byte, err error)
- func (m *RoundsInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *RoundsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoundsInfo) ProtoMessage()
- func (m *RoundsInfo) Reset()
- func (m *RoundsInfo) Size() (n int)
- func (this *RoundsInfo) String() string
- func (m *RoundsInfo) Unmarshal(dAtA []byte) error
- func (m *RoundsInfo) XXX_DiscardUnknown()
- func (m *RoundsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoundsInfo) XXX_Merge(src proto.Message)
- func (m *RoundsInfo) XXX_Size() int
- func (m *RoundsInfo) XXX_Unmarshal(b []byte) error
- type SCRInfo
- func (*SCRInfo) Descriptor() ([]byte, []int)
- func (this *SCRInfo) Equal(that interface{}) bool
- func (m *SCRInfo) GetExecutionOrder() uint32
- func (m *SCRInfo) GetFeeInfo() *FeeInfo
- func (m *SCRInfo) GetSmartContractResult() *smartContractResult.SmartContractResult
- func (s *SCRInfo) GetTxHandler() data.TransactionHandler
- func (this *SCRInfo) GoString() string
- func (m *SCRInfo) Marshal() (dAtA []byte, err error)
- func (m *SCRInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *SCRInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SCRInfo) ProtoMessage()
- func (m *SCRInfo) Reset()
- func (s *SCRInfo) SetExecutionOrder(order uint32)
- func (m *SCRInfo) Size() (n int)
- func (this *SCRInfo) String() string
- func (m *SCRInfo) Unmarshal(dAtA []byte) error
- func (m *SCRInfo) XXX_DiscardUnknown()
- func (m *SCRInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SCRInfo) XXX_Merge(src proto.Message)
- func (m *SCRInfo) XXX_Size() int
- func (m *SCRInfo) XXX_Unmarshal(b []byte) error
- type Shard
- func (*Shard) Descriptor() ([]byte, []int)
- func (this *Shard) Equal(that interface{}) bool
- func (m *Shard) GetShardID() uint32
- func (this *Shard) GoString() string
- func (m *Shard) Marshal() (dAtA []byte, err error)
- func (m *Shard) MarshalTo(dAtA []byte) (int, error)
- func (m *Shard) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Shard) ProtoMessage()
- func (m *Shard) Reset()
- func (m *Shard) Size() (n int)
- func (this *Shard) String() string
- func (m *Shard) Unmarshal(dAtA []byte) error
- func (m *Shard) XXX_DiscardUnknown()
- func (m *Shard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Shard) XXX_Merge(src proto.Message)
- func (m *Shard) XXX_Size() int
- func (m *Shard) XXX_Unmarshal(b []byte) error
- type StatusInfo
- type TransactionPool
- func (*TransactionPool) Descriptor() ([]byte, []int)
- func (this *TransactionPool) Equal(that interface{}) bool
- func (m *TransactionPool) GetInvalidTxs() map[string]*TxInfo
- func (m *TransactionPool) GetLogs() []*LogData
- func (m *TransactionPool) GetReceipts() map[string]*receipt.Receipt
- func (m *TransactionPool) GetRewards() map[string]*RewardInfo
- func (m *TransactionPool) GetScheduledExecutedInvalidTxsHashesPrevBlock() []string
- func (m *TransactionPool) GetScheduledExecutedSCRSHashesPrevBlock() []string
- func (m *TransactionPool) GetSmartContractResults() map[string]*SCRInfo
- func (m *TransactionPool) GetTransactions() map[string]*TxInfo
- func (this *TransactionPool) GoString() string
- func (m *TransactionPool) Marshal() (dAtA []byte, err error)
- func (m *TransactionPool) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionPool) ProtoMessage()
- func (m *TransactionPool) Reset()
- func (m *TransactionPool) Size() (n int)
- func (this *TransactionPool) String() string
- func (m *TransactionPool) Unmarshal(dAtA []byte) error
- func (m *TransactionPool) XXX_DiscardUnknown()
- func (m *TransactionPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionPool) XXX_Merge(src proto.Message)
- func (m *TransactionPool) XXX_Size() int
- func (m *TransactionPool) XXX_Unmarshal(b []byte) error
- type TxInfo
- func (*TxInfo) Descriptor() ([]byte, []int)
- func (this *TxInfo) Equal(that interface{}) bool
- func (m *TxInfo) GetExecutionOrder() uint32
- func (m *TxInfo) GetFeeInfo() *FeeInfo
- func (m *TxInfo) GetTransaction() *transaction.Transaction
- func (t *TxInfo) GetTxHandler() data.TransactionHandler
- func (this *TxInfo) GoString() string
- func (m *TxInfo) Marshal() (dAtA []byte, err error)
- func (m *TxInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *TxInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxInfo) ProtoMessage()
- func (m *TxInfo) Reset()
- func (t *TxInfo) SetExecutionOrder(order uint32)
- func (m *TxInfo) Size() (n int)
- func (this *TxInfo) String() string
- func (m *TxInfo) Unmarshal(dAtA []byte) error
- func (m *TxInfo) XXX_DiscardUnknown()
- func (m *TxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxInfo) XXX_Merge(src proto.Message)
- func (m *TxInfo) XXX_Size() int
- func (m *TxInfo) XXX_Unmarshal(b []byte) error
- type ValidatorRatingInfo
- func (*ValidatorRatingInfo) Descriptor() ([]byte, []int)
- func (this *ValidatorRatingInfo) Equal(that interface{}) bool
- func (m *ValidatorRatingInfo) GetPublicKey() string
- func (m *ValidatorRatingInfo) GetRating() float32
- func (this *ValidatorRatingInfo) GoString() string
- func (m *ValidatorRatingInfo) Marshal() (dAtA []byte, err error)
- func (m *ValidatorRatingInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorRatingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorRatingInfo) ProtoMessage()
- func (m *ValidatorRatingInfo) Reset()
- func (m *ValidatorRatingInfo) Size() (n int)
- func (this *ValidatorRatingInfo) String() string
- func (m *ValidatorRatingInfo) Unmarshal(dAtA []byte) error
- func (m *ValidatorRatingInfo) XXX_DiscardUnknown()
- func (m *ValidatorRatingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorRatingInfo) XXX_Merge(src proto.Message)
- func (m *ValidatorRatingInfo) XXX_Size() int
- func (m *ValidatorRatingInfo) XXX_Unmarshal(b []byte) error
- type ValidatorsPubKeys
- func (*ValidatorsPubKeys) Descriptor() ([]byte, []int)
- func (this *ValidatorsPubKeys) Equal(that interface{}) bool
- func (m *ValidatorsPubKeys) GetEpoch() uint32
- func (m *ValidatorsPubKeys) GetShardID() uint32
- func (m *ValidatorsPubKeys) GetShardValidatorsPubKeys() map[uint32]*PubKeys
- func (this *ValidatorsPubKeys) GoString() string
- func (m *ValidatorsPubKeys) Marshal() (dAtA []byte, err error)
- func (m *ValidatorsPubKeys) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorsPubKeys) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorsPubKeys) ProtoMessage()
- func (m *ValidatorsPubKeys) Reset()
- func (m *ValidatorsPubKeys) Size() (n int)
- func (this *ValidatorsPubKeys) String() string
- func (m *ValidatorsPubKeys) Unmarshal(dAtA []byte) error
- func (m *ValidatorsPubKeys) XXX_DiscardUnknown()
- func (m *ValidatorsPubKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorsPubKeys) XXX_Merge(src proto.Message)
- func (m *ValidatorsPubKeys) XXX_Size() int
- func (m *ValidatorsPubKeys) XXX_Unmarshal(b []byte) error
- type ValidatorsRating
- func (*ValidatorsRating) Descriptor() ([]byte, []int)
- func (this *ValidatorsRating) Equal(that interface{}) bool
- func (m *ValidatorsRating) GetEpoch() uint32
- func (m *ValidatorsRating) GetShardID() uint32
- func (m *ValidatorsRating) GetValidatorsRatingInfo() []*ValidatorRatingInfo
- func (this *ValidatorsRating) GoString() string
- func (m *ValidatorsRating) Marshal() (dAtA []byte, err error)
- func (m *ValidatorsRating) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorsRating) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorsRating) ProtoMessage()
- func (m *ValidatorsRating) Reset()
- func (m *ValidatorsRating) Size() (n int)
- func (this *ValidatorsRating) String() string
- func (m *ValidatorsRating) Unmarshal(dAtA []byte) error
- func (m *ValidatorsRating) XXX_DiscardUnknown()
- func (m *ValidatorsRating) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorsRating) XXX_Merge(src proto.Message)
- func (m *ValidatorsRating) XXX_Size() int
- func (m *ValidatorsRating) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // TopicSaveBlock is the topic that triggers a block saving TopicSaveBlock = "SaveBlock" // TopicRevertIndexedBlock is the topic that triggers a reverting of an indexed block TopicRevertIndexedBlock = "RevertIndexedBlock" // TopicSaveRoundsInfo is the topic that triggers the saving of rounds info TopicSaveRoundsInfo = "SaveRoundsInfo" // TopicSaveValidatorsPubKeys is the topic that triggers the saving of validators' public keys TopicSaveValidatorsPubKeys = "SaveValidatorsPubKeys" // TopicSaveValidatorsRating is the topic that triggers the saving of the validators' rating TopicSaveValidatorsRating = "SaveValidatorsRating" // TopicSaveAccounts is the topic that triggers the saving of accounts TopicSaveAccounts = "SaveAccounts" // TopicFinalizedBlock is the topic that triggers the handling of a finalized block TopicFinalizedBlock = "FinalizedBlock" // TopicSettings is the topic that triggers the sending of node settings TopicSettings = "Settings" )
Variables ¶
Functions ¶
func ConvertPubKeys ¶
ConvertPubKeys converts a map<shard, validators> into a map<shard, validatorsProtoMessage>
func GetBody ¶
func GetBody(bodyHandler data.BodyHandler) (*block.Body, error)
GetBody converts the BodyHandler interface to Body struct
func GetHeaderBytesAndType ¶
func GetHeaderBytesAndType(marshaller marshal.Marshalizer, headerHandler data.HeaderHandler) ([]byte, core.HeaderType, error)
GetHeaderBytesAndType returns the marshalled header bytes along with header type, if known
Types ¶
type Accounts ¶
type Accounts struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` BlockTimestamp uint64 `protobuf:"varint,2,opt,name=BlockTimestamp,proto3" json:"blockTimestamp"` AlteredAccounts map[string]*alteredAccount.AlteredAccount `` /* 171-byte string literal not displayed */ }
func (*Accounts) Descriptor ¶
func (*Accounts) GetAlteredAccounts ¶
func (m *Accounts) GetAlteredAccounts() map[string]*alteredAccount.AlteredAccount
func (*Accounts) GetBlockTimestamp ¶
func (*Accounts) GetShardID ¶
func (*Accounts) MarshalToSizedBuffer ¶
func (*Accounts) ProtoMessage ¶
func (*Accounts) ProtoMessage()
func (*Accounts) XXX_DiscardUnknown ¶
func (m *Accounts) XXX_DiscardUnknown()
func (*Accounts) XXX_Marshal ¶
func (*Accounts) XXX_Unmarshal ¶
type BlockData ¶
type BlockData struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID,omitempty"` HeaderBytes []byte `protobuf:"bytes,2,opt,name=HeaderBytes,proto3" json:"headerBytes,omitempty"` HeaderType string `protobuf:"bytes,3,opt,name=HeaderType,proto3" json:"headerType,omitempty"` HeaderHash []byte `protobuf:"bytes,4,opt,name=HeaderHash,proto3" json:"headerHash,omitempty"` Body *block.Body `protobuf:"bytes,5,opt,name=Body,proto3" json:"body,omitempty"` IntraShardMiniBlocks []*block.MiniBlock `protobuf:"bytes,6,rep,name=IntraShardMiniBlocks,proto3" json:"intraShardMiniBlocks,omitempty"` }
func (*BlockData) Descriptor ¶
func (*BlockData) GetHeaderBytes ¶
func (*BlockData) GetHeaderHash ¶
func (*BlockData) GetHeaderType ¶
func (*BlockData) GetIntraShardMiniBlocks ¶
func (*BlockData) GetShardID ¶
func (*BlockData) MarshalToSizedBuffer ¶
func (*BlockData) ProtoMessage ¶
func (*BlockData) ProtoMessage()
func (*BlockData) XXX_DiscardUnknown ¶
func (m *BlockData) XXX_DiscardUnknown()
func (*BlockData) XXX_Marshal ¶
func (*BlockData) XXX_Unmarshal ¶
type FeeInfo ¶
type FeeInfo struct { GasUsed uint64 `protobuf:"varint,1,opt,name=GasUsed,proto3" json:"gasUsed"` Fee *math_big.Int `` /* 144-byte string literal not displayed */ InitialPaidFee *math_big.Int `` /* 166-byte string literal not displayed */ }
func (*FeeInfo) Descriptor ¶
func (*FeeInfo) GetGasUsed ¶
func (*FeeInfo) GetInitialPaidFee ¶
func (*FeeInfo) MarshalToSizedBuffer ¶
func (*FeeInfo) ProtoMessage ¶
func (*FeeInfo) ProtoMessage()
func (*FeeInfo) SetGasUsed ¶
SetGasUsed sets the used gas
func (*FeeInfo) SetInitialPaidFee ¶
SetInitialPaidFee sets the initial paid fee
func (*FeeInfo) XXX_DiscardUnknown ¶
func (m *FeeInfo) XXX_DiscardUnknown()
func (*FeeInfo) XXX_Marshal ¶
func (*FeeInfo) XXX_Unmarshal ¶
type FinalizedBlock ¶
type FinalizedBlock struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` HeaderHash []byte `protobuf:"bytes,2,opt,name=HeaderHash,proto3" json:"headerHash"` }
func (*FinalizedBlock) Descriptor ¶
func (*FinalizedBlock) Descriptor() ([]byte, []int)
func (*FinalizedBlock) Equal ¶
func (this *FinalizedBlock) Equal(that interface{}) bool
func (*FinalizedBlock) GetHeaderHash ¶
func (m *FinalizedBlock) GetHeaderHash() []byte
func (*FinalizedBlock) GetShardID ¶
func (m *FinalizedBlock) GetShardID() uint32
func (*FinalizedBlock) GoString ¶
func (this *FinalizedBlock) GoString() string
func (*FinalizedBlock) Marshal ¶
func (m *FinalizedBlock) Marshal() (dAtA []byte, err error)
func (*FinalizedBlock) MarshalToSizedBuffer ¶
func (m *FinalizedBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FinalizedBlock) ProtoMessage ¶
func (*FinalizedBlock) ProtoMessage()
func (*FinalizedBlock) Reset ¶
func (m *FinalizedBlock) Reset()
func (*FinalizedBlock) Size ¶
func (m *FinalizedBlock) Size() (n int)
func (*FinalizedBlock) String ¶
func (this *FinalizedBlock) String() string
func (*FinalizedBlock) Unmarshal ¶
func (m *FinalizedBlock) Unmarshal(dAtA []byte) error
func (*FinalizedBlock) XXX_DiscardUnknown ¶
func (m *FinalizedBlock) XXX_DiscardUnknown()
func (*FinalizedBlock) XXX_Marshal ¶
func (m *FinalizedBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FinalizedBlock) XXX_Merge ¶
func (m *FinalizedBlock) XXX_Merge(src proto.Message)
func (*FinalizedBlock) XXX_Size ¶
func (m *FinalizedBlock) XXX_Size() int
func (*FinalizedBlock) XXX_Unmarshal ¶
func (m *FinalizedBlock) XXX_Unmarshal(b []byte) error
type HeaderDataWithBody ¶
type HeaderDataWithBody struct { Body data.BodyHandler Header data.HeaderHandler IntraShardMiniBlocks []*block.MiniBlock HeaderHash []byte }
HeaderDataWithBody holds header and body data
type HeaderGasConsumption ¶
type HeaderGasConsumption struct { GasProvided uint64 `protobuf:"varint,1,opt,name=GasProvided,proto3" json:"gasProvided"` GasRefunded uint64 `protobuf:"varint,2,opt,name=GasRefunded,proto3" json:"gasRefunded"` GasPenalized uint64 `protobuf:"varint,3,opt,name=GasPenalized,proto3" json:"gasPenalized"` MaxGasPerBlock uint64 `protobuf:"varint,4,opt,name=MaxGasPerBlock,proto3" json:"maxGasPerBlock"` }
func (*HeaderGasConsumption) Descriptor ¶
func (*HeaderGasConsumption) Descriptor() ([]byte, []int)
func (*HeaderGasConsumption) Equal ¶
func (this *HeaderGasConsumption) Equal(that interface{}) bool
func (*HeaderGasConsumption) GetGasPenalized ¶
func (m *HeaderGasConsumption) GetGasPenalized() uint64
func (*HeaderGasConsumption) GetGasProvided ¶
func (m *HeaderGasConsumption) GetGasProvided() uint64
func (*HeaderGasConsumption) GetGasRefunded ¶
func (m *HeaderGasConsumption) GetGasRefunded() uint64
func (*HeaderGasConsumption) GetMaxGasPerBlock ¶
func (m *HeaderGasConsumption) GetMaxGasPerBlock() uint64
func (*HeaderGasConsumption) GoString ¶
func (this *HeaderGasConsumption) GoString() string
func (*HeaderGasConsumption) Marshal ¶
func (m *HeaderGasConsumption) Marshal() (dAtA []byte, err error)
func (*HeaderGasConsumption) MarshalTo ¶
func (m *HeaderGasConsumption) MarshalTo(dAtA []byte) (int, error)
func (*HeaderGasConsumption) MarshalToSizedBuffer ¶
func (m *HeaderGasConsumption) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeaderGasConsumption) ProtoMessage ¶
func (*HeaderGasConsumption) ProtoMessage()
func (*HeaderGasConsumption) Reset ¶
func (m *HeaderGasConsumption) Reset()
func (*HeaderGasConsumption) Size ¶
func (m *HeaderGasConsumption) Size() (n int)
func (*HeaderGasConsumption) String ¶
func (this *HeaderGasConsumption) String() string
func (*HeaderGasConsumption) Unmarshal ¶
func (m *HeaderGasConsumption) Unmarshal(dAtA []byte) error
func (*HeaderGasConsumption) XXX_DiscardUnknown ¶
func (m *HeaderGasConsumption) XXX_DiscardUnknown()
func (*HeaderGasConsumption) XXX_Marshal ¶
func (m *HeaderGasConsumption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeaderGasConsumption) XXX_Merge ¶
func (m *HeaderGasConsumption) XXX_Merge(src proto.Message)
func (*HeaderGasConsumption) XXX_Size ¶
func (m *HeaderGasConsumption) XXX_Size() int
func (*HeaderGasConsumption) XXX_Unmarshal ¶
func (m *HeaderGasConsumption) XXX_Unmarshal(b []byte) error
type LogData ¶
type LogData struct { TxHash string `protobuf:"bytes,1,opt,name=TxHash,proto3" json:"txHash"` Log *transaction.Log `protobuf:"bytes,2,opt,name=Log,proto3" json:"log"` }
func (*LogData) Descriptor ¶
func (*LogData) GetLog ¶
func (m *LogData) GetLog() *transaction.Log
func (*LogData) MarshalToSizedBuffer ¶
func (*LogData) ProtoMessage ¶
func (*LogData) ProtoMessage()
func (*LogData) XXX_DiscardUnknown ¶
func (m *LogData) XXX_DiscardUnknown()
func (*LogData) XXX_Marshal ¶
func (*LogData) XXX_Unmarshal ¶
type OutportBlock ¶
type OutportBlock struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID,omitempty"` BlockData *BlockData `protobuf:"bytes,2,opt,name=BlockData,proto3" json:"blockData,omitempty"` TransactionPool *TransactionPool `protobuf:"bytes,3,opt,name=TransactionPool,proto3" json:"transactionPool,omitempty"` HeaderGasConsumption *HeaderGasConsumption `protobuf:"bytes,4,opt,name=HeaderGasConsumption,proto3" json:"headerGasConsumption,omitempty"` AlteredAccounts map[string]*alteredAccount.AlteredAccount `` /* 171-byte string literal not displayed */ NotarizedHeadersHashes []string `protobuf:"bytes,6,rep,name=NotarizedHeadersHashes,proto3" json:"notarizedHeadersHashes,omitempty"` NumberOfShards uint32 `protobuf:"varint,7,opt,name=NumberOfShards,proto3" json:"numberOfShards"` SignersIndexes []uint64 `protobuf:"varint,8,rep,packed,name=SignersIndexes,proto3" json:"signersIndexes,omitempty"` HighestFinalBlockNonce uint64 `protobuf:"varint,9,opt,name=HighestFinalBlockNonce,proto3" json:"highestFinalBlockNonce"` HighestFinalBlockHash []byte `protobuf:"bytes,10,opt,name=HighestFinalBlockHash,proto3" json:"highestFinalBlockHash,omitempty"` }
func (*OutportBlock) Descriptor ¶
func (*OutportBlock) Descriptor() ([]byte, []int)
func (*OutportBlock) Equal ¶
func (this *OutportBlock) Equal(that interface{}) bool
func (*OutportBlock) GetAlteredAccounts ¶
func (m *OutportBlock) GetAlteredAccounts() map[string]*alteredAccount.AlteredAccount
func (*OutportBlock) GetBlockData ¶
func (m *OutportBlock) GetBlockData() *BlockData
func (*OutportBlock) GetHeaderGasConsumption ¶
func (m *OutportBlock) GetHeaderGasConsumption() *HeaderGasConsumption
func (*OutportBlock) GetHighestFinalBlockHash ¶
func (m *OutportBlock) GetHighestFinalBlockHash() []byte
func (*OutportBlock) GetHighestFinalBlockNonce ¶
func (m *OutportBlock) GetHighestFinalBlockNonce() uint64
func (*OutportBlock) GetNotarizedHeadersHashes ¶
func (m *OutportBlock) GetNotarizedHeadersHashes() []string
func (*OutportBlock) GetNumberOfShards ¶
func (m *OutportBlock) GetNumberOfShards() uint32
func (*OutportBlock) GetShardID ¶
func (m *OutportBlock) GetShardID() uint32
func (*OutportBlock) GetSignersIndexes ¶
func (m *OutportBlock) GetSignersIndexes() []uint64
func (*OutportBlock) GetTransactionPool ¶
func (m *OutportBlock) GetTransactionPool() *TransactionPool
func (*OutportBlock) GoString ¶
func (this *OutportBlock) GoString() string
func (*OutportBlock) Marshal ¶
func (m *OutportBlock) Marshal() (dAtA []byte, err error)
func (*OutportBlock) MarshalToSizedBuffer ¶
func (m *OutportBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OutportBlock) ProtoMessage ¶
func (*OutportBlock) ProtoMessage()
func (*OutportBlock) Reset ¶
func (m *OutportBlock) Reset()
func (*OutportBlock) Size ¶
func (m *OutportBlock) Size() (n int)
func (*OutportBlock) String ¶
func (this *OutportBlock) String() string
func (*OutportBlock) Unmarshal ¶
func (m *OutportBlock) Unmarshal(dAtA []byte) error
func (*OutportBlock) XXX_DiscardUnknown ¶
func (m *OutportBlock) XXX_DiscardUnknown()
func (*OutportBlock) XXX_Marshal ¶
func (m *OutportBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OutportBlock) XXX_Merge ¶
func (m *OutportBlock) XXX_Merge(src proto.Message)
func (*OutportBlock) XXX_Size ¶
func (m *OutportBlock) XXX_Size() int
func (*OutportBlock) XXX_Unmarshal ¶
func (m *OutportBlock) XXX_Unmarshal(b []byte) error
type OutportBlockWithHeader ¶
type OutportBlockWithHeader struct { *OutportBlock Header data.HeaderHandler }
OutportBlockWithHeader will extend the OutportBlock structure
type OutportBlockWithHeaderAndBody ¶
type OutportBlockWithHeaderAndBody struct { *OutportBlock HeaderDataWithBody *HeaderDataWithBody }
OutportBlockWithHeaderAndBody is a wrapper for OutportBlock used for outport handler
type OutportConfig ¶
type OutportConfig struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` IsInImportDBMode bool `protobuf:"varint,2,opt,name=IsInImportDBMode,proto3" json:"isInImportDBMode"` }
func (*OutportConfig) Descriptor ¶
func (*OutportConfig) Descriptor() ([]byte, []int)
func (*OutportConfig) Equal ¶
func (this *OutportConfig) Equal(that interface{}) bool
func (*OutportConfig) GetIsInImportDBMode ¶
func (m *OutportConfig) GetIsInImportDBMode() bool
func (*OutportConfig) GetShardID ¶
func (m *OutportConfig) GetShardID() uint32
func (*OutportConfig) GoString ¶
func (this *OutportConfig) GoString() string
func (*OutportConfig) Marshal ¶
func (m *OutportConfig) Marshal() (dAtA []byte, err error)
func (*OutportConfig) MarshalToSizedBuffer ¶
func (m *OutportConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OutportConfig) ProtoMessage ¶
func (*OutportConfig) ProtoMessage()
func (*OutportConfig) Reset ¶
func (m *OutportConfig) Reset()
func (*OutportConfig) Size ¶
func (m *OutportConfig) Size() (n int)
func (*OutportConfig) String ¶
func (this *OutportConfig) String() string
func (*OutportConfig) Unmarshal ¶
func (m *OutportConfig) Unmarshal(dAtA []byte) error
func (*OutportConfig) XXX_DiscardUnknown ¶
func (m *OutportConfig) XXX_DiscardUnknown()
func (*OutportConfig) XXX_Marshal ¶
func (m *OutportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OutportConfig) XXX_Merge ¶
func (m *OutportConfig) XXX_Merge(src proto.Message)
func (*OutportConfig) XXX_Size ¶
func (m *OutportConfig) XXX_Size() int
func (*OutportConfig) XXX_Unmarshal ¶
func (m *OutportConfig) XXX_Unmarshal(b []byte) error
type PubKeys ¶
type PubKeys struct {
Keys [][]byte `protobuf:"bytes,1,rep,name=Keys,proto3" json:"keys,omitempty"`
}
func (*PubKeys) Descriptor ¶
func (*PubKeys) MarshalToSizedBuffer ¶
func (*PubKeys) ProtoMessage ¶
func (*PubKeys) ProtoMessage()
func (*PubKeys) XXX_DiscardUnknown ¶
func (m *PubKeys) XXX_DiscardUnknown()
func (*PubKeys) XXX_Marshal ¶
func (*PubKeys) XXX_Unmarshal ¶
type RewardInfo ¶
type RewardInfo struct { Reward *rewardTx.RewardTx `protobuf:"bytes,1,opt,name=Reward,proto3" json:"reward,omitempty"` ExecutionOrder uint32 `protobuf:"varint,2,opt,name=ExecutionOrder,proto3" json:"executionOrder"` }
func (*RewardInfo) Descriptor ¶
func (*RewardInfo) Descriptor() ([]byte, []int)
func (*RewardInfo) Equal ¶
func (this *RewardInfo) Equal(that interface{}) bool
func (*RewardInfo) GetExecutionOrder ¶
func (m *RewardInfo) GetExecutionOrder() uint32
func (*RewardInfo) GetReward ¶
func (m *RewardInfo) GetReward() *rewardTx.RewardTx
func (*RewardInfo) GetTxHandler ¶
func (r *RewardInfo) GetTxHandler() data.TransactionHandler
GetTxHandler returns tx handler
func (*RewardInfo) GoString ¶
func (this *RewardInfo) GoString() string
func (*RewardInfo) Marshal ¶
func (m *RewardInfo) Marshal() (dAtA []byte, err error)
func (*RewardInfo) MarshalToSizedBuffer ¶
func (m *RewardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RewardInfo) ProtoMessage ¶
func (*RewardInfo) ProtoMessage()
func (*RewardInfo) Reset ¶
func (m *RewardInfo) Reset()
func (*RewardInfo) SetExecutionOrder ¶
func (r *RewardInfo) SetExecutionOrder(order uint32)
SetExecutionOrder sets execution order
func (*RewardInfo) Size ¶
func (m *RewardInfo) Size() (n int)
func (*RewardInfo) String ¶
func (this *RewardInfo) String() string
func (*RewardInfo) Unmarshal ¶
func (m *RewardInfo) Unmarshal(dAtA []byte) error
func (*RewardInfo) XXX_DiscardUnknown ¶
func (m *RewardInfo) XXX_DiscardUnknown()
func (*RewardInfo) XXX_Marshal ¶
func (m *RewardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RewardInfo) XXX_Merge ¶
func (m *RewardInfo) XXX_Merge(src proto.Message)
func (*RewardInfo) XXX_Size ¶
func (m *RewardInfo) XXX_Size() int
func (*RewardInfo) XXX_Unmarshal ¶
func (m *RewardInfo) XXX_Unmarshal(b []byte) error
type RoundInfo ¶
type RoundInfo struct { Round uint64 `protobuf:"varint,1,opt,name=Round,proto3" json:"round"` SignersIndexes []uint64 `protobuf:"varint,2,rep,packed,name=SignersIndexes,proto3" json:"signersIndexes"` BlockWasProposed bool `protobuf:"varint,3,opt,name=BlockWasProposed,proto3" json:"blockWasProposed"` ShardId uint32 `protobuf:"varint,4,opt,name=ShardId,proto3" json:"shardId"` Epoch uint32 `protobuf:"varint,5,opt,name=Epoch,proto3" json:"epoch"` Timestamp uint64 `protobuf:"varint,6,opt,name=Timestamp,proto3" json:"timestamp"` }
func (*RoundInfo) Descriptor ¶
func (*RoundInfo) GetBlockWasProposed ¶
func (*RoundInfo) GetShardId ¶
func (*RoundInfo) GetSignersIndexes ¶
func (*RoundInfo) GetTimestamp ¶
func (*RoundInfo) MarshalToSizedBuffer ¶
func (*RoundInfo) ProtoMessage ¶
func (*RoundInfo) ProtoMessage()
func (*RoundInfo) XXX_DiscardUnknown ¶
func (m *RoundInfo) XXX_DiscardUnknown()
func (*RoundInfo) XXX_Marshal ¶
func (*RoundInfo) XXX_Unmarshal ¶
type RoundsInfo ¶
type RoundsInfo struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` RoundsInfo []*RoundInfo `protobuf:"bytes,2,rep,name=RoundsInfo,proto3" json:"roundsInfo,omitempty"` }
func (*RoundsInfo) Descriptor ¶
func (*RoundsInfo) Descriptor() ([]byte, []int)
func (*RoundsInfo) Equal ¶
func (this *RoundsInfo) Equal(that interface{}) bool
func (*RoundsInfo) GetRoundsInfo ¶
func (m *RoundsInfo) GetRoundsInfo() []*RoundInfo
func (*RoundsInfo) GetShardID ¶
func (m *RoundsInfo) GetShardID() uint32
func (*RoundsInfo) GoString ¶
func (this *RoundsInfo) GoString() string
func (*RoundsInfo) Marshal ¶
func (m *RoundsInfo) Marshal() (dAtA []byte, err error)
func (*RoundsInfo) MarshalToSizedBuffer ¶
func (m *RoundsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoundsInfo) ProtoMessage ¶
func (*RoundsInfo) ProtoMessage()
func (*RoundsInfo) Reset ¶
func (m *RoundsInfo) Reset()
func (*RoundsInfo) Size ¶
func (m *RoundsInfo) Size() (n int)
func (*RoundsInfo) String ¶
func (this *RoundsInfo) String() string
func (*RoundsInfo) Unmarshal ¶
func (m *RoundsInfo) Unmarshal(dAtA []byte) error
func (*RoundsInfo) XXX_DiscardUnknown ¶
func (m *RoundsInfo) XXX_DiscardUnknown()
func (*RoundsInfo) XXX_Marshal ¶
func (m *RoundsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoundsInfo) XXX_Merge ¶
func (m *RoundsInfo) XXX_Merge(src proto.Message)
func (*RoundsInfo) XXX_Size ¶
func (m *RoundsInfo) XXX_Size() int
func (*RoundsInfo) XXX_Unmarshal ¶
func (m *RoundsInfo) XXX_Unmarshal(b []byte) error
type SCRInfo ¶
type SCRInfo struct { SmartContractResult *smartContractResult.SmartContractResult `protobuf:"bytes,1,opt,name=SmartContractResult,proto3" json:"smartContractResult,omitempty"` FeeInfo *FeeInfo `protobuf:"bytes,2,opt,name=FeeInfo,proto3" json:"feeInfo,omitempty"` ExecutionOrder uint32 `protobuf:"varint,3,opt,name=ExecutionOrder,proto3" json:"executionOrder"` }
func (*SCRInfo) Descriptor ¶
func (*SCRInfo) GetExecutionOrder ¶
func (*SCRInfo) GetFeeInfo ¶
func (*SCRInfo) GetSmartContractResult ¶
func (m *SCRInfo) GetSmartContractResult() *smartContractResult.SmartContractResult
func (*SCRInfo) GetTxHandler ¶
func (s *SCRInfo) GetTxHandler() data.TransactionHandler
GetTxHandler returns tx handler
func (*SCRInfo) MarshalToSizedBuffer ¶
func (*SCRInfo) ProtoMessage ¶
func (*SCRInfo) ProtoMessage()
func (*SCRInfo) SetExecutionOrder ¶
SetExecutionOrder sets execution order
func (*SCRInfo) XXX_DiscardUnknown ¶
func (m *SCRInfo) XXX_DiscardUnknown()
func (*SCRInfo) XXX_Marshal ¶
func (*SCRInfo) XXX_Unmarshal ¶
type Shard ¶
type Shard struct {
ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"`
}
func (*Shard) Descriptor ¶
func (*Shard) GetShardID ¶
func (*Shard) ProtoMessage ¶
func (*Shard) ProtoMessage()
func (*Shard) XXX_DiscardUnknown ¶
func (m *Shard) XXX_DiscardUnknown()
func (*Shard) XXX_Marshal ¶
func (*Shard) XXX_Unmarshal ¶
type StatusInfo ¶
type StatusInfo struct { CompletedEvent bool `json:"completedEvent"` ErrorEvent bool `json:"errorEvent"` Status string `json:"status"` }
StatusInfo holds the fields for the transaction status
type TransactionPool ¶
type TransactionPool struct { Transactions map[string]*TxInfo `` /* 165-byte string literal not displayed */ SmartContractResults map[string]*SCRInfo `` /* 181-byte string literal not displayed */ Rewards map[string]*RewardInfo `` /* 155-byte string literal not displayed */ Receipts map[string]*receipt.Receipt `` /* 157-byte string literal not displayed */ InvalidTxs map[string]*TxInfo `` /* 161-byte string literal not displayed */ Logs []*LogData `protobuf:"bytes,6,rep,name=Logs,proto3" json:"logs,omitempty"` ScheduledExecutedSCRSHashesPrevBlock []string `protobuf:"bytes,7,rep,name=ScheduledExecutedSCRSHashesPrevBlock,proto3" json:"scheduledExecutedSCRSHashesPrevBlock,omitempty"` ScheduledExecutedInvalidTxsHashesPrevBlock []string `` /* 137-byte string literal not displayed */ }
func (*TransactionPool) Descriptor ¶
func (*TransactionPool) Descriptor() ([]byte, []int)
func (*TransactionPool) Equal ¶
func (this *TransactionPool) Equal(that interface{}) bool
func (*TransactionPool) GetInvalidTxs ¶
func (m *TransactionPool) GetInvalidTxs() map[string]*TxInfo
func (*TransactionPool) GetLogs ¶
func (m *TransactionPool) GetLogs() []*LogData
func (*TransactionPool) GetReceipts ¶
func (m *TransactionPool) GetReceipts() map[string]*receipt.Receipt
func (*TransactionPool) GetRewards ¶
func (m *TransactionPool) GetRewards() map[string]*RewardInfo
func (*TransactionPool) GetScheduledExecutedInvalidTxsHashesPrevBlock ¶
func (m *TransactionPool) GetScheduledExecutedInvalidTxsHashesPrevBlock() []string
func (*TransactionPool) GetScheduledExecutedSCRSHashesPrevBlock ¶
func (m *TransactionPool) GetScheduledExecutedSCRSHashesPrevBlock() []string
func (*TransactionPool) GetSmartContractResults ¶
func (m *TransactionPool) GetSmartContractResults() map[string]*SCRInfo
func (*TransactionPool) GetTransactions ¶
func (m *TransactionPool) GetTransactions() map[string]*TxInfo
func (*TransactionPool) GoString ¶
func (this *TransactionPool) GoString() string
func (*TransactionPool) Marshal ¶
func (m *TransactionPool) Marshal() (dAtA []byte, err error)
func (*TransactionPool) MarshalToSizedBuffer ¶
func (m *TransactionPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionPool) ProtoMessage ¶
func (*TransactionPool) ProtoMessage()
func (*TransactionPool) Reset ¶
func (m *TransactionPool) Reset()
func (*TransactionPool) Size ¶
func (m *TransactionPool) Size() (n int)
func (*TransactionPool) String ¶
func (this *TransactionPool) String() string
func (*TransactionPool) Unmarshal ¶
func (m *TransactionPool) Unmarshal(dAtA []byte) error
func (*TransactionPool) XXX_DiscardUnknown ¶
func (m *TransactionPool) XXX_DiscardUnknown()
func (*TransactionPool) XXX_Marshal ¶
func (m *TransactionPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionPool) XXX_Merge ¶
func (m *TransactionPool) XXX_Merge(src proto.Message)
func (*TransactionPool) XXX_Size ¶
func (m *TransactionPool) XXX_Size() int
func (*TransactionPool) XXX_Unmarshal ¶
func (m *TransactionPool) XXX_Unmarshal(b []byte) error
type TxInfo ¶
type TxInfo struct { Transaction *transaction.Transaction `protobuf:"bytes,1,opt,name=Transaction,proto3" json:"transaction,omitempty"` FeeInfo *FeeInfo `protobuf:"bytes,2,opt,name=FeeInfo,proto3" json:"feeInfo,omitempty"` ExecutionOrder uint32 `protobuf:"varint,3,opt,name=ExecutionOrder,proto3" json:"executionOrder"` }
func (*TxInfo) Descriptor ¶
func (*TxInfo) GetExecutionOrder ¶
func (*TxInfo) GetFeeInfo ¶
func (*TxInfo) GetTransaction ¶
func (m *TxInfo) GetTransaction() *transaction.Transaction
func (*TxInfo) GetTxHandler ¶
func (t *TxInfo) GetTxHandler() data.TransactionHandler
GetTxHandler returns tx handler
func (*TxInfo) MarshalToSizedBuffer ¶
func (*TxInfo) ProtoMessage ¶
func (*TxInfo) ProtoMessage()
func (*TxInfo) SetExecutionOrder ¶
SetExecutionOrder sets execution order
func (*TxInfo) XXX_DiscardUnknown ¶
func (m *TxInfo) XXX_DiscardUnknown()
func (*TxInfo) XXX_Marshal ¶
func (*TxInfo) XXX_Unmarshal ¶
type ValidatorRatingInfo ¶
type ValidatorRatingInfo struct { PublicKey string `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"publicKey"` Rating float32 `protobuf:"fixed32,2,opt,name=Rating,proto3" json:"rating"` }
func (*ValidatorRatingInfo) Descriptor ¶
func (*ValidatorRatingInfo) Descriptor() ([]byte, []int)
func (*ValidatorRatingInfo) Equal ¶
func (this *ValidatorRatingInfo) Equal(that interface{}) bool
func (*ValidatorRatingInfo) GetPublicKey ¶
func (m *ValidatorRatingInfo) GetPublicKey() string
func (*ValidatorRatingInfo) GetRating ¶
func (m *ValidatorRatingInfo) GetRating() float32
func (*ValidatorRatingInfo) GoString ¶
func (this *ValidatorRatingInfo) GoString() string
func (*ValidatorRatingInfo) Marshal ¶
func (m *ValidatorRatingInfo) Marshal() (dAtA []byte, err error)
func (*ValidatorRatingInfo) MarshalTo ¶
func (m *ValidatorRatingInfo) MarshalTo(dAtA []byte) (int, error)
func (*ValidatorRatingInfo) MarshalToSizedBuffer ¶
func (m *ValidatorRatingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorRatingInfo) ProtoMessage ¶
func (*ValidatorRatingInfo) ProtoMessage()
func (*ValidatorRatingInfo) Reset ¶
func (m *ValidatorRatingInfo) Reset()
func (*ValidatorRatingInfo) Size ¶
func (m *ValidatorRatingInfo) Size() (n int)
func (*ValidatorRatingInfo) String ¶
func (this *ValidatorRatingInfo) String() string
func (*ValidatorRatingInfo) Unmarshal ¶
func (m *ValidatorRatingInfo) Unmarshal(dAtA []byte) error
func (*ValidatorRatingInfo) XXX_DiscardUnknown ¶
func (m *ValidatorRatingInfo) XXX_DiscardUnknown()
func (*ValidatorRatingInfo) XXX_Marshal ¶
func (m *ValidatorRatingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorRatingInfo) XXX_Merge ¶
func (m *ValidatorRatingInfo) XXX_Merge(src proto.Message)
func (*ValidatorRatingInfo) XXX_Size ¶
func (m *ValidatorRatingInfo) XXX_Size() int
func (*ValidatorRatingInfo) XXX_Unmarshal ¶
func (m *ValidatorRatingInfo) XXX_Unmarshal(b []byte) error
type ValidatorsPubKeys ¶
type ValidatorsPubKeys struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` ShardValidatorsPubKeys map[uint32]*PubKeys `` /* 181-byte string literal not displayed */ Epoch uint32 `protobuf:"varint,3,opt,name=Epoch,proto3" json:"epoch"` }
func (*ValidatorsPubKeys) Descriptor ¶
func (*ValidatorsPubKeys) Descriptor() ([]byte, []int)
func (*ValidatorsPubKeys) Equal ¶
func (this *ValidatorsPubKeys) Equal(that interface{}) bool
func (*ValidatorsPubKeys) GetEpoch ¶
func (m *ValidatorsPubKeys) GetEpoch() uint32
func (*ValidatorsPubKeys) GetShardID ¶
func (m *ValidatorsPubKeys) GetShardID() uint32
func (*ValidatorsPubKeys) GetShardValidatorsPubKeys ¶
func (m *ValidatorsPubKeys) GetShardValidatorsPubKeys() map[uint32]*PubKeys
func (*ValidatorsPubKeys) GoString ¶
func (this *ValidatorsPubKeys) GoString() string
func (*ValidatorsPubKeys) Marshal ¶
func (m *ValidatorsPubKeys) Marshal() (dAtA []byte, err error)
func (*ValidatorsPubKeys) MarshalTo ¶
func (m *ValidatorsPubKeys) MarshalTo(dAtA []byte) (int, error)
func (*ValidatorsPubKeys) MarshalToSizedBuffer ¶
func (m *ValidatorsPubKeys) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorsPubKeys) ProtoMessage ¶
func (*ValidatorsPubKeys) ProtoMessage()
func (*ValidatorsPubKeys) Reset ¶
func (m *ValidatorsPubKeys) Reset()
func (*ValidatorsPubKeys) Size ¶
func (m *ValidatorsPubKeys) Size() (n int)
func (*ValidatorsPubKeys) String ¶
func (this *ValidatorsPubKeys) String() string
func (*ValidatorsPubKeys) Unmarshal ¶
func (m *ValidatorsPubKeys) Unmarshal(dAtA []byte) error
func (*ValidatorsPubKeys) XXX_DiscardUnknown ¶
func (m *ValidatorsPubKeys) XXX_DiscardUnknown()
func (*ValidatorsPubKeys) XXX_Marshal ¶
func (m *ValidatorsPubKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorsPubKeys) XXX_Merge ¶
func (m *ValidatorsPubKeys) XXX_Merge(src proto.Message)
func (*ValidatorsPubKeys) XXX_Size ¶
func (m *ValidatorsPubKeys) XXX_Size() int
func (*ValidatorsPubKeys) XXX_Unmarshal ¶
func (m *ValidatorsPubKeys) XXX_Unmarshal(b []byte) error
type ValidatorsRating ¶
type ValidatorsRating struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` Epoch uint32 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"epoch"` ValidatorsRatingInfo []*ValidatorRatingInfo `protobuf:"bytes,3,rep,name=ValidatorsRatingInfo,proto3" json:"validatorsRatingInfo,omitempty"` }
func (*ValidatorsRating) Descriptor ¶
func (*ValidatorsRating) Descriptor() ([]byte, []int)
func (*ValidatorsRating) Equal ¶
func (this *ValidatorsRating) Equal(that interface{}) bool
func (*ValidatorsRating) GetEpoch ¶
func (m *ValidatorsRating) GetEpoch() uint32
func (*ValidatorsRating) GetShardID ¶
func (m *ValidatorsRating) GetShardID() uint32
func (*ValidatorsRating) GetValidatorsRatingInfo ¶
func (m *ValidatorsRating) GetValidatorsRatingInfo() []*ValidatorRatingInfo
func (*ValidatorsRating) GoString ¶
func (this *ValidatorsRating) GoString() string
func (*ValidatorsRating) Marshal ¶
func (m *ValidatorsRating) Marshal() (dAtA []byte, err error)
func (*ValidatorsRating) MarshalToSizedBuffer ¶
func (m *ValidatorsRating) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorsRating) ProtoMessage ¶
func (*ValidatorsRating) ProtoMessage()
func (*ValidatorsRating) Reset ¶
func (m *ValidatorsRating) Reset()
func (*ValidatorsRating) Size ¶
func (m *ValidatorsRating) Size() (n int)
func (*ValidatorsRating) String ¶
func (this *ValidatorsRating) String() string
func (*ValidatorsRating) Unmarshal ¶
func (m *ValidatorsRating) Unmarshal(dAtA []byte) error
func (*ValidatorsRating) XXX_DiscardUnknown ¶
func (m *ValidatorsRating) XXX_DiscardUnknown()
func (*ValidatorsRating) XXX_Marshal ¶
func (m *ValidatorsRating) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorsRating) XXX_Merge ¶
func (m *ValidatorsRating) XXX_Merge(src proto.Message)
func (*ValidatorsRating) XXX_Size ¶
func (m *ValidatorsRating) XXX_Size() int
func (*ValidatorsRating) XXX_Unmarshal ¶
func (m *ValidatorsRating) XXX_Unmarshal(b []byte) error