Documentation
¶
Index ¶
- Variables
- func DecodeERC20ApproveInput(input []byte) (spender string, amount *big.Int, err error)
- func EncodeERC20ApproveInput(spender string, amount *big.Int) ([]byte, error)
- func FormatETH(amount decimal.Decimal) *big.Int
- func FormatUnits(amount decimal.Decimal, decimals uint8) *big.Int
- func GetAddress(prv *ecdsa.PrivateKey) (common.Address, error)
- func GetBalance(ctx context.Context, ethClient *ethclient.Client, ownerAddress string) (*big.Int, error)
- func GetTokenAllowance(ctx context.Context, ethClient *ethclient.Client, ...) (*big.Int, error)
- func GetTokenBalance(ctx context.Context, ethClient *ethclient.Client, ...) (*big.Int, error)
- func GetTokenBalanceChanges(ctx context.Context, ethClient *ethclient.Client, receipt *types.Receipt, ...) (map[common.Address]*big.Int, error)
- func ParseETH(value *big.Int) decimal.Decimal
- func ParseUnits(value *big.Int, decimals uint8) decimal.Decimal
- type Metadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MaxInt256 represents the maximum value for int256 (2^255 - 1) MaxInt256 *big.Int // MaxUint256 represents the maximum value for uint256 (2^256 - 1) MaxUint256 *big.Int )
View Source
var (
ERC20ABI abi.ABI
)
Functions ¶
func DecodeERC20ApproveInput ¶
func EncodeERC20ApproveInput ¶
func GetAddress ¶
func GetAddress(prv *ecdsa.PrivateKey) (common.Address, error)
func GetBalance ¶
func GetTokenAllowance ¶
func GetTokenBalance ¶
func GetTokenBalanceChanges ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.