testdappv2

package
v0.0.0-...-1929ff6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestDAppV2ABI = TestDAppV2MetaData.ABI

TestDAppV2ABI is the input ABI used to generate the binding from. Deprecated: Use TestDAppV2MetaData.ABI instead.

View Source
var TestDAppV2Bin = TestDAppV2MetaData.Bin

TestDAppV2Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestDAppV2MetaData.Bin instead.

View Source
var TestDAppV2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"amountWithMessage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"calledWithMessage\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"erc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"erc20Call\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"gasCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"getAmountWithMessage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"getCalledWithMessage\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structTestDAppV2.zContext\",\"name\":\"_context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"_zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"amount\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"revertMessage\",\"type\":\"bytes\"}],\"internalType\":\"structTestDAppV2.RevertContext\",\"name\":\"revertContext\",\"type\":\"tuple\"}],\"name\":\"onRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"simpleCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x608060405234801561001057600080fd5b50610e3a806100206000396000f3fe60806040526004361061008a5760003560e01c8063a799911f11610059578063a799911f14610162578063c7a339a91461017e578063de43156e146101a7578063e2842ed7146101d0578063f592cbfb1461020d57610091565b806336e980a0146100965780634297a263146100bf578063660b9de0146100fc5780639291fe261461012557610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100bd60048036038101906100b89190610900565b61024a565b005b3480156100cb57600080fd5b506100e660048036038101906100e19190610864565b610274565b6040516100f39190610b35565b60405180910390f35b34801561010857600080fd5b50610123600480360381019061011e9190610949565b61028c565b005b34801561013157600080fd5b5061014c60048036038101906101479190610900565b610347565b6040516101599190610b35565b60405180910390f35b61017c60048036038101906101779190610900565b61038a565b005b34801561018a57600080fd5b506101a560048036038101906101a09190610891565b6103b3565b005b3480156101b357600080fd5b506101ce60048036038101906101c99190610992565b610476565b005b3480156101dc57600080fd5b506101f760048036038101906101f29190610864565b61056f565b6040516102049190610b1a565b60405180910390f35b34801561021957600080fd5b50610234600480360381019061022f9190610900565b61058f565b6040516102419190610b1a565b60405180910390f35b610253816105de565b1561025d57600080fd5b61026681610634565b610271816000610688565b50565b60016020528060005260406000206000915090505481565b6102e781806040019061029f9190610b50565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610634565b6103448180604001906102fa9190610b50565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506000610688565b50565b6000600160008360405160200161035e9190610ab7565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b610393816105de565b1561039d57600080fd5b6103a681610634565b6103b08134610688565b50565b6103bc816105de565b156103c657600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161040393929190610ae3565b602060405180830381600087803b15801561041d57600080fd5b505af1158015610431573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104559190610837565b61045e57600080fd5b61046781610634565b6104718183610688565b505050565b6104c382828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506105de565b156104cd57600080fd5b61051a82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610634565b61056882828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505084610688565b5050505050565b60006020528060005260406000206000915054906101000a900460ff1681565b6000806000836040516020016105a59190610ab7565b60405160208183030381529060405280519060200120815260200190815260200160002060009054906101000a900460ff169050919050565b60006040516020016105ef90610ace565b60405160208183030381529060405280519060200120826040516020016106169190610ab7565b60405160208183030381529060405280519060200120149050919050565b60016000808360405160200161064a9190610ab7565b60405160208183030381529060405280519060200120815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b80600160008460405160200161069e9190610ab7565b604051602081830303815290604052805190602001208152602001908152602001600020819055505050565b60006106dd6106d884610bd8565b610bb3565b9050828152602081018484840111156106f9576106f8610d48565b5b610704848285610c83565b509392505050565b60008135905061071b81610d91565b92915050565b60008151905061073081610da8565b92915050565b60008135905061074581610dbf565b92915050565b60008083601f84011261076157610760610d2a565b5b8235905067ffffffffffffffff81111561077e5761077d610d25565b5b60208301915083600182028301111561079a57610799610d3e565b5b9250929050565b6000813590506107b081610dd6565b92915050565b600082601f8301126107cb576107ca610d2a565b5b81356107db8482602086016106ca565b91505092915050565b6000606082840312156107fa576107f9610d34565b5b81905092915050565b60006060828403121561081957610818610d34565b5b81905092915050565b60008135905061083181610ded565b92915050565b60006020828403121561084d5761084c610d52565b5b600061085b84828501610721565b91505092915050565b60006020828403121561087a57610879610d52565b5b600061088884828501610736565b91505092915050565b6000806000606084860312156108aa576108a9610d52565b5b60006108b8868287016107a1565b93505060206108c986828701610822565b925050604084013567ffffffffffffffff8111156108ea576108e9610d4d565b5b6108f6868287016107b6565b9150509250925092565b60006020828403121561091657610915610d52565b5b600082013567ffffffffffffffff81111561093457610933610d4d565b5b610940848285016107b6565b91505092915050565b60006020828403121561095f5761095e610d52565b5b600082013567ffffffffffffffff81111561097d5761097c610d4d565b5b610989848285016107e4565b91505092915050565b6000806000806000608086880312156109ae576109ad610d52565b5b600086013567ffffffffffffffff8111156109cc576109cb610d4d565b5b6109d888828901610803565b95505060206109e98882890161070c565b94505060406109fa88828901610822565b935050606086013567ffffffffffffffff811115610a1b57610a1a610d4d565b5b610a278882890161074b565b92509250509295509295909350565b610a3f81610c1f565b82525050565b610a4e81610c31565b82525050565b6000610a5f82610c09565b610a698185610c14565b9350610a79818560208601610c92565b80840191505092915050565b6000610a92600683610c14565b9150610a9d82610d68565b600682019050919050565b610ab181610c79565b82525050565b6000610ac38284610a54565b915081905092915050565b6000610ad982610a85565b9150819050919050565b6000606082019050610af86000830186610a36565b610b056020830185610a36565b610b126040830184610aa8565b949350505050565b6000602082019050610b2f6000830184610a45565b92915050565b6000602082019050610b4a6000830184610aa8565b92915050565b60008083356001602003843603038112610b6d57610b6c610d39565b5b80840192508235915067ffffffffffffffff821115610b8f57610b8e610d2f565b5b602083019250600182023603831315610bab57610baa610d43565b5b509250929050565b6000610bbd610bce565b9050610bc98282610cc5565b919050565b6000604051905090565b600067ffffffffffffffff821115610bf357610bf2610cf6565b5b610bfc82610d57565b9050602081019050919050565b600081519050919050565b600081905092915050565b6000610c2a82610c59565b9050919050565b60008115159050919050565b6000819050919050565b6000610c5282610c1f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610cb0578082015181840152602081019050610c95565b83811115610cbf576000848401525b50505050565b610cce82610d57565b810181811067ffffffffffffffff82111715610ced57610cec610cf6565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f7265766572740000000000000000000000000000000000000000000000000000600082015250565b610d9a81610c1f565b8114610da557600080fd5b50565b610db181610c31565b8114610dbc57600080fd5b50565b610dc881610c3d565b8114610dd357600080fd5b50565b610ddf81610c47565b8114610dea57600080fd5b50565b610df681610c79565b8114610e0157600080fd5b5056fea2646970667358221220d6765b67214e8cadf15b569ed63c4c4628bd833acf6926d71b9b6a6011fbb78064736f6c63430008070033",
}

TestDAppV2MetaData contains all meta data concerning the TestDAppV2 contract.

Functions

This section is empty.

Types

type TestDAppV2

type TestDAppV2 struct {
	TestDAppV2Caller     // Read-only binding to the contract
	TestDAppV2Transactor // Write-only binding to the contract
	TestDAppV2Filterer   // Log filterer for contract events
}

TestDAppV2 is an auto generated Go binding around an Ethereum contract.

func DeployTestDAppV2

func DeployTestDAppV2(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TestDAppV2, error)

DeployTestDAppV2 deploys a new Ethereum contract, binding an instance of TestDAppV2 to it.

func NewTestDAppV2

func NewTestDAppV2(address common.Address, backend bind.ContractBackend) (*TestDAppV2, error)

NewTestDAppV2 creates a new instance of TestDAppV2, bound to a specific deployed contract.

type TestDAppV2Caller

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

TestDAppV2Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewTestDAppV2Caller

func NewTestDAppV2Caller(address common.Address, caller bind.ContractCaller) (*TestDAppV2Caller, error)

NewTestDAppV2Caller creates a new read-only instance of TestDAppV2, bound to a specific deployed contract.

func (*TestDAppV2Caller) AmountWithMessage

func (_TestDAppV2 *TestDAppV2Caller) AmountWithMessage(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

AmountWithMessage is a free data retrieval call binding the contract method 0x4297a263.

Solidity: function amountWithMessage(bytes32 ) view returns(uint256)

func (*TestDAppV2Caller) CalledWithMessage

func (_TestDAppV2 *TestDAppV2Caller) CalledWithMessage(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

CalledWithMessage is a free data retrieval call binding the contract method 0xe2842ed7.

Solidity: function calledWithMessage(bytes32 ) view returns(bool)

func (*TestDAppV2Caller) GetAmountWithMessage

func (_TestDAppV2 *TestDAppV2Caller) GetAmountWithMessage(opts *bind.CallOpts, message string) (*big.Int, error)

GetAmountWithMessage is a free data retrieval call binding the contract method 0x9291fe26.

Solidity: function getAmountWithMessage(string message) view returns(uint256)

func (*TestDAppV2Caller) GetCalledWithMessage

func (_TestDAppV2 *TestDAppV2Caller) GetCalledWithMessage(opts *bind.CallOpts, message string) (bool, error)

GetCalledWithMessage is a free data retrieval call binding the contract method 0xf592cbfb.

Solidity: function getCalledWithMessage(string message) view returns(bool)

type TestDAppV2CallerRaw

type TestDAppV2CallerRaw struct {
	Contract *TestDAppV2Caller // Generic read-only contract binding to access the raw methods on
}

TestDAppV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*TestDAppV2CallerRaw) Call

func (_TestDAppV2 *TestDAppV2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type TestDAppV2CallerSession

type TestDAppV2CallerSession struct {
	Contract *TestDAppV2Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

TestDAppV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*TestDAppV2CallerSession) AmountWithMessage

func (_TestDAppV2 *TestDAppV2CallerSession) AmountWithMessage(arg0 [32]byte) (*big.Int, error)

AmountWithMessage is a free data retrieval call binding the contract method 0x4297a263.

Solidity: function amountWithMessage(bytes32 ) view returns(uint256)

func (*TestDAppV2CallerSession) CalledWithMessage

func (_TestDAppV2 *TestDAppV2CallerSession) CalledWithMessage(arg0 [32]byte) (bool, error)

CalledWithMessage is a free data retrieval call binding the contract method 0xe2842ed7.

Solidity: function calledWithMessage(bytes32 ) view returns(bool)

func (*TestDAppV2CallerSession) GetAmountWithMessage

func (_TestDAppV2 *TestDAppV2CallerSession) GetAmountWithMessage(message string) (*big.Int, error)

GetAmountWithMessage is a free data retrieval call binding the contract method 0x9291fe26.

Solidity: function getAmountWithMessage(string message) view returns(uint256)

func (*TestDAppV2CallerSession) GetCalledWithMessage

func (_TestDAppV2 *TestDAppV2CallerSession) GetCalledWithMessage(message string) (bool, error)

GetCalledWithMessage is a free data retrieval call binding the contract method 0xf592cbfb.

Solidity: function getCalledWithMessage(string message) view returns(bool)

type TestDAppV2Filterer

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

TestDAppV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewTestDAppV2Filterer

func NewTestDAppV2Filterer(address common.Address, filterer bind.ContractFilterer) (*TestDAppV2Filterer, error)

NewTestDAppV2Filterer creates a new log filterer instance of TestDAppV2, bound to a specific deployed contract.

type TestDAppV2Raw

type TestDAppV2Raw struct {
	Contract *TestDAppV2 // Generic contract binding to access the raw methods on
}

TestDAppV2Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*TestDAppV2Raw) Call

func (_TestDAppV2 *TestDAppV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*TestDAppV2Raw) Transact

func (_TestDAppV2 *TestDAppV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TestDAppV2Raw) Transfer

func (_TestDAppV2 *TestDAppV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TestDAppV2RevertContext

type TestDAppV2RevertContext struct {
	Asset         common.Address
	Amount        uint64
	RevertMessage []byte
}

TestDAppV2RevertContext is an auto generated low-level Go binding around an user-defined struct.

type TestDAppV2Session

type TestDAppV2Session struct {
	Contract     *TestDAppV2       // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TestDAppV2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*TestDAppV2Session) AmountWithMessage

func (_TestDAppV2 *TestDAppV2Session) AmountWithMessage(arg0 [32]byte) (*big.Int, error)

AmountWithMessage is a free data retrieval call binding the contract method 0x4297a263.

Solidity: function amountWithMessage(bytes32 ) view returns(uint256)

func (*TestDAppV2Session) CalledWithMessage

func (_TestDAppV2 *TestDAppV2Session) CalledWithMessage(arg0 [32]byte) (bool, error)

CalledWithMessage is a free data retrieval call binding the contract method 0xe2842ed7.

Solidity: function calledWithMessage(bytes32 ) view returns(bool)

func (*TestDAppV2Session) Erc20Call

func (_TestDAppV2 *TestDAppV2Session) Erc20Call(erc20 common.Address, amount *big.Int, message string) (*types.Transaction, error)

Erc20Call is a paid mutator transaction binding the contract method 0xc7a339a9.

Solidity: function erc20Call(address erc20, uint256 amount, string message) returns()

func (*TestDAppV2Session) GasCall

func (_TestDAppV2 *TestDAppV2Session) GasCall(message string) (*types.Transaction, error)

GasCall is a paid mutator transaction binding the contract method 0xa799911f.

Solidity: function gasCall(string message) payable returns()

func (*TestDAppV2Session) GetAmountWithMessage

func (_TestDAppV2 *TestDAppV2Session) GetAmountWithMessage(message string) (*big.Int, error)

GetAmountWithMessage is a free data retrieval call binding the contract method 0x9291fe26.

Solidity: function getAmountWithMessage(string message) view returns(uint256)

func (*TestDAppV2Session) GetCalledWithMessage

func (_TestDAppV2 *TestDAppV2Session) GetCalledWithMessage(message string) (bool, error)

GetCalledWithMessage is a free data retrieval call binding the contract method 0xf592cbfb.

Solidity: function getCalledWithMessage(string message) view returns(bool)

func (*TestDAppV2Session) OnCrossChainCall

func (_TestDAppV2 *TestDAppV2Session) OnCrossChainCall(_context TestDAppV2zContext, _zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error)

OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e.

Solidity: function onCrossChainCall((bytes,address,uint256) _context, address _zrc20, uint256 amount, bytes message) returns()

func (*TestDAppV2Session) OnRevert

func (_TestDAppV2 *TestDAppV2Session) OnRevert(revertContext TestDAppV2RevertContext) (*types.Transaction, error)

OnRevert is a paid mutator transaction binding the contract method 0x660b9de0.

Solidity: function onRevert((address,uint64,bytes) revertContext) returns()

func (*TestDAppV2Session) Receive

func (_TestDAppV2 *TestDAppV2Session) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TestDAppV2Session) SimpleCall

func (_TestDAppV2 *TestDAppV2Session) SimpleCall(message string) (*types.Transaction, error)

SimpleCall is a paid mutator transaction binding the contract method 0x36e980a0.

Solidity: function simpleCall(string message) returns()

type TestDAppV2Transactor

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

TestDAppV2Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewTestDAppV2Transactor

func NewTestDAppV2Transactor(address common.Address, transactor bind.ContractTransactor) (*TestDAppV2Transactor, error)

NewTestDAppV2Transactor creates a new write-only instance of TestDAppV2, bound to a specific deployed contract.

func (*TestDAppV2Transactor) Erc20Call

func (_TestDAppV2 *TestDAppV2Transactor) Erc20Call(opts *bind.TransactOpts, erc20 common.Address, amount *big.Int, message string) (*types.Transaction, error)

Erc20Call is a paid mutator transaction binding the contract method 0xc7a339a9.

Solidity: function erc20Call(address erc20, uint256 amount, string message) returns()

func (*TestDAppV2Transactor) GasCall

func (_TestDAppV2 *TestDAppV2Transactor) GasCall(opts *bind.TransactOpts, message string) (*types.Transaction, error)

GasCall is a paid mutator transaction binding the contract method 0xa799911f.

Solidity: function gasCall(string message) payable returns()

func (*TestDAppV2Transactor) OnCrossChainCall

func (_TestDAppV2 *TestDAppV2Transactor) OnCrossChainCall(opts *bind.TransactOpts, _context TestDAppV2zContext, _zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error)

OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e.

Solidity: function onCrossChainCall((bytes,address,uint256) _context, address _zrc20, uint256 amount, bytes message) returns()

func (*TestDAppV2Transactor) OnRevert

func (_TestDAppV2 *TestDAppV2Transactor) OnRevert(opts *bind.TransactOpts, revertContext TestDAppV2RevertContext) (*types.Transaction, error)

OnRevert is a paid mutator transaction binding the contract method 0x660b9de0.

Solidity: function onRevert((address,uint64,bytes) revertContext) returns()

func (*TestDAppV2Transactor) Receive

func (_TestDAppV2 *TestDAppV2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TestDAppV2Transactor) SimpleCall

func (_TestDAppV2 *TestDAppV2Transactor) SimpleCall(opts *bind.TransactOpts, message string) (*types.Transaction, error)

SimpleCall is a paid mutator transaction binding the contract method 0x36e980a0.

Solidity: function simpleCall(string message) returns()

type TestDAppV2TransactorRaw

type TestDAppV2TransactorRaw struct {
	Contract *TestDAppV2Transactor // Generic write-only contract binding to access the raw methods on
}

TestDAppV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*TestDAppV2TransactorRaw) Transact

func (_TestDAppV2 *TestDAppV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TestDAppV2TransactorRaw) Transfer

func (_TestDAppV2 *TestDAppV2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TestDAppV2TransactorSession

type TestDAppV2TransactorSession struct {
	Contract     *TestDAppV2Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

TestDAppV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*TestDAppV2TransactorSession) Erc20Call

func (_TestDAppV2 *TestDAppV2TransactorSession) Erc20Call(erc20 common.Address, amount *big.Int, message string) (*types.Transaction, error)

Erc20Call is a paid mutator transaction binding the contract method 0xc7a339a9.

Solidity: function erc20Call(address erc20, uint256 amount, string message) returns()

func (*TestDAppV2TransactorSession) GasCall

func (_TestDAppV2 *TestDAppV2TransactorSession) GasCall(message string) (*types.Transaction, error)

GasCall is a paid mutator transaction binding the contract method 0xa799911f.

Solidity: function gasCall(string message) payable returns()

func (*TestDAppV2TransactorSession) OnCrossChainCall

func (_TestDAppV2 *TestDAppV2TransactorSession) OnCrossChainCall(_context TestDAppV2zContext, _zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error)

OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e.

Solidity: function onCrossChainCall((bytes,address,uint256) _context, address _zrc20, uint256 amount, bytes message) returns()

func (*TestDAppV2TransactorSession) OnRevert

func (_TestDAppV2 *TestDAppV2TransactorSession) OnRevert(revertContext TestDAppV2RevertContext) (*types.Transaction, error)

OnRevert is a paid mutator transaction binding the contract method 0x660b9de0.

Solidity: function onRevert((address,uint64,bytes) revertContext) returns()

func (*TestDAppV2TransactorSession) Receive

func (_TestDAppV2 *TestDAppV2TransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TestDAppV2TransactorSession) SimpleCall

func (_TestDAppV2 *TestDAppV2TransactorSession) SimpleCall(message string) (*types.Transaction, error)

SimpleCall is a paid mutator transaction binding the contract method 0x36e980a0.

Solidity: function simpleCall(string message) returns()

type TestDAppV2zContext

type TestDAppV2zContext struct {
	Origin  []byte
	Sender  common.Address
	ChainID *big.Int
}

TestDAppV2zContext is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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