bep20

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PancakeSwap_ABI = `` /* 11875-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20PancakeSwap

type ERC20PancakeSwap struct {
	// contains filtered or unexported fields
}

func NewERC20PancakeSwap

func NewERC20PancakeSwap(w3 *web3.Web3, contractAddress common.Address) (*ERC20PancakeSwap, error)

func (*ERC20PancakeSwap) Address

func (e *ERC20PancakeSwap) Address() common.Address

func (*ERC20PancakeSwap) Allowance

func (e *ERC20PancakeSwap) Allowance(owner, spender common.Address) (*big.Int, error)

func (*ERC20PancakeSwap) Approve

func (e *ERC20PancakeSwap) Approve(spender common.Address, limit, gasPrice, gasTipCap, gasFeeCap *big.Int) (hash common.Hash, ng *big.Int, err error)

func (*ERC20PancakeSwap) BalanceOf

func (e *ERC20PancakeSwap) BalanceOf(owner common.Address) (*big.Int, error)

func (*ERC20PancakeSwap) Decimals

func (e *ERC20PancakeSwap) Decimals() (uint8, error)

func (*ERC20PancakeSwap) EstimateGasLimit

func (e *ERC20PancakeSwap) EstimateGasLimit(to common.Address, data []byte, gasPrice, wei *big.Int) (uint64, error)

func (*ERC20PancakeSwap) SetConfirmation

func (e *ERC20PancakeSwap) SetConfirmation(blockCount int)

func (*ERC20PancakeSwap) SetTxPollTimeout

func (e *ERC20PancakeSwap) SetTxPollTimeout(txPollTimeout int)

func (*ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokens

func (e *ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn, amountOutMin *big.Int, path []common.Address, to common.Address, deadline, gasPrice, gasLimit, gasTipCap, gasFeeCap *big.Int) (hash common.Hash, ng *big.Int, err error)

func (*ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokensCall added in v1.0.9

func (e *ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokensCall(amountIn, amountOutMin *big.Int, path []common.Address, to common.Address, deadline, gasPrice, gasLimit, gasTipCap, gasFeeCap *big.Int) (common.Hash, error)

func (*ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokensCallNonce added in v1.1.7

func (e *ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokensCallNonce(amountIn, amountOutMin *big.Int, path []common.Address, to common.Address, deadline, gasPrice, gasLimit, gasTipCap, gasFeeCap *big.Int, nonce uint64) (common.Hash, error)

func (*ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokensNonce added in v1.1.8

func (e *ERC20PancakeSwap) SwapExactTokensForTokensSupportingFeeOnTransferTokensNonce(amountIn, amountOutMin *big.Int, path []common.Address, to common.Address, deadline, gasPrice, gasLimit, gasTipCap, gasFeeCap *big.Int, nonce uint64) (hash common.Hash, ng *big.Int, err error)

func (*ERC20PancakeSwap) Symbol

func (e *ERC20PancakeSwap) Symbol() (string, error)

func (*ERC20PancakeSwap) SyncSendEIP1559Tx

func (e *ERC20PancakeSwap) SyncSendEIP1559Tx(
	gasTipCap *big.Int,
	gasFeeCap *big.Int,
	gasLimit uint64,
	to common.Address,
	data []byte,
	wei *big.Int,
) (*eTypes.Receipt, error)

func (*ERC20PancakeSwap) SyncSendRawTransactionForTx

func (e *ERC20PancakeSwap) SyncSendRawTransactionForTx(
	gasPrice *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int,
) (*eTypes.Receipt, error)

func (*ERC20PancakeSwap) SyncSendRawTransactionForTxNonce added in v1.1.7

func (e *ERC20PancakeSwap) SyncSendRawTransactionForTxNonce(
	gasPrice *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int, nonce uint64,
) (*eTypes.Receipt, error)

func (*ERC20PancakeSwap) Transfer

func (e *ERC20PancakeSwap) Transfer(to common.Address, amount, gasPrice, gasTipCap, gasFeeCap *big.Int) (hash common.Hash, err error)

func (*ERC20PancakeSwap) WaitBlock

func (e *ERC20PancakeSwap) WaitBlock(blockCount uint64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL