campaign

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 AdmissionInterfaceABI = "" /* 415-byte string literal not displayed */

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

View Source
const AdmissionInterfaceBin = `0x`

AdmissionInterfaceBin is the compiled bytecode used for deploying new contracts.

View Source
const CampaignABI = "" /* 4138-byte string literal not displayed */

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

View Source
const CampaignBin = `` /* 5830-byte string literal not displayed */

CampaignBin is the compiled bytecode used for deploying new contracts.

View Source
const RewardInterfaceABI = "" /* 218-byte string literal not displayed */

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

View Source
const RewardInterfaceBin = `0x`

RewardInterfaceBin 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 AdmissionInterface

type AdmissionInterface struct {
	AdmissionInterfaceCaller     // Read-only binding to the contract
	AdmissionInterfaceTransactor // Write-only binding to the contract
	AdmissionInterfaceFilterer   // Log filterer for contract events
}

AdmissionInterface is an auto generated Go binding around an cpchain contract.

func DeployAdmissionInterface

func DeployAdmissionInterface(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AdmissionInterface, error)

DeployAdmissionInterface deploys a new cpchain contract, binding an instance of AdmissionInterface to it.

func NewAdmissionInterface

func NewAdmissionInterface(address common.Address, backend bind.ContractBackend) (*AdmissionInterface, error)

NewAdmissionInterface creates a new instance of AdmissionInterface, bound to a specific deployed contract.

type AdmissionInterfaceCaller

type AdmissionInterfaceCaller struct {
	// contains filtered or unexported fields
}

AdmissionInterfaceCaller is an auto generated read-only Go binding around an cpchain contract.

func NewAdmissionInterfaceCaller

func NewAdmissionInterfaceCaller(address common.Address, caller bind.ContractCaller) (*AdmissionInterfaceCaller, error)

NewAdmissionInterfaceCaller creates a new read-only instance of AdmissionInterface, bound to a specific deployed contract.

func (*AdmissionInterfaceCaller) Verify

func (_AdmissionInterface *AdmissionInterfaceCaller) Verify(opts *bind.CallOpts, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, _sender common.Address) (bool, error)

Verify is a free data retrieval call binding the contract method 0x3395492e.

Solidity: function verify(_cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, _sender address) constant returns(bool)

type AdmissionInterfaceCallerRaw

type AdmissionInterfaceCallerRaw struct {
	Contract *AdmissionInterfaceCaller // Generic read-only contract binding to access the raw methods on
}

AdmissionInterfaceCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.

func (*AdmissionInterfaceCallerRaw) Call

func (_AdmissionInterface *AdmissionInterfaceCallerRaw) 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 AdmissionInterfaceCallerSession

type AdmissionInterfaceCallerSession struct {
	Contract *AdmissionInterfaceCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts             // Call options to use throughout this session
}

AdmissionInterfaceCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.

func (*AdmissionInterfaceCallerSession) Verify

func (_AdmissionInterface *AdmissionInterfaceCallerSession) Verify(_cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, _sender common.Address) (bool, error)

Verify is a free data retrieval call binding the contract method 0x3395492e.

Solidity: function verify(_cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, _sender address) constant returns(bool)

type AdmissionInterfaceFilterer

type AdmissionInterfaceFilterer struct {
	// contains filtered or unexported fields
}

AdmissionInterfaceFilterer is an auto generated log filtering Go binding around an cpchain contract events.

func NewAdmissionInterfaceFilterer

func NewAdmissionInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*AdmissionInterfaceFilterer, error)

NewAdmissionInterfaceFilterer creates a new log filterer instance of AdmissionInterface, bound to a specific deployed contract.

type AdmissionInterfaceRaw

type AdmissionInterfaceRaw struct {
	Contract *AdmissionInterface // Generic contract binding to access the raw methods on
}

AdmissionInterfaceRaw is an auto generated low-level Go binding around an cpchain contract.

func (*AdmissionInterfaceRaw) Call

func (_AdmissionInterface *AdmissionInterfaceRaw) 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 (*AdmissionInterfaceRaw) Transact

func (_AdmissionInterface *AdmissionInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AdmissionInterfaceRaw) Transfer

func (_AdmissionInterface *AdmissionInterfaceRaw) 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 AdmissionInterfaceSession

type AdmissionInterfaceSession struct {
	Contract     *AdmissionInterface // 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
}

AdmissionInterfaceSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.

func (*AdmissionInterfaceSession) Verify

func (_AdmissionInterface *AdmissionInterfaceSession) Verify(_cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, _sender common.Address) (bool, error)

Verify is a free data retrieval call binding the contract method 0x3395492e.

Solidity: function verify(_cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, _sender address) constant returns(bool)

type AdmissionInterfaceTransactor

type AdmissionInterfaceTransactor struct {
	// contains filtered or unexported fields
}

AdmissionInterfaceTransactor is an auto generated write-only Go binding around an cpchain contract.

func NewAdmissionInterfaceTransactor

func NewAdmissionInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*AdmissionInterfaceTransactor, error)

NewAdmissionInterfaceTransactor creates a new write-only instance of AdmissionInterface, bound to a specific deployed contract.

type AdmissionInterfaceTransactorRaw

type AdmissionInterfaceTransactorRaw struct {
	Contract *AdmissionInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}

AdmissionInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.

func (*AdmissionInterfaceTransactorRaw) Transact

func (_AdmissionInterface *AdmissionInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AdmissionInterfaceTransactorRaw) Transfer

func (_AdmissionInterface *AdmissionInterfaceTransactorRaw) 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 AdmissionInterfaceTransactorSession

type AdmissionInterfaceTransactorSession struct {
	Contract     *AdmissionInterfaceTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts             // Transaction auth options to use throughout this session
}

AdmissionInterfaceTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.

type Campaign

type Campaign struct {
	CampaignCaller     // Read-only binding to the contract
	CampaignTransactor // Write-only binding to the contract
	CampaignFilterer   // Log filterer for contract events
}

Campaign is an auto generated Go binding around an cpchain contract.

func DeployCampaign

func DeployCampaign(auth *bind.TransactOpts, backend bind.ContractBackend, _admissionAddr common.Address, _rewardAddr common.Address) (common.Address, *types.Transaction, *Campaign, error)

DeployCampaign deploys a new cpchain contract, binding an instance of Campaign to it.

func NewCampaign

func NewCampaign(address common.Address, backend bind.ContractBackend) (*Campaign, error)

NewCampaign creates a new instance of Campaign, bound to a specific deployed contract.

type CampaignCaller

type CampaignCaller struct {
	// contains filtered or unexported fields
}

CampaignCaller is an auto generated read-only Go binding around an cpchain contract.

func NewCampaignCaller

func NewCampaignCaller(address common.Address, caller bind.ContractCaller) (*CampaignCaller, error)

NewCampaignCaller creates a new read-only instance of Campaign, bound to a specific deployed contract.

func (*CampaignCaller) CandidateInfoOf

func (_Campaign *CampaignCaller) CandidateInfoOf(opts *bind.CallOpts, _candidate common.Address) (*big.Int, *big.Int, *big.Int, error)

CandidateInfoOf is a free data retrieval call binding the contract method 0xdb438269.

Solidity: function candidateInfoOf(_candidate address) constant returns(uint256, uint256, uint256)

func (*CampaignCaller) CandidatesOf

func (_Campaign *CampaignCaller) CandidatesOf(opts *bind.CallOpts, _termIdx *big.Int) ([]common.Address, error)

CandidatesOf is a free data retrieval call binding the contract method 0x1984ab00.

Solidity: function candidatesOf(_termIdx uint256) constant returns(address[])

func (*CampaignCaller) MaxNoc

func (_Campaign *CampaignCaller) MaxNoc(opts *bind.CallOpts) (*big.Int, error)

MaxNoc is a free data retrieval call binding the contract method 0xe2b28158.

Solidity: function maxNoc() constant returns(uint256)

func (*CampaignCaller) MinNoc

func (_Campaign *CampaignCaller) MinNoc(opts *bind.CallOpts) (*big.Int, error)

MinNoc is a free data retrieval call binding the contract method 0x3a713e37.

Solidity: function minNoc() constant returns(uint256)

func (*CampaignCaller) NumPerRound

func (_Campaign *CampaignCaller) NumPerRound(opts *bind.CallOpts) (*big.Int, error)

NumPerRound is a free data retrieval call binding the contract method 0x4b6b164b.

Solidity: function numPerRound() constant returns(uint256)

func (*CampaignCaller) TermIdx

func (_Campaign *CampaignCaller) TermIdx(opts *bind.CallOpts) (*big.Int, error)

TermIdx is a free data retrieval call binding the contract method 0x35805726.

Solidity: function termIdx() constant returns(uint256)

func (*CampaignCaller) TermLen

func (_Campaign *CampaignCaller) TermLen(opts *bind.CallOpts) (*big.Int, error)

TermLen is a free data retrieval call binding the contract method 0x14b5980e.

Solidity: function termLen() constant returns(uint256)

func (*CampaignCaller) ViewLen

func (_Campaign *CampaignCaller) ViewLen(opts *bind.CallOpts) (*big.Int, error)

ViewLen is a free data retrieval call binding the contract method 0x68f237a1.

Solidity: function viewLen() constant returns(uint256)

type CampaignCallerRaw

type CampaignCallerRaw struct {
	Contract *CampaignCaller // Generic read-only contract binding to access the raw methods on
}

CampaignCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.

func (*CampaignCallerRaw) Call

func (_Campaign *CampaignCallerRaw) 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 CampaignCallerSession

