demo

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransferDemoABI = TransferDemoMetaData.ABI

TransferDemoABI is the input ABI used to generate the binding from. Deprecated: Use TransferDemoMetaData.ABI instead.

View Source
var TransferDemoMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustedForwarder\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structTransferHandler.PermitOptions\",\"name\":\"options\",\"type\":\"tuple\"}],\"name\":\"permitDAIAndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structTransferHandler.PermitOptions\",\"name\":\"options\",\"type\":\"tuple\"}],\"name\":\"permitEIP2612AndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"val\",\"type\":\"bool\"}],\"name\":\"setPause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"versionRecipient\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

TransferDemoMetaData contains all meta data concerning the TransferDemo contract.

View Source
var UniswapDemoABI = UniswapDemoMetaData.ABI

UniswapDemoABI is the input ABI used to generate the binding from. Deprecated: Use UniswapDemoMetaData.ABI instead.

View Source
var UniswapDemoMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_forwarder\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_router\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structISwapRouterV3.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwarder\",\"type\":\"address\"}],\"name\":\"isTrustedForwarder\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

UniswapDemoMetaData contains all meta data concerning the UniswapDemo contract.

Functions

This section is empty.

Types

type ISwapRouterV3ExactInputSingleParams

type ISwapRouterV3ExactInputSingleParams struct {
	TokenIn           common.Address
	TokenOut          common.Address
	Fee               *big.Int
	Recipient         common.Address
	AmountIn          *big.Int
	AmountOutMinimum  *big.Int
	SqrtPriceLimitX96 *big.Int
}

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

type TransferDemo added in v0.0.5

type TransferDemo struct {
	TransferDemoCaller     // Read-only binding to the contract
	TransferDemoTransactor // Write-only binding to the contract
	TransferDemoFilterer   // Log filterer for contract events
}

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

func NewTransferDemo added in v0.0.5

func NewTransferDemo(address common.Address, backend bind.ContractBackend) (*TransferDemo, error)

NewTransferDemo creates a new instance of TransferDemo, bound to a specific deployed contract.

type TransferDemoCaller added in v0.0.5

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

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

func NewTransferDemoCaller added in v0.0.5

func NewTransferDemoCaller(address common.Address, caller bind.ContractCaller) (*TransferDemoCaller, error)

NewTransferDemoCaller creates a new read-only instance of TransferDemo, bound to a specific deployed contract.

func (*TransferDemoCaller) IsTrustedForwarder added in v0.0.5

func (_TransferDemo *TransferDemoCaller) IsTrustedForwarder(opts *bind.CallOpts, forwarder common.Address) (bool, error)

IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.

Solidity: function isTrustedForwarder(address forwarder) view returns(bool)

func (*TransferDemoCaller) Owner added in v0.0.5

func (_TransferDemo *TransferDemoCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TransferDemoCaller) Paused added in v0.0.5

func (_TransferDemo *TransferDemoCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*TransferDemoCaller) VersionRecipient added in v0.0.5

func (_TransferDemo *TransferDemoCaller) VersionRecipient(opts *bind.CallOpts) (string, error)

VersionRecipient is a free data retrieval call binding the contract method 0x486ff0cd.

Solidity: function versionRecipient() view returns(string)

type TransferDemoCallerRaw added in v0.0.5

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

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

func (*TransferDemoCallerRaw) Call added in v0.0.5

func (_TransferDemo *TransferDemoCallerRaw) 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 TransferDemoCallerSession added in v0.0.5

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

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

func (*TransferDemoCallerSession) IsTrustedForwarder added in v0.0.5

func (_TransferDemo *TransferDemoCallerSession) IsTrustedForwarder(forwarder common.Address) (bool, error)

IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.

Solidity: function isTrustedForwarder(address forwarder) view returns(bool)

func (*TransferDemoCallerSession) Owner added in v0.0.5

func (_TransferDemo *TransferDemoCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TransferDemoCallerSession) Paused added in v0.0.5

func (_TransferDemo *TransferDemoCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*TransferDemoCallerSession) VersionRecipient added in v0.0.5

func (_TransferDemo *TransferDemoCallerSession) VersionRecipient() (string, error)

VersionRecipient is a free data retrieval call binding the contract method 0x486ff0cd.

