oraclelist

package
v0.0.0-...-95d8916 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const OraclelistABI = "" /* 2770-byte string literal not displayed */

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

Variables

View Source
var OraclelistBin = "" /* 12566-byte string literal not displayed */

OraclelistBin is the compiled bytecode used for deploying new contracts.

Functions

func GetLatestPrice

func GetLatestPrice(client *ethclient.Client, oracleListAddress common.Address, tokenAddress common.Address)

func GetTokenAddresses

func GetTokenAddresses(client *ethclient.Client, oracleListAddress common.Address)

Types

type Oraclelist

type Oraclelist struct {
	OraclelistCaller     // Read-only binding to the contract
	OraclelistTransactor // Write-only binding to the contract
	OraclelistFilterer   // Log filterer for contract events
}

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

func Deploy

func Deploy(client *ethclient.Client, privateKeyHex string, gasLimit uint64) (common.Address, *Oraclelist)

func DeployOraclelist

func DeployOraclelist(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Oraclelist, error)

DeployOraclelist deploys a new Ethereum contract, binding an instance of Oraclelist to it.

func NewOraclelist

func NewOraclelist(address common.Address, backend bind.ContractBackend) (*Oraclelist, error)

NewOraclelist creates a new instance of Oraclelist, bound to a specific deployed contract.

type OraclelistCaller

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

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

func NewOraclelistCaller

func NewOraclelistCaller(address common.Address, caller bind.ContractCaller) (*OraclelistCaller, error)

NewOraclelistCaller creates a new read-only instance of Oraclelist, bound to a specific deployed contract.

func (*OraclelistCaller) GetLatestPrice

func (_Oraclelist *OraclelistCaller) GetLatestPrice(opts *bind.CallOpts, _tokenAddress common.Address) (*big.Int, error)

GetLatestPrice is a free data retrieval call binding the contract method 0x16345f18.

Solidity: function getLatestPrice(address _tokenAddress) view returns(int256)

func (*OraclelistCaller) GetTokenAddresses

func (_Oraclelist *OraclelistCaller) GetTokenAddresses(opts *bind.CallOpts) ([]common.Address, error)

GetTokenAddresses is a free data retrieval call binding the contract method 0xee8c24b8.

Solidity: function getTokenAddresses() view returns(address[])

func (*OraclelistCaller) OracleMap

func (_Oraclelist *OraclelistCaller) OracleMap(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

OracleMap is a free data retrieval call binding the contract method 0x8a45a554.

Solidity: function oracleMap(address ) view returns(address)

func (*OraclelistCaller) Owner

func (_Oraclelist *OraclelistCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*OraclelistCaller) TokenAddresses

func (_Oraclelist *OraclelistCaller) TokenAddresses(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

TokenAddresses is a free data retrieval call binding the contract method 0xe5df8b84.

Solidity: function tokenAddresses(uint256 ) view returns(address)

type OraclelistCallerRaw

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

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

func (*OraclelistCallerRaw) Call

func (_Oraclelist *OraclelistCallerRaw) 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 OraclelistCallerSession

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

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

func (*OraclelistCallerSession) GetLatestPrice

func (_Oraclelist *OraclelistCallerSession) GetLatestPrice(_tokenAddress common.Address) (*big.Int, error)

GetLatestPrice is a free data retrieval call binding the contract method 0x16345f18.

Solidity: function getLatestPrice(address _tokenAddress) view returns(int256)

func (*OraclelistCallerSession) GetTokenAddresses

func (_Oraclelist *OraclelistCallerSession) GetTokenAddresses() ([]common.Address, error)

GetTokenAddresses is a free data retrieval call binding the contract method 0xee8c24b8.

Solidity: function getTokenAddresses() view returns(address[])

func (*OraclelistCallerSession) OracleMap

func (_Oraclelist *OraclelistCallerSession) OracleMap(arg0 common.Address) (common.Address, error)

OracleMap is a free data retrieval call binding the contract method 0x8a45a554.

Solidity: function oracleMap(address ) view returns(address)

func (*OraclelistCallerSession) Owner

func (_Oraclelist *OraclelistCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*OraclelistCallerSession) TokenAddresses

func (_Oraclelist *OraclelistCallerSession) TokenAddresses(arg0 *big.Int) (common.Address, error)

TokenAddresses is a free data retrieval call binding the contract method 0xe5df8b84.

Solidity: function tokenAddresses(uint256 ) view returns(address)

type OraclelistFilterer

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

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

func NewOraclelistFilterer

func NewOraclelistFilterer(address common.Address, filterer bind.ContractFilterer) (*OraclelistFilterer, error)

NewOraclelistFilterer creates a new log filterer instance of Oraclelist, bound to a specific deployed contract.

func (*OraclelistFilterer) FilterOracleAdded

func (_Oraclelist *OraclelistFilterer) FilterOracleAdded(opts *bind.FilterOpts) (*OraclelistOracleAddedIterator, error)

FilterOracleAdded is a free log retrieval operation binding the contract event 0x828d2be040dede7698182e08dfa8bfbd663c879aee772509c4a2bd961d0ed43f.

Solidity: event OracleAdded(address _tokenAddress, address _oracleAddress)

func (*OraclelistFilterer) FilterOracleRemoved

func (_Oraclelist *OraclelistFilterer) FilterOracleRemoved(opts *bind.FilterOpts) (*OraclelistOracleRemovedIterator, error)

FilterOracleRemoved is a free log retrieval operation binding the contract event 0x6dc84b66cc948d847632b9d829f7cb1cb904fbf2c084554a9bc22ad9d8453340.

Solidity: event OracleRemoved(address _tokenAddress, address _oracleAddress)

func (*OraclelistFilterer) FilterOwnershipTransferred

func (_Oraclelist *OraclelistFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OraclelistOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*OraclelistFilterer) ParseOracleAdded

func (_Oraclelist *OraclelistFilterer) ParseOracleAdded(log types.Log) (*OraclelistOracleAdded, error)

ParseOracleAdded is a log parse operation binding the contract event 0x828d2be040dede7698182e08dfa8bfbd663c879aee772509c4a2bd961d0ed43f.

Solidity: event OracleAdded(address _tokenAddress, address _oracleAddress)

func (*OraclelistFilterer) ParseOracleRemoved

func (_Oraclelist *OraclelistFilterer) ParseOracleRemoved(log types.Log) (*OraclelistOracleRemoved, error)

ParseOracleRemoved is a log parse operation binding the contract event 0x6dc84b66cc948d847632b9d829f7cb1cb904fbf2c084554a9bc22ad9d8453340.

Solidity: event OracleRemoved(address _tokenAddress, address _oracleAddress)

func (*OraclelistFilterer) ParseOwnershipTransferred

func (_Oraclelist *OraclelistFilterer) ParseOwnershipTransferred(log types.Log) (*OraclelistOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*OraclelistFilterer) WatchOracleAdded

func (_Oraclelist *OraclelistFilterer) WatchOracleAdded(opts *bind.WatchOpts, sink chan<- *OraclelistOracleAdded) (event.Subscription, error)

WatchOracleAdded is a free log subscription operation binding the contract event 0x828d2be040dede7698182e08dfa8bfbd663c879aee772509c4a2bd961d0ed43f.

Solidity: event OracleAdded(address _tokenAddress, address _oracleAddress)

func (*OraclelistFilterer) WatchOracleRemoved

func (_Oraclelist *OraclelistFilterer) WatchOracleRemoved(opts *bind.WatchOpts, sink chan<- *OraclelistOracleRemoved) (event.Subscription, error)

WatchOracleRemoved is a free log subscription operation binding the contract event 0x6dc84b66cc948d847632b9d829f7cb1cb904fbf2c084554a9bc22ad9d8453340.

Solidity: event OracleRemoved(address _tokenAddress, address _oracleAddress)

func (*OraclelistFilterer) WatchOwnershipTransferred

func (_Oraclelist *OraclelistFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OraclelistOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type OraclelistOracleAdded

type OraclelistOracleAdded struct {
	TokenAddress  common.Address
	OracleAddress common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

OraclelistOracleAdded represents a OracleAdded event raised by the Oraclelist contract.

type OraclelistOracleAddedIterator

type OraclelistOracleAddedIterator struct {
	Event *OraclelistOracleAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

OraclelistOracleAddedIterator is returned from FilterOracleAdded and is used to iterate over the raw logs and unpacked data for OracleAdded events raised by the Oraclelist contract.

func (*OraclelistOracleAddedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*OraclelistOracleAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OraclelistOracleAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OraclelistOracleRemoved

type OraclelistOracleRemoved struct {
	TokenAddress  common.Address
	OracleAddress common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

OraclelistOracleRemoved represents a OracleRemoved event raised by the Oraclelist contract.

type OraclelistOracleRemovedIterator

type OraclelistOracleRemovedIterator struct {
	Event *OraclelistOracleRemoved // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

OraclelistOracleRemovedIterator is returned from FilterOracleRemoved and is used to iterate over the raw logs and unpacked data for OracleRemoved events raised by the Oraclelist contract.

func (*OraclelistOracleRemovedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*OraclelistOracleRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OraclelistOracleRemovedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OraclelistOwnershipTransferred

type OraclelistOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

OraclelistOwnershipTransferred represents a OwnershipTransferred event raised by the Oraclelist contract.

type OraclelistOwnershipTransferredIterator

type OraclelistOwnershipTransferredIterator struct {
	Event *OraclelistOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

OraclelistOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Oraclelist contract.

func (*OraclelistOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*OraclelistOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OraclelistOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OraclelistRaw

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

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

func (*OraclelistRaw) Call

func (_Oraclelist *OraclelistRaw) 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 (*OraclelistRaw) Transact

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

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

func (*OraclelistRaw) Transfer

func (_Oraclelist *OraclelistRaw) 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 OraclelistSession

type OraclelistSession struct {
	Contract     *Oraclelist       // 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
}

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

func (*OraclelistSession) AddOracle

func (_Oraclelist *OraclelistSession) AddOracle(_tokenAddress common.Address, _oracleAddress common.Address) (*types.Transaction, error)

AddOracle is a paid mutator transaction binding the contract method 0xf0ca4adb.

Solidity: function addOracle(address _tokenAddress, address _oracleAddress) returns()

func (*OraclelistSession) GetLatestPrice

func (_Oraclelist *OraclelistSession) GetLatestPrice(_tokenAddress common.Address) (*big.Int, error)

GetLatestPrice is a free data retrieval call binding the contract method 0x16345f18.

Solidity: function getLatestPrice(address _tokenAddress) view returns(int256)

func (*OraclelistSession) GetTokenAddresses

func (_Oraclelist *OraclelistSession) GetTokenAddresses() ([]common.Address, error)

GetTokenAddresses is a free data retrieval call binding the contract method 0xee8c24b8.

Solidity: function getTokenAddresses() view returns(address[])

func (*OraclelistSession) OracleMap

func (_Oraclelist *OraclelistSession) OracleMap(arg0 common.Address) (common.Address, error)

OracleMap is a free data retrieval call binding the contract method 0x8a45a554.

Solidity: function oracleMap(address ) view returns(address)

func (*OraclelistSession) Owner

func (_Oraclelist *OraclelistSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*OraclelistSession) RemoveOracle

func (_Oraclelist *OraclelistSession) RemoveOracle(_tokenAddress common.Address) (*types.Transaction, error)

RemoveOracle is a paid mutator transaction binding the contract method 0xfdc85fc4.

Solidity: function removeOracle(address _tokenAddress) returns()

func (*OraclelistSession) RenounceOwnership

func (_Oraclelist *OraclelistSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OraclelistSession) TokenAddresses

func (_Oraclelist *OraclelistSession) TokenAddresses(arg0 *big.Int) (common.Address, error)

TokenAddresses is a free data retrieval call binding the contract method 0xe5df8b84.

Solidity: function tokenAddresses(uint256 ) view returns(address)

func (*OraclelistSession) TransferOwnership

func (_Oraclelist *OraclelistSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type OraclelistTransactor

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

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

func NewOraclelistTransactor

func NewOraclelistTransactor(address common.Address, transactor bind.ContractTransactor) (*OraclelistTransactor, error)

NewOraclelistTransactor creates a new write-only instance of Oraclelist, bound to a specific deployed contract.

func (*OraclelistTransactor) AddOracle

func (_Oraclelist *OraclelistTransactor) AddOracle(opts *bind.TransactOpts, _tokenAddress common.Address, _oracleAddress common.Address) (*types.Transaction, error)

AddOracle is a paid mutator transaction binding the contract method 0xf0ca4adb.

Solidity: function addOracle(address _tokenAddress, address _oracleAddress) returns()

func (*OraclelistTransactor) RemoveOracle

func (_Oraclelist *OraclelistTransactor) RemoveOracle(opts *bind.TransactOpts, _tokenAddress common.Address) (*types.Transaction, error)

RemoveOracle is a paid mutator transaction binding the contract method 0xfdc85fc4.

Solidity: function removeOracle(address _tokenAddress) returns()

func (*OraclelistTransactor) RenounceOwnership

func (_Oraclelist *OraclelistTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OraclelistTransactor) TransferOwnership

func (_Oraclelist *OraclelistTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type OraclelistTransactorRaw

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

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

func (*OraclelistTransactorRaw) Transact

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

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

func (*OraclelistTransactorRaw) Transfer

func (_Oraclelist *OraclelistTransactorRaw) 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 OraclelistTransactorSession

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

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

func (*OraclelistTransactorSession) AddOracle

func (_Oraclelist *OraclelistTransactorSession) AddOracle(_tokenAddress common.Address, _oracleAddress common.Address) (*types.Transaction, error)

AddOracle is a paid mutator transaction binding the contract method 0xf0ca4adb.

Solidity: function addOracle(address _tokenAddress, address _oracleAddress) returns()

func (*OraclelistTransactorSession) RemoveOracle

func (_Oraclelist *OraclelistTransactorSession) RemoveOracle(_tokenAddress common.Address) (*types.Transaction, error)

RemoveOracle is a paid mutator transaction binding the contract method 0xfdc85fc4.

Solidity: function removeOracle(address _tokenAddress) returns()

func (*OraclelistTransactorSession) RenounceOwnership

func (_Oraclelist *OraclelistTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OraclelistTransactorSession) TransferOwnership

func (_Oraclelist *OraclelistTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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