Documentation ¶
Index ¶
- Constants
- type Miner
- type MinerAdded
- type MinerAddedIterator
- type MinerCaller
- func (_Miner *MinerCaller) Get(opts *bind.CallOpts, number *big.Int, miner common.Address) (uint64, uint32, common.Address, [32]byte, [32]byte, error)
- func (_Miner *MinerCaller) GetNewAddedMiner(opts *bind.CallOpts, number *big.Int, index uint32) (common.Address, error)
- func (_Miner *MinerCaller) GetNewAddedMinersCount(opts *bind.CallOpts, number *big.Int) (*big.Int, error)
- func (_Miner *MinerCaller) IsMinerOfHeight(opts *bind.CallOpts, number *big.Int, addr common.Address) (bool, error)
- type MinerCallerRaw
- type MinerCallerSession
- func (_Miner *MinerCallerSession) Get(number *big.Int, miner common.Address) (uint64, uint32, common.Address, [32]byte, [32]byte, error)
- func (_Miner *MinerCallerSession) GetNewAddedMiner(number *big.Int, index uint32) (common.Address, error)
- func (_Miner *MinerCallerSession) GetNewAddedMinersCount(number *big.Int) (*big.Int, error)
- func (_Miner *MinerCallerSession) IsMinerOfHeight(number *big.Int, addr common.Address) (bool, error)
- type MinerFilterer
- func (_Miner *MinerFilterer) FilterAdded(opts *bind.FilterOpts) (*MinerAddedIterator, error)
- func (_Miner *MinerFilterer) FilterUpdated(opts *bind.FilterOpts) (*MinerUpdatedIterator, error)
- func (_Miner *MinerFilterer) WatchAdded(opts *bind.WatchOpts, sink chan<- *MinerAdded) (event.Subscription, error)
- func (_Miner *MinerFilterer) WatchUpdated(opts *bind.WatchOpts, sink chan<- *MinerUpdated) (event.Subscription, error)
- type MinerRaw
- func (_Miner *MinerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Miner *MinerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Miner *MinerRaw) TransactExact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Miner *MinerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MinerSession
- func (_Miner *MinerSession) Get(number *big.Int, miner common.Address) (uint64, uint32, common.Address, [32]byte, [32]byte, error)
- func (_Miner *MinerSession) GetNewAddedMiner(number *big.Int, index uint32) (common.Address, error)
- func (_Miner *MinerSession) GetNewAddedMinersCount(number *big.Int) (*big.Int, error)
- func (_Miner *MinerSession) IsMinerOfHeight(number *big.Int, addr common.Address) (bool, error)
- func (_Miner *MinerSession) Set(start uint64, lifespan uint32, coinbase common.Address, vrfVerifier [32]byte, ...) (*types.Transaction, error)
- func (_Miner *MinerSession) SetCoinbase(number *big.Int, coinbase common.Address) (*types.Transaction, error)
- type MinerTransactor
- type MinerTransactorRaw
- type MinerTransactorSession
- type MinerUpdated
- type MinerUpdatedIterator
Constants ¶
const MinerABI = "" /* 2228-byte string literal not displayed */
MinerABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Miner ¶
type Miner struct { MinerCaller // Read-only binding to the contract MinerTransactor // Write-only binding to the contract MinerFilterer // Log filterer for contract events }
Miner is an auto generated Go binding around an Ethereum contract.
type MinerAdded ¶
type MinerAdded struct { Start *big.Int Miner common.Address Raw types.Log // Blockchain specific contextual infos }
MinerAdded represents a Added event raised by the Miner contract.
type MinerAddedIterator ¶
type MinerAddedIterator struct { Event *MinerAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MinerAddedIterator is returned from FilterAdded and is used to iterate over the raw logs and unpacked data for Added events raised by the Miner contract.
func (*MinerAddedIterator) Close ¶
func (it *MinerAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinerAddedIterator) Error ¶
func (it *MinerAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinerAddedIterator) Next ¶
func (it *MinerAddedIterator) 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 MinerCaller ¶
type MinerCaller struct {
// contains filtered or unexported fields
}
MinerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMinerCaller ¶
func NewMinerCaller(address common.Address, caller bind.ContractCaller) (*MinerCaller, error)
NewMinerCaller creates a new read-only instance of Miner, bound to a specific deployed contract.
func (*MinerCaller) Get ¶
func (_Miner *MinerCaller) Get(opts *bind.CallOpts, number *big.Int, miner common.Address) (uint64, uint32, common.Address, [32]byte, [32]byte, error)
Get is a free data retrieval call binding the contract method 0x7db6e675.
Solidity: function get(uint256 number, address miner) constant returns(uint64, uint32, address, bytes32, bytes32)
func (*MinerCaller) GetNewAddedMiner ¶
func (_Miner *MinerCaller) GetNewAddedMiner(opts *bind.CallOpts, number *big.Int, index uint32) (common.Address, error)
GetNewAddedMiner is a free data retrieval call binding the contract method 0x1089602c.
Solidity: function getNewAddedMiner(uint256 number, uint32 index) constant returns(address miner)
func (*MinerCaller) GetNewAddedMinersCount ¶
func (_Miner *MinerCaller) GetNewAddedMinersCount(opts *bind.CallOpts, number *big.Int) (*big.Int, error)
GetNewAddedMinersCount is a free data retrieval call binding the contract method 0x9532c1fb.
Solidity: function getNewAddedMinersCount(uint256 number) constant returns(uint256)
func (*MinerCaller) IsMinerOfHeight ¶
func (_Miner *MinerCaller) IsMinerOfHeight(opts *bind.CallOpts, number *big.Int, addr common.Address) (bool, error)
IsMinerOfHeight is a free data retrieval call binding the contract method 0xe2162f0b.
Solidity: function isMinerOfHeight(uint256 number, address addr) constant returns(bool)
type MinerCallerRaw ¶
type MinerCallerRaw struct {
Contract *MinerCaller // Generic read-only contract binding to access the raw methods on
}
MinerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MinerCallerRaw) Call ¶
func (_Miner *MinerCallerRaw) 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 MinerCallerSession ¶
type MinerCallerSession struct { Contract *MinerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MinerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MinerCallerSession) Get ¶
func (_Miner *MinerCallerSession) Get(number *big.Int, miner common.Address) (uint64, uint32, common.Address, [32]byte, [32]byte, error)
Get is a free data retrieval call binding the contract method 0x7db6e675.
Solidity: function get(uint256 number, address miner) constant returns(uint64, uint32, address, bytes32, bytes32)
func (*MinerCallerSession) GetNewAddedMiner ¶
func (_Miner *MinerCallerSession) GetNewAddedMiner(number *big.Int, index uint32) (common.Address, error)
GetNewAddedMiner is a free data retrieval call binding the contract method 0x1089602c.
Solidity: function getNewAddedMiner(uint256 number, uint32 index) constant returns(address miner)
func (*MinerCallerSession) GetNewAddedMinersCount ¶
GetNewAddedMinersCount is a free data retrieval call binding the contract method 0x9532c1fb.
Solidity: function getNewAddedMinersCount(uint256 number) constant returns(uint256)
func (*MinerCallerSession) IsMinerOfHeight ¶
func (_Miner *MinerCallerSession) IsMinerOfHeight(number *big.Int, addr common.Address) (bool, error)
IsMinerOfHeight is a free data retrieval call binding the contract method 0xe2162f0b.
Solidity: function isMinerOfHeight(uint256 number, address addr) constant returns(bool)
type MinerFilterer ¶
type MinerFilterer struct {
// contains filtered or unexported fields
}
MinerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMinerFilterer ¶
func NewMinerFilterer(address common.Address, filterer bind.ContractFilterer) (*MinerFilterer, error)
NewMinerFilterer creates a new log filterer instance of Miner, bound to a specific deployed contract.
func (*MinerFilterer) FilterAdded ¶
func (_Miner *MinerFilterer) FilterAdded(opts *bind.FilterOpts) (*MinerAddedIterator, error)
FilterAdded is a free log retrieval operation binding the contract event 0x8ba5cdc385bc6c37c9a05ad09fbc238589c43602f4cee09c46856027df8a935a.
Solidity: event Added(uint256 start, address miner)
func (*MinerFilterer) FilterUpdated ¶
func (_Miner *MinerFilterer) FilterUpdated(opts *bind.FilterOpts) (*MinerUpdatedIterator, error)
FilterUpdated is a free log retrieval operation binding the contract event 0x335a1db8707ab5a5665bf4ad34e12411cb5e3ca47341ada89f8e263e20312347.
Solidity: event Updated(uint256 start, address miner)
func (*MinerFilterer) WatchAdded ¶
func (_Miner *MinerFilterer) WatchAdded(opts *bind.WatchOpts, sink chan<- *MinerAdded) (event.Subscription, error)
WatchAdded is a free log subscription operation binding the contract event 0x8ba5cdc385bc6c37c9a05ad09fbc238589c43602f4cee09c46856027df8a935a.
Solidity: event Added(uint256 start, address miner)
func (*MinerFilterer) WatchUpdated ¶
func (_Miner *MinerFilterer) WatchUpdated(opts *bind.WatchOpts, sink chan<- *MinerUpdated) (event.Subscription, error)
WatchUpdated is a free log subscription operation binding the contract event 0x335a1db8707ab5a5665bf4ad34e12411cb5e3ca47341ada89f8e263e20312347.
Solidity: event Updated(uint256 start, address miner)
type MinerRaw ¶
type MinerRaw struct {
Contract *Miner // Generic contract binding to access the raw methods on
}
MinerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MinerRaw) Call ¶
func (_Miner *MinerRaw) 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 (*MinerRaw) Transact ¶
func (_Miner *MinerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MinerRaw) TransactExact ¶
func (_Miner *MinerRaw) TransactExact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values, without autofill gas limit.
func (*MinerRaw) Transfer ¶
func (_Miner *MinerRaw) 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 MinerSession ¶
type MinerSession struct { Contract *Miner // 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 }
MinerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MinerSession) Get ¶
func (_Miner *MinerSession) Get(number *big.Int, miner common.Address) (uint64, uint32, common.Address, [32]byte, [32]byte, error)
Get is a free data retrieval call binding the contract method 0x7db6e675.
Solidity: function get(uint256 number, address miner) constant returns(uint64, uint32, address, bytes32, bytes32)
func (*MinerSession) GetNewAddedMiner ¶
GetNewAddedMiner is a free data retrieval call binding the contract method 0x1089602c.
Solidity: function getNewAddedMiner(uint256 number, uint32 index) constant returns(address miner)
func (*MinerSession) GetNewAddedMinersCount ¶
GetNewAddedMinersCount is a free data retrieval call binding the contract method 0x9532c1fb.
Solidity: function getNewAddedMinersCount(uint256 number) constant returns(uint256)
func (*MinerSession) IsMinerOfHeight ¶
IsMinerOfHeight is a free data retrieval call binding the contract method 0xe2162f0b.
Solidity: function isMinerOfHeight(uint256 number, address addr) constant returns(bool)
func (*MinerSession) Set ¶
func (_Miner *MinerSession) Set(start uint64, lifespan uint32, coinbase common.Address, vrfVerifier [32]byte, voteVerifier [32]byte) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x39fb25e9.
Solidity: function set(uint64 start, uint32 lifespan, address coinbase, bytes32 vrfVerifier, bytes32 voteVerifier) returns(bool)
func (*MinerSession) SetCoinbase ¶
func (_Miner *MinerSession) SetCoinbase(number *big.Int, coinbase common.Address) (*types.Transaction, error)
SetCoinbase is a paid mutator transaction binding the contract method 0xfcea86d7.
Solidity: function setCoinbase(uint256 number, address coinbase) returns(bool)
type MinerTransactor ¶
type MinerTransactor struct {
// contains filtered or unexported fields
}
MinerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMinerTransactor ¶
func NewMinerTransactor(address common.Address, transactor bind.ContractTransactor) (*MinerTransactor, error)
NewMinerTransactor creates a new write-only instance of Miner, bound to a specific deployed contract.
func (*MinerTransactor) Set ¶
func (_Miner *MinerTransactor) Set(opts *bind.TransactOpts, start uint64, lifespan uint32, coinbase common.Address, vrfVerifier [32]byte, voteVerifier [32]byte) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x39fb25e9.
Solidity: function set(uint64 start, uint32 lifespan, address coinbase, bytes32 vrfVerifier, bytes32 voteVerifier) returns(bool)
func (*MinerTransactor) SetCoinbase ¶
func (_Miner *MinerTransactor) SetCoinbase(opts *bind.TransactOpts, number *big.Int, coinbase common.Address) (*types.Transaction, error)
SetCoinbase is a paid mutator transaction binding the contract method 0xfcea86d7.
Solidity: function setCoinbase(uint256 number, address coinbase) returns(bool)
type MinerTransactorRaw ¶
type MinerTransactorRaw struct {
Contract *MinerTransactor // Generic write-only contract binding to access the raw methods on
}
MinerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MinerTransactorRaw) Transact ¶
func (_Miner *MinerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MinerTransactorRaw) Transfer ¶
func (_Miner *MinerTransactorRaw) 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 MinerTransactorSession ¶
type MinerTransactorSession struct { Contract *MinerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MinerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MinerTransactorSession) Set ¶
func (_Miner *MinerTransactorSession) Set(start uint64, lifespan uint32, coinbase common.Address, vrfVerifier [32]byte, voteVerifier [32]byte) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x39fb25e9.
Solidity: function set(uint64 start, uint32 lifespan, address coinbase, bytes32 vrfVerifier, bytes32 voteVerifier) returns(bool)
func (*MinerTransactorSession) SetCoinbase ¶
func (_Miner *MinerTransactorSession) SetCoinbase(number *big.Int, coinbase common.Address) (*types.Transaction, error)
SetCoinbase is a paid mutator transaction binding the contract method 0xfcea86d7.
Solidity: function setCoinbase(uint256 number, address coinbase) returns(bool)
type MinerUpdated ¶
type MinerUpdated struct { Start *big.Int Miner common.Address Raw types.Log // Blockchain specific contextual infos }
MinerUpdated represents a Updated event raised by the Miner contract.
type MinerUpdatedIterator ¶
type MinerUpdatedIterator struct { Event *MinerUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MinerUpdatedIterator is returned from FilterUpdated and is used to iterate over the raw logs and unpacked data for Updated events raised by the Miner contract.
func (*MinerUpdatedIterator) Close ¶
func (it *MinerUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MinerUpdatedIterator) Error ¶
func (it *MinerUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MinerUpdatedIterator) Next ¶
func (it *MinerUpdatedIterator) 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.