Documentation
¶
Index ¶
- Constants
- type OneInchOracle
- type OneInchOracleCaller
- type OneInchOracleCallerRaw
- type OneInchOracleCallerSession
- type OneInchOracleFilterer
- type OneInchOracleRaw
- func (_OneInchOracle *OneInchOracleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_OneInchOracle *OneInchOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_OneInchOracle *OneInchOracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type OneInchOracleSession
- type OneInchOracleTransactor
- type OneInchOracleTransactorRaw
- type OneInchOracleTransactorSession
Constants ¶
const OneInchOracleABI = "" /* 342-byte string literal not displayed */
OneInchOracleABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OneInchOracle ¶
type OneInchOracle struct {
OneInchOracleCaller // Read-only binding to the contract
OneInchOracleTransactor // Write-only binding to the contract
OneInchOracleFilterer // Log filterer for contract events
}
OneInchOracle is an auto generated Go binding around an Ethereum contract.
func NewOneInchOracle ¶
func NewOneInchOracle(address common.Address, backend bind.ContractBackend) (*OneInchOracle, error)
NewOneInchOracle creates a new instance of OneInchOracle, bound to a specific deployed contract.
type OneInchOracleCaller ¶
type OneInchOracleCaller struct {
// contains filtered or unexported fields
}
OneInchOracleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewOneInchOracleCaller ¶
func NewOneInchOracleCaller(address common.Address, caller bind.ContractCaller) (*OneInchOracleCaller, error)
NewOneInchOracleCaller creates a new read-only instance of OneInchOracle, bound to a specific deployed contract.
func (*OneInchOracleCaller) GetRate ¶
func (_OneInchOracle *OneInchOracleCaller) GetRate(opts *bind.CallOpts, srcToken common.Address, dstToken common.Address) (*big.Int, error)
GetRate is a free data retrieval call binding the contract method 0x379b87ea.
Solidity: function getRate(address srcToken, address dstToken) view returns(uint256 weightedRate)
type OneInchOracleCallerRaw ¶
type OneInchOracleCallerRaw struct {
Contract *OneInchOracleCaller // Generic read-only contract binding to access the raw methods on
}
OneInchOracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*OneInchOracleCallerRaw) Call ¶
func (_OneInchOracle *OneInchOracleCallerRaw) 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 OneInchOracleCallerSession ¶
type OneInchOracleCallerSession struct {
Contract *OneInchOracleCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
OneInchOracleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*OneInchOracleCallerSession) GetRate ¶
func (_OneInchOracle *OneInchOracleCallerSession) GetRate(srcToken common.Address, dstToken common.Address) (*big.Int, error)
GetRate is a free data retrieval call binding the contract method 0x379b87ea.
Solidity: function getRate(address srcToken, address dstToken) view returns(uint256 weightedRate)
type OneInchOracleFilterer ¶
type OneInchOracleFilterer struct {
// contains filtered or unexported fields
}
OneInchOracleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewOneInchOracleFilterer ¶
func NewOneInchOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*OneInchOracleFilterer, error)
NewOneInchOracleFilterer creates a new log filterer instance of OneInchOracle, bound to a specific deployed contract.
type OneInchOracleRaw ¶
type OneInchOracleRaw struct {
Contract *OneInchOracle // Generic contract binding to access the raw methods on
}
OneInchOracleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*OneInchOracleRaw) Call ¶
func (_OneInchOracle *OneInchOracleRaw) 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 (*OneInchOracleRaw) Transact ¶
func (_OneInchOracle *OneInchOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*OneInchOracleRaw) Transfer ¶
func (_OneInchOracle *OneInchOracleRaw) 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 OneInchOracleSession ¶
type OneInchOracleSession struct {
Contract *OneInchOracle // 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
}
OneInchOracleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*OneInchOracleSession) GetRate ¶
func (_OneInchOracle *OneInchOracleSession) GetRate(srcToken common.Address, dstToken common.Address) (*big.Int, error)
GetRate is a free data retrieval call binding the contract method 0x379b87ea.
Solidity: function getRate(address srcToken, address dstToken) view returns(uint256 weightedRate)
type OneInchOracleTransactor ¶
type OneInchOracleTransactor struct {
// contains filtered or unexported fields
}
OneInchOracleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewOneInchOracleTransactor ¶
func NewOneInchOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*OneInchOracleTransactor, error)
NewOneInchOracleTransactor creates a new write-only instance of OneInchOracle, bound to a specific deployed contract.
type OneInchOracleTransactorRaw ¶
type OneInchOracleTransactorRaw struct {
Contract *OneInchOracleTransactor // Generic write-only contract binding to access the raw methods on
}
OneInchOracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*OneInchOracleTransactorRaw) Transact ¶
func (_OneInchOracle *OneInchOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*OneInchOracleTransactorRaw) Transfer ¶
func (_OneInchOracle *OneInchOracleTransactorRaw) 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 OneInchOracleTransactorSession ¶
type OneInchOracleTransactorSession struct {
Contract *OneInchOracleTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
OneInchOracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.