arbitrage

package
v0.0.0-...-dee77e4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ArbitrageABI = "" /* 694-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Arbitrage

type Arbitrage struct {
	ArbitrageCaller     // Read-only binding to the contract
	ArbitrageTransactor // Write-only binding to the contract
	ArbitrageFilterer   // Log filterer for contract events
}

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

func NewArbitrage

func NewArbitrage(address common.Address, backend bind.ContractBackend) (*Arbitrage, error)

NewArbitrage creates a new instance of Arbitrage, bound to a specific deployed contract.

type ArbitrageCaller

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

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

func NewArbitrageCaller

func NewArbitrageCaller(address common.Address, caller bind.ContractCaller) (*ArbitrageCaller, error)

NewArbitrageCaller creates a new read-only instance of Arbitrage, bound to a specific deployed contract.

type ArbitrageCallerRaw

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

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

func (*ArbitrageCallerRaw) Call

func (_Arbitrage *ArbitrageCallerRaw) 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 ArbitrageCallerSession

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

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

type ArbitrageFilterer

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

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

func NewArbitrageFilterer

func NewArbitrageFilterer(address common.Address, filterer bind.ContractFilterer) (*ArbitrageFilterer, error)

NewArbitrageFilterer creates a new log filterer instance of Arbitrage, bound to a specific deployed contract.

type ArbitrageRaw

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

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

func (*ArbitrageRaw) Call

func (_Arbitrage *ArbitrageRaw) 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 (*ArbitrageRaw) Transact

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

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

func (*ArbitrageRaw) Transfer

func (_Arbitrage *ArbitrageRaw) 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 ArbitrageSession

type ArbitrageSession struct {
	Contract     *Arbitrage        // 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
}

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

func (*ArbitrageSession) StartArbitrage

func (_Arbitrage *ArbitrageSession) StartArbitrage(router1 common.Address, router2 common.Address, token0 common.Address, token1 common.Address, token2 common.Address, amount0 *big.Int, amount1 *big.Int, amount2 *big.Int) (*types.Transaction, error)

StartArbitrage is a paid mutator transaction binding the contract method 0xbe493263.

Solidity: function startArbitrage(address router1, address router2, address token0, address token1, address token2, uint256 amount0, uint256 amount1, uint256 amount2) payable returns()

type ArbitrageTransactor

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

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

func NewArbitrageTransactor

func NewArbitrageTransactor(address common.Address, transactor bind.ContractTransactor) (*ArbitrageTransactor, error)

NewArbitrageTransactor creates a new write-only instance of Arbitrage, bound to a specific deployed contract.

func (*ArbitrageTransactor) StartArbitrage

func (_Arbitrage *ArbitrageTransactor) StartArbitrage(opts *bind.TransactOpts, router1 common.Address, router2 common.Address, token0 common.Address, token1 common.Address, token2 common.Address, amount0 *big.Int, amount1 *big.Int, amount2 *big.Int) (*types.Transaction, error)

StartArbitrage is a paid mutator transaction binding the contract method 0xbe493263.

Solidity: function startArbitrage(address router1, address router2, address token0, address token1, address token2, uint256 amount0, uint256 amount1, uint256 amount2) payable returns()

type ArbitrageTransactorRaw

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

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

func (*ArbitrageTransactorRaw) Transact

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

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

func (*ArbitrageTransactorRaw) Transfer

func (_Arbitrage *ArbitrageTransactorRaw) 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 ArbitrageTransactorSession

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

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

func (*ArbitrageTransactorSession) StartArbitrage

func (_Arbitrage *ArbitrageTransactorSession) StartArbitrage(router1 common.Address, router2 common.Address, token0 common.Address, token1 common.Address, token2 common.Address, amount0 *big.Int, amount1 *big.Int, amount2 *big.Int) (*types.Transaction, error)

StartArbitrage is a paid mutator transaction binding the contract method 0xbe493263.

Solidity: function startArbitrage(address router1, address router2, address token0, address token1, address token2, uint256 amount0, uint256 amount1, uint256 amount2) payable returns()

Jump to

Keyboard shortcuts

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