Documentation ¶
Index ¶
- func Approve(urls []string, chainid uint64, token string, ownerkey string, spender string, ...) (hash string, succeed bool, err error)
- func FetchErc20TokenMeta(urls []string, token string) (decimal int, symbol string, name string, err error)
- func FetchPoolPrice(urls []string, base string, baseDecimal int, quote string, quoteDecimal int, ...) (price float64, err error)
- func GetAllowance(urls []string, token string, owner string, spender string) (amount *big.Int, err error)
- func GetBalance(urls []string, addr string) (*big.Int, error)
- func GetPoolAddress(urls []string, uinifactory string, token0, token1 common.Address, fee *big.Int) (poolAddr common.Address, valid bool, err error)
- func GetTokenBalance(urls []string, token string, addr string) (amount *big.Int, err error)
- func Parse(urls []string, hash string, addr string) (*types.Transaction, *big.Int, error)
- func SwapInUni(urls []string, chainid uint64, uinifactory string, unirouter string, ...) (hash string, succeed bool, err error)
- func TransferETH(urls []string, fromKey string, to string, amount *big.Int) (string, error)
- func TransferErc20Token(urls []string, fromKey string, to string, amount *big.Int, token string, ...) (hash string, succeed bool, err error)
- func Weth9Deposit(urls []string, chainid uint64, weth9address string, key string, ...) (hash string, succeed bool, err error)
- func Weth9Withdraw(urls []string, chainid uint64, weth9address string, key string, ...) (hash string, succeed bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchErc20TokenMeta ¶ added in v1.0.36
func FetchPoolPrice ¶ added in v1.0.36
func GetAllowance ¶ added in v1.0.42
func GetPoolAddress ¶ added in v1.0.59
func GetTokenBalance ¶ added in v1.0.36
func TransferETH ¶ added in v1.0.35
func TransferErc20Token ¶ added in v1.0.36
func Weth9Deposit ¶ added in v1.0.59
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.