![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include <governancemodel.h>
Public Types | |
| enum | Status { WAITING_FOR_APPROVAL , PASSING , PASSING_NOT_FUNDED , NOT_PASSING , FINISHED } |
Public Member Functions | |
| ProposalInfo () | |
| ProposalInfo (const uint256 &_id, std::string _name, std::string _url, int _votesYes, int _votesNo, std::string _recipientAdd, CAmount _amount, int _totalPayments, int _remainingPayments, Status _status, int _startBlock, int _endBlock) | |
| bool | operator== (const ProposalInfo &prop2) const |
| bool | isFinished () const |
| std::string | statusToStr () const |
Public Attributes | |
| uint256 | id |
| Proposal hash. More... | |
| std::string | name |
| std::string | url |
| int | votesYes {0} |
| int | votesNo {0} |
| std::string | recipientAdd |
| Payment script destination. More... | |
| CAmount | amount {0} |
| Amount of PIV paid per month. More... | |
| int | totalPayments {0} |
| Amount of times that the proposal will be paid. More... | |
| int | remainingPayments {0} |
| Amount of times that the proposal was paid already. More... | |
| Status | status {WAITING_FOR_APPROVAL} |
| Proposal state. More... | |
| int | startBlock {0} |
| Start superblock height. More... | |
| int | endBlock {0} |
| End superblock height. More... | |
Definition at line 19 of file governancemodel.h.
| enum ProposalInfo::Status |
| Enumerator | |
|---|---|
| WAITING_FOR_APPROVAL | |
| PASSING | |
| PASSING_NOT_FUNDED | |
| NOT_PASSING | |
| FINISHED | |
Definition at line 21 of file governancemodel.h.
|
inline |
Definition at line 50 of file governancemodel.h.
|
inlineexplicit |
Definition at line 51 of file governancemodel.h.
|
inline |
|
inline |
Definition at line 60 of file governancemodel.h.
| std::string ProposalInfo::statusToStr | ( | ) | const |
Definition at line 22 of file governancemodel.cpp.
| CAmount ProposalInfo::amount {0} |
Amount of PIV paid per month.
Definition at line 38 of file governancemodel.h.
| int ProposalInfo::endBlock {0} |
End superblock height.
Definition at line 48 of file governancemodel.h.
| uint256 ProposalInfo::id |
Proposal hash.
Definition at line 30 of file governancemodel.h.
| std::string ProposalInfo::name |
Definition at line 31 of file governancemodel.h.
| std::string ProposalInfo::recipientAdd |
Payment script destination.
Definition at line 36 of file governancemodel.h.
| int ProposalInfo::remainingPayments {0} |
Amount of times that the proposal was paid already.
Definition at line 42 of file governancemodel.h.
| int ProposalInfo::startBlock {0} |
Start superblock height.
Definition at line 46 of file governancemodel.h.
| Status ProposalInfo::status {WAITING_FOR_APPROVAL} |
Proposal state.
Definition at line 44 of file governancemodel.h.
| int ProposalInfo::totalPayments {0} |
Amount of times that the proposal will be paid.
Definition at line 40 of file governancemodel.h.
| std::string ProposalInfo::url |
Definition at line 32 of file governancemodel.h.
| int ProposalInfo::votesNo {0} |
Definition at line 34 of file governancemodel.h.
| int ProposalInfo::votesYes {0} |
Definition at line 33 of file governancemodel.h.