Documentation ¶
Index ¶
- Variables
- type BalanceFetcher
- type DefaultBalanceFetcher
- func (bf *DefaultBalanceFetcher) FetchChainBalances(parent context.Context, accounts []common.Address, ...) (map[common.Address]map[common.Address]*hexutil.Big, error)
- func (bf *DefaultBalanceFetcher) FetchTokenBalancesWithScanContract(ctx context.Context, ethScanContract ethscan.BalanceScannerIface, ...) (map[common.Address]map[common.Address]*hexutil.Big, error)
- func (bf *DefaultBalanceFetcher) GetBalance(ctx context.Context, client chain.ClientInterface, account common.Address, ...) (*big.Int, error)
- func (bf *DefaultBalanceFetcher) GetBalancesAtByChain(parent context.Context, clients map[uint64]chain.ClientInterface, ...) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error)
- func (bf *DefaultBalanceFetcher) GetBalancesByChain(parent context.Context, clients map[uint64]chain.ClientInterface, ...) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error)
- func (bf *DefaultBalanceFetcher) GetChainBalance(ctx context.Context, client chain.ClientInterface, account common.Address) (*big.Int, error)
- func (tm *DefaultBalanceFetcher) GetTokenBalance(ctx context.Context, client chain.ClientInterface, account common.Address, ...) (*big.Int, error)
- func (bf *DefaultBalanceFetcher) GetTokenBalanceAt(ctx context.Context, client chain.ClientInterface, account common.Address, ...) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NativeChainAddress = common.HexToAddress("0x")
Functions ¶
This section is empty.
Types ¶
type BalanceFetcher ¶
type BalanceFetcher interface { GetTokenBalanceAt(ctx context.Context, client chain.ClientInterface, account common.Address, token common.Address, blockNumber *big.Int) (*big.Int, error) GetBalancesAtByChain(parent context.Context, clients map[uint64]chain.ClientInterface, accounts, tokens []common.Address, atBlocks map[uint64]*big.Int) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error) GetBalancesByChain(parent context.Context, clients map[uint64]chain.ClientInterface, accounts, tokens []common.Address) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error) GetBalance(ctx context.Context, client chain.ClientInterface, account common.Address, token common.Address) (*big.Int, error) GetChainBalance(ctx context.Context, client chain.ClientInterface, account common.Address) (*big.Int, error) }
type DefaultBalanceFetcher ¶
type DefaultBalanceFetcher struct {
// contains filtered or unexported fields
}
func NewDefaultBalanceFetcher ¶
func NewDefaultBalanceFetcher(contractMaker contracts.ContractMakerIface) *DefaultBalanceFetcher
func (*DefaultBalanceFetcher) FetchChainBalances ¶
func (*DefaultBalanceFetcher) FetchTokenBalancesWithScanContract ¶
func (*DefaultBalanceFetcher) GetBalance ¶
func (*DefaultBalanceFetcher) GetBalancesAtByChain ¶
func (*DefaultBalanceFetcher) GetBalancesByChain ¶
func (*DefaultBalanceFetcher) GetChainBalance ¶
func (bf *DefaultBalanceFetcher) GetChainBalance(ctx context.Context, client chain.ClientInterface, account common.Address) (*big.Int, error)
func (*DefaultBalanceFetcher) GetTokenBalance ¶
Click to show internal directories.
Click to hide internal directories.