openOceanRouter

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpenOceanRouterABI = OpenOceanRouterMetaData.ABI

OpenOceanRouterABI is the input ABI used to generate the binding from. Deprecated: Use OpenOceanRouterMetaData.ABI instead.

View Source
var OpenOceanRouterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"pools\",\"type\":\"bytes32[]\"}],\"name\":\"callUniswap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"callUniswapTo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"pools\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"callUniswapToWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"pools\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"callUniswapWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"rescueFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"guaranteedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"flags\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"internalType\":\"structIOpenOceanExchange.SwapDescription\",\"name\":\"desc\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"target\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structIOpenOceanExchange.CallDescription[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"pools\",\"type\":\"uint256[]\"}],\"name\":\"uniswapV3Swap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"pools\",\"type\":\"uint256[]\"}],\"name\":\"uniswapV3SwapTo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"pools\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapToWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"returnAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

OpenOceanRouterMetaData contains all meta data concerning the OpenOceanRouter contract.

Functions

This section is empty.

Types

type IOpenOceanExchangeCallDescription

type IOpenOceanExchangeCallDescription struct {
	Target   *big.Int
	GasLimit *big.Int
	Value    *big.Int
	Data     []byte
}

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

type IOpenOceanExchangeSwapDescription

type IOpenOceanExchangeSwapDescription 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
}

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

type OpenOceanRouter

type OpenOceanRouter struct {
	OpenOceanRouterCaller     // Read-only binding to the contract
	OpenOceanRouterTransactor // Write-only binding to the contract
	OpenOceanRouterFilterer   // Log filterer for contract events
}

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

func NewOpenOceanRouter

func NewOpenOceanRouter(address common.Address, backend bind.ContractBackend) (*OpenOceanRouter, error)

NewOpenOceanRouter creates a new instance of OpenOceanRouter, bound to a specific deployed contract.

type OpenOceanRouterCaller

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

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

func NewOpenOceanRouterCaller

func NewOpenOceanRouterCaller(address common.Address, caller bind.ContractCaller) (*OpenOceanRouterCaller, error)

NewOpenOceanRouterCaller creates a new read-only instance of OpenOceanRouter, bound to a specific deployed contract.

func (*OpenOceanRouterCaller) Owner

func (_OpenOceanRouter *OpenOceanRouterCaller) 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 (*OpenOceanRouterCaller) Paused

func (_OpenOceanRouter *OpenOceanRouterCaller) 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 OpenOceanRouterCallerRaw

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

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

func (*OpenOceanRouterCallerRaw) Call

func (_OpenOceanRouter *OpenOceanRouterCallerRaw) 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 OpenOceanRouterCallerSession

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

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

func (*OpenOceanRouterCallerSession) Owner

func (_OpenOceanRouter *OpenOceanRouterCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*OpenOceanRouterCallerSession) Paused

func (_OpenOceanRouter *OpenOceanRouterCallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

type OpenOceanRouterFilterer

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

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

func NewOpenOceanRouterFilterer

func NewOpenOceanRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*OpenOceanRouterFilterer, error)

NewOpenOceanRouterFilterer creates a new log filterer instance of OpenOceanRouter, bound to a specific deployed contract.

type OpenOceanRouterRaw

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

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

func (*OpenOceanRouterRaw) Call

func (_OpenOceanRouter *OpenOceanRouterRaw) 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 (*OpenOceanRouterRaw) Transact

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

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

func (*OpenOceanRouterRaw) Transfer

func (_OpenOceanRouter *OpenOceanRouterRaw) 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 OpenOceanRouterSession

type OpenOceanRouterSession struct {
	Contract     *OpenOceanRouter  // 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
}

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

func (*OpenOceanRouterSession) CallUniswap

func (_OpenOceanRouter *OpenOceanRouterSession) CallUniswap(srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte) (*types.Transaction, error)

CallUniswap is a paid mutator transaction binding the contract method 0x8980041a.

Solidity: function callUniswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) CallUniswapTo

func (_OpenOceanRouter *OpenOceanRouterSession) CallUniswapTo(srcToken common.Address, amount *big.Int, minReturn *big.Int, arg3 [][32]byte, recipient common.Address) (*types.Transaction, error)

CallUniswapTo is a paid mutator transaction binding the contract method 0x6b58f2f0.

Solidity: function callUniswapTo(address srcToken, uint256 amount, uint256 minReturn, bytes32[] , address recipient) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) CallUniswapToWithPermit

func (_OpenOceanRouter *OpenOceanRouterSession) CallUniswapToWithPermit(srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte, permit []byte, recipient common.Address) (*types.Transaction, error)

CallUniswapToWithPermit is a paid mutator transaction binding the contract method 0x22dca3d7.

Solidity: function callUniswapToWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit, address recipient) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) CallUniswapWithPermit

func (_OpenOceanRouter *OpenOceanRouterSession) CallUniswapWithPermit(srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte, permit []byte) (*types.Transaction, error)

CallUniswapWithPermit is a paid mutator transaction binding the contract method 0xd57360fc.

Solidity: function callUniswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) Initialize

func (_OpenOceanRouter *OpenOceanRouterSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*OpenOceanRouterSession) Owner

func (_OpenOceanRouter *OpenOceanRouterSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*OpenOceanRouterSession) Pause

func (_OpenOceanRouter *OpenOceanRouterSession) Pause() (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*OpenOceanRouterSession) Paused

func (_OpenOceanRouter *OpenOceanRouterSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*OpenOceanRouterSession) RenounceOwnership

func (_OpenOceanRouter *OpenOceanRouterSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*OpenOceanRouterSession) RescueFunds

func (_OpenOceanRouter *OpenOceanRouterSession) 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 (*OpenOceanRouterSession) 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) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) TransferOwnership

func (_OpenOceanRouter *OpenOceanRouterSession) 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 (*OpenOceanRouterSession) UniswapV3Swap

func (_OpenOceanRouter *OpenOceanRouterSession) UniswapV3Swap(amount *big.Int, minReturn *big.Int, pools []*big.Int) (*types.Transaction, error)

UniswapV3Swap is a paid mutator transaction binding the contract method 0xe449022e.

Solidity: function uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) UniswapV3SwapCallback

func (_OpenOceanRouter *OpenOceanRouterSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, arg2 []byte) (*types.Transaction, error)

UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33.

Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes ) returns()

func (*OpenOceanRouterSession) UniswapV3SwapTo

func (_OpenOceanRouter *OpenOceanRouterSession) UniswapV3SwapTo(recipient common.Address, amount *big.Int, minReturn *big.Int, pools []*big.Int) (*types.Transaction, error)

UniswapV3SwapTo is a paid mutator transaction binding the contract method 0xbc80f1a8.

Solidity: function uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterSession) UniswapV3SwapToWithPermit

func (_OpenOceanRouter *OpenOceanRouterSession) UniswapV3SwapToWithPermit(recipient common.Address, srcToken common.Address, amount *big.Int, minReturn *big.Int, pools []*big.Int, permit []byte) (*types.Transaction, error)

UniswapV3SwapToWithPermit is a paid mutator transaction binding the contract method 0x2521b930.

Solidity: function uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit) returns(uint256 returnAmount)

type OpenOceanRouterTransactor

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

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

func NewOpenOceanRouterTransactor

func NewOpenOceanRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*OpenOceanRouterTransactor, error)

NewOpenOceanRouterTransactor creates a new write-only instance of OpenOceanRouter, bound to a specific deployed contract.

func (*OpenOceanRouterTransactor) CallUniswap

func (_OpenOceanRouter *OpenOceanRouterTransactor) CallUniswap(opts *bind.TransactOpts, srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte) (*types.Transaction, error)

CallUniswap is a paid mutator transaction binding the contract method 0x8980041a.

Solidity: function callUniswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) CallUniswapTo

func (_OpenOceanRouter *OpenOceanRouterTransactor) CallUniswapTo(opts *bind.TransactOpts, srcToken common.Address, amount *big.Int, minReturn *big.Int, arg3 [][32]byte, recipient common.Address) (*types.Transaction, error)

CallUniswapTo is a paid mutator transaction binding the contract method 0x6b58f2f0.

Solidity: function callUniswapTo(address srcToken, uint256 amount, uint256 minReturn, bytes32[] , address recipient) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) CallUniswapToWithPermit

func (_OpenOceanRouter *OpenOceanRouterTransactor) CallUniswapToWithPermit(opts *bind.TransactOpts, srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte, permit []byte, recipient common.Address) (*types.Transaction, error)

CallUniswapToWithPermit is a paid mutator transaction binding the contract method 0x22dca3d7.

Solidity: function callUniswapToWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit, address recipient) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) CallUniswapWithPermit

func (_OpenOceanRouter *OpenOceanRouterTransactor) CallUniswapWithPermit(opts *bind.TransactOpts, srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte, permit []byte) (*types.Transaction, error)

CallUniswapWithPermit is a paid mutator transaction binding the contract method 0xd57360fc.

Solidity: function callUniswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) Initialize

func (_OpenOceanRouter *OpenOceanRouterTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*OpenOceanRouterTransactor) Pause

func (_OpenOceanRouter *OpenOceanRouterTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*OpenOceanRouterTransactor) RenounceOwnership

func (_OpenOceanRouter *OpenOceanRouterTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*OpenOceanRouterTransactor) RescueFunds

func (_OpenOceanRouter *OpenOceanRouterTransactor) 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 (*OpenOceanRouterTransactor) 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) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) TransferOwnership

func (_OpenOceanRouter *OpenOceanRouterTransactor) 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()

