Oracle

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OracleABI = "" /* 3534-byte string literal not displayed */

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

Variables

View Source
var OracleBin = "" /* 10310-byte string literal not displayed */

OracleBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Oracle

type Oracle struct {
	OracleCaller     // Read-only binding to the contract
	OracleTransactor // Write-only binding to the contract
	OracleFilterer   // Log filterer for contract events
}

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

func DeployOracle

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

DeployOracle deploys a new Ethereum contract, binding an instance of Oracle to it.

func NewOracle

func NewOracle(address common.Address, backend bind.ContractBackend) (*Oracle, error)

NewOracle creates a new instance of Oracle, bound to a specific deployed contract.

type OracleCaller

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

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

func NewOracleCaller

func NewOracleCaller(address common.Address, caller bind.ContractCaller) (*OracleCaller, error)

NewOracleCaller creates a new read-only instance of Oracle, bound to a specific deployed contract.

func (*OracleCaller) CheckBridgeProphecy

func (_Oracle *OracleCaller) CheckBridgeProphecy(opts *bind.CallOpts, _prophecyID *big.Int) (bool, *big.Int, *big.Int, error)

CheckBridgeProphecy is a free data retrieval call binding the contract method 0xe33a8b2a.

Solidity: function checkBridgeProphecy(uint256 _prophecyID) view returns(bool, uint256, uint256)

func (*OracleCaller) ConsensusThreshold

func (_Oracle *OracleCaller) ConsensusThreshold(opts *bind.CallOpts) (*big.Int, error)

ConsensusThreshold is a free data retrieval call binding the contract method 0xf9b0b5b9.

Solidity: function consensusThreshold() view returns(uint256)

func (*OracleCaller) CosmosBridge

func (_Oracle *OracleCaller) CosmosBridge(opts *bind.CallOpts) (common.Address, error)

CosmosBridge is a free data retrieval call binding the contract method 0xb0e9ef71.

Solidity: function cosmosBridge() view returns(address)

func (*OracleCaller) HasMadeClaim

func (_Oracle *OracleCaller) HasMadeClaim(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (bool, error)

HasMadeClaim is a free data retrieval call binding the contract method 0xa219763e.

Solidity: function hasMadeClaim(uint256 , address ) view returns(bool)

func (*OracleCaller) Operator

func (_Oracle *OracleCaller) Operator(opts *bind.CallOpts) (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*OracleCaller) OracleClaimValidators

func (_Oracle *OracleCaller) OracleClaimValidators(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (common.Address, error)

OracleClaimValidators is a free data retrieval call binding the contract method 0x36e41341.

Solidity: function oracleClaimValidators(uint256 , uint256 ) view returns(address)

func (*OracleCaller) Valset

func (_Oracle *OracleCaller) Valset(opts *bind.CallOpts) (common.Address, error)

Valset is a free data retrieval call binding the contract method 0x7f54af0c.

Solidity: function valset() view returns(address)

type OracleCallerRaw

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

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

func (*OracleCallerRaw) Call

func (_Oracle *OracleCallerRaw) 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 OracleCallerSession

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

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

func (*OracleCallerSession) CheckBridgeProphecy

func (_Oracle *OracleCallerSession) CheckBridgeProphecy(_prophecyID *big.Int) (bool, *big.Int, *big.Int, error)

CheckBridgeProphecy is a free data retrieval call binding the contract method 0xe33a8b2a.

Solidity: function checkBridgeProphecy(uint256 _prophecyID) view returns(bool, uint256, uint256)

func (*OracleCallerSession) ConsensusThreshold

func (_Oracle *OracleCallerSession) ConsensusThreshold() (*big.Int, error)

ConsensusThreshold is a free data retrieval call binding the contract method 0xf9b0b5b9.

Solidity: function consensusThreshold() view returns(uint256)

func (*OracleCallerSession) CosmosBridge

func (_Oracle *OracleCallerSession) CosmosBridge() (common.Address, error)

CosmosBridge is a free data retrieval call binding the contract method 0xb0e9ef71.

Solidity: function cosmosBridge() view returns(address)

func (*OracleCallerSession) HasMadeClaim

func (_Oracle *OracleCallerSession) HasMadeClaim(arg0 *big.Int, arg1 common.Address) (bool, error)

HasMadeClaim is a free data retrieval call binding the contract method 0xa219763e.

Solidity: function hasMadeClaim(uint256 , address ) view returns(bool)

func (*OracleCallerSession) Operator

func (_Oracle *OracleCallerSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*OracleCallerSession) OracleClaimValidators

func (_Oracle *OracleCallerSession) OracleClaimValidators(arg0 *big.Int, arg1 *big.Int) (common.Address, error)

OracleClaimValidators is a free data retrieval call binding the contract method 0x36e41341.

Solidity: function oracleClaimValidators(uint256 , uint256 ) view returns(address)

func (*OracleCallerSession) Valset

func (_Oracle *OracleCallerSession) Valset() (common.Address, error)

Valset is a free data retrieval call binding the contract method 0x7f54af0c.

Solidity: function valset() view returns(address)

type OracleFilterer

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

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

func NewOracleFilterer

func NewOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*OracleFilterer, error)

NewOracleFilterer creates a new log filterer instance of Oracle, bound to a specific deployed contract.

func (*OracleFilterer) FilterLogNewOracleClaim

func (_Oracle *OracleFilterer) FilterLogNewOracleClaim(opts *bind.FilterOpts) (*OracleLogNewOracleClaimIterator, error)

FilterLogNewOracleClaim is a free log retrieval operation binding the contract event 0x668fce9833323940537a9000d512a6c580a1c0797d2b526db0078ee9c5a087a9.

Solidity: event LogNewOracleClaim(uint256 _prophecyID, address _validatorAddress)

func (*OracleFilterer) FilterLogProphecyProcessed

func (_Oracle *OracleFilterer) FilterLogProphecyProcessed(opts *bind.FilterOpts) (*OracleLogProphecyProcessedIterator, error)

FilterLogProphecyProcessed is a free log retrieval operation binding the contract event 0x1d8e3fbd601d9d92db7022fb97f75e132841b94db732dcecb0c93cb31852fcbc.

Solidity: event LogProphecyProcessed(uint256 _prophecyID, uint256 _prophecyPowerCurrent, uint256 _prophecyPowerThreshold, address _submitter)

func (*OracleFilterer) ParseLogNewOracleClaim

func (_Oracle *OracleFilterer) ParseLogNewOracleClaim(log types.Log) (*OracleLogNewOracleClaim, error)

ParseLogNewOracleClaim is a log parse operation binding the contract event 0x668fce9833323940537a9000d512a6c580a1c0797d2b526db0078ee9c5a087a9.

Solidity: event LogNewOracleClaim(uint256 _prophecyID, address _validatorAddress)

func (*OracleFilterer) ParseLogProphecyProcessed

func (_Oracle *OracleFilterer) ParseLogProphecyProcessed(log types.Log) (*OracleLogProphecyProcessed, error)

ParseLogProphecyProcessed is a log parse operation binding the contract event 0x1d8e3fbd601d9d92db7022fb97f75e132841b94db732dcecb0c93cb31852fcbc.

Solidity: event LogProphecyProcessed(uint256 _prophecyID, uint256 _prophecyPowerCurrent, uint256 _prophecyPowerThreshold, address _submitter)

func (*OracleFilterer) WatchLogNewOracleClaim

func (_Oracle *OracleFilterer) WatchLogNewOracleClaim(opts *bind.WatchOpts, sink chan<- *OracleLogNewOracleClaim) (event.Subscription, error)

WatchLogNewOracleClaim is a free log subscription operation binding the contract event 0x668fce9833323940537a9000d512a6c580a1c0797d2b526db0078ee9c5a087a9.

Solidity: event LogNewOracleClaim(uint256 _prophecyID, address _validatorAddress)

func (*OracleFilterer) WatchLogProphecyProcessed

func (_Oracle *OracleFilterer) WatchLogProphecyProcessed(opts *bind.WatchOpts, sink chan<- *OracleLogProphecyProcessed) (event.Subscription, error)

WatchLogProphecyProcessed is a free log subscription operation binding the contract event 0x1d8e3fbd601d9d92db7022fb97f75e132841b94db732dcecb0c93cb31852fcbc.

Solidity: event LogProphecyProcessed(uint256 _prophecyID, uint256 _prophecyPowerCurrent, uint256 _prophecyPowerThreshold, address _submitter)

type OracleLogNewOracleClaim

type OracleLogNewOracleClaim struct {
	ProphecyID       *big.Int
	ValidatorAddress common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

OracleLogNewOracleClaim represents a LogNewOracleClaim event raised by the Oracle contract.

type OracleLogNewOracleClaimIterator

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

OracleLogNewOracleClaimIterator is returned from FilterLogNewOracleClaim and is used to iterate over the raw logs and unpacked data for LogNewOracleClaim events raised by the Oracle contract.

func (*OracleLogNewOracleClaimIterator) Close

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

func (*OracleLogNewOracleClaimIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type OracleLogProphecyProcessed struct {
	ProphecyID             *big.Int
	ProphecyPowerCurrent   *big.Int
	ProphecyPowerThreshold *big.Int
	Submitter              common.Address
	Raw                    types.Log // Blockchain specific contextual infos
}

OracleLogProphecyProcessed represents a LogProphecyProcessed event raised by the Oracle contract.

type OracleLogProphecyProcessedIterator

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

OracleLogProphecyProcessedIterator is returned from FilterLogProphecyProcessed and is used to iterate over the raw logs and unpacked data for LogProphecyProcessed events raised by the Oracle contract.

func (*OracleLogProphecyProcessedIterator) Close

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

func (*OracleLogProphecyProcessedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*OracleRaw) Call

func (_Oracle *OracleRaw) 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 (*OracleRaw) Transact

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

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

func (*OracleRaw) Transfer

func (_Oracle *OracleRaw) 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 OracleSession

type OracleSession struct {
	Contract     *Oracle           // 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
}

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

func (*OracleSession) CheckBridgeProphecy

func (_Oracle *OracleSession) CheckBridgeProphecy(_prophecyID *big.Int) (bool, *big.Int, *big.Int, error)

CheckBridgeProphecy is a free data retrieval call binding the contract method 0xe33a8b2a.

Solidity: function checkBridgeProphecy(uint256 _prophecyID) view returns(bool, uint256, uint256)

func (*OracleSession) ConsensusThreshold

func (_Oracle *OracleSession) ConsensusThreshold() (*big.Int, error)

ConsensusThreshold is a free data retrieval call binding the contract method 0xf9b0b5b9.

Solidity: function consensusThreshold() view returns(uint256)

func (*OracleSession) CosmosBridge

func (_Oracle *OracleSession) CosmosBridge() (common.Address, error)

CosmosBridge is a free data retrieval call binding the contract method 0xb0e9ef71.

Solidity: function cosmosBridge() view returns(address)

func (*OracleSession) HasMadeClaim

func (_Oracle *OracleSession) HasMadeClaim(arg0 *big.Int, arg1 common.Address) (bool, error)

HasMadeClaim is a free data retrieval call binding the contract method 0xa219763e.

Solidity: function hasMadeClaim(uint256 , address ) view returns(bool)

func (*OracleSession) Initialize

func (_Oracle *OracleSession) Initialize(_operator common.Address, _valset common.Address, _cosmosBridge common.Address, _consensusThreshold *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xcf756fdf.

Solidity: function initialize(address _operator, address _valset, address _cosmosBridge, uint256 _consensusThreshold) returns()

func (*OracleSession) NewOracleClaim

func (_Oracle *OracleSession) NewOracleClaim(_prophecyID *big.Int, validatorAddress common.Address) (*types.Transaction, error)

NewOracleClaim is a paid mutator transaction binding the contract method 0xd1d2841a.

Solidity: function newOracleClaim(uint256 _prophecyID, address validatorAddress) returns(bool)

func (*OracleSession) Operator

func (_Oracle *OracleSession) Operator() (common.Address, error)

Operator is a free data retrieval call binding the contract method 0x570ca735.

Solidity: function operator() view returns(address)

func (*OracleSession) OracleClaimValidators

func (_Oracle *OracleSession) OracleClaimValidators(arg0 *big.Int, arg1 *big.Int) (common.Address, error)

OracleClaimValidators is a free data retrieval call binding the contract method 0x36e41341.

Solidity: function oracleClaimValidators(uint256 , uint256 ) view returns(address)

func (*OracleSession) Valset

func (_Oracle *OracleSession) Valset() (common.Address, error)

Valset is a free data retrieval call binding the contract method 0x7f54af0c.

Solidity: function valset() view returns(address)

type OracleTransactor

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

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

func NewOracleTransactor

func NewOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*OracleTransactor, error)

NewOracleTransactor creates a new write-only instance of Oracle, bound to a specific deployed contract.

func (*OracleTransactor) Initialize

func (_Oracle *OracleTransactor) Initialize(opts *bind.TransactOpts, _operator common.Address, _valset common.Address, _cosmosBridge common.Address, _consensusThreshold *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xcf756fdf.

Solidity: function initialize(address _operator, address _valset, address _cosmosBridge, uint256 _consensusThreshold) returns()

func (*OracleTransactor) NewOracleClaim

func (_Oracle *OracleTransactor) NewOracleClaim(opts *bind.TransactOpts, _prophecyID *big.Int, validatorAddress common.Address) (*types.Transaction, error)

NewOracleClaim is a paid mutator transaction binding the contract method 0xd1d2841a.

Solidity: function newOracleClaim(uint256 _prophecyID, address validatorAddress) returns(bool)

type OracleTransactorRaw

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

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

func (*OracleTransactorRaw) Transact

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

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

func (*OracleTransactorRaw) Transfer

func (_Oracle *OracleTransactorRaw) 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 OracleTransactorSession

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

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

func (*OracleTransactorSession) Initialize

func (_Oracle *OracleTransactorSession) Initialize(_operator common.Address, _valset common.Address, _cosmosBridge common.Address, _consensusThreshold *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xcf756fdf.

Solidity: function initialize(address _operator, address _valset, address _cosmosBridge, uint256 _consensusThreshold) returns()

func (*OracleTransactorSession) NewOracleClaim

func (_Oracle *OracleTransactorSession) NewOracleClaim(_prophecyID *big.Int, validatorAddress common.Address) (*types.Transaction, error)

NewOracleClaim is a paid mutator transaction binding the contract method 0xd1d2841a.

Solidity: function newOracleClaim(uint256 _prophecyID, address validatorAddress) returns(bool)

Jump to

Keyboard shortcuts

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