bep20

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type BEP20Factory added in v1.3.0

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

func NewBEP20Factory added in v1.3.0

func NewBEP20Factory(w3 *web3.Web3, contractAddress common.Address) (*BEP20Factory, error)

func (*BEP20Factory) EstimateGasLimit added in v1.3.0

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

func (*BEP20Factory) GetPair added in v1.3.0

func (e *BEP20Factory) GetPair(address1, address2 common.Address) (hash common.Address, err error)

func (*BEP20Factory) SyncSendEIP1559Tx added in v1.3.0

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

func (*BEP20Factory) SyncSendRawTransactionForTx added in v1.3.0

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

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) SwapTokensForExactTokens added in v1.2.8

func (e *ERC20PancakeSwap) SwapTokensForExactTokens(amountOut, amountInMax *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) SwapTokensForExactTokensCall added in v1.2.9

func (e *ERC20PancakeSwap) SwapTokensForExactTokensCall(amountOut, amountInMax *big.Int, path []common.Address, to common.Address, deadline, gasPrice, gasLimit, gasTipCap, gasFeeCap *big.Int) (hash common.Hash, err error)

func (*ERC20PancakeSwap) SwapTokensForExactTokensCallNonce added in v1.5.2

func (e *ERC20PancakeSwap) SwapTokensForExactTokensCallNonce(amountOut, amountInMax *big.Int, path []common.Address, to common.Address, deadline, gasPrice, gasLimit, gasTipCap, gasFeeCap *big.Int, nonce uint64) (hash common.Hash, err error)

func (*ERC20PancakeSwap) SwapTokensForExactTokensNonce added in v1.5.2

func (e *ERC20PancakeSwap) SwapTokensForExactTokensNonce(amountOut, amountInMax *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