func (*OpenOceanRouterTransactor) UniswapV3Swap

func (_OpenOceanRouter *OpenOceanRouterTransactor) UniswapV3Swap(opts *bind.TransactOpts, amount *big.Int, minReturn *big.Int, pools []*big.Int) (*types.Transaction, error)

UniswapV3Swap is a paid mutator transaction binding the contract method 0xe449022e.

Solidity: function uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) UniswapV3SwapCallback

func (_OpenOceanRouter *OpenOceanRouterTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, arg2 []byte) (*types.Transaction, error)

UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33.

Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes ) returns()

func (*OpenOceanRouterTransactor) UniswapV3SwapTo

func (_OpenOceanRouter *OpenOceanRouterTransactor) UniswapV3SwapTo(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, minReturn *big.Int, pools []*big.Int) (*types.Transaction, error)

UniswapV3SwapTo is a paid mutator transaction binding the contract method 0xbc80f1a8.

Solidity: function uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactor) UniswapV3SwapToWithPermit

func (_OpenOceanRouter *OpenOceanRouterTransactor) UniswapV3SwapToWithPermit(opts *bind.TransactOpts, recipient common.Address, srcToken common.Address, amount *big.Int, minReturn *big.Int, pools []*big.Int, permit []byte) (*types.Transaction, error)

UniswapV3SwapToWithPermit is a paid mutator transaction binding the contract method 0x2521b930.

Solidity: function uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit) returns(uint256 returnAmount)

type OpenOceanRouterTransactorRaw

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

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

func (*OpenOceanRouterTransactorRaw) Transact

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

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

func (*OpenOceanRouterTransactorRaw) Transfer

func (_OpenOceanRouter *OpenOceanRouterTransactorRaw) 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 OpenOceanRouterTransactorSession

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

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

func (*OpenOceanRouterTransactorSession) CallUniswap

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) CallUniswap(srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte) (*types.Transaction, error)

CallUniswap is a paid mutator transaction binding the contract method 0x8980041a.

Solidity: function callUniswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) CallUniswapTo

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) CallUniswapTo(srcToken common.Address, amount *big.Int, minReturn *big.Int, arg3 [][32]byte, recipient common.Address) (*types.Transaction, error)

CallUniswapTo is a paid mutator transaction binding the contract method 0x6b58f2f0.

Solidity: function callUniswapTo(address srcToken, uint256 amount, uint256 minReturn, bytes32[] , address recipient) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) CallUniswapToWithPermit

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) CallUniswapToWithPermit(srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte, permit []byte, recipient common.Address) (*types.Transaction, error)

CallUniswapToWithPermit is a paid mutator transaction binding the contract method 0x22dca3d7.

Solidity: function callUniswapToWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit, address recipient) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) CallUniswapWithPermit

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) CallUniswapWithPermit(srcToken common.Address, amount *big.Int, minReturn *big.Int, pools [][32]byte, permit []byte) (*types.Transaction, error)

CallUniswapWithPermit is a paid mutator transaction binding the contract method 0xd57360fc.

Solidity: function callUniswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) Initialize

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*OpenOceanRouterTransactorSession) Pause

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) Pause() (*types.Transaction, error)

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

Solidity: function pause() returns()

func (*OpenOceanRouterTransactorSession) RenounceOwnership

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*OpenOceanRouterTransactorSession) RescueFunds

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) 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 (*OpenOceanRouterTransactorSession) 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) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) TransferOwnership

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) 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 (*OpenOceanRouterTransactorSession) UniswapV3Swap

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) UniswapV3Swap(amount *big.Int, minReturn *big.Int, pools []*big.Int) (*types.Transaction, error)

UniswapV3Swap is a paid mutator transaction binding the contract method 0xe449022e.

Solidity: function uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) UniswapV3SwapCallback

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, arg2 []byte) (*types.Transaction, error)

UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33.

Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes ) returns()

func (*OpenOceanRouterTransactorSession) UniswapV3SwapTo

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) UniswapV3SwapTo(recipient common.Address, amount *big.Int, minReturn *big.Int, pools []*big.Int) (*types.Transaction, error)

UniswapV3SwapTo is a paid mutator transaction binding the contract method 0xbc80f1a8.

Solidity: function uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools) returns(uint256 returnAmount)

func (*OpenOceanRouterTransactorSession) UniswapV3SwapToWithPermit

func (_OpenOceanRouter *OpenOceanRouterTransactorSession) UniswapV3SwapToWithPermit(recipient common.Address, srcToken common.Address, amount *big.Int, minReturn *big.Int, pools []*big.Int, permit []byte) (*types.Transaction, error)

UniswapV3SwapToWithPermit is a paid mutator transaction binding the contract method 0x2521b930.

Solidity: function uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit) returns(uint256 returnAmount)

Jump to

Keyboard shortcuts

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