diaOracleServiceV2

package
v1.4.1-rc-157 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

Variables

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

DIAOracleV2Bin is the compiled bytecode used for deploying new contracts.

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

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

Functions

This section is empty.

Types

type DIAOracleV2

type DIAOracleV2 struct {
	DIAOracleV2Caller     // Read-only binding to the contract
	DIAOracleV2Transactor // Write-only binding to the contract
	DIAOracleV2Filterer   // Log filterer for contract events
}

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

func DeployDIAOracleV2

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

DeployDIAOracleV2 deploys a new Ethereum contract, binding an instance of DIAOracleV2 to it.

func NewDIAOracleV2

func NewDIAOracleV2(address common.Address, backend bind.ContractBackend) (*DIAOracleV2, error)

NewDIAOracleV2 creates a new instance of DIAOracleV2, bound to a specific deployed contract.

type DIAOracleV2Caller

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

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

func NewDIAOracleV2Caller

func NewDIAOracleV2Caller(address common.Address, caller bind.ContractCaller) (*DIAOracleV2Caller, error)

NewDIAOracleV2Caller creates a new read-only instance of DIAOracleV2, bound to a specific deployed contract.

func (*DIAOracleV2Caller) GetValue

func (_DIAOracleV2 *DIAOracleV2Caller) 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 (*DIAOracleV2Caller) Values

func (_DIAOracleV2 *DIAOracleV2Caller) 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 DIAOracleV2CallerRaw

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

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

func (*DIAOracleV2CallerRaw) Call

func (_DIAOracleV2 *DIAOracleV2CallerRaw) 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 DIAOracleV2CallerSession

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

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

func (*DIAOracleV2CallerSession) GetValue

func (_DIAOracleV2 *DIAOracleV2CallerSession) 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 (*DIAOracleV2CallerSession) Values

func (_DIAOracleV2 *DIAOracleV2CallerSession) 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 DIAOracleV2Filterer

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

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

func NewDIAOracleV2Filterer

func NewDIAOracleV2Filterer(address common.Address, filterer bind.ContractFilterer) (*DIAOracleV2Filterer, error)

NewDIAOracleV2Filterer creates a new log filterer instance of DIAOracleV2, bound to a specific deployed contract.

func (*DIAOracleV2Filterer) FilterOracleUpdate

func (_DIAOracleV2 *DIAOracleV2Filterer) FilterOracleUpdate(opts *bind.FilterOpts) (*DIAOracleV2OracleUpdateIterator, error)

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

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

func (*DIAOracleV2Filterer) FilterUpdaterAddressChange

func (_DIAOracleV2 *DIAOracleV2Filterer) FilterUpdaterAddressChange(opts *bind.FilterOpts) (*DIAOracleV2UpdaterAddressChangeIterator, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIAOracleV2Filterer) ParseOracleUpdate

func (_DIAOracleV2 *DIAOracleV2Filterer) ParseOracleUpdate(log types.Log) (*DIAOracleV2OracleUpdate, error)

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

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

func (*DIAOracleV2Filterer) ParseUpdaterAddressChange

func (_DIAOracleV2 *DIAOracleV2Filterer) ParseUpdaterAddressChange(log types.Log) (*DIAOracleV2UpdaterAddressChange, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIAOracleV2Filterer) WatchOracleUpdate

func (_DIAOracleV2 *DIAOracleV2Filterer) WatchOracleUpdate(opts *bind.WatchOpts, sink chan<- *DIAOracleV2OracleUpdate) (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 (*DIAOracleV2Filterer) WatchUpdaterAddressChange

func (_DIAOracleV2 *DIAOracleV2Filterer) WatchUpdaterAddressChange(opts *bind.WatchOpts, sink chan<- *DIAOracleV2UpdaterAddressChange) (event.Subscription, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

type DIAOracleV2OracleUpdate

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

DIAOracleV2OracleUpdate represents a OracleUpdate event raised by the DIAOracleV2 contract.

type DIAOracleV2OracleUpdateIterator

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

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

func (*DIAOracleV2OracleUpdateIterator) Close

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

func (*DIAOracleV2OracleUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DIAOracleV2OracleUpdateIterator) 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 DIAOracleV2Raw

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

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

func (*DIAOracleV2Raw) Call

func (_DIAOracleV2 *DIAOracleV2Raw) 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 (*DIAOracleV2Raw) Transact

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

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

func (*DIAOracleV2Raw) Transfer

func (_DIAOracleV2 *DIAOracleV2Raw) 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 DIAOracleV2Session

type DIAOracleV2Session struct {
	Contract     *DIAOracleV2      // 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
}

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

func (*DIAOracleV2Session) GetValue

func (_DIAOracleV2 *DIAOracleV2Session) 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 (*DIAOracleV2Session) SetValue

func (_DIAOracleV2 *DIAOracleV2Session) 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 (*DIAOracleV2Session) UpdateOracleUpdaterAddress

func (_DIAOracleV2 *DIAOracleV2Session) 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 (*DIAOracleV2Session) Values

func (_DIAOracleV2 *DIAOracleV2Session) 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 DIAOracleV2Transactor

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

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

func NewDIAOracleV2Transactor

func NewDIAOracleV2Transactor(address common.Address, transactor bind.ContractTransactor) (*DIAOracleV2Transactor, error)

NewDIAOracleV2Transactor creates a new write-only instance of DIAOracleV2, bound to a specific deployed contract.

func (*DIAOracleV2Transactor) SetValue

func (_DIAOracleV2 *DIAOracleV2Transactor) 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 (*DIAOracleV2Transactor) UpdateOracleUpdaterAddress

func (_DIAOracleV2 *DIAOracleV2Transactor) 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 DIAOracleV2TransactorRaw

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

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

func (*DIAOracleV2TransactorRaw) Transact

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

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

func (*DIAOracleV2TransactorRaw) Transfer

func (_DIAOracleV2 *DIAOracleV2TransactorRaw) 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 DIAOracleV2TransactorSession

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

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

func (*DIAOracleV2TransactorSession) SetValue

func (_DIAOracleV2 *DIAOracleV2TransactorSession) 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 (*DIAOracleV2TransactorSession) UpdateOracleUpdaterAddress

func (_DIAOracleV2 *DIAOracleV2TransactorSession) 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 DIAOracleV2UpdaterAddressChange

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

DIAOracleV2UpdaterAddressChange represents a UpdaterAddressChange event raised by the DIAOracleV2 contract.

type DIAOracleV2UpdaterAddressChangeIterator

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

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

func (*DIAOracleV2UpdaterAddressChangeIterator) Close

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

func (*DIAOracleV2UpdaterAddressChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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