#include <budgetproposal.h>
|
| | CBudgetProposal () |
| |
| | CBudgetProposal (const std::string &name, const std::string &url, int paycount, const CScript &payee, const CAmount &amount, int blockstart, const uint256 &nfeetxhash) |
| |
| bool | AddOrUpdateVote (const CBudgetVote &vote, std::string &strError) |
| |
| UniValue | GetVotesArray () const |
| |
| void | SetSynced (bool synced) |
| |
| void | SyncVotes (CNode *pfrom, bool fPartial, int &nInvCount) const |
| |
| bool | UpdateValid (int nHeight, int mnCount) |
| |
| bool | IsWellFormed (const CAmount &nTotalBudget) |
| |
| bool | IsValid () const |
| |
| void | SetStrInvalid (const std::string &_strInvalid) |
| |
| std::string | IsInvalidReason () const |
| |
| std::string | IsInvalidLogStr () const |
| |
| bool | IsEstablished () const |
| |
| bool | IsPassing (int nBlockStartBudget, int nBlockEndBudget, int mnCount) const |
| |
| bool | IsExpired (int nCurrentHeight) const |
| |
| std::string | GetName () const |
| |
| std::string | GetURL () const |
| |
| int | GetBlockStart () const |
| |
| int | GetBlockEnd () const |
| |
| CScript | GetPayee () const |
| |
| int | GetTotalPaymentCount () const |
| |
| int | GetRemainingPaymentCount (int nCurrentHeight) const |
| |
| int | GetBlockStartCycle () const |
| |
| int | GetBlockEndCycle () const |
| |
| const uint256 & | GetFeeTXHash () const |
| |
| double | GetRatio () const |
| |
| int | GetVoteCount (CBudgetVote::VoteDirection vd) const |
| |
| std::map< COutPoint, CBudgetVote > | GetVotes () const |
| |
| int | GetYeas () const |
| |
| int | GetNays () const |
| |
| int | GetAbstains () const |
| |
| CAmount | GetAmount () const |
| |
| void | SetAllotted (CAmount nAllottedIn) |
| |
| CAmount | GetAllotted () const |
| |
| void | SetFeeTxHash (const uint256 &txid) |
| |
| uint256 | GetHash () const |
| |
| | SERIALIZE_METHODS (CBudgetProposal, obj) |
| |
| bool | ParseBroadcast (CDataStream &broadcast) |
| |
| CDataStream | GetBroadcast () const |
| |
| void | Relay () |
| |
| bool | operator== (const CBudgetProposal &other) const |
| |
| bool | operator> (const CBudgetProposal &other) const |
| |
Definition at line 31 of file budgetproposal.h.
◆ CBudgetProposal() [1/2]
| CBudgetProposal::CBudgetProposal |
( |
| ) |
|
◆ CBudgetProposal() [2/2]
| CBudgetProposal::CBudgetProposal |
( |
const std::string & |
name, |
|
|
const std::string & |
url, |
|
|
int |
paycount, |
|
|
const CScript & |
payee, |
|
|
const CAmount & |
amount, |
|
|
int |
blockstart, |
|
|
const uint256 & |
nfeetxhash |
|
) |
| |
◆ AddOrUpdateVote()
| bool CBudgetProposal::AddOrUpdateVote |
( |
const CBudgetVote & |
vote, |
|
|
std::string & |
strError |
|
) |
| |
◆ CheckAddress()
| bool CBudgetProposal::CheckAddress |
( |
| ) |
|
|
private |
◆ CheckAmount()
| bool CBudgetProposal::CheckAmount |
( |
const CAmount & |
nTotalBudget | ) |
|
|
private |
◆ CheckStartEnd()
| bool CBudgetProposal::CheckStartEnd |
( |
| ) |
|
|
private |
◆ CheckStrings()
| bool CBudgetProposal::CheckStrings |
( |
| ) |
|
|
private |
◆ GetAbstains()
| int CBudgetProposal::GetAbstains |
( |
| ) |
const |
|
inline |
◆ GetAllotted()
| CAmount CBudgetProposal::GetAllotted |
( |
| ) |
const |
|
inline |
◆ GetAmount()
| CAmount CBudgetProposal::GetAmount |
( |
| ) |
const |
|
inline |
◆ GetBlockCycle()
| int CBudgetProposal::GetBlockCycle |
( |
int |
nCurrentHeight | ) |
|
|
static |
◆ GetBlockEnd()
| int CBudgetProposal::GetBlockEnd |
( |
| ) |
const |
|
inline |
◆ GetBlockEndCycle()
| int CBudgetProposal::GetBlockEndCycle |
( |
| ) |
const |
◆ GetBlockStart()
| int CBudgetProposal::GetBlockStart |
( |
| ) |
const |
|
inline |
◆ GetBlockStartCycle()
| int CBudgetProposal::GetBlockStartCycle |
( |
| ) |
const |
◆ GetBroadcast()
◆ GetFeeTXHash()
| const uint256& CBudgetProposal::GetFeeTXHash |
( |
| ) |
const |
|
inline |
◆ GetHash()
| uint256 CBudgetProposal::GetHash |
( |
| ) |
const |
|
inline |
◆ GetName()
| std::string CBudgetProposal::GetName |
( |
| ) |
const |
|
inline |
◆ GetNays()
| int CBudgetProposal::GetNays |
( |
| ) |
const |
|
inline |
◆ GetPayee()
| CScript CBudgetProposal::GetPayee |
( |
| ) |
const |
|
inline |
◆ GetRatio()
| double CBudgetProposal::GetRatio |
( |
| ) |
const |
◆ GetRemainingPaymentCount()
| int CBudgetProposal::GetRemainingPaymentCount |
( |
int |
nCurrentHeight | ) |
const |
◆ GetTotalPaymentCount()
| int CBudgetProposal::GetTotalPaymentCount |
( |
| ) |
const |
◆ GetURL()
| std::string CBudgetProposal::GetURL |
( |
| ) |
const |
|
inline |
◆ GetVoteCount()
◆ GetVotes()
◆ GetVotesArray()
| UniValue CBudgetProposal::GetVotesArray |
( |
| ) |
const |
◆ GetYeas()
| int CBudgetProposal::GetYeas |
( |
| ) |
const |
|
inline |
◆ IsEstablished()
| bool CBudgetProposal::IsEstablished |
( |
| ) |
const |
◆ IsExpired()
| bool CBudgetProposal::IsExpired |
( |
int |
nCurrentHeight | ) |
const |
◆ IsHeavilyDownvoted()
| bool CBudgetProposal::IsHeavilyDownvoted |
( |
int |
mnCount | ) |
|
|
private |
◆ IsInvalidLogStr()
| std::string CBudgetProposal::IsInvalidLogStr |
( |
| ) |
const |
|
inline |
◆ IsInvalidReason()
| std::string CBudgetProposal::IsInvalidReason |
( |
| ) |
const |
|
inline |
◆ IsPassing()
| bool CBudgetProposal::IsPassing |
( |
int |
nBlockStartBudget, |
|
|
int |
nBlockEndBudget, |
|
|
int |
mnCount |
|
) |
| const |
◆ IsValid()
| bool CBudgetProposal::IsValid |
( |
| ) |
const |
|
inline |
◆ IsWellFormed()
| bool CBudgetProposal::IsWellFormed |
( |
const CAmount & |
nTotalBudget | ) |
|
◆ operator==()
◆ operator>()
◆ ParseBroadcast()
| bool CBudgetProposal::ParseBroadcast |
( |
CDataStream & |
broadcast | ) |
|
◆ PtrHigherYes()
◆ Relay()
| void CBudgetProposal::Relay |
( |
| ) |
|
◆ SERIALIZE_METHODS()
◆ SetAllotted()
| void CBudgetProposal::SetAllotted |
( |
CAmount |
nAllottedIn | ) |
|
|
inline |
◆ SetFeeTxHash()
| void CBudgetProposal::SetFeeTxHash |
( |
const uint256 & |
txid | ) |
|
|
inline |
◆ SetStrInvalid()
| void CBudgetProposal::SetStrInvalid |
( |
const std::string & |
_strInvalid | ) |
|
|
inline |
◆ SetSynced()
| void CBudgetProposal::SetSynced |
( |
bool |
synced | ) |
|
◆ SyncVotes()
| void CBudgetProposal::SyncVotes |
( |
CNode * |
pfrom, |
|
|
bool |
fPartial, |
|
|
int & |
nInvCount |
|
) |
| const |
◆ updateExpired()
| bool CBudgetProposal::updateExpired |
( |
int |
nCurrentHeight | ) |
|
|
private |
◆ UpdateValid()
| bool CBudgetProposal::UpdateValid |
( |
int |
nHeight, |
|
|
int |
mnCount |
|
) |
| |
◆ CBudgetManager
◆ address
◆ fValid
| bool CBudgetProposal::fValid |
|
private |
◆ mapVotes
◆ nAllotted
◆ nAmount
◆ nBlockEnd
| int CBudgetProposal::nBlockEnd |
|
protected |
◆ nBlockStart
| int CBudgetProposal::nBlockStart |
|
protected |
◆ nFeeTXHash
| uint256 CBudgetProposal::nFeeTXHash |
|
protected |
◆ nTime
| int64_t CBudgetProposal::nTime |
◆ strInvalid
| std::string CBudgetProposal::strInvalid |
|
private |
◆ strProposalName
| std::string CBudgetProposal::strProposalName |
|
protected |
◆ strURL
| std::string CBudgetProposal::strURL |
|
protected |
The documentation for this class was generated from the following files: