Versions in this module Expand all Collapse all v1 v1.58.0 Jul 31, 2024 Changes in this version + var OneinchOracleABI = OneinchOracleMetaData.ABI + var OneinchOracleMetaData = &bind.MetaData + var OracleAddressesByChainID = map[string]common.Address + func SupportedChainId(chainIDif interface{}) bool + type OneinchOracle struct + func NewOneInchOracleByChainID(chainIDif interface{}, backend bind.ContractBackend) (*OneinchOracle, error) + func NewOneinchOracle(address common.Address, backend bind.ContractBackend) (*OneinchOracle, error) + type OneinchOracleCaller struct + func NewOneinchOracleCaller(address common.Address, caller bind.ContractCaller) (*OneinchOracleCaller, error) + func (_OneinchOracle *OneinchOracleCaller) Connectors(opts *bind.CallOpts) ([]common.Address, error) + func (_OneinchOracle *OneinchOracleCaller) GetRate(opts *bind.CallOpts, srcToken common.Address, dstToken common.Address, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCaller) GetRateToEth(opts *bind.CallOpts, srcToken common.Address, useSrcWrappers bool) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCaller) GetRateToEthWithCustomConnectors(opts *bind.CallOpts, srcToken common.Address, useSrcWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCaller) GetRateToEthWithThreshold(opts *bind.CallOpts, srcToken common.Address, useSrcWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCaller) GetRateWithCustomConnectors(opts *bind.CallOpts, srcToken common.Address, dstToken common.Address, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCaller) GetRateWithThreshold(opts *bind.CallOpts, srcToken common.Address, dstToken common.Address, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCaller) MultiWrapper(opts *bind.CallOpts) (common.Address, error) + func (_OneinchOracle *OneinchOracleCaller) Oracles(opts *bind.CallOpts) (struct{ ... }, error) + func (_OneinchOracle *OneinchOracleCaller) Owner(opts *bind.CallOpts) (common.Address, error) + type OneinchOracleCallerRaw struct + Contract *OneinchOracleCaller + func (_OneinchOracle *OneinchOracleCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type OneinchOracleCallerSession struct + CallOpts bind.CallOpts + Contract *OneinchOracleCaller + func (_OneinchOracle *OneinchOracleCallerSession) Connectors() ([]common.Address, error) + func (_OneinchOracle *OneinchOracleCallerSession) GetRate(srcToken common.Address, dstToken common.Address, useWrappers bool) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCallerSession) GetRateToEth(srcToken common.Address, useSrcWrappers bool) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCallerSession) GetRateToEthWithCustomConnectors(srcToken common.Address, useSrcWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCallerSession) GetRateToEthWithThreshold(srcToken common.Address, useSrcWrappers bool, thresholdFilter *big.Int) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCallerSession) GetRateWithCustomConnectors(srcToken common.Address, dstToken common.Address, useWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCallerSession) GetRateWithThreshold(srcToken common.Address, dstToken common.Address, useWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleCallerSession) MultiWrapper() (common.Address, error) + func (_OneinchOracle *OneinchOracleCallerSession) Oracles() (struct{ ... }, error) + func (_OneinchOracle *OneinchOracleCallerSession) Owner() (common.Address, error) + type OneinchOracleConnectorAdded struct + Connector common.Address + Raw types.Log + type OneinchOracleConnectorAddedIterator struct + Event *OneinchOracleConnectorAdded + func (it *OneinchOracleConnectorAddedIterator) Close() error + func (it *OneinchOracleConnectorAddedIterator) Error() error + func (it *OneinchOracleConnectorAddedIterator) Next() bool + type OneinchOracleConnectorRemoved struct + Connector common.Address + Raw types.Log + type OneinchOracleConnectorRemovedIterator struct + Event *OneinchOracleConnectorRemoved + func (it *OneinchOracleConnectorRemovedIterator) Close() error + func (it *OneinchOracleConnectorRemovedIterator) Error() error + func (it *OneinchOracleConnectorRemovedIterator) Next() bool + type OneinchOracleFilterer struct + func NewOneinchOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*OneinchOracleFilterer, error) + func (_OneinchOracle *OneinchOracleFilterer) FilterConnectorAdded(opts *bind.FilterOpts) (*OneinchOracleConnectorAddedIterator, error) + func (_OneinchOracle *OneinchOracleFilterer) FilterConnectorRemoved(opts *bind.FilterOpts) (*OneinchOracleConnectorRemovedIterator, error) + func (_OneinchOracle *OneinchOracleFilterer) FilterMultiWrapperUpdated(opts *bind.FilterOpts) (*OneinchOracleMultiWrapperUpdatedIterator, error) + func (_OneinchOracle *OneinchOracleFilterer) FilterOracleAdded(opts *bind.FilterOpts) (*OneinchOracleOracleAddedIterator, error) + func (_OneinchOracle *OneinchOracleFilterer) FilterOracleRemoved(opts *bind.FilterOpts) (*OneinchOracleOracleRemovedIterator, error) + func (_OneinchOracle *OneinchOracleFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*OneinchOracleOwnershipTransferredIterator, error) + func (_OneinchOracle *OneinchOracleFilterer) ParseConnectorAdded(log types.Log) (*OneinchOracleConnectorAdded, error) + func (_OneinchOracle *OneinchOracleFilterer) ParseConnectorRemoved(log types.Log) (*OneinchOracleConnectorRemoved, error) + func (_OneinchOracle *OneinchOracleFilterer) ParseMultiWrapperUpdated(log types.Log) (*OneinchOracleMultiWrapperUpdated, error) + func (_OneinchOracle *OneinchOracleFilterer) ParseOracleAdded(log types.Log) (*OneinchOracleOracleAdded, error) + func (_OneinchOracle *OneinchOracleFilterer) ParseOracleRemoved(log types.Log) (*OneinchOracleOracleRemoved, error) + func (_OneinchOracle *OneinchOracleFilterer) ParseOwnershipTransferred(log types.Log) (*OneinchOracleOwnershipTransferred, error) + func (_OneinchOracle *OneinchOracleFilterer) WatchConnectorAdded(opts *bind.WatchOpts, sink chan<- *OneinchOracleConnectorAdded) (event.Subscription, error) + func (_OneinchOracle *OneinchOracleFilterer) WatchConnectorRemoved(opts *bind.WatchOpts, sink chan<- *OneinchOracleConnectorRemoved) (event.Subscription, error) + func (_OneinchOracle *OneinchOracleFilterer) WatchMultiWrapperUpdated(opts *bind.WatchOpts, sink chan<- *OneinchOracleMultiWrapperUpdated) (event.Subscription, error) + func (_OneinchOracle *OneinchOracleFilterer) WatchOracleAdded(opts *bind.WatchOpts, sink chan<- *OneinchOracleOracleAdded) (event.Subscription, error) + func (_OneinchOracle *OneinchOracleFilterer) WatchOracleRemoved(opts *bind.WatchOpts, sink chan<- *OneinchOracleOracleRemoved) (event.Subscription, error) + func (_OneinchOracle *OneinchOracleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OneinchOracleOwnershipTransferred, ...) (event.Subscription, error) + type OneinchOracleMultiWrapperUpdated struct + MultiWrapper common.Address + Raw types.Log + type OneinchOracleMultiWrapperUpdatedIterator struct + Event *OneinchOracleMultiWrapperUpdated + func (it *OneinchOracleMultiWrapperUpdatedIterator) Close() error + func (it *OneinchOracleMultiWrapperUpdatedIterator) Error() error + func (it *OneinchOracleMultiWrapperUpdatedIterator) Next() bool + type OneinchOracleOracleAdded struct + Oracle common.Address + OracleType uint8 + Raw types.Log + type OneinchOracleOracleAddedIterator struct + Event *OneinchOracleOracleAdded + func (it *OneinchOracleOracleAddedIterator) Close() error + func (it *OneinchOracleOracleAddedIterator) Error() error + func (it *OneinchOracleOracleAddedIterator) Next() bool + type OneinchOracleOracleRemoved struct + Oracle common.Address + OracleType uint8 + Raw types.Log + type OneinchOracleOracleRemovedIterator struct + Event *OneinchOracleOracleRemoved + func (it *OneinchOracleOracleRemovedIterator) Close() error + func (it *OneinchOracleOracleRemovedIterator) Error() error + func (it *OneinchOracleOracleRemovedIterator) Next() bool + type OneinchOracleOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type OneinchOracleOwnershipTransferredIterator struct + Event *OneinchOracleOwnershipTransferred + func (it *OneinchOracleOwnershipTransferredIterator) Close() error + func (it *OneinchOracleOwnershipTransferredIterator) Error() error + func (it *OneinchOracleOwnershipTransferredIterator) Next() bool + type OneinchOracleRaw struct + Contract *OneinchOracle + 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 struct + CallOpts bind.CallOpts + Contract *OneinchOracle + TransactOpts bind.TransactOpts + func (_OneinchOracle *OneinchOracleSession) AddConnector(connector common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleSession) AddOracle(oracle common.Address, oracleKind uint8) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleSession) Connectors() ([]common.Address, error) + func (_OneinchOracle *OneinchOracleSession) GetRate(srcToken common.Address, dstToken common.Address, useWrappers bool) (*big.Int, error) + func (_OneinchOracle *OneinchOracleSession) GetRateToEth(srcToken common.Address, useSrcWrappers bool) (*big.Int, error) + func (_OneinchOracle *OneinchOracleSession) GetRateToEthWithCustomConnectors(srcToken common.Address, useSrcWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleSession) GetRateToEthWithThreshold(srcToken common.Address, useSrcWrappers bool, thresholdFilter *big.Int) (*big.Int, error) + func (_OneinchOracle *OneinchOracleSession) GetRateWithCustomConnectors(srcToken common.Address, dstToken common.Address, useWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleSession) GetRateWithThreshold(srcToken common.Address, dstToken common.Address, useWrappers bool, ...) (*big.Int, error) + func (_OneinchOracle *OneinchOracleSession) MultiWrapper() (common.Address, error) + func (_OneinchOracle *OneinchOracleSession) Oracles() (struct{ ... }, error) + func (_OneinchOracle *OneinchOracleSession) Owner() (common.Address, error) + func (_OneinchOracle *OneinchOracleSession) RemoveConnector(connector common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleSession) RemoveOracle(oracle common.Address, oracleKind uint8) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleSession) RenounceOwnership() (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleSession) SetMultiWrapper(_multiWrapper common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + type OneinchOracleTransactor struct + func NewOneinchOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*OneinchOracleTransactor, error) + func (_OneinchOracle *OneinchOracleTransactor) AddConnector(opts *bind.TransactOpts, connector common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactor) AddOracle(opts *bind.TransactOpts, oracle common.Address, oracleKind uint8) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactor) RemoveConnector(opts *bind.TransactOpts, connector common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactor) RemoveOracle(opts *bind.TransactOpts, oracle common.Address, oracleKind uint8) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactor) SetMultiWrapper(opts *bind.TransactOpts, _multiWrapper common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + type OneinchOracleTransactorRaw struct + Contract *OneinchOracleTransactor + func (_OneinchOracle *OneinchOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type OneinchOracleTransactorSession struct + Contract *OneinchOracleTransactor + TransactOpts bind.TransactOpts + func (_OneinchOracle *OneinchOracleTransactorSession) AddConnector(connector common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorSession) AddOracle(oracle common.Address, oracleKind uint8) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorSession) RemoveConnector(connector common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorSession) RemoveOracle(oracle common.Address, oracleKind uint8) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorSession) SetMultiWrapper(_multiWrapper common.Address) (*types.Transaction, error) + func (_OneinchOracle *OneinchOracleTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)