Documentation ¶
Index ¶
- func NewAccountV1(lc *LoopChainDB, bs []byte) (*accountV1, error)
- type Block
- type LoopChainDB
- func (lc *LoopChainDB) AccountIterator() *accountV1Iterator
- func (lc *LoopChainDB) Close() error
- func (lc *LoopChainDB) GetAccount(addr module.Address) (*accountV1, error)
- func (lc *LoopChainDB) GetBlockByHeight(height int) (module.Block, error)
- func (lc *LoopChainDB) GetBlockJSONByHeight(height int) ([]byte, error)
- func (lc *LoopChainDB) GetLastBlock() (module.Block, error)
- func (lc *LoopChainDB) GetLastBlockJSON() ([]byte, error)
- func (lc *LoopChainDB) GetReceiptByTransaction(id []byte) (module.Receipt, error)
- func (lc *LoopChainDB) GetTransactionInfoByTransaction(id []byte) (*TransactionInfo, error)
- func (lc *LoopChainDB) GetTransactionInfoJSONByTransaction(id []byte) ([]byte, error)
- type TransactionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountV1 ¶
func NewAccountV1(lc *LoopChainDB, bs []byte) (*accountV1, error)
Types ¶
type Block ¶
func ParseBlockV1 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.