chore: No ALL_CAPS (#1760)

Fixes #1680
This commit is contained in:
Alex Kremer
2025-01-02 11:39:31 +00:00
committed by GitHub
parent efe5d08205
commit 820b32c6d7
361 changed files with 10061 additions and 9724 deletions

View File

@@ -46,37 +46,37 @@
* Create AccountID object with string
*/
[[nodiscard]] ripple::AccountID
GetAccountIDWithString(std::string_view id);
getAccountIdWithString(std::string_view id);
/**
* Create AccountID object with string and return its key
*/
[[nodiscard]] ripple::uint256
GetAccountKey(std::string_view id);
getAccountKey(std::string_view id);
/*
* Gets the account key from an account id
*/
[[nodiscard]] ripple::uint256
GetAccountKey(ripple::AccountID const& acc);
getAccountKey(ripple::AccountID const& acc);
/*
* Create a simple ledgerHeader object with only hash and seq
*/
[[nodiscard]] ripple::LedgerHeader
CreateLedgerHeader(std::string_view ledgerHash, ripple::LedgerIndex seq, std::optional<uint32_t> age = std::nullopt);
createLedgerHeader(std::string_view ledgerHash, ripple::LedgerIndex seq, std::optional<uint32_t> age = std::nullopt);
/*
* Create a simple ledgerHeader object with hash, seq and unix timestamp
*/
[[nodiscard]] ripple::LedgerHeader
CreateLedgerHeaderWithUnixTime(std::string_view ledgerHash, ripple::LedgerIndex seq, uint64_t closeTimeUnixStamp);
createLedgerHeaderWithUnixTime(std::string_view ledgerHash, ripple::LedgerIndex seq, uint64_t closeTimeUnixStamp);
/*
* Create a Legacy (pre XRPFees amendment) FeeSetting ledger object
*/
[[nodiscard]] ripple::STObject
CreateLegacyFeeSettingLedgerObject(
createLegacyFeeSettingLedgerObject(
uint64_t base,
uint32_t reserveInc,
uint32_t reserveBase,
@@ -88,7 +88,7 @@ CreateLegacyFeeSettingLedgerObject(
* Create a FeeSetting ledger object
*/
ripple::STObject
CreateFeeSettingLedgerObject(
createFeeSettingLedgerObject(
ripple::STAmount base,
ripple::STAmount reserveInc,
ripple::STAmount reserveBase,
@@ -99,7 +99,7 @@ CreateFeeSettingLedgerObject(
* Create a Legacy (pre XRPFees amendment) FeeSetting ledger object and return its blob
*/
[[nodiscard]] ripple::Blob
CreateLegacyFeeSettingBlob(
createLegacyFeeSettingBlob(
uint64_t base,
uint32_t reserveInc,
uint32_t reserveBase,
@@ -111,13 +111,13 @@ CreateLegacyFeeSettingBlob(
* Create a FeeSetting ledger object and return its blob
*/
ripple::Blob
CreateFeeSettingBlob(ripple::STAmount base, ripple::STAmount reserveInc, ripple::STAmount reserveBase, uint32_t flag);
createFeeSettingBlob(ripple::STAmount base, ripple::STAmount reserveInc, ripple::STAmount reserveBase, uint32_t flag);
/*
* Create a payment transaction object
*/
[[nodiscard]] ripple::STObject
CreatePaymentTransactionObject(
createPaymentTransactionObject(
std::string_view accountId1,
std::string_view accountId2,
int amount,
@@ -126,7 +126,7 @@ CreatePaymentTransactionObject(
);
[[nodiscard]] ripple::STObject
CreatePaymentTransactionMetaObject(
createPaymentTransactionMetaObject(
std::string_view accountId1,
std::string_view accountId2,
int finalBalance1,
@@ -138,7 +138,7 @@ CreatePaymentTransactionMetaObject(
* Create an account root ledger object
*/
[[nodiscard]] ripple::STObject
CreateAccountRootObject(
createAccountRootObject(
std::string_view accountId,
uint32_t flag,
uint32_t seq,
@@ -155,7 +155,7 @@ CreateAccountRootObject(
* If reverse is true, taker gets is XRP
*/
[[nodiscard]] ripple::STObject
CreateCreateOfferTransactionObject(
createCreateOfferTransactionObject(
std::string_view accountId,
int fee,
uint32_t seq,
@@ -170,13 +170,13 @@ CreateCreateOfferTransactionObject(
* Return an issue object with given currency and issue account
*/
[[nodiscard]] ripple::Issue
GetIssue(std::string_view currency, std::string_view issuerId);
getIssue(std::string_view currency, std::string_view issuerId);
/*
* Create a offer change meta data
*/
[[nodiscard]] ripple::STObject
CreateMetaDataForBookChange(
createMetaDataForBookChange(
std::string_view currency,
std::string_view issueId,
uint32_t transactionIndex,
@@ -192,7 +192,7 @@ CreateMetaDataForBookChange(
* If reverse is true, finalTakerPays is XRP
*/
[[nodiscard]] ripple::STObject
CreateMetaDataForCreateOffer(
createMetaDataForCreateOffer(
std::string_view currency,
std::string_view issueId,
uint32_t transactionIndex,
@@ -205,7 +205,7 @@ CreateMetaDataForCreateOffer(
* Meta data for removing a offer object
*/
[[nodiscard]] ripple::STObject
CreateMetaDataForCancelOffer(
createMetaDataForCancelOffer(
std::string_view currency,
std::string_view issueId,
uint32_t transactionIndex,
@@ -217,13 +217,13 @@ CreateMetaDataForCancelOffer(
* Create a owner dir ledger object
*/
[[nodiscard]] ripple::STObject
CreateOwnerDirLedgerObject(std::vector<ripple::uint256> indexes, std::string_view rootIndex);
createOwnerDirLedgerObject(std::vector<ripple::uint256> indexes, std::string_view rootIndex);
/*
* Create a payment channel ledger object
*/
[[nodiscard]] ripple::STObject
CreatePaymentChannelLedgerObject(
createPaymentChannelLedgerObject(
std::string_view accountId,
std::string_view destId,
int amount,
@@ -234,7 +234,7 @@ CreatePaymentChannelLedgerObject(
);
[[nodiscard]] ripple::STObject
CreateRippleStateLedgerObject(
createRippleStateLedgerObject(
std::string_view currency,
std::string_view issuerId,
int balance,
@@ -248,7 +248,7 @@ CreateRippleStateLedgerObject(
);
[[nodiscard]] ripple::STObject
CreateOfferLedgerObject(
createOfferLedgerObject(
std::string_view account,
int takerGets,
int takerPays,
@@ -260,26 +260,26 @@ CreateOfferLedgerObject(
);
[[nodiscard]] ripple::STObject
CreateTicketLedgerObject(std::string_view account, uint32_t sequence);
createTicketLedgerObject(std::string_view account, uint32_t sequence);
[[nodiscard]] ripple::STObject
CreateEscrowLedgerObject(std::string_view account, std::string_view dest);
createEscrowLedgerObject(std::string_view account, std::string_view dest);
[[nodiscard]] ripple::STObject
CreateCheckLedgerObject(std::string_view account, std::string_view dest);
createCheckLedgerObject(std::string_view account, std::string_view dest);
[[nodiscard]] ripple::STObject
CreateDepositPreauthLedgerObjectByAuth(std::string_view account, std::string_view auth);
createDepositPreauthLedgerObjectByAuth(std::string_view account, std::string_view auth);
[[nodiscard]] ripple::STObject
CreateDepositPreauthLedgerObjectByAuthCredentials(
createDepositPreauthLedgerObjectByAuthCredentials(
std::string_view account,
std::string_view issuer,
std::string_view credType
);
[[nodiscard]] data::NFT
CreateNFT(
createNft(
std::string_view tokenID,
std::string_view account,
ripple::LedgerIndex seq = 1234u,
@@ -288,22 +288,22 @@ CreateNFT(
);
[[nodiscard]] ripple::STObject
CreateNFTBuyOffer(std::string_view tokenID, std::string_view account);
createNftBuyOffer(std::string_view tokenID, std::string_view account);
[[nodiscard]] ripple::STObject
CreateNFTSellOffer(std::string_view tokenID, std::string_view account);
createNftSellOffer(std::string_view tokenID, std::string_view account);
[[nodiscard]] ripple::STObject
CreateSignerLists(std::vector<std::pair<std::string, uint32_t>> const& signers);
createSignerLists(std::vector<std::pair<std::string, uint32_t>> const& signers);
[[nodiscard]] ripple::STObject
CreateNFTTokenPage(
createNftTokenPage(
std::vector<std::pair<std::string, std::string>> const& tokens,
std::optional<ripple::uint256> previousPage
);
[[nodiscard]] data::TransactionAndMetadata
CreateMintNFTTxWithMetadata(
createMintNftTxWithMetadata(
std::string_view accountId,
uint32_t seq,
uint32_t fee,
@@ -312,10 +312,10 @@ CreateMintNFTTxWithMetadata(
);
[[nodiscard]] data::TransactionAndMetadata
CreateAcceptNFTOfferTxWithMetadata(std::string_view accountId, uint32_t seq, uint32_t fee, std::string_view nftId);
createAcceptNftOfferTxWithMetadata(std::string_view accountId, uint32_t seq, uint32_t fee, std::string_view nftId);
[[nodiscard]] data::TransactionAndMetadata
CreateCancelNFTOffersTxWithMetadata(
createCancelNftOffersTxWithMetadata(
std::string_view accountId,
uint32_t seq,
uint32_t fee,
@@ -323,10 +323,10 @@ CreateCancelNFTOffersTxWithMetadata(
);
[[nodiscard]] data::TransactionAndMetadata
CreateCreateNFTOfferTxWithMetadata(std::string_view accountId, uint32_t seq, uint32_t fee, std::string_view offerId);
createCreateNftOfferTxWithMetadata(std::string_view accountId, uint32_t seq, uint32_t fee, std::string_view offerId);
[[nodiscard]] data::TransactionAndMetadata
CreateCreateNFTOfferTxWithMetadata(
createCreateNftOfferTxWithMetadata(
std::string_view accountId,
uint32_t seq,
uint32_t fee,
@@ -336,13 +336,13 @@ CreateCreateNFTOfferTxWithMetadata(
);
[[nodiscard]] ripple::STObject
CreateAmendmentsObject(std::vector<ripple::uint256> const& enabledAmendments);
createAmendmentsObject(std::vector<ripple::uint256> const& enabledAmendments);
[[nodiscard]] ripple::STObject
CreateBrokenAmendmentsObject();
createBrokenAmendmentsObject();
[[nodiscard]] ripple::STObject
CreateAMMObject(
createAmmObject(
std::string_view accountId,
std::string_view assetCurrency,
std::string_view assetIssuer,
@@ -355,7 +355,7 @@ CreateAMMObject(
);
[[nodiscard]] ripple::STObject
CreateBridgeObject(
createBridgeObject(
std::string_view accountId,
std::string_view lockingDoor,
std::string_view issuingDoor,
@@ -364,7 +364,7 @@ CreateBridgeObject(
);
[[nodiscard]] ripple::STObject
CreateChainOwnedClaimIDObject(
createChainOwnedClaimIdObject(
std::string_view accountId,
std::string_view lockingDoor,
std::string_view issuingDoor,
@@ -374,7 +374,7 @@ CreateChainOwnedClaimIDObject(
);
[[nodiscard]] ripple::STObject
CreateChainOwnedCreateAccountClaimID(
createChainOwnedCreateAccountClaimId(
std::string_view accountId,
std::string_view lockingDoor,
std::string_view issuingDoor,
@@ -383,10 +383,10 @@ CreateChainOwnedCreateAccountClaimID(
);
void
AMMAddVoteSlot(ripple::STObject& amm, ripple::AccountID const& accountId, uint16_t tradingFee, uint32_t voteWeight);
ammAddVoteSlot(ripple::STObject& amm, ripple::AccountID const& accountId, uint16_t tradingFee, uint32_t voteWeight);
void
AMMSetAuctionSlot(
ammSetAuctionSlot(
ripple::STObject& amm,
ripple::AccountID const& accountId,
ripple::STAmount price,
@@ -396,19 +396,19 @@ AMMSetAuctionSlot(
);
[[nodiscard]] ripple::STObject
CreateDidObject(std::string_view accountId, std::string_view didDoc, std::string_view uri, std::string_view data);
createDidObject(std::string_view accountId, std::string_view didDoc, std::string_view uri, std::string_view data);
[[nodiscard]] ripple::Currency
CreateLPTCurrency(std::string_view assetCurrency, std::string_view asset2Currency);
createLptCurrency(std::string_view assetCurrency, std::string_view asset2Currency);
[[nodiscard]] ripple::STObject
CreateMPTIssuanceObject(std::string_view accountId, std::uint32_t seq, std::string_view metadata);
createMptIssuanceObject(std::string_view accountId, std::uint32_t seq, std::string_view metadata);
[[nodiscard]] ripple::STObject
CreateMPTokenObject(std::string_view accountId, ripple::uint192 issuanceID, std::uint64_t mptAmount = 1);
createMpTokenObject(std::string_view accountId, ripple::uint192 issuanceID, std::uint64_t mptAmount = 1);
[[nodiscard]] ripple::STObject
CreateOraclePriceData(
createOraclePriceData(
uint64_t assetPrice,
ripple::Currency baseAssetCurrency,
ripple::Currency quoteAssetCurrency,
@@ -416,10 +416,10 @@ CreateOraclePriceData(
);
[[nodiscard]] ripple::STArray
CreatePriceDataSeries(std::vector<ripple::STObject> const& series);
createPriceDataSeries(std::vector<ripple::STObject> const& series);
[[nodiscard]] ripple::STObject
CreateOracleObject(
createOracleObject(
std::string_view accountId,
std::string_view provider,
uint64_t ownerNode,
@@ -432,7 +432,7 @@ CreateOracleObject(
);
[[nodiscard]] data::TransactionAndMetadata
CreateOracleSetTxWithMetadata(
createOracleSetTxWithMetadata(
std::string_view accountId,
uint32_t seq,
uint32_t fee,
@@ -445,7 +445,7 @@ CreateOracleSetTxWithMetadata(
);
[[nodiscard]] ripple::STObject
CreateCredentialObject(
createCredentialObject(
std::string_view acc1,
std::string_view acc2,
std::string_view credType,
@@ -454,4 +454,4 @@ CreateCredentialObject(
);
[[nodiscard]] ripple::STArray
CreateAuthCredentialArray(std::vector<std::string_view> issuer, std::vector<std::string_view> credType);
createAuthCredentialArray(std::vector<std::string_view> issuer, std::vector<std::string_view> credType);