Documentation ¶
Index ¶
- Variables
- type StaplePathFinder
- type StaplePathFinderCaller
- func (_StaplePathFinder *StaplePathFinderCaller) FindAllPaths(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, ...) ([][]*big.Int, error)
- func (_StaplePathFinder *StaplePathFinderCaller) FindBestPath(opts *bind.CallOpts, user common.Address, tokenIn common.Address, ...) (struct{ ... }, error)
- type StaplePathFinderCallerRaw
- type StaplePathFinderCallerSession
- func (_StaplePathFinder *StaplePathFinderCallerSession) FindAllPaths(tokenIn common.Address, tokenOut common.Address, maxLayers *big.Int) ([][]*big.Int, error)
- func (_StaplePathFinder *StaplePathFinderCallerSession) FindBestPath(user common.Address, tokenIn common.Address, amount *big.Int, ...) (struct{ ... }, error)
- type StaplePathFinderFilterer
- type StaplePathFinderRaw
- func (_StaplePathFinder *StaplePathFinderRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StaplePathFinder *StaplePathFinderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StaplePathFinder *StaplePathFinderRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StaplePathFinderSession
- func (_StaplePathFinder *StaplePathFinderSession) FindAllPaths(tokenIn common.Address, tokenOut common.Address, maxLayers *big.Int) ([][]*big.Int, error)
- func (_StaplePathFinder *StaplePathFinderSession) FindBestPath(user common.Address, tokenIn common.Address, amount *big.Int, ...) (struct{ ... }, error)
- type StaplePathFinderTransactor
- type StaplePathFinderTransactorRaw
- type StaplePathFinderTransactorSession
Constants ¶
This section is empty.
Variables ¶
var StaplePathFinderABI = StaplePathFinderMetaData.ABI
StaplePathFinderABI is the input ABI used to generate the binding from. Deprecated: Use StaplePathFinderMetaData.ABI instead.
var StaplePathFinderMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxLayers\",\"type\":\"uint256\"}],\"name\":\"findAllPaths\",\"outputs\":[{\"internalType\":\"uint256[][]\",\"name\":\"paths\",\"type\":\"uint256[][]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256[][]\",\"name\":\"allPaths\",\"type\":\"uint256[][]\"}],\"name\":\"findBestPath\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"estiOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"path\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
StaplePathFinderMetaData contains all meta data concerning the StaplePathFinder contract.
Functions ¶
This section is empty.
Types ¶
type StaplePathFinder ¶
type StaplePathFinder struct { StaplePathFinderCaller // Read-only binding to the contract StaplePathFinderTransactor // Write-only binding to the contract StaplePathFinderFilterer // Log filterer for contract events }
StaplePathFinder is an auto generated Go binding around an Ethereum contract.
func NewStaplePathFinder ¶
func NewStaplePathFinder(address common.Address, backend bind.ContractBackend) (*StaplePathFinder, error)
NewStaplePathFinder creates a new instance of StaplePathFinder, bound to a specific deployed contract.
type StaplePathFinderCaller ¶
type StaplePathFinderCaller struct {
// contains filtered or unexported fields
}
StaplePathFinderCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStaplePathFinderCaller ¶
func NewStaplePathFinderCaller(address common.Address, caller bind.ContractCaller) (*StaplePathFinderCaller, error)
NewStaplePathFinderCaller creates a new read-only instance of StaplePathFinder, bound to a specific deployed contract.
func (*StaplePathFinderCaller) FindAllPaths ¶
func (_StaplePathFinder *StaplePathFinderCaller) FindAllPaths(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, maxLayers *big.Int) ([][]*big.Int, error)
FindAllPaths is a free data retrieval call binding the contract method 0xc274873f.
Solidity: function findAllPaths(address tokenIn, address tokenOut, uint256 maxLayers) view returns(uint256[][] paths)
func (*StaplePathFinderCaller) FindBestPath ¶
func (_StaplePathFinder *StaplePathFinderCaller) FindBestPath(opts *bind.CallOpts, user common.Address, tokenIn common.Address, amount *big.Int, allPaths [][]*big.Int) (struct { EstiOut *big.Int Path []*big.Int }, error)
FindBestPath is a free data retrieval call binding the contract method 0x18e40959.
Solidity: function findBestPath(address user, address tokenIn, uint256 amount, uint256[][] allPaths) view returns(uint256 estiOut, uint256[] path)
type StaplePathFinderCallerRaw ¶
type StaplePathFinderCallerRaw struct {
Contract *StaplePathFinderCaller // Generic read-only contract binding to access the raw methods on
}
StaplePathFinderCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StaplePathFinderCallerRaw) Call ¶
func (_StaplePathFinder *StaplePathFinderCallerRaw) 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 StaplePathFinderCallerSession ¶
type StaplePathFinderCallerSession struct { Contract *StaplePathFinderCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StaplePathFinderCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StaplePathFinderCallerSession) FindAllPaths ¶
func (_StaplePathFinder *StaplePathFinderCallerSession) FindAllPaths(tokenIn common.Address, tokenOut common.Address, maxLayers *big.Int) ([][]*big.Int, error)
FindAllPaths is a free data retrieval call binding the contract method 0xc274873f.
Solidity: function findAllPaths(address tokenIn, address tokenOut, uint256 maxLayers) view returns(uint256[][] paths)
func (*StaplePathFinderCallerSession) FindBestPath ¶
func (_StaplePathFinder *StaplePathFinderCallerSession) FindBestPath(user common.Address, tokenIn common.Address, amount *big.Int, allPaths [][]*big.Int) (struct { EstiOut *big.Int Path []*big.Int }, error)
FindBestPath is a free data retrieval call binding the contract method 0x18e40959.
Solidity: function findBestPath(address user, address tokenIn, uint256 amount, uint256[][] allPaths) view returns(uint256 estiOut, uint256[] path)
type StaplePathFinderFilterer ¶
type StaplePathFinderFilterer struct {
// contains filtered or unexported fields
}
StaplePathFinderFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStaplePathFinderFilterer ¶
func NewStaplePathFinderFilterer(address common.Address, filterer bind.ContractFilterer) (*StaplePathFinderFilterer, error)
NewStaplePathFinderFilterer creates a new log filterer instance of StaplePathFinder, bound to a specific deployed contract.
type StaplePathFinderRaw ¶
type StaplePathFinderRaw struct {
Contract *StaplePathFinder // Generic contract binding to access the raw methods on
}
StaplePathFinderRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StaplePathFinderRaw) Call ¶
func (_StaplePathFinder *StaplePathFinderRaw) 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 (*StaplePathFinderRaw) Transact ¶
func (_StaplePathFinder *StaplePathFinderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StaplePathFinderRaw) Transfer ¶
func (_StaplePathFinder *StaplePathFinderRaw) 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 StaplePathFinderSession ¶
type StaplePathFinderSession struct { Contract *StaplePathFinder // 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 }
StaplePathFinderSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StaplePathFinderSession) FindAllPaths ¶
func (_StaplePathFinder *StaplePathFinderSession) FindAllPaths(tokenIn common.Address, tokenOut common.Address, maxLayers *big.Int) ([][]*big.Int, error)
FindAllPaths is a free data retrieval call binding the contract method 0xc274873f.
Solidity: function findAllPaths(address tokenIn, address tokenOut, uint256 maxLayers) view returns(uint256[][] paths)
func (*StaplePathFinderSession) FindBestPath ¶
func (_StaplePathFinder *StaplePathFinderSession) FindBestPath(user common.Address, tokenIn common.Address, amount *big.Int, allPaths [][]*big.Int) (struct { EstiOut *big.Int Path []*big.Int }, error)
FindBestPath is a free data retrieval call binding the contract method 0x18e40959.
Solidity: function findBestPath(address user, address tokenIn, uint256 amount, uint256[][] allPaths) view returns(uint256 estiOut, uint256[] path)
type StaplePathFinderTransactor ¶
type StaplePathFinderTransactor struct {
// contains filtered or unexported fields
}
StaplePathFinderTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStaplePathFinderTransactor ¶
func NewStaplePathFinderTransactor(address common.Address, transactor bind.ContractTransactor) (*StaplePathFinderTransactor, error)
NewStaplePathFinderTransactor creates a new write-only instance of StaplePathFinder, bound to a specific deployed contract.
type StaplePathFinderTransactorRaw ¶
type StaplePathFinderTransactorRaw struct {
Contract *StaplePathFinderTransactor // Generic write-only contract binding to access the raw methods on
}
StaplePathFinderTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StaplePathFinderTransactorRaw) Transact ¶
func (_StaplePathFinder *StaplePathFinderTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StaplePathFinderTransactorRaw) Transfer ¶
func (_StaplePathFinder *StaplePathFinderTransactorRaw) 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 StaplePathFinderTransactorSession ¶
type StaplePathFinderTransactorSession struct { Contract *StaplePathFinderTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StaplePathFinderTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.