oneinchv2

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Oneinchv2ABI = "" /* 5933-byte string literal not displayed */

Oneinchv2ABI is the input ABI used to generate the binding from.

Variables

View Source
var Oneinchv2Bin = "" /* 26736-byte string literal not displayed */

Oneinchv2Bin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type IOneInchCallerCallDescription

type IOneInchCallerCallDescription struct {
	TargetWithMandatory *big.Int
	GasLimit            *big.Int
	Value               *big.Int
	Data                []byte
}

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

type OneInchExchangeSwapDescription

type OneInchExchangeSwapDescription struct {
	SrcToken         common.Address
	DstToken         common.Address
	SrcReceiver      common.Address
	DstReceiver      common.Address
	Amount           *big.Int
	MinReturnAmount  *big.Int
	GuaranteedAmount *big.Int
	Flags            *big.Int
	Referrer         common.Address
	Permit           []byte
}

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

type Oneinchv2

type Oneinchv2 struct {
	Oneinchv2Caller     // Read-only binding to the contract
	Oneinchv2Transactor // Write-only binding to the contract
	Oneinchv2Filterer   // Log filterer for contract events
}

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

func DeployOneinchv2

func DeployOneinchv2(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Oneinchv2, error)

DeployOneinchv2 deploys a new Ethereum contract, binding an instance of Oneinchv2 to it.

func NewOneinchv2

func NewOneinchv2(address common.Address, backend bind.ContractBackend) (*Oneinchv2, error)

NewOneinchv2 creates a new instance of Oneinchv2, bound to a specific deployed contract.

type Oneinchv2Caller

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

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

func NewOneinchv2Caller

func NewOneinchv2Caller(address common.Address, caller bind.ContractCaller) (*Oneinchv2Caller, error)

NewOneinchv2Caller creates a new read-only instance of Oneinchv2, bound to a specific deployed contract.

func (*Oneinchv2Caller) Owner

func (_Oneinchv2 *Oneinchv2Caller) 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 (*Oneinchv2Caller) Paused

func (_Oneinchv2 *Oneinchv2Caller) Paused(opts *bind.CallOpts) (bool, error)

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

Solidity: function paused() view returns(bool)

type Oneinchv2CallerRaw

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

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

func (*Oneinchv2CallerRaw) Call

func (_Oneinchv2 *Oneinchv2CallerRaw) 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 Oneinchv2CallerSession

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

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

func (*Oneinchv2CallerSession) Owner

func (_Oneinchv2 *Oneinchv2CallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*Oneinchv2CallerSession) Paused

