Documentation ¶
Overview ¶
Package wethtestabi is a generated package providing test doubles of the wETH contract. There is likely no need to use this package directly as its functionality is exposed via the wethtest package.
Index ¶
- Variables
- type IwETH
- type IwETHCaller
- type IwETHCallerRaw
- type IwETHCallerSession
- type IwETHFilterer
- type IwETHRaw
- func (_IwETH *IwETHRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IwETH *IwETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IwETH *IwETHRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IwETHSession
- func (_IwETH *IwETHSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_IwETH *IwETHSession) Approve(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_IwETH *IwETHSession) Deposit() (*types.Transaction, error)
- func (_IwETH *IwETHSession) Receive() (*types.Transaction, error)
- func (_IwETH *IwETHSession) TotalSupply() (*big.Int, error)
- func (_IwETH *IwETHSession) Transfer(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHSession) TransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
- type IwETHTransactor
- func (_IwETH *IwETHTransactor) Approve(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_IwETH *IwETHTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_IwETH *IwETHTransactor) Transfer(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHTransactor) TransferFrom(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, ...) (*types.Transaction, error)
- func (_IwETH *IwETHTransactor) Withdraw(opts *bind.TransactOpts, arg0 *big.Int) (*types.Transaction, error)
- type IwETHTransactorRaw
- type IwETHTransactorSession
- func (_IwETH *IwETHTransactorSession) Approve(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHTransactorSession) Deposit() (*types.Transaction, error)
- func (_IwETH *IwETHTransactorSession) Receive() (*types.Transaction, error)
- func (_IwETH *IwETHTransactorSession) Transfer(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHTransactorSession) TransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)
- func (_IwETH *IwETHTransactorSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
- type WETH
- type WETH9
- type WETH9Approval
- type WETH9ApprovalIterator
- type WETH9Caller
- func (_WETH9 *WETH9Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_WETH9 *WETH9Caller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_WETH9 *WETH9Caller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_WETH9 *WETH9Caller) Name(opts *bind.CallOpts) (string, error)
- func (_WETH9 *WETH9Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_WETH9 *WETH9Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type WETH9CallerRaw
- type WETH9CallerSession
- func (_WETH9 *WETH9CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_WETH9 *WETH9CallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_WETH9 *WETH9CallerSession) Decimals() (uint8, error)
- func (_WETH9 *WETH9CallerSession) Name() (string, error)
- func (_WETH9 *WETH9CallerSession) Symbol() (string, error)
- func (_WETH9 *WETH9CallerSession) TotalSupply() (*big.Int, error)
- type WETH9Deposit
- type WETH9DepositIterator
- type WETH9Filterer
- func (_WETH9 *WETH9Filterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*WETH9ApprovalIterator, error)
- func (_WETH9 *WETH9Filterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*WETH9DepositIterator, error)
- func (_WETH9 *WETH9Filterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*WETH9TransferIterator, error)
- func (_WETH9 *WETH9Filterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*WETH9WithdrawalIterator, error)
- func (_WETH9 *WETH9Filterer) ParseApproval(log types.Log) (*WETH9Approval, error)
- func (_WETH9 *WETH9Filterer) ParseDeposit(log types.Log) (*WETH9Deposit, error)
- func (_WETH9 *WETH9Filterer) ParseTransfer(log types.Log) (*WETH9Transfer, error)
- func (_WETH9 *WETH9Filterer) ParseWithdrawal(log types.Log) (*WETH9Withdrawal, error)
- func (_WETH9 *WETH9Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WETH9Approval, src []common.Address, ...) (event.Subscription, error)
- func (_WETH9 *WETH9Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *WETH9Deposit, dst []common.Address) (event.Subscription, error)
- func (_WETH9 *WETH9Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *WETH9Transfer, src []common.Address, ...) (event.Subscription, error)
- func (_WETH9 *WETH9Filterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *WETH9Withdrawal, src []common.Address) (event.Subscription, error)
- type WETH9Raw
- func (_WETH9 *WETH9Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_WETH9 *WETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_WETH9 *WETH9Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WETH9Session
- func (_WETH9 *WETH9Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_WETH9 *WETH9Session) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9Session) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_WETH9 *WETH9Session) Decimals() (uint8, error)
- func (_WETH9 *WETH9Session) Deposit() (*types.Transaction, error)
- func (_WETH9 *WETH9Session) Name() (string, error)
- func (_WETH9 *WETH9Session) Receive() (*types.Transaction, error)
- func (_WETH9 *WETH9Session) Symbol() (string, error)
- func (_WETH9 *WETH9Session) TotalSupply() (*big.Int, error)
- func (_WETH9 *WETH9Session) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9Session) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error)
- type WETH9Transactor
- func (_WETH9 *WETH9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9Transactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WETH9 *WETH9Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_WETH9 *WETH9Transactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9Transactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)
- type WETH9TransactorRaw
- type WETH9TransactorSession
- func (_WETH9 *WETH9TransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9TransactorSession) Deposit() (*types.Transaction, error)
- func (_WETH9 *WETH9TransactorSession) Receive() (*types.Transaction, error)
- func (_WETH9 *WETH9TransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9TransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_WETH9 *WETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)
- type WETH9Transfer
- type WETH9TransferIterator
- type WETH9Withdrawal
- type WETH9WithdrawalIterator
- type WETHCaller
- type WETHCallerRaw
- type WETHCallerSession
- type WETHFilterer
- type WETHRaw
- func (_WETH *WETHRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_WETH *WETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_WETH *WETHRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WETHSession
- type WETHTransactor
- type WETHTransactorRaw
- type WETHTransactorSession
Constants ¶
This section is empty.
Variables ¶
var IwETHABI = IwETHMetaData.ABI
IwETHABI is the input ABI used to generate the binding from. Deprecated: Use IwETHMetaData.ABI instead.
var IwETHMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
IwETHMetaData contains all meta data concerning the IwETH contract.
var WETH9ABI = WETH9MetaData.ABI
WETH9ABI is the input ABI used to generate the binding from. Deprecated: Use WETH9MetaData.ABI instead.
var WETH9Bin = WETH9MetaData.Bin
WETH9Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use WETH9MetaData.Bin instead.
var WETH9MetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
Bin: "0x60806040526040518060400160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019062000051929190620000d0565b506040518060400160405280600481526020017f5745544800000000000000000000000000000000000000000000000000000000815250600190805190602001906200009f929190620000d0565b506012600260006101000a81548160ff021916908360ff160217905550348015620000c957600080fd5b50620001e5565b828054620000de90620001af565b90600052602060002090601f0160209004810192826200010257600085556200014e565b82601f106200011d57805160ff19168380011785556200014e565b828001600101855582156200014e579182015b828111156200014d57825182559160200191906001019062000130565b5b5090506200015d919062000161565b5090565b5b808211156200017c57600081600090555060010162000162565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620001c857607f821691505b60208210811415620001df57620001de62000180565b5b50919050565b61112a80620001f56000396000f3fe6080604052600436106100a05760003560e01c8063313ce56711610064578063313ce567146101ad57806370a08231146101d857806395d89b4114610215578063a9059cbb14610240578063d0e30db01461027d578063dd62ed3e14610287576100af565b806306fdde03146100b4578063095ea7b3146100df57806318160ddd1461011c57806323b872dd146101475780632e1a7d4d14610184576100af565b366100af576100ad6102c4565b005b600080fd5b3480156100c057600080fd5b506100c961036a565b6040516100d69190610ba5565b60405180910390f35b3480156100eb57600080fd5b5061010660048036038101906101019190610c60565b6103f8565b6040516101139190610cbb565b60405180910390f35b34801561012857600080fd5b506101316104ea565b60405161013e9190610ce5565b60405180910390f35b34801561015357600080fd5b5061016e60048036038101906101699190610d00565b6104f2565b60405161017b9190610cbb565b60405180910390f35b34801561019057600080fd5b506101ab60048036038101906101a69190610d53565b6108a9565b005b3480156101b957600080fd5b506101c2610a19565b6040516101cf9190610d9c565b60405180910390f35b3480156101e457600080fd5b506101ff60048036038101906101fa9190610db7565b610a2c565b60405161020c9190610ce5565b60405180910390f35b34801561022157600080fd5b5061022a610a44565b6040516102379190610ba5565b60405180910390f35b34801561024c57600080fd5b5061026760048036038101906102629190610c60565b610ad2565b6040516102749190610cbb565b60405180910390f35b6102856102c4565b005b34801561029357600080fd5b506102ae60048036038101906102a99190610de4565b610ae7565b6040516102bb9190610ce5565b60405180910390f35b34600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546103139190610e53565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516103609190610ce5565b60405180910390a2565b6000805461037790610ed8565b80601f01602080910402602001604051908101604052809291908181526020018280546103a390610ed8565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104d89190610ce5565b60405180910390a36001905092915050565b600047905090565b600081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056d90610f7c565b60405180910390fd5b6000801990503373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015610634575080600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414155b1561078c5782600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef9061100e565b60405180910390fd5b82600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610784919061102e565b925050819055505b82600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107db919061102e565b9250508190555082600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108319190610e53565b925050819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516108959190610ce5565b60405180910390a360019150509392505050565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101561092b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610922906110d4565b60405180910390fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461097a919061102e565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109c7573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610a0e9190610ce5565b60405180910390a250565b600260009054906101000a900460ff1681565b60036020528060005260406000206000915090505481565b60018054610a5190610ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7d90610ed8565b8015610aca5780601f10610a9f57610100808354040283529160200191610aca565b820191906000526020600020905b815481529060010190602001808311610aad57829003601f168201915b505050505081565b6000610adf3384846104f2565b905092915050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600081519050919050565b600082825260208201905092915050565b60005b83811015610b46578082015181840152602081019050610b2b565b83811115610b55576000848401525b50505050565b6000601f19601f8301169050919050565b6000610b7782610b0c565b610b818185610b17565b9350610b91818560208601610b28565b610b9a81610b5b565b840191505092915050565b60006020820190508181036000830152610bbf8184610b6c565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610bf782610bcc565b9050919050565b610c0781610bec565b8114610c1257600080fd5b50565b600081359050610c2481610bfe565b92915050565b6000819050919050565b610c3d81610c2a565b8114610c4857600080fd5b50565b600081359050610c5a81610c34565b92915050565b60008060408385031215610c7757610c76610bc7565b5b6000610c8585828601610c15565b9250506020610c9685828601610c4b565b9150509250929050565b60008115159050919050565b610cb581610ca0565b82525050565b6000602082019050610cd06000830184610cac565b92915050565b610cdf81610c2a565b82525050565b6000602082019050610cfa6000830184610cd6565b92915050565b600080600060608486031215610d1957610d18610bc7565b5b6000610d2786828701610c15565b9350506020610d3886828701610c15565b9250506040610d4986828701610c4b565b9150509250925092565b600060208284031215610d6957610d68610bc7565b5b6000610d7784828501610c4b565b91505092915050565b600060ff82169050919050565b610d9681610d80565b82525050565b6000602082019050610db16000830184610d8d565b92915050565b600060208284031215610dcd57610dcc610bc7565b5b6000610ddb84828501610c15565b91505092915050565b60008060408385031215610dfb57610dfa610bc7565b5b6000610e0985828601610c15565b9250506020610e1a85828601610c15565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610e5e82610c2a565b9150610e6983610c2a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610e9e57610e9d610e24565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610ef057607f821691505b60208210811415610f0457610f03610ea9565b5b50919050565b7f5745544839546573743a20696e73756666696369656e742062616c616e63652060008201527f746f207472616e73666572000000000000000000000000000000000000000000602082015250565b6000610f66602b83610b17565b9150610f7182610f0a565b604082019050919050565b60006020820190508181036000830152610f9581610f59565b9050919050565b7f5745544839546573743a20696e73756666696369656e7420616c6c6f77616e6360008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b6000610ff8602183610b17565b915061100382610f9c565b604082019050919050565b6000602082019050818103600083015261102781610feb565b9050919050565b600061103982610c2a565b915061104483610c2a565b92508282101561105757611056610e24565b5b828203905092915050565b7f5745544839546573743a20696e73756666696369656e742062616c616e63652060008201527f746f207769746864726177000000000000000000000000000000000000000000602082015250565b60006110be602b83610b17565b91506110c982611062565b604082019050919050565b600060208201905081810360008301526110ed816110b1565b905091905056fea26469706673582212206f8553c19d43c40c6b3e30254932391ef207e7617d50717253fe36acb23218c464736f6c634300080a0033",
}
WETH9MetaData contains all meta data concerning the WETH9 contract.
var WETHABI = WETHMetaData.ABI
WETHABI is the input ABI used to generate the binding from. Deprecated: Use WETHMetaData.ABI instead.
var WETHBin = WETHMetaData.Bin
WETHBin is the compiled bytecode used for deploying new contracts. Deprecated: Use WETHMetaData.Bin instead.
var WETHMetaData = &bind.MetaData{
ABI: "[]",
Bin: "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122026ea576868e62508c72048fa21cf53531c2d5e9add8447f3625f51db8339f20864736f6c634300080a0033",
}
WETHMetaData contains all meta data concerning the WETH contract.
Functions ¶
This section is empty.
Types ¶
type IwETH ¶
type IwETH struct { IwETHCaller // Read-only binding to the contract IwETHTransactor // Write-only binding to the contract IwETHFilterer // Log filterer for contract events }
IwETH is an auto generated Go binding around an Ethereum contract.
type IwETHCaller ¶
type IwETHCaller struct {
// contains filtered or unexported fields
}
IwETHCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIwETHCaller ¶
func NewIwETHCaller(address common.Address, caller bind.ContractCaller) (*IwETHCaller, error)
NewIwETHCaller creates a new read-only instance of IwETH, bound to a specific deployed contract.
func (*IwETHCaller) Allowance ¶
func (_IwETH *IwETHCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*IwETHCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*IwETHCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type IwETHCallerRaw ¶
type IwETHCallerRaw struct {
Contract *IwETHCaller // Generic read-only contract binding to access the raw methods on
}
IwETHCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IwETHCallerRaw) Call ¶
func (_IwETH *IwETHCallerRaw) 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 IwETHCallerSession ¶
type IwETHCallerSession struct { Contract *IwETHCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IwETHCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IwETHCallerSession) Allowance ¶
func (_IwETH *IwETHCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*IwETHCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*IwETHCallerSession) TotalSupply ¶
func (_IwETH *IwETHCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type IwETHFilterer ¶
type IwETHFilterer struct {
// contains filtered or unexported fields
}
IwETHFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIwETHFilterer ¶
func NewIwETHFilterer(address common.Address, filterer bind.ContractFilterer) (*IwETHFilterer, error)
NewIwETHFilterer creates a new log filterer instance of IwETH, bound to a specific deployed contract.
type IwETHRaw ¶
type IwETHRaw struct {
Contract *IwETH // Generic contract binding to access the raw methods on
}
IwETHRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IwETHRaw) Call ¶
func (_IwETH *IwETHRaw) 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 (*IwETHRaw) Transact ¶
func (_IwETH *IwETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IwETHRaw) Transfer ¶
func (_IwETH *IwETHRaw) 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 IwETHSession ¶
type IwETHSession struct { Contract *IwETH // 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 }
IwETHSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IwETHSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*IwETHSession) Approve ¶
func (_IwETH *IwETHSession) Approve(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address , uint256 ) returns(bool)
func (*IwETHSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*IwETHSession) Deposit ¶
func (_IwETH *IwETHSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*IwETHSession) Receive ¶
func (_IwETH *IwETHSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*IwETHSession) TotalSupply ¶
func (_IwETH *IwETHSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*IwETHSession) Transfer ¶
func (_IwETH *IwETHSession) Transfer(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address , uint256 ) returns(bool)
func (*IwETHSession) TransferFrom ¶
func (_IwETH *IwETHSession) TransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address , address , uint256 ) returns(bool)
func (*IwETHSession) Withdraw ¶
func (_IwETH *IwETHSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 ) returns()
type IwETHTransactor ¶
type IwETHTransactor struct {
// contains filtered or unexported fields
}
IwETHTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIwETHTransactor ¶
func NewIwETHTransactor(address common.Address, transactor bind.ContractTransactor) (*IwETHTransactor, error)
NewIwETHTransactor creates a new write-only instance of IwETH, bound to a specific deployed contract.
func (*IwETHTransactor) Approve ¶
func (_IwETH *IwETHTransactor) Approve(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address , uint256 ) returns(bool)
func (*IwETHTransactor) Deposit ¶
func (_IwETH *IwETHTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*IwETHTransactor) Receive ¶
func (_IwETH *IwETHTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*IwETHTransactor) Transfer ¶
func (_IwETH *IwETHTransactor) Transfer(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address , uint256 ) returns(bool)
func (*IwETHTransactor) TransferFrom ¶
func (_IwETH *IwETHTransactor) TransferFrom(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address , address , uint256 ) returns(bool)
func (*IwETHTransactor) Withdraw ¶
func (_IwETH *IwETHTransactor) Withdraw(opts *bind.TransactOpts, arg0 *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 ) returns()
type IwETHTransactorRaw ¶
type IwETHTransactorRaw struct {
Contract *IwETHTransactor // Generic write-only contract binding to access the raw methods on
}
IwETHTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IwETHTransactorRaw) Transact ¶
func (_IwETH *IwETHTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IwETHTransactorRaw) Transfer ¶
func (_IwETH *IwETHTransactorRaw) 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 IwETHTransactorSession ¶
type IwETHTransactorSession struct { Contract *IwETHTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IwETHTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IwETHTransactorSession) Approve ¶
func (_IwETH *IwETHTransactorSession) Approve(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address , uint256 ) returns(bool)
func (*IwETHTransactorSession) Deposit ¶
func (_IwETH *IwETHTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*IwETHTransactorSession) Receive ¶
func (_IwETH *IwETHTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*IwETHTransactorSession) Transfer ¶
func (_IwETH *IwETHTransactorSession) Transfer(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address , uint256 ) returns(bool)
func (*IwETHTransactorSession) TransferFrom ¶
func (_IwETH *IwETHTransactorSession) TransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address , address , uint256 ) returns(bool)
func (*IwETHTransactorSession) Withdraw ¶
func (_IwETH *IwETHTransactorSession) Withdraw(arg0 *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 ) returns()
type WETH ¶
type WETH struct { WETHCaller // Read-only binding to the contract WETHTransactor // Write-only binding to the contract WETHFilterer // Log filterer for contract events }
WETH is an auto generated Go binding around an Ethereum contract.
func DeployWETH ¶
func DeployWETH(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *WETH, error)
DeployWETH deploys a new Ethereum contract, binding an instance of WETH to it.
type WETH9 ¶
type WETH9 struct { WETH9Caller // Read-only binding to the contract WETH9Transactor // Write-only binding to the contract WETH9Filterer // Log filterer for contract events }
WETH9 is an auto generated Go binding around an Ethereum contract.
func DeployWETH9 ¶
func DeployWETH9(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *WETH9, error)
DeployWETH9 deploys a new Ethereum contract, binding an instance of WETH9 to it.
type WETH9Approval ¶
type WETH9Approval struct { Src common.Address Guy common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
WETH9Approval represents a Approval event raised by the WETH9 contract.
type WETH9ApprovalIterator ¶
type WETH9ApprovalIterator struct { Event *WETH9Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WETH9ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the WETH9 contract.
func (*WETH9ApprovalIterator) Close ¶
func (it *WETH9ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WETH9ApprovalIterator) Error ¶
func (it *WETH9ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WETH9ApprovalIterator) Next ¶
func (it *WETH9ApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type WETH9Caller ¶
type WETH9Caller struct {
// contains filtered or unexported fields
}
WETH9Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewWETH9Caller ¶
func NewWETH9Caller(address common.Address, caller bind.ContractCaller) (*WETH9Caller, error)
NewWETH9Caller creates a new read-only instance of WETH9, bound to a specific deployed contract.
func (*WETH9Caller) Allowance ¶
func (_WETH9 *WETH9Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*WETH9Caller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*WETH9Caller) Decimals ¶
func (_WETH9 *WETH9Caller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*WETH9Caller) Name ¶
func (_WETH9 *WETH9Caller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*WETH9Caller) Symbol ¶
func (_WETH9 *WETH9Caller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*WETH9Caller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type WETH9CallerRaw ¶
type WETH9CallerRaw struct {
Contract *WETH9Caller // Generic read-only contract binding to access the raw methods on
}
WETH9CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*WETH9CallerRaw) Call ¶
func (_WETH9 *WETH9CallerRaw) 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 WETH9CallerSession ¶
type WETH9CallerSession struct { Contract *WETH9Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
WETH9CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*WETH9CallerSession) Allowance ¶
func (_WETH9 *WETH9CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*WETH9CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*WETH9CallerSession) Decimals ¶
func (_WETH9 *WETH9CallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*WETH9CallerSession) Name ¶
func (_WETH9 *WETH9CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*WETH9CallerSession) Symbol ¶
func (_WETH9 *WETH9CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*WETH9CallerSession) TotalSupply ¶
func (_WETH9 *WETH9CallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type WETH9Deposit ¶
type WETH9Deposit struct { Dst common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
WETH9Deposit represents a Deposit event raised by the WETH9 contract.
type WETH9DepositIterator ¶
type WETH9DepositIterator struct { Event *WETH9Deposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WETH9DepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the WETH9 contract.
func (*WETH9DepositIterator) Close ¶
func (it *WETH9DepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WETH9DepositIterator) Error ¶
func (it *WETH9DepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WETH9DepositIterator) Next ¶
func (it *WETH9DepositIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type WETH9Filterer ¶
type WETH9Filterer struct {
// contains filtered or unexported fields
}
WETH9Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewWETH9Filterer ¶
func NewWETH9Filterer(address common.Address, filterer bind.ContractFilterer) (*WETH9Filterer, error)
NewWETH9Filterer creates a new log filterer instance of WETH9, bound to a specific deployed contract.
func (*WETH9Filterer) FilterApproval ¶
func (_WETH9 *WETH9Filterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*WETH9ApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*WETH9Filterer) FilterDeposit ¶
func (_WETH9 *WETH9Filterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*WETH9DepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*WETH9Filterer) FilterTransfer ¶
func (_WETH9 *WETH9Filterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*WETH9TransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*WETH9Filterer) FilterWithdrawal ¶
func (_WETH9 *WETH9Filterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*WETH9WithdrawalIterator, error)
FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
func (*WETH9Filterer) ParseApproval ¶
func (_WETH9 *WETH9Filterer) ParseApproval(log types.Log) (*WETH9Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*WETH9Filterer) ParseDeposit ¶
func (_WETH9 *WETH9Filterer) ParseDeposit(log types.Log) (*WETH9Deposit, error)
ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*WETH9Filterer) ParseTransfer ¶
func (_WETH9 *WETH9Filterer) ParseTransfer(log types.Log) (*WETH9Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*WETH9Filterer) ParseWithdrawal ¶
func (_WETH9 *WETH9Filterer) ParseWithdrawal(log types.Log) (*WETH9Withdrawal, error)
ParseWithdrawal is a log parse operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
func (*WETH9Filterer) WatchApproval ¶
func (_WETH9 *WETH9Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WETH9Approval, src []common.Address, guy []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*WETH9Filterer) WatchDeposit ¶
func (_WETH9 *WETH9Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *WETH9Deposit, dst []common.Address) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*WETH9Filterer) WatchTransfer ¶
func (_WETH9 *WETH9Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *WETH9Transfer, src []common.Address, dst []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*WETH9Filterer) WatchWithdrawal ¶
func (_WETH9 *WETH9Filterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *WETH9Withdrawal, src []common.Address) (event.Subscription, error)
WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
type WETH9Raw ¶
type WETH9Raw struct {
Contract *WETH9 // Generic contract binding to access the raw methods on
}
WETH9Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*WETH9Raw) Call ¶
func (_WETH9 *WETH9Raw) 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 (*WETH9Raw) Transact ¶
func (_WETH9 *WETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WETH9Raw) Transfer ¶
func (_WETH9 *WETH9Raw) 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 WETH9Session ¶
type WETH9Session struct { Contract *WETH9 // 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 }
WETH9Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*WETH9Session) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*WETH9Session) Approve ¶
func (_WETH9 *WETH9Session) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*WETH9Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*WETH9Session) Decimals ¶
func (_WETH9 *WETH9Session) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*WETH9Session) Deposit ¶
func (_WETH9 *WETH9Session) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*WETH9Session) Name ¶
func (_WETH9 *WETH9Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*WETH9Session) Receive ¶
func (_WETH9 *WETH9Session) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*WETH9Session) Symbol ¶
func (_WETH9 *WETH9Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*WETH9Session) TotalSupply ¶
func (_WETH9 *WETH9Session) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*WETH9Session) Transfer ¶
func (_WETH9 *WETH9Session) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*WETH9Session) TransferFrom ¶
func (_WETH9 *WETH9Session) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*WETH9Session) Withdraw ¶
func (_WETH9 *WETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type WETH9Transactor ¶
type WETH9Transactor struct {
// contains filtered or unexported fields
}
WETH9Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewWETH9Transactor ¶
func NewWETH9Transactor(address common.Address, transactor bind.ContractTransactor) (*WETH9Transactor, error)
NewWETH9Transactor creates a new write-only instance of WETH9, bound to a specific deployed contract.
func (*WETH9Transactor) Approve ¶
func (_WETH9 *WETH9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*WETH9Transactor) Deposit ¶
func (_WETH9 *WETH9Transactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*WETH9Transactor) Receive ¶
func (_WETH9 *WETH9Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*WETH9Transactor) Transfer ¶
func (_WETH9 *WETH9Transactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*WETH9Transactor) TransferFrom ¶
func (_WETH9 *WETH9Transactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*WETH9Transactor) Withdraw ¶
func (_WETH9 *WETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type WETH9TransactorRaw ¶
type WETH9TransactorRaw struct {
Contract *WETH9Transactor // Generic write-only contract binding to access the raw methods on
}
WETH9TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*WETH9TransactorRaw) Transact ¶
func (_WETH9 *WETH9TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WETH9TransactorRaw) Transfer ¶
func (_WETH9 *WETH9TransactorRaw) 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 WETH9TransactorSession ¶
type WETH9TransactorSession struct { Contract *WETH9Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
WETH9TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*WETH9TransactorSession) Approve ¶
func (_WETH9 *WETH9TransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*WETH9TransactorSession) Deposit ¶
func (_WETH9 *WETH9TransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*WETH9TransactorSession) Receive ¶
func (_WETH9 *WETH9TransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*WETH9TransactorSession) Transfer ¶
func (_WETH9 *WETH9TransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*WETH9TransactorSession) TransferFrom ¶
func (_WETH9 *WETH9TransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*WETH9TransactorSession) Withdraw ¶
func (_WETH9 *WETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type WETH9Transfer ¶
type WETH9Transfer struct { Src common.Address Dst common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
WETH9Transfer represents a Transfer event raised by the WETH9 contract.
type WETH9TransferIterator ¶
type WETH9TransferIterator struct { Event *WETH9Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WETH9TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the WETH9 contract.
func (*WETH9TransferIterator) Close ¶
func (it *WETH9TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WETH9TransferIterator) Error ¶
func (it *WETH9TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WETH9TransferIterator) Next ¶
func (it *WETH9TransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type WETH9Withdrawal ¶
type WETH9Withdrawal struct { Src common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
WETH9Withdrawal represents a Withdrawal event raised by the WETH9 contract.
type WETH9WithdrawalIterator ¶
type WETH9WithdrawalIterator struct { Event *WETH9Withdrawal // Event containing the contract specifics and raw log // contains filtered or unexported fields }
WETH9WithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the WETH9 contract.
func (*WETH9WithdrawalIterator) Close ¶
func (it *WETH9WithdrawalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WETH9WithdrawalIterator) Error ¶
func (it *WETH9WithdrawalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WETH9WithdrawalIterator) Next ¶
func (it *WETH9WithdrawalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type WETHCaller ¶
type WETHCaller struct {
// contains filtered or unexported fields
}
WETHCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewWETHCaller ¶
func NewWETHCaller(address common.Address, caller bind.ContractCaller) (*WETHCaller, error)
NewWETHCaller creates a new read-only instance of WETH, bound to a specific deployed contract.
type WETHCallerRaw ¶
type WETHCallerRaw struct {
Contract *WETHCaller // Generic read-only contract binding to access the raw methods on
}
WETHCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*WETHCallerRaw) Call ¶
func (_WETH *WETHCallerRaw) 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 WETHCallerSession ¶
type WETHCallerSession struct { Contract *WETHCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
WETHCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type WETHFilterer ¶
type WETHFilterer struct {
// contains filtered or unexported fields
}
WETHFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewWETHFilterer ¶
func NewWETHFilterer(address common.Address, filterer bind.ContractFilterer) (*WETHFilterer, error)
NewWETHFilterer creates a new log filterer instance of WETH, bound to a specific deployed contract.
type WETHRaw ¶
type WETHRaw struct {
Contract *WETH // Generic contract binding to access the raw methods on
}
WETHRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*WETHRaw) Call ¶
func (_WETH *WETHRaw) 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 (*WETHRaw) Transact ¶
func (_WETH *WETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WETHRaw) Transfer ¶
func (_WETH *WETHRaw) 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 WETHSession ¶
type WETHSession struct { Contract *WETH // 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 }
WETHSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type WETHTransactor ¶
type WETHTransactor struct {
// contains filtered or unexported fields
}
WETHTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewWETHTransactor ¶
func NewWETHTransactor(address common.Address, transactor bind.ContractTransactor) (*WETHTransactor, error)
NewWETHTransactor creates a new write-only instance of WETH, bound to a specific deployed contract.
type WETHTransactorRaw ¶
type WETHTransactorRaw struct {
Contract *WETHTransactor // Generic write-only contract binding to access the raw methods on
}
WETHTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*WETHTransactorRaw) Transact ¶
func (_WETH *WETHTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WETHTransactorRaw) Transfer ¶
func (_WETH *WETHTransactorRaw) 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 WETHTransactorSession ¶
type WETHTransactorSession struct { Contract *WETHTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
WETHTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.