legacy

package
v1.3.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountV1

func NewAccountV1(lc *LoopChainDB, bs []byte) (*accountV1, error)

Types

type Block

type Block interface {
	module.Block
	Verify() error
}

func ParseBlockV0 added in v0.9.6

func ParseBlockV0(b []byte) (Block, error)

type LoopChainDB

type LoopChainDB struct {
	// contains filtered or unexported fields
}

func OpenDatabase

func OpenDatabase(blockdir, scoredir string) (*LoopChainDB, error)

func (*LoopChainDB) AccountIterator

func (lc *LoopChainDB) AccountIterator() *accountV1Iterator

func (*LoopChainDB) Close

func (lc *LoopChainDB) Close() error

func (*LoopChainDB) GetAccount

func (lc *LoopChainDB) GetAccount(addr module.Address) (*accountV1, error)

func (*LoopChainDB) GetBlockByHeight

func (lc *LoopChainDB) GetBlockByHeight(height int) (module.Block, error)

func (*LoopChainDB) GetBlockJSONByHeight

func (lc *LoopChainDB) GetBlockJSONByHeight(height int) ([]byte, error)

func (*LoopChainDB) GetLastBlock

func (lc *LoopChainDB) GetLastBlock() (module.Block, error)

func (*LoopChainDB) GetLastBlockJSON

func (lc *LoopChainDB) GetLastBlockJSON() ([]byte, error)

func (*LoopChainDB) GetReceiptByTransaction

func (lc *LoopChainDB) GetReceiptByTransaction(id []byte) (module.Receipt, error)

func (*LoopChainDB) GetTransactionInfoByTransaction

func (lc *LoopChainDB) GetTransactionInfoByTransaction(id []byte) (*TransactionInfo, error)

func (*LoopChainDB) GetTransactionInfoJSONByTransaction

func (lc *LoopChainDB) GetTransactionInfoJSONByTransaction(id []byte) ([]byte, error)

type TransactionInfo

type TransactionInfo struct {
	BlockID     common.HexBytes `json:"block_hash"`
	BlockHeight int             `json:"block_height"`
	TxIndex     common.HexInt32 `json:"tx_index"`
	Transaction transactionV3   `json:"transaction"`
	Receipt     json.RawMessage `json:"result"`
}

Jump to

Keyboard shortcuts

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