Documentation ¶
Index ¶
- Variables
- func ContructErc20Transfer(receiver common.Address, numTokens *big.Int) ([]byte, error)
- func ContructErc721Mint(tokenURI string) ([]byte, error)
- type EOATxBuilder
- type ERC20TxBuilder
- func (e *ERC20TxBuilder) ConstructTransactions(accounts []*tooltypes.SenderAccount, numTx int) ([]*types.Transaction, error)
- func (e *ERC20TxBuilder) EstimateGasForBaseTx() (*big.Int, error)
- func (e *ERC20TxBuilder) FundAccount(to common.Address, amount *big.Int) error
- func (e *ERC20TxBuilder) GetSupplierBalance() (*big.Int, error)
- func (e *ERC20TxBuilder) GetTokenBalance(address common.Address) (*big.Int, error)
- func (e *ERC20TxBuilder) GetTokenSymbol() string
- func (e *ERC20TxBuilder) GetTransferValue() (*big.Int, error)
- func (e *ERC20TxBuilder) GetValue() *big.Int
- func (e *ERC20TxBuilder) Initialize() error
- type ERC721TxBuilder
- func (e *ERC721TxBuilder) ConstructTransactions(accounts []*tooltypes.SenderAccount, numTx int) ([]*types.Transaction, error)
- func (e *ERC721TxBuilder) EstimateGasForBaseTx() (*big.Int, error)
- func (e *ERC721TxBuilder) GetNFTSymbol() string
- func (e *ERC721TxBuilder) GetValue() *big.Int
- func (e *ERC721TxBuilder) Initialize() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Erc20Abi, _ = erc20.Erc20MetaData.GetAbi()
)
View Source
var (
Erc721Abi, _ = erc721.Erc721MetaData.GetAbi()
)
Functions ¶
func ContructErc20Transfer ¶
func ContructErc721Mint ¶
Types ¶
type EOATxBuilder ¶
type EOATxBuilder struct {
// contains filtered or unexported fields
}
func NewEOATxBuilder ¶
func NewEOATxBuilder(mnemonic, url string) (*EOATxBuilder, error)
func (*EOATxBuilder) ConstructTransactions ¶
func (e *EOATxBuilder) ConstructTransactions(accounts []*tooltypes.SenderAccount, numTx int) ([]*types.Transaction, error)
func (*EOATxBuilder) EstimateGasForBaseTx ¶
func (e *EOATxBuilder) EstimateGasForBaseTx() (*big.Int, error)
func (*EOATxBuilder) GetValue ¶
func (e *EOATxBuilder) GetValue() *big.Int
func (*EOATxBuilder) Initialize ¶
func (e *EOATxBuilder) Initialize() error
type ERC20TxBuilder ¶
type ERC20TxBuilder struct {
// contains filtered or unexported fields
}
func NewERC20TxBuilder ¶
func NewERC20TxBuilder(mnemonic, url string) (*ERC20TxBuilder, error)
func (*ERC20TxBuilder) ConstructTransactions ¶
func (e *ERC20TxBuilder) ConstructTransactions(accounts []*tooltypes.SenderAccount, numTx int) ([]*types.Transaction, error)
func (*ERC20TxBuilder) EstimateGasForBaseTx ¶
func (e *ERC20TxBuilder) EstimateGasForBaseTx() (*big.Int, error)
func (*ERC20TxBuilder) FundAccount ¶
func (*ERC20TxBuilder) GetSupplierBalance ¶
func (e *ERC20TxBuilder) GetSupplierBalance() (*big.Int, error)
func (*ERC20TxBuilder) GetTokenBalance ¶
func (*ERC20TxBuilder) GetTokenSymbol ¶
func (e *ERC20TxBuilder) GetTokenSymbol() string
func (*ERC20TxBuilder) GetTransferValue ¶
func (e *ERC20TxBuilder) GetTransferValue() (*big.Int, error)
func (*ERC20TxBuilder) GetValue ¶
func (e *ERC20TxBuilder) GetValue() *big.Int
func (*ERC20TxBuilder) Initialize ¶
func (e *ERC20TxBuilder) Initialize() error
type ERC721TxBuilder ¶
type ERC721TxBuilder struct {
// contains filtered or unexported fields
}
func NewERC721TxBuilder ¶
func NewERC721TxBuilder(mnemonic, url string) (*ERC721TxBuilder, error)
func (*ERC721TxBuilder) ConstructTransactions ¶
func (e *ERC721TxBuilder) ConstructTransactions(accounts []*tooltypes.SenderAccount, numTx int) ([]*types.Transaction, error)
func (*ERC721TxBuilder) EstimateGasForBaseTx ¶
func (e *ERC721TxBuilder) EstimateGasForBaseTx() (*big.Int, error)
func (*ERC721TxBuilder) GetNFTSymbol ¶
func (e *ERC721TxBuilder) GetNFTSymbol() string
func (*ERC721TxBuilder) GetValue ¶
func (e *ERC721TxBuilder) GetValue() *big.Int
func (*ERC721TxBuilder) Initialize ¶
func (e *ERC721TxBuilder) Initialize() error
Click to show internal directories.
Click to hide internal directories.