Documentation
¶
Index ¶
- Variables
- type Context
- type Withdrawer
- type WithdrawerCaller
- type WithdrawerCallerRaw
- type WithdrawerCallerSession
- type WithdrawerFilterer
- type WithdrawerRaw
- func (_Withdrawer *WithdrawerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Withdrawer *WithdrawerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Withdrawer *WithdrawerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WithdrawerSession
- func (_Withdrawer *WithdrawerSession) OnCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
- func (_Withdrawer *WithdrawerSession) OnCrossChainCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
- func (_Withdrawer *WithdrawerSession) WithdrawAmount() (*big.Int, error)
- type WithdrawerTransactor
- func (_Withdrawer *WithdrawerTransactor) OnCall(opts *bind.TransactOpts, context Context, zrc20 common.Address, arg2 *big.Int, ...) (*types.Transaction, error)
- func (_Withdrawer *WithdrawerTransactor) OnCrossChainCall(opts *bind.TransactOpts, context Context, zrc20 common.Address, arg2 *big.Int, ...) (*types.Transaction, error)
- type WithdrawerTransactorRaw
- type WithdrawerTransactorSession
- func (_Withdrawer *WithdrawerTransactorSession) OnCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
- func (_Withdrawer *WithdrawerTransactorSession) OnCrossChainCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var WithdrawerABI = WithdrawerMetaData.ABI
WithdrawerABI is the input ABI used to generate the binding from. Deprecated: Use WithdrawerMetaData.ABI instead.
var WithdrawerBin = WithdrawerMetaData.Bin
WithdrawerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use WithdrawerMetaData.Bin instead.
var WithdrawerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_withdrawAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x60a0604052348015600f57600080fd5b506040516107f63803806107f68339818101604052810190602f91906072565b806080818152505050609a565b600080fd5b6000819050919050565b6052816041565b8114605c57600080fd5b50565b600081519050606c81604b565b92915050565b6000602082840312156085576084603c565b5b6000609184828501605f565b91505092915050565b6080516107346100c260003960008181609e0152818161018d01526102e201526107346000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063534844a2146100465780635bcfd61614610064578063de43156e14610080575b600080fd5b61004e61009c565b60405161005b9190610383565b60405180910390f35b61007e600480360381019061007991906104bb565b6100c0565b005b61009a600480360381019061009591906104bb565b610215565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b8373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b815260040161011b92919061056e565b6020604051808303816000875af115801561013a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015e91906105cf565b508373ffffffffffffffffffffffffffffffffffffffff1663c701262686806000019061018b919061060b565b7f00000000000000000000000000000000000000000000000000000000000000006040518463ffffffff1660e01b81526004016101ca939291906106cc565b6020604051808303816000875af11580156101e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020d91906105cf565b505050505050565b8373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b815260040161027092919061056e565b6020604051808303816000875af115801561028f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b391906105cf565b508373ffffffffffffffffffffffffffffffffffffffff1663c70126268680600001906102e0919061060b565b7f00000000000000000000000000000000000000000000000000000000000000006040518463ffffffff1660e01b815260040161031f939291906106cc565b6020604051808303816000875af115801561033e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036291906105cf565b505050505050565b6000819050919050565b61037d8161036a565b82525050565b60006020820190506103986000830184610374565b92915050565b600080fd5b600080fd5b600080fd5b6000606082840312156103c3576103c26103a8565b5b81905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103f7826103cc565b9050919050565b610407816103ec565b811461041257600080fd5b50565b600081359050610424816103fe565b92915050565b6104338161036a565b811461043e57600080fd5b50565b6000813590506104508161042a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261047b5761047a610456565b5b8235905067ffffffffffffffff8111156104985761049761045b565b5b6020830191508360018202830111156104b4576104b3610460565b5b9250929050565b6000806000806000608086880312156104d7576104d661039e565b5b600086013567ffffffffffffffff8111156104f5576104f46103a3565b5b610501888289016103ad565b955050602061051288828901610415565b945050604061052388828901610441565b935050606086013567ffffffffffffffff811115610544576105436103a3565b5b61055088828901610465565b92509250509295509295909350565b610568816103ec565b82525050565b6000604082019050610583600083018561055f565b6105906020830184610374565b9392505050565b60008115159050919050565b6105ac81610597565b81146105b757600080fd5b50565b6000815190506105c9816105a3565b92915050565b6000602082840312156105e5576105e461039e565b5b60006105f3848285016105ba565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112610628576106276105fc565b5b80840192508235915067ffffffffffffffff82111561064a57610649610601565b5b60208301925060018202360383131561066657610665610606565b5b509250929050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b60006106ab838561066e565b93506106b883858461067f565b6106c18361068e565b840190509392505050565b600060408201905081810360008301526106e781858761069f565b90506106f66020830184610374565b94935050505056fea2646970667358221220eb0d0178243bc765ecffd41945dfc69d032eaf9e1347d0b6ee2ec8408676acd564736f6c634300081a0033",
}
WithdrawerMetaData contains all meta data concerning the Withdrawer contract.
Functions ¶
This section is empty.
Types ¶
type Withdrawer ¶
type Withdrawer struct { WithdrawerCaller // Read-only binding to the contract WithdrawerTransactor // Write-only binding to the contract WithdrawerFilterer // Log filterer for contract events }
Withdrawer is an auto generated Go binding around an Ethereum contract.
func DeployWithdrawer ¶
func DeployWithdrawer(auth *bind.TransactOpts, backend bind.ContractBackend, _withdrawAmount *big.Int) (common.Address, *types.Transaction, *Withdrawer, error)
DeployWithdrawer deploys a new Ethereum contract, binding an instance of Withdrawer to it.
func NewWithdrawer ¶
func NewWithdrawer(address common.Address, backend bind.ContractBackend) (*Withdrawer, error)
NewWithdrawer creates a new instance of Withdrawer, bound to a specific deployed contract.
type WithdrawerCaller ¶
type WithdrawerCaller struct {
// contains filtered or unexported fields
}
WithdrawerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewWithdrawerCaller ¶
func NewWithdrawerCaller(address common.Address, caller bind.ContractCaller) (*WithdrawerCaller, error)
NewWithdrawerCaller creates a new read-only instance of Withdrawer, bound to a specific deployed contract.
func (*WithdrawerCaller) WithdrawAmount ¶
WithdrawAmount is a free data retrieval call binding the contract method 0x534844a2.
Solidity: function withdrawAmount() view returns(uint256)
type WithdrawerCallerRaw ¶
type WithdrawerCallerRaw struct {
Contract *WithdrawerCaller // Generic read-only contract binding to access the raw methods on
}
WithdrawerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*WithdrawerCallerRaw) Call ¶
func (_Withdrawer *WithdrawerCallerRaw) 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 WithdrawerCallerSession ¶
type WithdrawerCallerSession struct { Contract *WithdrawerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
WithdrawerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*WithdrawerCallerSession) WithdrawAmount ¶
func (_Withdrawer *WithdrawerCallerSession) WithdrawAmount() (*big.Int, error)
WithdrawAmount is a free data retrieval call binding the contract method 0x534844a2.
Solidity: function withdrawAmount() view returns(uint256)
type WithdrawerFilterer ¶
type WithdrawerFilterer struct {
// contains filtered or unexported fields
}
WithdrawerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewWithdrawerFilterer ¶
func NewWithdrawerFilterer(address common.Address, filterer bind.ContractFilterer) (*WithdrawerFilterer, error)
NewWithdrawerFilterer creates a new log filterer instance of Withdrawer, bound to a specific deployed contract.
type WithdrawerRaw ¶
type WithdrawerRaw struct {
Contract *Withdrawer // Generic contract binding to access the raw methods on
}
WithdrawerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*WithdrawerRaw) Call ¶
func (_Withdrawer *WithdrawerRaw) 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 (*WithdrawerRaw) Transact ¶
func (_Withdrawer *WithdrawerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WithdrawerRaw) Transfer ¶
func (_Withdrawer *WithdrawerRaw) 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 WithdrawerSession ¶
type WithdrawerSession struct { Contract *Withdrawer // 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 }
WithdrawerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*WithdrawerSession) OnCall ¶
func (_Withdrawer *WithdrawerSession) OnCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
OnCall is a paid mutator transaction binding the contract method 0x5bcfd616.
Solidity: function onCall((bytes,address,uint256) context, address zrc20, uint256 , bytes ) returns()
func (*WithdrawerSession) OnCrossChainCall ¶
func (_Withdrawer *WithdrawerSession) OnCrossChainCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []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 , bytes ) returns()
func (*WithdrawerSession) WithdrawAmount ¶
func (_Withdrawer *WithdrawerSession) WithdrawAmount() (*big.Int, error)
WithdrawAmount is a free data retrieval call binding the contract method 0x534844a2.
Solidity: function withdrawAmount() view returns(uint256)
type WithdrawerTransactor ¶
type WithdrawerTransactor struct {
// contains filtered or unexported fields
}
WithdrawerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewWithdrawerTransactor ¶
func NewWithdrawerTransactor(address common.Address, transactor bind.ContractTransactor) (*WithdrawerTransactor, error)
NewWithdrawerTransactor creates a new write-only instance of Withdrawer, bound to a specific deployed contract.
func (*WithdrawerTransactor) OnCall ¶
func (_Withdrawer *WithdrawerTransactor) OnCall(opts *bind.TransactOpts, context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
OnCall is a paid mutator transaction binding the contract method 0x5bcfd616.
Solidity: function onCall((bytes,address,uint256) context, address zrc20, uint256 , bytes ) returns()
func (*WithdrawerTransactor) OnCrossChainCall ¶
func (_Withdrawer *WithdrawerTransactor) OnCrossChainCall(opts *bind.TransactOpts, context Context, zrc20 common.Address, arg2 *big.Int, arg3 []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 , bytes ) returns()
type WithdrawerTransactorRaw ¶
type WithdrawerTransactorRaw struct {
Contract *WithdrawerTransactor // Generic write-only contract binding to access the raw methods on
}
WithdrawerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*WithdrawerTransactorRaw) Transact ¶
func (_Withdrawer *WithdrawerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WithdrawerTransactorRaw) Transfer ¶
func (_Withdrawer *WithdrawerTransactorRaw) 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 WithdrawerTransactorSession ¶
type WithdrawerTransactorSession struct { Contract *WithdrawerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
WithdrawerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*WithdrawerTransactorSession) OnCall ¶
func (_Withdrawer *WithdrawerTransactorSession) OnCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
OnCall is a paid mutator transaction binding the contract method 0x5bcfd616.
Solidity: function onCall((bytes,address,uint256) context, address zrc20, uint256 , bytes ) returns()
func (*WithdrawerTransactorSession) OnCrossChainCall ¶
func (_Withdrawer *WithdrawerTransactorSession) OnCrossChainCall(context Context, zrc20 common.Address, arg2 *big.Int, arg3 []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 , bytes ) returns()