func (_Oneinchv2 *Oneinchv2CallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

type Oneinchv2Error

type Oneinchv2Error struct {
	Reason string
	Raw    types.Log // Blockchain specific contextual infos
}

Oneinchv2Error represents a Error event raised by the Oneinchv2 contract.

type Oneinchv2ErrorIterator

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

Oneinchv2ErrorIterator is returned from FilterError and is used to iterate over the raw logs and unpacked data for Error events raised by the Oneinchv2 contract.

func (*Oneinchv2ErrorIterator) Close

func (it *Oneinchv2ErrorIterator) Close() error

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

func (*Oneinchv2ErrorIterator) Error

func (it *Oneinchv2ErrorIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Oneinchv2ErrorIterator) Next

func (it *Oneinchv2ErrorIterator) 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 Oneinchv2Filterer

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

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

func NewOneinchv2Filterer

func NewOneinchv2Filterer(address common.Address, filterer bind.ContractFilterer) (*Oneinchv2Filterer, error)

NewOneinchv2Filterer creates a new log filterer instance of Oneinchv2, bound to a specific deployed contract.

func (*Oneinchv2Filterer) FilterError

func (_Oneinchv2 *Oneinchv2Filterer) FilterError(opts *bind.FilterOpts) (*Oneinchv2ErrorIterator, error)

FilterError is a free log retrieval operation binding the contract event 0x08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa.

Solidity: event Error(string reason)

func (*Oneinchv2Filterer) FilterOwnershipTransferred

func (_Oneinchv2 *Oneinchv2Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Oneinchv2OwnershipTransferredIterator, error)

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

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

func (*Oneinchv2Filterer) FilterPaused

func (_Oneinchv2 *Oneinchv2Filterer) FilterPaused(opts *bind.FilterOpts) (*Oneinchv2PausedIterator, error)

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

Solidity: event Paused(address account)

func (*Oneinchv2Filterer) FilterSwapped

func (_Oneinchv2 *Oneinchv2Filterer) FilterSwapped(opts *bind.FilterOpts, sender []common.Address, srcToken []common.Address, dstToken []common.Address) (*Oneinchv2SwappedIterator, error)

FilterSwapped is a free log retrieval operation binding the contract event 0x76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e.

Solidity: event Swapped(address indexed sender, address indexed srcToken, address indexed dstToken, address dstReceiver, uint256 amount, uint256 spentAmount, uint256 returnAmount, uint256 minReturnAmount, uint256 guaranteedAmount, address referrer)

func (*Oneinchv2Filterer) FilterUnpaused

func (_Oneinchv2 *Oneinchv2Filterer) FilterUnpaused(opts *bind.FilterOpts) (*Oneinchv2UnpausedIterator, error)

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

Solidity: event Unpaused(address account)

func (*Oneinchv2Filterer) ParseError

func (_Oneinchv2 *Oneinchv2Filterer) ParseError(log types.Log) (*Oneinchv2Error, error)

ParseError is a log parse operation binding the contract event 0x08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa.

Solidity: event Error(string reason)

func (*Oneinchv2Filterer) ParseOwnershipTransferred

func (_Oneinchv2 *Oneinchv2Filterer) ParseOwnershipTransferred(log types.Log) (*Oneinchv2OwnershipTransferred, error)

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

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

func (*Oneinchv2Filterer) ParsePaused

func (_Oneinchv2 *Oneinchv2Filterer) ParsePaused(log types.Log) (*Oneinchv2Paused, error)

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

Solidity: event Paused(address account)

func (*Oneinchv2Filterer) ParseSwapped

func (_Oneinchv2 *Oneinchv2Filterer) ParseSwapped(log types.Log) (*Oneinchv2Swapped, error)

ParseSwapped is a log parse operation binding the contract event 0x76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e.

Solidity: event Swapped(address indexed sender, address indexed srcToken, address indexed dstToken, address dstReceiver, uint256 amount, uint256 spentAmount, uint256 returnAmount, uint256 minReturnAmount, uint256 guaranteedAmount, address referrer)

func (*Oneinchv2Filterer) ParseUnpaused

func (_Oneinchv2 *Oneinchv2Filterer) ParseUnpaused(log types.Log) (*Oneinchv2Unpaused, error)

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

Solidity: event Unpaused(address account)

func (*Oneinchv2Filterer) WatchError

func (_Oneinchv2 *Oneinchv2Filterer) WatchError(opts *bind.WatchOpts, sink chan<- *Oneinchv2Error) (event.Subscription, error)

WatchError is a free log subscription operation binding the contract event 0x08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa.

Solidity: event Error(string reason)

func (*Oneinchv2Filterer) WatchOwnershipTransferred

func (_Oneinchv2 *Oneinchv2Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Oneinchv2OwnershipTransferred, 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 (*Oneinchv2Filterer) WatchPaused

func (_Oneinchv2 *Oneinchv2Filterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *Oneinchv2Paused) (event.Subscription, error)

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

Solidity: event Paused(address account)

func (*Oneinchv2Filterer) WatchSwapped

func (_Oneinchv2 *Oneinchv2Filterer) WatchSwapped(opts *bind.WatchOpts, sink chan<- *Oneinchv2Swapped, sender []common.Address, srcToken []common.Address, dstToken []common.Address) (event.Subscription, error)

WatchSwapped is a free log subscription operation binding the contract event 0x76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e.

Solidity: event Swapped(address indexed sender, address indexed srcToken, address indexed dstToken, address dstReceiver, uint256 amount, uint256 spentAmount, uint256 returnAmount, uint256 minReturnAmount, uint256 guaranteedAmount, address referrer)

func (*Oneinchv2Filterer) WatchUnpaused

func (_Oneinchv2 *Oneinchv2Filterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *Oneinchv2Unpaused) (event.Subscription, error)

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

Solidity: event Unpaused(address account)

type Oneinchv2OwnershipTransferred

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

Oneinchv2OwnershipTransferred represents a OwnershipTransferred event raised by the Oneinchv2 contract.

type Oneinchv2OwnershipTransferredIterator

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

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

func (*Oneinchv2OwnershipTransferredIterator) Close

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

func (*Oneinchv2OwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Oneinchv2OwnershipTransferredIterator) Next

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 Oneinchv2Paused

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

Oneinchv2Paused represents a Paused event raised by the Oneinchv2 contract.

type Oneinchv2PausedIterator

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

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

func (*Oneinchv2PausedIterator) Close

func (it *Oneinchv2PausedIterator) Close() error

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

func (*Oneinchv2PausedIterator) Error

func (it *Oneinchv2PausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Oneinchv2PausedIterator) Next

func (it *Oneinchv2PausedIterator) 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 Oneinchv2Raw

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

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

func (*Oneinchv2Raw) Call

func (_Oneinchv2 *Oneinchv2Raw) 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 (*Oneinchv2Raw) Transact

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

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

func (*Oneinchv2Raw) Transfer

func (_Oneinchv2 *Oneinchv2Raw) 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 Oneinchv2Session

type Oneinchv2Session struct {
	Contract     *Oneinchv2        // 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
}

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

func (*Oneinchv2Session) DiscountedSwap

DiscountedSwap is a paid mutator transaction binding the contract method 0x34b0793b.

Solidity: function discountedSwap(address caller, (address,address,address,address,uint256,uint256,uint256,uint256,address,bytes) desc, (uint256,uint256,uint256,bytes)[] calls) payable returns(uint256 returnAmount)

func (*Oneinchv2Session) Owner

func (_Oneinchv2 *Oneinchv2Session) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*Oneinchv2Session) Pause

func (_Oneinchv2 *Oneinchv2Session) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Oneinchv2Session) Paused

