campaign

package
v0.5.3-beta.1 Latest Latest
Warning

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

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

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

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

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

CampaignBin is the compiled bytecode used for deploying new contracts.

View Source
const RnodeInterfaceABI = "" /* 214-byte string literal not displayed */

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

View Source
const RnodeInterfaceBin = `0x`

RnodeInterfaceBin 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.

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, _rnodeAddr 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) AcceptableBlocks

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

AcceptableBlocks is a free data retrieval call binding the contract method 0xa9d1de48.

Solidity: function acceptableBlocks() constant returns(uint256)

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

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

SupportedVersion is a free data retrieval call binding the contract method 0xd5601e9f.

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

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

AcceptableBlocks is a free data retrieval call binding the contract method 0xa9d1de48.

Solidity: function acceptableBlocks() constant returns(uint256)

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

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

SupportedVersion is a free data retrieval call binding the contract method 0xd5601e9f.

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

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

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

AcceptableBlocks is a free data retrieval call binding the contract method 0xa9d1de48.

Solidity: function acceptableBlocks() constant returns(uint256)

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(_termsToCampaign *big.Int, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, version *big.Int) (*types.Transaction, error)

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

Solidity: function claimCampaign(_termsToCampaign uint256, _cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, version 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) SetRnodeInterface

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

SetRnodeInterface is a paid mutator transaction binding the contract method 0xf2aaabdd.

Solidity: function setRnodeInterface(_addr address) returns()

func (*CampaignSession) SupportedVersion

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

SupportedVersion is a free data retrieval call binding the contract method 0xd5601e9f.

Solidity: function supportedVersion() constant returns(uint256)

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

func (_Campaign *CampaignSession) UpdateAcceptableBlocks(_acceptableBlocks *big.Int) (*types.Transaction, error)

UpdateAcceptableBlocks is a paid mutator transaction binding the contract method 0xdae49ab2.

Solidity: function updateAcceptableBlocks(_acceptableBlocks uint256) 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) UpdateSupportedVersion

func (_Campaign *CampaignSession) UpdateSupportedVersion(_supportedVersion *big.Int) (*types.Transaction, error)

UpdateSupportedVersion is a paid mutator transaction binding the contract method 0x7dd604d6.

Solidity: function updateSupportedVersion(_supportedVersion 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) 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, _termsToCampaign *big.Int, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, version *big.Int) (*types.Transaction, error)

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

Solidity: function claimCampaign(_termsToCampaign uint256, _cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, version 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) SetRnodeInterface

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

SetRnodeInterface is a paid mutator transaction binding the contract method 0xf2aaabdd.

Solidity: function setRnodeInterface(_addr address) returns()

func (*CampaignTransactor) UpdateAcceptableBlocks

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

UpdateAcceptableBlocks is a paid mutator transaction binding the contract method 0xdae49ab2.

Solidity: function updateAcceptableBlocks(_acceptableBlocks uint256) 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) UpdateSupportedVersion

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

UpdateSupportedVersion is a paid mutator transaction binding the contract method 0x7dd604d6.

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

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(_termsToCampaign *big.Int, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, version *big.Int) (*types.Transaction, error)

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

Solidity: function claimCampaign(_termsToCampaign uint256, _cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, version 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) SetRnodeInterface

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

SetRnodeInterface is a paid mutator transaction binding the contract method 0xf2aaabdd.

Solidity: function setRnodeInterface(_addr address) returns()

func (*CampaignTransactorSession) UpdateAcceptableBlocks

func (_Campaign *CampaignTransactorSession) UpdateAcceptableBlocks(_acceptableBlocks *big.Int) (*types.Transaction, error)

UpdateAcceptableBlocks is a paid mutator transaction binding the contract method 0xdae49ab2.

Solidity: function updateAcceptableBlocks(_acceptableBlocks uint256) 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) UpdateSupportedVersion

func (_Campaign *CampaignTransactorSession) UpdateSupportedVersion(_supportedVersion *big.Int) (*types.Transaction, error)

UpdateSupportedVersion is a paid mutator transaction binding the contract method 0x7dd604d6.

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

type RnodeInterface

type RnodeInterface struct {
	RnodeInterfaceCaller     // Read-only binding to the contract
	RnodeInterfaceTransactor // Write-only binding to the contract
	RnodeInterfaceFilterer   // Log filterer for contract events
}

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

func DeployRnodeInterface

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

DeployRnodeInterface deploys a new cpchain contract, binding an instance of RnodeInterface to it.

func NewRnodeInterface

func NewRnodeInterface(address common.Address, backend bind.ContractBackend) (*RnodeInterface, error)

NewRnodeInterface creates a new instance of RnodeInterface, bound to a specific deployed contract.

type RnodeInterfaceCaller

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

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

func NewRnodeInterfaceCaller

func NewRnodeInterfaceCaller(address common.Address, caller bind.ContractCaller) (*RnodeInterfaceCaller, error)

NewRnodeInterfaceCaller creates a new read-only instance of RnodeInterface, bound to a specific deployed contract.

func (*RnodeInterfaceCaller) IsRnode

func (_RnodeInterface *RnodeInterfaceCaller) IsRnode(opts *bind.CallOpts, _addr common.Address) (bool, error)

IsRnode is a free data retrieval call binding the contract method 0xa8f07697.

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

type RnodeInterfaceCallerRaw

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

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

func (*RnodeInterfaceCallerRaw) Call

func (_RnodeInterface *RnodeInterfaceCallerRaw) 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 RnodeInterfaceCallerSession

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

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

func (*RnodeInterfaceCallerSession) IsRnode

func (_RnodeInterface *RnodeInterfaceCallerSession) IsRnode(_addr common.Address) (bool, error)

IsRnode is a free data retrieval call binding the contract method 0xa8f07697.

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

type RnodeInterfaceFilterer

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

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

func NewRnodeInterfaceFilterer

func NewRnodeInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*RnodeInterfaceFilterer, error)

NewRnodeInterfaceFilterer creates a new log filterer instance of RnodeInterface, bound to a specific deployed contract.

type RnodeInterfaceRaw

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

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

func (*RnodeInterfaceRaw) Call

func (_RnodeInterface *RnodeInterfaceRaw) 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 (*RnodeInterfaceRaw) Transact

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

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

func (*RnodeInterfaceRaw) Transfer

func (_RnodeInterface *RnodeInterfaceRaw) 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 RnodeInterfaceSession

type RnodeInterfaceSession struct {
	Contract     *RnodeInterface   // 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
}

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

func (*RnodeInterfaceSession) IsRnode

func (_RnodeInterface *RnodeInterfaceSession) IsRnode(_addr common.Address) (bool, error)

IsRnode is a free data retrieval call binding the contract method 0xa8f07697.

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

type RnodeInterfaceTransactor

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

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

func NewRnodeInterfaceTransactor

func NewRnodeInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*RnodeInterfaceTransactor, error)

NewRnodeInterfaceTransactor creates a new write-only instance of RnodeInterface, bound to a specific deployed contract.

type RnodeInterfaceTransactorRaw

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

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

func (*RnodeInterfaceTransactorRaw) Transact

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

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

func (*RnodeInterfaceTransactorRaw) Transfer

func (_RnodeInterface *RnodeInterfaceTransactorRaw) 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 RnodeInterfaceTransactorSession

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

RnodeInterfaceTransactorSession 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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