Documentation ¶
Index ¶
- Variables
- 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
Constants ¶
This section is empty.
Variables ¶
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: "0x60806040526040518060400160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019062000051929190620000d0565b506040518060400160405280600481526020017f5745544800000000000000000000000000000000000000000000000000000000815250600190805190602001906200009f929190620000d0565b506012600260006101000a81548160ff021916908360ff160217905550348015620000c957600080fd5b50620001e5565b828054620000de9062000180565b90600052602060002090601f0160209004810192826200010257600085556200014e565b82601f106200011d57805160ff19168380011785556200014e565b828001600101855582156200014e579182015b828111156200014d57825182559160200191906001019062000130565b5b5090506200015d919062000161565b5090565b5b808211156200017c57600081600090555060010162000162565b5090565b600060028204905060018216806200019957607f821691505b60208210811415620001b057620001af620001b6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b610fd380620001f56000396000f3fe6080604052600436106100a05760003560e01c8063313ce56711610064578063313ce567146101ad57806370a08231146101d857806395d89b4114610215578063a9059cbb14610240578063d0e30db01461027d578063dd62ed3e14610287576100af565b806306fdde03146100b4578063095ea7b3146100df57806318160ddd1461011c57806323b872dd146101475780632e1a7d4d14610184576100af565b366100af576100ad6102c4565b005b600080fd5b3480156100c057600080fd5b506100c961036a565b6040516100d69190610d20565b60405180910390f35b3480156100eb57600080fd5b5061010660048036038101906101019190610c0f565b6103f8565b6040516101139190610d05565b60405180910390f35b34801561012857600080fd5b506101316104ea565b60405161013e9190610d62565b60405180910390f35b34801561015357600080fd5b5061016e60048036038101906101699190610bbc565b6104f2565b60405161017b9190610d05565b60405180910390f35b34801561019057600080fd5b506101ab60048036038101906101a69190610c4f565b6108c2565b005b3480156101b957600080fd5b506101c2610a32565b6040516101cf9190610d7d565b60405180910390f35b3480156101e457600080fd5b506101ff60048036038101906101fa9190610b4f565b610a45565b60405161020c9190610d62565b60405180910390f35b34801561022157600080fd5b5061022a610a5d565b6040516102379190610d20565b60405180910390f35b34801561024c57600080fd5b5061026760048036038101906102629190610c0f565b610aeb565b6040516102749190610d05565b60405180910390f35b6102856102c4565b005b34801561029357600080fd5b506102ae60048036038101906102a99190610b7c565b610b00565b6040516102bb9190610d62565b60405180910390f35b34600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546103139190610db4565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516103609190610d62565b60405180910390a2565b6000805461037790610ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546103a390610ec6565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104d89190610d62565b60405180910390a36001905092915050565b600047905090565b600081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056d90610d42565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561064e57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414155b156107a65781600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070990610d42565b60405180910390fd5b81600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461079e9190610e0a565b925050819055505b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107f59190610e0a565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461084b9190610db4565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108af9190610d62565b60405180910390a3600190509392505050565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093b90610d42565b60405180910390fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109939190610e0a565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109e0573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610a279190610d62565b60405180910390a250565b600260009054906101000a900460ff1681565b60036020528060005260406000206000915090505481565b60018054610a6a90610ec6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9690610ec6565b8015610ae35780601f10610ab857610100808354040283529160200191610ae3565b820191906000526020600020905b815481529060010190602001808311610ac657829003601f168201915b505050505081565b6000610af83384846104f2565b905092915050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600081359050610b3481610f6f565b92915050565b600081359050610b4981610f86565b92915050565b600060208284031215610b6557610b64610f56565b5b6000610b7384828501610b25565b91505092915050565b60008060408385031215610b9357610b92610f56565b5b6000610ba185828601610b25565b9250506020610bb285828601610b25565b9150509250929050565b600080600060608486031215610bd557610bd4610f56565b5b6000610be386828701610b25565b9350506020610bf486828701610b25565b9250506040610c0586828701610b3a565b9150509250925092565b60008060408385031215610c2657610c25610f56565b5b6000610c3485828601610b25565b9250506020610c4585828601610b3a565b9150509250929050565b600060208284031215610c6557610c64610f56565b5b6000610c7384828501610b3a565b91505092915050565b610c8581610e50565b82525050565b6000610c9682610d98565b610ca08185610da3565b9350610cb0818560208601610e93565b610cb981610f5b565b840191505092915050565b6000610cd1600083610da3565b9150610cdc82610f6c565b600082019050919050565b610cf081610e7c565b82525050565b610cff81610e86565b82525050565b6000602082019050610d1a6000830184610c7c565b92915050565b60006020820190508181036000830152610d3a8184610c8b565b905092915050565b60006020820190508181036000830152610d5b81610cc4565b9050919050565b6000602082019050610d776000830184610ce7565b92915050565b6000602082019050610d926000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610dbf82610e7c565b9150610dca83610e7c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610dff57610dfe610ef8565b5b828201905092915050565b6000610e1582610e7c565b9150610e2083610e7c565b925082821015610e3357610e32610ef8565b5b828203905092915050565b6000610e4982610e5c565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610eb1578082015181840152602081019050610e96565b83811115610ec0576000848401525b50505050565b60006002820490506001821680610ede57607f821691505b60208210811415610ef257610ef1610f27565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b50565b610f7881610e3e565b8114610f8357600080fd5b50565b610f8f81610e7c565b8114610f9a57600080fd5b5056fea2646970667358221220ed2297470e8d6c8e387b5cdc1c81dd38decdf0b011f3c15df9f52f6da3dcc17664736f6c63430008070033",
}
WETH9MetaData contains all meta data concerning the WETH9 contract.
Functions ¶
This section is empty.
Types ¶
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.