func (_Oneinchv2 *Oneinchv2Session) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*Oneinchv2Session) RenounceOwnership

func (_Oneinchv2 *Oneinchv2Session) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*Oneinchv2Session) RescueFunds

func (_Oneinchv2 *Oneinchv2Session) RescueFunds(token common.Address, amount *big.Int) (*types.Transaction, error)

RescueFunds is a paid mutator transaction binding the contract method 0x78e3214f.

Solidity: function rescueFunds(address token, uint256 amount) returns()

func (*Oneinchv2Session) Swap

Swap is a paid mutator transaction binding the contract method 0x90411a32.

Solidity: function swap(address caller, (address,address,address,address,uint256,uint256,uint256,uint256,address,bytes) desc, (uint256,uint256,uint256,bytes)[] calls) payable returns(uint256 returnAmount)

func (*Oneinchv2Session) TransferOwnership

func (_Oneinchv2 *Oneinchv2Session) 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 Oneinchv2Swapped

type Oneinchv2Swapped struct {
	Sender           common.Address
	SrcToken         common.Address
	DstToken         common.Address
	DstReceiver      common.Address
	Amount           *big.Int
	SpentAmount      *big.Int
	ReturnAmount     *big.Int
	MinReturnAmount  *big.Int
	GuaranteedAmount *big.Int
	Referrer         common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

Oneinchv2Swapped represents a Swapped event raised by the Oneinchv2 contract.

type Oneinchv2SwappedIterator

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

Oneinchv2SwappedIterator is returned from FilterSwapped and is used to iterate over the raw logs and unpacked data for Swapped events raised by the Oneinchv2 contract.

func (*Oneinchv2SwappedIterator) Close

func (it *Oneinchv2SwappedIterator) Close() error

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

func (*Oneinchv2SwappedIterator) Error

func (it *Oneinchv2SwappedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Oneinchv2SwappedIterator) Next

func (it *Oneinchv2SwappedIterator) 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 Oneinchv2Transactor

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

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

func NewOneinchv2Transactor

func NewOneinchv2Transactor(address common.Address, transactor bind.ContractTransactor) (*Oneinchv2Transactor, error)

NewOneinchv2Transactor creates a new write-only instance of Oneinchv2, bound to a specific deployed contract.

func (*Oneinchv2Transactor) DiscountedSwap

DiscountedSwap is a paid mutator transaction binding the contract method 0x34b0793b.

Solidity: function discountedSwap(address caller, (address,address,address,address,uint256,uint256,uint256,uint256,address,bytes) desc, (uint256,uint256,uint256,bytes)[] calls) payable returns(uint256 returnAmount)

func (*Oneinchv2Transactor) Pause

func (_Oneinchv2 *Oneinchv2Transactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Oneinchv2Transactor) RenounceOwnership

func (_Oneinchv2 *Oneinchv2Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*Oneinchv2Transactor) RescueFunds

func (_Oneinchv2 *Oneinchv2Transactor) RescueFunds(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

RescueFunds is a paid mutator transaction binding the contract method 0x78e3214f.

Solidity: function rescueFunds(address token, uint256 amount) returns()

func (*Oneinchv2Transactor) Swap

Swap is a paid mutator transaction binding the contract method 0x90411a32.

Solidity: function swap(address caller, (address,address,address,address,uint256,uint256,uint256,uint256,address,bytes) desc, (uint256,uint256,uint256,bytes)[] calls) payable returns(uint256 returnAmount)

func (*Oneinchv2Transactor) TransferOwnership

func (_Oneinchv2 *Oneinchv2Transactor) 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 Oneinchv2TransactorRaw

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

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

func (*Oneinchv2TransactorRaw) Transact

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

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

func (*Oneinchv2TransactorRaw) Transfer

func (_Oneinchv2 *Oneinchv2TransactorRaw) 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 Oneinchv2TransactorSession

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

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

func (*Oneinchv2TransactorSession) DiscountedSwap

DiscountedSwap is a paid mutator transaction binding the contract method 0x34b0793b.

Solidity: function discountedSwap(address caller, (address,address,address,address,uint256,uint256,uint256,uint256,address,bytes) desc, (uint256,uint256,uint256,bytes)[] calls) payable returns(uint256 returnAmount)

func (*Oneinchv2TransactorSession) Pause

func (_Oneinchv2 *Oneinchv2TransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*Oneinchv2TransactorSession) RenounceOwnership

func (_Oneinchv2 *Oneinchv2TransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*Oneinchv2TransactorSession) RescueFunds

func (_Oneinchv2 *Oneinchv2TransactorSession) RescueFunds(token common.Address, amount *big.Int) (*types.Transaction, error)

RescueFunds is a paid mutator transaction binding the contract method 0x78e3214f.

Solidity: function rescueFunds(address token, uint256 amount) returns()

func (*Oneinchv2TransactorSession) Swap

Swap is a paid mutator transaction binding the contract method 0x90411a32.

Solidity: function swap(address caller, (address,address,address,address,uint256,uint256,uint256,uint256,address,bytes) desc, (uint256,uint256,uint256,bytes)[] calls) payable returns(uint256 returnAmount)

func (*Oneinchv2TransactorSession) TransferOwnership

func (_Oneinchv2 *Oneinchv2TransactorSession) 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 Oneinchv2Unpaused

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

Oneinchv2Unpaused represents a Unpaused event raised by the Oneinchv2 contract.

type Oneinchv2UnpausedIterator

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

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

func (*Oneinchv2UnpausedIterator) Close

func (it *Oneinchv2UnpausedIterator) Close() error

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

func (*Oneinchv2UnpausedIterator) Error

func (it *Oneinchv2UnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Oneinchv2UnpausedIterator) Next

func (it *Oneinchv2UnpausedIterator) 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.

Jump to

Keyboard shortcuts

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