reward

package
v0.2.8-doc Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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

View Source
const RewardBin = `` /* 10118-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 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

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

BasicCriteria is a free data retrieval call binding the contract method 0xc0209d1f.

Solidity: function basicCriteria() constant returns(uint256)

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

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

ElectionCriteria is a free data retrieval call binding the contract method 0xd9f7700a.

Solidity: function electionCriteria() constant returns(uint256)

func (*RewardCaller) GetFreeBalance

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

GetFreeBalance is a free data retrieval call binding the contract method 0x8870985b.

Solidity: function getFreeBalance(_addr address) constant returns(uint256)

func (*RewardCaller) GetInvestors

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

GetInvestors is a free data retrieval call binding the contract method 0xb2f5a54c.

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

func (*RewardCaller) GetLockedBalance

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

GetLockedBalance is a free data retrieval call binding the contract method 0xc4086893.

Solidity: function getLockedBalance(_addr address) constant returns(uint256)

func (*RewardCaller) GetTotalBalance

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

GetTotalBalance is a free data retrieval call binding the contract method 0xd3d38193.

Solidity: function getTotalBalance(_addr address) constant returns(uint256)

func (*RewardCaller) IsContract

func (_Reward *RewardCaller) IsContract(opts *bind.CallOpts, 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 (*RewardCaller) IsENode

func (_Reward *RewardCaller) IsENode(opts *bind.CallOpts, _addr common.Address) (bool, error)

IsENode is a free data retrieval call binding the contract method 0xb95ec203.

Solidity: function isENode(_addr address) constant returns(bool)

func (*RewardCaller) IsLocked

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

IsLocked is a free data retrieval call binding the contract method 0xa4e2d634.

Solidity: function isLocked() constant returns(bool)

func (*RewardCaller) IsRNode

func (_Reward *RewardCaller) IsRNode(opts *bind.CallOpts, _addr common.Address) (bool, error)

IsRNode is a free data retrieval call binding the contract method 0x2baaabc1.

Solidity: function isRNode(_addr address) constant returns(bool)

func (*RewardCaller) IsToRenew

func (_Reward *RewardCaller) IsToRenew(opts *bind.CallOpts, _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 (*RewardCaller) NextRound

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

NextRound is a free data retrieval call binding the contract method 0x47e40553.

Solidity: function nextRound() constant returns(uint256)

func (*RewardCaller) NextRoundStartTime

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

NextRoundStartTime is a free data retrieval call binding the contract method 0x4aeb31eb.

Solidity: function nextRoundStartTime() constant returns(uint256)

func (*RewardCaller) TotalInvestAmount

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

TotalInvestAmount is a free data retrieval call binding the contract method 0x665db73d.

Solidity: function totalInvestAmount() constant returns(uint256)

func (*RewardCaller) TotalInvestAmountNow

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

TotalInvestAmountNow is a free data retrieval call binding the contract method 0x3ad9b7b9.

Solidity: function totalInvestAmountNow() 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) ElectionCriteria

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

ElectionCriteria is a free data retrieval call binding the contract method 0xd9f7700a.

Solidity: function electionCriteria() constant returns(uint256)

func (*RewardCallerSession) GetFreeBalance

func (_Reward *RewardCallerSession) GetFreeBalance(_addr common.Address) (*big.Int, error)

GetFreeBalance is a free data retrieval call binding the contract method 0x8870985b.

Solidity: function getFreeBalance(_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) GetLockedBalance

func (_Reward *RewardCallerSession) GetLockedBalance(_addr common.Address) (*big.Int, error)

GetLockedBalance is a free data retrieval call binding the contract method 0xc4086893.

Solidity: function getLockedBalance(_addr address) constant returns(uint256)

func (*RewardCallerSession) GetTotalBalance

func (_Reward *RewardCallerSession) GetTotalBalance(_addr common.Address) (*big.Int, error)

GetTotalBalance is a free data retrieval call binding the contract method 0xd3d38193.

Solidity: function getTotalBalance(_addr address) constant returns(uint256)

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 0xb95ec203.

Solidity: function isENode(_addr address) constant returns(bool)

func (*RewardCallerSession) IsLocked

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

IsLocked is a free data retrieval call binding the contract method 0xa4e2d634.

Solidity: function isLocked() constant returns(bool)

func (*RewardCallerSession) IsRNode

func (_Reward *RewardCallerSession) IsRNode(_addr common.Address) (bool, error)

IsRNode is a free data retrieval call binding the contract method 0x2baaabc1.

Solidity: function isRNode(_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) 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)

func (*RewardCallerSession) TotalInvestAmount

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

TotalInvestAmount is a free data retrieval call binding the contract method 0x665db73d.

Solidity: function totalInvestAmount() constant returns(uint256)

func (*RewardCallerSession) TotalInvestAmountNow

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

TotalInvestAmountNow is a free data retrieval call binding the contract method 0x3ad9b7b9.

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

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

func (*RewardContinuedInvestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardContinuedInvestIterator) 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 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

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

func (*RewardDepositInsufficientIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardDepositInsufficientIterator) 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 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 0xc77e37a0f773afcb213afe8a3075752e50740f11368b2098fcffb6b99dd43978.

Solidity: e JoinENodes(who address, value uint256)

func (*RewardFilterer) FilterJoinRNodes

func (_Reward *RewardFilterer) FilterJoinRNodes(opts *bind.FilterOpts) (*RewardJoinRNodesIterator, error)

FilterJoinRNodes is a free log retrieval operation binding the contract event 0xd8bcb238cc6e3b6f0e56058422877e35c9b0c97497d911cd98ec09ea45b4e623.

Solidity: e JoinRNodes(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) 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) FilterTransferDeposit

func (_Reward *RewardFilterer) FilterTransferDeposit(opts *bind.FilterOpts) (*RewardTransferDepositIterator, error)

FilterTransferDeposit is a free log retrieval operation binding the contract event 0x65134cf3b0cc43a1e4a814449241d36665e5774b4c36f7747755a62cf02493d5.

Solidity: e TransferDeposit(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 0xc77e37a0f773afcb213afe8a3075752e50740f11368b2098fcffb6b99dd43978.

Solidity: e JoinENodes(who address, value uint256)

func (*RewardFilterer) WatchJoinRNodes

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

WatchJoinRNodes is a free log subscription operation binding the contract event 0xd8bcb238cc6e3b6f0e56058422877e35c9b0c97497d911cd98ec09ea45b4e623.

Solidity: e JoinRNodes(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) 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) WatchTransferDeposit

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

WatchTransferDeposit is a free log subscription operation binding the contract event 0x65134cf3b0cc43a1e4a814449241d36665e5774b4c36f7747755a62cf02493d5.

Solidity: e TransferDeposit(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 RewardJoinRNodes

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

RewardJoinRNodes represents a JoinRNodes event raised by the Reward contract.

type RewardJoinRNodesIterator

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

RewardJoinRNodesIterator is returned from FilterJoinRNodes and is used to iterate over the raw logs and unpacked data for JoinRNodes events raised by the Reward contract.

func (*RewardJoinRNodesIterator) Close

func (it *RewardJoinRNodesIterator) Close() error

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

func (*RewardJoinRNodesIterator) Error

func (it *RewardJoinRNodesIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardJoinRNodesIterator) Next

func (it *RewardJoinRNodesIterator) 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 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) 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) ElectionCriteria

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

ElectionCriteria is a free data retrieval call binding the contract method 0xd9f7700a.

Solidity: function electionCriteria() constant returns(uint256)

func (*RewardSession) GetFreeBalance

func (_Reward *RewardSession) GetFreeBalance(_addr common.Address) (*big.Int, error)

GetFreeBalance is a free data retrieval call binding the contract method 0x8870985b.

Solidity: function getFreeBalance(_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) GetLockedBalance

func (_Reward *RewardSession) GetLockedBalance(_addr common.Address) (*big.Int, error)

GetLockedBalance is a free data retrieval call binding the contract method 0xc4086893.

Solidity: function getLockedBalance(_addr address) constant returns(uint256)

func (*RewardSession) GetTotalBalance

func (_Reward *RewardSession) GetTotalBalance(_addr common.Address) (*big.Int, error)

GetTotalBalance is a free data retrieval call binding the contract method 0xd3d38193.

Solidity: function getTotalBalance(_addr address) constant returns(uint256)

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 0xb95ec203.

Solidity: function isENode(_addr address) constant returns(bool)

func (*RewardSession) IsLocked

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

IsLocked is a free data retrieval call binding the contract method 0xa4e2d634.

Solidity: function isLocked() constant returns(bool)

func (*RewardSession) IsRNode

func (_Reward *RewardSession) IsRNode(_addr common.Address) (bool, error)

IsRNode is a free data retrieval call binding the contract method 0x2baaabc1.

Solidity: function isRNode(_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) 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) 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) SetBonusPool

func (_Reward *RewardSession) SetBonusPool(_bonus *big.Int) (*types.Transaction, error)

SetBonusPool is a paid mutator transaction binding the contract method 0xdb99cb3e.

Solidity: function setBonusPool(_bonus 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) TotalInvestAmount

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

TotalInvestAmount is a free data retrieval call binding the contract method 0x665db73d.

Solidity: function totalInvestAmount() constant returns(uint256)

func (*RewardSession) TotalInvestAmountNow

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

TotalInvestAmountNow is a free data retrieval call binding the contract method 0x3ad9b7b9.

Solidity: function totalInvestAmountNow() constant returns(uint256)

func (*RewardSession) TransferDeposit

func (_Reward *RewardSession) TransferDeposit(_addr common.Address, _value *big.Int) (*types.Transaction, error)

TransferDeposit is a paid mutator transaction binding the contract method 0x50f3dbec.

Solidity: function transferDeposit(_addr address, _value uint256) 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) 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) SetBonusPool

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

SetBonusPool is a paid mutator transaction binding the contract method 0xdb99cb3e.

Solidity: function setBonusPool(_bonus 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) TransferDeposit

func (_Reward *RewardTransactor) TransferDeposit(opts *bind.TransactOpts, _addr common.Address, _value *big.Int) (*types.Transaction, error)

TransferDeposit is a paid mutator transaction binding the contract method 0x50f3dbec.

Solidity: function transferDeposit(_addr address, _value uint256) 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) 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) SetBonusPool

func (_Reward *RewardTransactorSession) SetBonusPool(_bonus *big.Int) (*types.Transaction, error)

SetBonusPool is a paid mutator transaction binding the contract method 0xdb99cb3e.

Solidity: function setBonusPool(_bonus 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) TransferDeposit

func (_Reward *RewardTransactorSession) TransferDeposit(_addr common.Address, _value *big.Int) (*types.Transaction, error)

TransferDeposit is a paid mutator transaction binding the contract method 0x50f3dbec.

Solidity: function transferDeposit(_addr address, _value uint256) 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 RewardTransferDeposit

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

RewardTransferDeposit represents a TransferDeposit event raised by the Reward contract.

type RewardTransferDepositIterator

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

RewardTransferDepositIterator is returned from FilterTransferDeposit and is used to iterate over the raw logs and unpacked data for TransferDeposit events raised by the Reward contract.

func (*RewardTransferDepositIterator) Close

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

func (*RewardTransferDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardTransferDepositIterator) 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 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

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

func (*RewardWithdrawDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RewardWithdrawDepositIterator) 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 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