Documentation ¶
Overview ¶
Package balance keeps track of the balance
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBalanceManager ¶
type IBalanceManager interface { IncrementBalance(tokenID string, amount *big.Int) DecrementBalance(tokenID string, amount *big.Int) GetAllOnChainBalances(ctx context.Context) error GetOnChainBalance(ctx context.Context, tokenID string) error GetBalance(tokenID string) *Balance GetNormalizedBalance(tokenID string) (float64, error) }
IBalanceManager is the interface for a BalanceManager.
func NewBalanceManager ¶
func NewBalanceManager(clients map[uint32]EVMClient.EVM, assets []config.AssetConfig, relayerAddress common.Address) (IBalanceManager, error)
NewBalanceManager creates a new balance manager.
Click to show internal directories.
Click to hide internal directories.