diaOracleService

package
v1.4.1-rc-312 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DIAOracleABI = "" /* 1675-byte string literal not displayed */

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

Variables

View Source
var DIAOracleBin = "" /* 2816-byte string literal not displayed */

DIAOracleBin is the compiled bytecode used for deploying new contracts.

View Source
var DIAOracleFuncSigs = map[string]string{
	"960384a0": "getValue(string)",
	"7898e0c2": "setValue(string,uint128,uint128)",
	"6aa45efc": "updateOracleUpdaterAddress(address)",
	"5a9ade8b": "values(string)",
}

DIAOracleFuncSigs maps the 4-byte function signature to its string representation.

Functions

This section is empty.

Types

type DIAOracle

type DIAOracle struct {
	DIAOracleCaller     // Read-only binding to the contract
	DIAOracleTransactor // Write-only binding to the contract
	DIAOracleFilterer   // Log filterer for contract events
}

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

func DeployDIAOracle

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

DeployDIAOracle deploys a new Ethereum contract, binding an instance of DIAOracle to it.

func NewDIAOracle

func NewDIAOracle(address common.Address, backend bind.ContractBackend) (*DIAOracle, error)

NewDIAOracle creates a new instance of DIAOracle, bound to a specific deployed contract.

type DIAOracleCaller

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

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

func NewDIAOracleCaller

func NewDIAOracleCaller(address common.Address, caller bind.ContractCaller) (*DIAOracleCaller, error)

NewDIAOracleCaller creates a new read-only instance of DIAOracle, bound to a specific deployed contract.

func (*DIAOracleCaller) GetValue

func (_DIAOracle *DIAOracleCaller) GetValue(opts *bind.CallOpts, key string) (*big.Int, *big.Int, error)

GetValue is a free data retrieval call binding the contract method 0x960384a0.

Solidity: function getValue(string key) view returns(uint128, uint128)

func (*DIAOracleCaller) Values

func (_DIAOracle *DIAOracleCaller) Values(opts *bind.CallOpts, arg0 string) (*big.Int, error)

Values is a free data retrieval call binding the contract method 0x5a9ade8b.

Solidity: function values(string ) view returns(uint256)

type DIAOracleCallerRaw

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

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

func (*DIAOracleCallerRaw) Call

func (_DIAOracle *DIAOracleCallerRaw) 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 DIAOracleCallerSession

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

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

func (*DIAOracleCallerSession) GetValue

func (_DIAOracle *DIAOracleCallerSession) GetValue(key string) (*big.Int, *big.Int, error)

GetValue is a free data retrieval call binding the contract method 0x960384a0.

Solidity: function getValue(string key) view returns(uint128, uint128)

func (*DIAOracleCallerSession) Values

func (_DIAOracle *DIAOracleCallerSession) Values(arg0 string) (*big.Int, error)

Values is a free data retrieval call binding the contract method 0x5a9ade8b.

Solidity: function values(string ) view returns(uint256)

type DIAOracleFilterer

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

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

func NewDIAOracleFilterer

func NewDIAOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*DIAOracleFilterer, error)

NewDIAOracleFilterer creates a new log filterer instance of DIAOracle, bound to a specific deployed contract.

func (*DIAOracleFilterer) FilterOracleUpdate

func (_DIAOracle *DIAOracleFilterer) FilterOracleUpdate(opts *bind.FilterOpts) (*DIAOracleOracleUpdateIterator, error)

FilterOracleUpdate is a free log retrieval operation binding the contract event 0xa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782.

Solidity: event OracleUpdate(string key, uint128 value, uint128 timestamp)

func (*DIAOracleFilterer) FilterUpdaterAddressChange

func (_DIAOracle *DIAOracleFilterer) FilterUpdaterAddressChange(opts *bind.FilterOpts) (*DIAOracleUpdaterAddressChangeIterator, error)

FilterUpdaterAddressChange is a free log retrieval operation binding the contract event 0x121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f.

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIAOracleFilterer) ParseOracleUpdate

func (_DIAOracle *DIAOracleFilterer) ParseOracleUpdate(log types.Log) (*DIAOracleOracleUpdate, error)

ParseOracleUpdate is a log parse operation binding the contract event 0xa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782.

Solidity: event OracleUpdate(string key, uint128 value, uint128 timestamp)

func (*DIAOracleFilterer) ParseUpdaterAddressChange

func (_DIAOracle *DIAOracleFilterer) ParseUpdaterAddressChange(log types.Log) (*DIAOracleUpdaterAddressChange, error)

ParseUpdaterAddressChange is a log parse operation binding the contract event 0x121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f.

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIAOracleFilterer) WatchOracleUpdate

func (_DIAOracle *DIAOracleFilterer) WatchOracleUpdate(opts *bind.WatchOpts, sink chan<- *DIAOracleOracleUpdate) (event.Subscription, error)

WatchOracleUpdate is a free log subscription operation binding the contract event 0xa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782.

Solidity: event OracleUpdate(string key, uint128 value, uint128 timestamp)

func (*DIAOracleFilterer) WatchUpdaterAddressChange

func (_DIAOracle *DIAOracleFilterer) WatchUpdaterAddressChange(opts *bind.WatchOpts, sink chan<- *DIAOracleUpdaterAddressChange) (event.Subscription, error)

