Documentation ¶
Index ¶
- Variables
- func GetWallet(mnemonic string, accountID int) (*hdwallet.Wallet, accounts.Account, error)
- func NewWorldABI(contract []byte) abi.ABI
- func StringToSlice(stringID string) ([32]byte, error)
- type AbiStruct
- type Contract
- type TxBuilder
- func (t *TxBuilder) CallFaucet(addr string, amount *big.Int) (common.Hash, error)
- func (t *TxBuilder) FundAnAccount(accountID int) (common.Hash, error)
- func (t *TxBuilder) GetGasLimit(method string) uint64
- func (t *TxBuilder) InteractWithContract(contractName string, accountID int, value *big.Int, message string, ...) (common.Hash, error)
- func (t *TxBuilder) SendTransaction(contractName string, address common.Address, privateKey *ecdsa.PrivateKey, ...) (common.Hash, error)
- func (t *TxBuilder) SetTxCheckRetry(value uint32)
- func (t *TxBuilder) SetTxCheckWaitTime(value time.Duration)
- func (t *TxBuilder) TransactionReceipt(hash common.Hash) *types.Receipt
- func (t *TxBuilder) WasTransactionSuccessful(hash common.Hash) (bool, error)
- func (t *TxBuilder) WasTxIncludedAndSuccessful(hash common.Hash) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PrivateKeysAnvil = [3]*ecdsa.PrivateKey{}
Functions ¶
func NewWorldABI ¶
func StringToSlice ¶
This is needed when encoding the params to interact with a contract
Types ¶
type AbiStruct ¶
type AbiStruct []struct { Inputs []struct { InternalType string `json:"internalType"` Name string `json:"name"` Type string `json:"type"` } `json:"inputs"` Name string `json:"name"` Type string `json:"type"` Anonymous bool `json:"anonymous,omitempty"` Outputs []struct { InternalType string `json:"internalType"` Name string `json:"name"` Type string `json:"type"` } `json:"outputs,omitempty"` StateMutability string `json:"stateMutability,omitempty"` }
type TxBuilder ¶
type TxBuilder struct {
// contains filtered or unexported fields
}
func NexTxBuilder ¶
func NexTxBuilderWithClient ¶
func (*TxBuilder) CallFaucet ¶
func (*TxBuilder) FundAnAccount ¶
func (*TxBuilder) GetGasLimit ¶
func (*TxBuilder) InteractWithContract ¶
func (*TxBuilder) SendTransaction ¶
func (*TxBuilder) SetTxCheckRetry ¶
func (*TxBuilder) SetTxCheckWaitTime ¶
func (*TxBuilder) TransactionReceipt ¶
func (*TxBuilder) WasTransactionSuccessful ¶
Click to show internal directories.
Click to hide internal directories.