reward

package
v0.5.3-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RewardABI = "" /* 8191-byte string literal not displayed */

RewardABI is the input ABI used to generate the binding from.

View Source
const RewardBin = `` /* 11178-byte string literal not displayed */

RewardBin is the compiled bytecode used for deploying new contracts.

View Source
const SafeMathABI = "[]"

SafeMathABI is the input ABI used to generate the binding from.

View Source
const SafeMathBin = `` /* 242-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

View Source
const SetABI = "[]"

SetABI is the input ABI used to generate the binding from.

View Source
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.

func NewReward

func NewReward(address common.Address, backend bind.ContractBackend) (*Reward, error)

NewReward creates a new instance of Reward, bound to a specific deployed contract.

type RewardAddInvestment

type RewardAddInvestment struct {
	Who    common.Address
	Amount *big.Int
	Total  *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RewardAddInvestment represents a AddInvestment event raised by the Reward contract.

type RewardAddInvestmentIterator

type RewardAddInvestmentIterator struct {
	Event *RewardAddInvestment // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardAddInvestmentIterator is returned from FilterAddInvestment and is used to iterate over the raw logs and unpacked data for AddInvestment events raised by the Reward contract.

func (*RewardAddInvestmentIterator) Close

func (it *RewardAddInvestmentIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardAddInvestmentIterator) Error

func (it *RewardAddInvestmentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardAddInvestmentIterator) Next

func (it *RewardAddInvestmentIterator) 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 RewardApplyForSettlement

type RewardApplyForSettlement struct {
	Who    common.Address
	Income *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RewardApplyForSettlement represents a ApplyForSettlement event raised by the Reward contract.

type RewardApplyForSettlementIterator

type RewardApplyForSettlementIterator struct {
	Event *RewardApplyForSettlement // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardApplyForSettlementIterator is returned from FilterApplyForSettlement and is used to iterate over the raw logs and unpacked data for ApplyForSettlement events raised by the Reward contract.

func (*RewardApplyForSettlementIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardApplyForSettlementIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardApplyForSettlementIterator) Next

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 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) BonusPool

func (_Reward *RewardCaller) BonusPool(opts *bind.CallOpts) (*big.Int, error)

BonusPool is a free data retrieval call binding the contract method 0x2693ee80.

Solidity: function bonusPool() constant returns(uint256)

func (*RewardCaller) EnodeThreshold

func (_Reward *RewardCaller) EnodeThreshold(opts *bind.CallOpts) (*big.Int, error)

EnodeThreshold is a free data retrieval call binding the contract method 0xea86298c.

Solidity: function enodeThreshold() constant returns(uint256)

func (*RewardCaller) GetEnodes

func (_Reward *RewardCaller) GetEnodes(opts *bind.CallOpts) ([]common.Address, error)

GetEnodes is a free data retrieval call binding the contract method 0xde4ff4bf.

Solidity: function getEnodes() constant returns(address[])

func (*RewardCaller) InLock

func (_Reward *RewardCaller) InLock(opts *bind.CallOpts) (bool, error)

InLock is a free data retrieval call binding the contract method 0x197331b8.

Solidity: function inLock() constant returns(bool)

func (*RewardCaller) InRaise

func (_Reward *RewardCaller) InRaise(opts *bind.CallOpts) (bool, error)

InRaise is a free data retrieval call binding the contract method 0x273bac0b.

Solidity: function inRaise() constant returns(bool)

func (*RewardCaller) InSettlement

func (_Reward *RewardCaller) InSettlement(opts *bind.CallOpts) (bool, error)

InSettlement is a free data retrieval call binding the contract method 0x24eceaf6.

Solidity: function inSettlement() constant returns(bool)

func (*RewardCaller) Investments

func (_Reward *RewardCaller) Investments(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Investments is a free data retrieval call binding the contract method 0x96b98862.

Solidity: function investments( address) constant returns(uint256)

func (*RewardCaller) LockPeriod

func (_Reward *RewardCaller) LockPeriod(opts *bind.CallOpts) (*big.Int, error)

LockPeriod is a free data retrieval call binding the contract method 0x3fd8b02f.

Solidity: function lockPeriod() constant returns(uint256)

func (*RewardCaller) NextLockTime

func (_Reward *RewardCaller) NextLockTime(opts *bind.CallOpts) (*big.Int, error)

NextLockTime is a free data retrieval call binding the contract method 0x3086f3a4.

Solidity: function nextLockTime() constant returns(uint256)

func (*RewardCaller) NextRaiseTime

func (_Reward *RewardCaller) NextRaiseTime(opts *bind.CallOpts) (*big.Int, error)

NextRaiseTime is a free data retrieval call binding the contract method 0x6e216366.

Solidity: function nextRaiseTime() constant returns(uint256)

func (*RewardCaller) NextSettlementTime

func (_Reward *RewardCaller) NextSettlementTime(opts *bind.CallOpts) (*big.Int, error)

NextSettlementTime is a free data retrieval call binding the contract method 0x2b024aaf.

Solidity: function nextSettlementTime() constant returns(uint256)

func (*RewardCaller) RaisePeriod

func (_Reward *RewardCaller) RaisePeriod(opts *bind.CallOpts) (*big.Int, error)

RaisePeriod is a free data retrieval call binding the contract method 0x4618d9d2.

Solidity: function raisePeriod() constant returns(uint256)

func (*RewardCaller) Round

func (_Reward *RewardCaller) Round(opts *bind.CallOpts) (*big.Int, error)

Round is a free data retrieval call binding the contract method 0x146ca531.

Solidity: function round() constant returns(uint256)

func (*RewardCaller) SettlementPeriod

func (_Reward *RewardCaller) SettlementPeriod(opts *bind.CallOpts) (*big.Int, error)

SettlementPeriod is a free data retrieval call binding the contract method 0x0f1071be.

Solidity: function settlementPeriod() constant returns(uint256)

func (*RewardCaller) TotalInterest

func (_Reward *RewardCaller) TotalInterest(opts *bind.CallOpts) (*big.Int, error)

TotalInterest is a free data retrieval call binding the contract method 0xbc7a36d6.

Solidity: function totalInterest() constant returns(uint256)

func (*RewardCaller) TotalInvestment

func (_Reward *RewardCaller) TotalInvestment(opts *bind.CallOpts) (*big.Int, error)

TotalInvestment is a free data retrieval call binding the contract method 0x10ea13df.

Solidity: function totalInvestment() 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) 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) EnodeThreshold

func (_Reward *RewardCallerSession) EnodeThreshold() (*big.Int, error)

EnodeThreshold is a free data retrieval call binding the contract method 0xea86298c.

Solidity: function enodeThreshold() constant returns(uint256)

func (*RewardCallerSession) GetEnodes

func (_Reward *RewardCallerSession) GetEnodes() ([]common.Address, error)

GetEnodes is a free data retrieval call binding the contract method 0xde4ff4bf.

Solidity: function getEnodes() constant returns(address[])

func (*RewardCallerSession) InLock

func (_Reward *RewardCallerSession) InLock() (bool, error)

InLock is a free data retrieval call binding the contract method 0x197331b8.

Solidity: function inLock() constant returns(bool)

func (*RewardCallerSession) InRaise

func (_Reward *RewardCallerSession) InRaise() (bool, error)

InRaise is a free data retrieval call binding the contract method 0x273bac0b.

Solidity: function inRaise() constant returns(bool)

func (*RewardCallerSession) InSettlement

func (_Reward *RewardCallerSession) InSettlement() (bool, error)

InSettlement is a free data retrieval call binding the contract method 0x24eceaf6.

Solidity: function inSettlement() constant returns(bool)

func (*RewardCallerSession) Investments

func (_Reward *RewardCallerSession) Investments(arg0 common.Address) (*big.Int, error)

Investments is a free data retrieval call binding the contract method 0x96b98862.

Solidity: function investments( address) constant returns(uint256)

func (*RewardCallerSession) LockPeriod

func (_Reward *RewardCallerSession) LockPeriod() (*big.Int, error)

LockPeriod is a free data retrieval call binding the contract method 0x3fd8b02f.

Solidity: function lockPeriod() constant returns(uint256)

func (*RewardCallerSession) NextLockTime

func (_Reward *RewardCallerSession) NextLockTime() (*big.Int, error)

NextLockTime is a free data retrieval call binding the contract method 0x3086f3a4.

Solidity: function nextLockTime() constant returns(uint256)

func (*RewardCallerSession) NextRaiseTime

func (_Reward *RewardCallerSession) NextRaiseTime() (*big.Int, error)

NextRaiseTime is a free data retrieval call binding the contract method 0x6e216366.

Solidity: function nextRaiseTime() constant returns(uint256)

func (*RewardCallerSession) NextSettlementTime

func (_Reward *RewardCallerSession) NextSettlementTime() (*big.Int, error)

NextSettlementTime is a free data retrieval call binding the contract method 0x2b024aaf.

Solidity: function nextSettlementTime() constant returns(uint256)

func (*RewardCallerSession) RaisePeriod

func (_Reward *RewardCallerSession) RaisePeriod() (*big.Int, error)

RaisePeriod is a free data retrieval call binding the contract method 0x4618d9d2.

Solidity: function raisePeriod() constant returns(uint256)

func (*RewardCallerSession) Round

func (_Reward *RewardCallerSession) Round() (*big.Int, error)

Round is a free data retrieval call binding the contract method 0x146ca531.

Solidity: function round() constant returns(uint256)

func (*RewardCallerSession) SettlementPeriod

func (_Reward *RewardCallerSession) SettlementPeriod() (*big.Int, error)

SettlementPeriod is a free data retrieval call binding the contract method 0x0f1071be.

Solidity: function settlementPeriod() constant returns(uint256)

func (*RewardCallerSession) TotalInterest

func (_Reward *RewardCallerSession) TotalInterest() (*big.Int, error)

TotalInterest is a free data retrieval call binding the contract method 0xbc7a36d6.

Solidity: function totalInterest() constant returns(uint256)

func (*RewardCallerSession) TotalInvestment

func (_Reward *RewardCallerSession) TotalInvestment() (*big.Int, error)

TotalInvestment is a free data retrieval call binding the contract method 0x10ea13df.

Solidity: function totalInvestment() constant returns(uint256)

type RewardEnodeQuit

type RewardEnodeQuit struct {
	Who     common.Address
	Balance *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RewardEnodeQuit represents a EnodeQuit event raised by the Reward contract.

type RewardEnodeQuitIterator

type RewardEnodeQuitIterator struct {
	Event *RewardEnodeQuit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardEnodeQuitIterator is returned from FilterEnodeQuit and is used to iterate over the raw logs and unpacked data for EnodeQuit events raised by the Reward contract.

func (*RewardEnodeQuitIterator) Close

func (it *RewardEnodeQuitIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardEnodeQuitIterator) Error

func (it *RewardEnodeQuitIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardEnodeQuitIterator) Next

func (it *RewardEnodeQuitIterator) 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) FilterAddInvestment

func (_Reward *RewardFilterer) FilterAddInvestment(opts *bind.FilterOpts) (*RewardAddInvestmentIterator, error)

FilterAddInvestment is a free log retrieval operation binding the contract event 0x843f02bcc52ab5b45e8e33b61e593cb6e8f8b5d725107e495cfb41169c020b1a.

Solidity: e AddInvestment(who address, amount uint256, total uint256)

func (*RewardFilterer) FilterApplyForSettlement

func (_Reward *RewardFilterer) FilterApplyForSettlement(opts *bind.FilterOpts) (*RewardApplyForSettlementIterator, error)

FilterApplyForSettlement is a free log retrieval operation binding the contract event 0x1e6476e13208eaabfb4df240debd08374faf3c82dbf157ad79e99f812429bf21.

Solidity: e ApplyForSettlement(who address, income uint256)

func (*RewardFilterer) FilterEnodeQuit

func (_Reward *RewardFilterer) FilterEnodeQuit(opts *bind.FilterOpts) (*RewardEnodeQuitIterator, error)

FilterEnodeQuit is a free log retrieval operation binding the contract event 0x79586139b58324379448df2efc55fe4634876e66799646ecabe665279eac8e3e.

Solidity: e EnodeQuit(who address, balance uint256)

func (*RewardFilterer) FilterFundBonusPool

func (_Reward *RewardFilterer) FilterFundBonusPool(opts *bind.FilterOpts) (*RewardFundBonusPoolIterator, error)

FilterFundBonusPool is a free log retrieval operation binding the contract event 0xa1610f5f05db2d5caefef4f1bb2d913438a2fdb236ebc0ceedfacb398af1955b.

Solidity: e FundBonusPool(who address, amount uint256, total uint256)

func (*RewardFilterer) FilterNewEnode

func (_Reward *RewardFilterer) FilterNewEnode(opts *bind.FilterOpts) (*RewardNewEnodeIterator, error)

FilterNewEnode is a free log retrieval operation binding the contract event 0x210672d0bc3ee003d955e13c2d9d0a8f32e584d6afd71d9c442d62c93fa388fd.

Solidity: e NewEnode(who address, investment uint256)

func (*RewardFilterer) FilterNewLock

func (_Reward *RewardFilterer) FilterNewLock(opts *bind.FilterOpts) (*RewardNewLockIterator, error)

FilterNewLock is a free log retrieval operation binding the contract event 0xb31d85c8dd6420b94a0301198a31f222bf0121111239360678a05581918363d2.

Solidity: e NewLock(when uint256)

func (*RewardFilterer) FilterNewRaise

func (_Reward *RewardFilterer) FilterNewRaise(opts *bind.FilterOpts) (*RewardNewRaiseIterator, error)

FilterNewRaise is a free log retrieval operation binding the contract event 0x2c6acffc376bae0dce9f74a673af6142300bd796866c1acec95c70f80d233282.

Solidity: e NewRaise(when uint256)

func (*RewardFilterer) FilterNewSettlement

func (_Reward *RewardFilterer) FilterNewSettlement(opts *bind.FilterOpts) (*RewardNewSettlementIterator, error)

FilterNewSettlement is a free log retrieval operation binding the contract event 0x5281dfe0dbeb8cfb053968120a0ecb9da2b12bc2dcc60f9734171a83ec610333.

Solidity: e NewSettlement(when uint256)

func (*RewardFilterer) FilterSetConfig

func (_Reward *RewardFilterer) FilterSetConfig(opts *bind.FilterOpts) (*RewardSetConfigIterator, error)

FilterSetConfig is a free log retrieval operation binding the contract event 0x361737d1051ccafab7e68fcbafe4466aaec6ee5ac4b3eb51447ac84a15cce16d.

Solidity: e SetConfig(what string, value uint256)

func (*RewardFilterer) FilterSetTime

func (_Reward *RewardFilterer) FilterSetTime(opts *bind.FilterOpts) (*RewardSetTimeIterator, error)

FilterSetTime is a free log retrieval operation binding the contract event 0x46e55608d5463575e90f64d3ae173372234546746315e0f3574a3bdf35567f9f.

Solidity: e SetTime(what string, when uint256)

func (*RewardFilterer) FilterSubInvestment

func (_Reward *RewardFilterer) FilterSubInvestment(opts *bind.FilterOpts) (*RewardSubInvestmentIterator, error)

FilterSubInvestment is a free log retrieval operation binding the contract event 0xdcd7220e3580673dbcb5899da3a05c073c2df48aa178b65b33fec6b43e13a09d.

Solidity: e SubInvestment(who address, amount uint256, total uint256)

func (*RewardFilterer) WatchAddInvestment

func (_Reward *RewardFilterer) WatchAddInvestment(opts *bind.WatchOpts, sink chan<- *RewardAddInvestment) (event.Subscription, error)

WatchAddInvestment is a free log subscription operation binding the contract event 0x843f02bcc52ab5b45e8e33b61e593cb6e8f8b5d725107e495cfb41169c020b1a.

Solidity: e AddInvestment(who address, amount uint256, total uint256)

func (*RewardFilterer) WatchApplyForSettlement

func (_Reward *RewardFilterer) WatchApplyForSettlement(opts *bind.WatchOpts, sink chan<- *RewardApplyForSettlement) (event.Subscription, error)

WatchApplyForSettlement is a free log subscription operation binding the contract event 0x1e6476e13208eaabfb4df240debd08374faf3c82dbf157ad79e99f812429bf21.

Solidity: e ApplyForSettlement(who address, income uint256)

func (*RewardFilterer) WatchEnodeQuit

func (_Reward *RewardFilterer) WatchEnodeQuit(opts *bind.WatchOpts, sink chan<- *RewardEnodeQuit) (event.Subscription, error)

WatchEnodeQuit is a free log subscription operation binding the contract event 0x79586139b58324379448df2efc55fe4634876e66799646ecabe665279eac8e3e.

Solidity: e EnodeQuit(who address, balance 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 0xa1610f5f05db2d5caefef4f1bb2d913438a2fdb236ebc0ceedfacb398af1955b.

Solidity: e FundBonusPool(who address, amount uint256, total uint256)

func (*RewardFilterer) WatchNewEnode

func (_Reward *RewardFilterer) WatchNewEnode(opts *bind.WatchOpts, sink chan<- *RewardNewEnode) (event.Subscription, error)

WatchNewEnode is a free log subscription operation binding the contract event 0x210672d0bc3ee003d955e13c2d9d0a8f32e584d6afd71d9c442d62c93fa388fd.

Solidity: e NewEnode(who address, investment uint256)

func (*RewardFilterer) WatchNewLock

func (_Reward *RewardFilterer) WatchNewLock(opts *bind.WatchOpts, sink chan<- *RewardNewLock) (event.Subscription, error)

WatchNewLock is a free log subscription operation binding the contract event 0xb31d85c8dd6420b94a0301198a31f222bf0121111239360678a05581918363d2.

Solidity: e NewLock(when 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 0x2c6acffc376bae0dce9f74a673af6142300bd796866c1acec95c70f80d233282.

Solidity: e NewRaise(when uint256)

func (*RewardFilterer) WatchNewSettlement

func (_Reward *RewardFilterer) WatchNewSettlement(opts *bind.WatchOpts, sink chan<- *RewardNewSettlement) (event.Subscription, error)

WatchNewSettlement is a free log subscription operation binding the contract event 0x5281dfe0dbeb8cfb053968120a0ecb9da2b12bc2dcc60f9734171a83ec610333.

Solidity: e NewSettlement(when uint256)

func (*RewardFilterer) WatchSetConfig

func (_Reward *RewardFilterer) WatchSetConfig(opts *bind.WatchOpts, sink chan<- *RewardSetConfig) (event.Subscription, error)

WatchSetConfig is a free log subscription operation binding the contract event 0x361737d1051ccafab7e68fcbafe4466aaec6ee5ac4b3eb51447ac84a15cce16d.

Solidity: e SetConfig(what string, value uint256)

func (*RewardFilterer) WatchSetTime

func (_Reward *RewardFilterer) WatchSetTime(opts *bind.WatchOpts, sink chan<- *RewardSetTime) (event.Subscription, error)

WatchSetTime is a free log subscription operation binding the contract event 0x46e55608d5463575e90f64d3ae173372234546746315e0f3574a3bdf35567f9f.

Solidity: e SetTime(what string, when uint256)

func (*RewardFilterer) WatchSubInvestment

func (_Reward *RewardFilterer) WatchSubInvestment(opts *bind.WatchOpts, sink chan<- *RewardSubInvestment) (event.Subscription, error)

WatchSubInvestment is a free log subscription operation binding the contract event 0xdcd7220e3580673dbcb5899da3a05c073c2df48aa178b65b33fec6b43e13a09d.

Solidity: e SubInvestment(who address, amount uint256, total uint256)

type RewardFundBonusPool

type RewardFundBonusPool struct {
	Who    common.Address
	Amount *big.Int
	Total  *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 RewardNewEnode

type RewardNewEnode struct {
	Who        common.Address
	Investment *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

RewardNewEnode represents a NewEnode event raised by the Reward contract.

type RewardNewEnodeIterator

type RewardNewEnodeIterator struct {
	Event *RewardNewEnode // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardNewEnodeIterator is returned from FilterNewEnode and is used to iterate over the raw logs and unpacked data for NewEnode events raised by the Reward contract.

func (*RewardNewEnodeIterator) Close

func (it *RewardNewEnodeIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardNewEnodeIterator) Error

func (it *RewardNewEnodeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardNewEnodeIterator) Next

func (it *RewardNewEnodeIterator) 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 RewardNewLock

type RewardNewLock struct {
	When *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

RewardNewLock represents a NewLock event raised by the Reward contract.

type RewardNewLockIterator

type RewardNewLockIterator struct {
	Event *RewardNewLock // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardNewLockIterator is returned from FilterNewLock and is used to iterate over the raw logs and unpacked data for NewLock events raised by the Reward contract.

func (*RewardNewLockIterator) Close

func (it *RewardNewLockIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardNewLockIterator) Error

func (it *RewardNewLockIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardNewLockIterator) Next

func (it *RewardNewLockIterator) 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 {
	When *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 RewardNewSettlement

type RewardNewSettlement struct {
	When *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

RewardNewSettlement represents a NewSettlement event raised by the Reward contract.

type RewardNewSettlementIterator

type RewardNewSettlementIterator struct {
	Event *RewardNewSettlement // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardNewSettlementIterator is returned from FilterNewSettlement and is used to iterate over the raw logs and unpacked data for NewSettlement events raised by the Reward contract.

func (*RewardNewSettlementIterator) Close

func (it *RewardNewSettlementIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardNewSettlementIterator) Error

func (it *RewardNewSettlementIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardNewSettlementIterator) Next

func (it *RewardNewSettlementIterator) 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 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) 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) ClaimInterest

func (_Reward *RewardSession) ClaimInterest() (*types.Transaction, error)

ClaimInterest is a paid mutator transaction binding the contract method 0x35981fd8.

Solidity: function claimInterest() returns()

func (*RewardSession) Deposit

func (_Reward *RewardSession) Deposit() (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.

Solidity: function deposit() returns()

func (*RewardSession) Disable

func (_Reward *RewardSession) Disable() (*types.Transaction, error)

Disable is a paid mutator transaction binding the contract method 0x2f2770db.

Solidity: function disable() returns()

func (*RewardSession) DistributeInterest

func (_Reward *RewardSession) DistributeInterest(investor common.Address) (*types.Transaction, error)

DistributeInterest is a paid mutator transaction binding the contract method 0x2555f66e.

Solidity: function distributeInterest(investor address) returns()

func (*RewardSession) EnodeThreshold

func (_Reward *RewardSession) EnodeThreshold() (*big.Int, error)

EnodeThreshold is a free data retrieval call binding the contract method 0xea86298c.

Solidity: function enodeThreshold() constant returns(uint256)

func (*RewardSession) GetEnodes

func (_Reward *RewardSession) GetEnodes() ([]common.Address, error)

GetEnodes is a free data retrieval call binding the contract method 0xde4ff4bf.

Solidity: function getEnodes() constant returns(address[])

func (*RewardSession) InLock

func (_Reward *RewardSession) InLock() (bool, error)

InLock is a free data retrieval call binding the contract method 0x197331b8.

Solidity: function inLock() constant returns(bool)

func (*RewardSession) InRaise

func (_Reward *RewardSession) InRaise() (bool, error)

InRaise is a free data retrieval call binding the contract method 0x273bac0b.

Solidity: function inRaise() constant returns(bool)

func (*RewardSession) InSettlement

func (_Reward *RewardSession) InSettlement() (bool, error)

InSettlement is a free data retrieval call binding the contract method 0x24eceaf6.

Solidity: function inSettlement() constant returns(bool)

func (*RewardSession) Investments

func (_Reward *RewardSession) Investments(arg0 common.Address) (*big.Int, error)

Investments is a free data retrieval call binding the contract method 0x96b98862.

Solidity: function investments( address) constant returns(uint256)

func (*RewardSession) LockPeriod

func (_Reward *RewardSession) LockPeriod() (*big.Int, error)

LockPeriod is a free data retrieval call binding the contract method 0x3fd8b02f.

Solidity: function lockPeriod() constant returns(uint256)

func (*RewardSession) NewLock

func (_Reward *RewardSession) NewLock() (*types.Transaction, error)

NewLock is a paid mutator transaction binding the contract method 0x363245e1.

Solidity: function newLock() returns()

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) NewSettlement

func (_Reward *RewardSession) NewSettlement() (*types.Transaction, error)

NewSettlement is a paid mutator transaction binding the contract method 0x8baaf031.

Solidity: function newSettlement() returns()

func (*RewardSession) NextLockTime

func (_Reward *RewardSession) NextLockTime() (*big.Int, error)

NextLockTime is a free data retrieval call binding the contract method 0x3086f3a4.

Solidity: function nextLockTime() constant returns(uint256)

func (*RewardSession) NextRaiseTime

func (_Reward *RewardSession) NextRaiseTime() (*big.Int, error)

NextRaiseTime is a free data retrieval call binding the contract method 0x6e216366.

Solidity: function nextRaiseTime() constant returns(uint256)

func (*RewardSession) NextSettlementTime

func (_Reward *RewardSession) NextSettlementTime() (*big.Int, error)

NextSettlementTime is a free data retrieval call binding the contract method 0x2b024aaf.

Solidity: function nextSettlementTime() constant returns(uint256)

func (*RewardSession) RaisePeriod

func (_Reward *RewardSession) RaisePeriod() (*big.Int, error)

RaisePeriod is a free data retrieval call binding the contract method 0x4618d9d2.

Solidity: function raisePeriod() constant returns(uint256)

func (*RewardSession) Refund

func (_Reward *RewardSession) Refund(investor common.Address, amount *big.Int) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x410085df.

Solidity: function refund(investor address, amount uint256) returns()

func (*RewardSession) Round

func (_Reward *RewardSession) Round() (*big.Int, error)

Round is a free data retrieval call binding the contract method 0x146ca531.

Solidity: function round() constant returns(uint256)

func (*RewardSession) SetEnodeThreshold

func (_Reward *RewardSession) SetEnodeThreshold(_enodeThreshold *big.Int) (*types.Transaction, error)

SetEnodeThreshold is a paid mutator transaction binding the contract method 0xec9f105f.

Solidity: function setEnodeThreshold(_enodeThreshold uint256) returns()

func (*RewardSession) SetLockPeriod

func (_Reward *RewardSession) SetLockPeriod(_lockPeriod *big.Int) (*types.Transaction, error)

SetLockPeriod is a paid mutator transaction binding the contract method 0x779972da.

Solidity: function setLockPeriod(_lockPeriod uint256) returns()

func (*RewardSession) SetNextLockTime

func (_Reward *RewardSession) SetNextLockTime(_nextLockTime *big.Int) (*types.Transaction, error)

SetNextLockTime is a paid mutator transaction binding the contract method 0x64f44c0b.

Solidity: function setNextLockTime(_nextLockTime uint256) returns()

func (*RewardSession) SetNextRaiseTime

func (_Reward *RewardSession) SetNextRaiseTime(_nextRaiseTime *big.Int) (*types.Transaction, error)

SetNextRaiseTime is a paid mutator transaction binding the contract method 0xa19046e3.

Solidity: function setNextRaiseTime(_nextRaiseTime uint256) returns()

func (*RewardSession) SetNextSettlementTime

func (_Reward *RewardSession) SetNextSettlementTime(_nextSettlementTime *big.Int) (*types.Transaction, error)

SetNextSettlementTime is a paid mutator transaction binding the contract method 0x9d63e6e6.

Solidity: function setNextSettlementTime(_nextSettlementTime uint256) returns()

func (*RewardSession) SetRaisePeriod

func (_Reward *RewardSession) SetRaisePeriod(_raisePeriod *big.Int) (*types.Transaction, error)

SetRaisePeriod is a paid mutator transaction binding the contract method 0x491fcdea.

Solidity: function setRaisePeriod(_raisePeriod uint256) returns()

func (*RewardSession) SetSettlementPeriod

func (_Reward *RewardSession) SetSettlementPeriod(_settlementPeriod *big.Int) (*types.Transaction, error)

SetSettlementPeriod is a paid mutator transaction binding the contract method 0x8072a022.

Solidity: function setSettlementPeriod(_settlementPeriod uint256) returns()

func (*RewardSession) SettlementPeriod

func (_Reward *RewardSession) SettlementPeriod() (*big.Int, error)

SettlementPeriod is a free data retrieval call binding the contract method 0x0f1071be.

Solidity: function settlementPeriod() constant returns(uint256)

func (*RewardSession) TotalInterest

func (_Reward *RewardSession) TotalInterest() (*big.Int, error)

TotalInterest is a free data retrieval call binding the contract method 0xbc7a36d6.

Solidity: function totalInterest() constant returns(uint256)

func (*RewardSession) TotalInvestment

func (_Reward *RewardSession) TotalInvestment() (*big.Int, error)

TotalInvestment is a free data retrieval call binding the contract method 0x10ea13df.

Solidity: function totalInvestment() constant returns(uint256)

func (*RewardSession) Withdraw

func (_Reward *RewardSession) Withdraw(amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(amount uint256) returns()

type RewardSetConfig

type RewardSetConfig struct {
	What  string
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

RewardSetConfig represents a SetConfig event raised by the Reward contract.

type RewardSetConfigIterator

type RewardSetConfigIterator struct {
	Event *RewardSetConfig // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardSetConfigIterator is returned from FilterSetConfig and is used to iterate over the raw logs and unpacked data for SetConfig events raised by the Reward contract.

func (*RewardSetConfigIterator) Close

func (it *RewardSetConfigIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardSetConfigIterator) Error

func (it *RewardSetConfigIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardSetConfigIterator) Next

func (it *RewardSetConfigIterator) 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 RewardSetTime

type RewardSetTime struct {
	What string
	When *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

RewardSetTime represents a SetTime event raised by the Reward contract.

type RewardSetTimeIterator

type RewardSetTimeIterator struct {
	Event *RewardSetTime // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardSetTimeIterator is returned from FilterSetTime and is used to iterate over the raw logs and unpacked data for SetTime events raised by the Reward contract.

func (*RewardSetTimeIterator) Close

func (it *RewardSetTimeIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardSetTimeIterator) Error

func (it *RewardSetTimeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardSetTimeIterator) Next

func (it *RewardSetTimeIterator) 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 RewardSubInvestment

type RewardSubInvestment struct {
	Who    common.Address
	Amount *big.Int
	Total  *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RewardSubInvestment represents a SubInvestment event raised by the Reward contract.

type RewardSubInvestmentIterator

type RewardSubInvestmentIterator struct {
	Event *RewardSubInvestment // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RewardSubInvestmentIterator is returned from FilterSubInvestment and is used to iterate over the raw logs and unpacked data for SubInvestment events raised by the Reward contract.

func (*RewardSubInvestmentIterator) Close

func (it *RewardSubInvestmentIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RewardSubInvestmentIterator) Error

func (it *RewardSubInvestmentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardSubInvestmentIterator) Next

func (it *RewardSubInvestmentIterator) 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) ClaimInterest

func (_Reward *RewardTransactor) ClaimInterest(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimInterest is a paid mutator transaction binding the contract method 0x35981fd8.

Solidity: function claimInterest() returns()

func (*RewardTransactor) Deposit

func (_Reward *RewardTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.

Solidity: function deposit() returns()

func (*RewardTransactor) Disable

func (_Reward *RewardTransactor) Disable(opts *bind.TransactOpts) (*types.Transaction, error)

Disable is a paid mutator transaction binding the contract method 0x2f2770db.

Solidity: function disable() returns()

func (*RewardTransactor) DistributeInterest

func (_Reward *RewardTransactor) DistributeInterest(opts *bind.TransactOpts, investor common.Address) (*types.Transaction, error)

DistributeInterest is a paid mutator transaction binding the contract method 0x2555f66e.

Solidity: function distributeInterest(investor address) returns()

func (*RewardTransactor) NewLock

func (_Reward *RewardTransactor) NewLock(opts *bind.TransactOpts) (*types.Transaction, error)

NewLock is a paid mutator transaction binding the contract method 0x363245e1.

Solidity: function newLock() 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) NewSettlement

func (_Reward *RewardTransactor) NewSettlement(opts *bind.TransactOpts) (*types.Transaction, error)

NewSettlement is a paid mutator transaction binding the contract method 0x8baaf031.

Solidity: function newSettlement() returns()

func (*RewardTransactor) Refund

func (_Reward *RewardTransactor) Refund(opts *bind.TransactOpts, investor common.Address, amount *big.Int) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x410085df.

Solidity: function refund(investor address, amount uint256) returns()

func (*RewardTransactor) SetEnodeThreshold

func (_Reward *RewardTransactor) SetEnodeThreshold(opts *bind.TransactOpts, _enodeThreshold *big.Int) (*types.Transaction, error)

SetEnodeThreshold is a paid mutator transaction binding the contract method 0xec9f105f.

Solidity: function setEnodeThreshold(_enodeThreshold uint256) returns()

func (*RewardTransactor) SetLockPeriod

func (_Reward *RewardTransactor) SetLockPeriod(opts *bind.TransactOpts, _lockPeriod *big.Int) (*types.Transaction, error)

SetLockPeriod is a paid mutator transaction binding the contract method 0x779972da.

Solidity: function setLockPeriod(_lockPeriod uint256) returns()

func (*RewardTransactor) SetNextLockTime

func (_Reward *RewardTransactor) SetNextLockTime(opts *bind.TransactOpts, _nextLockTime *big.Int) (*types.Transaction, error)

SetNextLockTime is a paid mutator transaction binding the contract method 0x64f44c0b.

Solidity: function setNextLockTime(_nextLockTime uint256) returns()

func (*RewardTransactor) SetNextRaiseTime

func (_Reward *RewardTransactor) SetNextRaiseTime(opts *bind.TransactOpts, _nextRaiseTime *big.Int) (*types.Transaction, error)

SetNextRaiseTime is a paid mutator transaction binding the contract method 0xa19046e3.

Solidity: function setNextRaiseTime(_nextRaiseTime uint256) returns()

func (*RewardTransactor) SetNextSettlementTime

func (_Reward *RewardTransactor) SetNextSettlementTime(opts *bind.TransactOpts, _nextSettlementTime *big.Int) (*types.Transaction, error)

SetNextSettlementTime is a paid mutator transaction binding the contract method 0x9d63e6e6.

Solidity: function setNextSettlementTime(_nextSettlementTime uint256) returns()

func (*RewardTransactor) SetRaisePeriod

func (_Reward *RewardTransactor) SetRaisePeriod(opts *bind.TransactOpts, _raisePeriod *big.Int) (*types.Transaction, error)

SetRaisePeriod is a paid mutator transaction binding the contract method 0x491fcdea.

Solidity: function setRaisePeriod(_raisePeriod uint256) returns()

func (*RewardTransactor) SetSettlementPeriod

func (_Reward *RewardTransactor) SetSettlementPeriod(opts *bind.TransactOpts, _settlementPeriod *big.Int) (*types.Transaction, error)

SetSettlementPeriod is a paid mutator transaction binding the contract method 0x8072a022.

Solidity: function setSettlementPeriod(_settlementPeriod uint256) returns()

func (*RewardTransactor) Withdraw

func (_Reward *RewardTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(amount 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) ClaimInterest

func (_Reward *RewardTransactorSession) ClaimInterest() (*types.Transaction, error)

ClaimInterest is a paid mutator transaction binding the contract method 0x35981fd8.

Solidity: function claimInterest() returns()

func (*RewardTransactorSession) Deposit

func (_Reward *RewardTransactorSession) Deposit() (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.

Solidity: function deposit() returns()

func (*RewardTransactorSession) Disable

func (_Reward *RewardTransactorSession) Disable() (*types.Transaction, error)

Disable is a paid mutator transaction binding the contract method 0x2f2770db.

Solidity: function disable() returns()

func (*RewardTransactorSession) DistributeInterest

func (_Reward *RewardTransactorSession) DistributeInterest(investor common.Address) (*types.Transaction, error)

DistributeInterest is a paid mutator transaction binding the contract method 0x2555f66e.

Solidity: function distributeInterest(investor address) returns()

func (*RewardTransactorSession) NewLock

func (_Reward *RewardTransactorSession) NewLock() (*types.Transaction, error)

NewLock is a paid mutator transaction binding the contract method 0x363245e1.

Solidity: function newLock() 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) NewSettlement

func (_Reward *RewardTransactorSession) NewSettlement() (*types.Transaction, error)

NewSettlement is a paid mutator transaction binding the contract method 0x8baaf031.

Solidity: function newSettlement() returns()

func (*RewardTransactorSession) Refund

func (_Reward *RewardTransactorSession) Refund(investor common.Address, amount *big.Int) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x410085df.

Solidity: function refund(investor address, amount uint256) returns()

func (*RewardTransactorSession) SetEnodeThreshold

func (_Reward *RewardTransactorSession) SetEnodeThreshold(_enodeThreshold *big.Int) (*types.Transaction, error)

SetEnodeThreshold is a paid mutator transaction binding the contract method 0xec9f105f.

Solidity: function setEnodeThreshold(_enodeThreshold uint256) returns()

func (*RewardTransactorSession) SetLockPeriod

func (_Reward *RewardTransactorSession) SetLockPeriod(_lockPeriod *big.Int) (*types.Transaction, error)

SetLockPeriod is a paid mutator transaction binding the contract method 0x779972da.

Solidity: function setLockPeriod(_lockPeriod uint256) returns()

func (*RewardTransactorSession) SetNextLockTime

func (_Reward *RewardTransactorSession) SetNextLockTime(_nextLockTime *big.Int) (*types.Transaction, error)

SetNextLockTime is a paid mutator transaction binding the contract method 0x64f44c0b.

Solidity: function setNextLockTime(_nextLockTime uint256) returns()

func (*RewardTransactorSession) SetNextRaiseTime

func (_Reward *RewardTransactorSession) SetNextRaiseTime(_nextRaiseTime *big.Int) (*types.Transaction, error)

SetNextRaiseTime is a paid mutator transaction binding the contract method 0xa19046e3.

Solidity: function setNextRaiseTime(_nextRaiseTime uint256) returns()

func (*RewardTransactorSession) SetNextSettlementTime

func (_Reward *RewardTransactorSession) SetNextSettlementTime(_nextSettlementTime *big.Int) (*types.Transaction, error)

SetNextSettlementTime is a paid mutator transaction binding the contract method 0x9d63e6e6.

Solidity: function setNextSettlementTime(_nextSettlementTime uint256) returns()

func (*RewardTransactorSession) SetRaisePeriod

func (_Reward *RewardTransactorSession) SetRaisePeriod(_raisePeriod *big.Int) (*types.Transaction, error)

SetRaisePeriod is a paid mutator transaction binding the contract method 0x491fcdea.

Solidity: function setRaisePeriod(_raisePeriod uint256) returns()

func (*RewardTransactorSession) SetSettlementPeriod

func (_Reward *RewardTransactorSession) SetSettlementPeriod(_settlementPeriod *big.Int) (*types.Transaction, error)

SetSettlementPeriod is a paid mutator transaction binding the contract method 0x8072a022.

Solidity: function setSettlementPeriod(_settlementPeriod uint256) returns()

func (*RewardTransactorSession) Withdraw

func (_Reward *RewardTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(amount uint256) returns()

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

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

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.

func NewSet

func NewSet(address common.Address, backend bind.ContractBackend) (*Set, error)

NewSet creates a new instance of Set, bound to a specific deployed contract.

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

func NewSetCaller(address common.Address, caller bind.ContractCaller) (*SetCaller, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL