#include <masternode-budget.h>
|
| | CBudgetProposal () |
| |
| | CBudgetProposal (const CBudgetProposal &other) |
| |
| | CBudgetProposal (std::string strProposalNameIn, std::string strURLIn, int nBlockStartIn, int nBlockEndIn, CScript addressIn, CAmount nAmountIn, uint256 nFeeTXHashIn) |
| |
| void | Calculate () |
| |
| bool | AddOrUpdateVote (CBudgetVote &vote, std::string &strError) |
| |
| bool | HasMinimumRequiredSupport () |
| |
| std::pair< std::string, std::string > | GetVotes () |
| |
| bool | IsValid (std::string &strError, bool fCheckCollateral=true) |
| |
| bool | IsEstablished () |
| |
| std::string | GetName () |
| |
| std::string | GetURL () |
| |
| int | GetBlockStart () |
| |
| int | GetBlockEnd () |
| |
| CScript | GetPayee () |
| |
| int | GetTotalPaymentCount () |
| |
| int | GetRemainingPaymentCount () |
| |
| int | GetBlockStartCycle () |
| |
| int | GetBlockCurrentCycle () |
| |
| int | GetBlockEndCycle () |
| |
| double | GetRatio () |
| |
| int | GetYeas () |
| |
| int | GetNays () |
| |
| int | GetAbstains () |
| |
| CAmount | GetAmount () |
| |
| void | SetAllotted (CAmount nAllotedIn) |
| |
| CAmount | GetAllotted () |
| |
| void | CleanAndRemove (bool fSignatureCheck) |
| |
| uint256 | GetHash () |
| |
| template<typename Stream , typename Operation > |
| void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
| |
Definition at line 451 of file masternode-budget.h.
◆ CBudgetProposal() [1/3]
| CBudgetProposal::CBudgetProposal |
( |
| ) |
|
◆ CBudgetProposal() [2/3]
◆ CBudgetProposal() [3/3]
| CBudgetProposal::CBudgetProposal |
( |
std::string |
strProposalNameIn, |
|
|
std::string |
strURLIn, |
|
|
int |
nBlockStartIn, |
|
|
int |
nBlockEndIn, |
|
|
CScript |
addressIn, |
|
|
CAmount |
nAmountIn, |
|
|
uint256 |
nFeeTXHashIn |
|
) |
| |
◆ AddOrUpdateVote()
| bool CBudgetProposal::AddOrUpdateVote |
( |
CBudgetVote & |
vote, |
|
|
std::string & |
strError |
|
) |
| |
◆ Calculate()
| void CBudgetProposal::Calculate |
( |
| ) |
|
◆ CleanAndRemove()
| void CBudgetProposal::CleanAndRemove |
( |
bool |
fSignatureCheck | ) |
|
◆ GetAbstains()
| int CBudgetProposal::GetAbstains |
( |
| ) |
|
◆ GetAllotted()
| CAmount CBudgetProposal::GetAllotted |
( |
| ) |
|
|
inline |
◆ GetAmount()
| CAmount CBudgetProposal::GetAmount |
( |
| ) |
|
|
inline |
◆ GetBlockCurrentCycle()
| int CBudgetProposal::GetBlockCurrentCycle |
( |
| ) |
|
◆ GetBlockEnd()
| int CBudgetProposal::GetBlockEnd |
( |
| ) |
|
|
inline |
◆ GetBlockEndCycle()
| int CBudgetProposal::GetBlockEndCycle |
( |
| ) |
|
◆ GetBlockStart()
| int CBudgetProposal::GetBlockStart |
( |
| ) |
|
|
inline |
◆ GetBlockStartCycle()
| int CBudgetProposal::GetBlockStartCycle |
( |
| ) |
|
◆ GetHash()
| uint256 CBudgetProposal::GetHash |
( |
| ) |
|
|
inline |
◆ GetName()
| std::string CBudgetProposal::GetName |
( |
| ) |
|
|
inline |
◆ GetNays()
| int CBudgetProposal::GetNays |
( |
| ) |
|
◆ GetPayee()
| CScript CBudgetProposal::GetPayee |
( |
| ) |
|
|
inline |
◆ GetRatio()
| double CBudgetProposal::GetRatio |
( |
| ) |
|
◆ GetRemainingPaymentCount()
| int CBudgetProposal::GetRemainingPaymentCount |
( |
| ) |
|
◆ GetTotalPaymentCount()
| int CBudgetProposal::GetTotalPaymentCount |
( |
| ) |
|
◆ GetURL()
| std::string CBudgetProposal::GetURL |
( |
| ) |
|
|
inline |
◆ GetVotes()
| std::pair<std::string, std::string> CBudgetProposal::GetVotes |
( |
| ) |
|
◆ GetYeas()
| int CBudgetProposal::GetYeas |
( |
| ) |
|
◆ HasMinimumRequiredSupport()
| bool CBudgetProposal::HasMinimumRequiredSupport |
( |
| ) |
|
◆ IsEstablished()
| bool CBudgetProposal::IsEstablished |
( |
| ) |
|
|
inline |
◆ IsValid()
| bool CBudgetProposal::IsValid |
( |
std::string & |
strError, |
|
|
bool |
fCheckCollateral = true |
|
) |
| |
- Todo:
- : We should keep track of the last time the proposal was valid, if it's invalid for 2 weeks, erase it
Definition at line 1409 of file masternode-budget.cpp.
◆ SerializationOp()
template<typename Stream , typename Operation >
| void CBudgetProposal::SerializationOp |
( |
Stream & |
s, |
|
|
Operation |
ser_action, |
|
|
int |
nType, |
|
|
int |
nVersion |
|
) |
| |
|
inline |
◆ SetAllotted()
| void CBudgetProposal::SetAllotted |
( |
CAmount |
nAllotedIn | ) |
|
|
inline |
◆ ADD_SERIALIZE_METHODS
| CBudgetProposal::ADD_SERIALIZE_METHODS |
◆ address
◆ cs
◆ fValid
| bool CBudgetProposal::fValid |
◆ mapVotes
◆ nAlloted
◆ nAmount
◆ nBlockEnd
| int CBudgetProposal::nBlockEnd |
◆ nBlockStart
| int CBudgetProposal::nBlockStart |
◆ nFeeTXHash
| uint256 CBudgetProposal::nFeeTXHash |
◆ nTime
| int64_t CBudgetProposal::nTime |
◆ strProposalName
| std::string CBudgetProposal::strProposalName |
◆ strURL
| std::string CBudgetProposal::strURL |
The documentation for this class was generated from the following files: