Documentation ¶
Index ¶
- Constants
- type Congress
- type CongressCaller
- func (_Congress *CongressCaller) CongressThreshold(opts *bind.CallOpts) (*big.Int, error)
- func (_Congress *CongressCaller) Enabled(opts *bind.CallOpts) (bool, error)
- func (_Congress *CongressCaller) GetCongress(opts *bind.CallOpts) ([]common.Address, error)
- func (_Congress *CongressCaller) GetCongressNum(opts *bind.CallOpts) (*big.Int, error)
- func (_Congress *CongressCaller) IsContract(opts *bind.CallOpts, addr common.Address) (bool, error)
- func (_Congress *CongressCaller) IsInCongress(opts *bind.CallOpts, addr common.Address) (bool, error)
- func (_Congress *CongressCaller) Participants(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_Congress *CongressCaller) Period(opts *bind.CallOpts) (*big.Int, error)
- func (_Congress *CongressCaller) SupportedVersion(opts *bind.CallOpts) (*big.Int, error)
- type CongressCallerRaw
- type CongressCallerSession
- func (_Congress *CongressCallerSession) CongressThreshold() (*big.Int, error)
- func (_Congress *CongressCallerSession) Enabled() (bool, error)
- func (_Congress *CongressCallerSession) GetCongress() ([]common.Address, error)
- func (_Congress *CongressCallerSession) GetCongressNum() (*big.Int, error)
- func (_Congress *CongressCallerSession) IsContract(addr common.Address) (bool, error)
- func (_Congress *CongressCallerSession) IsInCongress(addr common.Address) (bool, error)
- func (_Congress *CongressCallerSession) Participants(arg0 common.Address) (struct{ ... }, error)
- func (_Congress *CongressCallerSession) Period() (*big.Int, error)
- func (_Congress *CongressCallerSession) SupportedVersion() (*big.Int, error)
- type CongressFilterer
- func (_Congress *CongressFilterer) FilterJoin(opts *bind.FilterOpts) (*CongressJoinIterator, error)
- func (_Congress *CongressFilterer) FilterOwnerRefund(opts *bind.FilterOpts) (*CongressOwnerRefundIterator, error)
- func (_Congress *CongressFilterer) FilterOwnerRefundAll(opts *bind.FilterOpts) (*CongressOwnerRefundAllIterator, error)
- func (_Congress *CongressFilterer) FilterQuit(opts *bind.FilterOpts) (*CongressQuitIterator, error)
- func (_Congress *CongressFilterer) WatchJoin(opts *bind.WatchOpts, sink chan<- *CongressJoin) (event.Subscription, error)
- func (_Congress *CongressFilterer) WatchOwnerRefund(opts *bind.WatchOpts, sink chan<- *CongressOwnerRefund) (event.Subscription, error)
- func (_Congress *CongressFilterer) WatchOwnerRefundAll(opts *bind.WatchOpts, sink chan<- *CongressOwnerRefundAll) (event.Subscription, error)
- func (_Congress *CongressFilterer) WatchQuit(opts *bind.WatchOpts, sink chan<- *CongressQuit) (event.Subscription, error)
- type CongressJoin
- type CongressJoinIterator
- type CongressOwnerRefund
- type CongressOwnerRefundAll
- type CongressOwnerRefundAllIterator
- type CongressOwnerRefundIterator
- type CongressQuit
- type CongressQuitIterator
- type CongressRaw
- func (_Congress *CongressRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Congress *CongressRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Congress *CongressRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CongressSession
- func (_Congress *CongressSession) CongressThreshold() (*big.Int, error)
- func (_Congress *CongressSession) DisableContract() (*types.Transaction, error)
- func (_Congress *CongressSession) EnableContract() (*types.Transaction, error)
- func (_Congress *CongressSession) Enabled() (bool, error)
- func (_Congress *CongressSession) GetCongress() ([]common.Address, error)
- func (_Congress *CongressSession) GetCongressNum() (*big.Int, error)
- func (_Congress *CongressSession) IsContract(addr common.Address) (bool, error)
- func (_Congress *CongressSession) IsInCongress(addr common.Address) (bool, error)
- func (_Congress *CongressSession) JoinCongress(version *big.Int) (*types.Transaction, error)
- func (_Congress *CongressSession) Participants(arg0 common.Address) (struct{ ... }, error)
- func (_Congress *CongressSession) Period() (*big.Int, error)
- func (_Congress *CongressSession) QuitCongress() (*types.Transaction, error)
- func (_Congress *CongressSession) Refund(investor common.Address) (*types.Transaction, error)
- func (_Congress *CongressSession) RefundAll() (*types.Transaction, error)
- func (_Congress *CongressSession) SetCongressThreshold(threshold *big.Int) (*types.Transaction, error)
- func (_Congress *CongressSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
- func (_Congress *CongressSession) SetSupportedVersion(version *big.Int) (*types.Transaction, error)
- func (_Congress *CongressSession) SupportedVersion() (*big.Int, error)
- type CongressTransactor
- func (_Congress *CongressTransactor) DisableContract(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Congress *CongressTransactor) EnableContract(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Congress *CongressTransactor) JoinCongress(opts *bind.TransactOpts, version *big.Int) (*types.Transaction, error)
- func (_Congress *CongressTransactor) QuitCongress(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Congress *CongressTransactor) Refund(opts *bind.TransactOpts, investor common.Address) (*types.Transaction, error)
- func (_Congress *CongressTransactor) RefundAll(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Congress *CongressTransactor) SetCongressThreshold(opts *bind.TransactOpts, threshold *big.Int) (*types.Transaction, error)
- func (_Congress *CongressTransactor) SetPeriod(opts *bind.TransactOpts, _period *big.Int) (*types.Transaction, error)
- func (_Congress *CongressTransactor) SetSupportedVersion(opts *bind.TransactOpts, version *big.Int) (*types.Transaction, error)
- type CongressTransactorRaw
- type CongressTransactorSession
- func (_Congress *CongressTransactorSession) DisableContract() (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) EnableContract() (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) JoinCongress(version *big.Int) (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) QuitCongress() (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) Refund(investor common.Address) (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) RefundAll() (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) SetCongressThreshold(threshold *big.Int) (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
- func (_Congress *CongressTransactorSession) SetSupportedVersion(version *big.Int) (*types.Transaction, error)
- type SafeMath
- type SafeMathCaller
- type SafeMathCallerRaw
- type SafeMathCallerSession
- type SafeMathFilterer
- type SafeMathRaw
- func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SafeMathSession
- type SafeMathTransactor
- type SafeMathTransactorRaw
- type SafeMathTransactorSession
- type Set
- type SetCaller
- type SetCallerRaw
- type SetCallerSession
- type SetFilterer
- type SetRaw
- func (_Set *SetRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Set *SetRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Set *SetRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SetSession
- type SetTransactor
- type SetTransactorRaw
- type SetTransactorSession
Constants ¶
const CongressABI = "" /* 4203-byte string literal not displayed */
CongressABI is the input ABI used to generate the binding from.
const CongressBin = `` /* 6280-byte string literal not displayed */
CongressBin is the compiled bytecode used for deploying new contracts.
const SafeMathABI = "[]"
SafeMathABI is the input ABI used to generate the binding from.
const SafeMathBin = `` /* 242-byte string literal not displayed */
SafeMathBin is the compiled bytecode used for deploying new contracts.
const SetABI = "[]"
SetABI is the input ABI used to generate the binding from.
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 Congress ¶
type Congress struct { CongressCaller // Read-only binding to the contract CongressTransactor // Write-only binding to the contract CongressFilterer // Log filterer for contract events }
Congress is an auto generated Go binding around an cpchain contract.
func DeployCongress ¶
func DeployCongress(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Congress, error)
DeployCongress deploys a new cpchain contract, binding an instance of Congress to it.
func NewCongress ¶
NewCongress creates a new instance of Congress, bound to a specific deployed contract.
type CongressCaller ¶
type CongressCaller struct {
// contains filtered or unexported fields
}
CongressCaller is an auto generated read-only Go binding around an cpchain contract.
func NewCongressCaller ¶
func NewCongressCaller(address common.Address, caller bind.ContractCaller) (*CongressCaller, error)
NewCongressCaller creates a new read-only instance of Congress, bound to a specific deployed contract.
func (*CongressCaller) CongressThreshold ¶
CongressThreshold is a free data retrieval call binding the contract method 0x39fad16e.
Solidity: function congressThreshold() constant returns(uint256)
func (*CongressCaller) Enabled ¶
func (_Congress *CongressCaller) 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 (*CongressCaller) GetCongress ¶
GetCongress is a free data retrieval call binding the contract method 0x6a96b9a5.
Solidity: function getCongress() constant returns(address[])
func (*CongressCaller) GetCongressNum ¶
GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.
Solidity: function getCongressNum() constant returns(uint256)
func (*CongressCaller) IsContract ¶
IsContract is a free data retrieval call binding the contract method 0x16279055.
Solidity: function isContract(addr address) constant returns(bool)
func (*CongressCaller) IsInCongress ¶
func (_Congress *CongressCaller) 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)
func (*CongressCaller) Participants ¶
func (_Congress *CongressCaller) Participants(opts *bind.CallOpts, arg0 common.Address) (struct { LockedDeposit *big.Int LockedTime *big.Int }, error)
Participants is a free data retrieval call binding the contract method 0x595aa13d.
Solidity: function Participants( address) constant returns(lockedDeposit uint256, lockedTime uint256)
func (*CongressCaller) Period ¶
Period is a free data retrieval call binding the contract method 0xef78d4fd.
Solidity: function period() constant returns(uint256)
func (*CongressCaller) SupportedVersion ¶
SupportedVersion is a free data retrieval call binding the contract method 0xd5601e9f.
Solidity: function supportedVersion() constant returns(uint256)
type CongressCallerRaw ¶
type CongressCallerRaw struct {
Contract *CongressCaller // Generic read-only contract binding to access the raw methods on
}
CongressCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.
func (*CongressCallerRaw) Call ¶
func (_Congress *CongressCallerRaw) 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 CongressCallerSession ¶
type CongressCallerSession struct { Contract *CongressCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CongressCallerSession is an auto generated read-only Go binding around an cpchain contract, with pre-set call options.
func (*CongressCallerSession) CongressThreshold ¶
func (_Congress *CongressCallerSession) CongressThreshold() (*big.Int, error)
CongressThreshold is a free data retrieval call binding the contract method 0x39fad16e.
Solidity: function congressThreshold() constant returns(uint256)
func (*CongressCallerSession) Enabled ¶
func (_Congress *CongressCallerSession) Enabled() (bool, error)
Enabled is a free data retrieval call binding the contract method 0x238dafe0.
Solidity: function enabled() constant returns(bool)
func (*CongressCallerSession) GetCongress ¶
func (_Congress *CongressCallerSession) GetCongress() ([]common.Address, error)
GetCongress is a free data retrieval call binding the contract method 0x6a96b9a5.
Solidity: function getCongress() constant returns(address[])
func (*CongressCallerSession) GetCongressNum ¶
func (_Congress *CongressCallerSession) GetCongressNum() (*big.Int, error)
GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.
Solidity: function getCongressNum() constant returns(uint256)
func (*CongressCallerSession) IsContract ¶
func (_Congress *CongressCallerSession) IsContract(addr common.Address) (bool, error)
IsContract is a free data retrieval call binding the contract method 0x16279055.
Solidity: function isContract(addr address) constant returns(bool)
func (*CongressCallerSession) IsInCongress ¶
func (_Congress *CongressCallerSession) 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)
func (*CongressCallerSession) Participants ¶
func (_Congress *CongressCallerSession) Participants(arg0 common.Address) (struct { LockedDeposit *big.Int LockedTime *big.Int }, error)
Participants is a free data retrieval call binding the contract method 0x595aa13d.
Solidity: function Participants( address) constant returns(lockedDeposit uint256, lockedTime uint256)
func (*CongressCallerSession) Period ¶
func (_Congress *CongressCallerSession) Period() (*big.Int, error)
Period is a free data retrieval call binding the contract method 0xef78d4fd.
Solidity: function period() constant returns(uint256)
func (*CongressCallerSession) SupportedVersion ¶
func (_Congress *CongressCallerSession) SupportedVersion() (*big.Int, error)
SupportedVersion is a free data retrieval call binding the contract method 0xd5601e9f.
Solidity: function supportedVersion() constant returns(uint256)
type CongressFilterer ¶
type CongressFilterer struct {
// contains filtered or unexported fields
}
CongressFilterer is an auto generated log filtering Go binding around an cpchain contract events.
func NewCongressFilterer ¶
func NewCongressFilterer(address common.Address, filterer bind.ContractFilterer) (*CongressFilterer, error)
NewCongressFilterer creates a new log filterer instance of Congress, bound to a specific deployed contract.
func (*CongressFilterer) FilterJoin ¶
func (_Congress *CongressFilterer) FilterJoin(opts *bind.FilterOpts) (*CongressJoinIterator, error)
FilterJoin is a free log retrieval operation binding the contract event 0xbca387acb0ba7d06e329c4372885bb664f19a98153ccf3e74e56c136bf0e88c4.
Solidity: e Join(who address, lockedDeposit uint256, lockedTime uint256)
func (*CongressFilterer) FilterOwnerRefund ¶
func (_Congress *CongressFilterer) FilterOwnerRefund(opts *bind.FilterOpts) (*CongressOwnerRefundIterator, error)
FilterOwnerRefund is a free log retrieval operation binding the contract event 0x3914ba80eb00486e7a58b91fb4795283df0c5b507eea9cf7c77cce26cc70d25c.
Solidity: e ownerRefund(who address, amount uint256)
func (*CongressFilterer) FilterOwnerRefundAll ¶
func (_Congress *CongressFilterer) FilterOwnerRefundAll(opts *bind.FilterOpts) (*CongressOwnerRefundAllIterator, error)
FilterOwnerRefundAll is a free log retrieval operation binding the contract event 0xb65ebb6b17695b3a5612c7a0f6f60e649c02ba24b36b546b8d037e98215fdb8d.
Solidity: e ownerRefundAll(numOfInvestor uint256)
func (*CongressFilterer) FilterQuit ¶
func (_Congress *CongressFilterer) FilterQuit(opts *bind.FilterOpts) (*CongressQuitIterator, error)
FilterQuit is a free log retrieval operation binding the contract event 0x03c628a4c93ed860bebcdb8d45ac895f4e4b31b42deea215750fdac0403d66dd.
Solidity: e Quit(who address)
func (*CongressFilterer) WatchJoin ¶
func (_Congress *CongressFilterer) WatchJoin(opts *bind.WatchOpts, sink chan<- *CongressJoin) (event.Subscription, error)
WatchJoin is a free log subscription operation binding the contract event 0xbca387acb0ba7d06e329c4372885bb664f19a98153ccf3e74e56c136bf0e88c4.
Solidity: e Join(who address, lockedDeposit uint256, lockedTime uint256)
func (*CongressFilterer) WatchOwnerRefund ¶
func (_Congress *CongressFilterer) WatchOwnerRefund(opts *bind.WatchOpts, sink chan<- *CongressOwnerRefund) (event.Subscription, error)
WatchOwnerRefund is a free log subscription operation binding the contract event 0x3914ba80eb00486e7a58b91fb4795283df0c5b507eea9cf7c77cce26cc70d25c.
Solidity: e ownerRefund(who address, amount uint256)
func (*CongressFilterer) WatchOwnerRefundAll ¶
func (_Congress *CongressFilterer) WatchOwnerRefundAll(opts *bind.WatchOpts, sink chan<- *CongressOwnerRefundAll) (event.Subscription, error)
WatchOwnerRefundAll is a free log subscription operation binding the contract event 0xb65ebb6b17695b3a5612c7a0f6f60e649c02ba24b36b546b8d037e98215fdb8d.
Solidity: e ownerRefundAll(numOfInvestor uint256)
func (*CongressFilterer) WatchQuit ¶
func (_Congress *CongressFilterer) WatchQuit(opts *bind.WatchOpts, sink chan<- *CongressQuit) (event.Subscription, error)
WatchQuit is a free log subscription operation binding the contract event 0x03c628a4c93ed860bebcdb8d45ac895f4e4b31b42deea215750fdac0403d66dd.
Solidity: e Quit(who address)
type CongressJoin ¶
type CongressJoin struct { Who common.Address LockedDeposit *big.Int LockedTime *big.Int Raw types.Log // Blockchain specific contextual infos }
CongressJoin represents a Join event raised by the Congress contract.
type CongressJoinIterator ¶
type CongressJoinIterator struct { Event *CongressJoin // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CongressJoinIterator is returned from FilterJoin and is used to iterate over the raw logs and unpacked data for Join events raised by the Congress contract.
func (*CongressJoinIterator) Close ¶
func (it *CongressJoinIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CongressJoinIterator) Error ¶
func (it *CongressJoinIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CongressJoinIterator) Next ¶
func (it *CongressJoinIterator) 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 CongressOwnerRefund ¶
type CongressOwnerRefund struct { Who common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
CongressOwnerRefund represents a OwnerRefund event raised by the Congress contract.
type CongressOwnerRefundAll ¶
type CongressOwnerRefundAll struct { NumOfInvestor *big.Int Raw types.Log // Blockchain specific contextual infos }
CongressOwnerRefundAll represents a OwnerRefundAll event raised by the Congress contract.
type CongressOwnerRefundAllIterator ¶
type CongressOwnerRefundAllIterator struct { Event *CongressOwnerRefundAll // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CongressOwnerRefundAllIterator is returned from FilterOwnerRefundAll and is used to iterate over the raw logs and unpacked data for OwnerRefundAll events raised by the Congress contract.
func (*CongressOwnerRefundAllIterator) Close ¶
func (it *CongressOwnerRefundAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CongressOwnerRefundAllIterator) Error ¶
func (it *CongressOwnerRefundAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CongressOwnerRefundAllIterator) Next ¶
func (it *CongressOwnerRefundAllIterator) 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 CongressOwnerRefundIterator ¶
type CongressOwnerRefundIterator struct { Event *CongressOwnerRefund // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CongressOwnerRefundIterator is returned from FilterOwnerRefund and is used to iterate over the raw logs and unpacked data for OwnerRefund events raised by the Congress contract.
func (*CongressOwnerRefundIterator) Close ¶
func (it *CongressOwnerRefundIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CongressOwnerRefundIterator) Error ¶
func (it *CongressOwnerRefundIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CongressOwnerRefundIterator) Next ¶
func (it *CongressOwnerRefundIterator) 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 CongressQuit ¶
type CongressQuit struct { Who common.Address Raw types.Log // Blockchain specific contextual infos }
CongressQuit represents a Quit event raised by the Congress contract.
type CongressQuitIterator ¶
type CongressQuitIterator struct { Event *CongressQuit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CongressQuitIterator is returned from FilterQuit and is used to iterate over the raw logs and unpacked data for Quit events raised by the Congress contract.
func (*CongressQuitIterator) Close ¶
func (it *CongressQuitIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CongressQuitIterator) Error ¶
func (it *CongressQuitIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CongressQuitIterator) Next ¶
func (it *CongressQuitIterator) 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 CongressRaw ¶
type CongressRaw struct {
Contract *Congress // Generic contract binding to access the raw methods on
}
CongressRaw is an auto generated low-level Go binding around an cpchain contract.
func (*CongressRaw) Call ¶
func (_Congress *CongressRaw) 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 (*CongressRaw) Transact ¶
func (_Congress *CongressRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CongressRaw) Transfer ¶
func (_Congress *CongressRaw) 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 CongressSession ¶
type CongressSession struct { Contract *Congress // 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 }
CongressSession is an auto generated Go binding around an cpchain contract, with pre-set call and transact options.
func (*CongressSession) CongressThreshold ¶
func (_Congress *CongressSession) CongressThreshold() (*big.Int, error)
CongressThreshold is a free data retrieval call binding the contract method 0x39fad16e.
Solidity: function congressThreshold() constant returns(uint256)
func (*CongressSession) DisableContract ¶
func (_Congress *CongressSession) DisableContract() (*types.Transaction, error)
DisableContract is a paid mutator transaction binding the contract method 0x894ba833.
Solidity: function disableContract() returns()
func (*CongressSession) EnableContract ¶
func (_Congress *CongressSession) EnableContract() (*types.Transaction, error)
EnableContract is a paid mutator transaction binding the contract method 0x367edd32.
Solidity: function enableContract() returns()
func (*CongressSession) Enabled ¶
func (_Congress *CongressSession) Enabled() (bool, error)
Enabled is a free data retrieval call binding the contract method 0x238dafe0.
Solidity: function enabled() constant returns(bool)
func (*CongressSession) GetCongress ¶
func (_Congress *CongressSession) GetCongress() ([]common.Address, error)
GetCongress is a free data retrieval call binding the contract method 0x6a96b9a5.
Solidity: function getCongress() constant returns(address[])
func (*CongressSession) GetCongressNum ¶
func (_Congress *CongressSession) GetCongressNum() (*big.Int, error)
GetCongressNum is a free data retrieval call binding the contract method 0x6656b375.
Solidity: function getCongressNum() constant returns(uint256)
func (*CongressSession) IsContract ¶
func (_Congress *CongressSession) IsContract(addr common.Address) (bool, error)
IsContract is a free data retrieval call binding the contract method 0x16279055.
Solidity: function isContract(addr address) constant returns(bool)
func (*CongressSession) IsInCongress ¶
func (_Congress *CongressSession) 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)
func (*CongressSession) JoinCongress ¶
func (_Congress *CongressSession) JoinCongress(version *big.Int) (*types.Transaction, error)
JoinCongress is a paid mutator transaction binding the contract method 0x51f5f87a.
Solidity: function joinCongress(version uint256) returns()
func (*CongressSession) Participants ¶
func (_Congress *CongressSession) Participants(arg0 common.Address) (struct { LockedDeposit *big.Int LockedTime *big.Int }, error)
Participants is a free data retrieval call binding the contract method 0x595aa13d.
Solidity: function Participants( address) constant returns(lockedDeposit uint256, lockedTime uint256)
func (*CongressSession) Period ¶
func (_Congress *CongressSession) Period() (*big.Int, error)
Period is a free data retrieval call binding the contract method 0xef78d4fd.
Solidity: function period() constant returns(uint256)
func (*CongressSession) QuitCongress ¶
func (_Congress *CongressSession) QuitCongress() (*types.Transaction, error)
QuitCongress is a paid mutator transaction binding the contract method 0x73a5c457.
Solidity: function quitCongress() returns()
func (*CongressSession) Refund ¶
func (_Congress *CongressSession) Refund(investor common.Address) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0xfa89401a.
Solidity: function refund(investor address) returns()
func (*CongressSession) RefundAll ¶
func (_Congress *CongressSession) RefundAll() (*types.Transaction, error)
RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.
Solidity: function refundAll() returns()
func (*CongressSession) SetCongressThreshold ¶
func (_Congress *CongressSession) SetCongressThreshold(threshold *big.Int) (*types.Transaction, error)
SetCongressThreshold is a paid mutator transaction binding the contract method 0x22ab6c3d.
Solidity: function setCongressThreshold(threshold uint256) returns()
func (*CongressSession) SetPeriod ¶
func (_Congress *CongressSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
SetPeriod is a paid mutator transaction binding the contract method 0x0f3a9f65.
Solidity: function setPeriod(_period uint256) returns()
func (*CongressSession) SetSupportedVersion ¶
func (_Congress *CongressSession) SetSupportedVersion(version *big.Int) (*types.Transaction, error)
SetSupportedVersion is a paid mutator transaction binding the contract method 0x5f86d4ca.
Solidity: function setSupportedVersion(version uint256) returns()
func (*CongressSession) SupportedVersion ¶
func (_Congress *CongressSession) SupportedVersion() (*big.Int, error)
SupportedVersion is a free data retrieval call binding the contract method 0xd5601e9f.
Solidity: function supportedVersion() constant returns(uint256)
type CongressTransactor ¶
type CongressTransactor struct {
// contains filtered or unexported fields
}
CongressTransactor is an auto generated write-only Go binding around an cpchain contract.
func NewCongressTransactor ¶
func NewCongressTransactor(address common.Address, transactor bind.ContractTransactor) (*CongressTransactor, error)
NewCongressTransactor creates a new write-only instance of Congress, bound to a specific deployed contract.
func (*CongressTransactor) DisableContract ¶
func (_Congress *CongressTransactor) DisableContract(opts *bind.TransactOpts) (*types.Transaction, error)
DisableContract is a paid mutator transaction binding the contract method 0x894ba833.
Solidity: function disableContract() returns()
func (*CongressTransactor) EnableContract ¶
func (_Congress *CongressTransactor) EnableContract(opts *bind.TransactOpts) (*types.Transaction, error)
EnableContract is a paid mutator transaction binding the contract method 0x367edd32.
Solidity: function enableContract() returns()
func (*CongressTransactor) JoinCongress ¶
func (_Congress *CongressTransactor) JoinCongress(opts *bind.TransactOpts, version *big.Int) (*types.Transaction, error)
JoinCongress is a paid mutator transaction binding the contract method 0x51f5f87a.
Solidity: function joinCongress(version uint256) returns()
func (*CongressTransactor) QuitCongress ¶
func (_Congress *CongressTransactor) QuitCongress(opts *bind.TransactOpts) (*types.Transaction, error)
QuitCongress is a paid mutator transaction binding the contract method 0x73a5c457.
Solidity: function quitCongress() returns()
func (*CongressTransactor) Refund ¶
func (_Congress *CongressTransactor) Refund(opts *bind.TransactOpts, investor common.Address) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0xfa89401a.
Solidity: function refund(investor address) returns()
func (*CongressTransactor) RefundAll ¶
func (_Congress *CongressTransactor) RefundAll(opts *bind.TransactOpts) (*types.Transaction, error)
RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.
Solidity: function refundAll() returns()
func (*CongressTransactor) SetCongressThreshold ¶
func (_Congress *CongressTransactor) SetCongressThreshold(opts *bind.TransactOpts, threshold *big.Int) (*types.Transaction, error)
SetCongressThreshold is a paid mutator transaction binding the contract method 0x22ab6c3d.
Solidity: function setCongressThreshold(threshold uint256) returns()
func (*CongressTransactor) SetPeriod ¶
func (_Congress *CongressTransactor) SetPeriod(opts *bind.TransactOpts, _period *big.Int) (*types.Transaction, error)
SetPeriod is a paid mutator transaction binding the contract method 0x0f3a9f65.
Solidity: function setPeriod(_period uint256) returns()
func (*CongressTransactor) SetSupportedVersion ¶
func (_Congress *CongressTransactor) SetSupportedVersion(opts *bind.TransactOpts, version *big.Int) (*types.Transaction, error)
SetSupportedVersion is a paid mutator transaction binding the contract method 0x5f86d4ca.
Solidity: function setSupportedVersion(version uint256) returns()
type CongressTransactorRaw ¶
type CongressTransactorRaw struct {
Contract *CongressTransactor // Generic write-only contract binding to access the raw methods on
}
CongressTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.
func (*CongressTransactorRaw) Transact ¶
func (_Congress *CongressTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CongressTransactorRaw) Transfer ¶
func (_Congress *CongressTransactorRaw) 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 CongressTransactorSession ¶
type CongressTransactorSession struct { Contract *CongressTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CongressTransactorSession is an auto generated write-only Go binding around an cpchain contract, with pre-set transact options.
func (*CongressTransactorSession) DisableContract ¶
func (_Congress *CongressTransactorSession) DisableContract() (*types.Transaction, error)
DisableContract is a paid mutator transaction binding the contract method 0x894ba833.
Solidity: function disableContract() returns()
func (*CongressTransactorSession) EnableContract ¶
func (_Congress *CongressTransactorSession) EnableContract() (*types.Transaction, error)
EnableContract is a paid mutator transaction binding the contract method 0x367edd32.
Solidity: function enableContract() returns()
func (*CongressTransactorSession) JoinCongress ¶
func (_Congress *CongressTransactorSession) JoinCongress(version *big.Int) (*types.Transaction, error)
JoinCongress is a paid mutator transaction binding the contract method 0x51f5f87a.
Solidity: function joinCongress(version uint256) returns()
func (*CongressTransactorSession) QuitCongress ¶
func (_Congress *CongressTransactorSession) QuitCongress() (*types.Transaction, error)
QuitCongress is a paid mutator transaction binding the contract method 0x73a5c457.
Solidity: function quitCongress() returns()
func (*CongressTransactorSession) Refund ¶
func (_Congress *CongressTransactorSession) Refund(investor common.Address) (*types.Transaction, error)
Refund is a paid mutator transaction binding the contract method 0xfa89401a.
Solidity: function refund(investor address) returns()
func (*CongressTransactorSession) RefundAll ¶
func (_Congress *CongressTransactorSession) RefundAll() (*types.Transaction, error)
RefundAll is a paid mutator transaction binding the contract method 0x38e771ab.
Solidity: function refundAll() returns()
func (*CongressTransactorSession) SetCongressThreshold ¶
func (_Congress *CongressTransactorSession) SetCongressThreshold(threshold *big.Int) (*types.Transaction, error)
SetCongressThreshold is a paid mutator transaction binding the contract method 0x22ab6c3d.
Solidity: function setCongressThreshold(threshold uint256) returns()
func (*CongressTransactorSession) SetPeriod ¶
func (_Congress *CongressTransactorSession) SetPeriod(_period *big.Int) (*types.Transaction, error)
SetPeriod is a paid mutator transaction binding the contract method 0x0f3a9f65.
Solidity: function setPeriod(_period uint256) returns()
func (*CongressTransactorSession) SetSupportedVersion ¶
func (_Congress *CongressTransactorSession) SetSupportedVersion(version *big.Int) (*types.Transaction, error)
SetSupportedVersion is a paid mutator transaction binding the contract method 0x5f86d4ca.
Solidity: function setSupportedVersion(version uint256) returns()
type SafeMath ¶
type SafeMath struct { SafeMathCaller // Read-only binding to the contract SafeMathTransactor // Write-only binding to the contract SafeMathFilterer // Log filterer for contract events }
SafeMath is an auto generated Go binding around an cpchain contract.
func DeploySafeMath ¶
func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error)
DeploySafeMath deploys a new cpchain contract, binding an instance of SafeMath to it.
func NewSafeMath ¶
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.
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 ¶
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.