proposal

package
v0.5.3-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CongressInterfaceABI = "" /* 401-byte string literal not displayed */

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

View Source
const CongressInterfaceBin = `0x`

CongressInterfaceBin is the compiled bytecode used for deploying new contracts.

View Source
const ProposalABI = "" /* 8219-byte string literal not displayed */

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

View Source
const ProposalBin = `` /* 39158-byte string literal not displayed */

ProposalBin 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 CongressInterface

type CongressInterface struct {
	CongressInterfaceCaller     // Read-only binding to the contract
	CongressInterfaceTransactor // Write-only binding to the contract
	CongressInterfaceFilterer   // Log filterer for contract events
}

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

func DeployCongressInterface

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

DeployCongressInterface deploys a new cpchain contract, binding an instance of CongressInterface to it.

func NewCongressInterface

func NewCongressInterface(address common.Address, backend bind.ContractBackend) (*CongressInterface, error)

NewCongressInterface creates a new instance of CongressInterface, bound to a specific deployed contract.

type CongressInterfaceCaller

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

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

func NewCongressInterfaceCaller

func NewCongressInterfaceCaller(address common.Address, caller bind.ContractCaller) (*CongressInterfaceCaller, error)

NewCongressInterfaceCaller creates a new read-only instance of CongressInterface, bound to a specific deployed contract.

func (*CongressInterfaceCaller) GetCongressNum

func (_CongressInterface *CongressInterfaceCaller) GetCongressNum(opts *bind.CallOpts) (*big.Int, error)

GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.

Solidity: function getCongressNum() constant returns(uint256)

func (*CongressInterfaceCaller) IsInCongress

func (_CongressInterface *CongressInterfaceCaller) IsInCongress(opts *bind.CallOpts, _addr common.Address) (bool, error)

IsInCongress is a free data retrieval call binding the contract method 0x27bd4ba7.

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

type CongressInterfaceCallerRaw

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

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

func (*CongressInterfaceCallerRaw) Call

func (_CongressInterface *CongressInterfaceCallerRaw) 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 CongressInterfaceCallerSession

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

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

func (*CongressInterfaceCallerSession) GetCongressNum

func (_CongressInterface *CongressInterfaceCallerSession) GetCongressNum() (*big.Int, error)

GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.

Solidity: function getCongressNum() constant returns(uint256)

func (*CongressInterfaceCallerSession) IsInCongress

func (_CongressInterface *CongressInterfaceCallerSession) IsInCongress(_addr common.Address) (bool, error)

IsInCongress is a free data retrieval call binding the contract method 0x27bd4ba7.

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

type CongressInterfaceFilterer

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

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

func NewCongressInterfaceFilterer

func NewCongressInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*CongressInterfaceFilterer, error)

NewCongressInterfaceFilterer creates a new log filterer instance of CongressInterface, bound to a specific deployed contract.

type CongressInterfaceRaw

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

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

func (*CongressInterfaceRaw) Call

func (_CongressInterface *CongressInterfaceRaw) 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 (*CongressInterfaceRaw) Transact

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

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

func (*CongressInterfaceRaw) Transfer

func (_CongressInterface *CongressInterfaceRaw) 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 CongressInterfaceSession

type CongressInterfaceSession struct {
	Contract     *CongressInterface // 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
}

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

func (*CongressInterfaceSession) GetCongressNum

func (_CongressInterface *CongressInterfaceSession) GetCongressNum() (*big.Int, error)

GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.

Solidity: function getCongressNum() constant returns(uint256)

func (*CongressInterfaceSession) IsInCongress

func (_CongressInterface *CongressInterfaceSession) IsInCongress(_addr common.Address) (bool, error)

IsInCongress is a free data retrieval call binding the contract method 0x27bd4ba7.

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

type CongressInterfaceTransactor

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

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

func NewCongressInterfaceTransactor

func NewCongressInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*CongressInterfaceTransactor, error)

NewCongressInterfaceTransactor creates a new write-only instance of CongressInterface, bound to a specific deployed contract.

type CongressInterfaceTransactorRaw

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

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

func (*CongressInterfaceTransactorRaw) Transact

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

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

func (*CongressInterfaceTransactorRaw) Transfer

func (_CongressInterface *CongressInterfaceTransactorRaw) 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 CongressInterfaceTransactorSession

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

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

type Proposal

type Proposal struct {
	ProposalCaller     // Read-only binding to the contract
	ProposalTransactor // Write-only binding to the contract
	ProposalFilterer   // Log filterer for contract events
}

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

func DeployProposal

func DeployProposal(auth *bind.TransactOpts, backend bind.ContractBackend, _congressAddr common.Address) (common.Address, *types.Transaction, *Proposal, error)

DeployProposal deploys a new cpchain contract, binding an instance of Proposal to it.

func NewProposal

func NewProposal(address common.Address, backend bind.ContractBackend) (*Proposal, error)

NewProposal creates a new instance of Proposal, bound to a specific deployed contract.

type ProposalApprovalProposal

type ProposalApprovalProposal struct {
	Who common.Address
	Id  string
	Raw types.Log // Blockchain specific contextual infos
}

ProposalApprovalProposal represents a ApprovalProposal event raised by the Proposal contract.

type ProposalApprovalProposalIterator

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

ProposalApprovalProposalIterator is returned from FilterApprovalProposal and is used to iterate over the raw logs and unpacked data for ApprovalProposal events raised by the Proposal contract.

func (*ProposalApprovalProposalIterator) Close

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

