tx_builder

package
v0.0.0-...-db344e9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Erc20Abi, _ = erc20.Erc20MetaData.GetAbi()
)
View Source
var (
	Erc721Abi, _ = erc721.Erc721MetaData.GetAbi()
)

Functions

func ContructErc20Transfer

func ContructErc20Transfer(receiver common.Address, numTokens *big.Int) ([]byte, error)

func ContructErc721Mint

func ContructErc721Mint(tokenURI string) ([]byte, error)

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 (e *ERC20TxBuilder) FundAccount(to common.Address, amount *big.Int) error

func (*ERC20TxBuilder) GetSupplierBalance

func (e *ERC20TxBuilder) GetSupplierBalance() (*big.Int, error)

func (*ERC20TxBuilder) GetTokenBalance

func (e *ERC20TxBuilder) GetTokenBalance(address common.Address) (*big.Int, error)

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

Jump to

Keyboard shortcuts

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