view

package
v0.0.0-...-5d05a64 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMCall

type EVMCall struct {
	Address string `json:"address" bson:"address"`
	Data    string `json:"data" bson:"data"`
}

type IsUnusedOTSIndex

type IsUnusedOTSIndex struct {
	IsUnusedOTSIndex bool `json:"isUnusedOtsIndex" bson:"isUnusedOtsIndex"`
}

type NextUnusedOTS

type NextUnusedOTS struct {
	UnusedOTSIndex uint64 `json:"unusedOtsIndex" bson:"unusedOtsIndex"`
	Found          bool   `json:"found" bson:"found"`
}

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)

func (*PlainAddressState) FromData

func (a *PlainAddressState) FromData(address common.Address, balance uint64, nonce uint64)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL