diaDefi100OracleService

package
v1.4.478 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

Variables

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

DIADefi100OracleBin is the compiled bytecode used for deploying new contracts.

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

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

Functions

This section is empty.

Types

type DIADefi100Oracle

type DIADefi100Oracle struct {
	DIADefi100OracleCaller     // Read-only binding to the contract
	DIADefi100OracleTransactor // Write-only binding to the contract
	DIADefi100OracleFilterer   // Log filterer for contract events
}

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

func DeployDIADefi100Oracle

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

DeployDIADefi100Oracle deploys a new Ethereum contract, binding an instance of DIADefi100Oracle to it.

func NewDIADefi100Oracle

func NewDIADefi100Oracle(address common.Address, backend bind.ContractBackend) (*DIADefi100Oracle, error)

NewDIADefi100Oracle creates a new instance of DIADefi100Oracle, bound to a specific deployed contract.

type DIADefi100OracleCaller

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

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

func NewDIADefi100OracleCaller

func NewDIADefi100OracleCaller(address common.Address, caller bind.ContractCaller) (*DIADefi100OracleCaller, error)

NewDIADefi100OracleCaller creates a new read-only instance of DIADefi100Oracle, bound to a specific deployed contract.

func (*DIADefi100OracleCaller) GetValue

func (_DIADefi100Oracle *DIADefi100OracleCaller) 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 (*DIADefi100OracleCaller) Values

func (_DIADefi100Oracle *DIADefi100OracleCaller) 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 DIADefi100OracleCallerRaw

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

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

func (*DIADefi100OracleCallerRaw) Call

func (_DIADefi100Oracle *DIADefi100OracleCallerRaw) 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 DIADefi100OracleCallerSession

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

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

func (*DIADefi100OracleCallerSession) GetValue

func (_DIADefi100Oracle *DIADefi100OracleCallerSession) 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 (*DIADefi100OracleCallerSession) Values

func (_DIADefi100Oracle *DIADefi100OracleCallerSession) 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 DIADefi100OracleFilterer

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

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

func NewDIADefi100OracleFilterer

func NewDIADefi100OracleFilterer(address common.Address, filterer bind.ContractFilterer) (*DIADefi100OracleFilterer, error)

NewDIADefi100OracleFilterer creates a new log filterer instance of DIADefi100Oracle, bound to a specific deployed contract.

func (*DIADefi100OracleFilterer) FilterOracleUpdate

func (_DIADefi100Oracle *DIADefi100OracleFilterer) FilterOracleUpdate(opts *bind.FilterOpts) (*DIADefi100OracleOracleUpdateIterator, error)

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

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

func (*DIADefi100OracleFilterer) FilterUpdaterAddressChange

func (_DIADefi100Oracle *DIADefi100OracleFilterer) FilterUpdaterAddressChange(opts *bind.FilterOpts) (*DIADefi100OracleUpdaterAddressChangeIterator, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIADefi100OracleFilterer) ParseOracleUpdate

func (_DIADefi100Oracle *DIADefi100OracleFilterer) ParseOracleUpdate(log types.Log) (*DIADefi100OracleOracleUpdate, error)

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

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

func (*DIADefi100OracleFilterer) ParseUpdaterAddressChange

func (_DIADefi100Oracle *DIADefi100OracleFilterer) ParseUpdaterAddressChange(log types.Log) (*DIADefi100OracleUpdaterAddressChange, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

func (*DIADefi100OracleFilterer) WatchOracleUpdate

func (_DIADefi100Oracle *DIADefi100OracleFilterer) WatchOracleUpdate(opts *bind.WatchOpts, sink chan<- *DIADefi100OracleOracleUpdate) (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 (*DIADefi100OracleFilterer) WatchUpdaterAddressChange

func (_DIADefi100Oracle *DIADefi100OracleFilterer) WatchUpdaterAddressChange(opts *bind.WatchOpts, sink chan<- *DIADefi100OracleUpdaterAddressChange) (event.Subscription, error)

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

Solidity: event UpdaterAddressChange(address newUpdater)

type DIADefi100OracleOracleUpdate

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

DIADefi100OracleOracleUpdate represents a OracleUpdate event raised by the DIADefi100Oracle contract.

type DIADefi100OracleOracleUpdateIterator

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

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

func (*DIADefi100OracleOracleUpdateIterator) Close

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

func (*DIADefi100OracleOracleUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*DIADefi100OracleRaw) Call

func (_DIADefi100Oracle *DIADefi100OracleRaw) 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 (*DIADefi100OracleRaw) Transact

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

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

func (*DIADefi100OracleRaw) Transfer

func (_DIADefi100Oracle *DIADefi100OracleRaw) 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 DIADefi100OracleSession

type DIADefi100OracleSession struct {
	Contract     *DIADefi100Oracle // 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
}

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

func (*DIADefi100OracleSession) GetValue

func (_DIADefi100Oracle *DIADefi100OracleSession) 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 (*DIADefi100OracleSession) SetValue

func (_DIADefi100Oracle *DIADefi100OracleSession) 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 (*DIADefi100OracleSession) UpdateOracleUpdaterAddress

func (_DIADefi100Oracle *DIADefi100OracleSession) 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 (*DIADefi100OracleSession) Values

func (_DIADefi100Oracle *DIADefi100OracleSession) 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 DIADefi100OracleTransactor

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

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

func NewDIADefi100OracleTransactor

func NewDIADefi100OracleTransactor(address common.Address, transactor bind.ContractTransactor) (*DIADefi100OracleTransactor, error)

NewDIADefi100OracleTransactor creates a new write-only instance of DIADefi100Oracle, bound to a specific deployed contract.

func (*DIADefi100OracleTransactor) SetValue

func (_DIADefi100Oracle *DIADefi100OracleTransactor) 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 (*DIADefi100OracleTransactor) UpdateOracleUpdaterAddress

func (_DIADefi100Oracle *DIADefi100OracleTransactor) 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 DIADefi100OracleTransactorRaw

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

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

func (*DIADefi100OracleTransactorRaw) Transact

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

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

func (*DIADefi100OracleTransactorRaw) Transfer

func (_DIADefi100Oracle *DIADefi100OracleTransactorRaw) 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 DIADefi100OracleTransactorSession

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

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

func (*DIADefi100OracleTransactorSession) SetValue

func (_DIADefi100Oracle *DIADefi100OracleTransactorSession) 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 (*DIADefi100OracleTransactorSession) UpdateOracleUpdaterAddress

func (_DIADefi100Oracle *DIADefi100OracleTransactorSession) 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 DIADefi100OracleUpdaterAddressChange

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

DIADefi100OracleUpdaterAddressChange represents a UpdaterAddressChange event raised by the DIADefi100Oracle contract.

type DIADefi100OracleUpdaterAddressChangeIterator

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

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

func (*DIADefi100OracleUpdaterAddressChangeIterator) Close

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

func (*DIADefi100OracleUpdaterAddressChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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