type CampaignCallerSession struct {
	Contract *CampaignCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

CampaignCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.

func (*CampaignCallerSession) CandidateInfoOf

func (_Campaign *CampaignCallerSession) CandidateInfoOf(_candidate common.Address) (*big.Int, *big.Int, *big.Int, error)

CandidateInfoOf is a free data retrieval call binding the contract method 0xdb438269.

Solidity: function candidateInfoOf(_candidate address) constant returns(uint256, uint256, uint256)

func (*CampaignCallerSession) CandidatesOf

func (_Campaign *CampaignCallerSession) CandidatesOf(_termIdx *big.Int) ([]common.Address, error)

CandidatesOf is a free data retrieval call binding the contract method 0x1984ab00.

Solidity: function candidatesOf(_termIdx uint256) constant returns(address[])

func (*CampaignCallerSession) MaxNoc

func (_Campaign *CampaignCallerSession) MaxNoc() (*big.Int, error)

MaxNoc is a free data retrieval call binding the contract method 0xe2b28158.

Solidity: function maxNoc() constant returns(uint256)

func (*CampaignCallerSession) MinNoc

func (_Campaign *CampaignCallerSession) MinNoc() (*big.Int, error)

MinNoc is a free data retrieval call binding the contract method 0x3a713e37.

Solidity: function minNoc() constant returns(uint256)

func (*CampaignCallerSession) NumPerRound

func (_Campaign *CampaignCallerSession) NumPerRound() (*big.Int, error)

NumPerRound is a free data retrieval call binding the contract method 0x4b6b164b.

Solidity: function numPerRound() constant returns(uint256)

func (*CampaignCallerSession) TermIdx

func (_Campaign *CampaignCallerSession) TermIdx() (*big.Int, error)

TermIdx is a free data retrieval call binding the contract method 0x35805726.

Solidity: function termIdx() constant returns(uint256)

func (*CampaignCallerSession) TermLen

func (_Campaign *CampaignCallerSession) TermLen() (*big.Int, error)

TermLen is a free data retrieval call binding the contract method 0x14b5980e.

Solidity: function termLen() constant returns(uint256)

func (*CampaignCallerSession) ViewLen

func (_Campaign *CampaignCallerSession) ViewLen() (*big.Int, error)

ViewLen is a free data retrieval call binding the contract method 0x68f237a1.

Solidity: function viewLen() constant returns(uint256)

type CampaignClaimCampaign

type CampaignClaimCampaign struct {
	Candidate    common.Address
	StartTermIdx *big.Int
	StopTermIdx  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

CampaignClaimCampaign represents a ClaimCampaign event raised by the Campaign contract.

type CampaignClaimCampaignIterator

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

CampaignClaimCampaignIterator is returned from FilterClaimCampaign and is used to iterate over the raw logs and unpacked data for ClaimCampaign events raised by the Campaign contract.

func (*CampaignClaimCampaignIterator) Close

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

func (*CampaignClaimCampaignIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type CampaignFilterer struct {
	// contains filtered or unexported fields
}

CampaignFilterer is an auto generated log filtering Go binding around an cpchain contract events.

func NewCampaignFilterer

func NewCampaignFilterer(address common.Address, filterer bind.ContractFilterer) (*CampaignFilterer, error)

NewCampaignFilterer creates a new log filterer instance of Campaign, bound to a specific deployed contract.

func (*CampaignFilterer) FilterClaimCampaign

func (_Campaign *CampaignFilterer) FilterClaimCampaign(opts *bind.FilterOpts) (*CampaignClaimCampaignIterator, error)

FilterClaimCampaign is a free log retrieval operation binding the contract event 0x8d468194bdd18296bee5d126aa15cc492d26bdf22a0585c4a47ec4490d3a0fcf.

Solidity: e ClaimCampaign(candidate address, startTermIdx uint256, stopTermIdx uint256)

func (*CampaignFilterer) FilterQuitCampaign

func (_Campaign *CampaignFilterer) FilterQuitCampaign(opts *bind.FilterOpts) (*CampaignQuitCampaignIterator, error)

FilterQuitCampaign is a free log retrieval operation binding the contract event 0x2fa4b892c3c1209cb29cf6b97ec72ea6159bbba59ac1f44932e801d1469fbec3.

Solidity: e QuitCampaign(candidate address, payback uint256)

func (*CampaignFilterer) FilterViewChange

func (_Campaign *CampaignFilterer) FilterViewChange(opts *bind.FilterOpts) (*CampaignViewChangeIterator, error)

FilterViewChange is a free log retrieval operation binding the contract event 0xbeff1476fe7702a6f0dc32d7145dade82177da4a8728ed523e84f0af5c4585a9.

Solidity: e ViewChange()

func (*CampaignFilterer) WatchClaimCampaign

func (_Campaign *CampaignFilterer) WatchClaimCampaign(opts *bind.WatchOpts, sink chan<- *CampaignClaimCampaign) (event.Subscription, error)

WatchClaimCampaign is a free log subscription operation binding the contract event 0x8d468194bdd18296bee5d126aa15cc492d26bdf22a0585c4a47ec4490d3a0fcf.

Solidity: e ClaimCampaign(candidate address, startTermIdx uint256, stopTermIdx uint256)

func (*CampaignFilterer) WatchQuitCampaign

func (_Campaign *CampaignFilterer) WatchQuitCampaign(opts *bind.WatchOpts, sink chan<- *CampaignQuitCampaign) (event.Subscription, error)

WatchQuitCampaign is a free log subscription operation binding the contract event 0x2fa4b892c3c1209cb29cf6b97ec72ea6159bbba59ac1f44932e801d1469fbec3.

Solidity: e QuitCampaign(candidate address, payback uint256)

func (*CampaignFilterer) WatchViewChange

func (_Campaign *CampaignFilterer) WatchViewChange(opts *bind.WatchOpts, sink chan<- *CampaignViewChange) (event.Subscription, error)

WatchViewChange is a free log subscription operation binding the contract event 0xbeff1476fe7702a6f0dc32d7145dade82177da4a8728ed523e84f0af5c4585a9.

Solidity: e ViewChange()

type CampaignQuitCampaign

type CampaignQuitCampaign struct {
	Candidate common.Address
	Payback   *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

CampaignQuitCampaign represents a QuitCampaign event raised by the Campaign contract.

type CampaignQuitCampaignIterator

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

CampaignQuitCampaignIterator is returned from FilterQuitCampaign and is used to iterate over the raw logs and unpacked data for QuitCampaign events raised by the Campaign contract.

func (*CampaignQuitCampaignIterator) Close

func (it *CampaignQuitCampaignIterator) Close() error

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

func (*CampaignQuitCampaignIterator) Error

func (it *CampaignQuitCampaignIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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

type CampaignRaw struct {
	Contract *Campaign // Generic contract binding to access the raw methods on
}

CampaignRaw is an auto generated low-level Go binding around an cpchain contract.

func (*CampaignRaw) Call

func (_Campaign *CampaignRaw) 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 (*CampaignRaw) Transact

func (_Campaign *CampaignRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*CampaignRaw) Transfer

func (_Campaign *CampaignRaw) 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 CampaignSession

type CampaignSession struct {
	Contract     *Campaign         // 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
}

CampaignSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.

func (*CampaignSession) CandidateInfoOf

func (_Campaign *CampaignSession) CandidateInfoOf(_candidate common.Address) (*big.Int, *big.Int, *big.Int, error)

CandidateInfoOf is a free data retrieval call binding the contract method 0xdb438269.

Solidity: function candidateInfoOf(_candidate address) constant returns(uint256, uint256, uint256)

func (*CampaignSession) CandidatesOf

func (_Campaign *CampaignSession) CandidatesOf(_termIdx *big.Int) ([]common.Address, error)

CandidatesOf is a free data retrieval call binding the contract method 0x1984ab00.

Solidity: function candidatesOf(_termIdx uint256) constant returns(address[])

func (*CampaignSession) ClaimCampaign

func (_Campaign *CampaignSession) ClaimCampaign(_numOfCampaign *big.Int, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int) (*types.Transaction, error)

ClaimCampaign is a paid mutator transaction binding the contract method 0x14b90a02.

Solidity: function claimCampaign(_numOfCampaign uint256, _cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256) returns()

func (*CampaignSession) MaxNoc

func (_Campaign *CampaignSession) MaxNoc() (*big.Int, error)

MaxNoc is a free data retrieval call binding the contract method 0xe2b28158.

Solidity: function maxNoc() constant returns(uint256)

func (*CampaignSession) MinNoc

func (_Campaign *CampaignSession) MinNoc() (*big.Int, error)

MinNoc is a free data retrieval call binding the contract method 0x3a713e37.

Solidity: function minNoc() constant returns(uint256)

func (*CampaignSession) NumPerRound

func (_Campaign *CampaignSession) NumPerRound() (*big.Int, error)

NumPerRound is a free data retrieval call binding the contract method 0x4b6b164b.

Solidity: function numPerRound() constant returns(uint256)

func (*CampaignSession) SetAdmissionAddr

func (_Campaign *CampaignSession) SetAdmissionAddr(_addr common.Address) (*types.Transaction, error)

SetAdmissionAddr is a paid mutator transaction binding the contract method 0xc0e9e35e.

Solidity: function setAdmissionAddr(_addr address) returns()

func (*CampaignSession) SetRewardInterface

func (_Campaign *CampaignSession) SetRewardInterface(_addr common.Address) (*types.Transaction, error)

SetRewardInterface is a paid mutator transaction binding the contract method 0x5c6a541a.

Solidity: function setRewardInterface(_addr address) returns()

func (*CampaignSession) TermIdx

func (_Campaign *CampaignSession) TermIdx() (*big.Int, error)

TermIdx is a free data retrieval call binding the contract method 0x35805726.

Solidity: function termIdx() constant returns(uint256)

func (*CampaignSession) TermLen

func (_Campaign *CampaignSession) TermLen() (*big.Int, error)

TermLen is a free data retrieval call binding the contract method 0x14b5980e.

Solidity: function termLen() constant returns(uint256)

func (*CampaignSession) UpdateCandidateStatus

func (_Campaign *CampaignSession) UpdateCandidateStatus() (*types.Transaction, error)

UpdateCandidateStatus is a paid mutator transaction binding the contract method 0xfcf503f8.

Solidity: function updateCandidateStatus() returns()

func (*CampaignSession) UpdateMaxNoc

func (_Campaign *CampaignSession) UpdateMaxNoc(_maxNoc *big.Int) (*types.Transaction, error)

UpdateMaxNoc is a paid mutator transaction binding the contract method 0x8cb59532.

Solidity: function updateMaxNoc(_maxNoc uint256) returns()

func (*CampaignSession) UpdateMinNoc

func (_Campaign *CampaignSession) UpdateMinNoc(_minNoc *big.Int) (*types.Transaction, error)

UpdateMinNoc is a paid mutator transaction binding the contract method 0xa7e1f08b.

Solidity: function updateMinNoc(_minNoc uint256) returns()

func (*CampaignSession) UpdateTermLen

func (_Campaign *CampaignSession) UpdateTermLen(_termLen *big.Int) (*types.Transaction, error)

UpdateTermLen is a paid mutator transaction binding the contract method 0xc351d0a5.

Solidity: function updateTermLen(_termLen uint256) returns()

func (*CampaignSession) UpdateViewLen

func (_Campaign *CampaignSession) UpdateViewLen(_viewLen *big.Int) (*types.Transaction, error)

UpdateViewLen is a paid mutator transaction binding the contract method 0xcd60e217.

Solidity: function updateViewLen(_viewLen uint256) returns()

func (*CampaignSession) ViewLen

func (_Campaign *CampaignSession) ViewLen() (*big.Int, error)

ViewLen is a free data retrieval call binding the contract method 0x68f237a1.

Solidity: function viewLen() constant returns(uint256)

type CampaignTransactor

type CampaignTransactor struct {
	// contains filtered or unexported fields
}

CampaignTransactor is an auto generated write-only Go binding around an cpchain contract.

func NewCampaignTransactor

func NewCampaignTransactor(address common.Address, transactor bind.ContractTransactor) (*CampaignTransactor, error)

NewCampaignTransactor creates a new write-only instance of Campaign, bound to a specific deployed contract.

func (*CampaignTransactor) ClaimCampaign

func (_Campaign *CampaignTransactor) ClaimCampaign(opts *bind.TransactOpts, _numOfCampaign *big.Int, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int) (*types.Transaction, error)

ClaimCampaign is a paid mutator transaction binding the contract method 0x14b90a02.

Solidity: function claimCampaign(_numOfCampaign uint256, _cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256) returns()

func (*CampaignTransactor) SetAdmissionAddr

func (_Campaign *CampaignTransactor) SetAdmissionAddr(opts *bind.TransactOpts, _addr common.Address) (*types.Transaction, error)

SetAdmissionAddr is a paid mutator transaction binding the contract method 0xc0e9e35e.

Solidity: function setAdmissionAddr(_addr address) returns()

func (*CampaignTransactor) SetRewardInterface

func (_Campaign *CampaignTransactor) SetRewardInterface(opts *bind.TransactOpts, _addr common.Address) (*types.Transaction, error)

SetRewardInterface is a paid mutator transaction binding the contract method 0x5c6a541a.

Solidity: function setRewardInterface(_addr address) returns()

func (*CampaignTransactor) UpdateCandidateStatus

func (_Campaign *CampaignTransactor) UpdateCandidateStatus(opts *bind.TransactOpts) (*types.Transaction, error)

UpdateCandidateStatus is a paid mutator transaction binding the contract method 0xfcf503f8.

Solidity: function updateCandidateStatus() returns()

func (*CampaignTransactor) UpdateMaxNoc

func (_Campaign *CampaignTransactor) UpdateMaxNoc(opts *bind.TransactOpts, _maxNoc *big.Int) (*types.Transaction, error)

UpdateMaxNoc is a paid mutator transaction binding the contract method 0x8cb59532.

Solidity: function updateMaxNoc(_maxNoc uint256) returns()

func (*CampaignTransactor) UpdateMinNoc

func (_Campaign *CampaignTransactor) UpdateMinNoc(opts *bind.TransactOpts, _minNoc *big.Int) (*types.Transaction, error)

UpdateMinNoc is a paid mutator transaction binding the contract method 0xa7e1f08b.

Solidity: function updateMinNoc(_minNoc uint256) returns()

func (*CampaignTransactor) UpdateTermLen

func (_Campaign *CampaignTransactor) UpdateTermLen(opts *bind.TransactOpts, _termLen *big.Int) (*types.Transaction, error)

UpdateTermLen is a paid mutator transaction binding the contract method 0xc351d0a5.

Solidity: function updateTermLen(_termLen uint256) returns()

func (*CampaignTransactor) UpdateViewLen

func (_Campaign *CampaignTransactor) UpdateViewLen(opts *bind.TransactOpts, _viewLen *big.Int) (*types.Transaction, error)

UpdateViewLen is a paid mutator transaction binding the contract method 0xcd60e217.

Solidity: function updateViewLen(_viewLen uint256) returns()

type CampaignTransactorRaw

type CampaignTransactorRaw struct {
	Contract *CampaignTransactor // Generic write-only contract binding to access the raw methods on
}

CampaignTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.

func (*CampaignTransactorRaw) Transact

func (_Campaign *CampaignTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*CampaignTransactorRaw) Transfer

func (_Campaign *CampaignTransactorRaw) 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 CampaignTransactorSession

type CampaignTransactorSession struct {
	Contract     *CampaignTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

CampaignTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.

func (*CampaignTransactorSession) ClaimCampaign

func (_Campaign *CampaignTransactorSession) ClaimCampaign(_numOfCampaign *big.Int, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int) (*types.Transaction, error)

ClaimCampaign is a paid mutator transaction binding the contract method 0x14b90a02.

Solidity: function claimCampaign(_numOfCampaign uint256, _cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256) returns()

func (*CampaignTransactorSession) SetAdmissionAddr

func (_Campaign *CampaignTransactorSession) SetAdmissionAddr(_addr common.Address) (*types.Transaction, error)

SetAdmissionAddr is a paid mutator transaction binding the contract method 0xc0e9e35e.

Solidity: function setAdmissionAddr(_addr address) returns()

func (*CampaignTransactorSession) SetRewardInterface

func (_Campaign *CampaignTransactorSession) SetRewardInterface(_addr common.Address) (*types.Transaction, error)

SetRewardInterface is a paid mutator transaction binding the contract method 0x5c6a541a.

Solidity: function setRewardInterface(_addr address) returns()

func (*CampaignTransactorSession) UpdateCandidateStatus

func (_Campaign *CampaignTransactorSession) UpdateCandidateStatus() (*types.Transaction, error)

UpdateCandidateStatus is a paid mutator transaction binding the contract method 0xfcf503f8.

Solidity: function updateCandidateStatus() returns()

func (*CampaignTransactorSession) UpdateMaxNoc

func (_Campaign *CampaignTransactorSession) UpdateMaxNoc(_maxNoc *big.Int) (*types.Transaction, error)

UpdateMaxNoc is a paid mutator transaction binding the contract method 0x8cb59532.

Solidity: function updateMaxNoc(_maxNoc uint256) returns()

func (*CampaignTransactorSession) UpdateMinNoc

func (_Campaign *CampaignTransactorSession) UpdateMinNoc(_minNoc *big.Int) (*types.Transaction, error)

UpdateMinNoc is a paid mutator transaction binding the contract method 0xa7e1f08b.

Solidity: function updateMinNoc(_minNoc uint256) returns()

func (*CampaignTransactorSession) UpdateTermLen

func (_Campaign *CampaignTransactorSession) UpdateTermLen(_termLen *big.Int) (*types.Transaction, error)

UpdateTermLen is a paid mutator transaction binding the contract method 0xc351d0a5.

Solidity: function updateTermLen(_termLen uint256) returns()

func (*CampaignTransactorSession) UpdateViewLen

func (_Campaign *CampaignTransactorSession) UpdateViewLen(_viewLen *big.Int) (*types.Transaction, error)

UpdateViewLen is a paid mutator transaction binding the contract method 0xcd60e217.

Solidity: function updateViewLen(_viewLen uint256) returns()

type CampaignViewChange

type CampaignViewChange struct {
	Raw types.Log // Blockchain specific contextual infos
}

CampaignViewChange represents a ViewChange event raised by the Campaign contract.

type CampaignViewChangeIterator

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

CampaignViewChangeIterator is returned from FilterViewChange and is used to iterate over the raw logs and unpacked data for ViewChange events raised by the Campaign contract.

func (*CampaignViewChangeIterator) Close

func (it *CampaignViewChangeIterator) Close() error

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

func (*CampaignViewChangeIterator) Error

func (it *CampaignViewChangeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CampaignViewChangeIterator) Next

func (it *CampaignViewChangeIterator) 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 RewardInterface

type RewardInterface struct {
	RewardInterfaceCaller     // Read-only binding to the contract
	RewardInterfaceTransactor // Write-only binding to the contract
	RewardInterfaceFilterer   // Log filterer for contract events
}

RewardInterface is an auto generated Go binding around an cpchain contract.

func DeployRewardInterface

func DeployRewardInterface(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *RewardInterface, error)

DeployRewardInterface deploys a new cpchain contract, binding an instance of RewardInterface to it.

func NewRewardInterface

func NewRewardInterface(address common.Address, backend bind.ContractBackend) (*RewardInterface, error)

NewRewardInterface creates a new instance of RewardInterface, bound to a specific deployed contract.

type RewardInterfaceCaller

type RewardInterfaceCaller struct {
	// contains filtered or unexported fields
}

RewardInterfaceCaller is an auto generated read-only Go binding around an cpchain contract.

func NewRewardInterfaceCaller

func NewRewardInterfaceCaller(address common.Address, caller bind.ContractCaller) (*RewardInterfaceCaller, error)

NewRewardInterfaceCaller creates a new read-only instance of RewardInterface, bound to a specific deployed contract.

func (*RewardInterfaceCaller) IsCandidate

func (_RewardInterface *RewardInterfaceCaller) IsCandidate(opts *bind.CallOpts, _addr common.Address) (bool, error)

IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.

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

type RewardInterfaceCallerRaw

type RewardInterfaceCallerRaw struct {
	Contract *RewardInterfaceCaller // Generic read-only contract binding to access the raw methods on
}

RewardInterfaceCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.

func (*RewardInterfaceCallerRaw) Call

func (_RewardInterface *RewardInterfaceCallerRaw) 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 RewardInterfaceCallerSession

type RewardInterfaceCallerSession struct {
	Contract *RewardInterfaceCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts          // Call options to use throughout this session
}

RewardInterfaceCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.

func (*RewardInterfaceCallerSession) IsCandidate

func (_RewardInterface *RewardInterfaceCallerSession) IsCandidate(_addr common.Address) (bool, error)

IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.

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

type RewardInterfaceFilterer

type RewardInterfaceFilterer struct {
	// contains filtered or unexported fields
}

RewardInterfaceFilterer is an auto generated log filtering Go binding around an cpchain contract events.

func NewRewardInterfaceFilterer

func NewRewardInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*RewardInterfaceFilterer, error)

NewRewardInterfaceFilterer creates a new log filterer instance of RewardInterface, bound to a specific deployed contract.

type RewardInterfaceRaw

type RewardInterfaceRaw struct {
	Contract *RewardInterface // Generic contract binding to access the raw methods on
}

RewardInterfaceRaw is an auto generated low-level Go binding around an cpchain contract.

func (*RewardInterfaceRaw) Call

func (_RewardInterface *RewardInterfaceRaw) 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 (*RewardInterfaceRaw) Transact

func (_RewardInterface *RewardInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RewardInterfaceRaw) Transfer

func (_RewardInterface *RewardInterfaceRaw) 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 RewardInterfaceSession

type RewardInterfaceSession struct {
	Contract     *RewardInterface  // 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
}

RewardInterfaceSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.

func (*RewardInterfaceSession) IsCandidate

func (_RewardInterface *RewardInterfaceSession) IsCandidate(_addr common.Address) (bool, error)

IsCandidate is a free data retrieval call binding the contract method 0xd51b9e93.

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

type RewardInterfaceTransactor

type RewardInterfaceTransactor struct {
	// contains filtered or unexported fields
}

RewardInterfaceTransactor is an auto generated write-only Go binding around an cpchain contract.

func NewRewardInterfaceTransactor

func NewRewardInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*RewardInterfaceTransactor, error)

NewRewardInterfaceTransactor creates a new write-only instance of RewardInterface, bound to a specific deployed contract.

type RewardInterfaceTransactorRaw

type RewardInterfaceTransactorRaw struct {
	Contract *RewardInterfaceTransactor // Generic write-only contract binding to access the raw methods on
}

RewardInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.

func (*RewardInterfaceTransactorRaw) Transact

func (_RewardInterface *RewardInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RewardInterfaceTransactorRaw) Transfer

func (_RewardInterface *RewardInterfaceTransactorRaw) 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 RewardInterfaceTransactorSession

type RewardInterfaceTransactorSession struct {
	Contract     *RewardInterfaceTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
}

RewardInterfaceTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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