Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccountNotFound = errors.New("account not found") ErrNotEnoughBalance = errors.New("not enough balance") )
Functions ¶
This section is empty.
Types ¶
type AccountMapper ¶
type AccountMapper interface { GetBalance(types.Context, common.Address) (uint64, error) AddBalance(types.Context, common.Address, uint64) (uint64, error) SubBalance(types.Context, common.Address, uint64) (uint64, error) Transfer(types.Context, common.Address, uint64, common.Address) error }
func NewAccountMapper ¶
func NewAccountMapper(storeKey types.StoreKey) AccountMapper
Click to show internal directories.
Click to hide internal directories.