Documentation
¶
Index ¶
- Constants
- type DioneStaking
- type DioneStakingCaller
- func (_DioneStaking *DioneStakingCaller) AggregatorAddr(opts *bind.CallOpts) (common.Address, error)
- func (_DioneStaking *DioneStakingCaller) Dione(opts *bind.CallOpts) (common.Address, error)
- func (_DioneStaking *DioneStakingCaller) DisputeContractAddr(opts *bind.CallOpts) (common.Address, error)
- func (_DioneStaking *DioneStakingCaller) IsMiner(opts *bind.CallOpts, _minerAddr common.Address) (bool, error)
- func (_DioneStaking *DioneStakingCaller) MinerInfo(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_DioneStaking *DioneStakingCaller) MinerReward(opts *bind.CallOpts) (*big.Int, error)
- func (_DioneStaking *DioneStakingCaller) MinerStake(opts *bind.CallOpts, _minerAddr common.Address) (*big.Int, error)
- func (_DioneStaking *DioneStakingCaller) MinimumStake(opts *bind.CallOpts) (*big.Int, error)
- func (_DioneStaking *DioneStakingCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_DioneStaking *DioneStakingCaller) StartBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_DioneStaking *DioneStakingCaller) TotalStake(opts *bind.CallOpts) (*big.Int, error)
- type DioneStakingCallerRaw
- type DioneStakingCallerSession
- func (_DioneStaking *DioneStakingCallerSession) AggregatorAddr() (common.Address, error)
- func (_DioneStaking *DioneStakingCallerSession) Dione() (common.Address, error)
- func (_DioneStaking *DioneStakingCallerSession) DisputeContractAddr() (common.Address, error)
- func (_DioneStaking *DioneStakingCallerSession) IsMiner(_minerAddr common.Address) (bool, error)
- func (_DioneStaking *DioneStakingCallerSession) MinerInfo(arg0 common.Address) (struct{ ... }, error)
- func (_DioneStaking *DioneStakingCallerSession) MinerReward() (*big.Int, error)
- func (_DioneStaking *DioneStakingCallerSession) MinerStake(_minerAddr common.Address) (*big.Int, error)
- func (_DioneStaking *DioneStakingCallerSession) MinimumStake() (*big.Int, error)
- func (_DioneStaking *DioneStakingCallerSession) Owner() (common.Address, error)
- func (_DioneStaking *DioneStakingCallerSession) StartBlock() (*big.Int, error)
- func (_DioneStaking *DioneStakingCallerSession) TotalStake() (*big.Int, error)
- type DioneStakingFilterer
- func (_DioneStaking *DioneStakingFilterer) FilterMine(opts *bind.FilterOpts, miner []common.Address) (*DioneStakingMineIterator, error)
- func (_DioneStaking *DioneStakingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*DioneStakingOwnershipTransferredIterator, error)
- func (_DioneStaking *DioneStakingFilterer) FilterStake(opts *bind.FilterOpts, miner []common.Address) (*DioneStakingStakeIterator, error)
- func (_DioneStaking *DioneStakingFilterer) FilterWithdraw(opts *bind.FilterOpts, miner []common.Address) (*DioneStakingWithdrawIterator, error)
- func (_DioneStaking *DioneStakingFilterer) ParseMine(log types.Log) (*DioneStakingMine, error)
- func (_DioneStaking *DioneStakingFilterer) ParseOwnershipTransferred(log types.Log) (*DioneStakingOwnershipTransferred, error)
- func (_DioneStaking *DioneStakingFilterer) ParseStake(log types.Log) (*DioneStakingStake, error)
- func (_DioneStaking *DioneStakingFilterer) ParseWithdraw(log types.Log) (*DioneStakingWithdraw, error)
- func (_DioneStaking *DioneStakingFilterer) WatchMine(opts *bind.WatchOpts, sink chan<- *DioneStakingMine, miner []common.Address) (event.Subscription, error)
- func (_DioneStaking *DioneStakingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DioneStakingOwnershipTransferred, ...) (event.Subscription, error)
- func (_DioneStaking *DioneStakingFilterer) WatchStake(opts *bind.WatchOpts, sink chan<- *DioneStakingStake, miner []common.Address) (event.Subscription, error)
- func (_DioneStaking *DioneStakingFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *DioneStakingWithdraw, ...) (event.Subscription, error)
- type DioneStakingMine
- type DioneStakingMineIterator
- type DioneStakingOwnershipTransferred
- type DioneStakingOwnershipTransferredIterator
- type DioneStakingRaw
- func (_DioneStaking *DioneStakingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_DioneStaking *DioneStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DioneStakingSession
- func (_DioneStaking *DioneStakingSession) AggregatorAddr() (common.Address, error)
- func (_DioneStaking *DioneStakingSession) Dione() (common.Address, error)
- func (_DioneStaking *DioneStakingSession) DisputeContractAddr() (common.Address, error)
- func (_DioneStaking *DioneStakingSession) IsMiner(_minerAddr common.Address) (bool, error)
- func (_DioneStaking *DioneStakingSession) Mine(_minerAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) MineAndStake(_minerAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) MinerInfo(arg0 common.Address) (struct{ ... }, error)
- func (_DioneStaking *DioneStakingSession) MinerReward() (*big.Int, error)
- func (_DioneStaking *DioneStakingSession) MinerStake(_minerAddr common.Address) (*big.Int, error)
- func (_DioneStaking *DioneStakingSession) MinimumStake() (*big.Int, error)
- func (_DioneStaking *DioneStakingSession) Owner() (common.Address, error)
- func (_DioneStaking *DioneStakingSession) RenounceOwnership() (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) SetAggregator(_aggregatorAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) SetMinerReward(_minerReward *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) SetMinimumStake(_minimumStake *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) SlashMiner(miner common.Address, receipentMiners []common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) Stake(_amount *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) StartBlock() (*big.Int, error)
- func (_DioneStaking *DioneStakingSession) TotalStake() (*big.Int, error)
- func (_DioneStaking *DioneStakingSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingSession) Withdraw(_amount *big.Int) (*types.Transaction, error)
- type DioneStakingStake
- type DioneStakingStakeIterator
- type DioneStakingTransactor
- func (_DioneStaking *DioneStakingTransactor) Mine(opts *bind.TransactOpts, _minerAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) MineAndStake(opts *bind.TransactOpts, _minerAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) SetAggregator(opts *bind.TransactOpts, _aggregatorAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) SetMinerReward(opts *bind.TransactOpts, _minerReward *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) SetMinimumStake(opts *bind.TransactOpts, _minimumStake *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) SlashMiner(opts *bind.TransactOpts, miner common.Address, ...) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) Stake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactor) Withdraw(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
- type DioneStakingTransactorRaw
- type DioneStakingTransactorSession
- func (_DioneStaking *DioneStakingTransactorSession) Mine(_minerAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) MineAndStake(_minerAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) SetAggregator(_aggregatorAddr common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) SetMinerReward(_minerReward *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) SetMinimumStake(_minimumStake *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) SlashMiner(miner common.Address, receipentMiners []common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) Stake(_amount *big.Int) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_DioneStaking *DioneStakingTransactorSession) Withdraw(_amount *big.Int) (*types.Transaction, error)
- type DioneStakingWithdraw
- type DioneStakingWithdrawIterator
Constants ¶
const DioneStakingABI = "" /* 5591-byte string literal not displayed */
DioneStakingABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DioneStaking ¶
type DioneStaking struct { DioneStakingCaller // Read-only binding to the contract DioneStakingTransactor // Write-only binding to the contract DioneStakingFilterer // Log filterer for contract events }
DioneStaking is an auto generated Go binding around an Ethereum contract.
func NewDioneStaking ¶
func NewDioneStaking(address common.Address, backend bind.ContractBackend) (*DioneStaking, error)
NewDioneStaking creates a new instance of DioneStaking, bound to a specific deployed contract.
type DioneStakingCaller ¶
type DioneStakingCaller struct {
// contains filtered or unexported fields
}
DioneStakingCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDioneStakingCaller ¶
func NewDioneStakingCaller(address common.Address, caller bind.ContractCaller) (*DioneStakingCaller, error)
NewDioneStakingCaller creates a new read-only instance of DioneStaking, bound to a specific deployed contract.
func (*DioneStakingCaller) AggregatorAddr ¶
func (_DioneStaking *DioneStakingCaller) AggregatorAddr(opts *bind.CallOpts) (common.Address, error)
AggregatorAddr is a free data retrieval call binding the contract method 0x82762600.
Solidity: function aggregatorAddr() view returns(address)
func (*DioneStakingCaller) Dione ¶
Dione is a free data retrieval call binding the contract method 0x3425dfa6.
Solidity: function dione() view returns(address)
func (*DioneStakingCaller) DisputeContractAddr ¶
func (_DioneStaking *DioneStakingCaller) DisputeContractAddr(opts *bind.CallOpts) (common.Address, error)
DisputeContractAddr is a free data retrieval call binding the contract method 0x2accb21a.
Solidity: function disputeContractAddr() view returns(address)
func (*DioneStakingCaller) IsMiner ¶
func (_DioneStaking *DioneStakingCaller) IsMiner(opts *bind.CallOpts, _minerAddr common.Address) (bool, error)
IsMiner is a free data retrieval call binding the contract method 0x701b70ac.
Solidity: function isMiner(address _minerAddr) view returns(bool)
func (*DioneStakingCaller) MinerInfo ¶
func (_DioneStaking *DioneStakingCaller) MinerInfo(opts *bind.CallOpts, arg0 common.Address) (struct { Amount *big.Int FirstStakeBlock *big.Int LastRewardBlock *big.Int }, error)
MinerInfo is a free data retrieval call binding the contract method 0x03337fd8.
Solidity: function minerInfo(address ) view returns(uint256 amount, uint256 firstStakeBlock, uint256 lastRewardBlock)
func (*DioneStakingCaller) MinerReward ¶
MinerReward is a free data retrieval call binding the contract method 0xcbed45eb.
Solidity: function minerReward() view returns(uint256)
func (*DioneStakingCaller) MinerStake ¶
func (_DioneStaking *DioneStakingCaller) MinerStake(opts *bind.CallOpts, _minerAddr common.Address) (*big.Int, error)
MinerStake is a free data retrieval call binding the contract method 0x8eaa3850.
Solidity: function minerStake(address _minerAddr) view returns(uint256)
func (*DioneStakingCaller) MinimumStake ¶
MinimumStake is a free data retrieval call binding the contract method 0xec5ffac2.
Solidity: function minimumStake() view returns(uint256)
func (*DioneStakingCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*DioneStakingCaller) StartBlock ¶
StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.
Solidity: function startBlock() view returns(uint256)
func (*DioneStakingCaller) TotalStake ¶
TotalStake is a free data retrieval call binding the contract method 0x8b0e9f3f.
Solidity: function totalStake() view returns(uint256)
type DioneStakingCallerRaw ¶
type DioneStakingCallerRaw struct {
Contract *DioneStakingCaller // Generic read-only contract binding to access the raw methods on
}
DioneStakingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DioneStakingCallerRaw) Call ¶
func (_DioneStaking *DioneStakingCallerRaw) 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 DioneStakingCallerSession ¶
type DioneStakingCallerSession struct { Contract *DioneStakingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DioneStakingCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DioneStakingCallerSession) AggregatorAddr ¶
func (_DioneStaking *DioneStakingCallerSession) AggregatorAddr() (common.Address, error)
AggregatorAddr is a free data retrieval call binding the contract method 0x82762600.
Solidity: function aggregatorAddr() view returns(address)
func (*DioneStakingCallerSession) Dione ¶
func (_DioneStaking *DioneStakingCallerSession) Dione() (common.Address, error)
Dione is a free data retrieval call binding the contract method 0x3425dfa6.
Solidity: function dione() view returns(address)
func (*DioneStakingCallerSession) DisputeContractAddr ¶
func (_DioneStaking *DioneStakingCallerSession) DisputeContractAddr() (common.Address, error)
DisputeContractAddr is a free data retrieval call binding the contract method 0x2accb21a.
Solidity: function disputeContractAddr() view returns(address)
func (*DioneStakingCallerSession) IsMiner ¶
func (_DioneStaking *DioneStakingCallerSession) IsMiner(_minerAddr common.Address) (bool, error)
IsMiner is a free data retrieval call binding the contract method 0x701b70ac.
Solidity: function isMiner(address _minerAddr) view returns(bool)
func (*DioneStakingCallerSession) MinerInfo ¶
func (_DioneStaking *DioneStakingCallerSession) MinerInfo(arg0 common.Address) (struct { Amount *big.Int FirstStakeBlock *big.Int LastRewardBlock *big.Int }, error)
MinerInfo is a free data retrieval call binding the contract method 0x03337fd8.
Solidity: function minerInfo(address ) view returns(uint256 amount, uint256 firstStakeBlock, uint256 lastRewardBlock)
func (*DioneStakingCallerSession) MinerReward ¶
func (_DioneStaking *DioneStakingCallerSession) MinerReward() (*big.Int, error)
MinerReward is a free data retrieval call binding the contract method 0xcbed45eb.
Solidity: function minerReward() view returns(uint256)
func (*DioneStakingCallerSession) MinerStake ¶
func (_DioneStaking *DioneStakingCallerSession) MinerStake(_minerAddr common.Address) (*big.Int, error)
MinerStake is a free data retrieval call binding the contract method 0x8eaa3850.
Solidity: function minerStake(address _minerAddr) view returns(uint256)
func (*DioneStakingCallerSession) MinimumStake ¶
func (_DioneStaking *DioneStakingCallerSession) MinimumStake() (*big.Int, error)
MinimumStake is a free data retrieval call binding the contract method 0xec5ffac2.
Solidity: function minimumStake() view returns(uint256)
func (*DioneStakingCallerSession) Owner ¶
func (_DioneStaking *DioneStakingCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*DioneStakingCallerSession) StartBlock ¶
func (_DioneStaking *DioneStakingCallerSession) StartBlock() (*big.Int, error)
StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.
Solidity: function startBlock() view returns(uint256)
func (*DioneStakingCallerSession) TotalStake ¶
func (_DioneStaking *DioneStakingCallerSession) TotalStake() (*big.Int, error)
TotalStake is a free data retrieval call binding the contract method 0x8b0e9f3f.
Solidity: function totalStake() view returns(uint256)
type DioneStakingFilterer ¶
type DioneStakingFilterer struct {
// contains filtered or unexported fields
}
DioneStakingFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDioneStakingFilterer ¶
func NewDioneStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*DioneStakingFilterer, error)
NewDioneStakingFilterer creates a new log filterer instance of DioneStaking, bound to a specific deployed contract.
func (*DioneStakingFilterer) FilterMine ¶
func (_DioneStaking *DioneStakingFilterer) FilterMine(opts *bind.FilterOpts, miner []common.Address) (*DioneStakingMineIterator, error)
FilterMine is a free log retrieval operation binding the contract event 0xf23a961744a760027f8811c59a0eaef0d29cf965578b17412bcc375b52fa39d1.
Solidity: event Mine(address indexed miner, uint256 blockNumber)
func (*DioneStakingFilterer) FilterOwnershipTransferred ¶
func (_DioneStaking *DioneStakingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DioneStakingOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*DioneStakingFilterer) FilterStake ¶
func (_DioneStaking *DioneStakingFilterer) FilterStake(opts *bind.FilterOpts, miner []common.Address) (*DioneStakingStakeIterator, error)
FilterStake is a free log retrieval operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
Solidity: event Stake(address indexed miner, uint256 amount)
func (*DioneStakingFilterer) FilterWithdraw ¶
func (_DioneStaking *DioneStakingFilterer) FilterWithdraw(opts *bind.FilterOpts, miner []common.Address) (*DioneStakingWithdrawIterator, error)
FilterWithdraw is a free log retrieval operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.
Solidity: event Withdraw(address indexed miner, uint256 amount)
func (*DioneStakingFilterer) ParseMine ¶
func (_DioneStaking *DioneStakingFilterer) ParseMine(log types.Log) (*DioneStakingMine, error)
ParseMine is a log parse operation binding the contract event 0xf23a961744a760027f8811c59a0eaef0d29cf965578b17412bcc375b52fa39d1.
Solidity: event Mine(address indexed miner, uint256 blockNumber)
func (*DioneStakingFilterer) ParseOwnershipTransferred ¶
func (_DioneStaking *DioneStakingFilterer) ParseOwnershipTransferred(log types.Log) (*DioneStakingOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*DioneStakingFilterer) ParseStake ¶
func (_DioneStaking *DioneStakingFilterer) ParseStake(log types.Log) (*DioneStakingStake, error)
ParseStake is a log parse operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
Solidity: event Stake(address indexed miner, uint256 amount)
func (*DioneStakingFilterer) ParseWithdraw ¶
func (_DioneStaking *DioneStakingFilterer) ParseWithdraw(log types.Log) (*DioneStakingWithdraw, error)
ParseWithdraw is a log parse operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.
Solidity: event Withdraw(address indexed miner, uint256 amount)
func (*DioneStakingFilterer) WatchMine ¶
func (_DioneStaking *DioneStakingFilterer) WatchMine(opts *bind.WatchOpts, sink chan<- *DioneStakingMine, miner []common.Address) (event.Subscription, error)
WatchMine is a free log subscription operation binding the contract event 0xf23a961744a760027f8811c59a0eaef0d29cf965578b17412bcc375b52fa39d1.
Solidity: event Mine(address indexed miner, uint256 blockNumber)
func (*DioneStakingFilterer) WatchOwnershipTransferred ¶
func (_DioneStaking *DioneStakingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DioneStakingOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*DioneStakingFilterer) WatchStake ¶
func (_DioneStaking *DioneStakingFilterer) WatchStake(opts *bind.WatchOpts, sink chan<- *DioneStakingStake, miner []common.Address) (event.Subscription, error)
WatchStake is a free log subscription operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
Solidity: event Stake(address indexed miner, uint256 amount)
func (*DioneStakingFilterer) WatchWithdraw ¶
func (_DioneStaking *DioneStakingFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *DioneStakingWithdraw, miner []common.Address) (event.Subscription, error)
WatchWithdraw is a free log subscription operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.
Solidity: event Withdraw(address indexed miner, uint256 amount)
type DioneStakingMine ¶
type DioneStakingMine struct { Miner common.Address BlockNumber *big.Int Raw types.Log // Blockchain specific contextual infos }
DioneStakingMine represents a Mine event raised by the DioneStaking contract.
type DioneStakingMineIterator ¶
type DioneStakingMineIterator struct { Event *DioneStakingMine // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DioneStakingMineIterator is returned from FilterMine and is used to iterate over the raw logs and unpacked data for Mine events raised by the DioneStaking contract.
func (*DioneStakingMineIterator) Close ¶
func (it *DioneStakingMineIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DioneStakingMineIterator) Error ¶
func (it *DioneStakingMineIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DioneStakingMineIterator) Next ¶
func (it *DioneStakingMineIterator) 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 DioneStakingOwnershipTransferred ¶
type DioneStakingOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
DioneStakingOwnershipTransferred represents a OwnershipTransferred event raised by the DioneStaking contract.
type DioneStakingOwnershipTransferredIterator ¶
type DioneStakingOwnershipTransferredIterator struct { Event *DioneStakingOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DioneStakingOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the DioneStaking contract.
func (*DioneStakingOwnershipTransferredIterator) Close ¶
func (it *DioneStakingOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DioneStakingOwnershipTransferredIterator) Error ¶
func (it *DioneStakingOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DioneStakingOwnershipTransferredIterator) Next ¶
func (it *DioneStakingOwnershipTransferredIterator) 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 DioneStakingRaw ¶
type DioneStakingRaw struct {
Contract *DioneStaking // Generic contract binding to access the raw methods on
}
DioneStakingRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DioneStakingRaw) Call ¶
func (_DioneStaking *DioneStakingRaw) 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 (*DioneStakingRaw) Transact ¶
func (_DioneStaking *DioneStakingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DioneStakingRaw) Transfer ¶
func (_DioneStaking *DioneStakingRaw) 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 DioneStakingSession ¶
type DioneStakingSession struct { Contract *DioneStaking // 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 }
DioneStakingSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DioneStakingSession) AggregatorAddr ¶
func (_DioneStaking *DioneStakingSession) AggregatorAddr() (common.Address, error)
AggregatorAddr is a free data retrieval call binding the contract method 0x82762600.
Solidity: function aggregatorAddr() view returns(address)
func (*DioneStakingSession) Dione ¶
func (_DioneStaking *DioneStakingSession) Dione() (common.Address, error)
Dione is a free data retrieval call binding the contract method 0x3425dfa6.
Solidity: function dione() view returns(address)
func (*DioneStakingSession) DisputeContractAddr ¶
func (_DioneStaking *DioneStakingSession) DisputeContractAddr() (common.Address, error)
DisputeContractAddr is a free data retrieval call binding the contract method 0x2accb21a.
Solidity: function disputeContractAddr() view returns(address)
func (*DioneStakingSession) IsMiner ¶
func (_DioneStaking *DioneStakingSession) IsMiner(_minerAddr common.Address) (bool, error)
IsMiner is a free data retrieval call binding the contract method 0x701b70ac.
Solidity: function isMiner(address _minerAddr) view returns(bool)
func (*DioneStakingSession) Mine ¶
func (_DioneStaking *DioneStakingSession) Mine(_minerAddr common.Address) (*types.Transaction, error)
Mine is a paid mutator transaction binding the contract method 0x81923240.
Solidity: function mine(address _minerAddr) returns()
func (*DioneStakingSession) MineAndStake ¶
func (_DioneStaking *DioneStakingSession) MineAndStake(_minerAddr common.Address) (*types.Transaction, error)
MineAndStake is a paid mutator transaction binding the contract method 0x407b4547.
Solidity: function mineAndStake(address _minerAddr) returns()
func (*DioneStakingSession) MinerInfo ¶
func (_DioneStaking *DioneStakingSession) MinerInfo(arg0 common.Address) (struct { Amount *big.Int FirstStakeBlock *big.Int LastRewardBlock *big.Int }, error)
MinerInfo is a free data retrieval call binding the contract method 0x03337fd8.
Solidity: function minerInfo(address ) view returns(uint256 amount, uint256 firstStakeBlock, uint256 lastRewardBlock)
func (*DioneStakingSession) MinerReward ¶
func (_DioneStaking *DioneStakingSession) MinerReward() (*big.Int, error)
MinerReward is a free data retrieval call binding the contract method 0xcbed45eb.
Solidity: function minerReward() view returns(uint256)
func (*DioneStakingSession) MinerStake ¶
MinerStake is a free data retrieval call binding the contract method 0x8eaa3850.
Solidity: function minerStake(address _minerAddr) view returns(uint256)
func (*DioneStakingSession) MinimumStake ¶
func (_DioneStaking *DioneStakingSession) MinimumStake() (*big.Int, error)
MinimumStake is a free data retrieval call binding the contract method 0xec5ffac2.
Solidity: function minimumStake() view returns(uint256)
func (*DioneStakingSession) Owner ¶
func (_DioneStaking *DioneStakingSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*DioneStakingSession) RenounceOwnership ¶
func (_DioneStaking *DioneStakingSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*DioneStakingSession) SetAggregator ¶
func (_DioneStaking *DioneStakingSession) SetAggregator(_aggregatorAddr common.Address) (*types.Transaction, error)
SetAggregator is a paid mutator transaction binding the contract method 0xf9120af6.
Solidity: function setAggregator(address _aggregatorAddr) returns()
func (*DioneStakingSession) SetMinerReward ¶
func (_DioneStaking *DioneStakingSession) SetMinerReward(_minerReward *big.Int) (*types.Transaction, error)
SetMinerReward is a paid mutator transaction binding the contract method 0x816caed5.
Solidity: function setMinerReward(uint256 _minerReward) returns()
func (*DioneStakingSession) SetMinimumStake ¶
func (_DioneStaking *DioneStakingSession) SetMinimumStake(_minimumStake *big.Int) (*types.Transaction, error)
SetMinimumStake is a paid mutator transaction binding the contract method 0x233e9903.
Solidity: function setMinimumStake(uint256 _minimumStake) returns()
func (*DioneStakingSession) SlashMiner ¶
func (_DioneStaking *DioneStakingSession) SlashMiner(miner common.Address, receipentMiners []common.Address) (*types.Transaction, error)
SlashMiner is a paid mutator transaction binding the contract method 0x54f96e12.
Solidity: function slashMiner(address miner, address[] receipentMiners) returns()
func (*DioneStakingSession) Stake ¶
func (_DioneStaking *DioneStakingSession) Stake(_amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*DioneStakingSession) StartBlock ¶
func (_DioneStaking *DioneStakingSession) StartBlock() (*big.Int, error)
StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.
Solidity: function startBlock() view returns(uint256)
func (*DioneStakingSession) TotalStake ¶
func (_DioneStaking *DioneStakingSession) TotalStake() (*big.Int, error)
TotalStake is a free data retrieval call binding the contract method 0x8b0e9f3f.
Solidity: function totalStake() view returns(uint256)
func (*DioneStakingSession) TransferOwnership ¶
func (_DioneStaking *DioneStakingSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*DioneStakingSession) Withdraw ¶
func (_DioneStaking *DioneStakingSession) Withdraw(_amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _amount) returns()
type DioneStakingStake ¶
type DioneStakingStake struct { Miner common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DioneStakingStake represents a Stake event raised by the DioneStaking contract.
type DioneStakingStakeIterator ¶
type DioneStakingStakeIterator struct { Event *DioneStakingStake // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DioneStakingStakeIterator is returned from FilterStake and is used to iterate over the raw logs and unpacked data for Stake events raised by the DioneStaking contract.
func (*DioneStakingStakeIterator) Close ¶
func (it *DioneStakingStakeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DioneStakingStakeIterator) Error ¶
func (it *DioneStakingStakeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DioneStakingStakeIterator) Next ¶
func (it *DioneStakingStakeIterator) 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 DioneStakingTransactor ¶
type DioneStakingTransactor struct {
// contains filtered or unexported fields
}
DioneStakingTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDioneStakingTransactor ¶
func NewDioneStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*DioneStakingTransactor, error)
NewDioneStakingTransactor creates a new write-only instance of DioneStaking, bound to a specific deployed contract.
func (*DioneStakingTransactor) Mine ¶
func (_DioneStaking *DioneStakingTransactor) Mine(opts *bind.TransactOpts, _minerAddr common.Address) (*types.Transaction, error)
Mine is a paid mutator transaction binding the contract method 0x81923240.
Solidity: function mine(address _minerAddr) returns()
func (*DioneStakingTransactor) MineAndStake ¶
func (_DioneStaking *DioneStakingTransactor) MineAndStake(opts *bind.TransactOpts, _minerAddr common.Address) (*types.Transaction, error)
MineAndStake is a paid mutator transaction binding the contract method 0x407b4547.
Solidity: function mineAndStake(address _minerAddr) returns()
func (*DioneStakingTransactor) RenounceOwnership ¶
func (_DioneStaking *DioneStakingTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*DioneStakingTransactor) SetAggregator ¶
func (_DioneStaking *DioneStakingTransactor) SetAggregator(opts *bind.TransactOpts, _aggregatorAddr common.Address) (*types.Transaction, error)
SetAggregator is a paid mutator transaction binding the contract method 0xf9120af6.
Solidity: function setAggregator(address _aggregatorAddr) returns()
func (*DioneStakingTransactor) SetMinerReward ¶
func (_DioneStaking *DioneStakingTransactor) SetMinerReward(opts *bind.TransactOpts, _minerReward *big.Int) (*types.Transaction, error)
SetMinerReward is a paid mutator transaction binding the contract method 0x816caed5.
Solidity: function setMinerReward(uint256 _minerReward) returns()
func (*DioneStakingTransactor) SetMinimumStake ¶
func (_DioneStaking *DioneStakingTransactor) SetMinimumStake(opts *bind.TransactOpts, _minimumStake *big.Int) (*types.Transaction, error)
SetMinimumStake is a paid mutator transaction binding the contract method 0x233e9903.
Solidity: function setMinimumStake(uint256 _minimumStake) returns()
func (*DioneStakingTransactor) SlashMiner ¶
func (_DioneStaking *DioneStakingTransactor) SlashMiner(opts *bind.TransactOpts, miner common.Address, receipentMiners []common.Address) (*types.Transaction, error)
SlashMiner is a paid mutator transaction binding the contract method 0x54f96e12.
Solidity: function slashMiner(address miner, address[] receipentMiners) returns()
func (*DioneStakingTransactor) Stake ¶
func (_DioneStaking *DioneStakingTransactor) Stake(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*DioneStakingTransactor) TransferOwnership ¶
func (_DioneStaking *DioneStakingTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*DioneStakingTransactor) Withdraw ¶
func (_DioneStaking *DioneStakingTransactor) Withdraw(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _amount) returns()
type DioneStakingTransactorRaw ¶
type DioneStakingTransactorRaw struct {
Contract *DioneStakingTransactor // Generic write-only contract binding to access the raw methods on
}
DioneStakingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DioneStakingTransactorRaw) Transact ¶
func (_DioneStaking *DioneStakingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DioneStakingTransactorRaw) Transfer ¶
func (_DioneStaking *DioneStakingTransactorRaw) 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 DioneStakingTransactorSession ¶
type DioneStakingTransactorSession struct { Contract *DioneStakingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DioneStakingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DioneStakingTransactorSession) Mine ¶
func (_DioneStaking *DioneStakingTransactorSession) Mine(_minerAddr common.Address) (*types.Transaction, error)
Mine is a paid mutator transaction binding the contract method 0x81923240.
Solidity: function mine(address _minerAddr) returns()
func (*DioneStakingTransactorSession) MineAndStake ¶
func (_DioneStaking *DioneStakingTransactorSession) MineAndStake(_minerAddr common.Address) (*types.Transaction, error)
MineAndStake is a paid mutator transaction binding the contract method 0x407b4547.
Solidity: function mineAndStake(address _minerAddr) returns()
func (*DioneStakingTransactorSession) RenounceOwnership ¶
func (_DioneStaking *DioneStakingTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*DioneStakingTransactorSession) SetAggregator ¶
func (_DioneStaking *DioneStakingTransactorSession) SetAggregator(_aggregatorAddr common.Address) (*types.Transaction, error)
SetAggregator is a paid mutator transaction binding the contract method 0xf9120af6.
Solidity: function setAggregator(address _aggregatorAddr) returns()
func (*DioneStakingTransactorSession) SetMinerReward ¶
func (_DioneStaking *DioneStakingTransactorSession) SetMinerReward(_minerReward *big.Int) (*types.Transaction, error)
SetMinerReward is a paid mutator transaction binding the contract method 0x816caed5.
Solidity: function setMinerReward(uint256 _minerReward) returns()
func (*DioneStakingTransactorSession) SetMinimumStake ¶
func (_DioneStaking *DioneStakingTransactorSession) SetMinimumStake(_minimumStake *big.Int) (*types.Transaction, error)
SetMinimumStake is a paid mutator transaction binding the contract method 0x233e9903.
Solidity: function setMinimumStake(uint256 _minimumStake) returns()
func (*DioneStakingTransactorSession) SlashMiner ¶
func (_DioneStaking *DioneStakingTransactorSession) SlashMiner(miner common.Address, receipentMiners []common.Address) (*types.Transaction, error)
SlashMiner is a paid mutator transaction binding the contract method 0x54f96e12.
Solidity: function slashMiner(address miner, address[] receipentMiners) returns()
func (*DioneStakingTransactorSession) Stake ¶
func (_DioneStaking *DioneStakingTransactorSession) Stake(_amount *big.Int) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0xa694fc3a.
Solidity: function stake(uint256 _amount) returns()
func (*DioneStakingTransactorSession) TransferOwnership ¶
func (_DioneStaking *DioneStakingTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*DioneStakingTransactorSession) Withdraw ¶
func (_DioneStaking *DioneStakingTransactorSession) Withdraw(_amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 _amount) returns()
type DioneStakingWithdraw ¶
type DioneStakingWithdraw struct { Miner common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
DioneStakingWithdraw represents a Withdraw event raised by the DioneStaking contract.
type DioneStakingWithdrawIterator ¶
type DioneStakingWithdrawIterator struct { Event *DioneStakingWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DioneStakingWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the DioneStaking contract.
func (*DioneStakingWithdrawIterator) Close ¶
func (it *DioneStakingWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DioneStakingWithdrawIterator) Error ¶
func (it *DioneStakingWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DioneStakingWithdrawIterator) Next ¶
func (it *DioneStakingWithdrawIterator) 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.