func (*ProposalApprovalProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewProposalCaller

func NewProposalCaller(address common.Address, caller bind.ContractCaller) (*ProposalCaller, error)

NewProposalCaller creates a new read-only instance of Proposal, bound to a specific deployed contract.

func (*ProposalCaller) AmountThreshold

func (_Proposal *ProposalCaller) AmountThreshold(opts *bind.CallOpts) (*big.Int, error)

AmountThreshold is a free data retrieval call binding the contract method 0x8f82921e.

Solidity: function amountThreshold() constant returns(uint256)

func (*ProposalCaller) ApprovalThreshold

func (_Proposal *ProposalCaller) ApprovalThreshold(opts *bind.CallOpts) (*big.Int, error)

ApprovalThreshold is a free data retrieval call binding the contract method 0x7d0eef61.

Solidity: function approvalThreshold() constant returns(uint256)

func (*ProposalCaller) Congress

func (_Proposal *ProposalCaller) Congress(opts *bind.CallOpts) (common.Address, error)

Congress is a free data retrieval call binding the contract method 0x86b0befc.

Solidity: function congress() constant returns(address)

func (*ProposalCaller) Enabled

func (_Proposal *ProposalCaller) Enabled(opts *bind.CallOpts) (bool, error)

Enabled is a free data retrieval call binding the contract method 0x238dafe0.

Solidity: function enabled() constant returns(bool)

func (*ProposalCaller) GetApprovalCnt

func (_Proposal *ProposalCaller) GetApprovalCnt(opts *bind.CallOpts, id string) (*big.Int, error)

GetApprovalCnt is a free data retrieval call binding the contract method 0x4ce666cb.

Solidity: function getApprovalCnt(id string) constant returns(uint256)

func (*ProposalCaller) GetApprovedAddress

func (_Proposal *ProposalCaller) GetApprovedAddress(opts *bind.CallOpts, id string) ([]common.Address, error)

GetApprovedAddress is a free data retrieval call binding the contract method 0x6c28c7ae.

Solidity: function getApprovedAddress(id string) constant returns(address[])

func (*ProposalCaller) GetCongressNum

func (_Proposal *ProposalCaller) GetCongressNum(opts *bind.CallOpts) (*big.Int, error)

GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.

Solidity: function getCongressNum() constant returns(uint256)

func (*ProposalCaller) GetLockedAmount

func (_Proposal *ProposalCaller) GetLockedAmount(opts *bind.CallOpts, id string) (*big.Int, error)

GetLockedAmount is a free data retrieval call binding the contract method 0x25c494b0.

Solidity: function getLockedAmount(id string) constant returns(uint256)

func (*ProposalCaller) GetLockedTime

func (_Proposal *ProposalCaller) GetLockedTime(opts *bind.CallOpts, id string) (*big.Int, error)

GetLockedTime is a free data retrieval call binding the contract method 0x0b78a371.

Solidity: function getLockedTime(id string) constant returns(uint256)

func (*ProposalCaller) GetOwner

func (_Proposal *ProposalCaller) GetOwner(opts *bind.CallOpts, id string) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x4aaf4a12.

Solidity: function getOwner(id string) constant returns(address)

func (*ProposalCaller) GetPeriod

func (_Proposal *ProposalCaller) GetPeriod(opts *bind.CallOpts, id string) (*big.Int, error)

GetPeriod is a free data retrieval call binding the contract method 0x329c66d0.

Solidity: function getPeriod(id string) constant returns(uint256)

func (*ProposalCaller) GetProposalsCnt

func (_Proposal *ProposalCaller) GetProposalsCnt(opts *bind.CallOpts) (*big.Int, error)

GetProposalsCnt is a free data retrieval call binding the contract method 0xb29d7c01.

Solidity: function getProposalsCnt() constant returns(uint256)

func (*ProposalCaller) GetStatus

func (_Proposal *ProposalCaller) GetStatus(opts *bind.CallOpts, id string) (uint8, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(id string) constant returns(uint8)

func (*ProposalCaller) GetVoteCnt

func (_Proposal *ProposalCaller) GetVoteCnt(opts *bind.CallOpts, id string) (*big.Int, error)

GetVoteCnt is a free data retrieval call binding the contract method 0xee223380.

Solidity: function getVoteCnt(id string) constant returns(uint256)

func (*ProposalCaller) GetVotedAddress

func (_Proposal *ProposalCaller) GetVotedAddress(opts *bind.CallOpts, id string) ([]common.Address, error)

GetVotedAddress is a free data retrieval call binding the contract method 0x57c909d0.

Solidity: function getVotedAddress(id string) constant returns(address[])

func (*ProposalCaller) IdLength

func (_Proposal *ProposalCaller) IdLength(opts *bind.CallOpts) (uint16, error)

IdLength is a free data retrieval call binding the contract method 0x9e18a16d.

Solidity: function idLength() constant returns(uint16)

func (*ProposalCaller) MaxPeriod

func (_Proposal *ProposalCaller) MaxPeriod(opts *bind.CallOpts) (*big.Int, error)

MaxPeriod is a free data retrieval call binding the contract method 0x49b9a67f.

Solidity: function maxPeriod() constant returns(uint256)

func (*ProposalCaller) MinCongressMemberCount

func (_Proposal *ProposalCaller) MinCongressMemberCount(opts *bind.CallOpts) (uint16, error)

MinCongressMemberCount is a free data retrieval call binding the contract method 0xd8b1565d.

Solidity: function minCongressMemberCount() constant returns(uint16)

func (*ProposalCaller) ProposalsIDList

func (_Proposal *ProposalCaller) ProposalsIDList(opts *bind.CallOpts, arg0 *big.Int) (string, error)

ProposalsIDList is a free data retrieval call binding the contract method 0x8046f293.

Solidity: function proposalsIDList( uint256) constant returns(string)

func (*ProposalCaller) VoteThreshold

func (_Proposal *ProposalCaller) VoteThreshold(opts *bind.CallOpts) (uint16, error)

VoteThreshold is a free data retrieval call binding the contract method 0x4fe437d5.

Solidity: function voteThreshold() constant returns(uint16)

type ProposalCallerRaw

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

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

func (*ProposalCallerRaw) Call

func (_Proposal *ProposalCallerRaw) 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 ProposalCallerSession

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

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

func (*ProposalCallerSession) AmountThreshold

func (_Proposal *ProposalCallerSession) AmountThreshold() (*big.Int, error)

AmountThreshold is a free data retrieval call binding the contract method 0x8f82921e.

Solidity: function amountThreshold() constant returns(uint256)

func (*ProposalCallerSession) ApprovalThreshold

func (_Proposal *ProposalCallerSession) ApprovalThreshold() (*big.Int, error)

ApprovalThreshold is a free data retrieval call binding the contract method 0x7d0eef61.

Solidity: function approvalThreshold() constant returns(uint256)

func (*ProposalCallerSession) Congress

func (_Proposal *ProposalCallerSession) Congress() (common.Address, error)

Congress is a free data retrieval call binding the contract method 0x86b0befc.

Solidity: function congress() constant returns(address)

func (*ProposalCallerSession) Enabled

func (_Proposal *ProposalCallerSession) Enabled() (bool, error)

Enabled is a free data retrieval call binding the contract method 0x238dafe0.

Solidity: function enabled() constant returns(bool)

func (*ProposalCallerSession) GetApprovalCnt

func (_Proposal *ProposalCallerSession) GetApprovalCnt(id string) (*big.Int, error)

GetApprovalCnt is a free data retrieval call binding the contract method 0x4ce666cb.

Solidity: function getApprovalCnt(id string) constant returns(uint256)

func (*ProposalCallerSession) GetApprovedAddress

func (_Proposal *ProposalCallerSession) GetApprovedAddress(id string) ([]common.Address, error)

GetApprovedAddress is a free data retrieval call binding the contract method 0x6c28c7ae.

Solidity: function getApprovedAddress(id string) constant returns(address[])

func (*ProposalCallerSession) GetCongressNum

func (_Proposal *ProposalCallerSession) GetCongressNum() (*big.Int, error)

GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.

Solidity: function getCongressNum() constant returns(uint256)

func (*ProposalCallerSession) GetLockedAmount

func (_Proposal *ProposalCallerSession) GetLockedAmount(id string) (*big.Int, error)

GetLockedAmount is a free data retrieval call binding the contract method 0x25c494b0.

Solidity: function getLockedAmount(id string) constant returns(uint256)

func (*ProposalCallerSession) GetLockedTime

func (_Proposal *ProposalCallerSession) GetLockedTime(id string) (*big.Int, error)

GetLockedTime is a free data retrieval call binding the contract method 0x0b78a371.

Solidity: function getLockedTime(id string) constant returns(uint256)

func (*ProposalCallerSession) GetOwner

func (_Proposal *ProposalCallerSession) GetOwner(id string) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x4aaf4a12.

Solidity: function getOwner(id string) constant returns(address)

func (*ProposalCallerSession) GetPeriod

func (_Proposal *ProposalCallerSession) GetPeriod(id string) (*big.Int, error)

GetPeriod is a free data retrieval call binding the contract method 0x329c66d0.

Solidity: function getPeriod(id string) constant returns(uint256)

func (*ProposalCallerSession) GetProposalsCnt

func (_Proposal *ProposalCallerSession) GetProposalsCnt() (*big.Int, error)

GetProposalsCnt is a free data retrieval call binding the contract method 0xb29d7c01.

Solidity: function getProposalsCnt() constant returns(uint256)

func (*ProposalCallerSession) GetStatus

func (_Proposal *ProposalCallerSession) GetStatus(id string) (uint8, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(id string) constant returns(uint8)

func (*ProposalCallerSession) GetVoteCnt

func (_Proposal *ProposalCallerSession) GetVoteCnt(id string) (*big.Int, error)

GetVoteCnt is a free data retrieval call binding the contract method 0xee223380.

Solidity: function getVoteCnt(id string) constant returns(uint256)

func (*ProposalCallerSession) GetVotedAddress

func (_Proposal *ProposalCallerSession) GetVotedAddress(id string) ([]common.Address, error)

GetVotedAddress is a free data retrieval call binding the contract method 0x57c909d0.

Solidity: function getVotedAddress(id string) constant returns(address[])

func (*ProposalCallerSession) IdLength

func (_Proposal *ProposalCallerSession) IdLength() (uint16, error)

IdLength is a free data retrieval call binding the contract method 0x9e18a16d.

Solidity: function idLength() constant returns(uint16)

func (*ProposalCallerSession) MaxPeriod

func (_Proposal *ProposalCallerSession) MaxPeriod() (*big.Int, error)

MaxPeriod is a free data retrieval call binding the contract method 0x49b9a67f.

Solidity: function maxPeriod() constant returns(uint256)

func (*ProposalCallerSession) MinCongressMemberCount

func (_Proposal *ProposalCallerSession) MinCongressMemberCount() (uint16, error)

MinCongressMemberCount is a free data retrieval call binding the contract method 0xd8b1565d.

Solidity: function minCongressMemberCount() constant returns(uint16)

func (*ProposalCallerSession) ProposalsIDList

func (_Proposal *ProposalCallerSession) ProposalsIDList(arg0 *big.Int) (string, error)

ProposalsIDList is a free data retrieval call binding the contract method 0x8046f293.

Solidity: function proposalsIDList( uint256) constant returns(string)

func (*ProposalCallerSession) VoteThreshold

func (_Proposal *ProposalCallerSession) VoteThreshold() (uint16, error)

VoteThreshold is a free data retrieval call binding the contract method 0x4fe437d5.

Solidity: function voteThreshold() constant returns(uint16)

type ProposalFilterer

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

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

func NewProposalFilterer

func NewProposalFilterer(address common.Address, filterer bind.ContractFilterer) (*ProposalFilterer, error)

NewProposalFilterer creates a new log filterer instance of Proposal, bound to a specific deployed contract.

func (*ProposalFilterer) FilterApprovalProposal

func (_Proposal *ProposalFilterer) FilterApprovalProposal(opts *bind.FilterOpts) (*ProposalApprovalProposalIterator, error)

FilterApprovalProposal is a free log retrieval operation binding the contract event 0xb26290817ad095a3a22defdd6f5eace80fb6e59a651003e36cbb8fa0888621c6.

Solidity: e ApprovalProposal(who address, id string)

func (*ProposalFilterer) FilterOwnerRefund

func (_Proposal *ProposalFilterer) FilterOwnerRefund(opts *bind.FilterOpts) (*ProposalOwnerRefundIterator, error)

FilterOwnerRefund is a free log retrieval operation binding the contract event 0xd8b84cbbe2837b7d7608d160a2bde8065d418c294b2802f714277bc8dc692408.

Solidity: e ownerRefund(id string)

func (*ProposalFilterer) FilterOwnerRefundAll

func (_Proposal *ProposalFilterer) FilterOwnerRefundAll(opts *bind.FilterOpts) (*ProposalOwnerRefundAllIterator, error)

FilterOwnerRefundAll is a free log retrieval operation binding the contract event 0x643a05825b61c5fee41ff4d7a93fcfa4ae8c82e7cfe012a71a422a3cbf8c3131.

Solidity: e ownerRefundAll()

func (*ProposalFilterer) FilterProposalTimeout

func (_Proposal *ProposalFilterer) FilterProposalTimeout(opts *bind.FilterOpts) (*ProposalProposalTimeoutIterator, error)

FilterProposalTimeout is a free log retrieval operation binding the contract event 0x1540f034983784d94a03cc1fd9cb6299859b69cc81c7856ae5e3ee3575a2bb4d.

Solidity: e proposalTimeout(id string)

func (*ProposalFilterer) FilterSubmitProposal

func (_Proposal *ProposalFilterer) FilterSubmitProposal(opts *bind.FilterOpts) (*ProposalSubmitProposalIterator, error)

FilterSubmitProposal is a free log retrieval operation binding the contract event 0xf1d48eb3f702138bbc89c6b153ac5d45b5de82dff3a73ff92536c68de6eca6c0.

Solidity: e SubmitProposal(who address, id string, period uint256, lockedAmount uint256, lockedTime uint256)

func (*ProposalFilterer) FilterVoteProposal

func (_Proposal *ProposalFilterer) FilterVoteProposal(opts *bind.FilterOpts) (*ProposalVoteProposalIterator, error)

FilterVoteProposal is a free log retrieval operation binding the contract event 0xe6c2413b9632c650bd61906b4c974a2fad9b87d8ad69fed22585f9c4dd77b322.

Solidity: e VoteProposal(who address, id string)

func (*ProposalFilterer) FilterWithdrawMoney

func (_Proposal *ProposalFilterer) FilterWithdrawMoney(opts *bind.FilterOpts) (*ProposalWithdrawMoneyIterator, error)

FilterWithdrawMoney is a free log retrieval operation binding the contract event 0xd8a7ba52c56408630a1950bdcca02a40743e0342d59bce1634c9dee6eb52654a.

Solidity: e WithdrawMoney(who address, id string)

func (*ProposalFilterer) WatchApprovalProposal

func (_Proposal *ProposalFilterer) WatchApprovalProposal(opts *bind.WatchOpts, sink chan<- *ProposalApprovalProposal) (event.Subscription, error)

WatchApprovalProposal is a free log subscription operation binding the contract event 0xb26290817ad095a3a22defdd6f5eace80fb6e59a651003e36cbb8fa0888621c6.

Solidity: e ApprovalProposal(who address, id string)

func (*ProposalFilterer) WatchOwnerRefund

func (_Proposal *ProposalFilterer) WatchOwnerRefund(opts *bind.WatchOpts, sink chan<- *ProposalOwnerRefund) (event.Subscription, error)

WatchOwnerRefund is a free log subscription operation binding the contract event 0xd8b84cbbe2837b7d7608d160a2bde8065d418c294b2802f714277bc8dc692408.

Solidity: e ownerRefund(id string)

func (*ProposalFilterer) WatchOwnerRefundAll

func (_Proposal *ProposalFilterer) WatchOwnerRefundAll(opts *bind.WatchOpts, sink chan<- *ProposalOwnerRefundAll) (event.Subscription, error)

WatchOwnerRefundAll is a free log subscription operation binding the contract event 0x643a05825b61c5fee41ff4d7a93fcfa4ae8c82e7cfe012a71a422a3cbf8c3131.

Solidity: e ownerRefundAll()

func (*ProposalFilterer) WatchProposalTimeout

func (_Proposal *ProposalFilterer) WatchProposalTimeout(opts *bind.WatchOpts, sink chan<- *ProposalProposalTimeout) (event.Subscription, error)

WatchProposalTimeout is a free log subscription operation binding the contract event 0x1540f034983784d94a03cc1fd9cb6299859b69cc81c7856ae5e3ee3575a2bb4d.

Solidity: e proposalTimeout(id string)

func (*ProposalFilterer) WatchSubmitProposal

func (_Proposal *ProposalFilterer) WatchSubmitProposal(opts *bind.WatchOpts, sink chan<- *ProposalSubmitProposal) (event.Subscription, error)

WatchSubmitProposal is a free log subscription operation binding the contract event 0xf1d48eb3f702138bbc89c6b153ac5d45b5de82dff3a73ff92536c68de6eca6c0.

Solidity: e SubmitProposal(who address, id string, period uint256, lockedAmount uint256, lockedTime uint256)

func (*ProposalFilterer) WatchVoteProposal

func (_Proposal *ProposalFilterer) WatchVoteProposal(opts *bind.WatchOpts, sink chan<- *ProposalVoteProposal) (event.Subscription, error)

WatchVoteProposal is a free log subscription operation binding the contract event 0xe6c2413b9632c650bd61906b4c974a2fad9b87d8ad69fed22585f9c4dd77b322.

Solidity: e VoteProposal(who address, id string)

func (*ProposalFilterer) WatchWithdrawMoney

func (_Proposal *ProposalFilterer) WatchWithdrawMoney(opts *bind.WatchOpts, sink chan<- *ProposalWithdrawMoney) (event.Subscription, error)

WatchWithdrawMoney is a free log subscription operation binding the contract event 0xd8a7ba52c56408630a1950bdcca02a40743e0342d59bce1634c9dee6eb52654a.

Solidity: e WithdrawMoney(who address, id string)

type ProposalOwnerRefund

type ProposalOwnerRefund struct {
	Id  string
	Raw types.Log // Blockchain specific contextual infos
}

ProposalOwnerRefund represents a OwnerRefund event raised by the Proposal contract.

type ProposalOwnerRefundAll

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

ProposalOwnerRefundAll represents a OwnerRefundAll event raised by the Proposal contract.

type ProposalOwnerRefundAllIterator

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

ProposalOwnerRefundAllIterator is returned from FilterOwnerRefundAll and is used to iterate over the raw logs and unpacked data for OwnerRefundAll events raised by the Proposal contract.

func (*ProposalOwnerRefundAllIterator) Close

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

func (*ProposalOwnerRefundAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

ProposalOwnerRefundIterator is returned from FilterOwnerRefund and is used to iterate over the raw logs and unpacked data for OwnerRefund events raised by the Proposal contract.

func (*ProposalOwnerRefundIterator) Close

func (it *ProposalOwnerRefundIterator) Close() error

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

func (*ProposalOwnerRefundIterator) Error

func (it *ProposalOwnerRefundIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalOwnerRefundIterator) Next

func (it *ProposalOwnerRefundIterator) 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 ProposalProposalTimeout

type ProposalProposalTimeout struct {
	Id  string
	Raw types.Log // Blockchain specific contextual infos
}

ProposalProposalTimeout represents a ProposalTimeout event raised by the Proposal contract.

type ProposalProposalTimeoutIterator

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

ProposalProposalTimeoutIterator is returned from FilterProposalTimeout and is used to iterate over the raw logs and unpacked data for ProposalTimeout events raised by the Proposal contract.

func (*ProposalProposalTimeoutIterator) Close

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

func (*ProposalProposalTimeoutIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*ProposalRaw) Call

func (_Proposal *ProposalRaw) 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 (*ProposalRaw) Transact

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

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

func (*ProposalRaw) Transfer

func (_Proposal *ProposalRaw) 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 ProposalSession

type ProposalSession struct {
	Contract     *Proposal         // 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
}

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

func (*ProposalSession) AmountThreshold

func (_Proposal *ProposalSession) AmountThreshold() (*big.Int, error)

AmountThreshold is a free data retrieval call binding the contract method 0x8f82921e.

Solidity: function amountThreshold() constant returns(uint256)

func (*ProposalSession) Approval

func (_Proposal *ProposalSession) Approval(id string) (*types.Transaction, error)

Approval is a paid mutator transaction binding the contract method 0x4f434285.

Solidity: function approval(id string) returns()

func (*ProposalSession) ApprovalThreshold

func (_Proposal *ProposalSession) ApprovalThreshold() (*big.Int, error)

ApprovalThreshold is a free data retrieval call binding the contract method 0x7d0eef61.

Solidity: function approvalThreshold() constant returns(uint256)

func (*ProposalSession) CheckTimeout

func (_Proposal *ProposalSession) CheckTimeout(id string) (*types.Transaction, error)

CheckTimeout is a paid mutator transaction binding the contract method 0x33fe73b5.

Solidity: function checkTimeout(id string) returns()

func (*ProposalSession) Congress

func (_Proposal *ProposalSession) Congress() (common.Address, error)

Congress is a free data retrieval call binding the contract method 0x86b0befc.

Solidity: function congress() constant returns(address)

func (*ProposalSession) DisableContract

func (_Proposal *ProposalSession) DisableContract() (*types.Transaction, error)

DisableContract is a paid mutator transaction binding the contract method 0x894ba833.

Solidity: function disableContract() returns()

func (*ProposalSession) EnableContract

func (_Proposal *ProposalSession) EnableContract() (*types.Transaction, error)

EnableContract is a paid mutator transaction binding the contract method 0x367edd32.

Solidity: function enableContract() returns()

func (*ProposalSession) Enabled

func (_Proposal *ProposalSession) Enabled() (bool, error)

Enabled is a free data retrieval call binding the contract method 0x238dafe0.

Solidity: function enabled() constant returns(bool)

func (*ProposalSession) GetApprovalCnt

func (_Proposal *ProposalSession) GetApprovalCnt(id string) (*big.Int, error)

GetApprovalCnt is a free data retrieval call binding the contract method 0x4ce666cb.

Solidity: function getApprovalCnt(id string) constant returns(uint256)

func (*ProposalSession) GetApprovedAddress

func (_Proposal *ProposalSession) GetApprovedAddress(id string) ([]common.Address, error)

GetApprovedAddress is a free data retrieval call binding the contract method 0x6c28c7ae.

Solidity: function getApprovedAddress(id string) constant returns(address[])

func (*ProposalSession) GetCongressNum

func (_Proposal *ProposalSession) GetCongressNum() (*big.Int, error)

GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.

Solidity: function getCongressNum() constant returns(uint256)

func (*ProposalSession) GetLockedAmount

func (_Proposal *ProposalSession) GetLockedAmount(id string) (*big.Int, error)

GetLockedAmount is a free data retrieval call binding the contract method 0x25c494b0.

Solidity: function getLockedAmount(id string) constant returns(uint256)

func (*ProposalSession) GetLockedTime

func (_Proposal *ProposalSession) GetLockedTime(id string) (*big.Int, error)

GetLockedTime is a free data retrieval call binding the contract method 0x0b78a371.

Solidity: function getLockedTime(id string) constant returns(uint256)

func (*ProposalSession) GetOwner

func (_Proposal *ProposalSession) GetOwner(id string) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x4aaf4a12.

Solidity: function getOwner(id string) constant returns(address)

func (*ProposalSession) GetPeriod

func (_Proposal *ProposalSession) GetPeriod(id string) (*big.Int, error)

GetPeriod is a free data retrieval call binding the contract method 0x329c66d0.

Solidity: function getPeriod(id string) constant returns(uint256)

func (*ProposalSession) GetProposalsCnt

func (_Proposal *ProposalSession) GetProposalsCnt() (*big.Int, error)

GetProposalsCnt is a free data retrieval call binding the contract method 0xb29d7c01.

Solidity: function getProposalsCnt() constant returns(uint256)

func (*ProposalSession) GetStatus

func (_Proposal *ProposalSession) GetStatus(id string) (uint8, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(id string) constant returns(uint8)

func (*ProposalSession) GetVoteCnt

func (_Proposal *ProposalSession) GetVoteCnt(id string) (*big.Int, error)

GetVoteCnt is a free data retrieval call binding the contract method 0xee223380.

Solidity: function getVoteCnt(id string) constant returns(uint256)

func (*ProposalSession) GetVotedAddress

func (_Proposal *ProposalSession) GetVotedAddress(id string) ([]common.Address, error)

GetVotedAddress is a free data retrieval call binding the contract method 0x57c909d0.

Solidity: function getVotedAddress(id string) constant returns(address[])

func (*ProposalSession) IdLength

func (_Proposal *ProposalSession) IdLength() (uint16, error)

IdLength is a free data retrieval call binding the contract method 0x9e18a16d.

Solidity: function idLength() constant returns(uint16)

func (*ProposalSession) MaxPeriod

func (_Proposal *ProposalSession) MaxPeriod() (*big.Int, error)

MaxPeriod is a free data retrieval call binding the contract method 0x49b9a67f.

Solidity: function maxPeriod() constant returns(uint256)

func (*ProposalSession) MinCongressMemberCount

func (_Proposal *ProposalSession) MinCongressMemberCount() (uint16, error)

MinCongressMemberCount is a free data retrieval call binding the contract method 0xd8b1565d.

Solidity: function minCongressMemberCount() constant returns(uint16)

func (*ProposalSession) ProposalsIDList

func (_Proposal *ProposalSession) ProposalsIDList(arg0 *big.Int) (string, error)

ProposalsIDList is a free data retrieval call binding the contract method 0x8046f293.

Solidity: function proposalsIDList( uint256) constant returns(string)

func (*ProposalSession) Refund

func (_Proposal *ProposalSession) Refund(id string) (*types.Transaction, error)

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

Solidity: function refund(id string) returns()

func (*ProposalSession) RefundAll

func (_Proposal *ProposalSession) RefundAll() (*types.Transaction, error)

RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.

Solidity: function refundAll() returns()

func (*ProposalSession) SetAmountThreshold

func (_Proposal *ProposalSession) SetAmountThreshold(threshold *big.Int) (*types.Transaction, error)

SetAmountThreshold is a paid mutator transaction binding the contract method 0x3789ccaa.

Solidity: function setAmountThreshold(threshold uint256) returns()

func (*ProposalSession) SetApprovalThreshold

func (_Proposal *ProposalSession) SetApprovalThreshold(threshold *big.Int) (*types.Transaction, error)

SetApprovalThreshold is a paid mutator transaction binding the contract method 0xa0016b8c.

Solidity: function setApprovalThreshold(threshold uint256) returns()

func (*ProposalSession) SetIDLength

func (_Proposal *ProposalSession) SetIDLength(length uint16) (*types.Transaction, error)

SetIDLength is a paid mutator transaction binding the contract method 0x3378702a.

Solidity: function setIDLength(length uint16) returns()

func (*ProposalSession) SetMaxPeriod

func (_Proposal *ProposalSession) SetMaxPeriod(period *big.Int) (*types.Transaction, error)

SetMaxPeriod is a paid mutator transaction binding the contract method 0xae1c9fc1.

Solidity: function setMaxPeriod(period uint256) returns()

func (*ProposalSession) SetMinCongressMemberCount

func (_Proposal *ProposalSession) SetMinCongressMemberCount(number uint16) (*types.Transaction, error)

SetMinCongressMemberCount is a paid mutator transaction binding the contract method 0x52ec6d42.

Solidity: function setMinCongressMemberCount(number uint16) returns()

func (*ProposalSession) SetVoteThreshold

func (_Proposal *ProposalSession) SetVoteThreshold(threshold uint16) (*types.Transaction, error)

SetVoteThreshold is a paid mutator transaction binding the contract method 0x3fec30c7.

Solidity: function setVoteThreshold(threshold uint16) returns()

func (*ProposalSession) Submit

func (_Proposal *ProposalSession) Submit(id string, period *big.Int) (*types.Transaction, error)

Submit is a paid mutator transaction binding the contract method 0xbf45554e.

Solidity: function submit(id string, period uint256) returns()

func (*ProposalSession) Vote

func (_Proposal *ProposalSession) Vote(id string) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xfc36e15b.

Solidity: function vote(id string) returns()

func (*ProposalSession) VoteThreshold

func (_Proposal *ProposalSession) VoteThreshold() (uint16, error)

VoteThreshold is a free data retrieval call binding the contract method 0x4fe437d5.

Solidity: function voteThreshold() constant returns(uint16)

func (*ProposalSession) Withdraw

func (_Proposal *ProposalSession) Withdraw(id string) (*types.Transaction, error)

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

Solidity: function withdraw(id string) returns()

type ProposalSubmitProposal

type ProposalSubmitProposal struct {
	Who          common.Address
	Id           string
	Period       *big.Int
	LockedAmount *big.Int
	LockedTime   *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

ProposalSubmitProposal represents a SubmitProposal event raised by the Proposal contract.

type ProposalSubmitProposalIterator

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

ProposalSubmitProposalIterator is returned from FilterSubmitProposal and is used to iterate over the raw logs and unpacked data for SubmitProposal events raised by the Proposal contract.

func (*ProposalSubmitProposalIterator) Close

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

func (*ProposalSubmitProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewProposalTransactor

func NewProposalTransactor(address common.Address, transactor bind.ContractTransactor) (*ProposalTransactor, error)

NewProposalTransactor creates a new write-only instance of Proposal, bound to a specific deployed contract.

func (*ProposalTransactor) Approval

func (_Proposal *ProposalTransactor) Approval(opts *bind.TransactOpts, id string) (*types.Transaction, error)

Approval is a paid mutator transaction binding the contract method 0x4f434285.

Solidity: function approval(id string) returns()

func (*ProposalTransactor) CheckTimeout

func (_Proposal *ProposalTransactor) CheckTimeout(opts *bind.TransactOpts, id string) (*types.Transaction, error)

CheckTimeout is a paid mutator transaction binding the contract method 0x33fe73b5.

Solidity: function checkTimeout(id string) returns()

func (*ProposalTransactor) DisableContract

func (_Proposal *ProposalTransactor) DisableContract(opts *bind.TransactOpts) (*types.Transaction, error)

DisableContract is a paid mutator transaction binding the contract method 0x894ba833.

Solidity: function disableContract() returns()

func (*ProposalTransactor) EnableContract

func (_Proposal *ProposalTransactor) EnableContract(opts *bind.TransactOpts) (*types.Transaction, error)

EnableContract is a paid mutator transaction binding the contract method 0x367edd32.

Solidity: function enableContract() returns()

func (*ProposalTransactor) Refund

func (_Proposal *ProposalTransactor) Refund(opts *bind.TransactOpts, id string) (*types.Transaction, error)

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

Solidity: function refund(id string) returns()

func (*ProposalTransactor) RefundAll

func (_Proposal *ProposalTransactor) RefundAll(opts *bind.TransactOpts) (*types.Transaction, error)

RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.

Solidity: function refundAll() returns()

func (*ProposalTransactor) SetAmountThreshold

func (_Proposal *ProposalTransactor) SetAmountThreshold(opts *bind.TransactOpts, threshold *big.Int) (*types.Transaction, error)

SetAmountThreshold is a paid mutator transaction binding the contract method 0x3789ccaa.

Solidity: function setAmountThreshold(threshold uint256) returns()

func (*ProposalTransactor) SetApprovalThreshold

func (_Proposal *ProposalTransactor) SetApprovalThreshold(opts *bind.TransactOpts, threshold *big.Int) (*types.Transaction, error)

SetApprovalThreshold is a paid mutator transaction binding the contract method 0xa0016b8c.

Solidity: function setApprovalThreshold(threshold uint256) returns()

func (*ProposalTransactor) SetIDLength

func (_Proposal *ProposalTransactor) SetIDLength(opts *bind.TransactOpts, length uint16) (*types.Transaction, error)

SetIDLength is a paid mutator transaction binding the contract method 0x3378702a.

Solidity: function setIDLength(length uint16) returns()

func (*ProposalTransactor) SetMaxPeriod

func (_Proposal *ProposalTransactor) SetMaxPeriod(opts *bind.TransactOpts, period *big.Int) (*types.Transaction, error)

SetMaxPeriod is a paid mutator transaction binding the contract method 0xae1c9fc1.

Solidity: function setMaxPeriod(period uint256) returns()

func (*ProposalTransactor) SetMinCongressMemberCount

func (_Proposal *ProposalTransactor) SetMinCongressMemberCount(opts *bind.TransactOpts, number uint16) (*types.Transaction, error)

SetMinCongressMemberCount is a paid mutator transaction binding the contract method 0x52ec6d42.

Solidity: function setMinCongressMemberCount(number uint16) returns()

func (*ProposalTransactor) SetVoteThreshold

func (_Proposal *ProposalTransactor) SetVoteThreshold(opts *bind.TransactOpts, threshold uint16) (*types.Transaction, error)

SetVoteThreshold is a paid mutator transaction binding the contract method 0x3fec30c7.

Solidity: function setVoteThreshold(threshold uint16) returns()

func (*ProposalTransactor) Submit

func (_Proposal *ProposalTransactor) Submit(opts *bind.TransactOpts, id string, period *big.Int) (*types.Transaction, error)

Submit is a paid mutator transaction binding the contract method 0xbf45554e.

Solidity: function submit(id string, period uint256) returns()

func (*ProposalTransactor) Vote

func (_Proposal *ProposalTransactor) Vote(opts *bind.TransactOpts, id string) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xfc36e15b.

Solidity: function vote(id string) returns()

func (*ProposalTransactor) Withdraw

func (_Proposal *ProposalTransactor) Withdraw(opts *bind.TransactOpts, id string) (*types.Transaction, error)

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

Solidity: function withdraw(id string) returns()

type ProposalTransactorRaw

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

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

func (*ProposalTransactorRaw) Transact

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

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

func (*ProposalTransactorRaw) Transfer

func (_Proposal *ProposalTransactorRaw) 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 ProposalTransactorSession

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

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

func (*ProposalTransactorSession) Approval

func (_Proposal *ProposalTransactorSession) Approval(id string) (*types.Transaction, error)

Approval is a paid mutator transaction binding the contract method 0x4f434285.

Solidity: function approval(id string) returns()

func (*ProposalTransactorSession) CheckTimeout

func (_Proposal *ProposalTransactorSession) CheckTimeout(id string) (*types.Transaction, error)

CheckTimeout is a paid mutator transaction binding the contract method 0x33fe73b5.

Solidity: function checkTimeout(id string) returns()

func (*ProposalTransactorSession) DisableContract

func (_Proposal *ProposalTransactorSession) DisableContract() (*types.Transaction, error)

DisableContract is a paid mutator transaction binding the contract method 0x894ba833.

Solidity: function disableContract() returns()

func (*ProposalTransactorSession) EnableContract

func (_Proposal *ProposalTransactorSession) EnableContract() (*types.Transaction, error)

EnableContract is a paid mutator transaction binding the contract method 0x367edd32.

Solidity: function enableContract() returns()

func (*ProposalTransactorSession) Refund

func (_Proposal *ProposalTransactorSession) Refund(id string) (*types.Transaction, error)

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

Solidity: function refund(id string) returns()

func (*ProposalTransactorSession) RefundAll

func (_Proposal *ProposalTransactorSession) RefundAll() (*types.Transaction, error)

RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.

Solidity: function refundAll() returns()

func (*ProposalTransactorSession) SetAmountThreshold

func (_Proposal *ProposalTransactorSession) SetAmountThreshold(threshold *big.Int) (*types.Transaction, error)

SetAmountThreshold is a paid mutator transaction binding the contract method 0x3789ccaa.

Solidity: function setAmountThreshold(threshold uint256) returns()

func (*ProposalTransactorSession) SetApprovalThreshold

func (_Proposal *ProposalTransactorSession) SetApprovalThreshold(threshold *big.Int) (*types.Transaction, error)

SetApprovalThreshold is a paid mutator transaction binding the contract method 0xa0016b8c.

Solidity: function setApprovalThreshold(threshold uint256) returns()

func (*ProposalTransactorSession) SetIDLength

func (_Proposal *ProposalTransactorSession) SetIDLength(length uint16) (*types.Transaction, error)

SetIDLength is a paid mutator transaction binding the contract method 0x3378702a.

Solidity: function setIDLength(length uint16) returns()

func (*ProposalTransactorSession) SetMaxPeriod

func (_Proposal *ProposalTransactorSession) SetMaxPeriod(period *big.Int) (*types.Transaction, error)

SetMaxPeriod is a paid mutator transaction binding the contract method 0xae1c9fc1.

Solidity: function setMaxPeriod(period uint256) returns()

func (*ProposalTransactorSession) SetMinCongressMemberCount

func (_Proposal *ProposalTransactorSession) SetMinCongressMemberCount(number uint16) (*types.Transaction, error)

SetMinCongressMemberCount is a paid mutator transaction binding the contract method 0x52ec6d42.

Solidity: function setMinCongressMemberCount(number uint16) returns()

func (*ProposalTransactorSession) SetVoteThreshold

func (_Proposal *ProposalTransactorSession) SetVoteThreshold(threshold uint16) (*types.Transaction, error)

SetVoteThreshold is a paid mutator transaction binding the contract method 0x3fec30c7.

Solidity: function setVoteThreshold(threshold uint16) returns()

func (*ProposalTransactorSession) Submit

func (_Proposal *ProposalTransactorSession) Submit(id string, period *big.Int) (*types.Transaction, error)

Submit is a paid mutator transaction binding the contract method 0xbf45554e.

Solidity: function submit(id string, period uint256) returns()

func (*ProposalTransactorSession) Vote

func (_Proposal *ProposalTransactorSession) Vote(id string) (*types.Transaction, error)

Vote is a paid mutator transaction binding the contract method 0xfc36e15b.

Solidity: function vote(id string) returns()

func (*ProposalTransactorSession) Withdraw

func (_Proposal *ProposalTransactorSession) Withdraw(id string) (*types.Transaction, error)

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

Solidity: function withdraw(id string) returns()

type ProposalVoteProposal

type ProposalVoteProposal struct {
	Who common.Address
	Id  string
	Raw types.Log // Blockchain specific contextual infos
}

ProposalVoteProposal represents a VoteProposal event raised by the Proposal contract.

type ProposalVoteProposalIterator

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

ProposalVoteProposalIterator is returned from FilterVoteProposal and is used to iterate over the raw logs and unpacked data for VoteProposal events raised by the Proposal contract.

func (*ProposalVoteProposalIterator) Close

func (it *ProposalVoteProposalIterator) Close() error

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

func (*ProposalVoteProposalIterator) Error

func (it *ProposalVoteProposalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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

type ProposalWithdrawMoney struct {
	Who common.Address
	Id  string
	Raw types.Log // Blockchain specific contextual infos
}

ProposalWithdrawMoney represents a WithdrawMoney event raised by the Proposal contract.

type ProposalWithdrawMoneyIterator

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

ProposalWithdrawMoneyIterator is returned from FilterWithdrawMoney and is used to iterate over the raw logs and unpacked data for WithdrawMoney events raised by the Proposal contract.

func (*ProposalWithdrawMoneyIterator) Close

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

func (*ProposalWithdrawMoneyIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProposalWithdrawMoneyIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
	SafeMathFilterer   // Log filterer for contract events
}

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

func DeploySafeMath

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

DeploySafeMath deploys a new cpchain contract, binding an instance of SafeMath to it.

func NewSafeMath

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

NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.

type SafeMathCaller

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

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

func NewSafeMathCaller

func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)

NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathCallerRaw

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

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

func (*SafeMathCallerRaw) Call

func (_SafeMath *SafeMathCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type SafeMathCallerSession

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

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

type SafeMathFilterer

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

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

func NewSafeMathFilterer

func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)

NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.

type SafeMathRaw

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

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

func (*SafeMathRaw) Call

func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*SafeMathRaw) Transact

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

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

func (*SafeMathRaw) Transfer

func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SafeMathSession

type SafeMathSession struct {
	Contract     *SafeMath         // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

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

type SafeMathTransactor

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

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

func NewSafeMathTransactor

func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)

NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathTransactorRaw

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

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

func (*SafeMathTransactorRaw) Transact

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

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

func (*SafeMathTransactorRaw) Transfer

func (_SafeMath *SafeMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SafeMathTransactorSession

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

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

type Set

type Set struct {
	SetCaller     // Read-only binding to the contract
	SetTransactor // Write-only binding to the contract
	SetFilterer   // Log filterer for contract events
}

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

func DeploySet

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

DeploySet deploys a new cpchain contract, binding an instance of Set to it.

func NewSet

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

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

type SetCaller

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

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

func NewSetCaller

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

NewSetCaller creates a new read-only instance of Set, bound to a specific deployed contract.

type SetCallerRaw

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

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

func (*SetCallerRaw) Call

func (_Set *SetCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type SetCallerSession

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

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

type SetFilterer

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

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

func NewSetFilterer

func NewSetFilterer(address common.Address, filterer bind.ContractFilterer) (*SetFilterer, error)

NewSetFilterer creates a new log filterer instance of Set, bound to a specific deployed contract.

type SetRaw

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

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

func (*SetRaw) Call

func (_Set *SetRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*SetRaw) Transact

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

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

func (*SetRaw) Transfer

func (_Set *SetRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SetSession

type SetSession struct {
	Contract     *Set              // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

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

type SetTransactor

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

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

func NewSetTransactor

func NewSetTransactor(address common.Address, transactor bind.ContractTransactor) (*SetTransactor, error)

NewSetTransactor creates a new write-only instance of Set, bound to a specific deployed contract.

type SetTransactorRaw

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

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

func (*SetTransactorRaw) Transact

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

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

func (*SetTransactorRaw) Transfer

func (_Set *SetTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SetTransactorSession

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

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

Jump to

Keyboard shortcuts

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