Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsUnusedOTSIndex ¶
type IsUnusedOTSIndex struct {
IsUnusedOTSIndex bool `json:"isUnusedOtsIndex" bson:"isUnusedOtsIndex"`
}
type NextUnusedOTS ¶
type PlainAddressState ¶
type PlainAddressState struct { Address string `json:"address" bson:"address"` Balance uint64 `json:"balance" bson:"balance"` Nonce uint64 `json:"nonce" bson:"nonce"` }
func (*PlainAddressState) AddressStateFromPBData ¶
func (a *PlainAddressState) AddressStateFromPBData(a2 *protos.AddressState)
type PlainBalance ¶
type PlainBalance struct {
Balance string `json:"balance" bson:"balance"`
}
type PlainBlock ¶
type PlainBlock struct {
Header *PlainBlockHeader `json:"header" bson:"header"`
}
func (*PlainBlock) BlockFromPBData ¶
func (b *PlainBlock) BlockFromPBData(b2 *protos.Block, headerHash common.Hash)
type PlainBlockHeader ¶
type PlainBlockHeader struct { HeaderHash string `json:"headerHash" bson:"headerHash"` SlotNumber uint64 `json:"slotNumber" bson:"slotNumber"` Timestamp uint64 `json:"timestamp" bson:"timestamp"` ParentHash string `json:"parentHash" bson:"parentHash"` }
func NewPlainBlockHeader ¶
func NewPlainBlockHeader(bh2 *protos.BlockHeader, headerHash common.Hash) *PlainBlockHeader
func (*PlainBlockHeader) BlockHeaderFromPBData ¶
func (bh *PlainBlockHeader) BlockHeaderFromPBData(bh2 *protos.BlockHeader, headerHash common.Hash)
type PlainStakeTransaction ¶
type PlainStakeTransaction struct { ChainID uint64 `json:"chainID"` Gas uint64 `json:"gas"` GasPrice uint64 `json:"gasPrice"` PublicKey string `json:"publicKey"` Signature string `json:"signature"` Nonce uint64 `json:"nonce"` TransactionHash string `json:"transactionHash"` TransactionType string `json:"transactionType"` Amount uint64 `json:"amount"` }
func (*PlainStakeTransaction) ToStakeTransactionObject ¶
func (t *PlainStakeTransaction) ToStakeTransactionObject() (*transactions.Stake, error)
func (*PlainStakeTransaction) TransactionFromPBData ¶
func (t *PlainStakeTransaction) TransactionFromPBData(tx *protos.Transaction, txHash []byte)
type PlainTransferTransaction ¶
type PlainTransferTransaction struct { ChainID uint64 `json:"chainID"` Gas uint64 `json:"gas"` GasPrice uint64 `json:"gasPrice"` PublicKey string `json:"publicKey"` Signature string `json:"signature"` Nonce uint64 `json:"nonce"` TransactionHash string `json:"transactionHash"` TransactionType string `json:"transactionType"` To string `json:"to"` Value uint64 `json:"value"` Data string `json:"data"` }
func (*PlainTransferTransaction) ToTransferTransactionObject ¶
func (t *PlainTransferTransaction) ToTransferTransactionObject() (*transactions.Transfer, error)
func (*PlainTransferTransaction) TransactionFromPBData ¶
func (t *PlainTransferTransaction) TransactionFromPBData(tx *protos.Transaction, txHash []byte)
Click to show internal directories.
Click to hide internal directories.