Skip to content

Commit

Permalink
masternodes.h: Add exception block
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed Nov 23, 2022
1 parent ece1fc0 commit a2354e1
Showing 1 changed file with 35 additions and 91 deletions.
126 changes: 35 additions & 91 deletions src/masternodes/masternodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,98 +436,42 @@ class CCustomCSView : public CMasternodesView,
public CVaultView,
public CSettingsView,
public CPropsView {
void CheckPrefixes() {
CheckPrefix<CMasternodesView ::ID,
NewCollateral,
PendingHeight,
Operator,
Owner,
Staker,
SubNode,
Timelock,
CLastHeightView ::Height,
CTeamView ::AuthTeam,
ConfirmTeam,
CurrentTeam,
CFoundationsDebtView ::Debt,
CAnchorRewardsView ::BtcTx,
CTokensView ::ID,
Symbol,
CreationTx,
LastDctId,
CAccountsView ::ByBalanceKey,
ByHeightKey,
ByFuturesSwapKey,
CCommunityBalancesView ::ById,
CUndosView ::ByUndoKey,
CPoolPairView ::ByID,
ByPair,
ByShare,
ByIDPair,
ByPoolSwap,
ByReserves,
ByRewardPct,
ByRewardLoanPct,
ByPoolReward,
ByDailyReward,
ByCustomReward,
ByTotalLiquidity,
ByDailyLoanReward,
ByPoolLoanReward,
ByTokenDexFeePct,
CGovView ::ByName,
ByHeightVars,
CAnchorConfirmsView ::BtcTx,
COracleView ::ByName,
FixedIntervalBlockKey,
FixedIntervalPriceKey,
PriceDeviation,
CICXOrderView ::ICXOrderCreationTx,
ICXMakeOfferCreationTx,
ICXSubmitDFCHTLCCreationTx,
ICXSubmitEXTHTLCCreationTx,
ICXClaimDFCHTLCCreationTx,
ICXCloseOrderCreationTx,
ICXCloseOfferCreationTx,
ICXOrderOpenKey,
ICXOrderCloseKey,
ICXMakeOfferOpenKey,
ICXMakeOfferCloseKey,
ICXSubmitDFCHTLCOpenKey,
ICXSubmitDFCHTLCCloseKey,
ICXSubmitEXTHTLCOpenKey,
ICXSubmitEXTHTLCCloseKey,
ICXClaimDFCHTLCKey,
ICXOrderStatus,
ICXOfferStatus,
ICXSubmitDFCHTLCStatus,
ICXSubmitEXTHTLCStatus,
ICXVariables,
CLoanView ::LoanSetCollateralTokenCreationTx,
LoanSetCollateralTokenKey,
LoanSetLoanTokenCreationTx,
LoanSetLoanTokenKey,
LoanSchemeKey,
DefaultLoanSchemeKey,
DelayedLoanSchemeKey,
DestroyLoanSchemeKey,
LoanInterestByVault,
LoanTokenAmount,
LoanLiquidationPenalty,
LoanInterestV2ByVault,
LoanInterestV3ByVault,
CVaultView ::VaultKey,
OwnerVaultKey,
CollateralKey,
AuctionBatchKey,
AuctionHeightKey,
AuctionBidKey,
CSettingsView ::KVSettings,
CPropsView ::ByType,
ByCycle,
ByMnVote,
ByStatus>();

// clang-format off
void CheckPrefixes()
{
CheckPrefix<
CMasternodesView :: ID, NewCollateral, PendingHeight, Operator, Owner, Staker, SubNode, Timelock,
CLastHeightView :: Height,
CTeamView :: AuthTeam, ConfirmTeam, CurrentTeam,
CFoundationsDebtView :: Debt,
CAnchorRewardsView :: BtcTx,
CTokensView :: ID, Symbol, CreationTx, LastDctId,
CAccountsView :: ByBalanceKey, ByHeightKey, ByFuturesSwapKey,
CCommunityBalancesView :: ById,
CUndosView :: ByUndoKey,
CPoolPairView :: ByID, ByPair, ByShare, ByIDPair, ByPoolSwap, ByReserves, ByRewardPct, ByRewardLoanPct,
ByPoolReward, ByDailyReward, ByCustomReward, ByTotalLiquidity, ByDailyLoanReward,
ByPoolLoanReward, ByTokenDexFeePct,
CGovView :: ByName, ByHeightVars,
CAnchorConfirmsView :: BtcTx,
COracleView :: ByName, FixedIntervalBlockKey, FixedIntervalPriceKey, PriceDeviation,
CICXOrderView :: ICXOrderCreationTx, ICXMakeOfferCreationTx, ICXSubmitDFCHTLCCreationTx,
ICXSubmitEXTHTLCCreationTx, ICXClaimDFCHTLCCreationTx, ICXCloseOrderCreationTx,
ICXCloseOfferCreationTx, ICXOrderOpenKey, ICXOrderCloseKey, ICXMakeOfferOpenKey,
ICXMakeOfferCloseKey, ICXSubmitDFCHTLCOpenKey, ICXSubmitDFCHTLCCloseKey,
ICXSubmitEXTHTLCOpenKey, ICXSubmitEXTHTLCCloseKey, ICXClaimDFCHTLCKey,
ICXOrderStatus, ICXOfferStatus, ICXSubmitDFCHTLCStatus, ICXSubmitEXTHTLCStatus, ICXVariables,
CLoanView :: LoanSetCollateralTokenCreationTx, LoanSetCollateralTokenKey, LoanSetLoanTokenCreationTx,
LoanSetLoanTokenKey, LoanSchemeKey, DefaultLoanSchemeKey, DelayedLoanSchemeKey,
DestroyLoanSchemeKey, LoanInterestByVault, LoanTokenAmount, LoanLiquidationPenalty, LoanInterestV2ByVault,
LoanInterestV3ByVault,
CVaultView :: VaultKey, OwnerVaultKey, CollateralKey, AuctionBatchKey, AuctionHeightKey, AuctionBidKey,
CSettingsView :: KVSettings,
CPropsView :: ByType, ByCycle, ByMnVote, ByStatus
>();
}
// clang-format on

private:
Res PopulateLoansData(CCollateralLoans &result,
Expand Down

0 comments on commit a2354e1

Please sign in to comment.