Documentation ¶
Index ¶
- func AddBlock(db database.KeyValueWriter, 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 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecreaseBalance ¶
func DecreaseLoan ¶
func GetBalance ¶
func GetLastAccepted ¶
func GetLastAccepted(db database.KeyValueReader) (ids.ID, error)
func GetMessage ¶
func GetMessage(db database.KeyValueReader, txID ids.ID) (*warp.UnsignedMessage, error)
func IncreaseBalance ¶
func IncreaseLoan ¶
func IncrementNonce ¶
func IsInitialized ¶
func IsInitialized(db database.KeyValueReader) (bool, error)
func SetBalance ¶
func SetInitialized ¶
func SetInitialized(db database.KeyValueWriter) error
func SetLastAccepted ¶
func SetLastAccepted(db database.KeyValueWriter, blkID ids.ID) error
func SetMessage ¶
func SetMessage(db database.KeyValueWriter, txID ids.ID, message *warp.UnsignedMessage) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.