Documentation ¶
Index ¶
- Constants
- type Alchemy
- func (a *Alchemy) BalancerGetFinalTokens(pool common.Address) ([]common.Address, error)
- func (a *Alchemy) ContractName(addr common.Address) (string, error)
- func (a *Alchemy) ERC20Allowance(erc20 common.Address, owner common.Address, spender common.Address) (*big.Int, error)
- func (a *Alchemy) ERC20BalanceOf(erc20 common.Address, account common.Address) (*big.Int, error)
- func (a *Alchemy) ERC20TotalSupply(erc20 common.Address) (*big.Int, error)
- func (a *Alchemy) HarvestAutoStakeLpToken(pool common.Address) (common.Address, error)
- func (a *Alchemy) HarvestAutoStakeRewardPool(pool common.Address) (common.Address, error)
- func (a *Alchemy) HarvestNoMintRewardPoolEarned(pool common.Address, user common.Address) (*big.Int, error)
- func (a *Alchemy) HarvestNoMintRewardPoolLpToken(pool common.Address) (common.Address, error)
- func (a *Alchemy) HarvestNoMintRewardPoolRewardToken(pool common.Address) (common.Address, error)
- func (a *Alchemy) SushiswapEstimateLPTokens(token0Amount, token1Amount *big.Int, addrs ...common.Address) (*big.Int, error)
- func (a *Alchemy) SushiswapGetAmountsOut(amountIn *big.Int, paths []common.Address) ([]*big.Int, error)
- func (a *Alchemy) SushiswapPairTokens(pair common.Address) (common.Address, common.Address, error)
- func (a *Alchemy) SushiswapPairTotalSupply(token0Amount, token1Amount *big.Int, addresses ...common.Address) (struct{ ... }, *big.Int, error)
- func (a *Alchemy) UniswapEstimateLPTokens(token0Amount, token1Amount *big.Int, addrs ...common.Address) (*big.Int, error)
- func (a *Alchemy) UniswapGetAmountsOut(amountIn *big.Int, paths []common.Address) ([]*big.Int, error)
- func (a *Alchemy) UniswapV2GetReserves(pool common.Address) (reserveA, reserveB *big.Int, err error)
- func (a *Alchemy) UniswapV2PairTokens(pair common.Address) (common.Address, common.Address, error)
- func (a *Alchemy) UniswapV2PairTotalSupply(token0Amount, token1Amount *big.Int, addresses ...common.Address) (struct{ ... }, *big.Int, error)
- func (a *Alchemy) UniswapV2RemoveLiquidity(amount *big.Int, account, token0, token1 common.Address) error
- func (a *Alchemy) UniswapV2RewardStakingToken(pool common.Address) (rewardToken common.Address, stakingToken common.Address, err error)
Constants ¶
View Source
const ( URL = "https://eth-mainnet.alchemyapi.io/v2/2KUlKPEL26J4MBsVa5O9rkiW2ebfaDe8" ZAPIN = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alchemy ¶
type Alchemy struct {
// contains filtered or unexported fields
}
func NewAlchemy ¶
func (*Alchemy) BalancerGetFinalTokens ¶
func (*Alchemy) ERC20Allowance ¶
func (*Alchemy) ERC20BalanceOf ¶
func (*Alchemy) ERC20TotalSupply ¶
func (*Alchemy) HarvestAutoStakeLpToken ¶
func (*Alchemy) HarvestAutoStakeRewardPool ¶
func (*Alchemy) HarvestNoMintRewardPoolEarned ¶
func (*Alchemy) HarvestNoMintRewardPoolLpToken ¶
func (*Alchemy) HarvestNoMintRewardPoolRewardToken ¶
func (*Alchemy) SushiswapEstimateLPTokens ¶
func (a *Alchemy) SushiswapEstimateLPTokens(token0Amount, token1Amount *big.Int, addrs ...common.Address) (*big.Int, error)
won't consider reserve0&reserve1, just an approx estimation
func (*Alchemy) SushiswapGetAmountsOut ¶
func (*Alchemy) SushiswapPairTokens ¶
func (*Alchemy) SushiswapPairTotalSupply ¶
func (*Alchemy) UniswapEstimateLPTokens ¶
func (a *Alchemy) UniswapEstimateLPTokens(token0Amount, token1Amount *big.Int, addrs ...common.Address) (*big.Int, error)
won't consider reserve0&reserve1, just an approx estimation
func (*Alchemy) UniswapGetAmountsOut ¶
func (*Alchemy) UniswapV2GetReserves ¶
func (*Alchemy) UniswapV2PairTokens ¶
func (*Alchemy) UniswapV2PairTotalSupply ¶
func (*Alchemy) UniswapV2RemoveLiquidity ¶
Click to show internal directories.
Click to hide internal directories.