Versions in this module Expand all Collapse all v1 v1.0.1 Jan 13, 2023 v1.0.0 Jan 13, 2023 Changes in this version + const AmpAddr + const ContractV3Factory + const ContractV3NFTPositionManager + const ContractV3Quoter + const ContractV3SwapRouterV1 + const ContractV3SwapRouterV2 + const PolygonChainID + const PolygonRPC + const UsdcAddr + const WETHAddr + const WMaticAddr + var AMP = coreEntities.NewToken(PolygonChainID, common.HexToAddress(AmpAddr), 18, "AMP", "Amp") + var USDC = coreEntities.NewToken(PolygonChainID, common.HexToAddress(UsdcAddr), 6, "USDC", "USD Coin") + var WMATIC = coreEntities.NewToken(PolygonChainID, common.HexToAddress(WMaticAddr), 18, "Matic", ...) + func ConstructV3Pool(client *ethclient.Client, token0, token1 *coreEntities.Token, poolFee uint64) (*entities.Pool, error) + func FloatStringToBigInt(amount string, decimals int) *big.Int + func GetPoolAddress(client *ethclient.Client, token0, token1 common.Address, fee *big.Int) (common.Address, error) + func IntDivDecimal(v *big.Int, decimal int) *big.Int + func IntWithDecimal(v uint64, decimal int) *big.Int + func SendTX(client *ethclient.Client, toAddress common.Address, value *big.Int, ...) (*types.Transaction, error) + func TryTX(client *ethclient.Client, toAddress common.Address, value *big.Int, ...) (*types.Transaction, error) + type Wallet struct + PrivateKey *ecdsa.PrivateKey + PublicKey common.Address + func InitWallet(privateHexKeys string) *Wallet + func (w Wallet) PubkeyStr() string