Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + func AddBlock(db database.KeyValueWriter, height uint64, blkID ids.ID, blk []byte) error + func AddLoanID(db database.KeyValueWriter, chainID ids.ID, loanID ids.ID) error + func DecreaseBalance(db database.KeyValueReaderWriterDeleter, address ids.ShortID, chainID ids.ID, ...) error + func DecreaseLoan(db database.KeyValueReaderWriterDeleter, chainID ids.ID, amount uint64) error + func Flatten[T any](slices ...[]T) []T + func GetBalance(db database.KeyValueReader, address ids.ShortID, chainID ids.ID) (uint64, error) + func GetBlock(db database.KeyValueReader, blkID ids.ID) ([]byte, error) + func GetBlockIDByHeight(db database.KeyValueReader, height uint64) (ids.ID, error) + func GetLastAccepted(db database.KeyValueReader) (ids.ID, error) + func GetLoan(db database.KeyValueReader, chainID ids.ID) (uint64, error) + func GetMessage(db database.KeyValueReader, txID ids.ID) (*warp.UnsignedMessage, error) + func GetNonce(db database.KeyValueReader, address ids.ShortID) (uint64, error) + func HasLoanID(db database.KeyValueReader, chainID ids.ID, loanID ids.ID) (bool, error) + func IncreaseBalance(db database.KeyValueReaderWriterDeleter, address ids.ShortID, chainID ids.ID, ...) error + func IncreaseLoan(db database.KeyValueReaderWriterDeleter, chainID ids.ID, amount uint64) error + func IncrementNonce(db database.KeyValueReaderWriter, address ids.ShortID, nonce uint64) error + func IsInitialized(db database.KeyValueReader) (bool, error) + func SetBalance(db database.KeyValueWriterDeleter, address ids.ShortID, chainID ids.ID, ...) error + func SetInitialized(db database.KeyValueWriter) error + func SetLastAccepted(db database.KeyValueWriter, blkID ids.ID) error + func SetLoan(db database.KeyValueWriterDeleter, chainID ids.ID, balance uint64) error + func SetMessage(db database.KeyValueWriter, txID ids.ID, message *warp.UnsignedMessage) error + func SetNonce(db database.KeyValueWriter, address ids.ShortID, nonce uint64) error