#include <governancemodel.h>
Definition at line 89 of file governancemodel.h.
◆ GovernanceModel()
◆ ~GovernanceModel()
| GovernanceModel::~GovernanceModel |
( |
| ) |
|
|
override |
◆ buildProposalInfo()
◆ createProposal()
| OperationResult GovernanceModel::createProposal |
( |
const std::string & |
strProposalName, |
|
|
const std::string & |
strURL, |
|
|
int |
nPaymentCount, |
|
|
CAmount |
nAmount, |
|
|
const std::string & |
strPaymentAddr |
|
) |
| |
◆ getBudgetAllocatedAmount()
| CAmount GovernanceModel::getBudgetAllocatedAmount |
( |
| ) |
const |
|
inline |
◆ getBudgetAvailableAmount()
| CAmount GovernanceModel::getBudgetAvailableAmount |
( |
| ) |
const |
|
inline |
◆ getLocalMNsVotesForProposal()
| std::vector< VoteInfo > GovernanceModel::getLocalMNsVotesForProposal |
( |
const ProposalInfo & |
propInfo | ) |
|
◆ getMaxAvailableBudgetAmount()
| CAmount GovernanceModel::getMaxAvailableBudgetAmount |
( |
| ) |
const |
◆ getNextSuperblockHeight()
| int GovernanceModel::getNextSuperblockHeight |
( |
| ) |
const |
◆ getNumBlocksPerBudgetCycle()
| int GovernanceModel::getNumBlocksPerBudgetCycle |
( |
| ) |
const |
◆ getPropMaxPaymentsCount()
| int GovernanceModel::getPropMaxPaymentsCount |
( |
| ) |
const |
◆ getProposalFeeAmount()
| CAmount GovernanceModel::getProposalFeeAmount |
( |
| ) |
const |
◆ getProposals()
◆ getProposalVoteUpdateMinTime()
| int GovernanceModel::getProposalVoteUpdateMinTime |
( |
| ) |
const |
◆ hasProposals()
| bool GovernanceModel::hasProposals |
( |
| ) |
|
◆ isRefreshNeeded()
| bool GovernanceModel::isRefreshNeeded |
( |
| ) |
|
|
inline |
◆ isTierTwoSync()
| bool GovernanceModel::isTierTwoSync |
( |
| ) |
|
◆ pollGovernanceChanged
| void GovernanceModel::pollGovernanceChanged |
( |
| ) |
|
|
slot |
◆ scheduleBroadcast()
| void GovernanceModel::scheduleBroadcast |
( |
const CBudgetProposal & |
proposal | ) |
|
|
private |
◆ setWalletModel()
| void GovernanceModel::setWalletModel |
( |
WalletModel * |
_walletModel | ) |
|
◆ stop()
| void GovernanceModel::stop |
( |
| ) |
|
◆ txLoaded
| void GovernanceModel::txLoaded |
( |
const QString & |
hash, |
|
|
const int |
txType, |
|
|
const int |
txStatus |
|
) |
| |
|
slot |
◆ validatePropAmount()
◆ validatePropName()
| OperationResult GovernanceModel::validatePropName |
( |
const QString & |
name | ) |
const |
◆ validatePropPaymentCount()
| OperationResult GovernanceModel::validatePropPaymentCount |
( |
int |
paymentCount | ) |
const |
◆ validatePropURL()
| OperationResult GovernanceModel::validatePropURL |
( |
const QString & |
url | ) |
const |
◆ voteForProposal()
| OperationResult GovernanceModel::voteForProposal |
( |
const ProposalInfo & |
prop, |
|
|
bool |
isVotePositive, |
|
|
const std::vector< std::string > & |
mnVotingAlias |
|
) |
| |
◆ allocatedAmount
| CAmount GovernanceModel::allocatedAmount {0} |
|
private |
◆ clientModel
◆ mnModel
| MNModel* GovernanceModel::mnModel {nullptr} |
|
private |
◆ pollTimer
| QTimer* GovernanceModel::pollTimer {nullptr} |
|
private |
◆ refreshNeeded
| std::atomic<bool> GovernanceModel::refreshNeeded {false} |
|
private |
◆ waitingPropsForConfirmations
◆ walletModel
The documentation for this class was generated from the following files: