Documentation
¶
Index ¶
- Constants
- type Oracle
- type OracleCaller
- type OracleCallerRaw
- type OracleCallerSession
- type OracleFilterer
- func (_Oracle *OracleFilterer) FilterPetition(opts *bind.FilterOpts) (*OraclePetitionIterator, error)
- func (_Oracle *OracleFilterer) ParsePetition(log types.Log) (*OraclePetition, error)
- func (_Oracle *OracleFilterer) WatchPetition(opts *bind.WatchOpts, sink chan<- *OraclePetition) (event.Subscription, error)
- type OraclePetition
- type OraclePetitionIterator
- 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) ChangePrize(_newPrice *big.Int) (*types.Transaction, error)
- func (_Oracle *OracleSession) ChangeWhiteList(_address common.Address, _state bool) (*types.Transaction, error)
- func (_Oracle *OracleSession) GetEth() (*types.Transaction, error)
- func (_Oracle *OracleSession) MakePetition(_message string, _type string) (*types.Transaction, error)
- func (_Oracle *OracleSession) Price() (*big.Int, error)
- type OracleTransactor
- func (_Oracle *OracleTransactor) ChangePrize(opts *bind.TransactOpts, _newPrice *big.Int) (*types.Transaction, error)
- func (_Oracle *OracleTransactor) ChangeWhiteList(opts *bind.TransactOpts, _address common.Address, _state bool) (*types.Transaction, error)
- func (_Oracle *OracleTransactor) GetEth(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Oracle *OracleTransactor) MakePetition(opts *bind.TransactOpts, _message string, _type string) (*types.Transaction, error)
- type OracleTransactorRaw
- type OracleTransactorSession
- func (_Oracle *OracleTransactorSession) ChangePrize(_newPrice *big.Int) (*types.Transaction, error)
- func (_Oracle *OracleTransactorSession) ChangeWhiteList(_address common.Address, _state bool) (*types.Transaction, error)
- func (_Oracle *OracleTransactorSession) GetEth() (*types.Transaction, error)
- func (_Oracle *OracleTransactorSession) MakePetition(_message string, _type string) (*types.Transaction, error)
Constants ¶
const OracleABI = "" /* 1334-byte string literal not displayed */
OracleABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
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.
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.
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.
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) FilterPetition ¶
func (_Oracle *OracleFilterer) FilterPetition(opts *bind.FilterOpts) (*OraclePetitionIterator, error)
FilterPetition is a free log retrieval operation binding the contract event 0xc659bc090075346ac7a96402907b87a7f9b4292b51589a09794a3e6e649d1e2a.
Solidity: event Petition(address caller, string mType, string message)
func (*OracleFilterer) ParsePetition ¶
func (_Oracle *OracleFilterer) ParsePetition(log types.Log) (*OraclePetition, error)
ParsePetition is a log parse operation binding the contract event 0xc659bc090075346ac7a96402907b87a7f9b4292b51589a09794a3e6e649d1e2a.
Solidity: event Petition(address caller, string mType, string message)
func (*OracleFilterer) WatchPetition ¶
func (_Oracle *OracleFilterer) WatchPetition(opts *bind.WatchOpts, sink chan<- *OraclePetition) (event.Subscription, error)
WatchPetition is a free log subscription operation binding the contract event 0xc659bc090075346ac7a96402907b87a7f9b4292b51589a09794a3e6e649d1e2a.
Solidity: event Petition(address caller, string mType, string message)
type OraclePetition ¶
type OraclePetition struct { Caller common.Address MType string Message string Raw types.Log // Blockchain specific contextual infos }
OraclePetition represents a Petition event raised by the Oracle contract.
type OraclePetitionIterator ¶
type OraclePetitionIterator struct { Event *OraclePetition // Event containing the contract specifics and raw log // contains filtered or unexported fields }
OraclePetitionIterator is returned from FilterPetition and is used to iterate over the raw logs and unpacked data for Petition events raised by the Oracle contract.
func (*OraclePetitionIterator) Close ¶
func (it *OraclePetitionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*OraclePetitionIterator) Error ¶
func (it *OraclePetitionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*OraclePetitionIterator) Next ¶
func (it *OraclePetitionIterator) 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) ChangePrize ¶
func (_Oracle *OracleSession) ChangePrize(_newPrice *big.Int) (*types.Transaction, error)
ChangePrize is a paid mutator transaction binding the contract method 0x074cb69f.
Solidity: function changePrize(uint256 _newPrice) returns()
func (*OracleSession) ChangeWhiteList ¶
func (_Oracle *OracleSession) ChangeWhiteList(_address common.Address, _state bool) (*types.Transaction, error)
ChangeWhiteList is a paid mutator transaction binding the contract method 0x39b417b7.
Solidity: function changeWhiteList(address _address, bool _state) returns()
func (*OracleSession) GetEth ¶
func (_Oracle *OracleSession) GetEth() (*types.Transaction, error)
GetEth is a paid mutator transaction binding the contract method 0xcb05b93e.
Solidity: function getEth() returns()
func (*OracleSession) MakePetition ¶
func (_Oracle *OracleSession) MakePetition(_message string, _type string) (*types.Transaction, error)
MakePetition is a paid mutator transaction binding the contract method 0x4d3044fe.
Solidity: function makePetition(string _message, string _type) 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) ChangePrize ¶
func (_Oracle *OracleTransactor) ChangePrize(opts *bind.TransactOpts, _newPrice *big.Int) (*types.Transaction, error)
ChangePrize is a paid mutator transaction binding the contract method 0x074cb69f.
Solidity: function changePrize(uint256 _newPrice) returns()
func (*OracleTransactor) ChangeWhiteList ¶
func (_Oracle *OracleTransactor) ChangeWhiteList(opts *bind.TransactOpts, _address common.Address, _state bool) (*types.Transaction, error)
ChangeWhiteList is a paid mutator transaction binding the contract method 0x39b417b7.
Solidity: function changeWhiteList(address _address, bool _state) returns()
func (*OracleTransactor) GetEth ¶
func (_Oracle *OracleTransactor) GetEth(opts *bind.TransactOpts) (*types.Transaction, error)
GetEth is a paid mutator transaction binding the contract method 0xcb05b93e.
Solidity: function getEth() returns()
func (*OracleTransactor) MakePetition ¶
func (_Oracle *OracleTransactor) MakePetition(opts *bind.TransactOpts, _message string, _type string) (*types.Transaction, error)
MakePetition is a paid mutator transaction binding the contract method 0x4d3044fe.
Solidity: function makePetition(string _message, string _type) 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) ChangePrize ¶
func (_Oracle *OracleTransactorSession) ChangePrize(_newPrice *big.Int) (*types.Transaction, error)
ChangePrize is a paid mutator transaction binding the contract method 0x074cb69f.
Solidity: function changePrize(uint256 _newPrice) returns()
func (*OracleTransactorSession) ChangeWhiteList ¶
func (_Oracle *OracleTransactorSession) ChangeWhiteList(_address common.Address, _state bool) (*types.Transaction, error)
ChangeWhiteList is a paid mutator transaction binding the contract method 0x39b417b7.
Solidity: function changeWhiteList(address _address, bool _state) returns()
func (*OracleTransactorSession) GetEth ¶
func (_Oracle *OracleTransactorSession) GetEth() (*types.Transaction, error)
GetEth is a paid mutator transaction binding the contract method 0xcb05b93e.
Solidity: function getEth() returns()
func (*OracleTransactorSession) MakePetition ¶
func (_Oracle *OracleTransactorSession) MakePetition(_message string, _type string) (*types.Transaction, error)
MakePetition is a paid mutator transaction binding the contract method 0x4d3044fe.
Solidity: function makePetition(string _message, string _type) returns()