Documentation ¶
Index ¶
- func GetAuthData(privateKey *ecdsa.PrivateKey, chainId *big.Int, client *ethclient.Client) (*bind.TransactOpts, error)
- func GetBaseTokenAddressesByChainId(chainId *big.Int) (map[string]string, error)
- func GetBuyCoefficient(amount *big.Int, total *big.Int) *big.Float
- func GetCurrentGasPrice(client *ethclient.Client) (*big.Int, error)
- func GetCurrentNonce(client *ethclient.Client, account common.Address) (uint64, error)
- func GetKeysWithPrefix(rdb *redis.Client, prefix string) ([]string, error)
- func InArray(needle interface{}, haystack interface{}) (exists bool, index int)
- func MultiplyIntFloat(x *big.Int, y *big.Float) *big.Int
- func PercentageDifference(x *big.Int, y *big.Int) (*big.Int, *big.Float)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthData ¶
func GetAuthData(privateKey *ecdsa.PrivateKey, chainId *big.Int, client *ethclient.Client) (*bind.TransactOpts, error)
func GetCurrentNonce ¶
func GetKeysWithPrefix ¶
获取所有 redis 键
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.