swapper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SwapperABI = "" /* 1193-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Swapper

type Swapper struct {
	SwapperCaller     // Read-only binding to the contract
	SwapperTransactor // Write-only binding to the contract
	SwapperFilterer   // Log filterer for contract events
}

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

func NewSwapper

func NewSwapper(address common.Address, backend bind.ContractBackend) (*Swapper, error)

NewSwapper creates a new instance of Swapper, bound to a specific deployed contract.

type SwapperCaller

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

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

func NewSwapperCaller

func NewSwapperCaller(address common.Address, caller bind.ContractCaller) (*SwapperCaller, error)

NewSwapperCaller creates a new read-only instance of Swapper, bound to a specific deployed contract.

type SwapperCallerRaw

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

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

func (*SwapperCallerRaw) Call

func (_Swapper *SwapperCallerRaw) 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 SwapperCallerSession

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

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

type SwapperFilterer

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

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

func NewSwapperFilterer

func NewSwapperFilterer(address common.Address, filterer bind.ContractFilterer) (*SwapperFilterer, error)

NewSwapperFilterer creates a new log filterer instance of Swapper, bound to a specific deployed contract.

type SwapperRaw

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

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

func (*SwapperRaw) Call

func (_Swapper *SwapperRaw) 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 (*SwapperRaw) Transact

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

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

func (*SwapperRaw) Transfer

func (_Swapper *SwapperRaw) 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 SwapperSession

type SwapperSession struct {
	Contract     *Swapper          // 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
}

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

func (*SwapperSession) Fallback

func (_Swapper *SwapperSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*SwapperSession) PostProcess

func (_Swapper *SwapperSession) PostProcess() (*types.Transaction, error)

PostProcess is a paid mutator transaction binding the contract method 0xc2722916.

Solidity: function postProcess() payable returns()

func (*SwapperSession) StartSwap

func (_Swapper *SwapperSession) StartSwap(_tokenBorrow common.Address, _amount *big.Int, _tokenPay common.Address, _userData []byte) (*types.Transaction, error)

StartSwap is a paid mutator transaction binding the contract method 0xcd7cebc9.

Solidity: function startSwap(address _tokenBorrow, uint256 _amount, address _tokenPay, bytes _userData) payable returns()

func (*SwapperSession) UniswapV2Call

func (_Swapper *SwapperSession) UniswapV2Call(_sender common.Address, _amount0 *big.Int, _amount1 *big.Int, _data []byte) (*types.Transaction, error)

UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c.

Solidity: function uniswapV2Call(address _sender, uint256 _amount0, uint256 _amount1, bytes _data) returns()

type SwapperTransactor

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

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

func NewSwapperTransactor

func NewSwapperTransactor(address common.Address, transactor bind.ContractTransactor) (*SwapperTransactor, error)

NewSwapperTransactor creates a new write-only instance of Swapper, bound to a specific deployed contract.

func (*SwapperTransactor) Fallback

func (_Swapper *SwapperTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*SwapperTransactor) PostProcess

func (_Swapper *SwapperTransactor) PostProcess(opts *bind.TransactOpts) (*types.Transaction, error)

PostProcess is a paid mutator transaction binding the contract method 0xc2722916.

Solidity: function postProcess() payable returns()

func (*SwapperTransactor) StartSwap

func (_Swapper *SwapperTransactor) StartSwap(opts *bind.TransactOpts, _tokenBorrow common.Address, _amount *big.Int, _tokenPay common.Address, _userData []byte) (*types.Transaction, error)

StartSwap is a paid mutator transaction binding the contract method 0xcd7cebc9.

Solidity: function startSwap(address _tokenBorrow, uint256 _amount, address _tokenPay, bytes _userData) payable returns()

func (*SwapperTransactor) UniswapV2Call

func (_Swapper *SwapperTransactor) UniswapV2Call(opts *bind.TransactOpts, _sender common.Address, _amount0 *big.Int, _amount1 *big.Int, _data []byte) (*types.Transaction, error)

UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c.

Solidity: function uniswapV2Call(address _sender, uint256 _amount0, uint256 _amount1, bytes _data) returns()

type SwapperTransactorRaw

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

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

func (*SwapperTransactorRaw) Transact

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

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

func (*SwapperTransactorRaw) Transfer

func (_Swapper *SwapperTransactorRaw) 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 SwapperTransactorSession

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

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

func (*SwapperTransactorSession) Fallback

func (_Swapper *SwapperTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*SwapperTransactorSession) PostProcess

func (_Swapper *SwapperTransactorSession) PostProcess() (*types.Transaction, error)

PostProcess is a paid mutator transaction binding the contract method 0xc2722916.

Solidity: function postProcess() payable returns()

func (*SwapperTransactorSession) StartSwap

func (_Swapper *SwapperTransactorSession) StartSwap(_tokenBorrow common.Address, _amount *big.Int, _tokenPay common.Address, _userData []byte) (*types.Transaction, error)

StartSwap is a paid mutator transaction binding the contract method 0xcd7cebc9.

Solidity: function startSwap(address _tokenBorrow, uint256 _amount, address _tokenPay, bytes _userData) payable returns()

func (*SwapperTransactorSession) UniswapV2Call

func (_Swapper *SwapperTransactorSession) UniswapV2Call(_sender common.Address, _amount0 *big.Int, _amount1 *big.Int, _data []byte) (*types.Transaction, error)

UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c.

Solidity: function uniswapV2Call(address _sender, uint256 _amount0, uint256 _amount1, bytes _data) returns()

Jump to

Keyboard shortcuts

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