diaDafiOracleService

package
v1.4.445 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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

Variables

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

DIADafiOracleBin is the compiled bytecode used for deploying new contracts.

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

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

Functions

This section is empty.

Types

type DIADafiOracle

type DIADafiOracle struct {
	DIADafiOracleCaller     // Read-only binding to the contract
	DIADafiOracleTransactor // Write-only binding to the contract
	DIADafiOracleFilterer   // Log filterer for contract events
}

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

func DeployDIADafiOracle

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

DeployDIADafiOracle deploys a new Ethereum contract, binding an instance of DIADafiOracle to it.

func NewDIADafiOracle

func NewDIADafiOracle(address common.Address, backend bind.ContractBackend) (*DIADafiOracle, error)

NewDIADafiOracle creates a new instance of DIADafiOracle, bound to a specific deployed contract.

type DIADafiOracleCaller

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

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

func NewDIADafiOracleCaller

func NewDIADafiOracleCaller(address common.Address, caller bind.ContractCaller) (*DIADafiOracleCaller, error)

NewDIADafiOracleCaller creates a new read-only instance of DIADafiOracle, bound to a specific deployed contract.

func (*DIADafiOracleCaller) GetValue

func (_DIADafiOracle *DIADafiOracleCaller) 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 (*DIADafiOracleCaller) Values

func (_DIADafiOracle *DIADafiOracleCaller) 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 DIADafiOracleCallerRaw

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

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

func (*DIADafiOracleCallerRaw) Call

func (_DIADafiOracle *DIADafiOracleCallerRaw) 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 DIADafiOracleCallerSession

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

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

func (*DIADafiOracleCallerSession) GetValue

func (_DIADafiOracle *DIADafiOracleCallerSession) 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 (*DIADafiOracleCallerSession) Values

func (_DIADafiOracle *DIADafiOracleCallerSession) 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 DIADafiOracleFilterer

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

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

func NewDIADafiOracleFilterer

func NewDIADafiOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*DIADafiOracleFilterer, error)

NewDIADafiOracleFilterer creates a new log filterer instance of DIADafiOracle, bound to a specific deployed contract.

func (*DIADafiOracleFilterer) FilterOracleUpdate

func (_DIADafiOracle *DIADafiOracleFilterer) FilterOracleUpdate(opts *bind.FilterOpts) (*DIADafiOracleOracleUpdateIterator, error)

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

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

func (*DIADafiOracleFilterer) FilterUpdaterAddressChange

func (_DIADafiOracle *DIADafiOracleFilterer) FilterUpdaterAddressChange(opts *bind.FilterOpts) (*DIADafiOracleUpdaterAddressChangeIterator, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIADafiOracleFilterer) ParseOracleUpdate

func (_DIADafiOracle *DIADafiOracleFilterer) ParseOracleUpdate(log types.Log) (*DIADafiOracleOracleUpdate, error)

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

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

func (*DIADafiOracleFilterer) ParseUpdaterAddressChange

func (_DIADafiOracle *DIADafiOracleFilterer) ParseUpdaterAddressChange(log types.Log) (*DIADafiOracleUpdaterAddressChange, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIADafiOracleFilterer) WatchOracleUpdate

func (_DIADafiOracle *DIADafiOracleFilterer) WatchOracleUpdate(opts *bind.WatchOpts, sink chan<- *DIADafiOracleOracleUpdate) (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 (*DIADafiOracleFilterer) WatchUpdaterAddressChange

func (_DIADafiOracle *DIADafiOracleFilterer) WatchUpdaterAddressChange(opts *bind.WatchOpts, sink chan<- *DIADafiOracleUpdaterAddressChange) (event.Subscription, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

type DIADafiOracleOracleUpdate

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

DIADafiOracleOracleUpdate represents a OracleUpdate event raised by the DIADafiOracle contract.

type DIADafiOracleOracleUpdateIterator

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

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

func (*DIADafiOracleOracleUpdateIterator) Close

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

func (*DIADafiOracleOracleUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*DIADafiOracleRaw) Call

func (_DIADafiOracle *DIADafiOracleRaw) 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 (*DIADafiOracleRaw) Transact

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

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

func (*DIADafiOracleRaw) Transfer

func (_DIADafiOracle *DIADafiOracleRaw) 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 DIADafiOracleSession

type DIADafiOracleSession struct {
	Contract     *DIADafiOracle    // 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
}

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

func (*DIADafiOracleSession) GetValue

func (_DIADafiOracle *DIADafiOracleSession) 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 (*DIADafiOracleSession) SetValue

func (_DIADafiOracle *DIADafiOracleSession) 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 (*DIADafiOracleSession) UpdateOracleUpdaterAddress

func (_DIADafiOracle *DIADafiOracleSession) 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 (*DIADafiOracleSession) Values

func (_DIADafiOracle *DIADafiOracleSession) 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 DIADafiOracleTransactor

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

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

func NewDIADafiOracleTransactor

func NewDIADafiOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*DIADafiOracleTransactor, error)

NewDIADafiOracleTransactor creates a new write-only instance of DIADafiOracle, bound to a specific deployed contract.

func (*DIADafiOracleTransactor) SetValue

func (_DIADafiOracle *DIADafiOracleTransactor) 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 (*DIADafiOracleTransactor) UpdateOracleUpdaterAddress

func (_DIADafiOracle *DIADafiOracleTransactor) 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 DIADafiOracleTransactorRaw

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

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

func (*DIADafiOracleTransactorRaw) Transact

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

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

func (*DIADafiOracleTransactorRaw) Transfer

func (_DIADafiOracle *DIADafiOracleTransactorRaw) 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 DIADafiOracleTransactorSession

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

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

func (*DIADafiOracleTransactorSession) SetValue

func (_DIADafiOracle *DIADafiOracleTransactorSession) 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 (*DIADafiOracleTransactorSession) UpdateOracleUpdaterAddress

func (_DIADafiOracle *DIADafiOracleTransactorSession) 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 DIADafiOracleUpdaterAddressChange

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

DIADafiOracleUpdaterAddressChange represents a UpdaterAddressChange event raised by the DIADafiOracle contract.

type DIADafiOracleUpdaterAddressChangeIterator

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

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

func (*DIADafiOracleUpdaterAddressChangeIterator) Close

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

func (*DIADafiOracleUpdaterAddressChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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