Documentation ¶
Index ¶
- Constants
- Variables
- type Oracle
- type OracleCaller
- func (_Oracle *OracleCaller) CheckBridgeProphecy(opts *bind.CallOpts, _prophecyID *big.Int) (bool, *big.Int, *big.Int, error)
- func (_Oracle *OracleCaller) ConsensusThreshold(opts *bind.CallOpts) (*big.Int, error)
- func (_Oracle *OracleCaller) CosmosBridge(opts *bind.CallOpts) (common.Address, error)
- func (_Oracle *OracleCaller) HasMadeClaim(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_Oracle *OracleCaller) Operator(opts *bind.CallOpts) (common.Address, error)
- func (_Oracle *OracleCaller) OracleClaimValidators(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (common.Address, error)
- func (_Oracle *OracleCaller) Valset(opts *bind.CallOpts) (common.Address, error)
- type OracleCallerRaw
- type OracleCallerSession
- func (_Oracle *OracleCallerSession) CheckBridgeProphecy(_prophecyID *big.Int) (bool, *big.Int, *big.Int, error)
- func (_Oracle *OracleCallerSession) ConsensusThreshold() (*big.Int, error)
- func (_Oracle *OracleCallerSession) CosmosBridge() (common.Address, error)
- func (_Oracle *OracleCallerSession) HasMadeClaim(arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_Oracle *OracleCallerSession) Operator() (common.Address, error)
- func (_Oracle *OracleCallerSession) OracleClaimValidators(arg0 *big.Int, arg1 *big.Int) (common.Address, error)
- func (_Oracle *OracleCallerSession) Valset() (common.Address, error)
- type OracleFilterer
- func (_Oracle *OracleFilterer) FilterLogNewOracleClaim(opts *bind.FilterOpts) (*OracleLogNewOracleClaimIterator, error)
- func (_Oracle *OracleFilterer) FilterLogProphecyProcessed(opts *bind.FilterOpts) (*OracleLogProphecyProcessedIterator, error)
- func (_Oracle *OracleFilterer) ParseLogNewOracleClaim(log types.Log) (*OracleLogNewOracleClaim, error)
- func (_Oracle *OracleFilterer) ParseLogProphecyProcessed(log types.Log) (*OracleLogProphecyProcessed, error)
- func (_Oracle *OracleFilterer) WatchLogNewOracleClaim(opts *bind.WatchOpts, sink chan<- *OracleLogNewOracleClaim) (event.Subscription, error)
- func (_Oracle *OracleFilterer) WatchLogProphecyProcessed(opts *bind.WatchOpts, sink chan<- *OracleLogProphecyProcessed) (event.Subscription, error)
- type OracleLogNewOracleClaim
- type OracleLogNewOracleClaimIterator
- type OracleLogProphecyProcessed
- type OracleLogProphecyProcessedIterator
- type OracleRaw
- func (_Oracle *OracleRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Oracle *OracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Oracle *OracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type OracleSession
- func (_Oracle *OracleSession) CheckBridgeProphecy(_prophecyID *big.Int) (bool, *big.Int, *big.Int, error)
- func (_Oracle *OracleSession) ConsensusThreshold() (*big.Int, error)
- func (_Oracle *OracleSession) CosmosBridge() (common.Address, error)
- func (_Oracle *OracleSession) HasMadeClaim(arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_Oracle *OracleSession) NewOracleClaim(_prophecyID *big.Int, _message [32]byte, _signature []byte) (*types.Transaction, error)
- func (_Oracle *OracleSession) Operator() (common.Address, error)
- func (_Oracle *OracleSession) OracleClaimValidators(arg0 *big.Int, arg1 *big.Int) (common.Address, error)
- func (_Oracle *OracleSession) ProcessBridgeProphecy(_prophecyID *big.Int) (*types.Transaction, error)
- func (_Oracle *OracleSession) Valset() (common.Address, error)
- type OracleTransactor
- type OracleTransactorRaw
- type OracleTransactorSession
Constants ¶
const OracleABI = "" /* 3922-byte string literal not displayed */
OracleABI is the input ABI used to generate the binding from.
Variables ¶
var OracleBin = "" /* 12642-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, _operator common.Address, _valset common.Address, _cosmosBridge common.Address, _consensusThreshold *big.Int) (common.Address, *types.Transaction, *Oracle, error)
DeployOracle deploys a new Ethereum contract, binding an instance of Oracle to it.
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) constant returns(bool, uint256, uint256)
func (*OracleCaller) ConsensusThreshold ¶
ConsensusThreshold is a free data retrieval call binding the contract method 0xf9b0b5b9.
Solidity: function consensusThreshold() constant returns(uint256)
func (*OracleCaller) CosmosBridge ¶
CosmosBridge is a free data retrieval call binding the contract method 0xb0e9ef71.
Solidity: function cosmosBridge() constant 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 ) constant returns(bool)
func (*OracleCaller) Operator ¶
Operator is a free data retrieval call binding the contract method 0x570ca735.
Solidity: function operator() constant 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 ) constant 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) constant 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() constant 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() constant returns(address)
func (*OracleCallerSession) HasMadeClaim ¶
HasMadeClaim is a free data retrieval call binding the contract method 0xa219763e.
Solidity: function hasMadeClaim(uint256 , address ) constant 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() constant 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 ) constant 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 0x50e466de4726c2437aa7498d554322f5599f31f0f69f9ce036ad96db77590491.
Solidity: event LogNewOracleClaim(uint256 _prophecyID, bytes32 _message, address _validatorAddress, bytes _signature)
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 0x50e466de4726c2437aa7498d554322f5599f31f0f69f9ce036ad96db77590491.
Solidity: event LogNewOracleClaim(uint256 _prophecyID, bytes32 _message, address _validatorAddress, bytes _signature)
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 0x50e466de4726c2437aa7498d554322f5599f31f0f69f9ce036ad96db77590491.
Solidity: event LogNewOracleClaim(uint256 _prophecyID, bytes32 _message, address _validatorAddress, bytes _signature)
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 Message [32]byte ValidatorAddress common.Address Signature []byte 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 ¶
func (it *OracleLogNewOracleClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*OracleLogNewOracleClaimIterator) Error ¶
func (it *OracleLogNewOracleClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*OracleLogNewOracleClaimIterator) Next ¶
func (it *OracleLogNewOracleClaimIterator) Next() bool
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 ¶
func (it *OracleLogProphecyProcessedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*OracleLogProphecyProcessedIterator) Error ¶
func (it *OracleLogProphecyProcessedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*OracleLogProphecyProcessedIterator) Next ¶
func (it *OracleLogProphecyProcessedIterator) Next() bool
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) constant 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() constant 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() constant returns(address)
func (*OracleSession) HasMadeClaim ¶
HasMadeClaim is a free data retrieval call binding the contract method 0xa219763e.
Solidity: function hasMadeClaim(uint256 , address ) constant returns(bool)
func (*OracleSession) NewOracleClaim ¶
func (_Oracle *OracleSession) NewOracleClaim(_prophecyID *big.Int, _message [32]byte, _signature []byte) (*types.Transaction, error)
NewOracleClaim is a paid mutator transaction binding the contract method 0x568b3c4f.
Solidity: function newOracleClaim(uint256 _prophecyID, bytes32 _message, bytes _signature) returns()
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() constant 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 ) constant returns(address)
func (*OracleSession) ProcessBridgeProphecy ¶
func (_Oracle *OracleSession) ProcessBridgeProphecy(_prophecyID *big.Int) (*types.Transaction, error)
ProcessBridgeProphecy is a paid mutator transaction binding the contract method 0x89ed70b7.
Solidity: function processBridgeProphecy(uint256 _prophecyID) returns()
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) NewOracleClaim ¶
func (_Oracle *OracleTransactor) NewOracleClaim(opts *bind.TransactOpts, _prophecyID *big.Int, _message [32]byte, _signature []byte) (*types.Transaction, error)
NewOracleClaim is a paid mutator transaction binding the contract method 0x568b3c4f.
Solidity: function newOracleClaim(uint256 _prophecyID, bytes32 _message, bytes _signature) returns()
func (*OracleTransactor) ProcessBridgeProphecy ¶
func (_Oracle *OracleTransactor) ProcessBridgeProphecy(opts *bind.TransactOpts, _prophecyID *big.Int) (*types.Transaction, error)
ProcessBridgeProphecy is a paid mutator transaction binding the contract method 0x89ed70b7.
Solidity: function processBridgeProphecy(uint256 _prophecyID) returns()
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) NewOracleClaim ¶
func (_Oracle *OracleTransactorSession) NewOracleClaim(_prophecyID *big.Int, _message [32]byte, _signature []byte) (*types.Transaction, error)
NewOracleClaim is a paid mutator transaction binding the contract method 0x568b3c4f.
Solidity: function newOracleClaim(uint256 _prophecyID, bytes32 _message, bytes _signature) returns()
func (*OracleTransactorSession) ProcessBridgeProphecy ¶
func (_Oracle *OracleTransactorSession) ProcessBridgeProphecy(_prophecyID *big.Int) (*types.Transaction, error)
ProcessBridgeProphecy is a paid mutator transaction binding the contract method 0x89ed70b7.
Solidity: function processBridgeProphecy(uint256 _prophecyID) returns()