Documentation ¶
Index ¶
- Constants
- func BytesToUint64(bytes []byte) uint64
- func CreateAccountAddressKey(addr *types.Address) []byte
- func CreateAccountBlockHashKey(blockHash *types.Hash) []byte
- func CreateAccountBlockHeightKey(addr *types.Address, height uint64) []byte
- func CreateAccountIdKey(accountId uint64) []byte
- func CreateBalanceKey(address types.Address, tokenTypeId types.TokenTypeId) []byte
- func CreateBalanceKeyPrefix(address types.Address) []byte
- func CreateCallDepthKey(blockHash types.Hash) []byte
- func CreateCodeKey(address types.Address) []byte
- func CreateConfirmHeightKey(addr *types.Address, height uint64) []byte
- func CreateContractMetaKey(address types.Address) []byte
- func CreateGidContractKey(gid types.Gid, address *types.Address) []byte
- func CreateGidContractPrefixKey(gid *types.Gid) []byte
- func CreateHistoryBalanceKey(address types.Address, tokenTypeId types.TokenTypeId, snapshotHeight uint64) []byte
- func CreateHistoryStorageValueKey(address *types.Address, storageKey []byte, snapshotHeight uint64) []byte
- func CreateHistoryStorageValueKeyPrefix(address *types.Address, prefix []byte) []byte
- func CreateOnRoadKey(toAddr types.Address, blockHash types.Hash) []byte
- func CreateReceiveKey(sendBlockHash *types.Hash) []byte
- func CreateRedoSnapshot(snapshotHeight uint64) []byte
- func CreateSnapshotBlockHashKey(snapshotBlockHash *types.Hash) []byte
- func CreateSnapshotBlockHeightKey(snapshotBlockHeight uint64) []byte
- func CreateStorageValueKey(address *types.Address, storageKey []byte) []byte
- func CreateStorageValueKeyPrefix(address *types.Address, prefix []byte) []byte
- func CreateVmLogListKey(logHash *types.Hash) []byte
- func DeserializeLocation(bytes []byte) *chain_file_manager.Location
- func SerializeLocation(location *chain_file_manager.Location) []byte
- func Uint64ToBytes(height uint64) []byte
Constants ¶
View Source
const ( AccountBlockHashKeyPrefix = byte(1) AccountBlockHeightKeyPrefix = byte(2) ReceiveKeyPrefix = byte(3) ConfirmHeightKeyPrefix = byte(4) OnRoadKeyPrefix = byte(5) SnapshotBlockHashKeyPrefix = byte(7) SnapshotBlockHeightKeyPrefix = byte(8) AccountAddressKeyPrefix = byte(9) AccountIdKeyPrefix = byte(10) )
index db
View Source
const ( StorageKeyPrefix = byte(1) StorageHistoryKeyPrefix = byte(2) BalanceKeyPrefix = byte(3) BalanceHistoryKeyPrefix = byte(4) CodeKeyPrefix = byte(5) ContractMetaKeyPrefix = byte(7) GidContractKeyPrefix = byte(9) VmLogListKeyPrefix = byte(10) CallDepthKeyPrefix = byte(11) )
state db
View Source
const (
SnapshotKeyPrefix = byte(1)
)
state redo db
Variables ¶
This section is empty.
Functions ¶
func BytesToUint64 ¶
func CreateAccountAddressKey ¶
func CreateAccountBlockHashKey ¶
====== index db ======
func CreateAccountIdKey ¶
func CreateBalanceKey ¶
func CreateBalanceKey(address types.Address, tokenTypeId types.TokenTypeId) []byte
func CreateBalanceKeyPrefix ¶
func CreateCallDepthKey ¶
func CreateCodeKey ¶
func CreateConfirmHeightKey ¶
func CreateContractMetaKey ¶
func CreateHistoryBalanceKey ¶
func CreateReceiveKey ¶
func CreateRedoSnapshot ¶
func CreateStorageValueKey ¶
func CreateVmLogListKey ¶
func DeserializeLocation ¶
func DeserializeLocation(bytes []byte) *chain_file_manager.Location
func SerializeLocation ¶
func SerializeLocation(location *chain_file_manager.Location) []byte
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.