Documentation
¶
Index ¶
- Variables
- type NativeWrap
- type NativeWrapApproval
- type NativeWrapApprovalIterator
- type NativeWrapCaller
- func (_NativeWrap *NativeWrapCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
- func (_NativeWrap *NativeWrapCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
- func (_NativeWrap *NativeWrapCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_NativeWrap *NativeWrapCaller) Name(opts *bind.CallOpts) (string, error)
- func (_NativeWrap *NativeWrapCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_NativeWrap *NativeWrapCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type NativeWrapCallerRaw
- type NativeWrapCallerSession
- func (_NativeWrap *NativeWrapCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_NativeWrap *NativeWrapCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_NativeWrap *NativeWrapCallerSession) Decimals() (uint8, error)
- func (_NativeWrap *NativeWrapCallerSession) Name() (string, error)
- func (_NativeWrap *NativeWrapCallerSession) Symbol() (string, error)
- func (_NativeWrap *NativeWrapCallerSession) TotalSupply() (*big.Int, error)
- type NativeWrapFilterer
- func (_NativeWrap *NativeWrapFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*NativeWrapApprovalIterator, error)
- func (_NativeWrap *NativeWrapFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*NativeWrapTransferIterator, error)
- func (_NativeWrap *NativeWrapFilterer) ParseApproval(log types.Log) (*NativeWrapApproval, error)
- func (_NativeWrap *NativeWrapFilterer) ParseTransfer(log types.Log) (*NativeWrapTransfer, error)
- func (_NativeWrap *NativeWrapFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NativeWrapApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_NativeWrap *NativeWrapFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NativeWrapTransfer, from []common.Address, ...) (event.Subscription, error)
- type NativeWrapRaw
- func (_NativeWrap *NativeWrapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_NativeWrap *NativeWrapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type NativeWrapSession
- func (_NativeWrap *NativeWrapSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_NativeWrap *NativeWrapSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_NativeWrap *NativeWrapSession) Decimals() (uint8, error)
- func (_NativeWrap *NativeWrapSession) Deposit() (*types.Transaction, error)
- func (_NativeWrap *NativeWrapSession) Name() (string, error)
- func (_NativeWrap *NativeWrapSession) Receive() (*types.Transaction, error)
- func (_NativeWrap *NativeWrapSession) Symbol() (string, error)
- func (_NativeWrap *NativeWrapSession) TotalSupply() (*big.Int, error)
- func (_NativeWrap *NativeWrapSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapSession) Withdraw(_value *big.Int) (*types.Transaction, error)
- type NativeWrapTransactor
- func (_NativeWrap *NativeWrapTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactor) Withdraw(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
- type NativeWrapTransactorRaw
- type NativeWrapTransactorSession
- func (_NativeWrap *NativeWrapTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactorSession) Deposit() (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactorSession) Receive() (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_NativeWrap *NativeWrapTransactorSession) Withdraw(_value *big.Int) (*types.Transaction, error)
- type NativeWrapTransfer
- type NativeWrapTransferIterator
Constants ¶
This section is empty.
Variables ¶
var NativeWrapABI = NativeWrapMetaData.ABI
NativeWrapABI is the input ABI used to generate the binding from. Deprecated: Use NativeWrapMetaData.ABI instead.
var NativeWrapBin = NativeWrapMetaData.Bin
NativeWrapBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NativeWrapMetaData.Bin instead.
var NativeWrapMetaData = &bind.MetaData{
ABI: "[{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"_to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"_from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdraw\",\"inputs\":[{\"name\":\"_value\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
Bin: "0x6080604052348015600e575f5ffd5b5061077e8061001c5f395ff3fe60806040526004361061009d575f3560e01c8063313ce56711610062578063313ce567146101d857806370a08231146101fe57806395d89b4114610232578063a9059cbb14610262578063d0e30db014610281578063dd62ed3e14610289575f5ffd5b806306fdde03146100ef578063095ea7b31461014d57806318160ddd1461017c57806323b872dd146101985780632e1a7d4d146101b7575f5ffd5b366100eb57335f90815260208190526040812080543492906100c09084906105e8565b909155505060405134815233905f905f5160206107295f395f51905f529060200160405180910390a3005b5f5ffd5b3480156100fa575f5ffd5b506101376040518060400160405280601a81526020017f57726170706564204e6174697665202874657374206d6f636b2900000000000081525081565b60405161014491906105fb565b60405180910390f35b348015610158575f5ffd5b5061016c61016736600461064b565b6102cd565b6040519015158152602001610144565b348015610187575f5ffd5b50475b604051908152602001610144565b3480156101a3575f5ffd5b5061016c6101b2366004610673565b610339565b3480156101c2575f5ffd5b506101d66101d13660046106ad565b610420565b005b3480156101e3575f5ffd5b506101ec601281565b60405160ff9091168152602001610144565b348015610209575f5ffd5b5061018a6102183660046106c4565b6001600160a01b03165f9081526020819052604090205490565b34801561023d575f5ffd5b5061013760405180604001604052806005815260200164574d4f434b60d81b81525081565b34801561026d575f5ffd5b5061016c61027c36600461064b565b610510565b6101d661058b565b348015610294575f5ffd5b5061018a6102a33660046106e4565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b335f8181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103279086815260200190565b60405180910390a35060015b92915050565b5f336001600160a01b03851614610382576001600160a01b0384165f9081526001602090815260408083203384529091528120805484929061037c908490610715565b90915550505b6001600160a01b0384165f90815260208190526040812080548492906103a9908490610715565b90915550506001600160a01b0383165f90815260208190526040812080548492906103d59084906105e8565b92505081905550826001600160a01b0316846001600160a01b03165f5160206107295f395f51905f528460405161040e91815260200190565b60405180910390a35060019392505050565b335f908152602081905260408120805483929061043e908490610715565b90915550506040518181525f9033905f5160206107295f395f51905f529060200160405180910390a36040515f90339083908381818185875af1925050503d805f81146104a6576040519150601f19603f3d011682016040523d82523d5f602084013e6104ab565b606091505b505090508061050c5760405162461bcd60e51b8152602060048201526024808201527f4e6174697665577261704d6f636b3a2077697468647261772073656e642066616044820152631a5b195960e21b606482015260840160405180910390fd5b5050565b335f90815260208190526040812080548391908390610530908490610715565b90915550506001600160a01b0383165f908152602081905260408120805484929061055c9084906105e8565b90915550506040518281526001600160a01b0384169033905f5160206107295f395f51905f5290602001610327565b335f90815260208190526040812080543492906105a99084906105e8565b909155505060405134815233905f905f5160206107295f395f51905f529060200160405180910390a3565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610333576103336105d4565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610646575f5ffd5b919050565b5f5f6040838503121561065c575f5ffd5b61066583610630565b946020939093013593505050565b5f5f5f60608486031215610685575f5ffd5b61068e84610630565b925061069c60208501610630565b929592945050506040919091013590565b5f602082840312156106bd575f5ffd5b5035919050565b5f602082840312156106d4575f5ffd5b6106dd82610630565b9392505050565b5f5f604083850312156106f5575f5ffd5b6106fe83610630565b915061070c60208401610630565b90509250929050565b81810381811115610333576103336105d456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a2907983600fcfb3e737f4aae62d5dcb3efaf390955514d8cfe0430b9e047f3264736f6c634300081e0033",
}
NativeWrapMetaData contains all meta data concerning the NativeWrap contract.
Functions ¶
This section is empty.
Types ¶
type NativeWrap ¶
type NativeWrap struct {
NativeWrapCaller // Read-only binding to the contract
NativeWrapTransactor // Write-only binding to the contract
NativeWrapFilterer // Log filterer for contract events
}
NativeWrap is an auto generated Go binding around an Ethereum contract.
func DeployNativeWrap ¶
func DeployNativeWrap(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *NativeWrap, error)
DeployNativeWrap deploys a new Ethereum contract, binding an instance of NativeWrap to it.
func NewNativeWrap ¶
func NewNativeWrap(address common.Address, backend bind.ContractBackend) (*NativeWrap, error)
NewNativeWrap creates a new instance of NativeWrap, bound to a specific deployed contract.
type NativeWrapApproval ¶
type NativeWrapApproval struct {
Owner common.Address
Spender common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
NativeWrapApproval represents a Approval event raised by the NativeWrap contract.
type NativeWrapApprovalIterator ¶
type NativeWrapApprovalIterator struct {
Event *NativeWrapApproval // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
NativeWrapApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the NativeWrap contract.
func (*NativeWrapApprovalIterator) Close ¶
func (it *NativeWrapApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NativeWrapApprovalIterator) Error ¶
func (it *NativeWrapApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NativeWrapApprovalIterator) Next ¶
func (it *NativeWrapApprovalIterator) 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 NativeWrapCaller ¶
type NativeWrapCaller struct {
// contains filtered or unexported fields
}
NativeWrapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewNativeWrapCaller ¶
func NewNativeWrapCaller(address common.Address, caller bind.ContractCaller) (*NativeWrapCaller, error)
NewNativeWrapCaller creates a new read-only instance of NativeWrap, bound to a specific deployed contract.
func (*NativeWrapCaller) Allowance ¶
func (_NativeWrap *NativeWrapCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256)
func (*NativeWrapCaller) BalanceOf ¶
func (_NativeWrap *NativeWrapCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) view returns(uint256)
func (*NativeWrapCaller) Decimals ¶
func (_NativeWrap *NativeWrapCaller) 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 (*NativeWrapCaller) Name ¶
func (_NativeWrap *NativeWrapCaller) 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 (*NativeWrapCaller) Symbol ¶
func (_NativeWrap *NativeWrapCaller) 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 (*NativeWrapCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type NativeWrapCallerRaw ¶
type NativeWrapCallerRaw struct {
Contract *NativeWrapCaller // Generic read-only contract binding to access the raw methods on
}
NativeWrapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*NativeWrapCallerRaw) Call ¶
func (_NativeWrap *NativeWrapCallerRaw) 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 NativeWrapCallerSession ¶
type NativeWrapCallerSession struct {
Contract *NativeWrapCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
NativeWrapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*NativeWrapCallerSession) Allowance ¶
func (_NativeWrap *NativeWrapCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256)
func (*NativeWrapCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) view returns(uint256)
func (*NativeWrapCallerSession) Decimals ¶
func (_NativeWrap *NativeWrapCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*NativeWrapCallerSession) Name ¶
func (_NativeWrap *NativeWrapCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*NativeWrapCallerSession) Symbol ¶
func (_NativeWrap *NativeWrapCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*NativeWrapCallerSession) TotalSupply ¶
func (_NativeWrap *NativeWrapCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type NativeWrapFilterer ¶
type NativeWrapFilterer struct {
// contains filtered or unexported fields
}
NativeWrapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewNativeWrapFilterer ¶
func NewNativeWrapFilterer(address common.Address, filterer bind.ContractFilterer) (*NativeWrapFilterer, error)
NewNativeWrapFilterer creates a new log filterer instance of NativeWrap, bound to a specific deployed contract.
func (*NativeWrapFilterer) FilterApproval ¶
func (_NativeWrap *NativeWrapFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*NativeWrapApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*NativeWrapFilterer) FilterTransfer ¶
func (_NativeWrap *NativeWrapFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*NativeWrapTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*NativeWrapFilterer) ParseApproval ¶
func (_NativeWrap *NativeWrapFilterer) ParseApproval(log types.Log) (*NativeWrapApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*NativeWrapFilterer) ParseTransfer ¶
func (_NativeWrap *NativeWrapFilterer) ParseTransfer(log types.Log) (*NativeWrapTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*NativeWrapFilterer) WatchApproval ¶
func (_NativeWrap *NativeWrapFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NativeWrapApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*NativeWrapFilterer) WatchTransfer ¶
func (_NativeWrap *NativeWrapFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NativeWrapTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
type NativeWrapRaw ¶
type NativeWrapRaw struct {
Contract *NativeWrap // Generic contract binding to access the raw methods on
}
NativeWrapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*NativeWrapRaw) Call ¶
func (_NativeWrap *NativeWrapRaw) 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 (*NativeWrapRaw) Transact ¶
func (_NativeWrap *NativeWrapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NativeWrapRaw) Transfer ¶
func (_NativeWrap *NativeWrapRaw) 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 NativeWrapSession ¶
type NativeWrapSession struct {
Contract *NativeWrap // 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
}
NativeWrapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*NativeWrapSession) Allowance ¶
func (_NativeWrap *NativeWrapSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) view returns(uint256)
func (*NativeWrapSession) Approve ¶
func (_NativeWrap *NativeWrapSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool)
func (*NativeWrapSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) view returns(uint256)
func (*NativeWrapSession) Decimals ¶
func (_NativeWrap *NativeWrapSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*NativeWrapSession) Deposit ¶
func (_NativeWrap *NativeWrapSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*NativeWrapSession) Name ¶
func (_NativeWrap *NativeWrapSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*NativeWrapSession) Receive ¶
func (_NativeWrap *NativeWrapSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*NativeWrapSession) Symbol ¶
func (_NativeWrap *NativeWrapSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*NativeWrapSession) TotalSupply ¶
func (_NativeWrap *NativeWrapSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*NativeWrapSession) Transfer ¶
func (_NativeWrap *NativeWrapSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) returns(bool)
func (*NativeWrapSession) TransferFrom ¶
func (_NativeWrap *NativeWrapSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
func (*NativeWrapSession) Withdraw ¶
func (_NativeWrap *NativeWrapSession) Withdraw(_value *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _value) returns()
type NativeWrapTransactor ¶
type NativeWrapTransactor struct {
// contains filtered or unexported fields
}
NativeWrapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewNativeWrapTransactor ¶
func NewNativeWrapTransactor(address common.Address, transactor bind.ContractTransactor) (*NativeWrapTransactor, error)
NewNativeWrapTransactor creates a new write-only instance of NativeWrap, bound to a specific deployed contract.
func (*NativeWrapTransactor) Approve ¶
func (_NativeWrap *NativeWrapTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool)
func (*NativeWrapTransactor) Deposit ¶
func (_NativeWrap *NativeWrapTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*NativeWrapTransactor) Receive ¶
func (_NativeWrap *NativeWrapTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*NativeWrapTransactor) Transfer ¶
func (_NativeWrap *NativeWrapTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) returns(bool)
func (*NativeWrapTransactor) TransferFrom ¶
func (_NativeWrap *NativeWrapTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
func (*NativeWrapTransactor) Withdraw ¶
func (_NativeWrap *NativeWrapTransactor) Withdraw(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _value) returns()
type NativeWrapTransactorRaw ¶
type NativeWrapTransactorRaw struct {
Contract *NativeWrapTransactor // Generic write-only contract binding to access the raw methods on
}
NativeWrapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*NativeWrapTransactorRaw) Transact ¶
func (_NativeWrap *NativeWrapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NativeWrapTransactorRaw) Transfer ¶
func (_NativeWrap *NativeWrapTransactorRaw) 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 NativeWrapTransactorSession ¶
type NativeWrapTransactorSession struct {
Contract *NativeWrapTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
NativeWrapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*NativeWrapTransactorSession) Approve ¶
func (_NativeWrap *NativeWrapTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _value) returns(bool)
func (*NativeWrapTransactorSession) Deposit ¶
func (_NativeWrap *NativeWrapTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*NativeWrapTransactorSession) Receive ¶
func (_NativeWrap *NativeWrapTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*NativeWrapTransactorSession) Transfer ¶
func (_NativeWrap *NativeWrapTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _value) returns(bool)
func (*NativeWrapTransactorSession) TransferFrom ¶
func (_NativeWrap *NativeWrapTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)
func (*NativeWrapTransactorSession) Withdraw ¶
func (_NativeWrap *NativeWrapTransactorSession) Withdraw(_value *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _value) returns()
type NativeWrapTransfer ¶
type NativeWrapTransfer struct {
From common.Address
To common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
NativeWrapTransfer represents a Transfer event raised by the NativeWrap contract.
type NativeWrapTransferIterator ¶
type NativeWrapTransferIterator struct {
Event *NativeWrapTransfer // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
NativeWrapTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the NativeWrap contract.
func (*NativeWrapTransferIterator) Close ¶
func (it *NativeWrapTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NativeWrapTransferIterator) Error ¶
func (it *NativeWrapTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NativeWrapTransferIterator) Next ¶
func (it *NativeWrapTransferIterator) 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.