Solidity: function versionRecipient() view returns(string)

type TransferDemoFilterer added in v0.0.5

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

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

func NewTransferDemoFilterer added in v0.0.5

func NewTransferDemoFilterer(address common.Address, filterer bind.ContractFilterer) (*TransferDemoFilterer, error)

NewTransferDemoFilterer creates a new log filterer instance of TransferDemo, bound to a specific deployed contract.

func (*TransferDemoFilterer) FilterOwnershipTransferred added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*TransferDemoOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TransferDemoFilterer) FilterPaused added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) FilterPaused(opts *bind.FilterOpts) (*TransferDemoPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*TransferDemoFilterer) FilterTransfer added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) FilterTransfer(opts *bind.FilterOpts, token []common.Address, from []common.Address, to []common.Address) (*TransferDemoTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xd1398bee19313d6bf672ccb116e51f4a1a947e91c757907f51fbb5b5e56c698f.

Solidity: event Transfer(address indexed token, address indexed from, address indexed to, uint256 amount)

func (*TransferDemoFilterer) FilterUnpaused added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) FilterUnpaused(opts *bind.FilterOpts) (*TransferDemoUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*TransferDemoFilterer) ParseOwnershipTransferred added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) ParseOwnershipTransferred(log types.Log) (*TransferDemoOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TransferDemoFilterer) ParsePaused added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) ParsePaused(log types.Log) (*TransferDemoPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*TransferDemoFilterer) ParseTransfer added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) ParseTransfer(log types.Log) (*TransferDemoTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xd1398bee19313d6bf672ccb116e51f4a1a947e91c757907f51fbb5b5e56c698f.

Solidity: event Transfer(address indexed token, address indexed from, address indexed to, uint256 amount)

func (*TransferDemoFilterer) ParseUnpaused added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) ParseUnpaused(log types.Log) (*TransferDemoUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*TransferDemoFilterer) WatchOwnershipTransferred added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *TransferDemoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*TransferDemoFilterer) WatchPaused added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *TransferDemoPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*TransferDemoFilterer) WatchTransfer added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TransferDemoTransfer, token []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xd1398bee19313d6bf672ccb116e51f4a1a947e91c757907f51fbb5b5e56c698f.

Solidity: event Transfer(address indexed token, address indexed from, address indexed to, uint256 amount)

func (*TransferDemoFilterer) WatchUnpaused added in v0.0.5

func (_TransferDemo *TransferDemoFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *TransferDemoUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type TransferDemoOwnershipTransferred added in v0.0.5

type TransferDemoOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

TransferDemoOwnershipTransferred represents a OwnershipTransferred event raised by the TransferDemo contract.

type TransferDemoOwnershipTransferredIterator added in v0.0.5

type TransferDemoOwnershipTransferredIterator struct {
	Event *TransferDemoOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TransferDemoOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the TransferDemo contract.

func (*TransferDemoOwnershipTransferredIterator) Close added in v0.0.5

Close terminates the iteration process, releasing any pending underlying resources.

func (*TransferDemoOwnershipTransferredIterator) Error added in v0.0.5

Error returns any retrieval or parsing error occurred during filtering.

func (*TransferDemoOwnershipTransferredIterator) Next added in v0.0.5

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 TransferDemoPaused added in v0.0.5

type TransferDemoPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TransferDemoPaused represents a Paused event raised by the TransferDemo contract.

type TransferDemoPausedIterator added in v0.0.5

type TransferDemoPausedIterator struct {
	Event *TransferDemoPaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TransferDemoPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the TransferDemo contract.

func (*TransferDemoPausedIterator) Close added in v0.0.5

func (it *TransferDemoPausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TransferDemoPausedIterator) Error added in v0.0.5

func (it *TransferDemoPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TransferDemoPausedIterator) Next added in v0.0.5

func (it *TransferDemoPausedIterator) 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 TransferDemoRaw added in v0.0.5

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

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

func (*TransferDemoRaw) Call added in v0.0.5

func (_TransferDemo *TransferDemoRaw) 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 (*TransferDemoRaw) Transact added in v0.0.5

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

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

func (*TransferDemoRaw) Transfer added in v0.0.5

func (_TransferDemo *TransferDemoRaw) 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 TransferDemoSession added in v0.0.5

type TransferDemoSession struct {
	Contract     *TransferDemo     // 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
}

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

func (*TransferDemoSession) IsTrustedForwarder added in v0.0.5

func (_TransferDemo *TransferDemoSession) IsTrustedForwarder(forwarder common.Address) (bool, error)

IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.

Solidity: function isTrustedForwarder(address forwarder) view returns(bool)

func (*TransferDemoSession) Owner added in v0.0.5

func (_TransferDemo *TransferDemoSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TransferDemoSession) Paused added in v0.0.5

func (_TransferDemo *TransferDemoSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*TransferDemoSession) PermitDAIAndTransfer added in v0.0.5

func (_TransferDemo *TransferDemoSession) PermitDAIAndTransfer(token common.Address, to common.Address, amount *big.Int, options TransferHandlerPermitOptions) (*types.Transaction, error)

PermitDAIAndTransfer is a paid mutator transaction binding the contract method 0xde7f1877.

Solidity: function permitDAIAndTransfer(address token, address to, uint256 amount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) options) returns()

func (*TransferDemoSession) PermitEIP2612AndTransfer added in v0.0.5

func (_TransferDemo *TransferDemoSession) PermitEIP2612AndTransfer(token common.Address, to common.Address, amount *big.Int, options TransferHandlerPermitOptions) (*types.Transaction, error)

PermitEIP2612AndTransfer is a paid mutator transaction binding the contract method 0x71234eb0.

Solidity: function permitEIP2612AndTransfer(address token, address to, uint256 amount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) options) returns()

func (*TransferDemoSession) RenounceOwnership added in v0.0.5

func (_TransferDemo *TransferDemoSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TransferDemoSession) SetPause added in v0.0.5

func (_TransferDemo *TransferDemoSession) SetPause(val bool) (*types.Transaction, error)

SetPause is a paid mutator transaction binding the contract method 0xbedb86fb.

Solidity: function setPause(bool val) returns()

func (*TransferDemoSession) Transfer added in v0.0.5

func (_TransferDemo *TransferDemoSession) Transfer(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xbeabacc8.

Solidity: function transfer(address token, address to, uint256 amount) returns()

func (*TransferDemoSession) TransferOwnership added in v0.0.5

func (_TransferDemo *TransferDemoSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*TransferDemoSession) VersionRecipient added in v0.0.5

func (_TransferDemo *TransferDemoSession) VersionRecipient() (string, error)

VersionRecipient is a free data retrieval call binding the contract method 0x486ff0cd.

Solidity: function versionRecipient() view returns(string)

type TransferDemoTransactor added in v0.0.5

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

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

func NewTransferDemoTransactor added in v0.0.5

func NewTransferDemoTransactor(address common.Address, transactor bind.ContractTransactor) (*TransferDemoTransactor, error)

NewTransferDemoTransactor creates a new write-only instance of TransferDemo, bound to a specific deployed contract.

func (*TransferDemoTransactor) PermitDAIAndTransfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactor) PermitDAIAndTransfer(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int, options TransferHandlerPermitOptions) (*types.Transaction, error)

PermitDAIAndTransfer is a paid mutator transaction binding the contract method 0xde7f1877.

Solidity: function permitDAIAndTransfer(address token, address to, uint256 amount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) options) returns()

func (*TransferDemoTransactor) PermitEIP2612AndTransfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactor) PermitEIP2612AndTransfer(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int, options TransferHandlerPermitOptions) (*types.Transaction, error)

PermitEIP2612AndTransfer is a paid mutator transaction binding the contract method 0x71234eb0.

Solidity: function permitEIP2612AndTransfer(address token, address to, uint256 amount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) options) returns()

func (*TransferDemoTransactor) RenounceOwnership added in v0.0.5

func (_TransferDemo *TransferDemoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TransferDemoTransactor) SetPause added in v0.0.5

func (_TransferDemo *TransferDemoTransactor) SetPause(opts *bind.TransactOpts, val bool) (*types.Transaction, error)

SetPause is a paid mutator transaction binding the contract method 0xbedb86fb.

Solidity: function setPause(bool val) returns()

func (*TransferDemoTransactor) Transfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactor) Transfer(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xbeabacc8.

Solidity: function transfer(address token, address to, uint256 amount) returns()

func (*TransferDemoTransactor) TransferOwnership added in v0.0.5

func (_TransferDemo *TransferDemoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type TransferDemoTransactorRaw added in v0.0.5

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

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

func (*TransferDemoTransactorRaw) Transact added in v0.0.5

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

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

func (*TransferDemoTransactorRaw) Transfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactorRaw) 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 TransferDemoTransactorSession added in v0.0.5

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

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

func (*TransferDemoTransactorSession) PermitDAIAndTransfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactorSession) PermitDAIAndTransfer(token common.Address, to common.Address, amount *big.Int, options TransferHandlerPermitOptions) (*types.Transaction, error)

PermitDAIAndTransfer is a paid mutator transaction binding the contract method 0xde7f1877.

Solidity: function permitDAIAndTransfer(address token, address to, uint256 amount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) options) returns()

func (*TransferDemoTransactorSession) PermitEIP2612AndTransfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactorSession) PermitEIP2612AndTransfer(token common.Address, to common.Address, amount *big.Int, options TransferHandlerPermitOptions) (*types.Transaction, error)

PermitEIP2612AndTransfer is a paid mutator transaction binding the contract method 0x71234eb0.

Solidity: function permitEIP2612AndTransfer(address token, address to, uint256 amount, (uint256,uint256,uint256,bool,uint8,bytes32,bytes32) options) returns()

func (*TransferDemoTransactorSession) RenounceOwnership added in v0.0.5

func (_TransferDemo *TransferDemoTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*TransferDemoTransactorSession) SetPause added in v0.0.5

func (_TransferDemo *TransferDemoTransactorSession) SetPause(val bool) (*types.Transaction, error)

SetPause is a paid mutator transaction binding the contract method 0xbedb86fb.

Solidity: function setPause(bool val) returns()

func (*TransferDemoTransactorSession) Transfer added in v0.0.5

