Documentation
¶
Index ¶
- Constants
- type Reward
- type RewardCaller
- func (_Reward *RewardCaller) BasicCriteria(opts *bind.CallOpts) (*big.Int, error)
- func (_Reward *RewardCaller) BonusPool(opts *bind.CallOpts) (*big.Int, error)
- func (_Reward *RewardCaller) GetFreeBalanceOf(opts *bind.CallOpts, _addr common.Address) (*big.Int, error)
- func (_Reward *RewardCaller) GetInvestors(opts *bind.CallOpts) ([]common.Address, error)
- func (_Reward *RewardCaller) GetLockedBalanceOf(opts *bind.CallOpts, _addr common.Address) (*big.Int, error)
- func (_Reward *RewardCaller) GetTotalAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_Reward *RewardCaller) GetTotalBalanceOf(opts *bind.CallOpts, _addr common.Address) (*big.Int, error)
- func (_Reward *RewardCaller) GetTotalLockedAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_Reward *RewardCaller) Investors(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_Reward *RewardCaller) IsContract(opts *bind.CallOpts, addr common.Address) (bool, error)
- func (_Reward *RewardCaller) IsEnode(opts *bind.CallOpts, _addr common.Address) (bool, error)
- func (_Reward *RewardCaller) IsToRenew(opts *bind.CallOpts, _addr common.Address) (bool, error)
- func (_Reward *RewardCaller) Locked(opts *bind.CallOpts) (bool, error)
- func (_Reward *RewardCaller) NextRound(opts *bind.CallOpts) (*big.Int, error)
- func (_Reward *RewardCaller) NextRoundStartTime(opts *bind.CallOpts) (*big.Int, error)
- func (_Reward *RewardCaller) Period(opts *bind.CallOpts) (*big.Int, error)
- type RewardCallerRaw
- type RewardCallerSession
- func (_Reward *RewardCallerSession) BasicCriteria() (*big.Int, error)
- func (_Reward *RewardCallerSession) BonusPool() (*big.Int, error)
- func (_Reward *RewardCallerSession) GetFreeBalanceOf(_addr common.Address) (*big.Int, error)
- func (_Reward *RewardCallerSession) GetInvestors() ([]common.Address, error)
- func (_Reward *RewardCallerSession) GetLockedBalanceOf(_addr common.Address) (*big.Int, error)
- func (_Reward *RewardCallerSession) GetTotalAmount() (*big.Int, error)
- func (_Reward *RewardCallerSession) GetTotalBalanceOf(_addr common.Address) (*big.Int, error)
- func (_Reward *RewardCallerSession) GetTotalLockedAmount() (*big.Int, error)
- func (_Reward *RewardCallerSession) Investors(arg0 common.Address) (struct{ ... }, error)
- func (_Reward *RewardCallerSession) IsContract(addr common.Address) (bool, error)
- func (_Reward *RewardCallerSession) IsEnode(_addr common.Address) (bool, error)
- func (_Reward *RewardCallerSession) IsToRenew(_addr common.Address) (bool, error)
- func (_Reward *RewardCallerSession) Locked() (bool, error)
- func (_Reward *RewardCallerSession) NextRound() (*big.Int, error)
- func (_Reward *RewardCallerSession) NextRoundStartTime() (*big.Int, error)
- func (_Reward *RewardCallerSession) Period() (*big.Int, error)
- type RewardContinuedInvest
- type RewardContinuedInvestIterator
- type RewardDepositInsufficient
- type RewardDepositInsufficientIterator
- type RewardFilterer
- func (_Reward *RewardFilterer) FilterContinuedInvest(opts *bind.FilterOpts) (*RewardContinuedInvestIterator, error)
- func (_Reward *RewardFilterer) FilterDepositInsufficient(opts *bind.FilterOpts) (*RewardDepositInsufficientIterator, error)
- func (_Reward *RewardFilterer) FilterFundBonusPool(opts *bind.FilterOpts) (*RewardFundBonusPoolIterator, error)
- func (_Reward *RewardFilterer) FilterJoinEnodes(opts *bind.FilterOpts) (*RewardJoinEnodesIterator, error)
- func (_Reward *RewardFilterer) FilterNewRaise(opts *bind.FilterOpts) (*RewardNewRaiseIterator, error)
- func (_Reward *RewardFilterer) FilterOwnerSetBonusPool(opts *bind.FilterOpts) (*RewardOwnerSetBonusPoolIterator, error)
- func (_Reward *RewardFilterer) FilterRefundAll(opts *bind.FilterOpts) (*RewardRefundAllIterator, error)
- func (_Reward *RewardFilterer) FilterRefundDeposit(opts *bind.FilterOpts) (*RewardRefundDepositIterator, error)
- func (_Reward *RewardFilterer) FilterSubmitDeposit(opts *bind.FilterOpts) (*RewardSubmitDepositIterator, error)
- func (_Reward *RewardFilterer) FilterWithdrawDeposit(opts *bind.FilterOpts) (*RewardWithdrawDepositIterator, error)
- func (_Reward *RewardFilterer) WatchContinuedInvest(opts *bind.WatchOpts, sink chan<- *RewardContinuedInvest) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchDepositInsufficient(opts *bind.WatchOpts, sink chan<- *RewardDepositInsufficient) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchFundBonusPool(opts *bind.WatchOpts, sink chan<- *RewardFundBonusPool) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchJoinEnodes(opts *bind.WatchOpts, sink chan<- *RewardJoinEnodes) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchNewRaise(opts *bind.WatchOpts, sink chan<- *RewardNewRaise) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchOwnerSetBonusPool(opts *bind.WatchOpts, sink chan<- *RewardOwnerSetBonusPool) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchRefundAll(opts *bind.WatchOpts, sink chan<- *RewardRefundAll) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchRefundDeposit(opts *bind.WatchOpts, sink chan<- *RewardRefundDeposit) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchSubmitDeposit(opts *bind.WatchOpts, sink chan<- *RewardSubmitDeposit) (event.Subscription, error)
- func (_Reward *RewardFilterer) WatchWithdrawDeposit(opts *bind.WatchOpts, sink chan<- *RewardWithdrawDeposit) (event.Subscription, error)
- type RewardFundBonusPool
- type RewardFundBonusPoolIterator
- type RewardJoinEnodes
- type RewardJoinEnodesIterator
- type RewardNewRaise
- type RewardNewRaiseIterator
- type RewardOwnerSetBonusPool
- type RewardOwnerSetBonusPoolIterator
- type RewardRaw
- func (_Reward *RewardRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Reward *RewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Reward *RewardRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RewardRefundAll
- type RewardRefundAllIterator
- type RewardRefundDeposit
- type RewardRefundDepositIterator
- type RewardSession
- func (_Reward *RewardSession) BasicCriteria() (*big.Int, error)
- func (_Reward *RewardSession) BonusPool() (*big.Int, error)
- func (_Reward *RewardSession) DisableContract() (*types.Transaction, error)
- func (_Reward *RewardSession) GetFreeBalanceOf(_addr common.Address) (*big.Int, error)
- func (_Reward *RewardSession) GetInvestors() ([]common.Address, error)
- func (_Reward *RewardSession) GetLockedBalanceOf(_addr common.Address) (*big.Int, error)
- func (_Reward *RewardSession) GetTotalAmount() (*big.Int, error)
- func (_Reward *RewardSession) GetTotalBalanceOf(_addr common.Address) (*big.Int, error)
- func (_Reward *RewardSession) GetTotalLockedAmount() (*big.Int, error)
- func (_Reward *RewardSession) Investors(arg0 common.Address) (struct{ ... }, error)
- func (_Reward *RewardSession) IsContract(addr common.Address) (bool, error)
- func (_Reward *RewardSession) IsEnode(_addr common.Address) (bool, error)
- func (_Reward *RewardSession) IsToRenew(_addr common.Address) (bool, error)
- func (_Reward *RewardSession) Locked() (bool, error)
- func (_Reward *RewardSession) NewRaise() (*types.Transaction, error)
- func (_Reward *RewardSession) NextRound() (*big.Int, error)
- func (_Reward *RewardSession) NextRoundStartTime() (*big.Int, error)
- func (_Reward *RewardSession) Period() (*big.Int, error)
- func (_Reward *RewardSession) QuitRenew() (*types.Transaction, error)
- func (_Reward *RewardSession) RefundAll() (*types.Transaction, error)
- func (_Reward *RewardSession) RefundDeposit(_addr common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Reward *RewardSession) SetBonusPool() (*types.Transaction, error)
- func (_Reward *RewardSession) SetCriteria(criteria *big.Int) (*types.Transaction, error)
- func (_Reward *RewardSession) SetNextRoundStartTime(time *big.Int) (*types.Transaction, error)
- func (_Reward *RewardSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
- func (_Reward *RewardSession) StartNewRound() (*types.Transaction, error)
- func (_Reward *RewardSession) SubmitDeposit() (*types.Transaction, error)
- func (_Reward *RewardSession) WantRenew() (*types.Transaction, error)
- func (_Reward *RewardSession) Withdraw(_value *big.Int) (*types.Transaction, error)
- type RewardSubmitDeposit
- type RewardSubmitDepositIterator
- type RewardTransactor
- func (_Reward *RewardTransactor) DisableContract(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) NewRaise(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) QuitRenew(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) RefundAll(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) RefundDeposit(opts *bind.TransactOpts, _addr common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactor) SetBonusPool(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) SetCriteria(opts *bind.TransactOpts, criteria *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactor) SetNextRoundStartTime(opts *bind.TransactOpts, time *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactor) SetPeriod(opts *bind.TransactOpts, _period *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactor) StartNewRound(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) SubmitDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) WantRenew(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Reward *RewardTransactor) Withdraw(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
- type RewardTransactorRaw
- type RewardTransactorSession
- func (_Reward *RewardTransactorSession) DisableContract() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) NewRaise() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) QuitRenew() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) RefundAll() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) RefundDeposit(_addr common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) SetBonusPool() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) SetCriteria(criteria *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) SetNextRoundStartTime(time *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) StartNewRound() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) SubmitDeposit() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) WantRenew() (*types.Transaction, error)
- func (_Reward *RewardTransactorSession) Withdraw(_value *big.Int) (*types.Transaction, error)
- type RewardWithdrawDeposit
- type RewardWithdrawDepositIterator
- type SafeMath
- type SafeMathCaller
- type SafeMathCallerRaw
- type SafeMathCallerSession
- type SafeMathFilterer
- type SafeMathRaw
- func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SafeMathSession
- type SafeMathTransactor
- type SafeMathTransactorRaw
- type SafeMathTransactorSession
- type Set
- type SetCaller
- type SetCallerRaw
- type SetCallerSession
- type SetFilterer
- type SetRaw
- func (_Set *SetRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Set *SetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Set *SetRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SetSession
- type SetTransactor
- type SetTransactorRaw
- type SetTransactorSession
Constants ¶
const RewardABI = "" /* 7553-byte string literal not displayed */
RewardABI is the input ABI used to generate the binding from.
const RewardBin = `` /* 11288-byte string literal not displayed */
RewardBin is the compiled bytecode used for deploying new contracts.
const SafeMathABI = "[]"
SafeMathABI is the input ABI used to generate the binding from.
const SafeMathBin = `` /* 242-byte string literal not displayed */
SafeMathBin is the compiled bytecode used for deploying new contracts.
const SetABI = "[]"
SetABI is the input ABI used to generate the binding from.
const SetBin = `` /* 242-byte string literal not displayed */
SetBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reward ¶
type Reward struct {
RewardCaller // Read-only binding to the contract
RewardTransactor // Write-only binding to the contract
RewardFilterer // Log filterer for contract events
}
Reward is an auto generated Go binding around an cpchain contract.
func DeployReward ¶
func DeployReward(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Reward, error)
DeployReward deploys a new cpchain contract, binding an instance of Reward to it.
type RewardCaller ¶
type RewardCaller struct {
// contains filtered or unexported fields
}
RewardCaller is an auto generated read-only Go binding around an cpchain contract.
func NewRewardCaller ¶
func NewRewardCaller(address common.Address, caller bind.ContractCaller) (*RewardCaller, error)
NewRewardCaller creates a new read-only instance of Reward, bound to a specific deployed contract.
func (*RewardCaller) BasicCriteria ¶
BasicCriteria is a free data retrieval call binding the contract method 0xc0209d1f.
Solidity: function basicCriteria() constant returns(uint256)
func (*RewardCaller) BonusPool ¶
BonusPool is a free data retrieval call binding the contract method 0x2693ee80.
Solidity: function bonusPool() constant returns(uint256)
func (*RewardCaller) GetFreeBalanceOf ¶
func (_Reward *RewardCaller) GetFreeBalanceOf(opts *bind.CallOpts, _addr common.Address) (*big.Int, error)
GetFreeBalanceOf is a free data retrieval call binding the contract method 0x414d11e6.
Solidity: function getFreeBalanceOf(_addr address) constant returns(uint256)
func (*RewardCaller) GetInvestors ¶
GetInvestors is a free data retrieval call binding the contract method 0xb2f5a54c.
Solidity: function getInvestors() constant returns(address[])
func (*RewardCaller) GetLockedBalanceOf ¶
func (_Reward *RewardCaller) GetLockedBalanceOf(opts *bind.CallOpts, _addr common.Address) (*big.Int, error)
GetLockedBalanceOf is a free data retrieval call binding the contract method 0x8d0dcb5f.
Solidity: function getLockedBalanceOf(_addr address) constant returns(uint256)
func (*RewardCaller) GetTotalAmount ¶
GetTotalAmount is a free data retrieval call binding the contract method 0x65ac4341.
Solidity: function getTotalAmount() constant returns(uint256)
func (*RewardCaller) GetTotalBalanceOf ¶
func (_Reward *RewardCaller) GetTotalBalanceOf(opts *bind.CallOpts, _addr common.Address) (*big.Int, error)
GetTotalBalanceOf is a free data retrieval call binding the contract method 0xfdfefa7f.
Solidity: function getTotalBalanceOf(_addr address) constant returns(uint256)
func (*RewardCaller) GetTotalLockedAmount ¶
GetTotalLockedAmount is a free data retrieval call binding the contract method 0x91d2b32e.
Solidity: function getTotalLockedAmount() constant returns(uint256)
func (*RewardCaller) Investors ¶
func (_Reward *RewardCaller) Investors(opts *bind.CallOpts, arg0 common.Address) (struct { FreeDeposit *big.Int LockedDeposit *big.Int Returned *big.Int ToRenew bool }, error)
Investors is a free data retrieval call binding the contract method 0x6f7bc9be.
Solidity: function investors( address) constant returns(freeDeposit uint256, lockedDeposit uint256, returned uint256, toRenew bool)
func (*RewardCaller) IsContract ¶
IsContract is a free data retrieval call binding the contract method 0x16279055.
Solidity: function isContract(addr address) constant returns(bool)
func (*RewardCaller) IsEnode ¶
IsEnode is a free data retrieval call binding the contract method 0x2a0e96c2.
Solidity: function isEnode(_addr address) constant returns(bool)
func (*RewardCaller) IsToRenew ¶
IsToRenew is a free data retrieval call binding the contract method 0xf509dd4a.
Solidity: function isToRenew(_addr address) constant returns(bool)
func (*RewardCaller) Locked ¶
func (_Reward *RewardCaller) Locked(opts *bind.CallOpts) (bool, error)
Locked is a free data retrieval call binding the contract method 0xcf309012.
Solidity: function locked() constant returns(bool)
func (*RewardCaller) NextRound ¶
NextRound is a free data retrieval call binding the contract method 0x47e40553.
Solidity: function nextRound() constant returns(uint256)
func (*RewardCaller) NextRoundStartTime ¶
NextRoundStartTime is a free data retrieval call binding the contract method 0x4aeb31eb.
Solidity: function nextRoundStartTime() constant returns(uint256)
type RewardCallerRaw ¶
type RewardCallerRaw struct {
Contract *RewardCaller // Generic read-only contract binding to access the raw methods on
}
RewardCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.
func (*RewardCallerRaw) Call ¶
func (_Reward *RewardCallerRaw) 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 RewardCallerSession ¶
type RewardCallerSession struct {
Contract *RewardCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
RewardCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.
func (*RewardCallerSession) BasicCriteria ¶
func (_Reward *RewardCallerSession) BasicCriteria() (*big.Int, error)
BasicCriteria is a free data retrieval call binding the contract method 0xc0209d1f.
Solidity: function basicCriteria() constant returns(uint256)
func (*RewardCallerSession) BonusPool ¶
func (_Reward *RewardCallerSession) BonusPool() (*big.Int, error)
BonusPool is a free data retrieval call binding the contract method 0x2693ee80.
Solidity: function bonusPool() constant returns(uint256)
func (*RewardCallerSession) GetFreeBalanceOf ¶
GetFreeBalanceOf is a free data retrieval call binding the contract method 0x414d11e6.
Solidity: function getFreeBalanceOf(_addr address) constant returns(uint256)
func (*RewardCallerSession) GetInvestors ¶
func (_Reward *RewardCallerSession) GetInvestors() ([]common.Address, error)
GetInvestors is a free data retrieval call binding the contract method 0xb2f5a54c.
Solidity: function getInvestors() constant returns(address[])
func (*RewardCallerSession) GetLockedBalanceOf ¶
GetLockedBalanceOf is a free data retrieval call binding the contract method 0x8d0dcb5f.
Solidity: function getLockedBalanceOf(_addr address) constant returns(uint256)
func (*RewardCallerSession) GetTotalAmount ¶
func (_Reward *RewardCallerSession) GetTotalAmount() (*big.Int, error)
GetTotalAmount is a free data retrieval call binding the contract method 0x65ac4341.
Solidity: function getTotalAmount() constant returns(uint256)
func (*RewardCallerSession) GetTotalBalanceOf ¶
GetTotalBalanceOf is a free data retrieval call binding the contract method 0xfdfefa7f.
Solidity: function getTotalBalanceOf(_addr address) constant returns(uint256)
func (*RewardCallerSession) GetTotalLockedAmount ¶
func (_Reward *RewardCallerSession) GetTotalLockedAmount() (*big.Int, error)
GetTotalLockedAmount is a free data retrieval call binding the contract method 0x91d2b32e.
Solidity: function getTotalLockedAmount() constant returns(uint256)
func (*RewardCallerSession) Investors ¶
func (_Reward *RewardCallerSession) Investors(arg0 common.Address) (struct { FreeDeposit *big.Int LockedDeposit *big.Int Returned *big.Int ToRenew bool }, error)
Investors is a free data retrieval call binding the contract method 0x6f7bc9be.
Solidity: function investors( address) constant returns(freeDeposit uint256, lockedDeposit uint256, returned uint256, toRenew bool)
func (*RewardCallerSession) IsContract ¶
func (_Reward *RewardCallerSession) IsContract(addr common.Address) (bool, error)
IsContract is a free data retrieval call binding the contract method 0x16279055.
Solidity: function isContract(addr address) constant returns(bool)
func (*RewardCallerSession) IsEnode ¶
func (_Reward *RewardCallerSession) IsEnode(_addr common.Address) (bool, error)
IsEnode is a free data retrieval call binding the contract method 0x2a0e96c2.
Solidity: function isEnode(_addr address) constant returns(bool)
func (*RewardCallerSession) IsToRenew ¶
func (_Reward *RewardCallerSession) IsToRenew(_addr common.Address) (bool, error)
IsToRenew is a free data retrieval call binding the contract method 0xf509dd4a.
Solidity: function isToRenew(_addr address) constant returns(bool)
func (*RewardCallerSession) Locked ¶
func (_Reward *RewardCallerSession) Locked() (bool, error)
Locked is a free data retrieval call binding the contract method 0xcf309012.
Solidity: function locked() constant returns(bool)
func (*RewardCallerSession) NextRound ¶
func (_Reward *RewardCallerSession) NextRound() (*big.Int, error)
NextRound is a free data retrieval call binding the contract method 0x47e40553.
Solidity: function nextRound() constant returns(uint256)
func (*RewardCallerSession) NextRoundStartTime ¶
func (_Reward *RewardCallerSession) NextRoundStartTime() (*big.Int, error)
NextRoundStartTime is a free data retrieval call binding the contract method 0x4aeb31eb.
Solidity: function nextRoundStartTime() constant returns(uint256)
type RewardContinuedInvest ¶
type RewardContinuedInvest struct {
Addr common.Address
Iscontinue bool
Raw types.Log // Blockchain specific contextual infos
}
RewardContinuedInvest represents a ContinuedInvest event raised by the Reward contract.
type RewardContinuedInvestIterator ¶
type RewardContinuedInvestIterator struct {
Event *RewardContinuedInvest // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardContinuedInvestIterator is returned from FilterContinuedInvest and is used to iterate over the raw logs and unpacked data for ContinuedInvest events raised by the Reward contract.
func (*RewardContinuedInvestIterator) Close ¶
func (it *RewardContinuedInvestIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardContinuedInvestIterator) Error ¶
func (it *RewardContinuedInvestIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardContinuedInvestIterator) Next ¶
func (it *RewardContinuedInvestIterator) 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 RewardDepositInsufficient ¶
type RewardDepositInsufficient struct {
Who common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardDepositInsufficient represents a DepositInsufficient event raised by the Reward contract.
type RewardDepositInsufficientIterator ¶
type RewardDepositInsufficientIterator struct {
Event *RewardDepositInsufficient // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardDepositInsufficientIterator is returned from FilterDepositInsufficient and is used to iterate over the raw logs and unpacked data for DepositInsufficient events raised by the Reward contract.
func (*RewardDepositInsufficientIterator) Close ¶
func (it *RewardDepositInsufficientIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardDepositInsufficientIterator) Error ¶
func (it *RewardDepositInsufficientIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardDepositInsufficientIterator) Next ¶
func (it *RewardDepositInsufficientIterator) 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 RewardFilterer ¶
type RewardFilterer struct {
// contains filtered or unexported fields
}
RewardFilterer is an auto generated log filtering Go binding around an cpchain contract events.
func NewRewardFilterer ¶
func NewRewardFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardFilterer, error)
NewRewardFilterer creates a new log filterer instance of Reward, bound to a specific deployed contract.
func (*RewardFilterer) FilterContinuedInvest ¶
func (_Reward *RewardFilterer) FilterContinuedInvest(opts *bind.FilterOpts) (*RewardContinuedInvestIterator, error)
FilterContinuedInvest is a free log retrieval operation binding the contract event 0x2772659b237083773d3a2874ab3591def1a8625215ae057bde8fc4ef3dee7290.
Solidity: e ContinuedInvest(_addr address, _iscontinue bool)
func (*RewardFilterer) FilterDepositInsufficient ¶
func (_Reward *RewardFilterer) FilterDepositInsufficient(opts *bind.FilterOpts) (*RewardDepositInsufficientIterator, error)
FilterDepositInsufficient is a free log retrieval operation binding the contract event 0x9873c485f5a9e0be9a918f4d6ad5b64912fcb8352006b316a63427b1f408e824.
Solidity: e DepositInsufficient(who address, value uint256)
func (*RewardFilterer) FilterFundBonusPool ¶
func (_Reward *RewardFilterer) FilterFundBonusPool(opts *bind.FilterOpts) (*RewardFundBonusPoolIterator, error)
FilterFundBonusPool is a free log retrieval operation binding the contract event 0x71030773066b852afef8d0f98dbfdaec8e9a62f2f5533916ec7dfa15a0edc1f2.
Solidity: e FundBonusPool(value uint256)
func (*RewardFilterer) FilterJoinEnodes ¶
func (_Reward *RewardFilterer) FilterJoinEnodes(opts *bind.FilterOpts) (*RewardJoinEnodesIterator, error)
FilterJoinEnodes is a free log retrieval operation binding the contract event 0x36743ba59d8493fafba069f65f5f2af34c863a3f1576a9bb9f85713cf3fabffd.
Solidity: e JoinEnodes(who address, value uint256)
func (*RewardFilterer) FilterNewRaise ¶
func (_Reward *RewardFilterer) FilterNewRaise(opts *bind.FilterOpts) (*RewardNewRaiseIterator, error)
FilterNewRaise is a free log retrieval operation binding the contract event 0xc8ea7d3c44e48dda18a813373040ce0eda7c908ad2cd30b53310d9b4b3001214.
Solidity: e NewRaise(round uint256, lock bool, _bonusPool uint256)
func (*RewardFilterer) FilterOwnerSetBonusPool ¶
func (_Reward *RewardFilterer) FilterOwnerSetBonusPool(opts *bind.FilterOpts) (*RewardOwnerSetBonusPoolIterator, error)
FilterOwnerSetBonusPool is a free log retrieval operation binding the contract event 0x162a21b4a3cda9776fd151508bc1f4fac3ceaed4b487c9aaa7888c95484502cf.
Solidity: e OwnerSetBonusPool(value uint256)
func (*RewardFilterer) FilterRefundAll ¶
func (_Reward *RewardFilterer) FilterRefundAll(opts *bind.FilterOpts) (*RewardRefundAllIterator, error)
FilterRefundAll is a free log retrieval operation binding the contract event 0xa70a53972d6afb0fc38bd683cd5955faa5fa55e6629744a51e7a2aaa0ecc4e04.
Solidity: e RefundAll(num uint256)
func (*RewardFilterer) FilterRefundDeposit ¶
func (_Reward *RewardFilterer) FilterRefundDeposit(opts *bind.FilterOpts) (*RewardRefundDepositIterator, error)
FilterRefundDeposit is a free log retrieval operation binding the contract event 0x23285480e7a48c23c9ee70f743b41d58594f15a194b45ad805149ba14f8316d2.
Solidity: e RefundDeposit(who address, value uint256)
func (*RewardFilterer) FilterSubmitDeposit ¶
func (_Reward *RewardFilterer) FilterSubmitDeposit(opts *bind.FilterOpts) (*RewardSubmitDepositIterator, error)
FilterSubmitDeposit is a free log retrieval operation binding the contract event 0x78d81951b78dad84771f88d35b4c93a632e1ed2da8706bbc7d8e465110686830.
Solidity: e SubmitDeposit(who address, value uint256)
func (*RewardFilterer) FilterWithdrawDeposit ¶
func (_Reward *RewardFilterer) FilterWithdrawDeposit(opts *bind.FilterOpts) (*RewardWithdrawDepositIterator, error)
FilterWithdrawDeposit is a free log retrieval operation binding the contract event 0x195ddc41d185a27fe901831dcad44dd85716c95be78b1d71aa42393697966d40.
Solidity: e WithdrawDeposit(who address, value uint256)
func (*RewardFilterer) WatchContinuedInvest ¶
func (_Reward *RewardFilterer) WatchContinuedInvest(opts *bind.WatchOpts, sink chan<- *RewardContinuedInvest) (event.Subscription, error)
WatchContinuedInvest is a free log subscription operation binding the contract event 0x2772659b237083773d3a2874ab3591def1a8625215ae057bde8fc4ef3dee7290.
Solidity: e ContinuedInvest(_addr address, _iscontinue bool)
func (*RewardFilterer) WatchDepositInsufficient ¶
func (_Reward *RewardFilterer) WatchDepositInsufficient(opts *bind.WatchOpts, sink chan<- *RewardDepositInsufficient) (event.Subscription, error)
WatchDepositInsufficient is a free log subscription operation binding the contract event 0x9873c485f5a9e0be9a918f4d6ad5b64912fcb8352006b316a63427b1f408e824.
Solidity: e DepositInsufficient(who address, value uint256)
func (*RewardFilterer) WatchFundBonusPool ¶
func (_Reward *RewardFilterer) WatchFundBonusPool(opts *bind.WatchOpts, sink chan<- *RewardFundBonusPool) (event.Subscription, error)
WatchFundBonusPool is a free log subscription operation binding the contract event 0x71030773066b852afef8d0f98dbfdaec8e9a62f2f5533916ec7dfa15a0edc1f2.
Solidity: e FundBonusPool(value uint256)
func (*RewardFilterer) WatchJoinEnodes ¶
func (_Reward *RewardFilterer) WatchJoinEnodes(opts *bind.WatchOpts, sink chan<- *RewardJoinEnodes) (event.Subscription, error)
WatchJoinEnodes is a free log subscription operation binding the contract event 0x36743ba59d8493fafba069f65f5f2af34c863a3f1576a9bb9f85713cf3fabffd.
Solidity: e JoinEnodes(who address, value uint256)
func (*RewardFilterer) WatchNewRaise ¶
func (_Reward *RewardFilterer) WatchNewRaise(opts *bind.WatchOpts, sink chan<- *RewardNewRaise) (event.Subscription, error)
WatchNewRaise is a free log subscription operation binding the contract event 0xc8ea7d3c44e48dda18a813373040ce0eda7c908ad2cd30b53310d9b4b3001214.
Solidity: e NewRaise(round uint256, lock bool, _bonusPool uint256)
func (*RewardFilterer) WatchOwnerSetBonusPool ¶
func (_Reward *RewardFilterer) WatchOwnerSetBonusPool(opts *bind.WatchOpts, sink chan<- *RewardOwnerSetBonusPool) (event.Subscription, error)
WatchOwnerSetBonusPool is a free log subscription operation binding the contract event 0x162a21b4a3cda9776fd151508bc1f4fac3ceaed4b487c9aaa7888c95484502cf.
Solidity: e OwnerSetBonusPool(value uint256)
func (*RewardFilterer) WatchRefundAll ¶
func (_Reward *RewardFilterer) WatchRefundAll(opts *bind.WatchOpts, sink chan<- *RewardRefundAll) (event.Subscription, error)
WatchRefundAll is a free log subscription operation binding the contract event 0xa70a53972d6afb0fc38bd683cd5955faa5fa55e6629744a51e7a2aaa0ecc4e04.
Solidity: e RefundAll(num uint256)
func (*RewardFilterer) WatchRefundDeposit ¶
func (_Reward *RewardFilterer) WatchRefundDeposit(opts *bind.WatchOpts, sink chan<- *RewardRefundDeposit) (event.Subscription, error)
WatchRefundDeposit is a free log subscription operation binding the contract event 0x23285480e7a48c23c9ee70f743b41d58594f15a194b45ad805149ba14f8316d2.
Solidity: e RefundDeposit(who address, value uint256)
func (*RewardFilterer) WatchSubmitDeposit ¶
func (_Reward *RewardFilterer) WatchSubmitDeposit(opts *bind.WatchOpts, sink chan<- *RewardSubmitDeposit) (event.Subscription, error)
WatchSubmitDeposit is a free log subscription operation binding the contract event 0x78d81951b78dad84771f88d35b4c93a632e1ed2da8706bbc7d8e465110686830.
Solidity: e SubmitDeposit(who address, value uint256)
func (*RewardFilterer) WatchWithdrawDeposit ¶
func (_Reward *RewardFilterer) WatchWithdrawDeposit(opts *bind.WatchOpts, sink chan<- *RewardWithdrawDeposit) (event.Subscription, error)
WatchWithdrawDeposit is a free log subscription operation binding the contract event 0x195ddc41d185a27fe901831dcad44dd85716c95be78b1d71aa42393697966d40.
Solidity: e WithdrawDeposit(who address, value uint256)
type RewardFundBonusPool ¶
type RewardFundBonusPool struct {
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardFundBonusPool represents a FundBonusPool event raised by the Reward contract.
type RewardFundBonusPoolIterator ¶
type RewardFundBonusPoolIterator struct {
Event *RewardFundBonusPool // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardFundBonusPoolIterator is returned from FilterFundBonusPool and is used to iterate over the raw logs and unpacked data for FundBonusPool events raised by the Reward contract.
func (*RewardFundBonusPoolIterator) Close ¶
func (it *RewardFundBonusPoolIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardFundBonusPoolIterator) Error ¶
func (it *RewardFundBonusPoolIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardFundBonusPoolIterator) Next ¶
func (it *RewardFundBonusPoolIterator) 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 RewardJoinEnodes ¶
type RewardJoinEnodes struct {
Who common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardJoinEnodes represents a JoinEnodes event raised by the Reward contract.
type RewardJoinEnodesIterator ¶
type RewardJoinEnodesIterator struct {
Event *RewardJoinEnodes // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardJoinEnodesIterator is returned from FilterJoinEnodes and is used to iterate over the raw logs and unpacked data for JoinEnodes events raised by the Reward contract.
func (*RewardJoinEnodesIterator) Close ¶
func (it *RewardJoinEnodesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardJoinEnodesIterator) Error ¶
func (it *RewardJoinEnodesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardJoinEnodesIterator) Next ¶
func (it *RewardJoinEnodesIterator) 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 RewardNewRaise ¶
type RewardNewRaise struct {
Round *big.Int
Lock bool
BonusPool *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardNewRaise represents a NewRaise event raised by the Reward contract.
type RewardNewRaiseIterator ¶
type RewardNewRaiseIterator struct {
Event *RewardNewRaise // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardNewRaiseIterator is returned from FilterNewRaise and is used to iterate over the raw logs and unpacked data for NewRaise events raised by the Reward contract.
func (*RewardNewRaiseIterator) Close ¶
func (it *RewardNewRaiseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardNewRaiseIterator) Error ¶
func (it *RewardNewRaiseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardNewRaiseIterator) Next ¶
func (it *RewardNewRaiseIterator) 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 RewardOwnerSetBonusPool ¶
type RewardOwnerSetBonusPool struct {
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardOwnerSetBonusPool represents a OwnerSetBonusPool event raised by the Reward contract.
type RewardOwnerSetBonusPoolIterator ¶
type RewardOwnerSetBonusPoolIterator struct {
Event *RewardOwnerSetBonusPool // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardOwnerSetBonusPoolIterator is returned from FilterOwnerSetBonusPool and is used to iterate over the raw logs and unpacked data for OwnerSetBonusPool events raised by the Reward contract.
func (*RewardOwnerSetBonusPoolIterator) Close ¶
func (it *RewardOwnerSetBonusPoolIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardOwnerSetBonusPoolIterator) Error ¶
func (it *RewardOwnerSetBonusPoolIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardOwnerSetBonusPoolIterator) Next ¶
func (it *RewardOwnerSetBonusPoolIterator) 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 RewardRaw ¶
type RewardRaw struct {
Contract *Reward // Generic contract binding to access the raw methods on
}
RewardRaw is an auto generated low-level Go binding around an cpchain contract.
func (*RewardRaw) Call ¶
func (_Reward *RewardRaw) 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 (*RewardRaw) Transact ¶
func (_Reward *RewardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RewardRaw) Transfer ¶
func (_Reward *RewardRaw) 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 RewardRefundAll ¶
RewardRefundAll represents a RefundAll event raised by the Reward contract.
type RewardRefundAllIterator ¶
type RewardRefundAllIterator struct {
Event *RewardRefundAll // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardRefundAllIterator is returned from FilterRefundAll and is used to iterate over the raw logs and unpacked data for RefundAll events raised by the Reward contract.
func (*RewardRefundAllIterator) Close ¶
func (it *RewardRefundAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardRefundAllIterator) Error ¶
func (it *RewardRefundAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardRefundAllIterator) Next ¶
func (it *RewardRefundAllIterator) 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 RewardRefundDeposit ¶
type RewardRefundDeposit struct {
Who common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardRefundDeposit represents a RefundDeposit event raised by the Reward contract.
type RewardRefundDepositIterator ¶
type RewardRefundDepositIterator struct {
Event *RewardRefundDeposit // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardRefundDepositIterator is returned from FilterRefundDeposit and is used to iterate over the raw logs and unpacked data for RefundDeposit events raised by the Reward contract.
func (*RewardRefundDepositIterator) Close ¶
func (it *RewardRefundDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardRefundDepositIterator) Error ¶
func (it *RewardRefundDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardRefundDepositIterator) Next ¶
func (it *RewardRefundDepositIterator) 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 RewardSession ¶
type RewardSession struct {
Contract *Reward // 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
}
RewardSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.
func (*RewardSession) BasicCriteria ¶
func (_Reward *RewardSession) BasicCriteria() (*big.Int, error)
BasicCriteria is a free data retrieval call binding the contract method 0xc0209d1f.
Solidity: function basicCriteria() constant returns(uint256)
func (*RewardSession) BonusPool ¶
func (_Reward *RewardSession) BonusPool() (*big.Int, error)
BonusPool is a free data retrieval call binding the contract method 0x2693ee80.
Solidity: function bonusPool() constant returns(uint256)
func (*RewardSession) DisableContract ¶
func (_Reward *RewardSession) DisableContract() (*types.Transaction, error)
DisableContract is a paid mutator transaction binding the contract method 0x894ba833.
Solidity: function disableContract() returns()
func (*RewardSession) GetFreeBalanceOf ¶
GetFreeBalanceOf is a free data retrieval call binding the contract method 0x414d11e6.
Solidity: function getFreeBalanceOf(_addr address) constant returns(uint256)
func (*RewardSession) GetInvestors ¶
func (_Reward *RewardSession) GetInvestors() ([]common.Address, error)
GetInvestors is a free data retrieval call binding the contract method 0xb2f5a54c.
Solidity: function getInvestors() constant returns(address[])
func (*RewardSession) GetLockedBalanceOf ¶
GetLockedBalanceOf is a free data retrieval call binding the contract method 0x8d0dcb5f.
Solidity: function getLockedBalanceOf(_addr address) constant returns(uint256)
func (*RewardSession) GetTotalAmount ¶
func (_Reward *RewardSession) GetTotalAmount() (*big.Int, error)
GetTotalAmount is a free data retrieval call binding the contract method 0x65ac4341.
Solidity: function getTotalAmount() constant returns(uint256)
func (*RewardSession) GetTotalBalanceOf ¶
GetTotalBalanceOf is a free data retrieval call binding the contract method 0xfdfefa7f.
Solidity: function getTotalBalanceOf(_addr address) constant returns(uint256)
func (*RewardSession) GetTotalLockedAmount ¶
func (_Reward *RewardSession) GetTotalLockedAmount() (*big.Int, error)
GetTotalLockedAmount is a free data retrieval call binding the contract method 0x91d2b32e.
Solidity: function getTotalLockedAmount() constant returns(uint256)
func (*RewardSession) Investors ¶
func (_Reward *RewardSession) Investors(arg0 common.Address) (struct { FreeDeposit *big.Int LockedDeposit *big.Int Returned *big.Int ToRenew bool }, error)
Investors is a free data retrieval call binding the contract method 0x6f7bc9be.
Solidity: function investors( address) constant returns(freeDeposit uint256, lockedDeposit uint256, returned uint256, toRenew bool)
func (*RewardSession) IsContract ¶
func (_Reward *RewardSession) IsContract(addr common.Address) (bool, error)
IsContract is a free data retrieval call binding the contract method 0x16279055.
Solidity: function isContract(addr address) constant returns(bool)
func (*RewardSession) IsEnode ¶
func (_Reward *RewardSession) IsEnode(_addr common.Address) (bool, error)
IsEnode is a free data retrieval call binding the contract method 0x2a0e96c2.
Solidity: function isEnode(_addr address) constant returns(bool)
func (*RewardSession) IsToRenew ¶
func (_Reward *RewardSession) IsToRenew(_addr common.Address) (bool, error)
IsToRenew is a free data retrieval call binding the contract method 0xf509dd4a.
Solidity: function isToRenew(_addr address) constant returns(bool)
func (*RewardSession) Locked ¶
func (_Reward *RewardSession) Locked() (bool, error)
Locked is a free data retrieval call binding the contract method 0xcf309012.
Solidity: function locked() constant returns(bool)
func (*RewardSession) NewRaise ¶
func (_Reward *RewardSession) NewRaise() (*types.Transaction, error)
NewRaise is a paid mutator transaction binding the contract method 0x8f83bc7f.
Solidity: function newRaise() returns()
func (*RewardSession) NextRound ¶
func (_Reward *RewardSession) NextRound() (*big.Int, error)
NextRound is a free data retrieval call binding the contract method 0x47e40553.
Solidity: function nextRound() constant returns(uint256)
func (*RewardSession) NextRoundStartTime ¶
func (_Reward *RewardSession) NextRoundStartTime() (*big.Int, error)
NextRoundStartTime is a free data retrieval call binding the contract method 0x4aeb31eb.
Solidity: function nextRoundStartTime() constant returns(uint256)
func (*RewardSession) Period ¶
func (_Reward *RewardSession) Period() (*big.Int, error)
Period is a free data retrieval call binding the contract method 0xef78d4fd.
Solidity: function period() constant returns(uint256)
func (*RewardSession) QuitRenew ¶
func (_Reward *RewardSession) QuitRenew() (*types.Transaction, error)
QuitRenew is a paid mutator transaction binding the contract method 0x8ffb6376.
Solidity: function quitRenew() returns()
func (*RewardSession) RefundAll ¶
func (_Reward *RewardSession) RefundAll() (*types.Transaction, error)
RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.
Solidity: function refundAll() returns()
func (*RewardSession) RefundDeposit ¶
func (_Reward *RewardSession) RefundDeposit(_addr common.Address, _value *big.Int) (*types.Transaction, error)
RefundDeposit is a paid mutator transaction binding the contract method 0x5215d054.
Solidity: function refundDeposit(_addr address, _value uint256) returns()
func (*RewardSession) SetBonusPool ¶
func (_Reward *RewardSession) SetBonusPool() (*types.Transaction, error)
SetBonusPool is a paid mutator transaction binding the contract method 0x7c0fa595.
Solidity: function setBonusPool() returns()
func (*RewardSession) SetCriteria ¶
func (_Reward *RewardSession) SetCriteria(criteria *big.Int) (*types.Transaction, error)
SetCriteria is a paid mutator transaction binding the contract method 0x5f2c01ea.
Solidity: function setCriteria(criteria uint256) returns()
func (*RewardSession) SetNextRoundStartTime ¶
func (_Reward *RewardSession) SetNextRoundStartTime(time *big.Int) (*types.Transaction, error)
SetNextRoundStartTime is a paid mutator transaction binding the contract method 0x4d5b03f3.
Solidity: function setNextRoundStartTime(time uint256) returns()
func (*RewardSession) SetPeriod ¶
func (_Reward *RewardSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
SetPeriod is a paid mutator transaction binding the contract method 0x0f3a9f65.
Solidity: function setPeriod(_period uint256) returns()
func (*RewardSession) StartNewRound ¶
func (_Reward *RewardSession) StartNewRound() (*types.Transaction, error)
StartNewRound is a paid mutator transaction binding the contract method 0xbd85948c.
Solidity: function startNewRound() returns()
func (*RewardSession) SubmitDeposit ¶
func (_Reward *RewardSession) SubmitDeposit() (*types.Transaction, error)
SubmitDeposit is a paid mutator transaction binding the contract method 0xe9843a3e.
Solidity: function submitDeposit() returns()
func (*RewardSession) WantRenew ¶
func (_Reward *RewardSession) WantRenew() (*types.Transaction, error)
WantRenew is a paid mutator transaction binding the contract method 0x8ca2ca7f.
Solidity: function wantRenew() returns()
func (*RewardSession) Withdraw ¶
func (_Reward *RewardSession) Withdraw(_value *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(_value uint256) returns()
type RewardSubmitDeposit ¶
type RewardSubmitDeposit struct {
Who common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardSubmitDeposit represents a SubmitDeposit event raised by the Reward contract.
type RewardSubmitDepositIterator ¶
type RewardSubmitDepositIterator struct {
Event *RewardSubmitDeposit // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardSubmitDepositIterator is returned from FilterSubmitDeposit and is used to iterate over the raw logs and unpacked data for SubmitDeposit events raised by the Reward contract.
func (*RewardSubmitDepositIterator) Close ¶
func (it *RewardSubmitDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardSubmitDepositIterator) Error ¶
func (it *RewardSubmitDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardSubmitDepositIterator) Next ¶
func (it *RewardSubmitDepositIterator) 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 RewardTransactor ¶
type RewardTransactor struct {
// contains filtered or unexported fields
}
RewardTransactor is an auto generated write-only Go binding around an cpchain contract.
func NewRewardTransactor ¶
func NewRewardTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardTransactor, error)
NewRewardTransactor creates a new write-only instance of Reward, bound to a specific deployed contract.
func (*RewardTransactor) DisableContract ¶
func (_Reward *RewardTransactor) DisableContract(opts *bind.TransactOpts) (*types.Transaction, error)
DisableContract is a paid mutator transaction binding the contract method 0x894ba833.
Solidity: function disableContract() returns()
func (*RewardTransactor) NewRaise ¶
func (_Reward *RewardTransactor) NewRaise(opts *bind.TransactOpts) (*types.Transaction, error)
NewRaise is a paid mutator transaction binding the contract method 0x8f83bc7f.
Solidity: function newRaise() returns()
func (*RewardTransactor) QuitRenew ¶
func (_Reward *RewardTransactor) QuitRenew(opts *bind.TransactOpts) (*types.Transaction, error)
QuitRenew is a paid mutator transaction binding the contract method 0x8ffb6376.
Solidity: function quitRenew() returns()
func (*RewardTransactor) RefundAll ¶
func (_Reward *RewardTransactor) RefundAll(opts *bind.TransactOpts) (*types.Transaction, error)
RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.
Solidity: function refundAll() returns()
func (*RewardTransactor) RefundDeposit ¶
func (_Reward *RewardTransactor) RefundDeposit(opts *bind.TransactOpts, _addr common.Address, _value *big.Int) (*types.Transaction, error)
RefundDeposit is a paid mutator transaction binding the contract method 0x5215d054.
Solidity: function refundDeposit(_addr address, _value uint256) returns()
func (*RewardTransactor) SetBonusPool ¶
func (_Reward *RewardTransactor) SetBonusPool(opts *bind.TransactOpts) (*types.Transaction, error)
SetBonusPool is a paid mutator transaction binding the contract method 0x7c0fa595.
Solidity: function setBonusPool() returns()
func (*RewardTransactor) SetCriteria ¶
func (_Reward *RewardTransactor) SetCriteria(opts *bind.TransactOpts, criteria *big.Int) (*types.Transaction, error)
SetCriteria is a paid mutator transaction binding the contract method 0x5f2c01ea.
Solidity: function setCriteria(criteria uint256) returns()
func (*RewardTransactor) SetNextRoundStartTime ¶
func (_Reward *RewardTransactor) SetNextRoundStartTime(opts *bind.TransactOpts, time *big.Int) (*types.Transaction, error)
SetNextRoundStartTime is a paid mutator transaction binding the contract method 0x4d5b03f3.
Solidity: function setNextRoundStartTime(time uint256) returns()
func (*RewardTransactor) SetPeriod ¶
func (_Reward *RewardTransactor) SetPeriod(opts *bind.TransactOpts, _period *big.Int) (*types.Transaction, error)
SetPeriod is a paid mutator transaction binding the contract method 0x0f3a9f65.
Solidity: function setPeriod(_period uint256) returns()
func (*RewardTransactor) StartNewRound ¶
func (_Reward *RewardTransactor) StartNewRound(opts *bind.TransactOpts) (*types.Transaction, error)
StartNewRound is a paid mutator transaction binding the contract method 0xbd85948c.
Solidity: function startNewRound() returns()
func (*RewardTransactor) SubmitDeposit ¶
func (_Reward *RewardTransactor) SubmitDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
SubmitDeposit is a paid mutator transaction binding the contract method 0xe9843a3e.
Solidity: function submitDeposit() returns()
func (*RewardTransactor) WantRenew ¶
func (_Reward *RewardTransactor) WantRenew(opts *bind.TransactOpts) (*types.Transaction, error)
WantRenew is a paid mutator transaction binding the contract method 0x8ca2ca7f.
Solidity: function wantRenew() returns()
func (*RewardTransactor) Withdraw ¶
func (_Reward *RewardTransactor) Withdraw(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(_value uint256) returns()
type RewardTransactorRaw ¶
type RewardTransactorRaw struct {
Contract *RewardTransactor // Generic write-only contract binding to access the raw methods on
}
RewardTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.
func (*RewardTransactorRaw) Transact ¶
func (_Reward *RewardTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RewardTransactorRaw) Transfer ¶
func (_Reward *RewardTransactorRaw) 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 RewardTransactorSession ¶
type RewardTransactorSession struct {
Contract *RewardTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
RewardTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.
func (*RewardTransactorSession) DisableContract ¶
func (_Reward *RewardTransactorSession) DisableContract() (*types.Transaction, error)
DisableContract is a paid mutator transaction binding the contract method 0x894ba833.
Solidity: function disableContract() returns()
func (*RewardTransactorSession) NewRaise ¶
func (_Reward *RewardTransactorSession) NewRaise() (*types.Transaction, error)
NewRaise is a paid mutator transaction binding the contract method 0x8f83bc7f.
Solidity: function newRaise() returns()
func (*RewardTransactorSession) QuitRenew ¶
func (_Reward *RewardTransactorSession) QuitRenew() (*types.Transaction, error)
QuitRenew is a paid mutator transaction binding the contract method 0x8ffb6376.
Solidity: function quitRenew() returns()
func (*RewardTransactorSession) RefundAll ¶
func (_Reward *RewardTransactorSession) RefundAll() (*types.Transaction, error)
RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.
Solidity: function refundAll() returns()
func (*RewardTransactorSession) RefundDeposit ¶
func (_Reward *RewardTransactorSession) RefundDeposit(_addr common.Address, _value *big.Int) (*types.Transaction, error)
RefundDeposit is a paid mutator transaction binding the contract method 0x5215d054.
Solidity: function refundDeposit(_addr address, _value uint256) returns()
func (*RewardTransactorSession) SetBonusPool ¶
func (_Reward *RewardTransactorSession) SetBonusPool() (*types.Transaction, error)
SetBonusPool is a paid mutator transaction binding the contract method 0x7c0fa595.
Solidity: function setBonusPool() returns()
func (*RewardTransactorSession) SetCriteria ¶
func (_Reward *RewardTransactorSession) SetCriteria(criteria *big.Int) (*types.Transaction, error)
SetCriteria is a paid mutator transaction binding the contract method 0x5f2c01ea.
Solidity: function setCriteria(criteria uint256) returns()
func (*RewardTransactorSession) SetNextRoundStartTime ¶
func (_Reward *RewardTransactorSession) SetNextRoundStartTime(time *big.Int) (*types.Transaction, error)
SetNextRoundStartTime is a paid mutator transaction binding the contract method 0x4d5b03f3.
Solidity: function setNextRoundStartTime(time uint256) returns()
func (*RewardTransactorSession) SetPeriod ¶
func (_Reward *RewardTransactorSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
SetPeriod is a paid mutator transaction binding the contract method 0x0f3a9f65.
Solidity: function setPeriod(_period uint256) returns()
func (*RewardTransactorSession) StartNewRound ¶
func (_Reward *RewardTransactorSession) StartNewRound() (*types.Transaction, error)
StartNewRound is a paid mutator transaction binding the contract method 0xbd85948c.
Solidity: function startNewRound() returns()
func (*RewardTransactorSession) SubmitDeposit ¶
func (_Reward *RewardTransactorSession) SubmitDeposit() (*types.Transaction, error)
SubmitDeposit is a paid mutator transaction binding the contract method 0xe9843a3e.
Solidity: function submitDeposit() returns()
func (*RewardTransactorSession) WantRenew ¶
func (_Reward *RewardTransactorSession) WantRenew() (*types.Transaction, error)
WantRenew is a paid mutator transaction binding the contract method 0x8ca2ca7f.
Solidity: function wantRenew() returns()
func (*RewardTransactorSession) Withdraw ¶
func (_Reward *RewardTransactorSession) Withdraw(_value *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(_value uint256) returns()
type RewardWithdrawDeposit ¶
type RewardWithdrawDeposit struct {
Who common.Address
Value *big.Int
Raw types.Log // Blockchain specific contextual infos
}
RewardWithdrawDeposit represents a WithdrawDeposit event raised by the Reward contract.
type RewardWithdrawDepositIterator ¶
type RewardWithdrawDepositIterator struct {
Event *RewardWithdrawDeposit // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
RewardWithdrawDepositIterator is returned from FilterWithdrawDeposit and is used to iterate over the raw logs and unpacked data for WithdrawDeposit events raised by the Reward contract.
func (*RewardWithdrawDepositIterator) Close ¶
func (it *RewardWithdrawDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RewardWithdrawDepositIterator) Error ¶
func (it *RewardWithdrawDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RewardWithdrawDepositIterator) Next ¶
func (it *RewardWithdrawDepositIterator) 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 SafeMath ¶
type SafeMath struct {
SafeMathCaller // Read-only binding to the contract
SafeMathTransactor // Write-only binding to the contract
SafeMathFilterer // Log filterer for contract events
}
SafeMath is an auto generated Go binding around an cpchain contract.
func DeploySafeMath ¶
func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error)
DeploySafeMath deploys a new cpchain contract, binding an instance of SafeMath to it.
func NewSafeMath ¶
NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.
type SafeMathCaller ¶
type SafeMathCaller struct {
// contains filtered or unexported fields
}
SafeMathCaller is an auto generated read-only Go binding around an cpchain contract.
func NewSafeMathCaller ¶
func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)
NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.
type SafeMathCallerRaw ¶
type SafeMathCallerRaw struct {
Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on
}
SafeMathCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.
func (*SafeMathCallerRaw) Call ¶
func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession ¶
type SafeMathCallerSession struct {
Contract *SafeMathCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
SafeMathCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.
type SafeMathFilterer ¶
type SafeMathFilterer struct {
// contains filtered or unexported fields
}
SafeMathFilterer is an auto generated log filtering Go binding around an cpchain contract events.
func NewSafeMathFilterer ¶
func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)
NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.
type SafeMathRaw ¶
type SafeMathRaw struct {
Contract *SafeMath // Generic contract binding to access the raw methods on
}
SafeMathRaw is an auto generated low-level Go binding around an cpchain contract.
func (*SafeMathRaw) Call ¶
func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact ¶
func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SafeMathRaw) Transfer ¶
func (_SafeMath *SafeMathRaw) 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 SafeMathSession ¶
type SafeMathSession struct {
Contract *SafeMath // 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
}
SafeMathSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.
type SafeMathTransactor ¶
type SafeMathTransactor struct {
// contains filtered or unexported fields
}
SafeMathTransactor is an auto generated write-only Go binding around an cpchain contract.
func NewSafeMathTransactor ¶
func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)
NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.
type SafeMathTransactorRaw ¶
type SafeMathTransactorRaw struct {
Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on
}
SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.
func (*SafeMathTransactorRaw) Transact ¶
func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SafeMathTransactorRaw) Transfer ¶
func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession ¶
type SafeMathTransactorSession struct {
Contract *SafeMathTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
SafeMathTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.
type Set ¶
type Set struct {
SetCaller // Read-only binding to the contract
SetTransactor // Write-only binding to the contract
SetFilterer // Log filterer for contract events
}
Set is an auto generated Go binding around an cpchain contract.
func DeploySet ¶
func DeploySet(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Set, error)
DeploySet deploys a new cpchain contract, binding an instance of Set to it.
type SetCaller ¶
type SetCaller struct {
// contains filtered or unexported fields
}
SetCaller is an auto generated read-only Go binding around an cpchain contract.
func NewSetCaller ¶
NewSetCaller creates a new read-only instance of Set, bound to a specific deployed contract.
type SetCallerRaw ¶
type SetCallerRaw struct {
Contract *SetCaller // Generic read-only contract binding to access the raw methods on
}
SetCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.
func (*SetCallerRaw) Call ¶
func (_Set *SetCallerRaw) 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 SetCallerSession ¶
type SetCallerSession struct {
Contract *SetCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
SetCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.
type SetFilterer ¶
type SetFilterer struct {
// contains filtered or unexported fields
}
SetFilterer is an auto generated log filtering Go binding around an cpchain contract events.
func NewSetFilterer ¶
func NewSetFilterer(address common.Address, filterer bind.ContractFilterer) (*SetFilterer, error)
NewSetFilterer creates a new log filterer instance of Set, bound to a specific deployed contract.
type SetRaw ¶
type SetRaw struct {
Contract *Set // Generic contract binding to access the raw methods on
}
SetRaw is an auto generated low-level Go binding around an cpchain contract.
func (*SetRaw) Call ¶
func (_Set *SetRaw) 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 (*SetRaw) Transact ¶
func (_Set *SetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SetRaw) Transfer ¶
func (_Set *SetRaw) 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 SetSession ¶
type SetSession struct {
Contract *Set // 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
}
SetSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.
type SetTransactor ¶
type SetTransactor struct {
// contains filtered or unexported fields
}
SetTransactor is an auto generated write-only Go binding around an cpchain contract.
func NewSetTransactor ¶
func NewSetTransactor(address common.Address, transactor bind.ContractTransactor) (*SetTransactor, error)
NewSetTransactor creates a new write-only instance of Set, bound to a specific deployed contract.
type SetTransactorRaw ¶
type SetTransactorRaw struct {
Contract *SetTransactor // Generic write-only contract binding to access the raw methods on
}
SetTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.
func (*SetTransactorRaw) Transact ¶
func (_Set *SetTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SetTransactorRaw) Transfer ¶
func (_Set *SetTransactorRaw) 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 SetTransactorSession ¶
type SetTransactorSession struct {
Contract *SetTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
SetTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.