Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ERC20Fetcher ¶ added in v1.1.0
type ERC20Fetcher struct {
// contains filtered or unexported fields
}
ERC20Fetcher is a Fetcher implementation for EVM chains.
func NewERC20Fetcher ¶ added in v1.1.0
func NewERC20Fetcher(nodeURL string, doer synchttp.Doer) *ERC20Fetcher
NewERC20Fetcher builds an ERC20Fetcher instance that communicates with the given node URL.
func (*ERC20Fetcher) FetchBalance ¶ added in v1.1.0
type Fetcher ¶
type Fetcher interface { // FetchBalance gets the balance of the given token for the given wallet address. FetchBalance(ctx context.Context, tokenAddress string, walletAddress string) (*big.Int, error) }
Fetcher defines a way to fetch balance information.
type StakewiseVaultFetcher ¶ added in v1.1.0
type StakewiseVaultFetcher struct {
// contains filtered or unexported fields
}
StakewiseVaultFetcher will fetch a wallet's balance from a Stakewise vault.
func NewStakewiseVaultFetcher ¶ added in v1.1.0
func NewStakewiseVaultFetcher(nodeURL string, doer synchttp.Doer) *StakewiseVaultFetcher
func (*StakewiseVaultFetcher) FetchBalance ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.