func (_TransferDemo *TransferDemoTransactorSession) Transfer(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xbeabacc8.

Solidity: function transfer(address token, address to, uint256 amount) returns()

func (*TransferDemoTransactorSession) TransferOwnership added in v0.0.5

func (_TransferDemo *TransferDemoTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type TransferDemoTransfer added in v0.0.5

type TransferDemoTransfer struct {
	Token  common.Address
	From   common.Address
	To     common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

TransferDemoTransfer represents a Transfer event raised by the TransferDemo contract.

type TransferDemoTransferIterator added in v0.0.5

type TransferDemoTransferIterator struct {
	Event *TransferDemoTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TransferDemoTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the TransferDemo contract.

func (*TransferDemoTransferIterator) Close added in v0.0.5

func (it *TransferDemoTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TransferDemoTransferIterator) Error added in v0.0.5

func (it *TransferDemoTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TransferDemoTransferIterator) Next added in v0.0.5

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 TransferDemoUnpaused added in v0.0.5

type TransferDemoUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TransferDemoUnpaused represents a Unpaused event raised by the TransferDemo contract.

type TransferDemoUnpausedIterator added in v0.0.5

type TransferDemoUnpausedIterator struct {
	Event *TransferDemoUnpaused // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TransferDemoUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the TransferDemo contract.

func (*TransferDemoUnpausedIterator) Close added in v0.0.5

func (it *TransferDemoUnpausedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TransferDemoUnpausedIterator) Error added in v0.0.5

func (it *TransferDemoUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TransferDemoUnpausedIterator) Next added in v0.0.5

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 TransferHandlerPermitOptions added in v0.0.5

type TransferHandlerPermitOptions struct {
	Value    *big.Int
	Nonce    *big.Int
	Deadline *big.Int
	Allowed  bool
	V        uint8
	R        [32]byte
	S        [32]byte
}

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

type UniswapDemo

type UniswapDemo struct {
	UniswapDemoCaller     // Read-only binding to the contract
	UniswapDemoTransactor // Write-only binding to the contract
	UniswapDemoFilterer   // Log filterer for contract events
}

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

func NewUniswapDemo

func NewUniswapDemo(address common.Address, backend bind.ContractBackend) (*UniswapDemo, error)

NewUniswapDemo creates a new instance of UniswapDemo, bound to a specific deployed contract.

type UniswapDemoCaller

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

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

func NewUniswapDemoCaller

func NewUniswapDemoCaller(address common.Address, caller bind.ContractCaller) (*UniswapDemoCaller, error)

NewUniswapDemoCaller creates a new read-only instance of UniswapDemo, bound to a specific deployed contract.

func (*UniswapDemoCaller) IsTrustedForwarder

func (_UniswapDemo *UniswapDemoCaller) IsTrustedForwarder(opts *bind.CallOpts, forwarder common.Address) (bool, error)

IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.

Solidity: function isTrustedForwarder(address forwarder) view returns(bool)

type UniswapDemoCallerRaw

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

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

func (*UniswapDemoCallerRaw) Call

func (_UniswapDemo *UniswapDemoCallerRaw) 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 UniswapDemoCallerSession

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

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

func (*UniswapDemoCallerSession) IsTrustedForwarder

func (_UniswapDemo *UniswapDemoCallerSession) IsTrustedForwarder(forwarder common.Address) (bool, error)

IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.

Solidity: function isTrustedForwarder(address forwarder) view returns(bool)

type UniswapDemoFilterer

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

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

func NewUniswapDemoFilterer

func NewUniswapDemoFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapDemoFilterer, error)

NewUniswapDemoFilterer creates a new log filterer instance of UniswapDemo, bound to a specific deployed contract.

type UniswapDemoRaw

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

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

func (*UniswapDemoRaw) Call

func (_UniswapDemo *UniswapDemoRaw) 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 (*UniswapDemoRaw) Transact

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

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

func (*UniswapDemoRaw) Transfer

func (_UniswapDemo *UniswapDemoRaw) 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 UniswapDemoSession

type UniswapDemoSession struct {
	Contract     *UniswapDemo      // 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
}

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

func (*UniswapDemoSession) ExactInputSingle

func (_UniswapDemo *UniswapDemoSession) ExactInputSingle(sender common.Address, params ISwapRouterV3ExactInputSingleParams) (*types.Transaction, error)

ExactInputSingle is a paid mutator transaction binding the contract method 0x1f02f4f2.

Solidity: function exactInputSingle(address sender, (address,address,uint24,address,uint256,uint256,uint160) params) payable returns(bytes)

func (*UniswapDemoSession) IsTrustedForwarder

func (_UniswapDemo *UniswapDemoSession) IsTrustedForwarder(forwarder common.Address) (bool, error)

IsTrustedForwarder is a free data retrieval call binding the contract method 0x572b6c05.

Solidity: function isTrustedForwarder(address forwarder) view returns(bool)

type UniswapDemoTransactor

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

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

func NewUniswapDemoTransactor

func NewUniswapDemoTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapDemoTransactor, error)

NewUniswapDemoTransactor creates a new write-only instance of UniswapDemo, bound to a specific deployed contract.

func (*UniswapDemoTransactor) ExactInputSingle

func (_UniswapDemo *UniswapDemoTransactor) ExactInputSingle(opts *bind.TransactOpts, sender common.Address, params ISwapRouterV3ExactInputSingleParams) (*types.Transaction, error)

ExactInputSingle is a paid mutator transaction binding the contract method 0x1f02f4f2.

Solidity: function exactInputSingle(address sender, (address,address,uint24,address,uint256,uint256,uint160) params) payable returns(bytes)

type UniswapDemoTransactorRaw

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

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

func (*UniswapDemoTransactorRaw) Transact

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

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

func (*UniswapDemoTransactorRaw) Transfer

func (_UniswapDemo *UniswapDemoTransactorRaw) 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 UniswapDemoTransactorSession

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

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

func (*UniswapDemoTransactorSession) ExactInputSingle

func (_UniswapDemo *UniswapDemoTransactorSession) ExactInputSingle(sender common.Address, params ISwapRouterV3ExactInputSingleParams) (*types.Transaction, error)

ExactInputSingle is a paid mutator transaction binding the contract method 0x1f02f4f2.

Solidity: function exactInputSingle(address sender, (address,address,uint24,address,uint256,uint256,uint160) params) payable returns(bytes)

Jump to

Keyboard shortcuts

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