WatchUpdaterAddressChange is a free log subscription operation binding the contract event 0x121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f.

Solidity: event UpdaterAddressChange(address newUpdater)

type DIAOracleOracleUpdate

type DIAOracleOracleUpdate struct {
	Key       string
	Value     *big.Int
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

DIAOracleOracleUpdate represents a OracleUpdate event raised by the DIAOracle contract.

type DIAOracleOracleUpdateIterator

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

DIAOracleOracleUpdateIterator is returned from FilterOracleUpdate and is used to iterate over the raw logs and unpacked data for OracleUpdate events raised by the DIAOracle contract.

func (*DIAOracleOracleUpdateIterator) Close

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

func (*DIAOracleOracleUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DIAOracleOracleUpdateIterator) 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 DIAOracleRaw

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

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

func (*DIAOracleRaw) Call

func (_DIAOracle *DIAOracleRaw) 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 (*DIAOracleRaw) Transact

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

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

func (*DIAOracleRaw) Transfer

func (_DIAOracle *DIAOracleRaw) 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 DIAOracleSession

type DIAOracleSession struct {
	Contract     *DIAOracle        // 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
}

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

func (*DIAOracleSession) GetValue

func (_DIAOracle *DIAOracleSession) GetValue(key string) (*big.Int, *big.Int, error)

GetValue is a free data retrieval call binding the contract method 0x960384a0.

Solidity: function getValue(string key) view returns(uint128, uint128)

func (*DIAOracleSession) SetValue

func (_DIAOracle *DIAOracleSession) SetValue(key string, value *big.Int, timestamp *big.Int) (*types.Transaction, error)

SetValue is a paid mutator transaction binding the contract method 0x7898e0c2.

Solidity: function setValue(string key, uint128 value, uint128 timestamp) returns()

func (*DIAOracleSession) UpdateOracleUpdaterAddress

func (_DIAOracle *DIAOracleSession) UpdateOracleUpdaterAddress(newOracleUpdaterAddress common.Address) (*types.Transaction, error)

UpdateOracleUpdaterAddress is a paid mutator transaction binding the contract method 0x6aa45efc.

Solidity: function updateOracleUpdaterAddress(address newOracleUpdaterAddress) returns()

func (*DIAOracleSession) Values

func (_DIAOracle *DIAOracleSession) Values(arg0 string) (*big.Int, error)

Values is a free data retrieval call binding the contract method 0x5a9ade8b.

Solidity: function values(string ) view returns(uint256)

type DIAOracleTransactor

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

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

func NewDIAOracleTransactor

func NewDIAOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*DIAOracleTransactor, error)

NewDIAOracleTransactor creates a new write-only instance of DIAOracle, bound to a specific deployed contract.

func (*DIAOracleTransactor) SetValue

func (_DIAOracle *DIAOracleTransactor) SetValue(opts *bind.TransactOpts, key string, value *big.Int, timestamp *big.Int) (*types.Transaction, error)

SetValue is a paid mutator transaction binding the contract method 0x7898e0c2.

Solidity: function setValue(string key, uint128 value, uint128 timestamp) returns()

func (*DIAOracleTransactor) UpdateOracleUpdaterAddress

func (_DIAOracle *DIAOracleTransactor) UpdateOracleUpdaterAddress(opts *bind.TransactOpts, newOracleUpdaterAddress common.Address) (*types.Transaction, error)

UpdateOracleUpdaterAddress is a paid mutator transaction binding the contract method 0x6aa45efc.

Solidity: function updateOracleUpdaterAddress(address newOracleUpdaterAddress) returns()

type DIAOracleTransactorRaw

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

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

func (*DIAOracleTransactorRaw) Transact

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

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

func (*DIAOracleTransactorRaw) Transfer

func (_DIAOracle *DIAOracleTransactorRaw) 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 DIAOracleTransactorSession

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

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

func (*DIAOracleTransactorSession) SetValue

func (_DIAOracle *DIAOracleTransactorSession) SetValue(key string, value *big.Int, timestamp *big.Int) (*types.Transaction, error)

SetValue is a paid mutator transaction binding the contract method 0x7898e0c2.

Solidity: function setValue(string key, uint128 value, uint128 timestamp) returns()

func (*DIAOracleTransactorSession) UpdateOracleUpdaterAddress

func (_DIAOracle *DIAOracleTransactorSession) UpdateOracleUpdaterAddress(newOracleUpdaterAddress common.Address) (*types.Transaction, error)

UpdateOracleUpdaterAddress is a paid mutator transaction binding the contract method 0x6aa45efc.

Solidity: function updateOracleUpdaterAddress(address newOracleUpdaterAddress) returns()

type DIAOracleUpdaterAddressChange

type DIAOracleUpdaterAddressChange struct {
	NewUpdater common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

DIAOracleUpdaterAddressChange represents a UpdaterAddressChange event raised by the DIAOracle contract.

type DIAOracleUpdaterAddressChangeIterator

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

DIAOracleUpdaterAddressChangeIterator is returned from FilterUpdaterAddressChange and is used to iterate over the raw logs and unpacked data for UpdaterAddressChange events raised by the DIAOracle contract.

func (*DIAOracleUpdaterAddressChangeIterator) Close

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

func (*DIAOracleUpdaterAddressChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DIAOracleUpdaterAddressChangeIterator) 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.

Jump to

Keyboard shortcuts

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