|
rippled
|
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm. More...
Namespaces | |
| namespace | Attestations |
| namespace | b58_ref |
| namespace | base64 |
| namespace | BuildInfo |
| Versioning information for this build. | |
| namespace | compression |
| namespace | compression_algorithms |
| namespace | CrawlOptions |
| namespace | credentials |
| namespace | cryptoconditions |
| namespace | detail |
| namespace | InnerObjectFormatsUnitTestDetail |
| namespace | intr_ptr |
| namespace | jss |
| namespace | keylet |
| Keylet computation funclets. | |
| namespace | ledger_trie_detail |
| namespace | LedgerEntryHelpers |
| namespace | LedgerReplayParameters |
| namespace | metrics |
| namespace | nft |
| namespace | NodeStore |
| namespace | openssl |
| namespace | path |
| namespace | PeerFinder |
| namespace | perf |
| Dummy class for unit tests. | |
| namespace | permissioned_dex |
| namespace | reduce_relay |
| namespace | Resource |
| namespace | RPC |
| API version numbers used in later API versions. | |
| namespace | RPCCall |
| Processes Ripple RPC calls. | |
| namespace | STParsedJSONDetail |
| namespace | test |
| namespace | tests |
| namespace | Tuning |
| namespace | unit |
| namespace | unl |
| namespace | util |
Classes | |
| class | AbstractFetchPackContainer |
| An interface facilitating retrieval of fetch packs without an application or ledgermaster object. More... | |
| class | AcceptedLedger |
| A ledger that has become irrevocable. More... | |
| class | AcceptedLedgerTx |
| A transaction that is in a closed ledger. More... | |
| class | AccountCurrencies_test |
| class | AccountRootsDeletedClean |
| Invariant: a deleted account must not have any objects left. More... | |
| class | AccountRootsNotDeleted |
| Invariant: we cannot remove an account ledger entry. More... | |
| class | AccountSet_test |
| class | AccountStateSF |
| class | AccountTxPaging_test |
| class | AmendmentBlocked_test |
| class | AmendmentSet |
| The status of all amendments requested in a given window. More... | |
| struct | AmendmentState |
| Current state of an amendment. More... | |
| class | AmendmentTable |
| The amendment table stores the list of enabled and potential amendments. More... | |
| class | AmendmentTable_test |
| class | AmendmentTableImpl |
| Track the list of "amendments". More... | |
| class | AMMBid |
| AMMBid implements AMM bid Transactor. More... | |
| class | AMMClawback |
| class | AMMContext |
| Maintains AMM info per overall payment engine execution and individual iteration. More... | |
| class | AMMCreate |
| AMMCreate implements Automatic Market Maker(AMM) creation Transactor. More... | |
| class | AMMDelete |
| AMMDelete implements AMM delete transactor. More... | |
| class | AMMDeposit |
| AMMDeposit implements AMM deposit Transactor. More... | |
| class | AMMLiquidity |
| AMMLiquidity class provides AMM offers to BookStep class. More... | |
| class | AMMOffer |
| Represents synthetic AMM offer in BookStep. More... | |
| class | AMMVote |
| AMMVote implements AMM vote Transactor. More... | |
| class | AMMWithdraw |
| struct | AmountSpec |
| class | Application |
| class | ApplicationImp |
| class | Apply_test |
| class | ApplyContext |
| State information when applying a tx. More... | |
| struct | ApplyResult |
| class | ApplyView |
| Writeable view to a ledger, for applying a transaction. More... | |
| class | ApplyViewImpl |
| Editable, discardable view that can build metadata for one tx. More... | |
| class | Asset |
| class | AsyncObject |
| Mix-in to track when all pending I/O is complete. More... | |
| struct | bad_expected_access |
| Expected is an approximation of std::expected (hoped for in C++23) More... | |
| class | base_uint |
| Integers of any length that is a multiple of 32-bits. More... | |
| class | BaseHTTPPeer |
| Represents an active connection. More... | |
| class | BasePeer |
| class | BaseWSPeer |
| Represents an active WebSocket connection. More... | |
| class | basic_semaphore |
| class | BasicConfig |
| Holds unparsed configuration information. More... | |
| class | Batch |
| struct | batch_view_t |
| Batch view construction tag. More... | |
| class | Book |
| Specifies an order book. More... | |
| class | BookDirs |
| class | BookListeners |
| Listen to public/subscribe messages from a book. More... | |
| class | BookOfferCrossingStep |
| class | BookPaymentStep |
| class | BookStep |
| class | BookTip |
| Iterates and consumes raw offers in an order book. More... | |
| class | BridgeModify |
| class | Buffer |
| Like std::vector<char> but better. More... | |
| class | BuildInfo_test |
| class | CachedView |
| Wraps a DigestAwareReadView to provide caching. More... | |
| class | CancelCheck |
| class | CancelOffer |
| class | CanCvtToNotTEC |
| class | CanCvtToNotTEC< TEFcodes > |
| class | CanCvtToNotTEC< TELcodes > |
| class | CanCvtToNotTEC< TEMcodes > |
| class | CanCvtToNotTEC< TERcodes > |
| class | CanCvtToNotTEC< TEScodes > |
| class | CanCvtToTER |
| class | CanCvtToTER< NotTEC > |
| class | CanCvtToTER< TECcodes > |
| class | CanCvtToTER< TEFcodes > |
| class | CanCvtToTER< TELcodes > |
| class | CanCvtToTER< TEMcodes > |
| class | CanCvtToTER< TERcodes > |
| class | CanCvtToTER< TEScodes > |
| class | CanonicalTXSet |
| Holds transactions which were deferred to the next pass of consensus. More... | |
| class | CashCheck |
| class | Change |
| class | Check_test |
| class | Checkpointer |
| class | CheckpointersCollection |
| class | Clawback |
| class | Clawback_test |
| class | ClosureCounter |
The role of a ClosureCounter is to assist in shutdown by letting callers wait for the completion of closures (of a specific type signature) that they previously registered. More... | |
| class | Cluster |
| class | ClusterNode |
| class | CollectionAndDelimiter |
| class | CollectionAndDelimiter< char[N]> |
| class | CollectionAndDelimiter< Collection[N]> |
| class | CollectorManager |
| Provides the beast::insight::Collector service. More... | |
| class | CollectorManagerImp |
| class | Config |
| class | Config_test |
| struct | ConfigSection |
| class | Connect_test |
| class | ConnectAttempt |
| Manages outbound peer connection attempts with comprehensive timeout handling. More... | |
| class | Consensus |
| Generic implementation of consensus algorithm. More... | |
| struct | ConsensusCloseTimes |
| Stores the set of initial close times. More... | |
| struct | ConsensusParms |
| Consensus algorithm parameters. More... | |
| class | ConsensusProposal |
| Represents a proposed position taken during a round of consensus. More... | |
| struct | ConsensusResult |
| Encapsulates the result of consensus. More... | |
| class | ConsensusTimer |
| Measures the duration of phases of consensus. More... | |
| class | ConsensusTransSetSF |
| struct | Coro_create_t |
| class | CountedObject |
| Tracks the number of instances of an object. More... | |
| class | CountedObjects |
| Manages all counted object types. More... | |
| struct | create_genesis_t |
| class | CreateCheck |
| class | CreateOffer |
| Transactor specialized for creating offers in the ledger. More... | |
| class | CreateTicket |
| class | CredentialAccept |
| class | CredentialCreate |
| class | CredentialDelete |
| class | csprng_engine |
| A cryptographically secure random number engine. More... | |
| class | CurrentTransactionRulesGuard |
| RAII class to set and restore the current transaction rules. More... | |
| class | DatabaseCon |
| class | DBConfig |
| DBConfig is used when a client wants to delay opening a soci::session after parsing the config parameters. More... | |
| class | DebugSink |
| class | DecayingSample |
| Sampling function using exponential decay to provide a continuous value. More... | |
| class | DecayWindow |
| Sampling function using exponential decay to provide a continuous value. More... | |
| class | DelegateSet |
| class | DeleteAccount |
| class | DeleteOracle |
| Price Oracle is a system that acts as a bridge between a blockchain network and the external world, providing off-chain price data to decentralized applications (dApps) on the blockchain. More... | |
| class | DepositPreauth |
| class | DIDDelete |
| class | DIDSet |
| class | DigestAwareReadView |
| ReadView that associates keys with digests. More... | |
| class | Dir |
| A class that simplifies iterating ledger directory pages. More... | |
| class | DirectIOfferCrossingStep |
| class | DirectIPaymentStep |
| class | DirectStepI |
| class | Discrepancy_test |
| class | DisputedTx |
| A transaction discovered to be in dispute during consensus. More... | |
| class | Door |
| A listening socket. More... | |
| class | DummyPeerSet |
| struct | DynamicCastTagSharedIntrusive |
| Tag to create an intrusive pointer from another intrusive pointer by using a dynamic cast. More... | |
| struct | EitherAmount |
| struct | equal_to |
| class | EscrowCancel |
| class | EscrowCreate |
| class | EscrowFinish |
| class | Expected |
| class | Expected< void, E > |
| class | Family |
| class | Feature_test |
| class | FeatureBitset |
| struct | Fees |
| Reflects the fee settings for a particular ledger. More... | |
| struct | FeeSetup |
| Fee schedule for startup / standalone, and to vote for. More... | |
| class | FeeVote |
| Manager to process fee votes. More... | |
| class | FeeVoteImpl |
| class | FileUtilities_test |
| class | FixNFTokenPageLinks_test |
| class | FlowOfferStream |
| Presents and consumes the offers in an order book. More... | |
| class | Freeze_test |
| class | GetCounts_test |
| class | GRPCServer |
| class | GRPCServerImpl |
| struct | Handoff |
| Used to indicate the result of a server connection handoff. More... | |
| class | hardened_hash |
| Seed functor once per construction. More... | |
| class | hardened_hash_test |
| class | HashRouter |
| Routing table for objects identified by hash. More... | |
| class | Hooks_test |
| class | HTTPClient |
| Provides an asynchronous HTTP client implementation with optional SSL. More... | |
| class | HTTPClientImp |
| class | HTTPClientSSLContext |
| class | InboundLedger |
| class | InboundLedgers |
| Manages the lifetime of inbound ledgers. More... | |
| class | InboundLedgersImp |
| class | InboundTransactions |
| Manages the acquisition and lifetime of transaction sets. More... | |
| class | InboundTransactionSet |
| class | InboundTransactionsImp |
| class | InfoSub |
| Manages a client's subscription to data feeds. More... | |
| class | InfoSubRequest |
| class | InnerObjectFormats |
| Manages the list of known inner object formats. More... | |
| class | InnerObjectFormatsParsedJSON_test |
| class | InnerObjectFormatsSerializer_test |
| struct | IntrusiveRefCounts |
| Implement the strong count, weak count, and bit flags for an intrusive pointer. More... | |
| class | InvariantChecker_PROTOTYPE |
| Prototype for invariant check implementations. More... | |
| class | io_list |
| Manages a set of objects performing asynchronous I/O. More... | |
| class | IOUAmount |
| Floating point representation of amounts with high dynamic range. More... | |
| class | IOUAmount_test |
| class | Issue |
| A currency issued by an account. More... | |
| class | Issue_test |
| class | Job |
| class | JobQueue |
| A pool of threads to perform work. More... | |
| struct | JobTypeData |
| class | JobTypeInfo |
| Holds all the 'static' information about a job, which does not change. More... | |
| class | JobTypes |
| struct | json_body |
| Body that holds JSON. More... | |
| struct | JsonOptions |
| Note, should be treated as flags that can be | and &. More... | |
| class | JsonPropertyStream |
| A PropertyStream::Sink which produces a Json::Value of type objectValue. More... | |
| class | KeyCache_test |
| struct | KeyEqual |
| struct | Keylet |
| A pair of SHAMap key and LedgerEntryType. More... | |
| struct | keyletDesc |
| class | KnownFormats |
| Manages a list of known formats. More... | |
| class | Ledger |
| Holds a ledger. More... | |
| class | LedgerCleaner |
| Check the ledger/transaction databases to make sure they have continuity. More... | |
| class | LedgerCleanerImp |
| class | LedgerClosed_test |
| class | LedgerData_test |
| class | LedgerDeltaAcquire |
| Manage the retrieval of a ledger delta (header and transactions) from the network. More... | |
| struct | LedgerEntry |
| class | LedgerEntryTypesMatch |
| Invariant: corresponding modified ledger entries should match in type and added entries should be a valid type. More... | |
| struct | LedgerFill |
| class | LedgerFormats |
| Holds the list of known ledger entry formats. More... | |
| struct | LedgerHashPair |
| struct | LedgerHeader |
| Information about the notional ledger backing the view. More... | |
| class | LedgerHeader_test |
| class | LedgerHistory |
| Retains historical ledgers. More... | |
| class | LedgerHolder |
| Hold a ledger in a thread-safe way. More... | |
| class | LedgerLoad_test |
| class | LedgerMaster |
| struct | LedgerRange |
| class | LedgerReplay |
| class | LedgerReplayer |
| Manages the lifetime of ledger replay tasks. More... | |
| class | LedgerReplayMsgHandler |
| class | LedgerReplayTask |
| class | LedgerStateFix |
| class | LedgerTrie |
| Ancestry trie of ledgers. More... | |
| struct | less |
| class | LoadEvent |
| class | LoadFeeTrack |
| Manages the current fee schedule. More... | |
| class | LoadFeeTrack_test |
| class | LoadManager |
| Manages load sources. More... | |
| class | LoadMonitor |
| class | LocalTx |
| class | LocalTxs |
| class | LocalTxsImp |
| class | LocalValue |
| class | LockedSociSession |
| class | Logs |
| Manages partitions for logging. More... | |
| struct | Manifest |
| class | ManifestCache |
| Remembers manifests with the highest sequence number. More... | |
| struct | match_peer |
| Select the specific peer. More... | |
| class | Memo_test |
| class | Message |
| class | MPTAmount |
| struct | MPTAuthorizeArgs |
| struct | MPTCreateArgs |
| class | MPTIssue |
| struct | MPTMutabilityFlags |
| class | MPTokenAuthorize |
| class | MPTokenIssuanceCreate |
| class | MPTokenIssuanceDestroy |
| class | MPTokenIssuanceSet |
| class | NegativeUNLVote |
| Manager to create NegativeUNL votes. More... | |
| class | NetClock |
| class | NetworkOPs |
| Provides server functionality for clients. More... | |
| class | NetworkOPsImp |
| class | NFTokenAcceptOffer |
| class | NFTokenAllFeatures_test |
| class | NFTokenAuth_test |
| class | NFTokenBaseUtil_test |
| class | NFTokenBurn |
| class | NFTokenBurn_test |
| class | NFTokenCancelOffer |
| class | NFTokenCountTracking |
| Invariant: Validates counts of NFTokens after all transaction types. More... | |
| class | NFTokenCreateOffer |
| class | NFTokenDir_test |
| class | NFTokenDisallowIncoming_test |
| class | NFTokenMint |
| class | NFTokenModify |
| class | NFTokenWOMintOffer_test |
| class | NFTokenWOModify_test |
| class | NoBadOffers |
| Invariant: offers should be for non-negative amounts and must not be XRP to XRP. More... | |
| class | NoDeepFreezeTrustLinesWithoutFreeze |
| Invariant: Trust lines with deep freeze flag are not allowed if normal freeze flag is not set. More... | |
| class | NodeFamily |
| class | NodeObject |
| A simple object that the Ledger uses to store entries. More... | |
| class | NodeStoreScheduler |
| A NodeStore::Scheduler which uses the JobQueue. More... | |
| class | NoRippleCheck_test |
| class | NoRippleCheckLimits_test |
| class | NoXRPTrustLines |
| Invariant: Trust lines using XRP are not allowed. More... | |
| class | NoZeroEscrow |
| Invariant: an escrow entry must take a value between 0 and INITIAL_XRP drops exclusive. More... | |
| class | Number |
| class | Number_test |
| struct | NumberParts |
| class | NumberRoundModeGuard |
| class | NumberSO |
| RAII class to set and restore the Number switchover. More... | |
| class | OfferStream |
| Presents and consumes the offers in an order book. More... | |
| class | OfferStream_test |
| struct | open_ledger_t |
| Open ledger construction tag. More... | |
| class | OpenLedger |
| Represents the open ledger. More... | |
| struct | openssl_ripemd160_hasher |
| Message digest functions used in the codebase. More... | |
| struct | openssl_sha256_hasher |
| SHA-256 digest. More... | |
| struct | openssl_sha512_hasher |
| SHA-512 digest. More... | |
| class | OpenView |
| Writable ledger view that accumulates state and tx changes. More... | |
| struct | OptionaledField |
| Indicate std::optional field semantics. More... | |
| class | OrderBookDB |
| class | Overlay |
| Manages the set of connected peers. More... | |
| class | OverlayImpl |
| class | OwnerInfo_test |
| class | packed_spinlock |
| Classes to handle arrays of spinlocks packed into a single atomic integer: More... | |
| struct | ParsedPort |
| struct | parsedURL |
| class | partitioned_unordered_map |
| class | Pathfinder |
| Calculates payment paths. More... | |
| class | PathFindTrustLine |
| class | PathRequest |
| class | PathRequests |
| class | PayChanClaim |
| class | PayChanCreate |
| class | PayChanFund |
| class | Payment |
| class | PaymentSandbox |
| A wrapper which makes credits unavailable to balances. More... | |
| class | Peer |
| Represents a peer connection in the overlay. More... | |
| struct | peer_in_cluster |
| Select all peers (except optional excluded) that are in our cluster. More... | |
| struct | peer_in_set |
| Select all peers that are in the specified set. More... | |
| class | PeerImp |
| This class manages established peer-to-peer connections, handles message exchange, monitors connection health, and graceful shutdown. More... | |
| struct | PeerReservation |
| class | PeerReservationTable |
| class | Peers_test |
| class | PeerSet |
| Supports data retrieval by managing a set of peers. More... | |
| class | PeerSetBuilder |
| class | PeerSetBuilderImpl |
| class | PeerSetImpl |
| class | PendingSaves |
| Keeps track of which ledgers haven't been fully saved. More... | |
| class | PerfLog_test |
| class | Permission |
| class | PermissionedDomainDelete |
| class | PermissionedDomainSet |
| class | PlainHTTPPeer |
| class | PlainWSPeer |
| struct | Port |
| Configuration information for a Server listening port. More... | |
| struct | PreclaimContext |
| State information when determining if a tx is likely to claim a fee. More... | |
| struct | PreclaimResult |
Describes the results of the preclaim check. More... | |
| struct | PreflightContext |
| State information when preflighting a tx. More... | |
| struct | PreflightResult |
Describes the results of the preflight check. More... | |
| class | Processor |
| class | ProtocolVersion_test |
| class | PublicKey |
| A public key. More... | |
| class | PublicKey_test |
| class | Quality_test |
| class | QualityFunction |
Average quality of a path as a function of out: q(out) = m * out + b, where m = -1 / poolGets, b = poolPays / poolGets. More... | |
| struct | Rate |
| Represents a transfer rate. More... | |
| class | RawView |
| Interface for ledger entry changes. More... | |
| class | RCLCensorshipDetector |
| class | RCLConsensus |
| Manages the generic consensus algorithm for use by the RCL. More... | |
| class | RclConsensusLogger |
| Collects logging information. More... | |
| class | RCLCxLedger |
| Represents a ledger in RCLConsensus. More... | |
| class | RCLCxPeerPos |
| A peer's signed, proposed position for use in RCLConsensus. More... | |
| class | RCLCxTx |
| Represents a transaction in RCLConsensus. More... | |
| class | RCLTxSet |
| Represents a set of transactions in RCLConsensus. More... | |
| class | RCLValidatedLedger |
| Wraps a ledger instance for use in generic Validations LedgerTrie. More... | |
| class | RCLValidation |
| Wrapper over STValidation for generic Validation code. More... | |
| class | RCLValidationsAdaptor |
| Generic validations adaptor class for RCL. More... | |
| class | ReadView |
| A view into a ledger. More... | |
| class | RelationalDatabase |
| class | Resolver |
| class | ResolverAsio |
| class | ResolverAsioImpl |
| class | RFC1751 |
| struct | ripesha_hasher |
| Returns the RIPEMD-160 digest of the SHA256 hash of the message. More... | |
| class | RippleLineCache |
| struct | RPCCallImp |
| class | RPCParser |
| class | RPCSub |
| Subscription object for JSON RPC. More... | |
| class | RPCSubImp |
| class | RPCTrustLine |
| class | Rules |
| Rules controlling protocol behavior. More... | |
| class | Sandbox |
| Discardable, editable view to a ledger. More... | |
| struct | SavedState |
| class | saveNumberRoundMode |
| class | scope_exit |
| class | scope_fail |
| class | scope_success |
| class | scope_unlock |
| Automatically unlocks and re-locks a unique_lock object. More... | |
| class | SecretKey |
| A secret key. More... | |
| class | SecretKey_test |
| class | Section |
| Holds a collection of configuration values. More... | |
| class | Seed |
| Seeds are used to generate deterministic secret keys. More... | |
| class | Seed_test |
| struct | send_always |
| Sends a message to all peers. More... | |
| struct | send_if_not_pred |
| Sends a message to non-matching peers. More... | |
| struct | send_if_pred |
| Sends a message to match peers. More... | |
| class | SeqEnforcer |
| Enforce validation increasing sequence requirement. More... | |
| class | SeqProxy |
| A type that represents either a sequence value or a ticket value. More... | |
| struct | SeqProxy_test |
| class | SerialIter |
| class | Serializer |
| struct | Serializer_test |
| class | Server |
| A multi-protocol server. More... | |
| class | ServerHandler |
| class | ServerImpl |
| class | Session |
| Persistent state information for a connection session. More... | |
| class | SetAccount |
| class | SetOracle |
| Price Oracle is a system that acts as a bridge between a blockchain network and the external world, providing off-chain price data to decentralized applications (dApps) on the blockchain. More... | |
| class | SetRegularKey |
| class | SetRegularKey_test |
| class | SetSignerList |
| See the README.md for an overview of the SetSignerList transaction that this class implements. More... | |
| class | SetTrust |
| class | SField |
| Identifies fields. More... | |
| class | SHAMap |
| A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree. More... | |
| class | SHAMapAccountStateLeafNode |
| A leaf node for a state object. More... | |
| class | SHAMapAddNode |
| class | SHAMapHash |
| class | SHAMapInnerNode |
| class | SHAMapItem |
| class | SHAMapLeafNode |
| class | SHAMapMissingNode |
| class | SHAMapNodeID |
| Identifies a node inside a SHAMap. More... | |
| class | SHAMapStore |
| class to create database, launch online delete thread, and related SQLite database More... | |
| class | SHAMapStoreImp |
| class | SHAMapSyncFilter |
| class | SHAMapTreeNode |
| class | SHAMapTxLeafNode |
| A leaf node for a transaction. More... | |
| class | SHAMapTxPlusMetaLeafNode |
| A leaf node for a transaction and its associated metadata. More... | |
| class | SharedIntrusive |
| A shared intrusive pointer class that supports weak pointers. More... | |
| struct | SharedIntrusiveAdoptIncrementStrongTag |
| When creating or adopting a raw pointer, controls whether the strong count is incremented or not. More... | |
| struct | SharedIntrusiveAdoptNoIncrementTag |
| When creating or adopting a raw pointer, controls whether the strong count is incremented or not. More... | |
| class | SharedWeakCachePointer |
| A combination of a std::shared_ptr and a std::weak_pointer. More... | |
| class | SharedWeakUnion |
| A combination of a strong and a weak intrusive pointer stored in the space of a single pointer. More... | |
| class | short_read_test |
| class | SignerEntries |
| class | SimpleWriter |
| Deprecated: Writer that serializes a HTTP/1 message. More... | |
| class | SkipListAcquire |
| Manage the retrieval of a skip list in a ledger from the network. More... | |
| class | SlabAllocator |
| class | SlabAllocatorSet |
| A collection of slab allocators of various sizes for a given type. More... | |
| class | Slice |
| An immutable linear range of bytes. More... | |
| class | SociDB_test |
| class | SOElement |
| An element in a SOTemplate. More... | |
| class | SOTemplate |
| Defines the fields and their attributes within a STObject. More... | |
| class | SpanTip |
| The tip of a span of ledger ancestry. More... | |
| class | spinlock |
| A spinlock implemented on top of an atomic integer. More... | |
| class | SQLiteDatabase |
| class | SQLiteDatabaseImp |
| class | SSLHTTPPeer |
| class | SSLWSPeer |
| class | STAccount |
| struct | STAccount_test |
| class | STAmount |
| class | STAmount_test |
| class | STArray |
| struct | StaticCastTagSharedIntrusive |
| Tag to create an intrusive pointer from another intrusive pointer by using a static cast. More... | |
| class | STBase |
| A type which can be exported to a well known binary format. More... | |
| class | STBitString |
| class | STBlob |
| class | STCurrency |
| class | Step |
| A step in a payment path. More... | |
| struct | STExchange |
| Convert between serialized type U and C++ type T. More... | |
| struct | STExchange< STBlob, Buffer > |
| struct | STExchange< STBlob, PublicKey > |
| struct | STExchange< STBlob, Slice > |
| struct | STExchange< STInteger< U >, T > |
| class | STInteger |
| struct | STInteger_test |
| class | STIssue |
| class | STLedgerEntry |
| class | STNumber |
| A serializable number. More... | |
| struct | STNumber_test |
| class | STObject |
| class | STObject_test |
| class | STParsedJSON_test |
| class | STParsedJSONObject |
| Holds the serialized result of parsing an input JSON object. More... | |
| class | STPath |
| class | STPathElement |
| class | STPathSet |
| struct | StrandContext |
| Context needed to build Strand Steps and for error checking. More... | |
| struct | StrandResult |
| Result of flow() execution of a single Strand. More... | |
| class | StreambufWSMsg |
| class | StringUtilities_test |
| class | STTx |
| class | STTx_test |
| class | STValidation |
| class | STValidation_test |
| class | STVector256 |
| class | STXChainBridge |
| class | tagged_integer |
| A type-safe wrap around standard integral types. More... | |
| class | TaggedCache |
| Map/cache combination. More... | |
| class | TaggedCache_test |
| class | TaggedPointer |
| TaggedPointer is a combination of a pointer and a mask stored in the lowest two bits. More... | |
| struct | TER_test |
| class | TERSubset |
| class | TestSuite |
| class | Ticket_test |
| class | TimeKeeper |
| Manages various times used by the server. More... | |
| class | TimeoutCounter |
| This class is an "active" object. More... | |
| class | TOffer |
| class | TOfferBase |
| class | TOfferBase< STAmount, STAmount > |
| class | TOfferStreamBase |
| class | TrafficCount |
| TrafficCount is used to count ingress and egress wire bytes and number of messages. More... | |
| class | Transaction |
| class | Transaction_test |
| class | TransactionAcquire |
| class | TransactionEntry_test |
| class | TransactionFeeCheck |
| Invariant: We should never charge a transaction a negative fee or a fee that is larger than what the transaction itself specifies. More... | |
| class | TransactionHistory_test |
| class | TransactionMaster |
| class | TransactionStateSF |
| class | Transactor |
| class | TransfersNotFrozen |
| Invariant: frozen trust line balance change is not allowed. More... | |
| class | TrustAndBalance_test |
| struct | TrustChanges |
| Changes in trusted nodes after updating validator list. More... | |
| class | TrustedVotes |
| TrustedVotes records the most recent votes from trusted validators. More... | |
| class | TrustLineBase |
| Wraps a trust line SLE for convenience. More... | |
| struct | TxArgs |
| class | TxConsequences |
| Class describing the consequences to the account of applying a transaction if the transaction consumes the maximum XRP allowed. More... | |
| class | TxFormats |
| Manages the list of known transaction formats. More... | |
| class | TxMeta |
| class | TxQ |
| Transaction Queue. More... | |
| struct | TxResult |
| class | TxsRawView |
| Interface for changing ledger entries with transactions. More... | |
| struct | TypedField |
| A field with a type known at compile time. More... | |
| class | Unexpected |
| class | unsigned_integer |
| class | UptimeClock |
| Tracks program uptime to seconds precision. More... | |
| class | ValidAMM |
| struct | ValidationParms |
| Timing parameters to control validation staleness and expiration. More... | |
| class | Validations |
| Maintains current and recent ledger validations. More... | |
| struct | ValidatorBlobInfo |
| Used to represent the information stored in the blobs_v2 Json array. More... | |
| class | ValidatorKeys |
| Validator keys and manifest as set in configuration file. More... | |
| class | ValidatorList |
| class | ValidatorSite |
| struct | ValidatorToken |
| class | ValidClawback |
| Invariant: Token holder's trustline balance cannot be negative after Clawback. More... | |
| class | ValidMPTIssuance |
| class | ValidNewAccountRoot |
| Invariant: a new account root must be the consequence of a payment, must have the right starting sequence, and the payment may not create more than one new account root. More... | |
| class | ValidNFTokenPage |
| Invariant: Validates several invariants for NFToken pages. More... | |
| class | ValidPermissionedDEX |
| class | ValidPermissionedDomain |
| Invariants: Permissioned Domains must have some rules and AcceptedCredentials must have length between 1 and 10 inclusive. More... | |
| class | ValidPseudoAccounts |
| Invariants: Pseudo-accounts have valid and consisent properties. More... | |
| class | ValidVault |
| Invariants: Vault object and MPTokenIssuance for vault shares. More... | |
| class | Vault_test |
| class | VaultClawback |
| class | VaultCreate |
| class | VaultDelete |
| class | VaultDeposit |
| class | VaultSet |
| class | VaultWithdraw |
| class | Version_test |
| class | WeakIntrusive |
| A weak intrusive pointer class for the SharedIntrusive pointer class. More... | |
| class | Workers |
Workers is effectively a thread pool. More... | |
| class | Workers_test |
| class | Writer |
| class | WSInfoSub |
| class | WSMsg |
| struct | WSSession |
| class | XChainAddAccountCreateAttestation |
| class | XChainAddClaimAttestation |
| class | XChainAttestationsBase |
| class | XChainClaim |
| struct | XChainClaimAttestation |
| class | XChainClaimAttestations |
| class | XChainCommit |
| struct | XChainCreateAccountAttestation |
| class | XChainCreateAccountAttestations |
| class | XChainCreateAccountCommit |
| class | XChainCreateBridge |
| class | XChainCreateClaimID |
| class | XRPAmount |
| class | XRPAmount_test |
| class | XRPBalanceChecks |
| Invariant: An account XRP balance must be in XRP and take a value between 0 and INITIAL_XRP drops, inclusive. More... | |
| class | XRPEndpointOfferCrossingStep |
| class | XRPEndpointPaymentStep |
| class | XRPEndpointStep |
| class | XRPNotCreated |
| Invariant: A transaction must not create XRP and should only destroy the XRP fee. More... | |
| class | ZeroCopyInputStream |
| Implements ZeroCopyInputStream around a buffer sequence. More... | |
| class | ZeroCopyOutputStream |
| Implements ZeroCopyOutputStream around a Streambuf. More... | |
Concepts | |
| concept | CAdoptTag |
| concept | SafeToCast |
| concept | ValidIssueType |
| concept | AssetType |
| concept | IsArithmetic |
Typedefs | |
| using | uint128 = base_uint< 128 > |
| using | uint160 = base_uint< 160 > |
| using | uint256 = base_uint< 256 > |
| using | uint192 = base_uint< 192 > |
| using | IniFileSections = std::unordered_map< std::string, std::vector< std::string > > |
| using | Blob = std::vector< unsigned char > |
| Storage for linear binary data. | |
| using | days = std::chrono::duration< int, std::ratio_multiply< std::chrono::hours::period, std::ratio< 24 > > > |
| using | weeks = std::chrono::duration< int, std::ratio_multiply< days::period, std::ratio< 7 > > > |
| using | Stopwatch = beast::abstract_clock< std::chrono::steady_clock > |
| A clock for measuring elapsed time. | |
| using | TestStopwatch = beast::manual_clock< std::chrono::steady_clock > |
| A manual Stopwatch for unit tests. | |
| using | KeyCache = TaggedCache< uint256, int, true > |
| template<class T > | |
| using | ClosedInterval = boost::icl::closed_interval< T > |
| A closed interval over the domain T. | |
| template<class T > | |
| using | RangeSet = boost::icl::interval_set< T, std::less, ClosedInterval< T > > |
| A set of closed intervals over the domain T. | |
| template<class Key , class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
| using | hash_map = std::unordered_map< Key, Value, Hash, Pred, Allocator > |
| template<class Key , class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
| using | hash_multimap = std::unordered_multimap< Key, Value, Hash, Pred, Allocator > |
| template<class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
| using | hash_set = std::unordered_set< Value, Hash, Pred, Allocator > |
| template<class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
| using | hash_multiset = std::unordered_multiset< Value, Hash, Pred, Allocator > |
| using | strong_hash = beast::xxhasher |
| template<class Key , class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
| using | hardened_hash_map = std::unordered_map< Key, Value, Hash, Pred, Allocator > |
| template<class Key , class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
| using | hardened_partitioned_hash_map = partitioned_unordered_map< Key, Value, Hash, Pred, Allocator > |
| template<class Key , class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
| using | hardened_hash_multimap = std::unordered_multimap< Key, Value, Hash, Pred, Allocator > |
| template<class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
| using | hardened_hash_set = std::unordered_set< Value, Hash, Pred, Allocator > |
| template<class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
| using | hardened_hash_multiset = std::unordered_multiset< Value, Hash, Pred, Allocator > |
| using | CachedSLEs = TaggedCache< uint256, SLE const > |
| using | majorityAmendments_t = std::map< uint256, NetClock::time_point > |
| using | EntryDeleter = std::function< std::pair< TER, SkipEntry >(LedgerEntryType, uint256 const &, std::shared_ptr< SLE > &)> |
| Deleter function prototype. | |
| using | AccountID = base_uint< 160, detail::AccountIDTag > |
| A 160-bit unsigned that uniquely identifies an account. | |
| template<class T > | |
| using | Result = boost::outcome_v2::result< T, std::error_code > |
| using | ripemd160_hasher = openssl_ripemd160_hasher |
| using | sha256_hasher = openssl_sha256_hasher |
| using | sha512_hasher = openssl_sha512_hasher |
| using | sha512_half_hasher = detail::basic_sha512_half_hasher< false > |
| using | sha512_half_hasher_s = detail::basic_sha512_half_hasher< true > |
| using | LedgerInfo = LedgerHeader |
| using | MultiApiJson = detail::MultiApiJson< RPC::apiMinimumSupportedVersion, RPC::apiMaximumValidVersion > |
| using | LedgerIndex = std::uint32_t |
| A ledger index. | |
| using | TxID = uint256 |
| A transaction identifier. | |
| using | LedgerHash = uint256 |
| using | SF_UINT8 = TypedField< STInteger< std::uint8_t > > |
| using | SF_UINT16 = TypedField< STInteger< std::uint16_t > > |
| using | SF_UINT32 = TypedField< STInteger< std::uint32_t > > |
| using | SF_UINT64 = TypedField< STInteger< std::uint64_t > > |
| using | SF_UINT96 = TypedField< STBitString< 96 > > |
| using | SF_UINT128 = TypedField< STBitString< 128 > > |
| using | SF_UINT160 = TypedField< STBitString< 160 > > |
| using | SF_UINT192 = TypedField< STBitString< 192 > > |
| using | SF_UINT256 = TypedField< STBitString< 256 > > |
| using | SF_UINT384 = TypedField< STBitString< 384 > > |
| using | SF_UINT512 = TypedField< STBitString< 512 > > |
| using | SF_INT32 = TypedField< STInteger< std::int32_t > > |
| using | SF_INT64 = TypedField< STInteger< std::int64_t > > |
| using | SF_ACCOUNT = TypedField< STAccount > |
| using | SF_AMOUNT = TypedField< STAmount > |
| using | SF_ISSUE = TypedField< STIssue > |
| using | SF_CURRENCY = TypedField< STCurrency > |
| using | SF_NUMBER = TypedField< STNumber > |
| using | SF_VL = TypedField< STBlob > |
| using | SF_VECTOR256 = TypedField< STVector256 > |
| using | SF_XCHAIN_BRIDGE = TypedField< STXChainBridge > |
| using | STUInt128 = STBitString< 128 > |
| using | STUInt160 = STBitString< 160 > |
| using | STUInt192 = STBitString< 192 > |
| using | STUInt256 = STBitString< 256 > |
| using | STUInt8 = STInteger< unsigned char > |
| using | STUInt16 = STInteger< std::uint16_t > |
| using | STUInt32 = STInteger< std::uint32_t > |
| using | STUInt64 = STInteger< std::uint64_t > |
| using | STInt32 = STInteger< std::int32_t > |
| using | SLE = STLedgerEntry |
| using | TERUnderlyingType = int |
| using | NotTEC = TERSubset< CanCvtToNotTEC > |
| using | TER = TERSubset< CanCvtToTER > |
| template<class T > | |
| using | B58Result = Expected< T, std::error_code > |
| using | Directory = base_uint< 256, detail::DirectoryTag > |
| Directory is an index into the directory of offer books. | |
| using | Currency = base_uint< 160, detail::CurrencyTag > |
| Currency is a hash representing a specific currency. | |
| using | NodeID = base_uint< 160, detail::NodeIDTag > |
| NodeID is a 160-bit hash representing one node. | |
| using | MPTID = base_uint< 192 > |
| MPTID is a 192-bit value representing MPT Issuance ID, which is a concatenation of a 32-bit sequence (big endian) and a 160-bit account. | |
| using | Domain = base_uint< 256 > |
| Domain is a 256-bit hash representing a specific domain. | |
| template<class T > | |
| using | FeeLevel = unit::ValueUnit< unit::feelevelTag, T > |
| using | FeeLevel64 = FeeLevel< std::uint64_t > |
| using | FeeLevelDouble = FeeLevel< double > |
| template<class T > | |
| using | Bips = unit::ValueUnit< unit::BipsTag, T > |
| using | Bips16 = Bips< std::uint16_t > |
| using | Bips32 = Bips< std::uint32_t > |
| template<class T > | |
| using | TenthBips = unit::ValueUnit< unit::TenthBipsTag, T > |
| using | TenthBips16 = TenthBips< std::uint16_t > |
| using | TenthBips32 = TenthBips< std::uint32_t > |
| using | Endpoints = std::unordered_map< std::string, boost::asio::ip::tcp::endpoint > |
| using | http_request_type = boost::beast::http::request< boost::beast::http::dynamic_body > |
| using | http_response_type = boost::beast::http::response< boost::beast::http::dynamic_body > |
| using | FullBelowCache = detail::BasicFullBelowCache |
| using | TreeNodeCache = TaggedCache< uint256, SHAMapTreeNode, false, intr_ptr::SharedWeakUnionPtr< SHAMapTreeNode >, intr_ptr::SharedPtr< SHAMapTreeNode > > |
| using | const_iterator = Dir::const_iterator |
| using | sha256_t = unsigned_integer< 256, std::size_t > |
| using | RCLValidations = Validations< RCLValidationsAdaptor > |
| Alias for RCL-specific instantiation of generic Validations. | |
| using | CachedLedger = CachedView< Ledger > |
| A ledger wrapped in a CachedView. | |
| using | OrderedTxs = CanonicalTXSet |
| using | NodeCache = TaggedCache< SHAMapHash, Blob > |
| using | CheckCancel = CancelCheck |
| using | OfferCancel = CancelOffer |
| using | CheckCash = CashCheck |
| using | EnableAmendment = Change |
| using | SetFee = Change |
| using | UNLModify = Change |
| using | CheckCreate = CreateCheck |
| using | OfferCreate = CreateOffer |
| using | TicketCreate = CreateTicket |
| using | AccountDelete = DeleteAccount |
| using | OracleDelete = DeleteOracle |
| using | InvariantChecks = std::tuple< TransactionFeeCheck, AccountRootsNotDeleted, AccountRootsDeletedClean, LedgerEntryTypesMatch, XRPBalanceChecks, XRPNotCreated, NoXRPTrustLines, NoDeepFreezeTrustLinesWithoutFreeze, TransfersNotFrozen, NoBadOffers, NoZeroEscrow, ValidNewAccountRoot, ValidNFTokenPage, NFTokenCountTracking, ValidClawback, ValidMPTIssuance, ValidPermissionedDomain, ValidPermissionedDEX, ValidAMM, ValidPseudoAccounts, ValidVault > |
| using | Offer = TOffer<> |
| using | PaymentChannelCreate = PayChanCreate |
| using | PaymentChannelFund = PayChanFund |
| using | PaymentChannelClaim = PayChanClaim |
| using | AccountSet = SetAccount |
| using | OracleSet = SetOracle |
| using | SignerListSet = SetSignerList |
| using | TrustSet = SetTrust |
| using | XChainModifyBridge = BridgeModify |
| using | XChainAccountCreateCommit = XChainCreateAccountCommit |
| using | semaphore = basic_semaphore< std::mutex, std::condition_variable > |
| using | JobCounter = ClosureCounter< void > |
| using | socket_type = boost::beast::tcp_stream |
| using | stream_type = boost::beast::ssl_stream< socket_type > |
| using | request_type = boost::beast::http::request< boost::beast::http::empty_body > |
| using | ProtocolVersion = std::pair< std::uint16_t, std::uint16_t > |
| Represents a particular version of the peer-to-peer protocol. | |
| using | TxnsData = RelationalDatabase::AccountTxs |
| using | TxnsDataBinary = RelationalDatabase::MetaTxsList |
| using | TxnDataBinary = RelationalDatabase::txnMetaLedgerType |
| using | AccountTxArgs = RelationalDatabase::AccountTxArgs |
| using | AccountTxResult = RelationalDatabase::AccountTxResult |
| using | LedgerShortcut = RelationalDatabase::LedgerShortcut |
| using | LedgerSpecifier = RelationalDatabase::LedgerSpecifier |
| using | Prices = bimap< multiset_of< std::uint32_t, std::greater< std::uint32_t > >, multiset_of< STAmount > > |
| using | FunctionType = Expected< uint256, Json::Value >(*)(Json::Value const &, Json::StaticString const) |
Functions | |
| template<class InputIter1 , class InputIter2 , class Action , class Comp > | |
| void | generalized_set_intersection (InputIter1 first1, InputIter1 last1, InputIter2 first2, InputIter2 last2, Action action, Comp comp) |
| template<class FwdIter1 , class InputIter2 , class Pred , class Comp > | |
| FwdIter1 | remove_if_intersect_or_match (FwdIter1 first1, FwdIter1 last1, InputIter2 first2, InputIter2 last2, Pred pred, Comp comp) |
| void | extractTarLz4 (boost::filesystem::path const &src, boost::filesystem::path const &dst) |
| Extract a tar archive compressed with lz4. | |
| std::string | base64_encode (std::uint8_t const *data, std::size_t len) |
| std::string | base64_encode (std::string const &s) |
| std::string | base64_decode (std::string_view data) |
| template<std::size_t Bits, class Tag > | |
| constexpr std::strong_ordering | operator<=> (base_uint< Bits, Tag > const &lhs, base_uint< Bits, Tag > const &rhs) |
| template<std::size_t Bits, typename Tag > | |
| constexpr bool | operator== (base_uint< Bits, Tag > const &lhs, base_uint< Bits, Tag > const &rhs) |
| template<std::size_t Bits, class Tag > | |
| constexpr bool | operator== (base_uint< Bits, Tag > const &a, std::uint64_t b) |
| template<std::size_t Bits, class Tag > | |
| constexpr base_uint< Bits, Tag > | operator^ (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| constexpr base_uint< Bits, Tag > | operator& (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| constexpr base_uint< Bits, Tag > | operator| (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| constexpr base_uint< Bits, Tag > | operator+ (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| std::string | to_string (base_uint< Bits, Tag > const &a) |
| template<std::size_t Bits, class Tag > | |
| std::string | to_short_string (base_uint< Bits, Tag > const &a) |
| template<std::size_t Bits, class Tag > | |
| std::ostream & | operator<< (std::ostream &out, base_uint< Bits, Tag > const &u) |
| template<> | |
| std::size_t | extract (uint256 const &key) |
| template<class T > | |
| bool | set (T &target, std::string const &name, Section const §ion) |
| Set a value from a configuration Section If the named value is not found or doesn't parse as a T, the variable is unchanged. | |
| template<class T > | |
| bool | set (T &target, T const &defaultValue, std::string const &name, Section const §ion) |
| Set a value from a configuration Section If the named value is not found or doesn't cast to T, the variable is assigned the default. | |
| template<class T = std::string> | |
| T | get (Section const §ion, std::string const &name, T const &defaultValue=T{}) |
| Retrieve a key/value pair from a section. | |
| std::string | get (Section const §ion, std::string const &name, char const *defaultValue) |
| template<class T > | |
| bool | get_if_exists (Section const §ion, std::string const &name, T &v) |
| template<> | |
| bool | get_if_exists< bool > (Section const §ion, std::string const &name, bool &v) |
| bool | operator== (Buffer const &lhs, Buffer const &rhs) noexcept |
| bool | operator!= (Buffer const &lhs, Buffer const &rhs) noexcept |
| template<class T > | |
| constexpr auto | kilobytes (T value) noexcept |
| template<class T > | |
| constexpr auto | megabytes (T value) noexcept |
| template<class Duration > | |
| std::string | to_string (date::sys_time< Duration > tp) |
| std::string | to_string (NetClock::time_point tp) |
| template<class Duration > | |
| std::string | to_string_iso (date::sys_time< Duration > tp) |
| std::string | to_string_iso (NetClock::time_point tp) |
| Stopwatch & | stopwatch () |
| Returns an instance of a wall clock. | |
| void | LogThrow (std::string const &title) |
| Generates and logs a call stack. | |
| void | Rethrow () |
| Rethrow the exception currently being handled. | |
| template<class E , class... Args> | |
| void | Throw (Args &&... args) |
| void | LogicError (std::string const &how) noexcept |
| Called when faulty logic causes a broken invariant. | |
| template<typename E , std::size_t N> | |
| Unexpected (E(&)[N]) -> Unexpected< E const * > | |
| std::string | getFileContents (boost::system::error_code &ec, boost::filesystem::path const &sourcePath, std::optional< std::size_t > maxSize=std::nullopt) |
| void | writeFileContents (boost::system::error_code &ec, boost::filesystem::path const &destPath, std::string const &contents) |
| template<class TT , class... Args> | |
| SharedIntrusive< TT > | make_SharedIntrusive (Args &&... args) |
| Create a shared intrusive pointer. | |
| template<class T > | |
| void | partialDestructorFinished (T **o) |
| template<class Stream , class Iter > | |
| Stream & | join (Stream &s, Iter iter, Iter end, std::string const &delimiter) |
| std::unique_ptr< beast::Journal::Sink > | setDebugLogSink (std::unique_ptr< beast::Journal::Sink > sink) |
| Set the sink for the debug journal. | |
| beast::Journal | debugLog () |
| Returns a debug journal. | |
| std::shared_ptr< boost::asio::ssl::context > | make_SSLContext (std::string const &cipherList) |
| Create a self-signed SSL context that allows anonymous Diffie Hellman. | |
| std::shared_ptr< boost::asio::ssl::context > | make_SSLContextAuthed (std::string const &keyFile, std::string const &certFile, std::string const &chainFile, std::string const &cipherList) |
| Create an authenticated SSL context using the specified files. | |
| constexpr std::size_t | calculatePercent (std::size_t count, std::size_t total) |
| Calculate one number divided by another number in percentage. | |
| std::optional< std::uint64_t > | mulDiv (std::uint64_t value, std::uint64_t mul, std::uint64_t div) |
| Return value*mul/div accurately. | |
| std::string | to_string (Number const &amount) |
| Number | operator+ (Number const &x, Number const &y) |
| Number | operator- (Number const &x, Number const &y) |
| Number | operator* (Number const &x, Number const &y) |
| Number | operator/ (Number const &x, Number const &y) |
| constexpr Number | abs (Number x) noexcept |
| Number | power (Number const &f, unsigned n) |
| Number | root (Number f, unsigned d) |
| Number | root2 (Number f) |
| Number | power (Number const &f, unsigned n, unsigned d) |
| constexpr Number | squelch (Number const &x, Number const &limit) noexcept |
| template<typename Key > | |
| static std::size_t | extract (Key const &key) |
| template<> | |
| std::size_t | extract (std::string const &key) |
| beast::xor_shift_engine & | default_prng () |
| Return the default random engine. | |
| template<class T > | |
| ClosedInterval< T > | range (T low, T high) |
| Create a closed range interval. | |
| template<class T > | |
| std::string | to_string (ClosedInterval< T > const &ci) |
| Convert a ClosedInterval to a styled string. | |
| template<class T > | |
| std::string | to_string (RangeSet< T > const &rs) |
| Convert the given RangeSet to a styled string. | |
| template<class T > | |
| bool | from_string (RangeSet< T > &rs, std::string const &s) |
| Convert the given styled string to a RangeSet. | |
| template<class T > | |
| std::optional< T > | prevMissing (RangeSet< T > const &rs, T t, T minVal=0) |
| Find the largest value not in the set that is less than a given value. | |
| template<class Dest , class Src > | |
| constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_integral_v< Src >, Dest > | safe_cast (Src s) noexcept |
| template<class Dest , class Src > | |
| constexpr std::enable_if_t< std::is_enum_v< Dest > &&std::is_integral_v< Src >, Dest > | safe_cast (Src s) noexcept |
| template<class Dest , class Src > | |
| constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_enum_v< Src >, Dest > | safe_cast (Src s) noexcept |
| template<class Dest , class Src > | |
| constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_integral_v< Src >, Dest > | unsafe_cast (Src s) noexcept |
| template<class Dest , class Src > | |
| constexpr std::enable_if_t< std::is_enum_v< Dest > &&std::is_integral_v< Src >, Dest > | unsafe_cast (Src s) noexcept |
| template<class Dest , class Src > | |
| constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_enum_v< Src >, Dest > | unsafe_cast (Src s) noexcept |
| template<class EF > | |
| scope_exit (EF) -> scope_exit< EF > | |
| template<class EF > | |
| scope_fail (EF) -> scope_fail< EF > | |
| template<class EF > | |
| scope_success (EF) -> scope_success< EF > | |
| template<class Mutex > | |
| scope_unlock (std::unique_lock< Mutex > &) -> scope_unlock< Mutex > | |
| bool | operator!= (SHAMapHash const &x, SHAMapHash const &y) |
| template<> | |
| std::size_t | extract (SHAMapHash const &key) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, Slice const &v) |
| bool | operator== (Slice const &lhs, Slice const &rhs) noexcept |
| bool | operator!= (Slice const &lhs, Slice const &rhs) noexcept |
| bool | operator< (Slice const &lhs, Slice const &rhs) noexcept |
| template<class Stream > | |
| Stream & | operator<< (Stream &s, Slice const &v) |
| template<class T , std::size_t N> | |
| std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > | makeSlice (std::array< T, N > const &a) |
| template<class T , class Alloc > | |
| std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > | makeSlice (std::vector< T, Alloc > const &v) |
| template<class Traits , class Alloc > | |
| Slice | makeSlice (std::basic_string< char, Traits, Alloc > const &s) |
| template<class FwdIt > | |
| std::string | strHex (FwdIt begin, FwdIt end) |
| template<class T , class = decltype(std::declval<T>().begin())> | |
| std::string | strHex (T const &from) |
| std::string | sqlBlobLiteral (Blob const &blob) |
| Format arbitrary binary data as an SQLite "blob literal". | |
| template<class Iterator > | |
| std::optional< Blob > | strUnHex (std::size_t strSize, Iterator begin, Iterator end) |
| std::optional< Blob > | strUnHex (std::string const &strSrc) |
| std::optional< Blob > | strViewUnHex (std::string_view strSrc) |
| bool | parseUrl (parsedURL &pUrl, std::string const &strUrl) |
| std::string | trim_whitespace (std::string str) |
| std::optional< std::uint64_t > | to_uint64 (std::string const &s) |
| bool | isProperlyFormedTomlDomain (std::string_view domain) |
| Determines if the given string looks like a TOML-file hosting domain. | |
| template<class T > | |
| std::enable_if< std::is_arithmetic< T >::value, std::string >::type | to_string (T t) |
| to_string() generalizes std::to_string to handle bools, chars, and strings. | |
| std::string | to_string (bool b) |
| std::string | to_string (char c) |
| std::string | to_string (std::string s) |
| std::string | to_string (char const *s) |
| csprng_engine & | crypto_prng () |
| The default cryptographically secure PRNG. | |
| void | secure_erase (void *dest, std::size_t bytes) |
| Attempts to clear the given blob of memory. | |
| constexpr ApplyFlags | operator| (ApplyFlags const &lhs, ApplyFlags const &rhs) |
| constexpr ApplyFlags | operator& (ApplyFlags const &lhs, ApplyFlags const &rhs) |
| constexpr ApplyFlags | operator~ (ApplyFlags const &flags) |
| ApplyFlags | operator|= (ApplyFlags &lhs, ApplyFlags const &rhs) |
| ApplyFlags | operator&= (ApplyFlags &lhs, ApplyFlags const &rhs) |
| TER | verifyValidDomain (ApplyView &view, AccountID const &account, uint256 domainID, beast::Journal j) |
| TER | verifyDepositPreauth (STTx const &tx, ApplyView &view, AccountID const &src, AccountID const &dst, std::shared_ptr< SLE > const &sleDst, beast::Journal j) |
| Rules | makeRulesGivenLedger (DigestAwareReadView const &ledger, Rules const ¤t) |
| Rules | makeRulesGivenLedger (DigestAwareReadView const &ledger, std::unordered_set< uint256, beast::uhash<> > const &presets) |
| bool | hasExpired (ReadView const &view, std::optional< std::uint32_t > const &exp) |
| Determines whether the given expiration time has passed. | |
| bool | isGlobalFrozen (ReadView const &view, AccountID const &issuer) |
| bool | isGlobalFrozen (ReadView const &view, MPTIssue const &mptIssue) |
| bool | isGlobalFrozen (ReadView const &view, Asset const &asset) |
| bool | isVaultPseudoAccountFrozen (ReadView const &view, AccountID const &account, MPTIssue const &mptShare, int depth) |
| bool | isIndividualFrozen (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer) |
| bool | isIndividualFrozen (ReadView const &view, AccountID const &account, Issue const &issue) |
| bool | isIndividualFrozen (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue) |
| bool | isIndividualFrozen (ReadView const &view, AccountID const &account, Asset const &asset) |
| bool | isFrozen (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer) |
| bool | isFrozen (ReadView const &view, AccountID const &account, Issue const &issue, int=0) |
| bool | isFrozen (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue, int depth=0) |
| bool | isFrozen (ReadView const &view, AccountID const &account, Asset const &asset, int depth=0) |
| isFrozen check is recursive for MPT shares in a vault, descending to assets in the vault, up to maxAssetCheckDepth recursion depth. | |
| TER | checkFrozen (ReadView const &view, AccountID const &account, Issue const &issue) |
| TER | checkFrozen (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue) |
| TER | checkFrozen (ReadView const &view, AccountID const &account, Asset const &asset) |
| bool | isAnyFrozen (ReadView const &view, std::initializer_list< AccountID > const &accounts, MPTIssue const &mptIssue, int depth=0) |
| bool | isAnyFrozen (ReadView const &view, std::initializer_list< AccountID > const &accounts, Issue const &issue) |
| bool | isAnyFrozen (ReadView const &view, std::initializer_list< AccountID > const &accounts, Asset const &asset, int depth=0) |
| bool | isDeepFrozen (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer) |
| bool | isLPTokenFrozen (ReadView const &view, AccountID const &account, Issue const &asset, Issue const &asset2) |
| STAmount | accountHolds (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer, FreezeHandling zeroIfFrozen, beast::Journal j) |
| STAmount | accountHolds (ReadView const &view, AccountID const &account, Issue const &issue, FreezeHandling zeroIfFrozen, beast::Journal j) |
| STAmount | accountHolds (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue, FreezeHandling zeroIfFrozen, AuthHandling zeroIfUnauthorized, beast::Journal j) |
| STAmount | accountHolds (ReadView const &view, AccountID const &account, Asset const &asset, FreezeHandling zeroIfFrozen, AuthHandling zeroIfUnauthorized, beast::Journal j) |
| STAmount | accountFunds (ReadView const &view, AccountID const &id, STAmount const &saDefault, FreezeHandling freezeHandling, beast::Journal j) |
| XRPAmount | xrpLiquid (ReadView const &view, AccountID const &id, std::int32_t ownerCountAdj, beast::Journal j) |
| void | forEachItem (ReadView const &view, Keylet const &root, std::function< void(std::shared_ptr< SLE const > const &)> const &f) |
| Iterate all items in the given directory. | |
| bool | forEachItemAfter (ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f) |
| Iterate all items after an item in the given directory. | |
| void | forEachItem (ReadView const &view, AccountID const &id, std::function< void(std::shared_ptr< SLE const > const &)> const &f) |
| Iterate all items in an account's owner directory. | |
| bool | forEachItemAfter (ReadView const &view, AccountID const &id, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f) |
| Iterate all items after an item in an owner directory. | |
| Rate | transferRate (ReadView const &view, AccountID const &issuer) |
| Returns IOU issuer transfer fee as Rate. | |
| Rate | transferRate (ReadView const &view, MPTID const &issuanceID) |
| Returns MPT transfer fee as Rate. | |
| Rate | transferRate (ReadView const &view, STAmount const &amount) |
| Returns the transfer fee as Rate based on the type of token. | |
| bool | dirIsEmpty (ReadView const &view, Keylet const &k) |
Returns true if the directory is empty. | |
| std::set< uint256 > | getEnabledAmendments (ReadView const &view) |
| majorityAmendments_t | getMajorityAmendments (ReadView const &view) |
| std::optional< uint256 > | hashOfSeq (ReadView const &ledger, LedgerIndex seq, beast::Journal journal) |
| Return the hash of a ledger by sequence. | |
| LedgerIndex | getCandidateLedger (LedgerIndex requested) |
| Find a ledger index from which we could easily get the requested ledger. | |
| bool | areCompatible (ReadView const &validLedger, ReadView const &testLedger, beast::Journal::Stream &s, char const *reason) |
| Return false if the test ledger is provably incompatible with the valid ledger, that is, they could not possibly both be valid. | |
| bool | areCompatible (uint256 const &validHash, LedgerIndex validIndex, ReadView const &testLedger, beast::Journal::Stream &s, char const *reason) |
| void | adjustOwnerCount (ApplyView &view, std::shared_ptr< SLE > const &sle, std::int32_t amount, beast::Journal j) |
| Adjust the owner count up or down. | |
| std::function< void(SLE::ref)> | describeOwnerDir (AccountID const &account) |
| TER | dirLink (ApplyView &view, AccountID const &owner, std::shared_ptr< SLE > &object) |
| AccountID | pseudoAccountAddress (ReadView const &view, uint256 const &pseudoOwnerKey) |
| Expected< std::shared_ptr< SLE >, TER > | createPseudoAccount (ApplyView &view, uint256 const &pseudoOwnerKey, SField const &ownerField) |
| Create pseudo-account, storing pseudoOwnerKey into ownerField. | |
| bool | isPseudoAccount (std::shared_ptr< SLE const > sleAcct) |
| std::vector< SField const * > const & | getPseudoAccountFields () |
| bool | isPseudoAccount (ReadView const &view, AccountID accountId) |
| TER | canAddHolding (ReadView const &view, Asset const &asset) |
| TER | addEmptyHolding (ApplyView &view, AccountID const &accountID, XRPAmount priorBalance, Issue const &issue, beast::Journal journal) |
| Any transactors that call addEmptyHolding() in doApply must call canAddHolding() in preflight with the same View and Asset. | |
| TER | addEmptyHolding (ApplyView &view, AccountID const &accountID, XRPAmount priorBalance, MPTIssue const &mptIssue, beast::Journal journal) |
| TER | addEmptyHolding (ApplyView &view, AccountID const &accountID, XRPAmount priorBalance, Asset const &asset, beast::Journal journal) |
| TER | authorizeMPToken (ApplyView &view, XRPAmount const &priorBalance, MPTID const &mptIssuanceID, AccountID const &account, beast::Journal journal, std::uint32_t flags=0, std::optional< AccountID > holderID=std::nullopt) |
| TER | trustCreate (ApplyView &view, bool const bSrcHigh, AccountID const &uSrcAccountID, AccountID const &uDstAccountID, uint256 const &uIndex, SLE::ref sleAccount, bool const bAuth, bool const bNoRipple, bool const bFreeze, bool bDeepFreeze, STAmount const &saBalance, STAmount const &saLimit, std::uint32_t uSrcQualityIn, std::uint32_t uSrcQualityOut, beast::Journal j) |
| Create a trust line. | |
| TER | removeEmptyHolding (ApplyView &view, AccountID const &accountID, Issue const &issue, beast::Journal journal) |
| TER | removeEmptyHolding (ApplyView &view, AccountID const &accountID, MPTIssue const &mptIssue, beast::Journal journal) |
| TER | removeEmptyHolding (ApplyView &view, AccountID const &accountID, Asset const &asset, beast::Journal journal) |
| TER | trustDelete (ApplyView &view, std::shared_ptr< SLE > const &sleRippleState, AccountID const &uLowAccountID, AccountID const &uHighAccountID, beast::Journal j) |
| TER | offerDelete (ApplyView &view, std::shared_ptr< SLE > const &sle, beast::Journal j) |
| Delete an offer. | |
| TER | rippleCredit (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, bool bCheckIssuer, beast::Journal j) |
| Calls static rippleCreditIOU if saAmount represents Issue. | |
| TER | rippleLockEscrowMPT (ApplyView &view, AccountID const &uGrantorID, STAmount const &saAmount, beast::Journal j) |
| TER | rippleUnlockEscrowMPT (ApplyView &view, AccountID const &uGrantorID, AccountID const &uGranteeID, STAmount const &netAmount, STAmount const &grossAmount, beast::Journal j) |
| TER | accountSend (ApplyView &view, AccountID const &from, AccountID const &to, STAmount const &saAmount, beast::Journal j, WaiveTransferFee waiveFee=WaiveTransferFee::No) |
| Calls static accountSendIOU if saAmount represents Issue. | |
| TER | issueIOU (ApplyView &view, AccountID const &account, STAmount const &amount, Issue const &issue, beast::Journal j) |
| TER | redeemIOU (ApplyView &view, AccountID const &account, STAmount const &amount, Issue const &issue, beast::Journal j) |
| TER | transferXRP (ApplyView &view, AccountID const &from, AccountID const &to, STAmount const &amount, beast::Journal j) |
| TER | requireAuth (ReadView const &view, Issue const &issue, AccountID const &account, AuthType authType=AuthType::Legacy) |
| Check if the account lacks required authorization. | |
| TER | requireAuth (ReadView const &view, MPTIssue const &mptIssue, AccountID const &account, AuthType authType=AuthType::Legacy, int depth=0) |
| Check if the account lacks required authorization. | |
| TER | requireAuth (ReadView const &view, Asset const &asset, AccountID const &account, AuthType authType=AuthType::Legacy) |
| TER | enforceMPTokenAuthorization (ApplyView &view, MPTID const &mptIssuanceID, AccountID const &account, XRPAmount const &priorBalance, beast::Journal j) |
| Enforce account has MPToken to match its authorization. | |
| TER | canTransfer (ReadView const &view, MPTIssue const &mptIssue, AccountID const &from, AccountID const &to) |
| Check if the destination account is allowed to receive MPT. | |
| TER | cleanupOnAccountDelete (ApplyView &view, Keylet const &ownerDirKeylet, EntryDeleter const &deleter, beast::Journal j, std::optional< std::uint16_t > maxNodesToDelete=std::nullopt) |
| Cleanup owner directory entries on account delete. | |
| TER | deleteAMMTrustLine (ApplyView &view, std::shared_ptr< SLE > sleState, std::optional< AccountID > const &ammAccountID, beast::Journal j) |
| Delete trustline to AMM. | |
| std::optional< STAmount > | assetsToSharesDeposit (std::shared_ptr< SLE const > const &vault, std::shared_ptr< SLE const > const &issuance, STAmount const &assets) |
| std::optional< STAmount > | sharesToAssetsDeposit (std::shared_ptr< SLE const > const &vault, std::shared_ptr< SLE const > const &issuance, STAmount const &shares) |
| std::optional< STAmount > | assetsToSharesWithdraw (std::shared_ptr< SLE const > const &vault, std::shared_ptr< SLE const > const &issuance, STAmount const &assets, TruncateShares truncate=TruncateShares::no) |
| std::optional< STAmount > | sharesToAssetsWithdraw (std::shared_ptr< SLE const > const &vault, std::shared_ptr< SLE const > const &issuance, STAmount const &shares) |
| bool | after (NetClock::time_point now, std::uint32_t mark) |
| Has the specified time passed? | |
| void | registerSSLCerts (boost::asio::ssl::context &, boost::system::error_code &, beast::Journal j) |
| Register default SSL certificates. | |
| std::string | toBase58 (AccountID const &v) |
| Convert AccountID to base58 checked string. | |
| template<> | |
| std::optional< AccountID > | parseBase58 (std::string const &s) |
| Parse AccountID from checked, base58 string. | |
| AccountID const & | xrpAccount () |
| Compute AccountID from public key. | |
| AccountID const & | noAccount () |
| A placeholder for empty accounts. | |
| bool | to_issuer (AccountID &, std::string const &) |
| Convert hex or base58 string to AccountID. | |
| bool | isXRP (AccountID const &c) |
| std::string | to_string (Currency const &c) |
| Returns "", "XRP", or three letter ISO code. | |
| std::ostream & | operator<< (std::ostream &os, AccountID const &x) |
| void | initAccountIdCache (std::size_t count) |
| Initialize the global cache used to map AccountID to base58 conversions. | |
| Currency | ammLPTCurrency (Currency const &cur1, Currency const &cur2) |
| Calculate Liquidity Provider Token (LPT) Currency. | |
| Issue | ammLPTIssue (Currency const &cur1, Currency const &cur2, AccountID const &ammAccountID) |
| Calculate LPT Issue from AMM asset pair. | |
| NotTEC | invalidAMMAmount (STAmount const &amount, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt, bool validZero=false) |
| Validate the amount. | |
| NotTEC | invalidAMMAsset (Issue const &issue, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt) |
| NotTEC | invalidAMMAssetPair (Issue const &issue1, Issue const &issue2, std::optional< std::pair< Issue, Issue > > const &pair=std::nullopt) |
| std::optional< std::uint8_t > | ammAuctionTimeSlot (std::uint64_t current, STObject const &auctionSlot) |
| Get time slot of the auction slot. | |
| bool | ammEnabled (Rules const &) |
| Return true if required AMM amendments are enabled. | |
| Number | getFee (std::uint16_t tfee) |
| Convert to the fee from the basis points. | |
| Number | feeMult (std::uint16_t tfee) |
| Get fee multiplier (1 - tfee) @tfee trading fee in basis points. | |
| Number | feeMultHalf (std::uint16_t tfee) |
| Get fee multiplier (1 - tfee / 2) @tfee trading fee in basis points. | |
| STAmount | toSTAmount (IOUAmount const &iou, Issue const &iss) |
| STAmount | toSTAmount (IOUAmount const &iou) |
| STAmount | toSTAmount (XRPAmount const &xrp) |
| STAmount | toSTAmount (XRPAmount const &xrp, Issue const &iss) |
| template<class T > | |
| T | toAmount (STAmount const &amt)=delete |
| template<> | |
| STAmount | toAmount< STAmount > (STAmount const &amt) |
| template<> | |
| IOUAmount | toAmount< IOUAmount > (STAmount const &amt) |
| template<> | |
| XRPAmount | toAmount< XRPAmount > (STAmount const &amt) |
| template<class T > | |
| T | toAmount (IOUAmount const &amt)=delete |
| template<> | |
| IOUAmount | toAmount< IOUAmount > (IOUAmount const &amt) |
| template<class T > | |
| T | toAmount (XRPAmount const &amt)=delete |
| template<> | |
| XRPAmount | toAmount< XRPAmount > (XRPAmount const &amt) |
| template<typename T > | |
| T | toAmount (Issue const &issue, Number const &n, Number::rounding_mode mode=Number::getround()) |
| template<typename T > | |
| T | toMaxAmount (Issue const &issue) |
| STAmount | toSTAmount (Issue const &issue, Number const &n, Number::rounding_mode mode=Number::getround()) |
| template<typename T > | |
| Issue | getIssue (T const &amt) |
| template<typename T > | |
| constexpr T | get (STAmount const &a) |
| template<unsigned minVer, unsigned maxVer, typename Fn , typename... Args> requires (maxVer >= minVer) && (minVer >= RPC::apiMinimumSupportedVersion) && (RPC::apiMaximumValidVersion >= maxVer) && requires { fn(std::integral_constant<unsigned int, minVer>{}, std::forward<Args>(args)...); fn(std::integral_constant<unsigned int, maxVer>{}, std::forward<Args>(args)...); } | |
| void | forApiVersions (Fn const &fn, Args &&... args) |
| template<typename Fn , typename... Args> requires requires { forApiVersions< RPC::apiMinimumSupportedVersion, RPC::apiMaximumValidVersion>(fn, std::forward<Args>(args)...); } | |
| void | forAllApiVersions (Fn const &fn, Args &&... args) |
| Json::Value | to_json (Asset const &asset) |
| constexpr bool | operator== (Asset const &lhs, Asset const &rhs) |
| constexpr std::weak_ordering | operator<=> (Asset const &lhs, Asset const &rhs) |
| constexpr bool | operator== (Currency const &lhs, Asset const &rhs) |
| constexpr bool | equalTokens (Asset const &lhs, Asset const &rhs) |
| bool | isXRP (Asset const &asset) |
| std::string | to_string (Asset const &asset) |
| bool | validJSONAsset (Json::Value const &jv) |
| Asset | assetFromJson (Json::Value const &jv) |
| void | serializeBatch (Serializer &msg, std::uint32_t const &flags, std::vector< uint256 > const &txids) |
| bool | isConsistent (Book const &book) |
| std::string | to_string (Book const &book) |
| std::ostream & | operator<< (std::ostream &os, Book const &x) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, Book const &b) |
| Book | reversed (Book const &book) |
| template<class = void> | |
| secp256k1_context const * | secp256k1Context () |
| ripple::detail::TokenCodecErrcCategory const & | TokenCodecErrcCategory () |
| std::error_code | make_error_code (ripple::TokenCodecErrc e) |
| template<class... Args> | |
| sha512_half_hasher::result_type | sha512Half (Args const &... args) |
| Returns the SHA512-Half of a series of objects. | |
| template<class... Args> | |
| sha512_half_hasher_s::result_type | sha512Half_s (Args const &... args) |
| Returns the SHA512-Half of a series of objects. | |
| std::string | rpcErrorString (Json::Value const &jv) |
| Returns a single string with the contents of an RPC error. | |
| std::map< std::string, AmendmentSupport > const & | allAmendments () |
| All amendments libxrpl knows about. | |
| std::optional< uint256 > | getRegisteredFeature (std::string const &name) |
| size_t | featureToBitsetIndex (uint256 const &f) |
| uint256 | bitsetIndexToFeature (size_t i) |
| std::string | featureToName (uint256 const &f) |
| template<class F > | |
| void | foreachFeature (FeatureBitset bs, F &&f) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, HashPrefix const &hp) noexcept |
| uint256 | getBookBase (Book const &book) |
| uint256 | getQualityNext (uint256 const &uBase) |
| std::uint64_t | getQuality (uint256 const &uBase) |
| uint256 | getTicketIndex (AccountID const &account, std::uint32_t uSequence) |
| uint256 | getTicketIndex (AccountID const &account, SeqProxy ticketSeq) |
| MPTID | makeMptID (std::uint32_t sequence, AccountID const &account) |
| std::string | to_string (IOUAmount const &amount) |
| IOUAmount | mulRatio (IOUAmount const &amt, std::uint32_t num, std::uint32_t den, bool roundUp) |
| bool | getSTNumberSwitchover () |
| void | setSTNumberSwitchover (bool v) |
| bool | isConsistent (Issue const &ac) |
| std::string | to_string (Issue const &ac) |
| Json::Value | to_json (Issue const &is) |
| Issue | issueFromJson (Json::Value const &v) |
| std::ostream & | operator<< (std::ostream &os, Issue const &x) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, Issue const &r) |
| Issue const & | xrpIssue () |
| Returns an asset specifier that represents XRP. | |
| Issue const & | noIssue () |
| Returns an asset specifier that represents no account and currency. | |
| bool | isXRP (Issue const &issue) |
| std::optional< KeyType > | keyTypeFromString (std::string const &s) |
| char const * | to_string (KeyType type) |
| template<class Stream > | |
| Stream & | operator<< (Stream &s, KeyType type) |
| bool | getCloseAgree (LedgerHeader const &info) |
| void | addRaw (LedgerHeader const &, Serializer &, bool includeHash=false) |
| LedgerHeader | deserializeHeader (Slice data, bool hasHash=false) |
| Deserialize a ledger header from a byte array. | |
| LedgerHeader | deserializePrefixedHeader (Slice data, bool hasHash=false) |
| Deserialize a ledger header (prefixed with 4 bytes) from a byte array. | |
| std::string | to_string (MPTAmount const &amount) |
| MPTAmount | mulRatio (MPTAmount const &amt, std::uint32_t num, std::uint32_t den, bool roundUp) |
| constexpr bool | operator== (MPTIssue const &lhs, MPTIssue const &rhs) |
| constexpr std::weak_ordering | operator<=> (MPTIssue const &lhs, MPTIssue const &rhs) |
| bool | isXRP (MPTID const &) |
| MPT is a non-native token. | |
| Json::Value | to_json (MPTIssue const &mptIssue) |
| std::string | to_string (MPTIssue const &mptIssue) |
| MPTIssue | mptIssueFromJson (Json::Value const &jv) |
| void | serializePayChanAuthorization (Serializer &msg, uint256 const &key, XRPAmount const &amt) |
| std::ostream & | operator<< (std::ostream &os, PublicKey const &pk) |
| Print the public key to a stream. | |
| bool | operator== (PublicKey const &lhs, PublicKey const &rhs) |
| bool | operator< (PublicKey const &lhs, PublicKey const &rhs) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, PublicKey const &pk) |
| std::string | toBase58 (TokenType type, PublicKey const &pk) |
| template<> | |
| std::optional< PublicKey > | parseBase58 (TokenType type, std::string const &s) |
| std::optional< ECDSACanonicality > | ecdsaCanonicality (Slice const &sig) |
| Determines the canonicality of a signature. | |
| bool | verifyDigest (PublicKey const &publicKey, uint256 const &digest, Slice const &sig, bool mustBeFullyCanonical=true) noexcept |
| Verify a secp256k1 signature on the digest of a message. | |
| bool | verify (PublicKey const &publicKey, Slice const &m, Slice const &sig, bool mustBeFullyCanonical=true) noexcept |
| Verify a signature on a message. | |
| NodeID | calcNodeID (PublicKey const &) |
| Calculate the 160-bit node ID from a node public key. | |
| AccountID | calcAccountID (PublicKey const &pk) |
| std::string | getFingerprint (beast::IP::Endpoint const &address, std::optional< PublicKey > const &publicKey=std::nullopt, std::optional< std::string > const &id=std::nullopt) |
| bool | operator== (Rate const &lhs, Rate const &rhs) noexcept |
| bool | operator< (Rate const &lhs, Rate const &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &os, Rate const &rate) |
| STAmount | multiply (STAmount const &amount, Rate const &rate) |
| STAmount | multiplyRound (STAmount const &amount, Rate const &rate, bool roundUp) |
| STAmount | multiplyRound (STAmount const &amount, Rate const &rate, Asset const &asset, bool roundUp) |
| STAmount | divide (STAmount const &amount, Rate const &rate) |
| STAmount | divideRound (STAmount const &amount, Rate const &rate, bool roundUp) |
| STAmount | divideRound (STAmount const &amount, Rate const &rate, Asset const &asset, bool roundUp) |
| bool | isRpcError (Json::Value jvResult) |
| Json::Value | rpcError (int iError) |
| bool | isFeatureEnabled (uint256 const &feature) |
| std::optional< Rules > const & | getCurrentTransactionRules () |
| void | setCurrentTransactionRules (std::optional< Rules > r) |
| bool | operator== (SecretKey const &lhs, SecretKey const &rhs) |
| bool | operator!= (SecretKey const &lhs, SecretKey const &rhs) |
| template<> | |
| std::optional< SecretKey > | parseBase58 (TokenType type, std::string const &s) |
| Parse a secret key. | |
| std::string | toBase58 (TokenType type, SecretKey const &sk) |
| SecretKey | randomSecretKey () |
| Create a secret key using secure random numbers. | |
| SecretKey | generateSecretKey (KeyType type, Seed const &seed) |
| Generate a new secret key deterministically. | |
| PublicKey | derivePublicKey (KeyType type, SecretKey const &sk) |
| Derive the public key from a secret key. | |
| std::pair< PublicKey, SecretKey > | generateKeyPair (KeyType type, Seed const &seed) |
| Generate a key pair deterministically. | |
| std::pair< PublicKey, SecretKey > | randomKeyPair (KeyType type) |
| Create a key pair using secure random numbers. | |
| Seed | randomSeed () |
| Create a seed using secure random numbers. | |
| Seed | generateSeed (std::string const &passPhrase) |
| Generate a seed deterministically. | |
| template<> | |
| std::optional< Seed > | parseBase58 (std::string const &s) |
| Parse a Base58 encoded string into a seed. | |
| std::optional< Seed > | parseGenericSeed (std::string const &str, bool rfc1751=true) |
| Attempt to parse a string as a seed. | |
| std::string | seedAs1751 (Seed const &seed) |
| Encode a Seed in RFC1751 format. | |
| std::string | toBase58 (Seed const &seed) |
| Format a seed as a Base58 string. | |
| template<class Object > | |
| Blob | serializeBlob (Object const &o) |
| Serialize an object to a blob. | |
| std::string | serializeHex (STObject const &o) |
| Serialize an object to a hex string. | |
| int | field_code (SerializedTypeID id, int index) |
| int | field_code (int id, int index) |
| template<class T > | |
| OptionaledField< T > | operator~ (TypedField< T > const &f) |
| void | sign (STObject &st, HashPrefix const &prefix, KeyType type, SecretKey const &sk, SF_VL const &sigField=sfSignature) |
| Sign an STObject. | |
| bool | verify (STObject const &st, HashPrefix const &prefix, PublicKey const &pk, SF_VL const &sigField=sfSignature) |
Returns true if STObject contains valid signature. | |
| Serializer | buildMultiSigningData (STObject const &obj, AccountID const &signingID) |
| Return a Serializer suitable for computing a multisigning TxnSignature. | |
| Serializer | startMultiSigningData (STObject const &obj) |
| Break the multi-signing hash computation into 2 parts for optimization. | |
| void | finishMultiSigningData (AccountID const &signingID, Serializer &s) |
| bool | operator== (STAccount const &lhs, STAccount const &rhs) |
| auto | operator< (STAccount const &lhs, STAccount const &rhs) |
| bool | operator== (STAccount const &lhs, AccountID const &rhs) |
| auto | operator< (STAccount const &lhs, AccountID const &rhs) |
| auto | operator< (AccountID const &lhs, STAccount const &rhs) |
| STAmount | amountFromQuality (std::uint64_t rate) |
| STAmount | amountFromString (Asset const &asset, std::string const &amount) |
| STAmount | amountFromJson (SField const &name, Json::Value const &v) |
| bool | amountFromJsonNoThrow (STAmount &result, Json::Value const &jvSource) |
| STAmount const & | toSTAmount (STAmount const &a) |
| bool | isLegalNet (STAmount const &value) |
| bool | operator== (STAmount const &lhs, STAmount const &rhs) |
| bool | operator< (STAmount const &lhs, STAmount const &rhs) |
| bool | operator!= (STAmount const &lhs, STAmount const &rhs) |
| bool | operator> (STAmount const &lhs, STAmount const &rhs) |
| bool | operator<= (STAmount const &lhs, STAmount const &rhs) |
| bool | operator>= (STAmount const &lhs, STAmount const &rhs) |
| STAmount | operator- (STAmount const &value) |
| STAmount | operator+ (STAmount const &v1, STAmount const &v2) |
| STAmount | operator- (STAmount const &v1, STAmount const &v2) |
| STAmount | divide (STAmount const &v1, STAmount const &v2, Asset const &asset) |
| STAmount | multiply (STAmount const &v1, STAmount const &v2, Asset const &asset) |
| STAmount | mulRound (STAmount const &v1, STAmount const &v2, Asset const &asset, bool roundUp) |
| STAmount | mulRoundStrict (STAmount const &v1, STAmount const &v2, Asset const &asset, bool roundUp) |
| STAmount | divRound (STAmount const &v1, STAmount const &v2, Asset const &asset, bool roundUp) |
| STAmount | divRoundStrict (STAmount const &v1, STAmount const &v2, Asset const &asset, bool roundUp) |
| std::uint64_t | getRate (STAmount const &offerOut, STAmount const &offerIn) |
| bool | isXRP (STAmount const &amount) |
| bool | canAdd (STAmount const &a, STAmount const &b) |
| Safely checks if two STAmount values can be added without overflow, underflow, or precision loss. | |
| bool | canSubtract (STAmount const &a, STAmount const &b) |
| Determines if it is safe to subtract one STAmount from another. | |
| template<typename T > requires requires(T const& t) { { t.getJson(JsonOptions::none) } -> std::convertible_to<Json::Value>; } | |
| Json::Value | to_json (T const &t) |
| std::ostream & | operator<< (std::ostream &out, STBase const &t) |
| STCurrency | currencyFromJson (SField const &name, Json::Value const &v) |
| bool | operator== (STCurrency const &lhs, STCurrency const &rhs) |
| bool | operator!= (STCurrency const &lhs, STCurrency const &rhs) |
| bool | operator< (STCurrency const &lhs, STCurrency const &rhs) |
| bool | operator== (STCurrency const &lhs, Currency const &rhs) |
| bool | operator< (STCurrency const &lhs, Currency const &rhs) |
| template<class U , class T > | |
| void | set (STObject &st, TypedField< U > const &f, T &&t) |
| Set a field value in an STObject. | |
| template<class Init > | |
| void | set (STObject &st, TypedField< STBlob > const &f, std::size_t size, Init &&init) |
| Set a blob field using an init function. | |
| template<class = void> | |
| void | set (STObject &st, TypedField< STBlob > const &f, void const *data, std::size_t size) |
| Set a blob field from data. | |
| template<class U > | |
| void | erase (STObject &st, TypedField< U > const &f) |
| Remove a field in an STObject. | |
| STIssue | issueFromJson (SField const &name, Json::Value const &v) |
| constexpr bool | operator== (STIssue const &lhs, STIssue const &rhs) |
| constexpr std::weak_ordering | operator<=> (STIssue const &lhs, STIssue const &rhs) |
| constexpr bool | operator== (STIssue const &lhs, Asset const &rhs) |
| constexpr std::weak_ordering | operator<=> (STIssue const &lhs, Asset const &rhs) |
| std::ostream & | operator<< (std::ostream &out, STNumber const &rhs) |
| NumberParts | partsFromString (std::string const &number) |
| STNumber | numberFromJson (SField const &field, Json::Value const &value) |
| void | throwFieldNotFound (SField const &field) |
| bool | passesLocalChecks (STObject const &st, std::string &) |
| std::shared_ptr< STTx const > | sterilize (STTx const &stx) |
| Sterilize a transaction. | |
| bool | isPseudoTx (STObject const &tx) |
| Check whether a transaction is a pseudo-transaction. | |
| bool | operator== (STXChainBridge const &lhs, STXChainBridge const &rhs) |
| bool | operator< (STXChainBridge const &lhs, STXChainBridge const &rhs) |
| static std::string const & | systemName () |
| bool | isLegalAmount (XRPAmount const &amount) |
| Returns true if the amount does not exceed the initial XRP in existence. | |
| bool | isLegalAmountSigned (XRPAmount const &amount) |
| Returns true if the absolute value of the amount does not exceed the initial XRP in existence. | |
| static std::string const & | systemCurrencyCode () |
| constexpr TERUnderlyingType | TERtoInt (TELcodes v) |
| constexpr TERUnderlyingType | TERtoInt (TEMcodes v) |
| constexpr TERUnderlyingType | TERtoInt (TEFcodes v) |
| constexpr TERUnderlyingType | TERtoInt (TERcodes v) |
| constexpr TERUnderlyingType | TERtoInt (TEScodes v) |
| constexpr TERUnderlyingType | TERtoInt (TECcodes v) |
| template<typename L , typename R > | |
| constexpr auto | operator== (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
| template<typename L , typename R > | |
| constexpr auto | operator!= (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
| template<typename L , typename R > | |
| constexpr auto | operator< (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
| template<typename L , typename R > | |
| constexpr auto | operator<= (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
| template<typename L , typename R > | |
| constexpr auto | operator> (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
| template<typename L , typename R > | |
| constexpr auto | operator>= (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
| bool | isTelLocal (TER x) noexcept |
| bool | isTemMalformed (TER x) noexcept |
| bool | isTefFailure (TER x) noexcept |
| bool | isTerRetry (TER x) noexcept |
| bool | isTesSuccess (TER x) noexcept |
| bool | isTecClaim (TER x) noexcept |
| std::unordered_map< TERUnderlyingType, std::pair< char const *const, char const *const > > const & | transResults () |
| bool | transResultInfo (TER code, std::string &token, std::string &text) |
| std::string | transToken (TER code) |
| std::string | transHuman (TER code) |
| std::optional< TER > | transCode (std::string const &token) |
| template<class T > | |
| std::optional< T > | parseBase58 (std::string const &s) |
| template<class T > | |
| std::optional< T > | parseBase58 (TokenType type, std::string const &s) |
| std::string | encodeBase58Token (TokenType type, void const *token, std::size_t size) |
| Encode data in Base58Check format using XRPL alphabet. | |
| std::string | decodeBase58Token (std::string const &s, TokenType type) |
| Currency const & | xrpCurrency () |
| XRP currency. | |
| Currency const & | noCurrency () |
| A placeholder for empty currencies. | |
| Currency const & | badCurrency () |
| We deliberately disallow the currency that looks like "XRP" because too many people were using it instead of the correct XRP currency. | |
| bool | to_currency (Currency &, std::string const &) |
| Tries to convert a string to a Currency, returns true on success. | |
| Currency | to_currency (std::string const &) |
| Tries to convert a string to a Currency, returns noCurrency() on failure. | |
| template<class Source1 , class Source2 , unit::muldivable< Source1, Source2 > Dest> | |
| std::optional< Dest > | mulDiv (Source1 value, Dest mul, Source2 div) |
| template<class Source1 , class Source2 , unit::muldivCommutable< Source1, Source2 > Dest> | |
| std::optional< Dest > | mulDiv (Dest value, Source1 mul, Source2 div) |
| template<unit::muldivDest Dest> | |
| std::optional< Dest > | mulDiv (std::uint64_t value, Dest mul, std::uint64_t div) |
| template<unit::muldivDest Dest> | |
| std::optional< Dest > | mulDiv (Dest value, std::uint64_t mul, std::uint64_t div) |
| template<unit::muldivSource Source1, unit::muldivSources< Source1 > Source2> | |
| std::optional< std::uint64_t > | mulDiv (Source1 value, std::uint64_t mul, Source2 div) |
| template<unit::muldivSource Source1, unit::muldivSources< Source1 > Source2> | |
| std::optional< std::uint64_t > | mulDiv (std::uint64_t value, Source1 mul, Source2 div) |
| template<unit::IntegralValue Dest, unit::CastableValue< Dest > Src> | |
| constexpr Dest | safe_cast (Src s) noexcept |
| template<unit::IntegralValue Dest, unit::CastableValue< Dest > Src> | |
| constexpr Dest | unsafe_cast (Src s) noexcept |
| template<class TAttestation > | |
| bool | operator== (XChainAttestationsBase< TAttestation > const &lhs, XChainAttestationsBase< TAttestation > const &rhs) |
| template<class Char , class Traits > | |
| std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, XRPAmount const &q) |
| std::string | to_string (XRPAmount const &amount) |
| XRPAmount | mulRatio (XRPAmount const &amt, std::uint32_t num, std::uint32_t den, bool roundUp) |
| void | HTTPReply (int nStatus, std::string const &strMsg, Json::Output const &, beast::Journal j) |
| template<class T > | |
| decltype(auto) | get_lowest_layer (T &t) noexcept |
| std::ostream & | operator<< (std::ostream &os, Port const &p) |
| void | parse_Port (ParsedPort &port, Section const §ion, std::ostream &log) |
| template<class Handler > | |
| std::unique_ptr< Server > | make_Server (Handler &handler, boost::asio::io_context &io_context, beast::Journal journal) |
| Create the HTTP server using the specified handler. | |
| int | popcnt16 (std::uint16_t a) |
| bool | operator== (SHAMap::const_iterator const &x, SHAMap::const_iterator const &y) |
| bool | operator!= (SHAMap::const_iterator const &x, SHAMap::const_iterator const &y) |
| void | intrusive_ptr_add_ref (SHAMapItem const *x) |
| void | intrusive_ptr_release (SHAMapItem const *x) |
| boost::intrusive_ptr< SHAMapItem > | make_shamapitem (uint256 const &tag, Slice data) |
| boost::intrusive_ptr< SHAMapItem > | make_shamapitem (SHAMapItem const &other) |
| std::string | to_string (SHAMapType t) |
| std::string | to_string (SHAMapNodeID const &node) |
| std::ostream & | operator<< (std::ostream &out, SHAMapNodeID const &node) |
| unsigned int | selectBranch (SHAMapNodeID const &id, uint256 const &hash) |
| Returns the branch that would contain the given hash. | |
| std::ostream & | operator<< (std::ostream &os, Section const §ion) |
| std::ostream & | operator<< (std::ostream &ss, BasicConfig const &c) |
| static DebugSink & | debugSink () |
| static unsigned | divu10 (uint128_t &u) |
| static std::uint32_t | confineOwnerCount (std::uint32_t current, std::int32_t adjustment, std::optional< AccountID > const &id=std::nullopt, beast::Journal j=beast::Journal{beast::Journal::getNullSink()}) |
| TER | canAddHolding (ReadView const &view, Issue const &issue) |
| TER | canAddHolding (ReadView const &view, MPTIssue const &mptIssue) |
| static TER | rippleCreditIOU (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, bool bCheckIssuer, beast::Journal j) |
| static TER | rippleSendIOU (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, STAmount &saActual, beast::Journal j, WaiveTransferFee waiveFee) |
| static TER | accountSendIOU (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, beast::Journal j, WaiveTransferFee waiveFee) |
| static TER | rippleCreditMPT (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, beast::Journal j) |
| static TER | rippleSendMPT (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, STAmount &saActual, beast::Journal j, WaiveTransferFee waiveFee) |
| static TER | accountSendMPT (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, beast::Journal j, WaiveTransferFee waiveFee) |
| static bool | updateTrustLine (ApplyView &view, SLE::pointer state, bool bSenderHigh, AccountID const &sender, STAmount const &before, STAmount const &after, beast::Journal j) |
| TER | cleanupOnAccountDelete (ApplyView &view, Keylet const &ownerDirKeylet, EntryDeleter const &deleter, beast::Journal j, std::optional< uint16_t > maxNodesToDelete) |
| template<> | |
| std::optional< AccountID > | parseBase58 (std::string const &s) |
| Parse AccountID from checked, base58 string. | |
| std::size_t | hash_value (ripple::uint256 const &feature) |
| uint256 | registerFeature (std::string const &name, Supported support, VoteBehavior vote) |
| uint256 | retireFeature (std::string const &name) |
| bool | registrationIsDone () |
| Tell FeatureCollections when registration is complete. | |
| template<class... Args> | |
| static uint256 | indexHash (LedgerNameSpace space, Args const &... args) |
| template<> | |
| std::optional< PublicKey > | parseBase58 (TokenType type, std::string const &s) |
| Parse a secret key. | |
| static std::optional< Slice > | sigPart (Slice &buf) |
| static std::string | sliceToHex (Slice const &slice) |
| static bool | ed25519Canonical (Slice const &sig) |
| template<STAmount( *DivRoundFunc)(STAmount const &, STAmount const &, Asset const &, bool) > | |
| static Amounts | ceil_in_impl (Amounts const &amount, STAmount const &limit, bool roundUp, Quality const &quality) |
| template<STAmount( *MulRoundFunc)(STAmount const &, STAmount const &, Asset const &, bool) > | |
| static Amounts | ceil_out_impl (Amounts const &amount, STAmount const &limit, bool roundUp, Quality const &quality) |
| Quality | composed_quality (Quality const &lhs, Quality const &rhs) |
| Rate const | parityRate (QUALITY_ONE) |
| template<> | |
| std::optional< SecretKey > | parseBase58 (TokenType type, std::string const &s) |
| Parse a secret key. | |
| template<> | |
| std::optional< Seed > | parseBase58 (std::string const &s) |
| Parse AccountID from checked, base58 string. | |
| SField const | sfInvalid (access, -1, "") |
| SField const | sfGeneric (access, 0, "Generic") |
| static std::int64_t | getInt64Value (STAmount const &amount, bool valid, char const *error) |
| static std::int64_t | getSNValue (STAmount const &amount) |
| static std::int64_t | getMPTValue (STAmount const &amount) |
| static bool | areComparable (STAmount const &v1, STAmount const &v2) |
| static std::uint64_t | muldiv (std::uint64_t multiplier, std::uint64_t multiplicand, std::uint64_t divisor) |
| static std::uint64_t | muldiv_round (std::uint64_t multiplier, std::uint64_t multiplicand, std::uint64_t divisor, std::uint64_t rounding) |
| static void | canonicalizeRound (bool native, std::uint64_t &value, int &offset, bool) |
| static void | canonicalizeRoundStrict (bool native, std::uint64_t &value, int &offset, bool roundUp) |
| template<void(*)(bool, std::uint64_t &, int &, bool) CanonicalizeFunc, typename MightSaveRound > | |
| static STAmount | mulRoundImpl (STAmount const &v1, STAmount const &v2, Asset const &asset, bool roundUp) |
| template<typename MightSaveRound > | |
| static STAmount | divRoundImpl (STAmount const &num, STAmount const &den, Asset const &asset, bool roundUp) |
| static auto | getTxFormat (TxType type) |
| static Blob | getSigningData (STTx const &that) |
| static Expected< void, std::string > | singleSignHelper (STObject const &sigObject, Slice const &data, bool const fullyCanonical) |
| Expected< void, std::string > | multiSignHelper (STObject const &sigObject, std::optional< AccountID > txnAccountID, bool const fullyCanonical, std::function< Serializer(AccountID const &)> makeMsg, Rules const &rules) |
| static bool | isMemoOkay (STObject const &st, std::string &reason) |
| static bool | isAccountFieldOkay (STObject const &st) |
| static bool | invalidMPTAmountInTx (STObject const &tx) |
| static bool | isRawTransactionOkay (STObject const &st, std::string &reason) |
| template<class Hasher > | |
| static Hasher::result_type | digest (void const *data, std::size_t size) noexcept |
| template<class Hasher , class T , std::size_t N, class = std::enable_if_t<sizeof(T) == 1>> | |
| static Hasher::result_type | digest (std::array< T, N > const &v) |
| template<class Hasher , class... Args> | |
| static Hasher::result_type | digest2 (Args const &... args) |
| static void | checksum (void *out, void const *message, std::size_t size) |
| Calculate a 4-byte checksum of the data. | |
| bool | operator== (XChainClaimAttestation const &lhs, XChainClaimAttestation const &rhs) |
| bool | operator== (XChainCreateAccountAttestation const &lhs, XChainCreateAccountAttestation const &rhs) |
| std::string | getHTTPHeaderTimestamp () |
| static void | populate (Section const §ion, std::string const &field, std::ostream &log, std::vector< boost::asio::ip::network_v4 > &nets4, std::vector< boost::asio::ip::network_v6 > &nets6) |
| intr_ptr::SharedPtr< SHAMapLeafNode > | makeTypedLeaf (SHAMapNodeType type, boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t owner) |
| static uint256 const & | depthMask (unsigned int depth) |
| BEAST_DEFINE_TESTSUITE (AccountTxPaging, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (AmendmentTable, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Check, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Clawback, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Discrepancy, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (FixNFTokenPageLinks, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Freeze, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (LedgerLoad, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (LoadFeeTrack, app, ripple) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenBaseUtil, app, ripple, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenDisallowIncoming, app, ripple, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenWOMintOffer, app, ripple, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenWOModify, app, ripple, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenAllFeatures, app, ripple, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenAuth, app, ripple, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenBurn, app, ripple, 3) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenDir, app, ripple, 1) | |
| BEAST_DEFINE_TESTSUITE (OfferStream, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (SetRegularKey, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Ticket, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (TrustAndBalance, app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Apply, tx, ripple) | |
| BEAST_DEFINE_TESTSUITE_PRIO (Vault, app, ripple, 1) | |
| BEAST_DEFINE_TESTSUITE (FileUtilities, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (hardened_hash, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (IOUAmount, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (KeyCache, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (Number, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (PerfLog, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (StringUtilities, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (TaggedCache, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (XRPAmount, basics, ripple) | |
| BEAST_DEFINE_TESTSUITE (Config, core, ripple) | |
| BEAST_DEFINE_TESTSUITE (SociDB, core, ripple) | |
| BEAST_DEFINE_TESTSUITE (Workers, core, ripple) | |
| BEAST_DEFINE_TESTSUITE (ProtocolVersion, overlay, ripple) | |
| BEAST_DEFINE_TESTSUITE (short_read, overlay, ripple) | |
| BEAST_DEFINE_TESTSUITE (BuildInfo, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (Hooks, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (InnerObjectFormatsParsedJSON, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (Issue, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (Memo, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (PublicKey, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (Quality, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (SecretKey, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (Seed, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (SeqProxy, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (Serializer, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (STAccount, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (STAmount, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (STInteger, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (STNumber, protocol, ripple) | |
| void | testCompile (std::ostream &out) |
| BEAST_DEFINE_TESTSUITE (STObject, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (STParsedJSON, protocol, ripple) | |
| bool | matches (char const *string, char const *regex) |
| Return true if the string loosely matches the regex. | |
| BEAST_DEFINE_TESTSUITE (STTx, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (InnerObjectFormatsSerializer, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (STValidation, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (TER, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (AccountCurrencies, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE_PRIO (AccountSet, rpc, ripple, 1) | |
| BEAST_DEFINE_TESTSUITE (AmendmentBlocked, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (Connect, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (Feature, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (GetCounts, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (LedgerClosed, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE_PRIO (LedgerData, rpc, ripple, 1) | |
| BEAST_DEFINE_TESTSUITE (LedgerHeader, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (NoRippleCheck, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (NoRippleCheckLimits, rpc, ripple, 1) | |
| BEAST_DEFINE_TESTSUITE (OwnerInfo, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (Peers, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (Transaction, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (TransactionEntry, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (TransactionHistory, rpc, ripple) | |
| BEAST_DEFINE_TESTSUITE (Version, rpc, ripple) | |
| TEST_SUITE_BEGIN ("json_value") | |
| TEST_CASE ("construct and compare Json::StaticString") | |
| TEST_CASE ("different types") | |
| TEST_CASE ("compare strings") | |
| TEST_CASE ("bool") | |
| TEST_CASE ("bad json") | |
| TEST_CASE ("edge cases") | |
| TEST_CASE ("copy") | |
| TEST_CASE ("move") | |
| TEST_CASE ("comparisons") | |
| TEST_CASE ("compact") | |
| TEST_CASE ("conversions") | |
| TEST_CASE ("access members") | |
| TEST_CASE ("remove members") | |
| TEST_CASE ("iterator") | |
| TEST_CASE ("nest limits") | |
| TEST_CASE ("memory leak") | |
| TEST_SUITE_END () | |
| uint256 | proposalUniqueId (uint256 const &proposeHash, uint256 const &previousLedger, std::uint32_t proposeSeq, NetClock::time_point closeTime, Slice const &publicKey, Slice const &signature) |
| Calculate a unique identifier for a signed proposal. | |
| RCLValidatedLedger::Seq | mismatch (RCLValidatedLedger const &a, RCLValidatedLedger const &b) |
| void | handleNewValidation (Application &app, std::shared_ptr< STValidation > const &val, std::string const &source, BypassAccept const bypassAccept=BypassAccept::no, std::optional< beast::Journal > j=std::nullopt) |
| Handle a new validation. | |
| std::shared_ptr< Ledger > | buildLedger (std::shared_ptr< Ledger const > const &parent, NetClock::time_point closeTime, bool const closeTimeCorrect, NetClock::duration closeResolution, Application &app, CanonicalTXSet &txns, std::set< TxID > &failedTxs, beast::Journal j) |
| Build a new ledger by applying consensus transactions. | |
| std::shared_ptr< Ledger > | buildLedger (LedgerReplay const &replayData, ApplyFlags applyFlags, Application &app, beast::Journal j) |
| Build a new ledger by replaying transactions. | |
| template<class ApplyTxs > | |
| std::shared_ptr< Ledger > | buildLedgerImpl (std::shared_ptr< Ledger const > const &parent, NetClock::time_point closeTime, bool const closeTimeCorrect, NetClock::duration closeResolution, Application &app, beast::Journal j, ApplyTxs &&applyTxs) |
| std::size_t | applyTransactions (Application &app, std::shared_ptr< Ledger const > const &built, CanonicalTXSet &txns, std::set< TxID > &failed, OpenView &view, beast::Journal j) |
| Apply a set of consensus transactions to a ledger. | |
| static std::vector< uint256 > | neededHashes (uint256 const &root, SHAMap &map, int max, SHAMapSyncFilter *filter) |
| std::unique_ptr< InboundLedgers > | make_InboundLedgers (Application &app, InboundLedgers::clock_type &clock, beast::insight::Collector::ptr const &collector) |
| std::unique_ptr< InboundTransactions > | make_InboundTransactions (Application &app, beast::insight::Collector::ptr const &collector, std::function< void(std::shared_ptr< SHAMap > const &, bool)> gotSet) |
| std::unique_ptr< LedgerCleaner > | make_LedgerCleaner (Application &app, beast::Journal journal) |
| static bool | shouldAcquire (std::uint32_t const currentLedger, std::uint32_t const ledgerHistory, std::optional< LedgerIndex > const minimumOnline, std::uint32_t const candidateLedger, beast::Journal j) |
| static void | populateFetchPack (SHAMap const &want, SHAMap const *have, std::uint32_t cnt, protocol::TMGetObjectByHash *into, std::uint32_t seq, bool withLeaves=true) |
| Populate a fetch pack with data from the map the recipient wants. | |
| void | addJson (Json::Value &, LedgerFill const &) |
| Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger. | |
| Json::Value | getJson (LedgerFill const &) |
| Return a new Json::Value representing the ledger with given options. | |
| std::unique_ptr< LocalTxs > | make_LocalTxs () |
| std::string | debugTxstr (std::shared_ptr< STTx const > const &tx) |
| std::string | debugTostr (OrderedTxs const &set) |
| std::string | debugTostr (SHAMap const &set) |
| std::string | debugTostr (std::shared_ptr< ReadView const > const &view) |
| uint256 | calculateLedgerHash (LedgerInfo const &info) |
| std::shared_ptr< STTx const > | deserializeTx (SHAMapItem const &item) |
| Deserialize a SHAMapItem containing a single STTx. | |
| std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > | deserializeTxPlusMeta (SHAMapItem const &item) |
| Deserialize a SHAMapItem containing STTx + STObject metadata. | |
| bool | isFlagLedger (LedgerIndex seq) |
| Returns true if the given ledgerIndex is a flag ledgerIndex. | |
| static bool | saveValidatedLedger (Application &app, std::shared_ptr< Ledger const > const &ledger, bool current) |
| bool | pendSaveValidated (Application &app, std::shared_ptr< Ledger const > const &ledger, bool isSynchronous, bool isCurrent) |
| Save, or arrange to save, a fully-validated ledger Returns false on error. | |
| std::shared_ptr< Ledger > | loadLedgerHelper (LedgerInfo const &info, Application &app, bool acquire) |
| static void | finishLoadByIndexOrHash (std::shared_ptr< Ledger > const &ledger, Config const &config, beast::Journal j) |
| std::tuple< std::shared_ptr< Ledger >, std::uint32_t, uint256 > | getLatestLedger (Application &app) |
| std::shared_ptr< Ledger > | loadByIndex (std::uint32_t ledgerIndex, Application &app, bool acquire) |
| std::shared_ptr< Ledger > | loadByHash (uint256 const &ledgerHash, Application &app, bool acquire) |
| static void | log_one (ReadView const &ledger, uint256 const &tx, char const *msg, beast::Journal &j) |
| static void | log_metadata_difference (ReadView const &builtLedger, ReadView const &validLedger, uint256 const &tx, beast::Journal j) |
| static std::vector< SHAMapItem const * > | leaves (SHAMap const &sm) |
| static void | fixConfigPorts (Config &config, Endpoints const &endpoints) |
| std::unique_ptr< Application > | make_Application (std::unique_ptr< Config > config, std::unique_ptr< Logs > logs, std::unique_ptr< TimeKeeper > timeKeeper) |
| std::unique_ptr< CollectorManager > | make_CollectorManager (Section const ¶ms, beast::Journal journal) |
| std::unique_ptr< LoadManager > | make_LoadManager (Application &app, beast::Journal journal) |
| bool | adjustDescriptorLimit (int needed, beast::Journal j) |
| void | printHelp (po::options_description const &desc) |
| int | run (int argc, char **argv) |
| std::pair< PublicKey, SecretKey > | getNodeIdentity (Application &app, boost::program_options::variables_map const &cmdline) |
| The cryptographic credentials identifying this server instance. | |
| std::unique_ptr< AmendmentTable > | make_AmendmentTable (Application &app, std::chrono::seconds majorityTime, std::vector< AmendmentTable::FeatureInfo > const &supported, Section const &enabled, Section const &vetoed, beast::Journal journal) |
| STAmount | ammLPTokens (STAmount const &asset1, STAmount const &asset2, Issue const &lptIssue) |
| Calculate LP Tokens given AMM pool reserves. | |
| STAmount | lpTokensOut (STAmount const &asset1Balance, STAmount const &asset1Deposit, STAmount const &lptAMMBalance, std::uint16_t tfee) |
| Calculate LP Tokens given asset's deposit amount. | |
| STAmount | ammAssetIn (STAmount const &asset1Balance, STAmount const &lptAMMBalance, STAmount const &lpTokens, std::uint16_t tfee) |
| Calculate asset deposit given LP Tokens. | |
| STAmount | lpTokensIn (STAmount const &asset1Balance, STAmount const &asset1Withdraw, STAmount const &lptAMMBalance, std::uint16_t tfee) |
| Calculate LP Tokens given asset's withdraw amount. | |
| STAmount | ammAssetOut (STAmount const &assetBalance, STAmount const &lptAMMBalance, STAmount const &lpTokens, std::uint16_t tfee) |
| Calculate asset withdrawal by tokens. | |
| bool | withinRelativeDistance (Quality const &calcQuality, Quality const &reqQuality, Number const &dist) |
| Check if the relative distance between the qualities is within the requested distance. | |
| template<typename Amt > requires ( std::is_same_v<Amt, STAmount> || std::is_same_v<Amt, IOUAmount> || std::is_same_v<Amt, XRPAmount> || std::is_same_v<Amt, Number>) | |
| bool | withinRelativeDistance (Amt const &calc, Amt const &req, Number const &dist) |
| Check if the relative distance between the amounts is within the requested distance. | |
| std::optional< Number > | solveQuadraticEqSmallest (Number const &a, Number const &b, Number const &c) |
| Solve quadratic equation to find takerGets or takerPays. | |
| template<typename TIn , typename TOut > | |
| std::optional< TAmounts< TIn, TOut > > | getAMMOfferStartWithTakerGets (TAmounts< TIn, TOut > const &pool, Quality const &targetQuality, std::uint16_t const &tfee) |
| Generate AMM offer starting with takerGets when AMM pool from the payment perspective is IOU(in)/XRP(out) Equations: Spot Price Quality after the offer is consumed: Qsp = (O - o) / (I + i) – equation (1) where O is poolPays, I is poolGets, o is takerGets, i is takerPays Swap out: i = (I * o) / (O - o) * f – equation (2) where f is (1 - tfee/100000), tfee is in basis points Effective price targetQuality: Qep = o / i – equation (3) There are two scenarios to consider A) Qsp = Qep. | |
| template<typename TIn , typename TOut > | |
| std::optional< TAmounts< TIn, TOut > > | getAMMOfferStartWithTakerPays (TAmounts< TIn, TOut > const &pool, Quality const &targetQuality, std::uint16_t tfee) |
| Generate AMM offer starting with takerPays when AMM pool from the payment perspective is XRP(in)/IOU(out) or IOU(in)/IOU(out). | |
| template<typename TIn , typename TOut > | |
| std::optional< TAmounts< TIn, TOut > > | changeSpotPriceQuality (TAmounts< TIn, TOut > const &pool, Quality const &quality, std::uint16_t tfee, Rules const &rules, beast::Journal j) |
| Generate AMM offer so that either updated Spot Price Quality (SPQ) is equal to LOB quality (in this case AMM offer quality is better than LOB quality) or AMM offer is equal to LOB quality (in this case SPQ is better than LOB quality). | |
| template<typename TIn , typename TOut > | |
| TOut | swapAssetIn (TAmounts< TIn, TOut > const &pool, TIn const &assetIn, std::uint16_t tfee) |
| AMM pool invariant - the product (A * B) after swap in/out has to remain at least the same: (A + in) * (B - out) >= A * B XRP round-off may result in a smaller product after swap in/out. | |
| template<typename TIn , typename TOut > | |
| TIn | swapAssetOut (TAmounts< TIn, TOut > const &pool, TOut const &assetOut, std::uint16_t tfee) |
| Swap assetOut out of the pool and swap in a proportional amount of the other asset. | |
| Number | square (Number const &n) |
| Return square of n. | |
| STAmount | adjustLPTokens (STAmount const &lptAMMBalance, STAmount const &lpTokens, IsDeposit isDeposit) |
| Adjust LP tokens to deposit/withdraw. | |
| std::tuple< STAmount, std::optional< STAmount >, STAmount > | adjustAmountsByLPTokens (STAmount const &amountBalance, STAmount const &amount, std::optional< STAmount > const &amount2, STAmount const &lptAMMBalance, STAmount const &lpTokens, std::uint16_t tfee, IsDeposit isDeposit) |
| Calls adjustLPTokens() and adjusts deposit or withdraw amounts if the adjusted LP tokens are less than the provided LP tokens. | |
| Number | solveQuadraticEq (Number const &a, Number const &b, Number const &c) |
| Positive solution for quadratic equation: x = (-b + sqrt(b**2 + 4*a*c))/(2*a) | |
| STAmount | multiply (STAmount const &amount, Number const &frac, Number::rounding_mode rm) |
| template<typename A > | |
| STAmount | getRoundedAsset (Rules const &rules, STAmount const &balance, A const &frac, IsDeposit isDeposit) |
| Round AMM equal deposit/withdrawal amount. | |
| STAmount | getRoundedAsset (Rules const &rules, std::function< Number()> &&noRoundCb, STAmount const &balance, std::function< Number()> &&productCb, IsDeposit isDeposit) |
| Round AMM single deposit/withdrawal amount. | |
| STAmount | getRoundedLPTokens (Rules const &rules, STAmount const &balance, Number const &frac, IsDeposit isDeposit) |
| Round AMM deposit/withdrawal LPToken amount. | |
| STAmount | getRoundedLPTokens (Rules const &rules, std::function< Number()> &&noRoundCb, STAmount const &lptAMMBalance, std::function< Number()> &&productCb, IsDeposit isDeposit) |
| Round AMM single deposit/withdrawal LPToken amount. | |
| std::pair< STAmount, STAmount > | adjustAssetInByTokens (Rules const &rules, STAmount const &balance, STAmount const &amount, STAmount const &lptAMMBalance, STAmount const &tokens, std::uint16_t tfee) |
| std::pair< STAmount, STAmount > | adjustAssetOutByTokens (Rules const &rules, STAmount const &balance, STAmount const &amount, STAmount const &lptAMMBalance, STAmount const &tokens, std::uint16_t tfee) |
| Number | adjustFracByTokens (Rules const &rules, STAmount const &lptAMMBalance, STAmount const &tokens, Number const &frac) |
| Find a fraction of tokens after the tokens are adjusted. | |
| std::pair< STAmount, STAmount > | ammPoolHolds (ReadView const &view, AccountID const &ammAccountID, Issue const &issue1, Issue const &issue2, FreezeHandling freezeHandling, beast::Journal const j) |
| Get AMM pool balances. | |
| Expected< std::tuple< STAmount, STAmount, STAmount >, TER > | ammHolds (ReadView const &view, SLE const &ammSle, std::optional< Issue > const &optIssue1, std::optional< Issue > const &optIssue2, FreezeHandling freezeHandling, beast::Journal const j) |
| Get AMM pool and LP token balances. | |
| STAmount | ammLPHolds (ReadView const &view, Currency const &cur1, Currency const &cur2, AccountID const &ammAccount, AccountID const &lpAccount, beast::Journal const j) |
| Get the balance of LP tokens. | |
| STAmount | ammLPHolds (ReadView const &view, SLE const &ammSle, AccountID const &lpAccount, beast::Journal const j) |
| std::uint16_t | getTradingFee (ReadView const &view, SLE const &ammSle, AccountID const &account) |
| Get AMM trading fee for the given account. | |
| STAmount | ammAccountHolds (ReadView const &view, AccountID const &ammAccountID, Issue const &issue) |
| Returns total amount held by AMM for the given token. | |
| TER | deleteAMMAccount (Sandbox &view, Issue const &asset, Issue const &asset2, beast::Journal j) |
| Delete trustlines to AMM. | |
| void | initializeFeeAuctionVote (ApplyView &view, std::shared_ptr< SLE > &ammSle, AccountID const &account, Issue const &lptIssue, std::uint16_t tfee) |
| Initialize Auction and Voting slots and set the trading/discounted fee. | |
| Expected< bool, TER > | isOnlyLiquidityProvider (ReadView const &view, Issue const &ammIssue, AccountID const &lpAccount) |
| Return true if the Liquidity Provider is the only AMM provider, false otherwise. | |
| Expected< bool, TER > | verifyAndAdjustLPTokenBalance (Sandbox &sb, STAmount const &lpTokens, std::shared_ptr< SLE > &ammSle, AccountID const &account) |
| Due to rounding, the LPTokenBalance of the last LP might not match the LP's trustline balance. | |
| bool | operator< (CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs) |
| NotTEC | checkTxPermission (std::shared_ptr< SLE const > const &delegate, STTx const &tx) |
| Check if the delegate account has permission to execute the transaction. | |
| void | loadGranularPermission (std::shared_ptr< SLE const > const &delegate, TxType const &type, std::unordered_set< GranularPermissionType > &granularPermissions) |
| Load the granular permissions granted to the delegate account for the specified transaction type. | |
| void | convertBlobsToTxResult (RelationalDatabase::AccountTxs &to, std::uint32_t ledger_index, std::string const &status, Blob const &rawTxn, Blob const &rawMeta, Application &app) |
| void | saveLedgerAsync (Application &app, std::uint32_t seq) |
| static std::vector< std::pair< uint256, std::string > > | parseSection (Section const §ion) |
| static TER | deleteAMMTrustLines (Sandbox &sb, AccountID const &ammAccountID, std::uint16_t maxTrustlinesToDelete, beast::Journal j) |
| XRPAmount | scaleFeeLoad (XRPAmount fee, LoadFeeTrack const &feeTrack, Fees const &fees, bool bUnlimited) |
| std::string | to_string (Manifest const &m) |
| Format the specified manifest to a string for debugging purposes. | |
| template<class Stream > | |
| Stream & | logMftAct (Stream &s, std::string const &action, PublicKey const &pk, std::uint32_t seq) |
| template<class Stream > | |
| Stream & | logMftAct (Stream &s, std::string const &action, PublicKey const &pk, std::uint32_t seq, std::uint32_t oldSeq) |
| std::optional< ValidatorToken > | loadValidatorToken (std::vector< std::string > const &blob, beast::Journal journal) |
| static FeeLevel64 | getFeeLevelPaid (ReadView const &view, STTx const &tx) |
| static std::optional< LedgerIndex > | getLastLedgerSequence (STTx const &tx) |
| static FeeLevel64 | increase (FeeLevel64 level, std::uint32_t increasePercent) |
| TxQ::Setup | setup_TxQ (Config const &) |
| Build a TxQ::Setup object from application configuration. | |
| std::string | to_string (ListDisposition disposition) |
| std::size_t | splitMessageParts (std::vector< ValidatorList::MessageWithHash > &messages, protocol::TMValidatorListCollection const &largeMsg, std::size_t maxSize, std::size_t begin, std::size_t end) |
| std::size_t | splitMessage (std::vector< ValidatorList::MessageWithHash > &messages, protocol::TMValidatorListCollection const &largeMsg, std::size_t maxSize, std::size_t begin=0, std::size_t end=0) |
| std::size_t | buildValidatorListMessage (std::vector< ValidatorList::MessageWithHash > &messages, std::uint32_t rawVersion, std::string const &rawManifest, ValidatorBlobInfo const ¤tBlob, std::size_t maxSize) |
| std::size_t | buildValidatorListMessage (std::vector< ValidatorList::MessageWithHash > &messages, std::uint64_t peerSequence, std::uint32_t rawVersion, std::string const &rawManifest, std::map< std::size_t, ValidatorBlobInfo > const &blobInfos, std::size_t maxSize) |
| std::unique_ptr< FeeVote > | make_FeeVote (FeeSetup const &setup, beast::Journal journal) |
| Create an instance of the FeeVote logic. | |
| HashRouter::Setup | setup_HashRouter (Config const &config) |
| constexpr HashRouterFlags | operator| (HashRouterFlags lhs, HashRouterFlags rhs) |
| constexpr HashRouterFlags & | operator|= (HashRouterFlags &lhs, HashRouterFlags rhs) |
| constexpr HashRouterFlags | operator& (HashRouterFlags lhs, HashRouterFlags rhs) |
| constexpr HashRouterFlags & | operator&= (HashRouterFlags &lhs, HashRouterFlags rhs) |
| constexpr bool | any (HashRouterFlags flags) |
| bool | operator== (Manifest const &lhs, Manifest const &rhs) |
| bool | operator!= (Manifest const &lhs, Manifest const &rhs) |
| std::string | to_string (ManifestDisposition m) |
| static std::uint32_t | trunc32 (std::uint64_t v) |
| std::unique_ptr< NetworkOPs > | make_NetworkOPs (Application &app, NetworkOPs::clock_type &clock, bool standalone, std::size_t minPeerCount, bool startvalid, JobQueue &job_queue, LedgerMaster &ledgerMaster, ValidatorKeys const &validatorKeys, boost::asio::io_context &io_svc, beast::Journal journal, beast::insight::Collector::ptr const &collector) |
| std::unique_ptr< SHAMapStore > | make_SHAMapStore (Application &app, NodeStore::Scheduler &scheduler, beast::Journal journal) |
| template<class T > | |
| XRPAmount | toDrops (FeeLevel< T > const &level, XRPAmount baseFee) |
| FeeLevel64 | toFeeLevel (XRPAmount const &drops, XRPAmount const &baseFee) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, ValidatorBlobInfo const &blobInfo) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, std::vector< ValidatorBlobInfo > const &blobs) |
| template<class Hasher > | |
| void | hash_append (Hasher &h, std::map< std::size_t, ValidatorBlobInfo > const &blobs) |
| hash_set< Currency > | accountSourceCurrencies (AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP) |
| hash_set< Currency > | accountDestCurrencies (AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP) |
| template<class T > | |
| T & | get (EitherAmount &amt) |
| template<> | |
| IOUAmount & | get< IOUAmount > (EitherAmount &amt) |
| template<> | |
| XRPAmount & | get< XRPAmount > (EitherAmount &amt) |
| template<class T > | |
| T const & | get (EitherAmount const &amt) |
| template<> | |
| IOUAmount const & | get< IOUAmount > (EitherAmount const &amt) |
| template<> | |
| XRPAmount const & | get< XRPAmount > (EitherAmount const &amt) |
| AmountSpec | toAmountSpec (STAmount const &amt) |
| EitherAmount | toEitherAmount (STAmount const &amt) |
| AmountSpec | toAmountSpec (EitherAmount const &ea, std::optional< Currency > const &c) |
| template<class TIn , class TOut , class Offer > | |
| static void | limitStepIn (Offer const &offer, TAmounts< TIn, TOut > &ofrAmt, TAmounts< TIn, TOut > &stpAmt, TOut &ownerGives, std::uint32_t transferRateIn, std::uint32_t transferRateOut, TIn const &limit) |
| template<class TIn , class TOut , class Offer > | |
| static void | limitStepOut (Offer const &offer, TAmounts< TIn, TOut > &ofrAmt, TAmounts< TIn, TOut > &stpAmt, TOut &ownerGives, std::uint32_t transferRateIn, std::uint32_t transferRateOut, TOut const &limit) |
| template<class TCollection > | |
| static auto | sum (TCollection const &col) |
| template<class TIn , class TOut > | |
| static std::pair< TER, std::unique_ptr< Step > > | make_BookStepHelper (StrandContext const &ctx, Issue const &in, Issue const &out) |
| std::pair< TER, std::unique_ptr< Step > > | make_BookStepII (StrandContext const &ctx, Issue const &in, Issue const &out) |
| std::pair< TER, std::unique_ptr< Step > > | make_BookStepIX (StrandContext const &ctx, Issue const &in) |
| std::pair< TER, std::unique_ptr< Step > > | make_BookStepXI (StrandContext const &ctx, Issue const &out) |
| std::pair< TER, std::unique_ptr< Step > > | make_DirectStepI (StrandContext const &ctx, AccountID const &src, AccountID const &dst, Currency const &c) |
| template<class T > | |
| void | SetUnion (boost::container::flat_set< T > &dst, boost::container::flat_set< T > const &src) |
| Given two flat sets dst and src, compute dst = dst union src. | |
| STAmount | largestAmount (STAmount const &amt) |
| STAmount | convertAmount (STAmount const &amt, bool all) |
| bool | convertAllCheck (STAmount const &a) |
| bool | checkNear (IOUAmount const &expected, IOUAmount const &actual) |
| bool | checkNear (XRPAmount const &expected, XRPAmount const &actual) |
| static bool | isXRPAccount (STPathElement const &pe) |
| static std::pair< TER, std::unique_ptr< Step > > | toStep (StrandContext const &ctx, STPathElement const *e1, STPathElement const *e2, Issue const &curIssue) |
| std::pair< TER, Strand > | toStrand (ReadView const &sb, AccountID const &src, AccountID const &dst, Issue const &deliver, std::optional< Quality > const &limitQuality, std::optional< Issue > const &sendMaxIssue, STPath const &path, bool ownerPaysTransferFee, OfferCrossing offerCrossing, AMMContext &ammContext, std::optional< uint256 > const &domainID, beast::Journal j) |
| Create a Strand for the specified path. | |
| std::pair< TER, std::vector< Strand > > | toStrands (ReadView const &sb, AccountID const &src, AccountID const &dst, Issue const &deliver, std::optional< Quality > const &limitQuality, std::optional< Issue > const &sendMax, STPathSet const &paths, bool addDefaultPath, bool ownerPaysTransferFee, OfferCrossing offerCrossing, AMMContext &ammContext, std::optional< uint256 > const &domainID, beast::Journal j) |
| Create a Strand for each specified path (including the default path, if indicated) | |
| template<class InAmt , class OutAmt > | |
| bool | isDirectXrpToXrp (Strand const &strand) |
| template<> | |
| bool | isDirectXrpToXrp< XRPAmount, XRPAmount > (Strand const &strand) |
| template bool | isDirectXrpToXrp< XRPAmount, IOUAmount > (Strand const &strand) |
| template bool | isDirectXrpToXrp< IOUAmount, XRPAmount > (Strand const &strand) |
| template bool | isDirectXrpToXrp< IOUAmount, IOUAmount > (Strand const &strand) |
| TER | checkFreeze (ReadView const &view, AccountID const &src, AccountID const &dst, Currency const ¤cy) |
| TER | checkNoRipple (ReadView const &view, AccountID const &prev, AccountID const &cur, AccountID const &next, Currency const ¤cy, beast::Journal j) |
| bool | redeems (DebtDirection dir) |
| bool | issues (DebtDirection dir) |
| std::pair< TER, STPath > | normalizePath (AccountID const &src, AccountID const &dst, Issue const &deliver, std::optional< Issue > const &sendMaxIssue, STPath const &path) |
| template<class TInAmt , class TOutAmt > | |
| StrandResult< TInAmt, TOutAmt > | flow (PaymentSandbox const &baseView, Strand const &strand, std::optional< TInAmt > const &maxIn, TOutAmt const &out, beast::Journal j) |
Request out amount from a strand. | |
| template<class TInAmt , class TOutAmt > | |
| FlowResult< TInAmt, TOutAmt > | flow (PaymentSandbox const &baseView, std::vector< Strand > const &strands, TOutAmt const &outReq, bool partialPayment, OfferCrossing offerCrossing, std::optional< Quality > const &limitQuality, std::optional< STAmount > const &sendMaxST, beast::Journal j, AMMContext &ammContext, path::detail::FlowDebugInfo *flowDebugInfo=nullptr) |
Request out amount from a collection of strands. | |
| template<class TDerived > | |
| bool | operator== (XRPEndpointStep< TDerived > const &lhs, XRPEndpointStep< TDerived > const &rhs) |
| std::pair< TER, std::unique_ptr< Step > > | make_XRPEndpointStep (StrandContext const &ctx, AccountID const &acc) |
| template<class FlowResult > | |
| static auto | finishFlow (PaymentSandbox &sb, Issue const &srcIssue, Issue const &dstIssue, FlowResult &&f) |
| path::RippleCalc::Output | flow (PaymentSandbox &view, STAmount const &deliver, AccountID const &src, AccountID const &dst, STPathSet const &paths, bool defaultPaths, bool partialPayment, bool ownerPaysTransferFee, OfferCrossing offerCrossing, std::optional< Quality > const &limitQuality, std::optional< STAmount > const &sendMax, std::optional< uint256 > const &domainID, beast::Journal j, path::detail::FlowDebugInfo *flowDebugInfo=nullptr) |
| Make a payment from the src account to the dst account. | |
| static bool | isDefaultPath (STPath const &path) |
| static STPath | removeIssuer (STPath const &path) |
| void | addUniquePath (STPathSet &pathSet, STPath const &path) |
| std::unique_ptr< RelationalDatabase > | getSQLiteDatabase (Application &app, Config const &config, JobQueue &jobQueue) |
| void | initPeerFinderDB (soci::session &session, BasicConfig const &config, beast::Journal j) |
| initPeerFinderDB Opens a session with the peer finder database. | |
| void | updatePeerFinderDB (soci::session &session, int currentSchemaVersion, beast::Journal j) |
| updatePeerFinderDB Updates the peer finder database to a new version. | |
| void | readPeerFinderDB (soci::session &session, std::function< void(std::string const &, int)> const &func) |
| readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for each entry. | |
| void | savePeerFinderDB (soci::session &session, std::vector< PeerFinder::Store::Entry > const &v) |
| savePeerFinderDB Saves a new entry to the peer finder database. | |
| void | initStateDB (soci::session &session, BasicConfig const &config, std::string const &dbName) |
| initStateDB Opens a session with the State database. | |
| LedgerIndex | getCanDelete (soci::session &session) |
| getCanDelete Returns the ledger sequence which can be deleted. | |
| LedgerIndex | setCanDelete (soci::session &session, LedgerIndex canDelete) |
| setCanDelete Updates the ledger sequence which can be deleted. | |
| SavedState | getSavedState (soci::session &session) |
| getSavedState Returns the saved state. | |
| void | setSavedState (soci::session &session, SavedState const &state) |
| setSavedState Saves the given state. | |
| void | setLastRotated (soci::session &session, LedgerIndex seq) |
| setLastRotated Updates the last rotated ledger sequence. | |
| bool | doVacuumDB (DatabaseCon::Setup const &setup, beast::Journal j) |
| doVacuumDB Creates, initialises, and performs cleanup on a database. | |
| std::unique_ptr< DatabaseCon > | makeWalletDB (DatabaseCon::Setup const &setup, beast::Journal j) |
| makeWalletDB Opens the wallet database and returns it. | |
| std::unique_ptr< DatabaseCon > | makeTestWalletDB (DatabaseCon::Setup const &setup, std::string const &dbname, beast::Journal j) |
| makeTestWalletDB Opens a test wallet database with an arbitrary name. | |
| void | getManifests (soci::session &session, std::string const &dbTable, ManifestCache &mCache, beast::Journal j) |
| getManifests Loads a manifest from the wallet database and stores it in the cache. | |
| static void | saveManifest (soci::session &session, std::string const &dbTable, std::string const &serialized) |
| void | saveManifests (soci::session &session, std::string const &dbTable, std::function< bool(PublicKey const &)> const &isTrusted, hash_map< PublicKey, Manifest > const &map, beast::Journal j) |
| saveManifests Saves all given manifests to the database. | |
| void | addValidatorManifest (soci::session &session, std::string const &serialized) |
| addValidatorManifest Saves the manifest of a validator to the database. | |
| void | clearNodeIdentity (soci::session &session) |
| Delete any saved public/private key associated with this node. | |
| std::pair< PublicKey, SecretKey > | getNodeIdentity (soci::session &session) |
| Returns a stable public and private key for this node. | |
| std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > | getPeerReservationTable (soci::session &session, beast::Journal j) |
| getPeerReservationTable Returns the peer reservation table. | |
| void | insertPeerReservation (soci::session &session, PublicKey const &nodeId, std::string const &description) |
| insertPeerReservation Adds an entry to the peer reservation table. | |
| void | deletePeerReservation (soci::session &session, PublicKey const &nodeId) |
| deletePeerReservation Deletes an entry from the peer reservation table. | |
| bool | createFeatureVotes (soci::session &session) |
| createFeatureVotes Creates the FeatureVote table if it does not exist. | |
| void | readAmendments (soci::session &session, std::function< void( boost::optional< std::string > amendment_hash, boost::optional< std::string > amendment_name, boost::optional< AmendmentVote > vote)> const &callback) |
| readAmendments Reads all amendments from the FeatureVotes table. | |
| void | voteAmendment (soci::session &session, uint256 const &amendment, std::string const &name, AmendmentVote vote) |
| voteAmendment Set the veto value for a particular amendment. | |
| template<class T , class C > | |
| T | rangeCheckedCast (C c) |
| std::pair< Validity, std::string > | checkValidity (HashRouter &router, STTx const &tx, Rules const &rules, Config const &config) |
| Checks transaction signature and local checks. | |
| void | forceValidity (HashRouter &router, uint256 const &txid, Validity validity) |
| Sets the validity of a given transaction in the cache. | |
| ApplyResult | apply (Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal) |
Apply a transaction to an OpenView. | |
| ApplyTransactionResult | applyTransaction (Application &app, OpenView &view, STTx const &tx, bool retryAssured, ApplyFlags flags, beast::Journal journal) |
| Transaction application helper. | |
| bool | isTecClaimHardFail (TER ter, ApplyFlags flags) |
Return true if the transaction can claim a fee (tec), and the ApplyFlags do not allow soft failures. | |
| PreclaimResult | preclaim (PreflightResult const &preflightResult, Application &app, OpenView const &view) |
| Gate a transaction based on static ledger information. | |
| XRPAmount | calculateBaseFee (ReadView const &view, STTx const &tx) |
| Compute only the expected base fee for a transaction. | |
| XRPAmount | calculateDefaultBaseFee (ReadView const &view, STTx const &tx) |
| Return the minimum fee that an "ordinary" transaction would pay. | |
| ApplyResult | doApply (PreclaimResult const &preclaimResult, Application &app, OpenView &view) |
| Apply a prechecked transaction to an OpenView. | |
| static std::pair< TER, bool > | applyBid (ApplyContext &ctx_, Sandbox &sb, AccountID const &account_, beast::Journal j_) |
| static std::pair< TER, bool > | applyCreate (ApplyContext &ctx_, Sandbox &sb, AccountID const &account_, beast::Journal j_) |
| static STAmount | adjustLPTokensOut (Rules const &rules, STAmount const &lptAMMBalance, STAmount const &lpTokensDeposit) |
| static std::pair< TER, bool > | applyVote (ApplyContext &ctx_, Sandbox &sb, AccountID const &account_, beast::Journal j_) |
| static std::optional< STAmount > | tokensWithdraw (STAmount const &lpTokens, std::optional< STAmount > const &tokensIn, std::uint32_t flags) |
| static STAmount | adjustLPTokensIn (Rules const &rules, STAmount const &lptAMMBalance, STAmount const &lpTokensWithdraw, WithdrawAll withdrawAll) |
| template<typename PreflightChecks > | |
| ApplyResult | apply (Application &app, OpenView &view, PreflightChecks &&preflightChecks) |
| ApplyResult | apply (Application &app, OpenView &view, uint256 const &parentBatchId, STTx const &tx, ApplyFlags flags, beast::Journal j) |
| static bool | applyBatchTransactions (Application &app, OpenView &batchView, STTx const &batchTxn, beast::Journal j) |
| template<class T > requires (T::ConsequencesFactory == Transactor::Normal) | |
| TxConsequences | consequences_helper (PreflightContext const &ctx) |
| template<class T > requires (T::ConsequencesFactory == Transactor::Blocker) | |
| TxConsequences | consequences_helper (PreflightContext const &ctx) |
| template<class T > requires (T::ConsequencesFactory == Transactor::Custom) | |
| TxConsequences | consequences_helper (PreflightContext const &ctx) |
| static std::pair< NotTEC, TxConsequences > | invoke_preflight (PreflightContext const &ctx) |
| static TER | invoke_preclaim (PreclaimContext const &ctx) |
| static XRPAmount | invoke_calculateBaseFee (ReadView const &view, STTx const &tx) |
| Calculates the base fee for a given transaction. | |
| static ApplyResult | invoke_apply (ApplyContext &ctx) |
| template<ValidIssueType T> | |
| static NotTEC | preflightHelper (PreflightContext const &ctx) |
| template<> | |
| NotTEC | preflightHelper< Issue > (PreflightContext const &ctx) |
| template<> | |
| NotTEC | preflightHelper< MPTIssue > (PreflightContext const &ctx) |
| template<ValidIssueType T> | |
| static TER | preclaimHelper (PreclaimContext const &ctx, SLE const &sleIssuer, AccountID const &issuer, AccountID const &holder, STAmount const &clawAmount) |
| template<> | |
| TER | preclaimHelper< Issue > (PreclaimContext const &ctx, SLE const &sleIssuer, AccountID const &issuer, AccountID const &holder, STAmount const &clawAmount) |
| template<> | |
| TER | preclaimHelper< MPTIssue > (PreclaimContext const &ctx, SLE const &sleIssuer, AccountID const &issuer, AccountID const &holder, STAmount const &clawAmount) |
| template<ValidIssueType T> | |
| static TER | applyHelper (ApplyContext &ctx) |
| template<> | |
| TER | applyHelper< Issue > (ApplyContext &ctx) |
| template<> | |
| TER | applyHelper< MPTIssue > (ApplyContext &ctx) |
| TER | addSLE (ApplyContext &ctx, std::shared_ptr< SLE > const &sle, AccountID const &owner) |
| template<ValidIssueType T> | |
| static NotTEC | escrowCreatePreflightHelper (PreflightContext const &ctx) |
| template<> | |
| NotTEC | escrowCreatePreflightHelper< Issue > (PreflightContext const &ctx) |
| template<> | |
| NotTEC | escrowCreatePreflightHelper< MPTIssue > (PreflightContext const &ctx) |
| template<ValidIssueType T> | |
| static TER | escrowCreatePreclaimHelper (PreclaimContext const &ctx, AccountID const &account, AccountID const &dest, STAmount const &amount) |
| template<> | |
| TER | escrowCreatePreclaimHelper< Issue > (PreclaimContext const &ctx, AccountID const &account, AccountID const &dest, STAmount const &amount) |
| template<> | |
| TER | escrowCreatePreclaimHelper< MPTIssue > (PreclaimContext const &ctx, AccountID const &account, AccountID const &dest, STAmount const &amount) |
| template<ValidIssueType T> | |
| static TER | escrowLockApplyHelper (ApplyView &view, AccountID const &issuer, AccountID const &sender, STAmount const &amount, beast::Journal journal) |
| template<> | |
| TER | escrowLockApplyHelper< Issue > (ApplyView &view, AccountID const &issuer, AccountID const &sender, STAmount const &amount, beast::Journal journal) |
| template<> | |
| TER | escrowLockApplyHelper< MPTIssue > (ApplyView &view, AccountID const &issuer, AccountID const &sender, STAmount const &amount, beast::Journal journal) |
| static bool | checkCondition (Slice f, Slice c) |
| template<ValidIssueType T> | |
| static TER | escrowFinishPreclaimHelper (PreclaimContext const &ctx, AccountID const &dest, STAmount const &amount) |
| template<> | |
| TER | escrowFinishPreclaimHelper< Issue > (PreclaimContext const &ctx, AccountID const &dest, STAmount const &amount) |
| template<> | |
| TER | escrowFinishPreclaimHelper< MPTIssue > (PreclaimContext const &ctx, AccountID const &dest, STAmount const &amount) |
| template<ValidIssueType T> | |
| static TER | escrowUnlockApplyHelper (ApplyView &view, Rate lockedRate, std::shared_ptr< SLE > const &sleDest, STAmount const &xrpBalance, STAmount const &amount, AccountID const &issuer, AccountID const &sender, AccountID const &receiver, bool createAsset, beast::Journal journal) |
| template<> | |
| TER | escrowUnlockApplyHelper< Issue > (ApplyView &view, Rate lockedRate, std::shared_ptr< SLE > const &sleDest, STAmount const &xrpBalance, STAmount const &amount, AccountID const &issuer, AccountID const &sender, AccountID const &receiver, bool createAsset, beast::Journal journal) |
| template<> | |
| TER | escrowUnlockApplyHelper< MPTIssue > (ApplyView &view, Rate lockedRate, std::shared_ptr< SLE > const &sleDest, STAmount const &xrpBalance, STAmount const &amount, AccountID const &issuer, AccountID const &sender, AccountID const &receiver, bool createAsset, beast::Journal journal) |
| template<ValidIssueType T> | |
| static TER | escrowCancelPreclaimHelper (PreclaimContext const &ctx, AccountID const &account, STAmount const &amount) |
| template<> | |
| TER | escrowCancelPreclaimHelper< Issue > (PreclaimContext const &ctx, AccountID const &account, STAmount const &amount) |
| template<> | |
| TER | escrowCancelPreclaimHelper< MPTIssue > (PreclaimContext const &ctx, AccountID const &account, STAmount const &amount) |
| constexpr Privilege | operator| (Privilege lhs, Privilege rhs) |
| bool | hasPrivilege (STTx const &tx, Privilege priv) |
| static bool | validBalances (STAmount const &amount, STAmount const &amount2, STAmount const &lptAMMBalance, ValidAMM::ZeroAllowed zeroAllowed) |
| InvariantChecks | getInvariantChecks () |
| get a tuple of all invariant checks | |
| static std::uint16_t | extractNFTokenFlagsFromTxFlags (std::uint32_t txFlags) |
| static bool | hasOfferFields (PreflightContext const &ctx) |
| template<class TIn , class TOut > | |
| std::ostream & | operator<< (std::ostream &os, TOffer< TIn, TOut > const &offer) |
| static STAmount | accountFundsHelper (ReadView const &view, AccountID const &id, STAmount const &saDefault, Issue const &, FreezeHandling freezeHandling, beast::Journal j) |
| static IOUAmount | accountFundsHelper (ReadView const &view, AccountID const &id, IOUAmount const &amtDefault, Issue const &issue, FreezeHandling freezeHandling, beast::Journal j) |
| static XRPAmount | accountFundsHelper (ReadView const &view, AccountID const &id, XRPAmount const &amtDefault, Issue const &issue, FreezeHandling freezeHandling, beast::Journal j) |
| static TER | closeChannel (std::shared_ptr< SLE > const &slep, ApplyView &view, uint256 const &key, beast::Journal j) |
| STAmount | getMaxSourceAmount (AccountID const &account, STAmount const &dstAmount, std::optional< STAmount > const &sendMax) |
| static std::pair< Currency, Currency > | tokenPairKey (STObject const &pair) |
| static bool | adjustOwnerCount (ApplyContext &ctx, int count) |
| static void | setPriceDataInnerObjTemplate (STObject &obj) |
| static int | signerCountBasedOwnerCountDelta (std::size_t entryCount, Rules const &rules) |
| static TER | removeSignersFromLedger (Application &app, ApplyView &view, Keylet const &accountKeylet, Keylet const &ownerDirKeylet, Keylet const &signerListKeylet, beast::Journal j) |
| NotTEC | preflight0 (PreflightContext const &ctx, std::uint32_t flagMask) |
| Performs early sanity checks on the txid. | |
| static void | removeUnfundedOffers (ApplyView &view, std::vector< uint256 > const &offers, beast::Journal viewJ) |
| static void | removeExpiredNFTokenOffers (ApplyView &view, std::vector< uint256 > const &offers, beast::Journal viewJ) |
| static void | removeExpiredCredentials (ApplyView &view, std::vector< uint256 > const &creds, beast::Journal viewJ) |
| static void | removeDeletedTrustLines (ApplyView &view, std::vector< uint256 > const &trustLines, beast::Journal viewJ) |
| bool | shouldCloseLedger (bool anyTransactions, std::size_t prevProposers, std::size_t proposersClosed, std::size_t proposersValidated, std::chrono::milliseconds prevRoundTime, std::chrono::milliseconds timeSincePrevClose, std::chrono::milliseconds openTime, std::chrono::milliseconds idleInterval, ConsensusParms const &parms, beast::Journal j, std::unique_ptr< std::stringstream > const &clog={}) |
| Determines whether the current ledger should close at this time. | |
| bool | checkConsensusReached (std::size_t agreeing, std::size_t total, bool count_self, std::size_t minConsensusPct, bool reachedMax, bool stalled, std::unique_ptr< std::stringstream > const &clog) |
| ConsensusState | checkConsensus (std::size_t prevProposers, std::size_t currentProposers, std::size_t currentAgree, std::size_t currentFinished, std::chrono::milliseconds previousAgreeTime, std::chrono::milliseconds currentAgreeTime, bool stalled, ConsensusParms const &parms, bool proposing, beast::Journal j, std::unique_ptr< std::stringstream > const &clog={}) |
| Determine whether the network reached consensus and whether we joined. | |
| int | participantsNeeded (int participants, int percent) |
| How many of the participants must agree to reach a given threshold? | |
| std::pair< std::size_t, std::optional< ConsensusParms::AvalancheState > > | getNeededWeight (ConsensusParms const &p, ConsensusParms::AvalancheState currentState, int percentTime, std::size_t currentRounds, std::size_t minimumRounds) |
| template<class NodeID_t , class LedgerID_t , class Position_t > | |
| bool | operator== (ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const &a, ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const &b) |
| std::string | to_string (ConsensusMode m) |
| std::string | to_string (ConsensusPhase p) |
| template<class Rep , class Period , class Seq > | |
| std::chrono::duration< Rep, Period > | getNextLedgerTimeResolution (std::chrono::duration< Rep, Period > previousResolution, bool previousAgree, Seq ledgerSeq) |
| Calculates the close time resolution for the specified ledger. | |
| template<class Clock , class Duration , class Rep , class Period > | |
| std::chrono::time_point< Clock, Duration > | roundCloseTime (std::chrono::time_point< Clock, Duration > closeTime, std::chrono::duration< Rep, Period > closeResolution) |
| Calculates the close time for a ledger, given a close time resolution. | |
| template<class Clock , class Duration , class Rep , class Period > | |
| std::chrono::time_point< Clock, Duration > | effCloseTime (std::chrono::time_point< Clock, Duration > closeTime, std::chrono::duration< Rep, Period > resolution, std::chrono::time_point< Clock, Duration > priorCloseTime) |
| Calculate the effective ledger close time. | |
| bool | isCurrent (ValidationParms const &p, NetClock::time_point now, NetClock::time_point signTime, NetClock::time_point seenTime) |
| Whether a validation is still current. | |
| std::string | to_string (ValStatus m) |
| FeeSetup | setup_FeeVote (Section const §ion) |
| std::shared_ptr< Checkpointer > | checkpointerFromId (std::uintptr_t id) |
| DatabaseCon::Setup | setup_DatabaseCon (Config const &c, std::optional< beast::Journal > j=std::nullopt) |
| IniFileSections | parseIniFile (std::string const &strInput, bool const bTrim) |
| IniFileSections::mapped_type * | getIniFileSection (IniFileSections &secSource, std::string const &strSection) |
| bool | getSingleSection (IniFileSections &secSource, std::string const &strSection, std::string &strValue, beast::Journal j) |
| static std::string | getEnvVar (char const *name) |
| static void | checkZeroPorts (Config const &config) |
| void | open (soci::session &s, BasicConfig const &config, std::string const &dbName) |
| Open a soci session. | |
| void | open (soci::session &s, std::string const &beName, std::string const &connectionString) |
| Open a soci session. | |
| static sqlite_api::sqlite3 * | getConnection (soci::session &s) |
| std::uint32_t | getKBUsedAll (soci::session &s) |
| std::uint32_t | getKBUsedDB (soci::session &s) |
| void | convert (soci::blob &from, std::vector< std::uint8_t > &to) |
| void | convert (soci::blob &from, std::string &to) |
| void | convert (std::vector< std::uint8_t > const &from, soci::blob &to) |
| void | convert (std::string const &from, soci::blob &to) |
| std::shared_ptr< Checkpointer > | makeCheckpointer (std::uintptr_t id, std::weak_ptr< soci::session >, JobQueue &, Logs &) |
| Returns a new checkpointer which makes checkpoints of a soci database every checkpointPageCount pages, using a job on the job queue. | |
| std::optional< std::string > | getFeatureValue (boost::beast::http::fields const &headers, std::string const &feature) |
| Get feature's header value. | |
| bool | isFeatureValue (boost::beast::http::fields const &headers, std::string const &feature, std::string const &value) |
| Check if a feature's value is equal to the specified value. | |
| bool | featureEnabled (boost::beast::http::fields const &headers, std::string const &feature) |
| Check if a feature is enabled. | |
| std::string | makeFeaturesRequestHeader (bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) |
| Make request header X-Protocol-Ctl value with supported features. | |
| std::string | makeFeaturesResponseHeader (http_request_type const &headers, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) |
| Make response header X-Protocol-Ctl value with supported features. | |
| static std::optional< base_uint< 512 > > | hashLastMessage (SSL const *ssl, size_t(*get)(const SSL *, void *, size_t)) |
| Hashes the latest finished message from an SSL stream. | |
| std::optional< uint256 > | makeSharedValue (stream_type &ssl, beast::Journal journal) |
| Computes a shared value based on the SSL connection state. | |
| void | buildHandshake (boost::beast::http::fields &h, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote_ip, Application &app) |
| Insert fields headers necessary for upgrading the link to the peer protocol. | |
| PublicKey | verifyHandshake (boost::beast::http::fields const &headers, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote, Application &app) |
| Validate header fields necessary for upgrading the link to the peer protocol. | |
| auto | makeRequest (bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) |
| Make outbound http request. | |
| http_response_type | makeResponse (bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion version, Application &app) |
| Make http response. | |
| template<typename headers > | |
| bool | peerFeatureEnabled (headers const &request, std::string const &feature, std::string value, bool config) |
| Check if a feature should be enabled for a peer. | |
| template<typename headers > | |
| bool | peerFeatureEnabled (headers const &request, std::string const &feature, bool config) |
| Wrapper for enable(1)/disable type(0) of feature. | |
| std::shared_ptr< Message > | makeSquelchMessage (PublicKey const &validator, bool squelch, uint32_t squelchDuration) |
| Overlay::Setup | setup_Overlay (BasicConfig const &config) |
| std::unique_ptr< Overlay > | make_Overlay (Application &app, Overlay::Setup const &setup, ServerHandler &serverHandler, Resource::Manager &resourceManager, Resolver &resolver, boost::asio::io_context &io_context, BasicConfig const &config, beast::insight::Collector::ptr const &collector) |
| Creates the implementation of Overlay. | |
| static bool | stringIsUint256Sized (std::string const &pBuffStr) |
| static std::shared_ptr< PeerImp > | getPeerWithTree (OverlayImpl &ov, uint256 const &rootHash, PeerImp const *skip) |
| static std::shared_ptr< PeerImp > | getPeerWithLedger (OverlayImpl &ov, uint256 const &ledgerHash, LedgerIndex ledger, PeerImp const *skip) |
| std::unique_ptr< PeerSetBuilder > | make_PeerSetBuilder (Application &app) |
| std::unique_ptr< PeerSet > | make_DummyPeerSet (Application &app) |
| Make a dummy PeerSet that does not do anything. | |
| protocol::MessageType | protocolMessageType (protocol::TMGetLedger const &) |
| protocol::MessageType | protocolMessageType (protocol::TMReplayDeltaRequest const &) |
| protocol::MessageType | protocolMessageType (protocol::TMProofPathRequest const &) |
| template<class = void> | |
| std::string | protocolMessageName (int type) |
| Returns the name of a protocol message given its type. | |
| template<class Buffers , class Handler > | |
| std::pair< std::size_t, boost::system::error_code > | invokeProtocolMessage (Buffers const &buffers, Handler &handler, std::size_t &hint) |
| Calls the handler for up to one protocol message in the passed buffers. | |
| std::string | to_string (ProtocolVersion const &p) |
| Print a protocol version a human-readable string. | |
| std::vector< ProtocolVersion > | parseProtocolVersions (boost::beast::string_view const &s) |
| Parse a set of protocol versions. | |
| std::optional< ProtocolVersion > | negotiateProtocolVersion (std::vector< ProtocolVersion > const &versions) |
| Given a list of supported protocol versions, choose the one we prefer. | |
| std::optional< ProtocolVersion > | negotiateProtocolVersion (boost::beast::string_view const &versions) |
| Given a list of supported protocol versions, choose the one we prefer. | |
| std::string const & | supportedProtocolVersions () |
| The list of all the protocol versions we support. | |
| bool | isProtocolSupported (ProtocolVersion const &v) |
| Determine whether we support a specific protocol version. | |
| constexpr ProtocolVersion | make_protocol (std::uint16_t major, std::uint16_t minor) |
| template<typename Predicate > | |
| send_if_pred< Predicate > | send_if (std::shared_ptr< Message > const &m, Predicate const &f) |
| Helper function to aid in type deduction. | |
| template<typename Predicate > | |
| send_if_not_pred< Predicate > | send_if_not (std::shared_ptr< Message > const &m, Predicate const &f) |
| Helper function to aid in type deduction. | |
| bool | passwordUnrequiredOrSentCorrect (Port const &port, Json::Value const ¶ms) |
| bool | ipAllowed (beast::IP::Address const &remoteIp, std::vector< boost::asio::ip::network_v4 > const &nets4, std::vector< boost::asio::ip::network_v6 > const &nets6) |
| True if remoteIp is in any of adminIp. | |
| bool | isAdmin (Port const &port, Json::Value const ¶ms, beast::IP::Address const &remoteIp) |
| Role | requestRole (Role const &required, Port const &port, Json::Value const ¶ms, beast::IP::Endpoint const &remoteIp, std::string_view user) |
| Return the allowed privilege role. | |
| bool | isUnlimited (Role const &role) |
| ADMIN and IDENTIFIED roles shall have unlimited resources. | |
| bool | isUnlimited (Role const &required, Port const &port, Json::Value const ¶ms, beast::IP::Endpoint const &remoteIp, std::string const &user) |
| Resource::Consumer | requestInboundEndpoint (Resource::Manager &manager, beast::IP::Endpoint const &remoteAddress, Role const &role, std::string_view user, std::string_view forwardedFor) |
| static std::string_view | extractIpAddrFromField (std::string_view field) |
| std::string_view | forwardedFor (http_request_type const &request) |
| std::string | createHTTPPost (std::string const &strHost, std::string const &strPath, std::string const &strMsg, std::unordered_map< std::string, std::string > const &mapRequestHeaders) |
| std::string | JSONRPCRequest (std::string const &strMethod, Json::Value const ¶ms, Json::Value const &id) |
| Json::Value | rpcCmdToJson (std::vector< std::string > const &args, Json::Value &retParams, unsigned int apiVersion, beast::Journal j) |
| std::pair< int, Json::Value > | rpcClient (std::vector< std::string > const &args, Config const &config, Logs &logs, unsigned int apiVersion, std::unordered_map< std::string, std::string > const &headers={}) |
| Internal invocation of RPC client. | |
| std::shared_ptr< RPCSub > | make_RPCSub (InfoSub::Source &source, boost::asio::io_context &io_context, JobQueue &jobQueue, std::string const &strUrl, std::string const &strUsername, std::string const &strPassword, Logs &logs) |
| static bool | isStatusRequest (http_request_type const &request) |
| static Handoff | statusRequestResponse (http_request_type const &request, boost::beast::http::status status) |
| static bool | authorized (Port const &port, std::map< std::string, std::string > const &h) |
| static Json::Output | makeOutput (Session &session) |
| static std::map< std::string, std::string > | build_map (boost::beast::http::fields const &h) |
| template<class ConstBufferSequence > | |
| static std::string | buffers_to_string (ConstBufferSequence const &bs) |
| template<class T > | |
| void | logDuration (Json::Value const &request, T const &duration, beast::Journal &journal) |
| static Json::Value | make_json_error (Json::Int code, Json::Value &&message) |
| static Port | to_Port (ParsedPort const &parsed, std::ostream &log) |
| static std::vector< Port > | parse_Ports (Config const &config, std::ostream &log) |
| static void | setup_Client (ServerHandler::Setup &setup) |
| static void | setup_Overlay (ServerHandler::Setup &setup) |
| ServerHandler::Setup | setup_ServerHandler (Config const &config, std::ostream &&log) |
| std::unique_ptr< ServerHandler > | make_ServerHandler (Application &app, boost::asio::io_context &io_context, JobQueue &jobQueue, NetworkOPs &networkOPs, Resource::Manager &resourceManager, CollectorManager &cm) |
| std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > | doLedgerGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context) |
| std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > | doLedgerEntryGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context) |
| std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > | doLedgerDataGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context) |
| std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > | doLedgerDiffGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context) |
| void | addChannel (Json::Value &jsonLines, SLE const &line) |
| Json::Value | doAccountChannels (RPC::JsonContext &context) |
| Json::Value | doAccountCurrencies (RPC::JsonContext &context) |
| Json::Value | doAccountInfo (RPC::JsonContext &context) |
| void | addLine (Json::Value &jsonLines, RPCTrustLine const &line) |
| Json::Value | doAccountLines (RPC::JsonContext &context) |
| Json::Value | doAccountNFTs (RPC::JsonContext &context) |
| General RPC command that can retrieve objects in the account root. | |
| Json::Value | doAccountObjects (RPC::JsonContext &context) |
| void | appendOfferJson (std::shared_ptr< SLE const > const &offer, Json::Value &offers) |
| Json::Value | doAccountOffers (RPC::JsonContext &context) |
| std::variant< std::optional< LedgerSpecifier >, Json::Value > | parseLedgerArgs (RPC::Context &context, Json::Value const ¶ms) |
| std::variant< LedgerRange, RPC::Status > | getLedgerRange (RPC::Context &context, std::optional< LedgerSpecifier > const &ledgerSpecifier) |
| std::pair< AccountTxResult, RPC::Status > | doAccountTxHelp (RPC::Context &context, AccountTxArgs const &args) |
| Json::Value | populateJsonResponse (std::pair< AccountTxResult, RPC::Status > const &res, AccountTxArgs const &args, RPC::JsonContext const &context) |
| Json::Value | doAccountTxJson (RPC::JsonContext &context) |
| std::optional< AccountID > | getAccount (Json::Value const &v, Json::Value &result) |
| Expected< Issue, error_code_i > | getIssue (Json::Value const &v, beast::Journal j) |
| std::string | to_iso8601 (NetClock::time_point tp) |
| Json::Value | doAMMInfo (RPC::JsonContext &context) |
| Json::Value | doBlackList (RPC::JsonContext &context) |
| Json::Value | doBookOffers (RPC::JsonContext &context) |
| Json::Value | doBookChanges (RPC::JsonContext &context) |
| Json::Value | doCanDelete (RPC::JsonContext &context) |
| Json::Value | doConnect (RPC::JsonContext &context) |
| Json::Value | doConsensusInfo (RPC::JsonContext &context) |
| Json::Value | doDepositAuthorized (RPC::JsonContext &context) |
| Json::Value | doManifest (RPC::JsonContext &context) |
| Json::Value | doFeature (RPC::JsonContext &context) |
| Json::Value | doFee (RPC::JsonContext &context) |
| Json::Value | doFetchInfo (RPC::JsonContext &context) |
| Json::Value | doGatewayBalances (RPC::JsonContext &context) |
| static void | iteratePriceData (RPC::JsonContext &context, std::shared_ptr< SLE const > const &sle, std::function< bool(STObject const &)> &&f) |
| Calls callback "f" on the ledger-object sle and up to three previous metadata objects. | |
| static std::tuple< STAmount, Number, std::uint16_t > | getStats (Prices::right_const_iterator const &begin, Prices::right_const_iterator const &end) |
| Json::Value | doGetAggregatePrice (RPC::JsonContext &context) |
| oracles: array of {account, oracle_document_id} base_asset: is the asset to be priced quote_asset: is the denomination in which the prices are expressed trim : percentage of outliers to trim [optional] time_threshold : defines a range of prices to include based on the timestamp range - {most recent, most recent - time_threshold} [optional] | |
| static void | textTime (std::string &text, UptimeClock::time_point &seconds, char const *unitName, std::chrono::seconds unitVal) |
| Json::Value | getCountsJson (Application &app, int minObjectCount) |
| Json::Value | doGetCounts (RPC::JsonContext &context) |
| Json::Value | doChannelAuthorize (RPC::JsonContext &) |
| Json::Value | doChannelVerify (RPC::JsonContext &) |
| Json::Value | doLedgerAccept (RPC::JsonContext &) |
| Json::Value | doLedgerCleaner (RPC::JsonContext &) |
| Json::Value | doLedgerClosed (RPC::JsonContext &) |
| Json::Value | doLedgerCurrent (RPC::JsonContext &) |
| Json::Value | doLedgerData (RPC::JsonContext &) |
| Json::Value | doLedgerEntry (RPC::JsonContext &) |
| Json::Value | doLedgerHeader (RPC::JsonContext &) |
| Json::Value | doLedgerRequest (RPC::JsonContext &) |
| Json::Value | doLogLevel (RPC::JsonContext &) |
| Json::Value | doLogRotate (RPC::JsonContext &) |
| Json::Value | doNFTBuyOffers (RPC::JsonContext &) |
| Json::Value | doNFTSellOffers (RPC::JsonContext &) |
| Json::Value | doNoRippleCheck (RPC::JsonContext &) |
| Json::Value | doOwnerInfo (RPC::JsonContext &) |
| Json::Value | doPathFind (RPC::JsonContext &) |
| Json::Value | doPause (RPC::JsonContext &) |
| Json::Value | doPeers (RPC::JsonContext &) |
| Json::Value | doPing (RPC::JsonContext &) |
| Json::Value | doPrint (RPC::JsonContext &) |
| Json::Value | doRandom (RPC::JsonContext &) |
| Json::Value | doResume (RPC::JsonContext &) |
| Json::Value | doPeerReservationsAdd (RPC::JsonContext &) |
| Json::Value | doPeerReservationsDel (RPC::JsonContext &) |
| Json::Value | doPeerReservationsList (RPC::JsonContext &) |
| Json::Value | doRipplePathFind (RPC::JsonContext &) |
| Json::Value | doServerDefinitions (RPC::JsonContext &) |
| Json::Value | doServerInfo (RPC::JsonContext &) |
| Json::Value | doServerState (RPC::JsonContext &) |
| Json::Value | doSign (RPC::JsonContext &) |
| Json::Value | doSignFor (RPC::JsonContext &) |
| Json::Value | doSimulate (RPC::JsonContext &) |
| Json::Value | doStop (RPC::JsonContext &) |
| Json::Value | doSubmit (RPC::JsonContext &) |
| Json::Value | doSubmitMultiSigned (RPC::JsonContext &) |
| Json::Value | doSubscribe (RPC::JsonContext &) |
| Json::Value | doTransactionEntry (RPC::JsonContext &) |
| Json::Value | doTxJson (RPC::JsonContext &) |
| Json::Value | doTxHistory (RPC::JsonContext &) |
| Json::Value | doTxReduceRelay (RPC::JsonContext &) |
| Json::Value | doUnlList (RPC::JsonContext &) |
| Json::Value | doUnsubscribe (RPC::JsonContext &) |
| Json::Value | doValidationCreate (RPC::JsonContext &) |
| Json::Value | doWalletPropose (RPC::JsonContext &) |
| Json::Value | doValidators (RPC::JsonContext &) |
| Json::Value | doValidatorListSites (RPC::JsonContext &) |
| Json::Value | doValidatorInfo (RPC::JsonContext &) |
| Json::Value | doVaultInfo (RPC::JsonContext &) |
| static Expected< uint256, Json::Value > | parseObjectID (Json::Value const ¶ms, Json::StaticString const fieldName, std::string const &expectedType="hex string or object") |
| static Expected< uint256, Json::Value > | parseIndex (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseAccountRoot (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseAmendments (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseAMM (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseBridge (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseCheck (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseCredential (Json::Value const &cred, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseDelegate (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< STArray, Json::Value > | parseAuthorizeCredentials (Json::Value const &jv) |
| static Expected< uint256, Json::Value > | parseDepositPreauth (Json::Value const &dp, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseDID (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseDirectoryNode (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseEscrow (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseFeeSettings (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseLedgerHashes (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseMPToken (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseMPTokenIssuance (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseNFTokenOffer (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseNFTokenPage (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseNegativeUNL (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseOffer (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseOracle (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parsePayChannel (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parsePermissionedDomain (Json::Value const &pd, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseRippleState (Json::Value const &jvRippleState, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseSignerList (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseTicket (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseVault (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseXChainOwnedClaimID (Json::Value const &claim_id, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseXChainOwnedCreateAccountClaimID (Json::Value const &claim_id, Json::StaticString const fieldName) |
| static void | appendNftOfferJson (Application const &app, std::shared_ptr< SLE const > const &offer, Json::Value &offers) |
| static Json::Value | enumerateNFTOffers (RPC::JsonContext &context, uint256 const &nftId, Keylet const &directory) |
| static void | fillTransaction (RPC::JsonContext &context, Json::Value &txArray, AccountID const &accountID, std::uint32_t &sequence, ReadView const &ledger) |
| static Expected< std::uint32_t, Json::Value > | getAutofillSequence (Json::Value const &tx_json, RPC::JsonContext &context) |
| static std::optional< Json::Value > | autofillSignature (Json::Value &sigObject) |
| static std::optional< Json::Value > | autofillTx (Json::Value &tx_json, RPC::JsonContext &context) |
| static Json::Value | getTxJsonFromParams (Json::Value const ¶ms) |
| static Json::Value | simulateTxn (RPC::JsonContext &context, std::shared_ptr< Transaction > transaction) |
| static NetworkOPs::FailHard | getFailHard (RPC::JsonContext const &context) |
| static bool | isValidated (LedgerMaster &ledgerMaster, std::uint32_t seq, uint256 const &hash) |
| std::pair< TxResult, RPC::Status > | doTxHelp (RPC::Context &context, TxArgs args) |
| Json::Value | populateJsonResponse (std::pair< TxResult, RPC::Status > const &res, TxArgs const &args, RPC::JsonContext const &context) |
| static std::optional< Seed > | validationSeed (Json::Value const ¶ms) |
| static std::optional< uint256 > | parseVault (Json::Value const ¶ms, Json::Value &jvResult) |
| double | estimate_entropy (std::string const &input) |
| Json::Value | walletPropose (Json::Value const ¶ms) |
| bool | operator< (Port const &lhs, Port const &rhs) |
| template<class Engine , class Integral > | |
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > | rand_int (Engine &engine, Integral min, Integral max) |
| Return a uniformly distributed random integer. | |
| template<class Integral > | |
| std::enable_if_t< std::is_integral< Integral >::value, Integral > | rand_int (Integral min, Integral max) |
| template<class Engine , class Integral > | |
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > | rand_int (Engine &engine, Integral max) |
| template<class Integral > | |
| std::enable_if_t< std::is_integral< Integral >::value, Integral > | rand_int (Integral max) |
| template<class Integral , class Engine > | |
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > | rand_int (Engine &engine) |
| template<class Integral = int> | |
| std::enable_if_t< std::is_integral< Integral >::value, Integral > | rand_int () |
| template<class Byte , class Engine > | |
| std::enable_if_t<(std::is_same< Byte, unsigned char >::value||std::is_same< Byte, std::uint8_t >::value) &&detail::is_engine< Engine >::value, Byte > | rand_byte (Engine &engine) |
| Return a random byte. | |
| template<class Byte = std::uint8_t> | |
| std::enable_if_t<(std::is_same< Byte, unsigned char >::value||std::is_same< Byte, std::uint8_t >::value), Byte > | rand_byte () |
| template<class Engine > | |
| bool | rand_bool (Engine &engine) |
| Return a random boolean value. | |
| bool | rand_bool () |
| bool | cdirFirst (ReadView const &view, uint256 const &root, std::shared_ptr< SLE const > &page, unsigned int &index, uint256 &entry) |
| Returns the first entry in the directory, advancing the index. | |
| bool | dirFirst (ApplyView &view, uint256 const &root, std::shared_ptr< SLE > &page, unsigned int &index, uint256 &entry) |
| bool | cdirNext (ReadView const &view, uint256 const &root, std::shared_ptr< SLE const > &page, unsigned int &index, uint256 &entry) |
| Returns the next entry in the directory, advancing the index. | |
| bool | dirNext (ApplyView &view, uint256 const &root, std::shared_ptr< SLE > &page, unsigned int &index, uint256 &entry) |
| constexpr bool | operator== (Book const &lhs, Book const &rhs) |
| Equality comparison. | |
| constexpr std::weak_ordering | operator<=> (Book const &lhs, Book const &rhs) |
| Strict weak ordering. | |
| constexpr bool | operator== (Issue const &lhs, Issue const &rhs) |
| Equality comparison. | |
| constexpr std::weak_ordering | operator<=> (Issue const &lhs, Issue const &rhs) |
| Strict weak ordering. | |
| bool | canHaveNFTokenID (std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta) |
Add a nftoken_ids field to the meta output parameter. | |
| std::optional< uint256 > | getNFTokenIDFromPage (TxMeta const &transactionMeta) |
| std::vector< uint256 > | getNFTokenIDFromDeletedOffer (TxMeta const &transactionMeta) |
| void | insertNFTokenID (Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta) |
| bool | canHaveNFTokenOfferID (std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta) |
Add an offer_id field to the meta output parameter. | |
| std::optional< uint256 > | getOfferIDFromCreatedOffer (TxMeta const &transactionMeta) |
| void | insertNFTokenOfferID (Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta) |
| std::optional< KeyType > | publicKeyType (Slice const &slice) |
| Returns the type of public key. | |
| std::optional< KeyType > | publicKeyType (PublicKey const &publicKey) |
| Buffer | signDigest (PublicKey const &pk, SecretKey const &sk, uint256 const &digest) |
| Generate a signature for a message digest. | |
| Buffer | signDigest (KeyType type, SecretKey const &sk, uint256 const &digest) |
| Buffer | sign (PublicKey const &pk, SecretKey const &sk, Slice const &message) |
| Generate a signature for a message. | |
| Buffer | sign (KeyType type, SecretKey const &sk, Slice const &message) |
| template<class T , class U > | |
| std::optional< T > | get (STObject const &st, TypedField< U > const &f) |
| Return the value of a field in an STObject as a given type. | |
| template<class U > | |
| std::optional< typename STExchange< U, typename U::value_type >::value_type > | get (STObject const &st, TypedField< U > const &f) |
| std::optional< SHAMapNodeID > | deserializeSHAMapNodeID (void const *data, std::size_t size) |
| Return an object representing a serialized SHAMap Node ID. | |
| std::optional< SHAMapNodeID > | deserializeSHAMapNodeID (std::string const &s) |
| std::optional< Manifest > | deserializeManifest (Slice s, beast::Journal journal) |
| Constructs Manifest from serialized string. | |
| std::optional< Manifest > | deserializeManifest (std::string const &s, beast::Journal journal=beast::Journal(beast::Journal::getNullSink())) |
| template<class T , class = std::enable_if_t< std::is_same<T, char>::value || std::is_same<T, unsigned char>::value>> | |
| std::optional< Manifest > | deserializeManifest (std::vector< T > const &v, beast::Journal journal=beast::Journal(beast::Journal::getNullSink())) |
| STAmount | creditLimit (ReadView const &view, AccountID const &account, AccountID const &issuer, Currency const ¤cy) |
| Calculate the maximum amount of IOUs that an account can hold. | |
| IOUAmount | creditLimit2 (ReadView const &v, AccountID const &acc, AccountID const &iss, Currency const &cur) |
| STAmount | creditBalance (ReadView const &view, AccountID const &account, AccountID const &issuer, Currency const ¤cy) |
| Returns the amount of IOUs issued by issuer that are held by an account. | |
| PreflightResult | preflight (Application &app, Rules const &rules, STTx const &tx, ApplyFlags flags, beast::Journal j) |
| Gate a transaction based on static information. | |
| PreflightResult | preflight (Application &app, Rules const &rules, uint256 const &parentBatchId, STTx const &tx, ApplyFlags flags, beast::Journal j) |
Variables | |
| static constexpr std::chrono::seconds | epoch_offset |
| Clock for measuring the network time. | |
| auto constexpr | muldiv_max = std::numeric_limits<std::uint64_t>::max() |
| constexpr struct ripple::open_ledger_t | open_ledger |
| constexpr struct ripple::batch_view_t | batch_view |
| std::uint16_t constexpr | TRADING_FEE_THRESHOLD = 1000 |
| std::uint32_t constexpr | TOTAL_TIME_SLOT_SECS = 24 * 3600 |
| std::uint16_t constexpr | AUCTION_SLOT_TIME_INTERVALS = 20 |
| std::uint16_t constexpr | AUCTION_SLOT_MAX_AUTH_ACCOUNTS = 4 |
| std::uint32_t constexpr | AUCTION_SLOT_FEE_SCALE_FACTOR = 100000 |
| std::uint32_t constexpr | AUCTION_SLOT_DISCOUNTED_FEE_FRACTION = 10 |
| std::uint32_t constexpr | AUCTION_SLOT_MIN_FEE_FRACTION = 25 |
| std::uint32_t constexpr | AUCTION_SLOT_INTERVAL_DURATION |
| std::uint16_t constexpr | VOTE_MAX_SLOTS = 8 |
| std::uint32_t constexpr | VOTE_WEIGHT_SCALE_FACTOR = 100000 |
| std::array< keyletDesc< AccountID const & >, 6 > const | directAccountKeylets |
| static std::uint32_t const | sLCF_NoConsensusTime = 0x01 |
| std::size_t constexpr | txMinSizeBytes = 32 |
| Protocol specific constants. | |
| std::size_t constexpr | txMaxSizeBytes = megabytes(1) |
| Largest legal byte size of a transaction. | |
| std::size_t constexpr | unfundedOfferRemoveLimit = 1000 |
| The maximum number of unfunded offers to delete at once. | |
| std::size_t constexpr | expiredOfferRemoveLimit = 256 |
| The maximum number of expired offers to delete at once. | |
| std::size_t constexpr | oversizeMetaDataCap = 5200 |
| The maximum number of metadata entries allowed in one transaction. | |
| std::size_t constexpr | dirNodeMaxEntries = 32 |
| The maximum number of entries per directory page. | |
| std::uint64_t constexpr | dirNodeMaxPages = 262144 |
| The maximum number of pages allowed in a directory. | |
| std::size_t constexpr | dirMaxTokensPerPage = 32 |
| The maximum number of items in an NFT page. | |
| std::size_t constexpr | maxDeletableDirEntries = 1000 |
| The maximum number of owner directory entries for account to be deletable. | |
| std::size_t constexpr | maxTokenOfferCancelCount = 500 |
| The maximum number of token offers that can be canceled at once. | |
| std::size_t constexpr | maxDeletableTokenOfferEntries = 500 |
| The maximum number of offers in an offer directory for NFT to be burnable. | |
| std::uint16_t constexpr | maxTransferFee = 50000 |
| The maximum token transfer fee allowed. | |
| std::size_t constexpr | maxTokenURILength = 256 |
| The maximum length of a URI inside an NFT. | |
| std::size_t constexpr | maxDIDDocumentLength = 256 |
| The maximum length of a Data element inside a DID. | |
| std::size_t constexpr | maxDIDURILength = 256 |
| The maximum length of a URI inside a DID. | |
| std::size_t constexpr | maxDIDAttestationLength = 256 |
| The maximum length of an Attestation inside a DID. | |
| std::size_t constexpr | maxDomainLength = 256 |
| The maximum length of a domain. | |
| std::size_t constexpr | maxCredentialURILength = 256 |
| The maximum length of a URI inside a Credential. | |
| std::size_t constexpr | maxCredentialTypeLength = 64 |
| The maximum length of a CredentialType inside a Credential. | |
| std::size_t constexpr | maxCredentialsArraySize = 8 |
| The maximum number of credentials can be passed in array. | |
| std::size_t constexpr | maxPermissionedDomainCredentialsArraySize = 10 |
| The maximum number of credentials can be passed in array for permissioned domain. | |
| std::size_t constexpr | maxMPTokenMetadataLength = 1024 |
| The maximum length of MPTokenMetadata. | |
| std::uint64_t constexpr | maxMPTokenAmount = 0x7FFF'FFFF'FFFF'FFFFull |
| The maximum amount of MPTokenIssuance. | |
| std::size_t constexpr | maxDataPayloadLength = 256 |
| The maximum length of Data payload. | |
| std::uint8_t constexpr | vaultStrategyFirstComeFirstServe = 1 |
| Vault withdrawal policies. | |
| std::uint8_t constexpr | vaultDefaultIOUScale = 6 |
| Default IOU scale factor for a Vault. | |
| std::uint8_t constexpr | vaultMaximumIOUScale = 18 |
| Maximum scale factor for a Vault. | |
| std::uint8_t constexpr | maxAssetCheckDepth = 5 |
| Maximum recursion depth for vault shares being put as an asset inside another vault; counted from 0. | |
| std::uint16_t constexpr | maxDeletableAMMTrustLines = 512 |
| The maximum number of trustlines to delete as part of AMM account deletion cleanup. | |
| std::size_t constexpr | maxOracleURI = 256 |
| The maximum length of a URI inside an Oracle. | |
| std::size_t constexpr | maxOracleProvider = 256 |
| The maximum length of a Provider inside an Oracle. | |
| std::size_t constexpr | maxOracleDataSeries = 10 |
| The maximum size of a data series array inside an Oracle. | |
| std::size_t constexpr | maxOracleSymbolClass = 16 |
| The maximum length of a SymbolClass inside an Oracle. | |
| std::size_t constexpr | maxLastUpdateTimeDelta = 300 |
| The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger. | |
| std::size_t constexpr | maxPriceScale = 20 |
| The maximum price scaling factor. | |
| std::size_t constexpr | maxTrim = 25 |
| The maximum percentage of outliers to trim. | |
| std::size_t constexpr | permissionMaxSize = 10 |
| The maximum number of delegate permissions an account can grant. | |
| std::size_t constexpr | maxBatchTxCount = 8 |
| The maximum number of transactions that can be in a batch. | |
| Rate const | parityRate |
| A transfer rate signifying a 1:1 exchange. | |
| static std::map< std::string, int > const | sTypeMap = {XMACRO(TO_MAP)} |
| SField const | sfInvalid |
| SField const | sfGeneric |
| constexpr std::uint32_t | vfFullValidation = 0x00000001 |
| constexpr std::uint32_t | vfFullyCanonicalSig = 0x80000000 |
| constexpr XRPAmount | INITIAL_XRP {100'000'000'000 * DROPS_PER_XRP} |
| Configure the native currency. | |
| static constexpr std::uint32_t | XRP_LEDGER_EARLIEST_SEQ {32570u} |
| The XRP ledger network's earliest allowed sequence. | |
| static constexpr std::uint32_t | XRP_LEDGER_EARLIEST_FEES {562177u} |
| The XRP Ledger mainnet's earliest ledger with a FeeSettings object. | |
| constexpr std::ratio< 80, 100 > | amendmentMajorityCalcThreshold |
| The minimum amount of support an amendment should have. | |
| constexpr std::chrono::seconds const | defaultAmendmentMajorityTime = weeks{2} |
| The minimum amount of time an amendment must hold a majority. | |
| constexpr std::uint32_t | tfFullyCanonicalSig = 0x80000000 |
| Transaction flags. | |
| constexpr std::uint32_t | tfInnerBatchTxn = 0x40000000 |
| constexpr std::uint32_t | tfUniversal = tfFullyCanonicalSig | tfInnerBatchTxn |
| constexpr std::uint32_t | tfUniversalMask = ~tfUniversal |
| constexpr std::uint32_t | tfRequireDestTag = 0x00010000 |
| constexpr std::uint32_t | tfOptionalDestTag = 0x00020000 |
| constexpr std::uint32_t | tfRequireAuth = 0x00040000 |
| constexpr std::uint32_t | tfOptionalAuth = 0x00080000 |
| constexpr std::uint32_t | tfDisallowXRP = 0x00100000 |
| constexpr std::uint32_t | tfAllowXRP = 0x00200000 |
| constexpr std::uint32_t | tfAccountSetMask |
| constexpr std::uint32_t | asfRequireDest = 1 |
| constexpr std::uint32_t | asfRequireAuth = 2 |
| constexpr std::uint32_t | asfDisallowXRP = 3 |
| constexpr std::uint32_t | asfDisableMaster = 4 |
| constexpr std::uint32_t | asfAccountTxnID = 5 |
| constexpr std::uint32_t | asfNoFreeze = 6 |
| constexpr std::uint32_t | asfGlobalFreeze = 7 |
| constexpr std::uint32_t | asfDefaultRipple = 8 |
| constexpr std::uint32_t | asfDepositAuth = 9 |
| constexpr std::uint32_t | asfAuthorizedNFTokenMinter = 10 |
| constexpr std::uint32_t | asfDisallowIncomingNFTokenOffer = 12 |
| constexpr std::uint32_t | asfDisallowIncomingCheck = 13 |
| constexpr std::uint32_t | asfDisallowIncomingPayChan = 14 |
| constexpr std::uint32_t | asfDisallowIncomingTrustline = 15 |
| constexpr std::uint32_t | asfAllowTrustLineClawback = 16 |
| constexpr std::uint32_t | asfAllowTrustLineLocking = 17 |
| constexpr std::uint32_t | tfPassive = 0x00010000 |
| constexpr std::uint32_t | tfImmediateOrCancel = 0x00020000 |
| constexpr std::uint32_t | tfFillOrKill = 0x00040000 |
| constexpr std::uint32_t | tfSell = 0x00080000 |
| constexpr std::uint32_t | tfHybrid = 0x00100000 |
| constexpr std::uint32_t | tfOfferCreateMask |
| constexpr std::uint32_t | tfNoRippleDirect = 0x00010000 |
| constexpr std::uint32_t | tfPartialPayment = 0x00020000 |
| constexpr std::uint32_t | tfLimitQuality = 0x00040000 |
| constexpr std::uint32_t | tfPaymentMask |
| constexpr std::uint32_t | tfMPTPaymentMask = ~(tfUniversal | tfPartialPayment) |
| constexpr std::uint32_t | tfSetfAuth = 0x00010000 |
| constexpr std::uint32_t | tfSetNoRipple = 0x00020000 |
| constexpr std::uint32_t | tfClearNoRipple = 0x00040000 |
| constexpr std::uint32_t | tfSetFreeze = 0x00100000 |
| constexpr std::uint32_t | tfClearFreeze = 0x00200000 |
| constexpr std::uint32_t | tfSetDeepFreeze = 0x00400000 |
| constexpr std::uint32_t | tfClearDeepFreeze = 0x00800000 |
| constexpr std::uint32_t | tfTrustSetMask |
| constexpr std::uint32_t | tfTrustSetPermissionMask = ~(tfUniversal | tfSetfAuth | tfSetFreeze | tfClearFreeze) |
| constexpr std::uint32_t | tfGotMajority = 0x00010000 |
| constexpr std::uint32_t | tfLostMajority = 0x00020000 |
| constexpr std::uint32_t | tfChangeMask |
| constexpr std::uint32_t | tfRenew = 0x00010000 |
| constexpr std::uint32_t | tfClose = 0x00020000 |
| constexpr std::uint32_t | tfPayChanClaimMask = ~(tfUniversal | tfRenew | tfClose) |
| constexpr std::uint32_t const | tfBurnable = 0x00000001 |
| constexpr std::uint32_t const | tfOnlyXRP = 0x00000002 |
| constexpr std::uint32_t const | tfTrustLine = 0x00000004 |
| constexpr std::uint32_t const | tfTransferable = 0x00000008 |
| constexpr std::uint32_t const | tfMutable = 0x00000010 |
| constexpr std::uint32_t const | tfMPTCanLock = lsfMPTCanLock |
| constexpr std::uint32_t const | tfMPTRequireAuth = lsfMPTRequireAuth |
| constexpr std::uint32_t const | tfMPTCanEscrow = lsfMPTCanEscrow |
| constexpr std::uint32_t const | tfMPTCanTrade = lsfMPTCanTrade |
| constexpr std::uint32_t const | tfMPTCanTransfer = lsfMPTCanTransfer |
| constexpr std::uint32_t const | tfMPTCanClawback = lsfMPTCanClawback |
| constexpr std::uint32_t const | tfMPTokenIssuanceCreateMask |
| constexpr std::uint32_t const | tmfMPTCanMutateCanLock = lsmfMPTCanMutateCanLock |
| constexpr std::uint32_t const | tmfMPTCanMutateRequireAuth = lsmfMPTCanMutateRequireAuth |
| constexpr std::uint32_t const | tmfMPTCanMutateCanEscrow = lsmfMPTCanMutateCanEscrow |
| constexpr std::uint32_t const | tmfMPTCanMutateCanTrade = lsmfMPTCanMutateCanTrade |
| constexpr std::uint32_t const | tmfMPTCanMutateCanTransfer = lsmfMPTCanMutateCanTransfer |
| constexpr std::uint32_t const | tmfMPTCanMutateCanClawback = lsmfMPTCanMutateCanClawback |
| constexpr std::uint32_t const | tmfMPTCanMutateMetadata = lsmfMPTCanMutateMetadata |
| constexpr std::uint32_t const | tmfMPTCanMutateTransferFee = lsmfMPTCanMutateTransferFee |
| constexpr std::uint32_t const | tmfMPTokenIssuanceCreateMutableMask |
| constexpr std::uint32_t const | tfMPTUnauthorize = 0x00000001 |
| constexpr std::uint32_t const | tfMPTokenAuthorizeMask = ~(tfUniversal | tfMPTUnauthorize) |
| constexpr std::uint32_t const | tfMPTLock = 0x00000001 |
| constexpr std::uint32_t const | tfMPTUnlock = 0x00000002 |
| constexpr std::uint32_t const | tfMPTokenIssuanceSetMask = ~(tfUniversal | tfMPTLock | tfMPTUnlock) |
| constexpr std::uint32_t const | tfMPTokenIssuanceSetPermissionMask = ~(tfUniversal | tfMPTLock | tfMPTUnlock) |
| constexpr std::uint32_t const | tmfMPTSetCanLock = 0x00000001 |
| constexpr std::uint32_t const | tmfMPTClearCanLock = 0x00000002 |
| constexpr std::uint32_t const | tmfMPTSetRequireAuth = 0x00000004 |
| constexpr std::uint32_t const | tmfMPTClearRequireAuth = 0x00000008 |
| constexpr std::uint32_t const | tmfMPTSetCanEscrow = 0x00000010 |
| constexpr std::uint32_t const | tmfMPTClearCanEscrow = 0x00000020 |
| constexpr std::uint32_t const | tmfMPTSetCanTrade = 0x00000040 |
| constexpr std::uint32_t const | tmfMPTClearCanTrade = 0x00000080 |
| constexpr std::uint32_t const | tmfMPTSetCanTransfer = 0x00000100 |
| constexpr std::uint32_t const | tmfMPTClearCanTransfer = 0x00000200 |
| constexpr std::uint32_t const | tmfMPTSetCanClawback = 0x00000400 |
| constexpr std::uint32_t const | tmfMPTClearCanClawback = 0x00000800 |
| constexpr std::uint32_t const | tmfMPTokenIssuanceSetMutableMask |
| constexpr std::uint32_t const | tfMPTokenIssuanceDestroyMask = ~tfUniversal |
| constexpr std::uint32_t const | tfNFTokenMintMask |
| constexpr std::uint32_t const | tfNFTokenMintOldMask |
| constexpr std::uint32_t const | tfNFTokenMintOldMaskWithMutable |
| constexpr std::uint32_t const | tfNFTokenMintMaskWithMutable |
| constexpr std::uint32_t const | tfSellNFToken = 0x00000001 |
| constexpr std::uint32_t const | tfNFTokenCreateOfferMask |
| constexpr std::uint32_t const | tfNFTokenCancelOfferMask = ~tfUniversal |
| constexpr std::uint32_t const | tfNFTokenAcceptOfferMask = ~tfUniversal |
| constexpr std::uint32_t const | tfClawbackMask = ~tfUniversal |
| constexpr std::uint32_t | tfLPToken = 0x00010000 |
| constexpr std::uint32_t | tfWithdrawAll = 0x00020000 |
| constexpr std::uint32_t | tfOneAssetWithdrawAll = 0x00040000 |
| constexpr std::uint32_t | tfSingleAsset = 0x00080000 |
| constexpr std::uint32_t | tfTwoAsset = 0x00100000 |
| constexpr std::uint32_t | tfOneAssetLPToken = 0x00200000 |
| constexpr std::uint32_t | tfLimitLPToken = 0x00400000 |
| constexpr std::uint32_t | tfTwoAssetIfEmpty = 0x00800000 |
| constexpr std::uint32_t | tfWithdrawSubTx |
| constexpr std::uint32_t | tfDepositSubTx |
| constexpr std::uint32_t | tfWithdrawMask = ~(tfUniversal | tfWithdrawSubTx) |
| constexpr std::uint32_t | tfDepositMask = ~(tfUniversal | tfDepositSubTx) |
| constexpr std::uint32_t | tfClawTwoAssets = 0x00000001 |
| constexpr std::uint32_t | tfAMMClawbackMask = ~(tfUniversal | tfClawTwoAssets) |
| constexpr std::uint32_t | tfClearAccountCreateAmount = 0x00010000 |
| constexpr std::uint32_t | tfBridgeModifyMask = ~(tfUniversal | tfClearAccountCreateAmount) |
| constexpr std::uint32_t const | tfVaultPrivate = 0x00010000 |
| constexpr std::uint32_t const | tfVaultShareNonTransferable = 0x00020000 |
| constexpr std::uint32_t const | tfVaultCreateMask = ~(tfUniversal | tfVaultPrivate | tfVaultShareNonTransferable) |
| constexpr std::uint32_t | tfAllOrNothing = 0x00010000 |
| constexpr std::uint32_t | tfOnlyOne = 0x00020000 |
| constexpr std::uint32_t | tfUntilFailure = 0x00040000 |
| constexpr std::uint32_t | tfIndependent = 0x00080000 |
| constexpr std::uint32_t const | tfBatchMask |
| constexpr XRPAmount | DROPS_PER_XRP {1'000'000} |
| Number of drops per 1 XRP. | |
| static constexpr unsigned char const | wireTypeTransaction = 0 |
| static constexpr unsigned char const | wireTypeAccountState = 1 |
| static constexpr unsigned char const | wireTypeInner = 2 |
| static constexpr unsigned char const | wireTypeCompressedInner = 3 |
| static constexpr unsigned char const | wireTypeTransactionWithMeta = 4 |
| constexpr Number | one {1000000000000000, -15, Number::unchecked{}} |
| static std::optional< HTTPClientSSLContext > | httpClientSSLContext |
| static std::unique_ptr< detail::AccountIdCache > | accountIdCache |
| static bool const | readOnlySet |
| static std::int64_t constexpr | minMantissa = 1000000000000000ull |
| static std::int64_t constexpr | maxMantissa = 9999999999999999ull |
| static int constexpr | minExponent = -96 |
| static int constexpr | maxExponent = 80 |
| static SField::private_access_tag_t | access |
| SField const | sfHash (access, STI_UINT256, 257, "hash") |
| SField const | sfIndex (access, STI_UINT256, 258, "index") |
| static std::uint64_t const | tenTo14 = 100000000000000ull |
| static std::uint64_t const | tenTo14m1 = tenTo14 - 1 |
| static std::uint64_t const | tenTo17 = tenTo14 * 1000 |
| static constexpr char const * | alphabetForward |
| static constexpr std::array< int, 256 > const | alphabetReverse |
| static boost::intrusive_ptr< SHAMapItem const > const | no_item |
| auto constexpr | ledgerAcquireTimeout = 3000ms |
| static constexpr int | MAX_LEDGER_GAP {100} |
| static constexpr std::chrono::minutes | MAX_LEDGER_AGE_ACQUIRE {1} |
| static constexpr int | MAX_WRITE_LOAD_ACQUIRE {8192} |
| auto constexpr | TX_ACQUIRE_TIMEOUT = 250ms |
| create_genesis_t const | create_genesis {} |
| std::uint32_t constexpr | FLAG_LEDGER_INTERVAL = 256 |
| constexpr char const * | CommonDBPragmaJournal {"PRAGMA journal_mode=%s;"} |
| constexpr char const * | CommonDBPragmaSync {"PRAGMA synchronous=%s;"} |
| constexpr char const * | CommonDBPragmaTemp {"PRAGMA temp_store=%s;"} |
| constexpr std::uint32_t | SQLITE_TUNING_CUTOFF = 10'000'000 |
| constexpr auto | LgrDBName {"ledger.db"} |
| constexpr std::array< char const *, 5 > | LgrDBInit |
| constexpr auto | TxDBName {"transaction.db"} |
| constexpr std::array< char const *, 8 > | TxDBInit |
| constexpr auto | WalletDBName {"wallet.db"} |
| constexpr std::array< char const *, 6 > | WalletDBInit |
| constexpr std::size_t | fullBelowTargetSize = 524288 |
| constexpr std::chrono::seconds | fullBelowExpiration = std::chrono::minutes{10} |
| constexpr std::size_t | maxPoppedTransactions = 10 |
| auto constexpr | default_refresh_interval = std::chrono::minutes{5} |
| auto constexpr | error_retry_interval = std::chrono::seconds{30} |
| unsigned short constexpr | max_redirects = 3 |
| static std::array< char const *, 5 > const | stateNames |
| static auto const | genesisAccountId |
| constexpr HashRouterFlags | SF_SIGBAD |
| constexpr HashRouterFlags | SF_SIGGOOD |
| constexpr HashRouterFlags | SF_LOCALBAD |
| constexpr HashRouterFlags | SF_LOCALGOOD |
| constexpr HashRouterFlags | SF_CF_INVALID = HashRouterFlags::PRIVATE5 |
| constexpr HashRouterFlags | SF_CF_VALID = HashRouterFlags::PRIVATE6 |
| static constexpr std::array< MPTMutabilityFlags, 6 > | mptMutabilityFlags |
| static std::uint32_t const | DEFAULT_SIGNER_LIST_ID = 0 |
| constexpr size_t | xbridgeMaxAccountCreateClaims = 128 |
| std::chrono::seconds constexpr | ledgerPossibleTimeResolutions [] |
| Possible ledger close time resolutions. | |
| auto constexpr | ledgerDefaultTimeResolution = ledgerPossibleTimeResolutions[2] |
| Initial resolution of ledger close time. | |
| auto constexpr | ledgerGenesisTimeResolution = ledgerPossibleTimeResolutions[0] |
| Close time resolution in genesis ledger. | |
| auto constexpr | increaseLedgerTimeResolutionEvery = 8 |
| How often we increase the close time resolution (in numbers of ledgers) | |
| auto constexpr | decreaseLedgerTimeResolutionEvery = 1 |
| How often we decrease the close time resolution (in numbers of ledgers) | |
| constexpr std::array< std::pair< SizedItem, std::array< int, 5 > >, 13 > | sizedItems |
| CheckpointersCollection | checkpointers |
| static auto | checkpointPageCount = 1000 |
| static constexpr char | FEATURE_COMPR [] = "compr" |
| static constexpr char | FEATURE_VPRR [] = "vprr" |
| static constexpr char | FEATURE_TXRR [] = "txrr" |
| static constexpr char | FEATURE_LEDGER_REPLAY [] = "ledgerreplay" |
| static constexpr char | DELIM_FEATURE [] = ";" |
| static constexpr char | DELIM_VALUE [] = "," |
| constexpr ProtocolVersion const | supportedProtocolList [] |
| The list of protocol versions we speak and we prefer to use. | |
| std::unordered_map< protocol::MessageType, TrafficCount::category > const | type_lookup |
| constexpr std::size_t | maximiumMessageSize = megabytes(64) |
| Json::Int constexpr | method_not_found = -32601 |
| Json::Int constexpr | server_overloaded = -32604 |
| Json::Int constexpr | forbidden = -32605 |
| Json::Int constexpr | wrong_version = -32606 |
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
TODO: Remove ripple::basic_semaphore (and this file) and use std::counting_semaphore.
Callback for filtering SHAMap during sync.
Use hardened_hash_* containers for keys that do need a secure hashing algorithm.
The cryptographic security of containers where a hash function is used as a template parameter depends entirely on that hash function and not at all on what container it is.
Background:
GCC: According to GCC Bugzilla PR104928 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928#c15), the fix is scheduled for inclusion in GCC 16.0 (see comment #15, Target Milestone: 16.0). It is not included in GCC 14.x or earlier, and there is no indication that it will be backported to GCC 13.x or 14.x branches.
Clang: The fix for is included in Clang 19.1.0+
Once the minimum compiler version is updated to > GCC 16.0 or Clang 19.1.0, we can remove this file.
WARNING: Avoid using std::counting_semaphore until the minimum compiler version is updated.
| using ripple::uint128 = typedef base_uint<128> |
Definition at line 556 of file base_uint.h.
| using ripple::uint160 = typedef base_uint<160> |
Definition at line 557 of file base_uint.h.
| using ripple::uint256 = typedef base_uint<256> |
Definition at line 558 of file base_uint.h.
| using ripple::uint192 = typedef base_uint<192> |
Definition at line 559 of file base_uint.h.
| using ripple::IniFileSections = typedef std::unordered_map<std::string, std::vector<std::string> > |
Definition at line 36 of file BasicConfig.h.
| using ripple::Blob = typedef std::vector<unsigned char> |
| using ripple::days = typedef std::chrono::duration< int, std::ratio_multiply<std::chrono::hours::period, std::ratio<24> >> |
| using ripple::weeks = typedef std::chrono:: duration<int, std::ratio_multiply<days::period, std::ratio<7> >> |
| using ripple::Stopwatch = typedef beast::abstract_clock<std::chrono::steady_clock> |
| using ripple::TestStopwatch = typedef beast::manual_clock<std::chrono::steady_clock> |
| using ripple::KeyCache = typedef TaggedCache<uint256, int, true> |
Definition at line 28 of file KeyCache.h.
| using ripple::ClosedInterval = typedef boost::icl::closed_interval<T> |
A closed interval over the domain T.
For an instance ClosedInterval c, this represents the closed interval (c.first(), c.last()). A single element interval has c.first() == c.last().
This is simply a type-alias for boost interval container library interval set, so users should consult that documentation for available supporting member and free functions.
Definition at line 45 of file RangeSet.h.
| using ripple::RangeSet = typedef boost::icl::interval_set<T, std::less, ClosedInterval<T> > |
A set of closed intervals over the domain T.
Represents a set of values of the domain T using the minimum number of disjoint ClosedInterval<T>. This is useful to represent ranges of T where a few instances are missing, e.g. the set 1-5,8-9,11-14.
This is simply a type-alias for boost interval container library interval set, so users should consult that documentation for available supporting member and free functions.
Definition at line 70 of file RangeSet.h.
| using ripple::hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 54 of file UnorderedContainers.h.
| using ripple::hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 62 of file UnorderedContainers.h.
| using ripple::hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 70 of file UnorderedContainers.h.
| using ripple::hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 77 of file UnorderedContainers.h.
| using ripple::strong_hash = typedef beast::xxhasher |
Definition at line 81 of file UnorderedContainers.h.
| using ripple::hardened_hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 89 of file UnorderedContainers.h.
| using ripple::hardened_partitioned_hash_map = typedef partitioned_unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 97 of file UnorderedContainers.h.
| using ripple::hardened_hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 106 of file UnorderedContainers.h.
| using ripple::hardened_hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 114 of file UnorderedContainers.h.
| using ripple::hardened_hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 121 of file UnorderedContainers.h.
| typedef TaggedCache< uint256, SLE const > ripple::CachedSLEs |
Definition at line 28 of file CachedSLEs.h.
| using ripple::majorityAmendments_t = typedef std::map<uint256, NetClock::time_point> |
| using ripple::EntryDeleter = typedef std::function<std::pair<TER, SkipEntry>( LedgerEntryType, uint256 const&, std::shared_ptr<SLE>&)> |
| using ripple::AccountID = typedef base_uint<160, detail::AccountIDTag> |
A 160-bit unsigned that uniquely identifies an account.
Definition at line 48 of file AccountID.h.
| using ripple::Result = typedef boost::outcome_v2::result<T, std::error_code> |
Definition at line 37 of file b58_utils.h.
| using ripple::ripemd160_hasher = typedef openssl_ripemd160_hasher |
| using ripple::sha256_hasher = typedef openssl_sha256_hasher |
| using ripple::sha512_hasher = typedef openssl_sha512_hasher |
| using ripple::sha512_half_hasher = typedef detail::basic_sha512_half_hasher<false> |
| using ripple::sha512_half_hasher_s = typedef detail::basic_sha512_half_hasher<true> |
| using ripple::LedgerInfo = typedef LedgerHeader |
Definition at line 79 of file LedgerHeader.h.
| using ripple::MultiApiJson = typedef detail:: MultiApiJson<RPC::apiMinimumSupportedVersion, RPC::apiMaximumValidVersion> |
Definition at line 236 of file MultiApiJson.h.
| using ripple::LedgerIndex = typedef std::uint32_t |
A ledger index.
Definition at line 139 of file Protocol.h.
| using ripple::TxID = typedef uint256 |
A transaction identifier.
The value is computed as the hash of the canonicalized, serialized transaction object.
Definition at line 145 of file Protocol.h.
| using ripple::LedgerHash = typedef uint256 |
Definition at line 27 of file RippleLedgerHash.h.
| using ripple::SF_UINT8 = typedef TypedField<STInteger<std::uint8_t> > |
| using ripple::SF_UINT16 = typedef TypedField<STInteger<std::uint16_t> > |
| using ripple::SF_UINT32 = typedef TypedField<STInteger<std::uint32_t> > |
| using ripple::SF_UINT64 = typedef TypedField<STInteger<std::uint64_t> > |
| using ripple::SF_UINT96 = typedef TypedField<STBitString<96> > |
| using ripple::SF_UINT128 = typedef TypedField<STBitString<128> > |
| using ripple::SF_UINT160 = typedef TypedField<STBitString<160> > |
| using ripple::SF_UINT192 = typedef TypedField<STBitString<192> > |
| using ripple::SF_UINT256 = typedef TypedField<STBitString<256> > |
| using ripple::SF_UINT384 = typedef TypedField<STBitString<384> > |
| using ripple::SF_UINT512 = typedef TypedField<STBitString<512> > |
| using ripple::SF_INT32 = typedef TypedField<STInteger<std::int32_t> > |
| using ripple::SF_INT64 = typedef TypedField<STInteger<std::int64_t> > |
| using ripple::SF_ACCOUNT = typedef TypedField<STAccount> |
| using ripple::SF_AMOUNT = typedef TypedField<STAmount> |
| using ripple::SF_ISSUE = typedef TypedField<STIssue> |
| using ripple::SF_CURRENCY = typedef TypedField<STCurrency> |
| using ripple::SF_NUMBER = typedef TypedField<STNumber> |
| using ripple::SF_VL = typedef TypedField<STBlob> |
| using ripple::SF_VECTOR256 = typedef TypedField<STVector256> |
| using ripple::SF_XCHAIN_BRIDGE = typedef TypedField<STXChainBridge> |
| using ripple::STUInt128 = typedef STBitString<128> |
Definition at line 85 of file STBitString.h.
| using ripple::STUInt160 = typedef STBitString<160> |
Definition at line 86 of file STBitString.h.
| using ripple::STUInt192 = typedef STBitString<192> |
Definition at line 87 of file STBitString.h.
| using ripple::STUInt256 = typedef STBitString<256> |
Definition at line 88 of file STBitString.h.
| using ripple::STUInt8 = typedef STInteger<unsigned char> |
Definition at line 79 of file STInteger.h.
| using ripple::STUInt16 = typedef STInteger<std::uint16_t> |
Definition at line 80 of file STInteger.h.
| using ripple::STUInt32 = typedef STInteger<std::uint32_t> |
Definition at line 81 of file STInteger.h.
| using ripple::STUInt64 = typedef STInteger<std::uint64_t> |
Definition at line 82 of file STInteger.h.
| using ripple::STInt32 = typedef STInteger<std::int32_t> |
Definition at line 84 of file STInteger.h.
| typedef STLedgerEntry ripple::SLE |
Definition at line 102 of file STLedgerEntry.h.
| using ripple::TERUnderlyingType = typedef int |
| using ripple::NotTEC = typedef TERSubset<CanCvtToNotTEC> |
| using ripple::TER = typedef TERSubset<CanCvtToTER> |
| using ripple::B58Result = typedef Expected<T, std::error_code> |
| using ripple::Directory = typedef base_uint<256, detail::DirectoryTag> |
Directory is an index into the directory of offer books.
The last 64 bits of this are the quality.
Definition at line 53 of file UintTypes.h.
| using ripple::Currency = typedef base_uint<160, detail::CurrencyTag> |
Currency is a hash representing a specific currency.
Definition at line 56 of file UintTypes.h.
| using ripple::NodeID = typedef base_uint<160, detail::NodeIDTag> |
NodeID is a 160-bit hash representing one node.
Definition at line 59 of file UintTypes.h.
| using ripple::MPTID = typedef base_uint<192> |
MPTID is a 192-bit value representing MPT Issuance ID, which is a concatenation of a 32-bit sequence (big endian) and a 160-bit account.
Definition at line 64 of file UintTypes.h.
| using ripple::Domain = typedef base_uint<256> |
Domain is a 256-bit hash representing a specific domain.
Definition at line 67 of file UintTypes.h.
| using ripple::FeeLevel = typedef unit::ValueUnit<unit::feelevelTag, T> |
| using ripple::FeeLevel64 = typedef FeeLevel<std::uint64_t> |
| using ripple::FeeLevelDouble = typedef FeeLevel<double> |
| using ripple::Bips = typedef unit::ValueUnit<unit::BipsTag, T> |
| using ripple::Bips16 = typedef Bips<std::uint16_t> |
| using ripple::Bips32 = typedef Bips<std::uint32_t> |
| using ripple::TenthBips = typedef unit::ValueUnit<unit::TenthBipsTag, T> |
| using ripple::TenthBips16 = typedef TenthBips<std::uint16_t> |
| using ripple::TenthBips32 = typedef TenthBips<std::uint32_t> |
| using ripple::Endpoints = typedef std::unordered_map<std::string, boost::asio::ip::tcp::endpoint> |
Definition at line 40 of file ServerImpl.h.
| typedef boost::beast::http::request< boost::beast::http::dynamic_body > ripple::http_request_type |
| typedef boost::beast::http::response< boost::beast::http::dynamic_body > ripple::http_response_type |
| using ripple::FullBelowCache = typedef detail::BasicFullBelowCache |
Definition at line 149 of file FullBelowCache.h.
| using ripple::TreeNodeCache = typedef TaggedCache< uint256, SHAMapTreeNode, false, intr_ptr::SharedWeakUnionPtr<SHAMapTreeNode>, intr_ptr::SharedPtr<SHAMapTreeNode> > |
Definition at line 29 of file TreeNodeCache.h.
| using ripple::const_iterator = typedef Dir::const_iterator |
| using ripple::sha256_t = typedef unsigned_integer<256, std::size_t> |
Definition at line 164 of file hardened_hash_test.cpp.
Alias for RCL-specific instantiation of generic Validations.
Definition at line 241 of file RCLValidations.h.
| using ripple::CachedLedger = typedef CachedView<Ledger> |
A ledger wrapped in a CachedView.
| using ripple::OrderedTxs = typedef CanonicalTXSet |
Definition at line 46 of file OpenLedger.h.
| using ripple::NodeCache = typedef TaggedCache<SHAMapHash, Blob> |
Definition at line 106 of file Application.h.
| using ripple::CheckCancel = typedef CancelCheck |
Definition at line 46 of file CancelCheck.h.
| using ripple::OfferCancel = typedef CancelOffer |
Definition at line 48 of file CancelOffer.h.
| using ripple::CheckCash = typedef CashCheck |
Definition at line 46 of file CashCheck.h.
| using ripple::EnableAmendment = typedef Change |
| using ripple::SetFee = typedef Change |
| using ripple::UNLModify = typedef Change |
| using ripple::CheckCreate = typedef CreateCheck |
Definition at line 46 of file CreateCheck.h.
| using ripple::OfferCreate = typedef CreateOffer |
Definition at line 98 of file CreateOffer.h.
| using ripple::TicketCreate = typedef CreateTicket |
Definition at line 85 of file CreateTicket.h.
| using ripple::AccountDelete = typedef DeleteAccount |
Definition at line 52 of file DeleteAccount.h.
| using ripple::OracleDelete = typedef DeleteOracle |
Definition at line 62 of file DeleteOracle.h.
Definition at line 807 of file InvariantCheck.h.
| using ripple::Offer = typedef TOffer<> |
| using ripple::PaymentChannelCreate = typedef PayChanCreate |
Definition at line 49 of file src/xrpld/app/tx/detail/PayChan.h.
| using ripple::PaymentChannelFund = typedef PayChanFund |
Definition at line 72 of file src/xrpld/app/tx/detail/PayChan.h.
| using ripple::PaymentChannelClaim = typedef PayChanClaim |
Definition at line 101 of file src/xrpld/app/tx/detail/PayChan.h.
| using ripple::AccountSet = typedef SetAccount |
Definition at line 57 of file SetAccount.h.
| using ripple::OracleSet = typedef SetOracle |
Definition at line 55 of file SetOracle.h.
| using ripple::SignerListSet = typedef SetSignerList |
Definition at line 99 of file SetSignerList.h.
| using ripple::TrustSet = typedef SetTrust |
Definition at line 54 of file SetTrust.h.
| using ripple::XChainModifyBridge = typedef BridgeModify |
Definition at line 74 of file XChainBridge.h.
| using ripple::XChainAccountCreateCommit = typedef XChainCreateAccountCommit |
Definition at line 257 of file XChainBridge.h.
| using ripple::semaphore = typedef basic_semaphore<std::mutex, std::condition_variable> |
Definition at line 107 of file semaphore.h.
| using ripple::JobCounter = typedef ClosureCounter<void> |
| using ripple::socket_type = typedef boost::beast::tcp_stream |
Definition at line 41 of file Handshake.h.
| using ripple::stream_type = typedef boost::beast::ssl_stream<socket_type> |
Definition at line 42 of file Handshake.h.
| using ripple::request_type = typedef boost::beast::http::request<boost::beast::http::empty_body> |
Definition at line 43 of file Handshake.h.
| using ripple::ProtocolVersion = typedef std::pair<std::uint16_t, std::uint16_t> |
Represents a particular version of the peer-to-peer protocol.
The protocol is represented as two pairs of 16-bit integers; a major and a minor.
Definition at line 38 of file ProtocolVersion.h.
| using ripple::TxnsData = typedef RelationalDatabase::AccountTxs |
Definition at line 43 of file AccountTx.cpp.
| using ripple::TxnsDataBinary = typedef RelationalDatabase::MetaTxsList |
Definition at line 44 of file AccountTx.cpp.
| using ripple::TxnDataBinary = typedef RelationalDatabase::txnMetaLedgerType |
Definition at line 45 of file AccountTx.cpp.
| using ripple::AccountTxArgs = typedef RelationalDatabase::AccountTxArgs |
Definition at line 46 of file AccountTx.cpp.
| using ripple::AccountTxResult = typedef RelationalDatabase::AccountTxResult |
Definition at line 47 of file AccountTx.cpp.
| using ripple::LedgerShortcut = typedef RelationalDatabase::LedgerShortcut |
Definition at line 49 of file AccountTx.cpp.
| using ripple::LedgerSpecifier = typedef RelationalDatabase::LedgerSpecifier |
Definition at line 50 of file AccountTx.cpp.
| using ripple::Prices = typedef bimap< multiset_of<std::uint32_t, std::greater<std::uint32_t> >, multiset_of<STAmount> > |
Definition at line 37 of file GetAggregatePrice.cpp.
| using ripple::FunctionType = typedef Expected<uint256, Json::Value> (*)( Json::Value const&, Json::StaticString const) |
Definition at line 684 of file LedgerEntry.cpp.
|
strong |
Action to perform when releasing a strong pointer.
noop: Do nothing. For example, a noop action will occur when a count is decremented to a non-zero value.
partialDestroy: Run the partialDestructor. This action will happen when a strong count is decremented to zero and the weak count is non-zero.
destroy: Run the destructor. This action will occur when either the strong count or weak count is decremented and the other count is also zero.
| Enumerator | |
|---|---|
| noop | |
| partialDestroy | |
| destroy | |
Definition at line 41 of file IntrusiveRefCounts.h.
|
strong |
Action to perform when releasing a weak pointer.
noop: Do nothing. For example, a noop action will occur when a count is decremented to a non-zero value.
destroy: Run the destructor. This action will occur when either the strong count or weak count is decremented and the other count is also zero.
| Enumerator | |
|---|---|
| noop | |
| destroy | |
Definition at line 51 of file IntrusiveRefCounts.h.
| enum ripple::LogSeverity |
| enum ripple::ApplyFlags : std::uint32_t |
| Enumerator | |
|---|---|
| tapNONE | |
| tapFAIL_HARD | |
| tapRETRY | |
| tapUNLIMITED | |
| tapBATCH | |
| tapDRY_RUN | |
Definition at line 30 of file ApplyView.h.
|
strong |
|
strong |
| enum ripple::AuthHandling |
|
strong |
|
strong |
The types of node objects.
| Enumerator | |
|---|---|
| hotUNKNOWN | |
| hotLEDGER | |
| hotACCOUNT_NODE | |
| hotTRANSACTION_NODE | |
| hotDUMMY | |
Definition at line 32 of file NodeObject.h.
|
strong |
| Enumerator | |
|---|---|
| success | |
| inputTooLarge | |
| inputTooSmall | |
| badB58Character | |
| outputTooSmall | |
| mismatchedTokenType | |
| mismatchedChecksum | |
| invalidEncodingChar | |
| overflowAdd | |
| unknown | |
Definition at line 26 of file token_errors.h.
| enum ripple::error_code_i |
Definition at line 40 of file ErrorCodes.h.
Codes returned in the warnings array of certain RPC commands.
These values need to remain stable.
| Enumerator | |
|---|---|
| warnRPC_UNSUPPORTED_MAJORITY | |
| warnRPC_AMENDMENT_BLOCKED | |
| warnRPC_EXPIRED_VALIDATOR_LIST | |
| warnRPC_FIELDS_DEPRECATED | |
Definition at line 172 of file ErrorCodes.h.
|
strong |
|
strong |
|
strong |
Prefix for hashing functions.
These prefixes are inserted before the source material used to generate various hashes. This is done to put each hash in its own "space." This way, two different types of objects with the same binary data will produce different hashes.
Each prefix is a 4-byte value with the last byte set to zero and the first three bytes formed from the ASCII equivalent of some arbitrary string. For example "TXN".
| Enumerator | |
|---|---|
| transactionID | transaction plus signature to give transaction ID |
| txNode | transaction plus metadata |
| leafNode | account state |
| innerNode | inner node in V1 tree |
| ledgerMaster | ledger master data for signing |
| txSign | inner transaction to sign |
| txMultiSign | inner transaction to multi-sign |
| validation | validation for signing |
| proposal | proposal for signing |
| manifest | |
| paymentChannelClaim | Payment Channel Claim. |
| credential | Credentials signature. |
| batch | |
Definition at line 55 of file HashPrefix.h.
|
strong |
Identifiers for on-ledger objects.
Each ledger object requires a unique type identifier, which is stored within the object itself; this makes it possible to iterate the entire ledger and determine each object's type and verify that the object you retrieved from a given hash matches the expected type.
Definition at line 53 of file LedgerFormats.h.
Definition at line 123 of file LedgerFormats.h.
We have both transaction type permissions and granular type permissions.
Since we will reuse the TransactionFormats to parse the Transaction Permissions, only the GranularPermissionType is defined here. To prevent conflicts with TxType, the GranularPermissionType is always set to a value greater than the maximum value of uint16.
Definition at line 39 of file Permissions.h.
| enum ripple::Delegation |
| Enumerator | |
|---|---|
| delegatable | |
| notDelegatable | |
Definition at line 51 of file Permissions.h.
|
strong |
| Enumerator | |
|---|---|
| canonical | |
| fullyCanonical | |
Definition at line 194 of file PublicKey.h.
| enum ripple::SOEStyle |
Kind of element in each entry of an SOTemplate.
| Enumerator | |
|---|---|
| soeINVALID | |
| soeREQUIRED | |
| soeOPTIONAL | |
| soeDEFAULT | |
Definition at line 33 of file SOTemplate.h.
Amount fields that can support MPT.
| Enumerator | |
|---|---|
| soeMPTNone | |
| soeMPTSupported | |
| soeMPTNotSupported | |
Definition at line 43 of file SOTemplate.h.
| enum ripple::TxnSql : char |
|
strong |
| enum ripple::TxType : std::uint16_t |
Transaction type identifiers.
These are part of the binary message format. Transaction type identifiers
Each ledger object requires a unique type identifier, which is stored within the object itself; this makes it possible to iterate the entire ledger and determine each object's type and verify that the object you retrieved from a given hash matches the expected type.
Definition at line 56 of file TxFormats.h.
|
strong |
| Enumerator | |
|---|---|
| nonDstMismatch | |
| matchExceptDst | |
| match | |
Definition at line 256 of file XChainAttestations.h.
|
strong |
Describes the current state of a given SHAMap.
|
strong |
| Enumerator | |
|---|---|
| TRANSACTION | |
| STATE | |
| FREE | |
Definition at line 33 of file SHAMapMissingNode.h.
|
strong |
| Enumerator | |
|---|---|
| tnINNER | |
| tnTRANSACTION_NM | |
| tnTRANSACTION_MD | |
| tnACCOUNT_STATE | |
Definition at line 43 of file SHAMapTreeNode.h.
|
strong |
Type-specific prefix for calculating ledger indices.
The identifier for a given object within the ledger is calculated based on some object-specific parameters. To ensure that different types of objects have different indices, even if they happen to use the same set of parameters, we use "tagged hashing" by adding a type-specific prefix.
Additions to this list are OK, but changing existing entries to assign them a different values should never be needed.
Entries that are removed should be moved to the bottom of the enum and marked as [[deprecated]] to prevent accidental reuse.
Definition at line 66 of file Indexes.cpp.
|
strong |
| Enumerator | |
|---|---|
| no | |
| yes | |
Definition at line 37 of file RCLValidations.h.
| anonymous enum |
| Enumerator | |
|---|---|
| peerCountStart | |
| peerCountAdd | |
| ledgerTimeoutRetriesMax | |
| ledgerBecomeAggressiveThreshold | |
| missingNodesFind | |
| reqNodesReply | |
| reqNodes | |
Definition at line 44 of file InboundLedger.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| startPeers | |
| setKeepRounds | |
Definition at line 36 of file InboundTransactions.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| NORM_TIMEOUTS | |
| MAX_TIMEOUTS | |
Definition at line 36 of file TransactionAcquire.cpp.
|
strong |
| Enumerator | |
|---|---|
| No | |
| Yes | |
Definition at line 51 of file AMMHelpers.h.
|
strong |
| Enumerator | |
|---|---|
| UNDEFINED | |
| BAD | |
| SAVED | |
| HELD | |
| TRUSTED | |
| PRIVATE1 | |
| PRIVATE2 | |
| PRIVATE3 | |
| PRIVATE4 | |
| PRIVATE5 | |
| PRIVATE6 | |
Definition at line 34 of file HashRouter.h.
|
strong |
| Enumerator | |
|---|---|
| accepted | Manifest is valid. |
| stale | Sequence is too old. |
| badMasterKey | The master key is not acceptable to us. |
| badEphemeralKey | The ephemeral key is not acceptable to us. |
| invalid | Timely, but invalid signature. |
Definition at line 215 of file Manifest.h.
|
strong |
Specifies the mode under which the server believes it's operating.
This has implications about how the server processes transactions and how it responds to requests (e.g. account balance request).
Definition at line 68 of file NetworkOPs.h.
| enum ripple::TransStatus |
| Enumerator | |
|---|---|
| NEW | |
| INVALID | |
| INCLUDED | |
| CONFLICTED | |
| COMMITTED | |
| HELD | |
| REMOVED | |
| OBSOLETE | |
| INCOMPLETE | |
Definition at line 46 of file Transaction.h.
|
strong |
| Enumerator | |
|---|---|
| all | |
| some | |
| unknown | |
Definition at line 58 of file Transaction.h.
|
strong |
Definition at line 55 of file ValidatorList.h.
|
strong |
| Enumerator | |
|---|---|
| available | |
| expired | |
| unavailable | |
| revoked | |
Definition at line 87 of file ValidatorList.h.
|
strong |
|
strong |
|
strong |
|
strong |
Describes how an account was found in a path, and how to find the next set of paths.
"Outgoing" is defined as the source account, or an account found via a trustline that has rippling enabled on the account's side. "Incoming" is defined as an account found via a trustline that has rippling disabled on the account's side. Any trust lines for an incoming account that have rippling disabled are unusable in paths.
| Enumerator | |
|---|---|
| incoming | |
| outgoing | |
Definition at line 41 of file TrustLine.h.
|
strong |
|
strong |
Describes the pre-processing validity of a transaction.
| Enumerator | |
|---|---|
| SigBad | Signature is bad. Didn't do local checks. |
| SigGoodOnly | Signature is good, but local checks fail. |
| Valid | Signature and local checks are good / passed. |
|
strong |
Enum class for return value from applyTransaction
| Enumerator | |
|---|---|
| Success | Applied to this ledger. |
| Fail | Should not be retried in this ledger. |
| Retry | Should be retried in this ledger. |
|
strong |
AMMWithdraw implements AMM withdraw Transactor.
The withdraw transaction is used to remove liquidity from the AMM instance pool, thus redeeming some share of the pools that one owns in the form of LPTokens. If the trader withdraws proportional values of both assets without changing their relative pricing, no trading fee is charged on the transaction. The trader can specify different combination of the fields in the withdrawal. LPTokens - transaction assumes proportional withdrawal of pool assets for the amount of LPTokens. Asset1Out - transaction assumes withdrawal of single asset equivalent to the amount specified in Asset1Out. Asset1Out and Asset2Out - transaction assumes all assets withdrawal with the constraints on the maximum amount of each asset that the trader is willing to withdraw. Asset1Out and LPTokens - transaction assumes withdrawal of single asset specified in Asset1Out proportional to the share represented by the amount of LPTokens. Asset1Out and EPrice - transaction assumes withdrawal of single asset with the following constraints: a. Amount of asset1 if specified (not 0) in Asset1Out specifies the minimum amount of asset1 that the trader is willing to withdraw. b. The effective price of asset traded out does not exceed the amount specified in EPrice. Following updates after a successful transaction: The withdrawn asset, if XRP, is transferred from AMM instance account to the account that initiated the transaction, thus changing the Balance field of each account. The withdrawn asset, if token, is balanced between the AMM instance account and the issuer account. The LPTokens ~ are balanced between the AMM instance account and the account that initiated the transaction. The pool composition is updated.
| Enumerator | |
|---|---|
| No | |
| Yes | |
Definition at line 68 of file AMMWithdraw.h.
| enum ripple::Privilege |
Definition at line 68 of file InvariantCheck.cpp.
|
strong |
Represents how a node currently participates in Consensus.
A node participates in consensus in varying modes, depending on how the node was configured by its operator and how well it stays in sync with the network during consensus.
We enter the round proposing or observing. If we detect we are working on the wrong prior ledger, we go to wrongLedger and attempt to acquire the right one. Once we acquire the right one, we go to the switchedLedger mode. It is possible we fall behind again and find there is a new better ledger, moving back and forth between wrongLedger and switchLedger as we attempt to catch up.
Definition at line 57 of file ConsensusTypes.h.
|
strong |
Phases of consensus for a single ledger round.
The typical transition goes from open to establish to accepted and then a call to startRound begins the process anew. However, if a wrong prior ledger is detected and recovered during the establish or accept phase, consensus will internally go back to open (see Consensus::handleWrongLedger).
Definition at line 105 of file ConsensusTypes.h.
|
strong |
Whether we have or don't have a consensus.
| Enumerator | |
|---|---|
| No | We do not have consensus. |
| MovedOn | The network has consensus without us. |
| Expired | Consensus time limit has hard-expired. |
| Yes | We have consensus along with the network. |
Definition at line 188 of file ConsensusTypes.h.
|
strong |
Status of validation we received.
Definition at line 169 of file Validations.h.
|
strong |
| enum ripple::JobType |
|
strong |
| Enumerator | |
|---|---|
| ValidatorListPropagation | |
| ValidatorList2Propagation | |
| LedgerReplay | |
Definition at line 36 of file xrpld/overlay/Peer.h.
|
strong |
| void ripple::generalized_set_intersection | ( | InputIter1 | first1, |
| InputIter1 | last1, | ||
| InputIter2 | first2, | ||
| InputIter2 | last2, | ||
| Action | action, | ||
| Comp | comp | ||
| ) |
Definition at line 36 of file algorithm.h.
| FwdIter1 ripple::remove_if_intersect_or_match | ( | FwdIter1 | first1, |
| FwdIter1 | last1, | ||
| InputIter2 | first2, | ||
| InputIter2 | last2, | ||
| Pred | pred, | ||
| Comp | comp | ||
| ) |
Definition at line 74 of file algorithm.h.
| void ripple::extractTarLz4 | ( | boost::filesystem::path const & | src, |
| boost::filesystem::path const & | dst | ||
| ) |
Extract a tar archive compressed with lz4.
| src | the path of the archive to be extracted |
| dst | the directory to extract to |
| runtime_error |
Definition at line 36 of file Archive.cpp.
| std::string ripple::base64_encode | ( | std::uint8_t const * | data, |
| std::size_t | len | ||
| ) |
Definition at line 239 of file libxrpl/basics/base64.cpp.
| std::string ripple::base64_encode | ( | std::string const & | s | ) |
| std::string ripple::base64_decode | ( | std::string_view | data | ) |
Definition at line 248 of file libxrpl/basics/base64.cpp.
|
constexpr |
Definition at line 562 of file base_uint.h.
|
constexpr |
Definition at line 585 of file base_uint.h.
|
constexpr |
Definition at line 593 of file base_uint.h.
|
constexpr |
Definition at line 601 of file base_uint.h.
|
constexpr |
Definition at line 608 of file base_uint.h.
|
constexpr |
Definition at line 615 of file base_uint.h.
|
constexpr |
Definition at line 622 of file base_uint.h.
| std::string ripple::to_string | ( | base_uint< Bits, Tag > const & | a | ) |
Definition at line 630 of file base_uint.h.
| std::string ripple::to_short_string | ( | base_uint< Bits, Tag > const & | a | ) |
Definition at line 637 of file base_uint.h.
| std::ostream & ripple::operator<< | ( | std::ostream & | out, |
| base_uint< Bits, Tag > const & | u | ||
| ) |
Definition at line 646 of file base_uint.h.
| std::size_t ripple::extract | ( | uint256 const & | key | ) |
Definition at line 654 of file base_uint.h.
| bool ripple::set | ( | T & | target, |
| std::string const & | name, | ||
| Section const & | section | ||
| ) |
Set a value from a configuration Section If the named value is not found or doesn't parse as a T, the variable is unchanged.
true if value was set. Definition at line 315 of file BasicConfig.h.
| bool ripple::set | ( | T & | target, |
| T const & | defaultValue, | ||
| std::string const & | name, | ||
| Section const & | section | ||
| ) |
Set a value from a configuration Section If the named value is not found or doesn't cast to T, the variable is assigned the default.
true if the named value was found and is valid. Definition at line 337 of file BasicConfig.h.
| T ripple::get | ( | Section const & | section, |
| std::string const & | name, | ||
| T const & | defaultValue = T{} |
||
| ) |
Retrieve a key/value pair from a section.
Definition at line 355 of file BasicConfig.h.
| std::string ripple::get | ( | Section const & | section, |
| std::string const & | name, | ||
| char const * | defaultValue | ||
| ) |
Definition at line 370 of file BasicConfig.h.
| bool ripple::get_if_exists | ( | Section const & | section, |
| std::string const & | name, | ||
| T & | v | ||
| ) |
Definition at line 386 of file BasicConfig.h.
| bool ripple::get_if_exists< bool > | ( | Section const & | section, |
| std::string const & | name, | ||
| bool & | v | ||
| ) |
Definition at line 392 of file BasicConfig.h.
|
constexprnoexcept |
Definition at line 27 of file ByteUtilities.h.
|
constexprnoexcept |
Definition at line 34 of file ByteUtilities.h.
| std::string ripple::to_string | ( | date::sys_time< Duration > | tp | ) |
| std::string ripple::to_string | ( | NetClock::time_point | tp | ) |
| std::string ripple::to_string_iso | ( | date::sys_time< Duration > | tp | ) |
| std::string ripple::to_string_iso | ( | NetClock::time_point | tp | ) |
| Stopwatch & ripple::stopwatch | ( | ) |
| void ripple::LogThrow | ( | std::string const & | title | ) |
Generates and logs a call stack.
Definition at line 31 of file libxrpl/basics/contract.cpp.
| void ripple::Rethrow | ( | ) |
Rethrow the exception currently being handled.
When called from within a catch block, it will pass control to the next matching exception handler, if any. Otherwise, std::terminate will be called.
Definition at line 48 of file contract.h.
| void ripple::Throw | ( | Args &&... | args | ) |
Definition at line 56 of file contract.h.
|
noexcept |
Called when faulty logic causes a broken invariant.
Definition at line 37 of file libxrpl/basics/contract.cpp.
| ripple::Unexpected | ( | E(&) | [N] | ) | -> Unexpected< E const * > |
| std::string ripple::getFileContents | ( | boost::system::error_code & | ec, |
| boost::filesystem::path const & | sourcePath, | ||
| std::optional< std::size_t > | maxSize = std::nullopt |
||
| ) |
Definition at line 40 of file FileUtilities.cpp.
| void ripple::writeFileContents | ( | boost::system::error_code & | ec, |
| boost::filesystem::path const & | destPath, | ||
| std::string const & | contents | ||
| ) |
Definition at line 81 of file FileUtilities.cpp.
| SharedIntrusive< TT > ripple::make_SharedIntrusive | ( | Args &&... | args | ) |
Create a shared intrusive pointer.
Note: unlike std::shared_ptr, where there is an advantage of allocating the pointer and control block together, there is no benefit for intrusive pointers.
Definition at line 467 of file IntrusivePointer.h.
| void ripple::partialDestructorFinished | ( | T ** | o | ) |
Definition at line 479 of file IntrusiveRefCounts.h.
| Stream & ripple::join | ( | Stream & | s, |
| Iter | iter, | ||
| Iter | end, | ||
| std::string const & | delimiter | ||
| ) |
| std::unique_ptr< beast::Journal::Sink > ripple::setDebugLogSink | ( | std::unique_ptr< beast::Journal::Sink > | sink | ) |
| beast::Journal ripple::debugLog | ( | ) |
| std::shared_ptr< boost::asio::ssl::context > ripple::make_SSLContext | ( | std::string const & | cipherList | ) |
Create a self-signed SSL context that allows anonymous Diffie Hellman.
Definition at line 385 of file make_SSLContext.cpp.
| std::shared_ptr< boost::asio::ssl::context > ripple::make_SSLContextAuthed | ( | std::string const & | keyFile, |
| std::string const & | certFile, | ||
| std::string const & | chainFile, | ||
| std::string const & | cipherList | ||
| ) |
Create an authenticated SSL context using the specified files.
Definition at line 396 of file make_SSLContext.cpp.
|
constexpr |
Calculate one number divided by another number in percentage.
The result is rounded up to the next integer, and capped in the range [0,100] E.g. calculatePercent(1, 100) = 1 because 1/100 = 0.010000 calculatePercent(1, 99) = 2 because 1/99 = 0.010101 calculatePercent(0, 100) = 0 calculatePercent(100, 100) = 100 calculatePercent(200, 100) = 100 because the result is capped to 100
| count | dividend |
| total | divisor |
Definition at line 44 of file MathUtilities.h.
| std::optional< std::uint64_t > ripple::mulDiv | ( | std::uint64_t | value, |
| std::uint64_t | mul, | ||
| std::uint64_t | div | ||
| ) |
Return value*mul/div accurately.
Computes the result of the multiplication and division in a single step, avoiding overflow and retaining precision. Throws: None Returns: std::optional: std::nullopt if the calculation overflows. Otherwise, value * mul / div.
Definition at line 32 of file libxrpl/basics/mulDiv.cpp.
| std::string ripple::to_string | ( | Number const & | amount | ) |
Definition at line 515 of file Number.cpp.
Definition at line 613 of file Number.cpp.
Definition at line 636 of file Number.cpp.
Definition at line 701 of file Number.cpp.
Definition at line 741 of file Number.cpp.
|
static |
Definition at line 38 of file partitioned_unordered_map.h.
| std::size_t ripple::extract | ( | std::string const & | key | ) |
Definition at line 45 of file partitioned_unordered_map.h.
| beast::xor_shift_engine & ripple::default_prng | ( | ) |
Return the default random engine.
This engine is guaranteed to be deterministic, but by default will be randomly seeded. It is NOT cryptographically secure and MUST NOT be used to generate randomness that will be used for keys, secure cookies, IVs, padding, etc.
Each thread gets its own instance of the engine which will be randomly seeded.
Definition at line 65 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > ripple::rand_int | ( | Engine & | engine, |
| Integral | min, | ||
| Integral | max | ||
| ) |
Return a uniformly distributed random integer.
| min | The smallest value to return. If not specified the value defaults to 0. |
| max | The largest value to return. If not specified the value defaults to the largest value that can be represented. |
The randomness is generated by the specified engine (or the default engine if one is not specified). The result is cryptographically secure only when the engine passed into the function is cryptographically secure.
Definition at line 115 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value, Integral > ripple::rand_int | ( | Integral | min, |
| Integral | max | ||
| ) |
Definition at line 127 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > ripple::rand_int | ( | Engine & | engine, |
| Integral | max | ||
| ) |
Definition at line 136 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value, Integral > ripple::rand_int | ( | Integral | max | ) |
Definition at line 143 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > ripple::rand_int | ( | Engine & | engine | ) |
Definition at line 152 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value, Integral > ripple::rand_int | ( | ) |
Definition at line 159 of file include/xrpl/basics/random.h.
| std::enable_if_t<(std::is_same< Byte, unsigned char >::value|| std::is_same< Byte, std::uint8_t >::value) && detail::is_engine< Engine >::value, Byte > ripple::rand_byte | ( | Engine & | engine | ) |
Return a random byte.
Definition at line 173 of file include/xrpl/basics/random.h.
| std::enable_if_t<(std::is_same< Byte, unsigned char >::value|| std::is_same< Byte, std::uint8_t >::value), Byte > ripple::rand_byte | ( | ) |
Definition at line 186 of file include/xrpl/basics/random.h.
| bool ripple::rand_bool | ( | Engine & | engine | ) |
Return a random boolean value.
Definition at line 196 of file include/xrpl/basics/random.h.
| bool ripple::rand_bool | ( | ) |
Definition at line 202 of file include/xrpl/basics/random.h.
| ClosedInterval< T > ripple::range | ( | T | low, |
| T | high | ||
| ) |
Create a closed range interval.
Helper function to create a closed range interval without having to qualify the template argument.
Definition at line 54 of file RangeSet.h.
| std::string ripple::to_string | ( | ClosedInterval< T > const & | ci | ) |
Convert a ClosedInterval to a styled string.
The styled string is "c.first()-c.last()" if c.first() != c.last() "c.first()" if c.first() == c.last()
| ci | The closed interval to convert |
Definition at line 83 of file RangeSet.h.
| std::string ripple::to_string | ( | RangeSet< T > const & | rs | ) |
Convert the given RangeSet to a styled string.
The styled string representation is the set of disjoint intervals joined by commas. The string "empty" is returned if the set is empty.
| rs | The rangeset to convert |
Definition at line 100 of file RangeSet.h.
| bool ripple::from_string | ( | RangeSet< T > & | rs, |
| std::string const & | s | ||
| ) |
Convert the given styled string to a RangeSet.
The styled string representation is the set of disjoint intervals joined by commas.
| rs | The set to be populated |
| s | The styled string to convert |
Definition at line 124 of file RangeSet.h.
| std::optional< T > ripple::prevMissing | ( | RangeSet< T > const & | rs, |
| T | t, | ||
| T | minVal = 0 |
||
| ) |
Find the largest value not in the set that is less than a given value.
| rs | The set of interest |
| t | The value that must be larger than the result |
| minVal | (Default is 0) The smallest allowed value |
Definition at line 183 of file RangeSet.h.
|
constexprnoexcept |
Definition at line 41 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 57 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 65 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 77 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 89 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 97 of file safe_cast.h.
| ripple::scope_exit | ( | EF | ) | -> scope_exit< EF > |
| ripple::scope_fail | ( | EF | ) | -> scope_fail< EF > |
| ripple::scope_success | ( | EF | ) | -> scope_success< EF > |
| ripple::scope_unlock | ( | std::unique_lock< Mutex > & | ) | -> scope_unlock< Mutex > |
| bool ripple::operator!= | ( | SHAMapHash const & | x, |
| SHAMapHash const & | y | ||
| ) |
Definition at line 107 of file SHAMapHash.h.
| std::size_t ripple::extract | ( | SHAMapHash const & | key | ) |
Definition at line 114 of file SHAMapHash.h.
| void ripple::hash_append | ( | Hasher & | h, |
| Slice const & | v | ||
| ) |
| Stream & ripple::operator<< | ( | Stream & | s, |
| Slice const & | v | ||
| ) |
| std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > ripple::makeSlice | ( | std::array< T, N > const & | a | ) |
| std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > ripple::makeSlice | ( | std::vector< T, Alloc > const & | v | ) |
| Slice ripple::makeSlice | ( | std::basic_string< char, Traits, Alloc > const & | s | ) |
| std::string ripple::strHex | ( | FwdIt | begin, |
| FwdIt | end | ||
| ) |
| std::string ripple::strHex | ( | T const & | from | ) |
| std::string ripple::sqlBlobLiteral | ( | Blob const & | blob | ) |
Format arbitrary binary data as an SQLite "blob literal".
In SQLite, blob literals must be encoded when used in a query. Per https://sqlite.org/lang_expr.html#literal_values_constants_ they are encoded as string literals containing hexadecimal data and preceded by a single 'X' character.
| blob | An arbitrary blob of binary data |
Definition at line 42 of file StringUtilities.cpp.
| std::optional< Blob > ripple::strUnHex | ( | std::size_t | strSize, |
| Iterator | begin, | ||
| Iterator | end | ||
| ) |
Definition at line 51 of file StringUtilities.h.
| std::optional< Blob > ripple::strUnHex | ( | std::string const & | strSrc | ) |
Definition at line 106 of file StringUtilities.h.
| std::optional< Blob > ripple::strViewUnHex | ( | std::string_view | strSrc | ) |
Definition at line 112 of file StringUtilities.h.
| bool ripple::parseUrl | ( | parsedURL & | pUrl, |
| std::string const & | strUrl | ||
| ) |
Definition at line 56 of file StringUtilities.cpp.
| std::string ripple::trim_whitespace | ( | std::string | str | ) |
Definition at line 116 of file StringUtilities.cpp.
| std::optional< std::uint64_t > ripple::to_uint64 | ( | std::string const & | s | ) |
Definition at line 123 of file StringUtilities.cpp.
| bool ripple::isProperlyFormedTomlDomain | ( | std::string_view | domain | ) |
Determines if the given string looks like a TOML-file hosting domain.
Do not use this function to determine if a particular string is a valid domain, as this function may reject domains that are otherwise valid and doesn't check whether the TLD is valid.
Definition at line 132 of file StringUtilities.cpp.
| std::enable_if< std::is_arithmetic< T >::value, std::string >::type ripple::to_string | ( | T | t | ) |
to_string() generalizes std::to_string to handle bools, chars, and strings.
It's also possible to provide implementation of to_string for a class which needs a string implementation.
Definition at line 36 of file ToString.h.
| std::string ripple::to_string | ( | bool | b | ) |
Definition at line 42 of file ToString.h.
| std::string ripple::to_string | ( | char | c | ) |
Definition at line 48 of file ToString.h.
| std::string ripple::to_string | ( | std::string | s | ) |
Definition at line 54 of file ToString.h.
| std::string ripple::to_string | ( | char const * | s | ) |
Definition at line 60 of file ToString.h.
| csprng_engine & ripple::crypto_prng | ( | ) |
The default cryptographically secure PRNG.
Use this when you need to generate random numbers or data that will be used for encryption or passed into cryptographic routines.
This meets the requirements of UniformRandomNumberEngine
Definition at line 103 of file libxrpl/crypto/csprng.cpp.
| void ripple::secure_erase | ( | void * | dest, |
| std::size_t | bytes | ||
| ) |
Attempts to clear the given blob of memory.
The underlying implementation of this function takes pains to attempt to outsmart the compiler from optimizing the clearing away. Please note that, despite that, remnants of content may remain floating around in memory as well as registers, caches and more.
For a more in-depth discussion of the subject please see the below posts by Colin Percival:
http://www.daemonology.net/blog/2014-09-04-how-to-zero-a-buffer.html http://www.daemonology.net/blog/2014-09-06-zeroing-buffers-is-insufficient.html
Definition at line 29 of file secure_erase.cpp.
|
constexpr |
Definition at line 53 of file ApplyView.h.
|
constexpr |
Definition at line 68 of file ApplyView.h.
|
constexpr |
Definition at line 79 of file ApplyView.h.
| ApplyFlags ripple::operator|= | ( | ApplyFlags & | lhs, |
| ApplyFlags const & | rhs | ||
| ) |
Definition at line 90 of file ApplyView.h.
| ApplyFlags ripple::operator&= | ( | ApplyFlags & | lhs, |
| ApplyFlags const & | rhs | ||
| ) |
Definition at line 97 of file ApplyView.h.
| TER ripple::verifyValidDomain | ( | ApplyView & | view, |
| AccountID const & | account, | ||
| uint256 | domainID, | ||
| beast::Journal | j | ||
| ) |
Definition at line 323 of file CredentialHelpers.cpp.
| TER ripple::verifyDepositPreauth | ( | STTx const & | tx, |
| ApplyView & | view, | ||
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| std::shared_ptr< SLE > const & | sleDst, | ||
| beast::Journal | j | ||
| ) |
Definition at line 361 of file CredentialHelpers.cpp.
| Rules ripple::makeRulesGivenLedger | ( | DigestAwareReadView const & | ledger, |
| Rules const & | current | ||
| ) |
Definition at line 69 of file ReadView.cpp.
| Rules ripple::makeRulesGivenLedger | ( | DigestAwareReadView const & | ledger, |
| std::unordered_set< uint256, beast::uhash<> > const & | presets | ||
| ) |
Definition at line 75 of file ReadView.cpp.
| bool ripple::hasExpired | ( | ReadView const & | view, |
| std::optional< std::uint32_t > const & | exp | ||
| ) |
Determines whether the given expiration time has passed.
In the XRP Ledger, expiration times are defined as the number of whole seconds after the "Ripple Epoch" which, for historical reasons, is set to January 1, 2000 (00:00 UTC).
This is like the way the Unix epoch works, except the Ripple Epoch is precisely 946,684,800 seconds after the Unix Epoch.
See https://xrpl.org/basic-data-types.html#specifying-time
Expiration is defined in terms of the close time of the parent ledger, because we definitively know the time that it closed (since consensus agrees on time) but we do not know the closing time of the ledger that is under construction.
| view | The ledger whose parent time is used as the clock. |
| exp | The optional expiration time we want to check. |
true if exp is in the past; false otherwise. | bool ripple::isAnyFrozen | ( | ReadView const & | view, |
| std::initializer_list< AccountID > const & | accounts, | ||
| MPTIssue const & | mptIssue, | ||
| int | depth = 0 |
||
| ) |
| bool ripple::isAnyFrozen | ( | ReadView const & | view, |
| std::initializer_list< AccountID > const & | accounts, | ||
| Issue const & | issue | ||
| ) |
| bool ripple::isAnyFrozen | ( | ReadView const & | view, |
| std::initializer_list< AccountID > const & | accounts, | ||
| Asset const & | asset, | ||
| int | depth = 0 |
||
| ) |
| STAmount ripple::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Currency const & | currency, | ||
| AccountID const & | issuer, | ||
| FreezeHandling | zeroIfFrozen, | ||
| beast::Journal | j | ||
| ) |
| STAmount ripple::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Issue const & | issue, | ||
| FreezeHandling | zeroIfFrozen, | ||
| beast::Journal | j | ||
| ) |
| STAmount ripple::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| MPTIssue const & | mptIssue, | ||
| FreezeHandling | zeroIfFrozen, | ||
| AuthHandling | zeroIfUnauthorized, | ||
| beast::Journal | j | ||
| ) |
| STAmount ripple::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Asset const & | asset, | ||
| FreezeHandling | zeroIfFrozen, | ||
| AuthHandling | zeroIfUnauthorized, | ||
| beast::Journal | j | ||
| ) |
| STAmount ripple::accountFunds | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| STAmount const & | saDefault, | ||
| FreezeHandling | freezeHandling, | ||
| beast::Journal | j | ||
| ) |
| XRPAmount ripple::xrpLiquid | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| std::int32_t | ownerCountAdj, | ||
| beast::Journal | j | ||
| ) |
| void ripple::forEachItem | ( | ReadView const & | view, |
| Keylet const & | root, | ||
| std::function< void(std::shared_ptr< SLE const > const &)> const & | f | ||
| ) |
| bool ripple::forEachItemAfter | ( | ReadView const & | view, |
| Keylet const & | root, | ||
| uint256 const & | after, | ||
| std::uint64_t const | hint, | ||
| unsigned int | limit, | ||
| std::function< bool(std::shared_ptr< SLE const > const &)> const & | f | ||
| ) |
| void ripple::forEachItem | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| std::function< void(std::shared_ptr< SLE const > const &)> const & | f | ||
| ) |
| bool ripple::forEachItemAfter | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| uint256 const & | after, | ||
| std::uint64_t const | hint, | ||
| unsigned int | limit, | ||
| std::function< bool(std::shared_ptr< SLE const > const &)> const & | f | ||
| ) |
| majorityAmendments_t ripple::getMajorityAmendments | ( | ReadView const & | view | ) |
| std::optional< uint256 > ripple::hashOfSeq | ( | ReadView const & | ledger, |
| LedgerIndex | seq, | ||
| beast::Journal | journal | ||
| ) |
Return the hash of a ledger by sequence.
The hash is retrieved by looking up the "skip list" in the passed ledger. As the skip list is limited in size, if the requested ledger sequence number is out of the range of ledgers represented in the skip list, then std::nullopt is returned.
| LedgerIndex ripple::getCandidateLedger | ( | LedgerIndex | requested | ) |
Find a ledger index from which we could easily get the requested ledger.
The index that we return should meet two requirements: 1) It must be the index of a ledger that has the hash of the ledger we are looking for. This means that its sequence must be equal to greater than the sequence that we want but not more than 256 greater since each ledger contains the hashes of the 256 previous ledgers.
2) Its hash must be easy for us to find. This means it must be 0 mod 256 because every such ledger is permanently enshrined in a LedgerHashes page which we can easily retrieve via the skip list.
| bool ripple::areCompatible | ( | ReadView const & | validLedger, |
| ReadView const & | testLedger, | ||
| beast::Journal::Stream & | s, | ||
| char const * | reason | ||
| ) |
| bool ripple::areCompatible | ( | uint256 const & | validHash, |
| LedgerIndex | validIndex, | ||
| ReadView const & | testLedger, | ||
| beast::Journal::Stream & | s, | ||
| char const * | reason | ||
| ) |
| void ripple::adjustOwnerCount | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | sle, | ||
| std::int32_t | amount, | ||
| beast::Journal | j | ||
| ) |
| bool ripple::cdirFirst | ( | ReadView const & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< SLE const > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
Returns the first entry in the directory, advancing the index.
| view | The view against which to operate |
| root | The root (i.e. first page) of the directory to iterate |
| page | The current page |
| index | The index inside the current page |
| entry | The entry at the current index |
| bool ripple::dirFirst | ( | ApplyView & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< SLE > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
| bool ripple::cdirNext | ( | ReadView const & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< SLE const > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
Returns the next entry in the directory, advancing the index.
| view | The view against which to operate |
| root | The root (i.e. first page) of the directory to iterate |
| page | The current page |
| index | The index inside the current page |
| entry | The entry at the current index |
| bool ripple::dirNext | ( | ApplyView & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< SLE > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
| std::function< void(SLE::ref)> ripple::describeOwnerDir | ( | AccountID const & | account | ) |
| TER ripple::dirLink | ( | ApplyView & | view, |
| AccountID const & | owner, | ||
| std::shared_ptr< SLE > & | object | ||
| ) |
| Expected< std::shared_ptr< SLE >, TER > ripple::createPseudoAccount | ( | ApplyView & | view, |
| uint256 const & | pseudoOwnerKey, | ||
| SField const & | ownerField | ||
| ) |
Create pseudo-account, storing pseudoOwnerKey into ownerField.
The list of valid ownerField is maintained in View.cpp and the caller to this function must perform necessary amendment check(s) before using a field. The amendment check is not performed in createPseudoAccount.
| bool ripple::isPseudoAccount | ( | std::shared_ptr< SLE const > | sleAcct | ) |
| std::vector< SField const * > const & ripple::getPseudoAccountFields | ( | ) |
| TER ripple::addEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| XRPAmount | priorBalance, | ||
| Issue const & | issue, | ||
| beast::Journal | journal | ||
| ) |
Any transactors that call addEmptyHolding() in doApply must call canAddHolding() in preflight with the same View and Asset.
| TER ripple::authorizeMPToken | ( | ApplyView & | view, |
| XRPAmount const & | priorBalance, | ||
| MPTID const & | mptIssuanceID, | ||
| AccountID const & | account, | ||
| beast::Journal | journal, | ||
| std::uint32_t | flags = 0, |
||
| std::optional< AccountID > | holderID = std::nullopt |
||
| ) |
| TER ripple::trustCreate | ( | ApplyView & | view, |
| bool const | bSrcHigh, | ||
| AccountID const & | uSrcAccountID, | ||
| AccountID const & | uDstAccountID, | ||
| uint256 const & | uIndex, | ||
| SLE::ref | sleAccount, | ||
| bool const | bAuth, | ||
| bool const | bNoRipple, | ||
| bool const | bFreeze, | ||
| bool | bDeepFreeze, | ||
| STAmount const & | saBalance, | ||
| STAmount const & | saLimit, | ||
| std::uint32_t | uSrcQualityIn, | ||
| std::uint32_t | uSrcQualityOut, | ||
| beast::Journal | j | ||
| ) |
| TER ripple::removeEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| Issue const & | issue, | ||
| beast::Journal | journal | ||
| ) |
| TER ripple::removeEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| MPTIssue const & | mptIssue, | ||
| beast::Journal | journal | ||
| ) |
| TER ripple::removeEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| Asset const & | asset, | ||
| beast::Journal | journal | ||
| ) |
| TER ripple::trustDelete | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | sleRippleState, | ||
| AccountID const & | uLowAccountID, | ||
| AccountID const & | uHighAccountID, | ||
| beast::Journal | j | ||
| ) |
| TER ripple::offerDelete | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | sle, | ||
| beast::Journal | j | ||
| ) |
| TER ripple::rippleLockEscrowMPT | ( | ApplyView & | view, |
| AccountID const & | uGrantorID, | ||
| STAmount const & | saAmount, | ||
| beast::Journal | j | ||
| ) |
| TER ripple::accountSend | ( | ApplyView & | view, |
| AccountID const & | from, | ||
| AccountID const & | to, | ||
| STAmount const & | saAmount, | ||
| beast::Journal | j, | ||
| WaiveTransferFee | waiveFee = WaiveTransferFee::No |
||
| ) |
| TER ripple::requireAuth | ( | ReadView const & | view, |
| Issue const & | issue, | ||
| AccountID const & | account, | ||
| AuthType | authType = AuthType::Legacy |
||
| ) |
Check if the account lacks required authorization.
Return tecNO_AUTH or tecNO_LINE if it does and tesSUCCESS otherwise.
If StrongAuth then return tecNO_LINE if the RippleState doesn't exist. Return tecNO_AUTH if lsfRequireAuth is set on the issuer's AccountRoot, and the RippleState does exist, and the RippleState is not authorized.
If WeakAuth then return tecNO_AUTH if lsfRequireAuth is set, and the RippleState exists, and is not authorized. Return tecNO_LINE if lsfRequireAuth is set and the RippleState doesn't exist. Consequently, if WeakAuth and lsfRequireAuth is not set, this function will return tesSUCCESS even if RippleState does not exist.
The default "Legacy" auth type is equivalent to WeakAuth.
| TER ripple::requireAuth | ( | ReadView const & | view, |
| MPTIssue const & | mptIssue, | ||
| AccountID const & | account, | ||
| AuthType | authType = AuthType::Legacy, |
||
| int | depth = 0 |
||
| ) |
Check if the account lacks required authorization.
This will also check for expired credentials. If it is called directly from preclaim, the user should convert result tecEXPIRED to tesSUCCESS and proceed to also check permissions with enforceMPTokenAuthorization inside doApply. This will ensure that any expired credentials are deleted.
requireAuth check is recursive for MPT shares in a vault, descending to assets in the vault, up to maxAssetCheckDepth recursion depth. This is purely defensive, as we currently do not allow such vaults to be created.
If StrongAuth then return tecNO_AUTH if MPToken doesn't exist or lsfMPTRequireAuth is set and MPToken is not authorized.
If WeakAuth then return tecNO_AUTH if lsfMPTRequireAuth is set and MPToken doesn't exist or is not authorized (explicitly or via credentials, if DomainID is set in MPTokenIssuance). Consequently, if WeakAuth and lsfMPTRequireAuth is not set, this function will return true even if MPToken does not exist.
The default "Legacy" auth type is equivalent to StrongAuth.
| TER ripple::enforceMPTokenAuthorization | ( | ApplyView & | view, |
| MPTID const & | mptIssuanceID, | ||
| AccountID const & | account, | ||
| XRPAmount const & | priorBalance, | ||
| beast::Journal | j | ||
| ) |
Enforce account has MPToken to match its authorization.
Called from doApply - it will check for expired (and delete if found any) credentials matching DomainID set in MPTokenIssuance. Must be called if requireAuth(...MPTIssue...) returned tesSUCCESS or tecEXPIRED in preclaim, which implies that preclaim should replace tecEXPIRED with tesSUCCESS in order for the transactor to proceed to doApply.
This function will create MPToken (if needed) on the basis of any non-expired credentials and will delete any expired credentials, indirectly via verifyValidDomain, as per DomainID (if set in MPTokenIssuance).
The caller does NOT need to ensure that DomainID is actually set - this function handles gracefully both cases when DomainID is set and when not.
The caller does NOT need to look for existing MPToken to match mptIssue/account - this function checks lsfMPTAuthorized of an existing MPToken iff DomainID is not set.
Do not use for accounts which hold implied permission e.g. object owners or if MPTokenIssuance does not require authorization. In both cases use MPTokenAuthorize::authorize if MPToken does not yet exist.
| TER ripple::cleanupOnAccountDelete | ( | ApplyView & | view, |
| Keylet const & | ownerDirKeylet, | ||
| EntryDeleter const & | deleter, | ||
| beast::Journal | j, | ||
| std::optional< std::uint16_t > | maxNodesToDelete = std::nullopt |
||
| ) |
Cleanup owner directory entries on account delete.
Used for a regular and AMM accounts deletion. The caller has to provide the deleter function, which handles details of specific account-owned object deletion.
| TER ripple::deleteAMMTrustLine | ( | ApplyView & | view, |
| std::shared_ptr< SLE > | sleState, | ||
| std::optional< AccountID > const & | ammAccountID, | ||
| beast::Journal | j | ||
| ) |
| std::optional< STAmount > ripple::assetsToSharesDeposit | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | assets | ||
| ) |
| std::optional< STAmount > ripple::sharesToAssetsDeposit | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | shares | ||
| ) |
| std::optional< STAmount > ripple::assetsToSharesWithdraw | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | assets, | ||
| TruncateShares | truncate = TruncateShares::no |
||
| ) |
| std::optional< STAmount > ripple::sharesToAssetsWithdraw | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | shares | ||
| ) |
| bool ripple::after | ( | NetClock::time_point | now, |
| std::uint32_t | mark | ||
| ) |
| void ripple::registerSSLCerts | ( | boost::asio::ssl::context & | ctx, |
| boost::system::error_code & | ec, | ||
| beast::Journal | j | ||
| ) |
Register default SSL certificates.
Register the system default SSL root certificates. On linux/mac, this just calls asio's set_default_verify_paths to look in standard operating system locations. On windows, it uses the OS certificate store accessible via CryptoAPI.
Definition at line 38 of file RegisterSSLCerts.cpp.
| std::string ripple::toBase58 | ( | AccountID const & | v | ) |
Convert AccountID to base58 checked string.
Definition at line 114 of file AccountID.cpp.
| std::optional< AccountID > ripple::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Definition at line 124 of file AccountID.cpp.
| AccountID const & ripple::xrpAccount | ( | ) |
Compute AccountID from public key.
The account ID is computed as the 160-bit hash of the public key data. This excludes the version byte and guard bytes included in the base58 representation. A special account that's used as the "issuer" for XRP.
Definition at line 178 of file AccountID.cpp.
| AccountID const & ripple::noAccount | ( | ) |
A placeholder for empty accounts.
Definition at line 185 of file AccountID.cpp.
| bool ripple::to_issuer | ( | AccountID & | issuer, |
| std::string const & | s | ||
| ) |
Convert hex or base58 string to AccountID.
true if the parsing was successful. Definition at line 192 of file AccountID.cpp.
| bool ripple::isXRP | ( | AccountID const & | c | ) |
Definition at line 90 of file AccountID.h.
| std::string ripple::to_string | ( | AccountID const & | account | ) |
Returns "", "XRP", or three letter ISO code.
Definition at line 97 of file AccountID.h.
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| AccountID const & | x | ||
| ) |
Definition at line 103 of file AccountID.h.
| void ripple::initAccountIdCache | ( | std::size_t | count | ) |
Initialize the global cache used to map AccountID to base58 conversions.
The cache is optional and need not be initialized. But because conversion is expensive (it requires a SHA-256 operation) in most cases the overhead of the cache is worth the benefit.
| count | The number of entries the cache should accommodate. Zero will disable the cache, releasing any memory associated with it. |
Definition at line 107 of file AccountID.cpp.
Calculate Liquidity Provider Token (LPT) Currency.
Definition at line 43 of file AMMCore.cpp.
| Issue ripple::ammLPTIssue | ( | Currency const & | cur1, |
| Currency const & | cur2, | ||
| AccountID const & | ammAccountID | ||
| ) |
Calculate LPT Issue from AMM asset pair.
Definition at line 57 of file AMMCore.cpp.
| NotTEC ripple::invalidAMMAmount | ( | STAmount const & | amount, |
| std::optional< std::pair< Issue, Issue > > const & | pair = std::nullopt, |
||
| bool | validZero = false |
||
| ) |
Validate the amount.
If validZero is false and amount is beast::zero then invalid amount. Return error code if invalid amount. If pair then validate amount's issue matches one of the pair's issue.
Definition at line 95 of file AMMCore.cpp.
| NotTEC ripple::invalidAMMAsset | ( | Issue const & | issue, |
| std::optional< std::pair< Issue, Issue > > const & | pair = std::nullopt |
||
| ) |
Definition at line 66 of file AMMCore.cpp.
| NotTEC ripple::invalidAMMAssetPair | ( | Issue const & | issue1, |
| Issue const & | issue2, | ||
| std::optional< std::pair< Issue, Issue > > const & | pair = std::nullopt |
||
| ) |
Definition at line 80 of file AMMCore.cpp.
| std::optional< std::uint8_t > ripple::ammAuctionTimeSlot | ( | std::uint64_t | current, |
| STObject const & | auctionSlot | ||
| ) |
Get time slot of the auction slot.
Definition at line 108 of file AMMCore.cpp.
| bool ripple::ammEnabled | ( | Rules const & | rules | ) |
Return true if required AMM amendments are enabled.
Definition at line 129 of file AMMCore.cpp.
| Number ripple::getFee | ( | std::uint16_t | tfee | ) |
| Number ripple::feeMult | ( | std::uint16_t | tfee | ) |
| Number ripple::feeMultHalf | ( | std::uint16_t | tfee | ) |
Definition at line 32 of file AmountConversions.h.
Definition at line 40 of file AmountConversions.h.
Definition at line 46 of file AmountConversions.h.
Definition at line 54 of file AmountConversions.h.
|
delete |
| STAmount ripple::toAmount< STAmount > | ( | STAmount const & | amt | ) |
Definition at line 67 of file AmountConversions.h.
| IOUAmount ripple::toAmount< IOUAmount > | ( | STAmount const & | amt | ) |
Definition at line 74 of file AmountConversions.h.
| XRPAmount ripple::toAmount< XRPAmount > | ( | STAmount const & | amt | ) |
Definition at line 89 of file AmountConversions.h.
|
delete |
| IOUAmount ripple::toAmount< IOUAmount > | ( | IOUAmount const & | amt | ) |
Definition at line 108 of file AmountConversions.h.
|
delete |
| XRPAmount ripple::toAmount< XRPAmount > | ( | XRPAmount const & | amt | ) |
Definition at line 119 of file AmountConversions.h.
| T ripple::toAmount | ( | Issue const & | issue, |
| Number const & | n, | ||
| Number::rounding_mode | mode = Number::getround() |
||
| ) |
Definition at line 127 of file AmountConversions.h.
| T ripple::toMaxAmount | ( | Issue const & | issue | ) |
Definition at line 155 of file AmountConversions.h.
| STAmount ripple::toSTAmount | ( | Issue const & | issue, |
| Number const & | n, | ||
| Number::rounding_mode | mode = Number::getround() |
||
| ) |
Definition at line 176 of file AmountConversions.h.
| Issue ripple::getIssue | ( | T const & | amt | ) |
Definition at line 186 of file AmountConversions.h.
|
constexpr |
Definition at line 203 of file AmountConversions.h.
| void ripple::forApiVersions | ( | Fn const & | fn, |
| Args &&... | args | ||
| ) |
Definition at line 155 of file ApiVersion.h.
| void ripple::forAllApiVersions | ( | Fn const & | fn, |
| Args &&... | args | ||
| ) |
Definition at line 177 of file ApiVersion.h.
| Json::Value ripple::to_json | ( | Asset const & | asset | ) |
|
constexpr |
| std::string ripple::to_string | ( | Asset const & | asset | ) |
| bool ripple::validJSONAsset | ( | Json::Value const & | jv | ) |
| Asset ripple::assetFromJson | ( | Json::Value const & | jv | ) |
| void ripple::serializeBatch | ( | Serializer & | msg, |
| std::uint32_t const & | flags, | ||
| std::vector< uint256 > const & | txids | ||
| ) |
Definition at line 25 of file include/xrpl/protocol/Batch.h.
| std::string ripple::to_string | ( | Book const & | book | ) |
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| Book const & | x | ||
| ) |
| void ripple::hash_append | ( | Hasher & | h, |
| Book const & | b | ||
| ) |
|
constexpr |
| secp256k1_context const * ripple::secp256k1Context | ( | ) |
Definition at line 29 of file secp256k1.h.
| ripple::detail::TokenCodecErrcCategory const & ripple::TokenCodecErrcCategory | ( | ) |
Definition at line 90 of file token_errors.h.
| std::error_code ripple::make_error_code | ( | ripple::TokenCodecErrc | e | ) |
Definition at line 97 of file token_errors.h.
| sha512_half_hasher::result_type ripple::sha512Half | ( | Args const &... | args | ) |
| sha512_half_hasher_s::result_type ripple::sha512Half_s | ( | Args const &... | args | ) |
| std::string ripple::rpcErrorString | ( | Json::Value const & | jv | ) |
Returns a single string with the contents of an RPC error.
Definition at line 223 of file ErrorCodes.cpp.
| std::map< std::string, AmendmentSupport > const & ripple::allAmendments | ( | ) |
All amendments libxrpl knows about.
All amendments libxrpl knows of.
Definition at line 351 of file Feature.cpp.
| std::optional< uint256 > ripple::getRegisteredFeature | ( | std::string const & | name | ) |
Definition at line 382 of file Feature.cpp.
| size_t ripple::featureToBitsetIndex | ( | uint256 const & | f | ) |
Definition at line 409 of file Feature.cpp.
| uint256 ripple::bitsetIndexToFeature | ( | size_t | i | ) |
Definition at line 415 of file Feature.cpp.
| std::string ripple::featureToName | ( | uint256 const & | f | ) |
Definition at line 421 of file Feature.cpp.
| void ripple::foreachFeature | ( | FeatureBitset | bs, |
| F && | f | ||
| ) |
|
noexcept |
Definition at line 98 of file HashPrefix.h.
Definition at line 115 of file Indexes.cpp.
Definition at line 141 of file Indexes.cpp.
| std::uint64_t ripple::getQuality | ( | uint256 const & | uBase | ) |
Definition at line 149 of file Indexes.cpp.
| uint256 ripple::getTicketIndex | ( | AccountID const & | account, |
| std::uint32_t | uSequence | ||
| ) |
Definition at line 156 of file Indexes.cpp.
Definition at line 163 of file Indexes.cpp.
| MPTID ripple::makeMptID | ( | std::uint32_t | sequence, |
| AccountID const & | account | ||
| ) |
Definition at line 170 of file Indexes.cpp.
| std::string ripple::to_string | ( | IOUAmount const & | amount | ) |
Definition at line 184 of file IOUAmount.cpp.
| IOUAmount ripple::mulRatio | ( | IOUAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 190 of file IOUAmount.cpp.
| bool ripple::getSTNumberSwitchover | ( | ) |
Definition at line 50 of file IOUAmount.cpp.
| void ripple::setSTNumberSwitchover | ( | bool | v | ) |
Definition at line 56 of file IOUAmount.cpp.
| std::string ripple::to_string | ( | Issue const & | ac | ) |
| Json::Value ripple::to_json | ( | Issue const & | is | ) |
| Issue ripple::issueFromJson | ( | Json::Value const & | v | ) |
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| Issue const & | x | ||
| ) |
| void ripple::hash_append | ( | Hasher & | h, |
| Issue const & | r | ||
| ) |
|
constexpr |
| Issue const & ripple::xrpIssue | ( | ) |
| Issue const & ripple::noIssue | ( | ) |
| std::optional< KeyType > ripple::keyTypeFromString | ( | std::string const & | s | ) |
| Stream & ripple::operator<< | ( | Stream & | s, |
| KeyType | type | ||
| ) |
| bool ripple::getCloseAgree | ( | LedgerHeader const & | info | ) |
Definition at line 85 of file LedgerHeader.h.
| void ripple::addRaw | ( | LedgerHeader const & | info, |
| Serializer & | s, | ||
| bool | includeHash = false |
||
| ) |
Definition at line 28 of file libxrpl/protocol/LedgerHeader.cpp.
| LedgerHeader ripple::deserializeHeader | ( | Slice | data, |
| bool | hasHash = false |
||
| ) |
Deserialize a ledger header from a byte array.
Definition at line 45 of file libxrpl/protocol/LedgerHeader.cpp.
| LedgerHeader ripple::deserializePrefixedHeader | ( | Slice | data, |
| bool | hasHash = false |
||
| ) |
Deserialize a ledger header (prefixed with 4 bytes) from a byte array.
Definition at line 69 of file libxrpl/protocol/LedgerHeader.cpp.
| std::string ripple::to_string | ( | MPTAmount const & | amount | ) |
Definition at line 139 of file MPTAmount.h.
| MPTAmount ripple::mulRatio | ( | MPTAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 145 of file MPTAmount.h.
Definition at line 71 of file MPTIssue.h.
|
constexpr |
Definition at line 76 of file MPTIssue.h.
| bool ripple::isXRP | ( | MPTID const & | ) |
MPT is a non-native token.
Definition at line 85 of file MPTIssue.h.
| Json::Value ripple::to_json | ( | MPTIssue const & | mptIssue | ) |
Definition at line 64 of file MPTIssue.cpp.
| std::string ripple::to_string | ( | MPTIssue const & | mptIssue | ) |
Definition at line 72 of file MPTIssue.cpp.
| MPTIssue ripple::mptIssueFromJson | ( | Json::Value const & | jv | ) |
Definition at line 78 of file MPTIssue.cpp.
| bool ripple::canHaveNFTokenID | ( | std::shared_ptr< STTx const > const & | serializedTx, |
| TxMeta const & | transactionMeta | ||
| ) |
Add a nftoken_ids field to the meta output parameter.
The field is only added to successful NFTokenMint, NFTokenAcceptOffer, and NFTokenCancelOffer transactions.
Helper functions are not static because they can be used by Clio.
Definition at line 42 of file NFTokenID.cpp.
| std::optional< uint256 > ripple::getNFTokenIDFromPage | ( | TxMeta const & | transactionMeta | ) |
Definition at line 62 of file NFTokenID.cpp.
| std::vector< uint256 > ripple::getNFTokenIDFromDeletedOffer | ( | TxMeta const & | transactionMeta | ) |
Definition at line 147 of file NFTokenID.cpp.
| void ripple::insertNFTokenID | ( | Json::Value & | response, |
| std::shared_ptr< STTx const > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 172 of file NFTokenID.cpp.
| bool ripple::canHaveNFTokenOfferID | ( | std::shared_ptr< STTx const > const & | serializedTx, |
| TxMeta const & | transactionMeta | ||
| ) |
Add an offer_id field to the meta output parameter.
The field is only added to successful NFTokenCreateOffer transactions.
Helper functions are not static because they can be used by Clio.
Definition at line 38 of file NFTokenOfferID.cpp.
| std::optional< uint256 > ripple::getOfferIDFromCreatedOffer | ( | TxMeta const & | transactionMeta | ) |
Definition at line 58 of file NFTokenOfferID.cpp.
| void ripple::insertNFTokenOfferID | ( | Json::Value & | response, |
| std::shared_ptr< STTx const > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 72 of file NFTokenOfferID.cpp.
| void ripple::serializePayChanAuthorization | ( | Serializer & | msg, |
| uint256 const & | key, | ||
| XRPAmount const & | amt | ||
| ) |
Definition at line 31 of file include/xrpl/protocol/PayChan.h.
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| PublicKey const & | pk | ||
| ) |
Print the public key to a stream.
Definition at line 46 of file PublicKey.cpp.
Definition at line 140 of file PublicKey.h.
Definition at line 145 of file PublicKey.h.
| void ripple::hash_append | ( | Hasher & | h, |
| PublicKey const & | pk | ||
| ) |
Definition at line 157 of file PublicKey.h.
| std::string ripple::toBase58 | ( | TokenType | type, |
| PublicKey const & | pk | ||
| ) |
Definition at line 185 of file PublicKey.h.
| std::optional< PublicKey > ripple::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Definition at line 55 of file PublicKey.cpp.
| std::optional< ECDSACanonicality > ripple::ecdsaCanonicality | ( | Slice const & | sig | ) |
Determines the canonicality of a signature.
Determine whether a signature is canonical.
A canonical signature is in its most reduced form. For example the R and S components do not contain additional leading zeroes. However, even in canonical form, (R,S) and (R,G-S) are both valid signatures for message M.
Therefore, to prevent malleability attacks we define a fully canonical signature as one where:
R < G - S
where G is the curve order.
This routine returns std::nullopt if the format of the signature is invalid (for example, the points are encoded incorrectly).
Canonical signatures are important to protect against signature morphing attacks.
| vSig | the signature data |
| sigLen | the length of the signature |
| strict_param | whether to enforce strictly canonical semantics |
Definition at line 130 of file PublicKey.cpp.
| std::optional< KeyType > ripple::publicKeyType | ( | Slice const & | slice | ) |
Returns the type of public key.
Definition at line 224 of file PublicKey.cpp.
| std::optional< KeyType > ripple::publicKeyType | ( | PublicKey const & | publicKey | ) |
Definition at line 234 of file PublicKey.h.
|
noexcept |
Verify a secp256k1 signature on the digest of a message.
Definition at line 239 of file PublicKey.cpp.
|
noexcept |
Verify a signature on a message.
With secp256k1 signatures, the data is first hashed with SHA512-Half, and the resulting digest is signed.
Definition at line 289 of file PublicKey.cpp.
Calculate the 160-bit node ID from a node public key.
Definition at line 320 of file PublicKey.cpp.
Definition at line 168 of file AccountID.cpp.
| std::string ripple::getFingerprint | ( | beast::IP::Endpoint const & | address, |
| std::optional< PublicKey > const & | publicKey = std::nullopt, |
||
| std::optional< std::string > const & | id = std::nullopt |
||
| ) |
Definition at line 269 of file PublicKey.h.
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| Rate const & | rate | ||
| ) |
| bool ripple::isRpcError | ( | Json::Value | jvResult | ) |
Definition at line 40 of file RPCErr.cpp.
| Json::Value ripple::rpcError | ( | int | iError | ) |
Definition at line 31 of file RPCErr.cpp.
| std::optional< Rules > const & ripple::getCurrentTransactionRules | ( | ) |
| void ripple::setCurrentTransactionRules | ( | std::optional< Rules > | r | ) |
Definition at line 101 of file SecretKey.h.
Definition at line 108 of file SecretKey.h.
| std::optional< SecretKey > ripple::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Parse a secret key.
Definition at line 55 of file PublicKey.cpp.
| std::string ripple::toBase58 | ( | TokenType | type, |
| SecretKey const & | sk | ||
| ) |
Definition at line 121 of file SecretKey.h.
| SecretKey ripple::randomSecretKey | ( | ) |
Create a secret key using secure random numbers.
Definition at line 299 of file SecretKey.cpp.
Generate a new secret key deterministically.
Definition at line 309 of file SecretKey.cpp.
Derive the public key from a secret key.
Definition at line 331 of file SecretKey.cpp.
Generate a key pair deterministically.
This algorithm is specific to Ripple:
For secp256k1 key pairs, the seed is converted to a Generator and used to compute the key pair corresponding to ordinal 0 for the generator.
Definition at line 369 of file SecretKey.cpp.
Create a key pair using secure random numbers.
Definition at line 386 of file SecretKey.cpp.
Generate a signature for a message digest.
This can only be used with secp256k1 since Ed25519's security properties come, in part, from how the message is hashed.
Definition at line 230 of file SecretKey.cpp.
Definition at line 163 of file SecretKey.h.
Generate a signature for a message.
With secp256k1 signatures, the data is first hashed with SHA512-Half, and the resulting digest is signed.
Definition at line 256 of file SecretKey.cpp.
Definition at line 178 of file SecretKey.h.
| Seed ripple::randomSeed | ( | ) |
| Seed ripple::generateSeed | ( | std::string const & | passPhrase | ) |
Generate a seed deterministically.
The algorithm is specific to Ripple:
The seed is calculated as the first 128 bits of the SHA512-Half of the string text excluding any terminating null.
| std::optional< Seed > ripple::parseBase58 | ( | std::string const & | s | ) |
Parse a Base58 encoded string into a seed.
Parse a Base58 encoded string into a seed.
Definition at line 124 of file AccountID.cpp.
| std::optional< Seed > ripple::parseGenericSeed | ( | std::string const & | str, |
| bool | rfc1751 = true |
||
| ) |
| std::string ripple::seedAs1751 | ( | Seed const & | seed | ) |
| std::string ripple::toBase58 | ( | Seed const & | seed | ) |
| Blob ripple::serializeBlob | ( | Object const & | o | ) |
Serialize an object to a blob.
Definition at line 32 of file serialize.h.
| std::string ripple::serializeHex | ( | STObject const & | o | ) |
Serialize an object to a hex string.
Definition at line 41 of file serialize.h.
| int ripple::field_code | ( | SerializedTypeID | id, |
| int | index | ||
| ) |
| OptionaledField< T > ripple::operator~ | ( | TypedField< T > const & | f | ) |
| void ripple::sign | ( | STObject & | st, |
| HashPrefix const & | prefix, | ||
| KeyType | type, | ||
| SecretKey const & | sk, | ||
| SF_VL const & | sigField = sfSignature |
||
| ) |
Sign an STObject.
| st | Object to sign |
| prefix | Prefix to insert before serialized object when hashing |
| type | Signing key type used to derive public key |
| sk | Signing secret key |
| sigField | Field in which to store the signature on the object. If not specified the value defaults to sfSignature. |
| bool ripple::verify | ( | STObject const & | st, |
| HashPrefix const & | prefix, | ||
| PublicKey const & | pk, | ||
| SF_VL const & | sigField = sfSignature |
||
| ) |
Returns true if STObject contains valid signature.
| st | Signed object |
| prefix | Prefix inserted before serialized object when hashing |
| pk | Public key for verifying signature |
| sigField | Object's field containing the signature. If not specified the value defaults to sfSignature. |
| Serializer ripple::buildMultiSigningData | ( | STObject const & | obj, |
| AccountID const & | signingID | ||
| ) |
Return a Serializer suitable for computing a multisigning TxnSignature.
| Serializer ripple::startMultiSigningData | ( | STObject const & | obj | ) |
Break the multi-signing hash computation into 2 parts for optimization.
We can optimize verifying multiple multisignatures by splitting the data building into two parts; o A large part that is shared by all of the computations. o A small part that is unique to each signer in the multisignature.
The following methods support that optimization:
| void ripple::finishMultiSigningData | ( | AccountID const & | signingID, |
| Serializer & | s | ||
| ) |
Definition at line 105 of file STAccount.h.
Definition at line 110 of file STAccount.h.
Definition at line 117 of file STAccount.h.
Definition at line 122 of file STAccount.h.
Definition at line 128 of file STAccount.h.
| STAmount ripple::amountFromQuality | ( | std::uint64_t | rate | ) |
Definition at line 984 of file STAmount.cpp.
| STAmount ripple::amountFromString | ( | Asset const & | asset, |
| std::string const & | amount | ||
| ) |
Definition at line 996 of file STAmount.cpp.
| STAmount ripple::amountFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 1006 of file STAmount.cpp.
| bool ripple::amountFromJsonNoThrow | ( | STAmount & | result, |
| Json::Value const & | jvSource | ||
| ) |
Definition at line 1134 of file STAmount.cpp.
Definition at line 440 of file STAmount.h.
| bool ripple::isLegalNet | ( | STAmount const & | value | ) |
Definition at line 600 of file STAmount.h.
Definition at line 1156 of file STAmount.cpp.
Definition at line 1162 of file STAmount.cpp.
Definition at line 617 of file STAmount.h.
Definition at line 623 of file STAmount.h.
Definition at line 628 of file STAmount.h.
Definition at line 635 of file STAmount.h.
Definition at line 1198 of file STAmount.cpp.
Definition at line 364 of file STAmount.cpp.
Definition at line 438 of file STAmount.cpp.
Definition at line 1265 of file STAmount.cpp.
Definition at line 1310 of file STAmount.cpp.
| STAmount ripple::mulRound | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1615 of file STAmount.cpp.
| STAmount ripple::mulRoundStrict | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1626 of file STAmount.cpp.
| STAmount ripple::divRound | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1722 of file STAmount.cpp.
| STAmount ripple::divRoundStrict | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1732 of file STAmount.cpp.
| std::uint64_t ripple::getRate | ( | STAmount const & | offerOut, |
| STAmount const & | offerIn | ||
| ) |
Definition at line 463 of file STAmount.cpp.
| bool ripple::isXRP | ( | STAmount const & | amount | ) |
Definition at line 701 of file STAmount.h.
Safely checks if two STAmount values can be added without overflow, underflow, or precision loss.
This function determines whether the addition of two STAmount objects is safe, depending on their type:
Definition at line 505 of file STAmount.cpp.
Determines if it is safe to subtract one STAmount from another.
This function checks whether subtracting amount b from amount a is valid, considering currency compatibility and underflow conditions for specific types.
| a | The minuend (amount to subtract from). |
| b | The subtrahend (amount to subtract). |
Definition at line 585 of file STAmount.cpp.
| Json::Value ripple::to_json | ( | T const & | t | ) |
| std::ostream & ripple::operator<< | ( | std::ostream & | out, |
| STBase const & | t | ||
| ) |
Definition at line 158 of file STBase.cpp.
| STCurrency ripple::currencyFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 106 of file STCurrency.cpp.
| bool ripple::operator== | ( | STCurrency const & | lhs, |
| STCurrency const & | rhs | ||
| ) |
Definition at line 107 of file STCurrency.h.
| bool ripple::operator!= | ( | STCurrency const & | lhs, |
| STCurrency const & | rhs | ||
| ) |
Definition at line 113 of file STCurrency.h.
| bool ripple::operator< | ( | STCurrency const & | lhs, |
| STCurrency const & | rhs | ||
| ) |
Definition at line 118 of file STCurrency.h.
| bool ripple::operator== | ( | STCurrency const & | lhs, |
| Currency const & | rhs | ||
| ) |
Definition at line 125 of file STCurrency.h.
| bool ripple::operator< | ( | STCurrency const & | lhs, |
| Currency const & | rhs | ||
| ) |
Definition at line 130 of file STCurrency.h.
| std::optional< T > ripple::get | ( | STObject const & | st, |
| TypedField< U > const & | f | ||
| ) |
Return the value of a field in an STObject as a given type.
Definition at line 116 of file STExchange.h.
| std::optional< typename STExchange< U, typename U::value_type >::value_type > ripple::get | ( | STObject const & | st, |
| TypedField< U > const & | f | ||
| ) |
Definition at line 135 of file STExchange.h.
| void ripple::set | ( | STObject & | st, |
| TypedField< U > const & | f, | ||
| T && | t | ||
| ) |
Set a field value in an STObject.
Definition at line 144 of file STExchange.h.
| void ripple::set | ( | STObject & | st, |
| TypedField< STBlob > const & | f, | ||
| std::size_t | size, | ||
| Init && | init | ||
| ) |
Set a blob field using an init function.
Definition at line 153 of file STExchange.h.
| void ripple::set | ( | STObject & | st, |
| TypedField< STBlob > const & | f, | ||
| void const * | data, | ||
| std::size_t | size | ||
| ) |
Set a blob field from data.
Definition at line 161 of file STExchange.h.
| void ripple::erase | ( | STObject & | st, |
| TypedField< U > const & | f | ||
| ) |
Remove a field in an STObject.
Definition at line 172 of file STExchange.h.
| STIssue ripple::issueFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 156 of file STIssue.cpp.
|
constexpr |
|
constexpr |
| std::ostream & ripple::operator<< | ( | std::ostream & | out, |
| STNumber const & | rhs | ||
| ) |
Definition at line 116 of file STNumber.cpp.
| NumberParts ripple::partsFromString | ( | std::string const & | number | ) |
Definition at line 123 of file STNumber.cpp.
| STNumber ripple::numberFromJson | ( | SField const & | field, |
| Json::Value const & | value | ||
| ) |
Definition at line 179 of file STNumber.cpp.
| void ripple::throwFieldNotFound | ( | SField const & | field | ) |
Definition at line 51 of file STObject.h.
| bool ripple::passesLocalChecks | ( | STObject const & | st, |
| std::string & | reason | ||
| ) |
| std::shared_ptr< STTx const > ripple::sterilize | ( | STTx const & | stx | ) |
| bool ripple::isPseudoTx | ( | STObject const & | tx | ) |
| bool ripple::operator== | ( | STXChainBridge const & | lhs, |
| STXChainBridge const & | rhs | ||
| ) |
Definition at line 135 of file STXChainBridge.h.
| bool ripple::operator< | ( | STXChainBridge const & | lhs, |
| STXChainBridge const & | rhs | ||
| ) |
Definition at line 149 of file STXChainBridge.h.
|
static |
Definition at line 35 of file SystemParameters.h.
| bool ripple::isLegalAmount | ( | XRPAmount const & | amount | ) |
Returns true if the amount does not exceed the initial XRP in existence.
Definition at line 48 of file SystemParameters.h.
| bool ripple::isLegalAmountSigned | ( | XRPAmount const & | amount | ) |
Returns true if the absolute value of the amount does not exceed the initial XRP in existence.
Definition at line 56 of file SystemParameters.h.
|
static |
Definition at line 63 of file SystemParameters.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| std::unordered_map< TERUnderlyingType, std::pair< char const *const, char const *const > > const & ripple::transResults | ( | ) |
| bool ripple::transResultInfo | ( | TER | code, |
| std::string & | token, | ||
| std::string & | text | ||
| ) |
| std::string ripple::transToken | ( | TER | code | ) |
| std::string ripple::transHuman | ( | TER | code | ) |
| std::optional< TER > ripple::transCode | ( | std::string const & | token | ) |
| std::optional< T > ripple::parseBase58 | ( | std::string const & | s | ) |
| std::optional< T > ripple::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
| std::string ripple::encodeBase58Token | ( | TokenType | type, |
| void const * | token, | ||
| std::size_t | size | ||
| ) |
Encode data in Base58Check format using XRPL alphabet.
For details on the format see https://xrpl.org/base58-encodings.html#base58-encodings
| type | The type of token to encode. |
| token | Pointer to the data to encode. |
| size | The size of the data to encode. |
Definition at line 199 of file tokens.cpp.
| std::string ripple::decodeBase58Token | ( | std::string const & | s, |
| TokenType | type | ||
| ) |
Definition at line 209 of file tokens.cpp.
| Currency const & ripple::xrpCurrency | ( | ) |
XRP currency.
Definition at line 119 of file UintTypes.cpp.
| Currency const & ripple::noCurrency | ( | ) |
A placeholder for empty currencies.
Definition at line 126 of file UintTypes.cpp.
| Currency const & ripple::badCurrency | ( | ) |
We deliberately disallow the currency that looks like "XRP" because too many people were using it instead of the correct XRP currency.
Definition at line 133 of file UintTypes.cpp.
| bool ripple::to_currency | ( | Currency & | currency, |
| std::string const & | code | ||
| ) |
Tries to convert a string to a Currency, returns true on success.
Definition at line 84 of file UintTypes.cpp.
| Currency ripple::to_currency | ( | std::string const & | code | ) |
Tries to convert a string to a Currency, returns noCurrency() on failure.
Definition at line 110 of file UintTypes.cpp.
| std::optional< Dest > ripple::mulDiv | ( | Source1 | value, |
| Dest | mul, | ||
| Source2 | div | ||
| ) |
| std::optional< Dest > ripple::mulDiv | ( | Dest | value, |
| Source1 | mul, | ||
| Source2 | div | ||
| ) |
| std::optional< Dest > ripple::mulDiv | ( | std::uint64_t | value, |
| Dest | mul, | ||
| std::uint64_t | div | ||
| ) |
| std::optional< Dest > ripple::mulDiv | ( | Dest | value, |
| std::uint64_t | mul, | ||
| std::uint64_t | div | ||
| ) |
| std::optional< std::uint64_t > ripple::mulDiv | ( | Source1 | value, |
| std::uint64_t | mul, | ||
| Source2 | div | ||
| ) |
| std::optional< std::uint64_t > ripple::mulDiv | ( | std::uint64_t | value, |
| Source1 | mul, | ||
| Source2 | div | ||
| ) |
|
constexprnoexcept |
|
constexprnoexcept |
| bool ripple::operator== | ( | XChainAttestationsBase< TAttestation > const & | lhs, |
| XChainAttestationsBase< TAttestation > const & | rhs | ||
| ) |
Definition at line 442 of file XChainAttestations.h.
| std::basic_ostream< Char, Traits > & ripple::operator<< | ( | std::basic_ostream< Char, Traits > & | os, |
| XRPAmount const & | q | ||
| ) |
Definition at line 262 of file XRPAmount.h.
| std::string ripple::to_string | ( | XRPAmount const & | amount | ) |
Definition at line 276 of file XRPAmount.h.
| XRPAmount ripple::mulRatio | ( | XRPAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 282 of file XRPAmount.h.
| void ripple::HTTPReply | ( | int | nStatus, |
| std::string const & | strMsg, | ||
| Json::Output const & | output, | ||
| beast::Journal | j | ||
| ) |
Definition at line 58 of file JSONRPCUtil.cpp.
|
noexcept |
Definition at line 35 of file LowestLayer.h.
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| Port const & | p | ||
| ) |
| void ripple::parse_Port | ( | ParsedPort & | port, |
| Section const & | section, | ||
| std::ostream & | log | ||
| ) |
| std::unique_ptr< Server > ripple::make_Server | ( | Handler & | handler, |
| boost::asio::io_context & | io_context, | ||
| beast::Journal | journal | ||
| ) |
| int ripple::popcnt16 | ( | std::uint16_t | a | ) |
Definition at line 224 of file TaggedPointer.h.
| bool ripple::operator== | ( | SHAMap::const_iterator const & | x, |
| SHAMap::const_iterator const & | y | ||
| ) |
| bool ripple::operator!= | ( | SHAMap::const_iterator const & | x, |
| SHAMap::const_iterator const & | y | ||
| ) |
| void ripple::intrusive_ptr_add_ref | ( | SHAMapItem const * | x | ) |
Definition at line 132 of file SHAMapItem.h.
| void ripple::intrusive_ptr_release | ( | SHAMapItem const * | x | ) |
Definition at line 141 of file SHAMapItem.h.
| boost::intrusive_ptr< SHAMapItem > ripple::make_shamapitem | ( | uint256 const & | tag, |
| Slice | data | ||
| ) |
Definition at line 161 of file SHAMapItem.h.
| boost::intrusive_ptr< SHAMapItem > ripple::make_shamapitem | ( | SHAMapItem const & | other | ) |
Definition at line 185 of file SHAMapItem.h.
| std::string ripple::to_string | ( | SHAMapType | t | ) |
Definition at line 40 of file SHAMapMissingNode.h.
| std::string ripple::to_string | ( | SHAMapNodeID const & | node | ) |
Definition at line 123 of file SHAMapNodeID.h.
| std::ostream & ripple::operator<< | ( | std::ostream & | out, |
| SHAMapNodeID const & | node | ||
| ) |
Definition at line 132 of file SHAMapNodeID.h.
| std::optional< SHAMapNodeID > ripple::deserializeSHAMapNodeID | ( | void const * | data, |
| std::size_t | size | ||
| ) |
Return an object representing a serialized SHAMap Node ID.
| s | A string of bytes |
| data | a non-null pointer to a buffer of |
| size | bytes. |
| size | the size, in bytes, of the buffer pointed to by |
| data. |
Definition at line 108 of file SHAMapNodeID.cpp.
| std::optional< SHAMapNodeID > ripple::deserializeSHAMapNodeID | ( | std::string const & | s | ) |
Definition at line 151 of file SHAMapNodeID.h.
| unsigned int ripple::selectBranch | ( | SHAMapNodeID const & | id, |
| uint256 const & | hash | ||
| ) |
Returns the branch that would contain the given hash.
Definition at line 128 of file SHAMapNodeID.cpp.
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| Section const & | section | ||
| ) |
Definition at line 119 of file BasicConfig.cpp.
| std::ostream & ripple::operator<< | ( | std::ostream & | ss, |
| BasicConfig const & | c | ||
| ) |
Definition at line 197 of file BasicConfig.cpp.
|
static |
Definition at line 354 of file Number.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| TER ripple::cleanupOnAccountDelete | ( | ApplyView & | view, |
| Keylet const & | ownerDirKeylet, | ||
| EntryDeleter const & | deleter, | ||
| beast::Journal | j, | ||
| std::optional< uint16_t > | maxNodesToDelete | ||
| ) |
| std::optional< AccountID > ripple::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Parse a Base58 encoded string into a seed.
Definition at line 124 of file AccountID.cpp.
| std::size_t ripple::hash_value | ( | ripple::uint256 const & | feature | ) |
Definition at line 44 of file Feature.cpp.
| uint256 ripple::registerFeature | ( | std::string const & | name, |
| Supported | support, | ||
| VoteBehavior | vote | ||
| ) |
Definition at line 388 of file Feature.cpp.
| uint256 ripple::retireFeature | ( | std::string const & | name | ) |
Definition at line 396 of file Feature.cpp.
| bool ripple::registrationIsDone | ( | ) |
Tell FeatureCollections when registration is complete.
Definition at line 403 of file Feature.cpp.
|
static |
Definition at line 109 of file Indexes.cpp.
| std::optional< PublicKey > ripple::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Parse a secret key.
Definition at line 55 of file PublicKey.cpp.
|
static |
Definition at line 69 of file PublicKey.cpp.
|
static |
Definition at line 95 of file PublicKey.cpp.
|
static |
Definition at line 172 of file PublicKey.cpp.
|
static |
Definition at line 77 of file Quality.cpp.
|
static |
Definition at line 118 of file Quality.cpp.
| Quality ripple::composed_quality | ( | Quality const & | lhs, |
| Quality const & | rhs | ||
| ) |
Definition at line 158 of file Quality.cpp.
| Rate const ripple::parityRate | ( | QUALITY_ONE | ) |
| std::optional< SecretKey > ripple::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Parse a secret key.
Definition at line 394 of file SecretKey.cpp.
| std::optional< Seed > ripple::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Parse a Base58 encoded string into a seed.
|
static |
Definition at line 77 of file STAmount.cpp.
|
static |
Definition at line 97 of file STAmount.cpp.
|
static |
Definition at line 103 of file STAmount.cpp.
Definition at line 110 of file STAmount.cpp.
|
static |
Definition at line 1220 of file STAmount.cpp.
|
static |
Definition at line 1241 of file STAmount.cpp.
|
static |
Definition at line 1403 of file STAmount.cpp.
|
static |
Definition at line 1442 of file STAmount.cpp.
|
static |
Definition at line 1510 of file STAmount.cpp.
|
static |
Definition at line 1640 of file STAmount.cpp.
|
static |
| Expected< void, std::string > ripple::multiSignHelper | ( | STObject const & | sigObject, |
| std::optional< AccountID > | txnAccountID, | ||
| bool const | fullyCanonical, | ||
| std::function< Serializer(AccountID const &)> | makeMsg, | ||
| Rules const & | rules | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
staticnoexcept |
Definition at line 156 of file tokens.cpp.
|
static |
Definition at line 169 of file tokens.cpp.
|
static |
Definition at line 177 of file tokens.cpp.
|
static |
Calculate a 4-byte checksum of the data.
The checksum is calculated as the first 4 bytes of the SHA256 digest of the message. This is added to the base58 encoding of identifiers to detect user error in data entry.
Definition at line 192 of file tokens.cpp.
| bool ripple::operator== | ( | XChainClaimAttestation const & | lhs, |
| XChainClaimAttestation const & | rhs | ||
| ) |
Definition at line 519 of file XChainAttestations.cpp.
| bool ripple::operator== | ( | XChainCreateAccountAttestation const & | lhs, |
| XChainCreateAccountAttestation const & | rhs | ||
| ) |
Definition at line 654 of file XChainAttestations.cpp.
| std::string ripple::getHTTPHeaderTimestamp | ( | ) |
Definition at line 33 of file JSONRPCUtil.cpp.
|
static |
| intr_ptr::SharedPtr< SHAMapLeafNode > ripple::makeTypedLeaf | ( | SHAMapNodeType | type, |
| boost::intrusive_ptr< SHAMapItem const > | item, | ||
| std::uint32_t | owner | ||
| ) |
Definition at line 32 of file SHAMap.cpp.
|
static |
Definition at line 29 of file SHAMapNodeID.cpp.
| ripple::BEAST_DEFINE_TESTSUITE | ( | AccountTxPaging | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | AmendmentTable | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Check | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Clawback | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Discrepancy | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | FixNFTokenPageLinks | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Freeze | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | LedgerLoad | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | LoadFeeTrack | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenBaseUtil | , |
| app | , | ||
| ripple | , | ||
| 2 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenDisallowIncoming | , |
| app | , | ||
| ripple | , | ||
| 2 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenWOMintOffer | , |
| app | , | ||
| ripple | , | ||
| 2 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenWOModify | , |
| app | , | ||
| ripple | , | ||
| 2 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenAllFeatures | , |
| app | , | ||
| ripple | , | ||
| 2 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenAuth | , |
| app | , | ||
| ripple | , | ||
| 2 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenBurn | , |
| app | , | ||
| ripple | , | ||
| 3 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenDir | , |
| app | , | ||
| ripple | , | ||
| 1 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | OfferStream | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | SetRegularKey | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Ticket | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | TrustAndBalance | , |
| app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Apply | , |
| tx | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | Vault | , |
| app | , | ||
| ripple | , | ||
| 1 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | FileUtilities | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | hardened_hash | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | IOUAmount | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | KeyCache | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Number | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | PerfLog | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | StringUtilities | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | TaggedCache | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | XRPAmount | , |
| basics | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Config | , |
| core | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | SociDB | , |
| core | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Workers | , |
| core | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | ProtocolVersion | , |
| overlay | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | short_read | , |
| overlay | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | BuildInfo | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Hooks | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | InnerObjectFormatsParsedJSON | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Issue | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Memo | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | PublicKey | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Quality | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | SecretKey | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Seed | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | SeqProxy | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Serializer | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | STAccount | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | STAmount | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | STInteger | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | STNumber | , |
| protocol | , | ||
| ripple | |||
| ) |
| void ripple::testCompile | ( | std::ostream & | out | ) |
Definition at line 281 of file STNumber_test.cpp.
| ripple::BEAST_DEFINE_TESTSUITE | ( | STObject | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | STParsedJSON | , |
| protocol | , | ||
| ripple | |||
| ) |
| bool ripple::matches | ( | char const * | string, |
| char const * | regex | ||
| ) |
Return true if the string loosely matches the regex.
Meant for testing human-readable strings that may change over time.
Definition at line 41 of file STTx_test.cpp.
| ripple::BEAST_DEFINE_TESTSUITE | ( | STTx | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | InnerObjectFormatsSerializer | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | STValidation | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | TER | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | AccountCurrencies | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | AccountSet | , |
| rpc | , | ||
| ripple | , | ||
| 1 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | AmendmentBlocked | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Connect | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Feature | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | GetCounts | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | LedgerClosed | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | LedgerData | , |
| rpc | , | ||
| ripple | , | ||
| 1 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | LedgerHeader | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | NoRippleCheck | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | NoRippleCheckLimits | , |
| rpc | , | ||
| ripple | , | ||
| 1 | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | OwnerInfo | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Peers | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Transaction | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | TransactionEntry | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | TransactionHistory | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Version | , |
| rpc | , | ||
| ripple | |||
| ) |
| ripple::TEST_SUITE_BEGIN | ( | "json_value" | ) |
| ripple::TEST_CASE | ( | "construct and compare Json::StaticString" | ) |
| ripple::TEST_SUITE_END | ( | ) |
| uint256 ripple::proposalUniqueId | ( | uint256 const & | proposeHash, |
| uint256 const & | previousLedger, | ||
| std::uint32_t | proposeSeq, | ||
| NetClock::time_point | closeTime, | ||
| Slice const & | publicKey, | ||
| Slice const & | signature | ||
| ) |
Calculate a unique identifier for a signed proposal.
The identifier is based on all the fields that contribute to the signature, as well as the signature itself. The "last closed ledger" field may be omitted, but the signer will compute the signature as if this field was present. Recipients of the proposal will inject the last closed ledger in order to validate the signature. If the last closed ledger is left out, then it is considered as all zeroes for the purposes of signing.
| proposeHash | The hash of the proposed position |
| previousLedger | The hash of the ledger the proposal is based upon |
| proposeSeq | Sequence number of the proposal |
| closeTime | Close time of the proposal |
| publicKey | Signer's public key |
| signature | Proposal signature |
Definition at line 66 of file RCLCxPeerPos.cpp.
| RCLValidatedLedger::Seq ripple::mismatch | ( | RCLValidatedLedger const & | a, |
| RCLValidatedLedger const & | b | ||
| ) |
Definition at line 99 of file RCLValidations.cpp.
| void ripple::handleNewValidation | ( | Application & | app, |
| std::shared_ptr< STValidation > const & | val, | ||
| std::string const & | source, | ||
| BypassAccept const | bypassAccept = BypassAccept::no, |
||
| std::optional< beast::Journal > | j = std::nullopt |
||
| ) |
Handle a new validation.
Also sets the trust status of a validation based on the validating node's public key and this node's current UNL.
| app | Application object containing validations and ledgerMaster |
| val | The validation to add |
| source | Name associated with validation used in logging |
Definition at line 165 of file RCLValidations.cpp.
| std::shared_ptr< Ledger > ripple::buildLedger | ( | std::shared_ptr< Ledger const > const & | parent, |
| NetClock::time_point | closeTime, | ||
| bool const | closeTimeCorrect, | ||
| NetClock::duration | closeResolution, | ||
| Application & | app, | ||
| CanonicalTXSet & | txns, | ||
| std::set< TxID > & | failedTxs, | ||
| beast::Journal | j | ||
| ) |
Build a new ledger by applying consensus transactions.
Build a new ledger by applying a set of transactions accepted as part of consensus.
| parent | The ledger to apply transactions to |
| closeTime | The time the ledger closed |
| closeTimeCorrect | Whether consensus agreed on close time |
| closeResolution | Resolution used to determine consensus close time |
| app | Handle to application instance |
| txs | On entry, transactions to apply; on exit, transactions that must be retried in next round. |
| failedTxs | Populated with transactions that failed in this round |
| j | Journal to use for logging |
Definition at line 182 of file BuildLedger.cpp.
| std::shared_ptr< Ledger > ripple::buildLedger | ( | LedgerReplay const & | replayData, |
| ApplyFlags | applyFlags, | ||
| Application & | app, | ||
| beast::Journal | j | ||
| ) |
Build a new ledger by replaying transactions.
Build a new ledger by replaying transactions accepted into a prior ledger.
| replayData | Data of the ledger to replay |
| applyFlags | Flags to use when applying transactions |
| app | Handle to application instance |
| j | Journal to use for logging |
Definition at line 227 of file BuildLedger.cpp.
| std::shared_ptr< Ledger > ripple::buildLedgerImpl | ( | std::shared_ptr< Ledger const > const & | parent, |
| NetClock::time_point | closeTime, | ||
| bool const | closeTimeCorrect, | ||
| NetClock::duration | closeResolution, | ||
| Application & | app, | ||
| beast::Journal | j, | ||
| ApplyTxs && | applyTxs | ||
| ) |
Definition at line 39 of file BuildLedger.cpp.
| std::size_t ripple::applyTransactions | ( | Application & | app, |
| std::shared_ptr< Ledger const > const & | built, | ||
| CanonicalTXSet & | txns, | ||
| std::set< TxID > & | failed, | ||
| OpenView & | view, | ||
| beast::Journal | j | ||
| ) |
Apply a set of consensus transactions to a ledger.
| app | Handle to application |
| txns | the set of transactions to apply, |
| failed | set of transactions that failed to apply |
| view | ledger to apply to |
| j | Journal for logging |
Definition at line 99 of file BuildLedger.cpp.
|
static |
Definition at line 201 of file InboundLedger.cpp.
| std::unique_ptr< InboundLedgers > ripple::make_InboundLedgers | ( | Application & | app, |
| InboundLedgers::clock_type & | clock, | ||
| beast::insight::Collector::ptr const & | collector | ||
| ) |
Definition at line 471 of file InboundLedgers.cpp.
| std::unique_ptr< InboundTransactions > ripple::make_InboundTransactions | ( | Application & | app, |
| beast::insight::Collector::ptr const & | collector, | ||
| std::function< void(std::shared_ptr< SHAMap > const &, bool)> | gotSet | ||
| ) |
Definition at line 271 of file InboundTransactions.cpp.
| std::unique_ptr< LedgerCleaner > ripple::make_LedgerCleaner | ( | Application & | app, |
| beast::Journal | journal | ||
| ) |
Definition at line 460 of file LedgerCleaner.cpp.
|
static |
Definition at line 73 of file LedgerMaster.cpp.
|
static |
Populate a fetch pack with data from the map the recipient wants.
A recipient may or may not have the map that they are asking for. If they do, we can optimize the transfer by not including parts of the map that they are already have.
| have | The map that the recipient already has (if any). |
| cnt | The maximum number of nodes to return. |
| into | The protocol object into which we add information. |
| seq | The sequence number of the ledger the map is a part of. |
| withLeaves | True if leaf nodes should be included. |
The rationale is that for transaction trees, it may make sense to not include the leaves if the fetch pack is being constructed for someone attempting to get a recent ledger for which they already have the transactions.
However, for historical ledgers, which is the only use we have for fetch packs right now, it makes sense to include the transactions because the caller is unlikely to have them.
Definition at line 2065 of file LedgerMaster.cpp.
| void ripple::addJson | ( | Json::Value & | json, |
| LedgerFill const & | fill | ||
| ) |
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
Definition at line 347 of file LedgerToJson.cpp.
| Json::Value ripple::getJson | ( | LedgerFill const & | fill | ) |
Return a new Json::Value representing the ledger with given options.
Definition at line 357 of file LedgerToJson.cpp.
| std::unique_ptr< LocalTxs > ripple::make_LocalTxs | ( | ) |
Definition at line 192 of file LocalTxs.cpp.
| std::string ripple::debugTxstr | ( | std::shared_ptr< STTx const > const & | tx | ) |
Definition at line 194 of file OpenLedger.cpp.
| std::string ripple::debugTostr | ( | OrderedTxs const & | set | ) |
Definition at line 202 of file OpenLedger.cpp.
| std::string ripple::debugTostr | ( | SHAMap const & | set | ) |
Definition at line 211 of file OpenLedger.cpp.
| std::string ripple::debugTostr | ( | std::shared_ptr< ReadView const > const & | view | ) |
Definition at line 231 of file OpenLedger.cpp.
| uint256 ripple::calculateLedgerHash | ( | LedgerInfo const & | info | ) |
Definition at line 54 of file Ledger.cpp.
| std::shared_ptr< STTx const > ripple::deserializeTx | ( | SHAMapItem const & | item | ) |
Deserialize a SHAMapItem containing a single STTx.
Throw:
May throw on deserializaton error
Definition at line 382 of file Ledger.cpp.
| std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > ripple::deserializeTxPlusMeta | ( | SHAMapItem const & | item | ) |
Deserialize a SHAMapItem containing STTx + STObject metadata.
The SHAMap must contain two variable length serialization objects.
Throw:
May throw on deserializaton error
Definition at line 389 of file Ledger.cpp.
| bool ripple::isFlagLedger | ( | LedgerIndex | seq | ) |
Returns true if the given ledgerIndex is a flag ledgerIndex.
Definition at line 961 of file Ledger.cpp.
|
static |
Definition at line 967 of file Ledger.cpp.
| bool ripple::pendSaveValidated | ( | Application & | app, |
| std::shared_ptr< Ledger const > const & | ledger, | ||
| bool | isSynchronous, | ||
| bool | isCurrent | ||
| ) |
Save, or arrange to save, a fully-validated ledger Returns false on error.
Definition at line 997 of file Ledger.cpp.
| std::shared_ptr< Ledger > ripple::loadLedgerHelper | ( | LedgerInfo const & | info, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1070 of file Ledger.cpp.
|
static |
Definition at line 1088 of file Ledger.cpp.
| std::tuple< std::shared_ptr< Ledger >, std::uint32_t, uint256 > ripple::getLatestLedger | ( | Application & | app | ) |
Definition at line 1108 of file Ledger.cpp.
| std::shared_ptr< Ledger > ripple::loadByIndex | ( | std::uint32_t | ledgerIndex, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1118 of file Ledger.cpp.
| std::shared_ptr< Ledger > ripple::loadByHash | ( | uint256 const & | ledgerHash, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1131 of file Ledger.cpp.
|
static |
Definition at line 160 of file LedgerHistory.cpp.
|
static |
Definition at line 182 of file LedgerHistory.cpp.
|
static |
Definition at line 326 of file LedgerHistory.cpp.
Definition at line 2209 of file Application.cpp.
| std::unique_ptr< Application > ripple::make_Application | ( | std::unique_ptr< Config > | config, |
| std::unique_ptr< Logs > | logs, | ||
| std::unique_ptr< TimeKeeper > | timeKeeper | ||
| ) |
Definition at line 2199 of file Application.cpp.
| std::unique_ptr< CollectorManager > ripple::make_CollectorManager | ( | Section const & | params, |
| beast::Journal | journal | ||
| ) |
Definition at line 73 of file CollectorManager.cpp.
| std::unique_ptr< LoadManager > ripple::make_LoadManager | ( | Application & | app, |
| beast::Journal | journal | ||
| ) |
Definition at line 199 of file LoadManager.cpp.
| bool ripple::adjustDescriptorLimit | ( | int | needed, |
| beast::Journal | j | ||
| ) |
| void ripple::printHelp | ( | po::options_description const & | desc | ) |
| std::pair< PublicKey, SecretKey > ripple::getNodeIdentity | ( | Application & | app, |
| boost::program_options::variables_map const & | cmdline | ||
| ) |
The cryptographic credentials identifying this server instance.
| app | The application object |
| cmdline | The command line parameters passed into the application. |
Definition at line 29 of file NodeIdentity.cpp.
| std::unique_ptr< AmendmentTable > ripple::make_AmendmentTable | ( | Application & | app, |
| std::chrono::seconds | majorityTime, | ||
| std::vector< AmendmentTable::FeatureInfo > const & | supported, | ||
| Section const & | enabled, | ||
| Section const & | vetoed, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 1052 of file AmendmentTable.cpp.
| STAmount ripple::ammLPTokens | ( | STAmount const & | asset1, |
| STAmount const & | asset2, | ||
| Issue const & | lptIssue | ||
| ) |
Calculate LP Tokens given AMM pool reserves.
| asset1 | AMM one side of the pool reserve |
| asset2 | AMM another side of the pool reserve |
Definition at line 25 of file AMMHelpers.cpp.
| STAmount ripple::lpTokensOut | ( | STAmount const & | asset1Balance, |
| STAmount const & | asset1Deposit, | ||
| STAmount const & | lptAMMBalance, | ||
| std::uint16_t | tfee | ||
| ) |
Calculate LP Tokens given asset's deposit amount.
| asset1Balance | current AMM asset1 balance |
| asset1Deposit | requested asset1 deposit amount |
| lptAMMBalance | AMM LPT balance |
| tfee | trading fee in basis points |
Definition at line 45 of file AMMHelpers.cpp.
| STAmount ripple::ammAssetIn | ( | STAmount const & | asset1Balance, |
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | lpTokens, | ||
| std::uint16_t | tfee | ||
| ) |
Calculate asset deposit given LP Tokens.
| asset1Balance | current AMM asset1 balance |
| lpTokens | LP Tokens |
| lptAMMBalance | AMM LPT balance |
| tfee | trading fee in basis points |
Definition at line 80 of file AMMHelpers.cpp.
| STAmount ripple::lpTokensIn | ( | STAmount const & | asset1Balance, |
| STAmount const & | asset1Withdraw, | ||
| STAmount const & | lptAMMBalance, | ||
| std::uint16_t | tfee | ||
| ) |
Calculate LP Tokens given asset's withdraw amount.
Return 0 if can't calculate.
| asset1Balance | current AMM asset1 balance |
| asset1Withdraw | requested asset1 withdraw amount |
| lptAMMBalance | AMM LPT balance |
| tfee | trading fee in basis points |
Definition at line 112 of file AMMHelpers.cpp.
| STAmount ripple::ammAssetOut | ( | STAmount const & | assetBalance, |
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | lpTokens, | ||
| std::uint16_t | tfee | ||
| ) |
Calculate asset withdrawal by tokens.
| assetBalance | balance of the asset being withdrawn |
| lptAMMBalance | total AMM Tokens balance |
| lpTokens | LP Tokens balance |
| tfee | trading fee in basis points |
Definition at line 145 of file AMMHelpers.cpp.
| bool ripple::withinRelativeDistance | ( | Quality const & | calcQuality, |
| Quality const & | reqQuality, | ||
| Number const & | dist | ||
| ) |
Check if the relative distance between the qualities is within the requested distance.
| calcQuality | calculated quality |
| reqQuality | requested quality |
| dist | requested relative distance |
Definition at line 129 of file AMMHelpers.h.
| bool ripple::withinRelativeDistance | ( | Amt const & | calc, |
| Amt const & | req, | ||
| Number const & | dist | ||
| ) |
Check if the relative distance between the amounts is within the requested distance.
| calc | calculated amount |
| req | requested amount |
| dist | requested relative distance |
Definition at line 156 of file AMMHelpers.h.
| std::optional< Number > ripple::solveQuadraticEqSmallest | ( | Number const & | a, |
| Number const & | b, | ||
| Number const & | c | ||
| ) |
Solve quadratic equation to find takerGets or takerPays.
Round to minimize the amount in order to maximize the quality.
Definition at line 271 of file AMMHelpers.cpp.
| std::optional< TAmounts< TIn, TOut > > ripple::getAMMOfferStartWithTakerGets | ( | TAmounts< TIn, TOut > const & | pool, |
| Quality const & | targetQuality, | ||
| std::uint16_t const & | tfee | ||
| ) |
Generate AMM offer starting with takerGets when AMM pool from the payment perspective is IOU(in)/XRP(out) Equations: Spot Price Quality after the offer is consumed: Qsp = (O - o) / (I + i) – equation (1) where O is poolPays, I is poolGets, o is takerGets, i is takerPays Swap out: i = (I * o) / (O - o) * f – equation (2) where f is (1 - tfee/100000), tfee is in basis points Effective price targetQuality: Qep = o / i – equation (3) There are two scenarios to consider A) Qsp = Qep.
Substitute i in (1) with (2) and solve for o and Qsp = targetQuality(Qt): o**2 + o * (I * Qt * (1 - 1 / f) - 2 * O) + O**2 - Qt * I * O = 0 B) Qep = Qsp. Substitute i in (3) with (2) and solve for o and Qep = targetQuality(Qt): o = O - I * Qt / f Since the scenario is not known a priori, both A and B are solved and the lowest value of o is takerGets. takerPays is calculated with swap out eq (2). If o is less or equal to 0 then the offer can't be generated.
Definition at line 196 of file AMMHelpers.h.
| std::optional< TAmounts< TIn, TOut > > ripple::getAMMOfferStartWithTakerPays | ( | TAmounts< TIn, TOut > const & | pool, |
| Quality const & | targetQuality, | ||
| std::uint16_t | tfee | ||
| ) |
Generate AMM offer starting with takerPays when AMM pool from the payment perspective is XRP(in)/IOU(out) or IOU(in)/IOU(out).
Equations: Spot Price Quality after the offer is consumed: Qsp = (O - o) / (I + i) – equation (1) where O is poolPays, I is poolGets, o is takerGets, i is takerPays Swap in: o = (O * i * f) / (I + i * f) – equation (2) where f is (1 - tfee/100000), tfee is in basis points Effective price quality: Qep = o / i – equation (3) There are two scenarios to consider A) Qsp = Qep. Substitute o in (1) with (2) and solve for i and Qsp = targetQuality(Qt): i**2 * f + i * I * (1 + f) + I**2 - I * O / Qt = 0 B) Qep = Qsp. Substitute i in (3) with (2) and solve for i and Qep = targetQuality(Qt): i = O / Qt - I / f Since the scenario is not known a priori, both A and B are solved and the lowest value of i is takerPays. takerGets is calculated with swap in eq (2). If i is less or equal to 0 then the offer can't be generated.
Definition at line 267 of file AMMHelpers.h.
| std::optional< TAmounts< TIn, TOut > > ripple::changeSpotPriceQuality | ( | TAmounts< TIn, TOut > const & | pool, |
| Quality const & | quality, | ||
| std::uint16_t | tfee, | ||
| Rules const & | rules, | ||
| beast::Journal | j | ||
| ) |
Generate AMM offer so that either updated Spot Price Quality (SPQ) is equal to LOB quality (in this case AMM offer quality is better than LOB quality) or AMM offer is equal to LOB quality (in this case SPQ is better than LOB quality).
Pre-amendment code calculates takerPays first. If takerGets is XRP, it is rounded down, which results in worse offer quality than LOB quality, and the offer might fail to generate. Post-amendment code calculates the XRP offer side first. The result is rounded down, which makes the offer quality better. It might not be possible to match either SPQ or AMM offer to LOB quality. This generally happens at higher fees.
| pool | AMM pool balances |
| quality | requested quality |
| tfee | trading fee in basis points |
Definition at line 331 of file AMMHelpers.h.
| TOut ripple::swapAssetIn | ( | TAmounts< TIn, TOut > const & | pool, |
| TIn const & | assetIn, | ||
| std::uint16_t | tfee | ||
| ) |
AMM pool invariant - the product (A * B) after swap in/out has to remain at least the same: (A + in) * (B - out) >= A * B XRP round-off may result in a smaller product after swap in/out.
To address this:
| pool | current AMM pool balances |
| assetIn | amount to swap in |
| tfee | trading fee in basis points |
Definition at line 464 of file AMMHelpers.h.
| TIn ripple::swapAssetOut | ( | TAmounts< TIn, TOut > const & | pool, |
| TOut const & | assetOut, | ||
| std::uint16_t | tfee | ||
| ) |
Swap assetOut out of the pool and swap in a proportional amount of the other asset.
Implements AMM Swap out.
| pool | current AMM pool balances |
| assetOut | amount to swap out |
| tfee | trading fee in basis points |
Definition at line 537 of file AMMHelpers.h.
Return square of n.
Definition at line 167 of file AMMHelpers.cpp.
| STAmount ripple::adjustLPTokens | ( | STAmount const & | lptAMMBalance, |
| STAmount const & | lpTokens, | ||
| IsDeposit | isDeposit | ||
| ) |
Adjust LP tokens to deposit/withdraw.
Amount type keeps 16 digits. Maintaining the LP balance by adding deposited tokens or subtracting withdrawn LP tokens from LP balance results in losing precision in LP balance. I.e. the resulting LP balance is less than the actual sum of LP tokens. To adjust for this, subtract old tokens balance from the new one for deposit or vice versa for withdraw to cancel out the precision loss.
| lptAMMBalance | LPT AMM Balance |
| lpTokens | LP tokens to deposit or withdraw |
| isDeposit | Yes if deposit, No if withdraw |
Definition at line 173 of file AMMHelpers.cpp.
| std::tuple< STAmount, std::optional< STAmount >, STAmount > ripple::adjustAmountsByLPTokens | ( | STAmount const & | amountBalance, |
| STAmount const & | amount, | ||
| std::optional< STAmount > const & | amount2, | ||
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | lpTokens, | ||
| std::uint16_t | tfee, | ||
| IsDeposit | isDeposit | ||
| ) |
Calls adjustLPTokens() and adjusts deposit or withdraw amounts if the adjusted LP tokens are less than the provided LP tokens.
| amountBalance | asset1 pool balance |
| amount | asset1 to deposit or withdraw |
| amount2 | asset2 to deposit or withdraw |
| lptAMMBalance | LPT AMM Balance |
| lpTokens | LP tokens to deposit or withdraw |
| tfee | trading fee in basis points |
| isDeposit | Yes if deposit, No if withdraw |
Definition at line 187 of file AMMHelpers.cpp.
Positive solution for quadratic equation: x = (-b + sqrt(b**2 + 4*a*c))/(2*a)
Definition at line 264 of file AMMHelpers.cpp.
| STAmount ripple::multiply | ( | STAmount const & | amount, |
| Number const & | frac, | ||
| Number::rounding_mode | rm | ||
| ) |
Definition at line 285 of file AMMHelpers.cpp.
| STAmount ripple::getRoundedAsset | ( | Rules const & | rules, |
| STAmount const & | balance, | ||
| A const & | frac, | ||
| IsDeposit | isDeposit | ||
| ) |
Round AMM equal deposit/withdrawal amount.
Deposit/withdrawal formulas calculate the amount as a fractional value of the pool balance. The rounding takes place on the last step of multiplying the balance by the fraction if AMMv1_3 is enabled.
Definition at line 678 of file AMMHelpers.h.
| STAmount ripple::getRoundedAsset | ( | Rules const & | rules, |
| std::function< Number()> && | noRoundCb, | ||
| STAmount const & | balance, | ||
| std::function< Number()> && | productCb, | ||
| IsDeposit | isDeposit | ||
| ) |
Round AMM single deposit/withdrawal amount.
The lambda's are used to delay evaluation until the function is executed so that the calculation is not done twice. noRoundCb() is called if AMMv1_3 is disabled. Otherwise, the rounding is set and the amount is: isDeposit is Yes - the balance multiplied by productCb() isDeposit is No - the result of productCb(). The rounding is the same for all calculations in productCb()
Definition at line 293 of file AMMHelpers.cpp.
| STAmount ripple::getRoundedLPTokens | ( | Rules const & | rules, |
| STAmount const & | balance, | ||
| Number const & | frac, | ||
| IsDeposit | isDeposit | ||
| ) |
Round AMM deposit/withdrawal LPToken amount.
Deposit/withdrawal formulas calculate the lptokens as a fractional value of the AMM total lptokens. The rounding takes place on the last step of multiplying the balance by the fraction if AMMv1_3 is enabled. The tokens are then adjusted to factor in the loss in precision (we only keep 16 significant digits) when adding the lptokens to the balance.
Definition at line 311 of file AMMHelpers.cpp.
| STAmount ripple::getRoundedLPTokens | ( | Rules const & | rules, |
| std::function< Number()> && | noRoundCb, | ||
| STAmount const & | lptAMMBalance, | ||
| std::function< Number()> && | productCb, | ||
| IsDeposit | isDeposit | ||
| ) |
Round AMM single deposit/withdrawal LPToken amount.
The lambda's are used to delay evaluation until the function is executed so that the calculations are not done twice. noRoundCb() is called if AMMv1_3 is disabled. Otherwise, the rounding is set and the lptokens are: if isDeposit is Yes - the result of productCb(). The rounding is the same for all calculations in productCb() if isDeposit is No - the balance multiplied by productCb() The lptokens are then adjusted to factor in the loss in precision (we only keep 16 significant digits) when adding the lptokens to the balance.
Definition at line 326 of file AMMHelpers.cpp.
| std::pair< STAmount, STAmount > ripple::adjustAssetInByTokens | ( | Rules const & | rules, |
| STAmount const & | balance, | ||
| STAmount const & | amount, | ||
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | tokens, | ||
| std::uint16_t | tfee | ||
| ) |
Definition at line 349 of file AMMHelpers.cpp.
| std::pair< STAmount, STAmount > ripple::adjustAssetOutByTokens | ( | Rules const & | rules, |
| STAmount const & | balance, | ||
| STAmount const & | amount, | ||
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | tokens, | ||
| std::uint16_t | tfee | ||
| ) |
Definition at line 375 of file AMMHelpers.cpp.
| Number ripple::adjustFracByTokens | ( | Rules const & | rules, |
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | tokens, | ||
| Number const & | frac | ||
| ) |
Find a fraction of tokens after the tokens are adjusted.
The fraction is used to adjust equal deposit/withdraw amount.
Definition at line 401 of file AMMHelpers.cpp.
| std::pair< STAmount, STAmount > ripple::ammPoolHolds | ( | ReadView const & | view, |
| AccountID const & | ammAccountID, | ||
| Issue const & | issue1, | ||
| Issue const & | issue2, | ||
| FreezeHandling | freezeHandling, | ||
| beast::Journal const | j | ||
| ) |
Get AMM pool balances.
Definition at line 31 of file AMMUtils.cpp.
| Expected< std::tuple< STAmount, STAmount, STAmount >, TER > ripple::ammHolds | ( | ReadView const & | view, |
| SLE const & | ammSle, | ||
| std::optional< Issue > const & | optIssue1, | ||
| std::optional< Issue > const & | optIssue2, | ||
| FreezeHandling | freezeHandling, | ||
| beast::Journal const | j | ||
| ) |
Get AMM pool and LP token balances.
If both optIssue are provided then they are used as the AMM token pair issues. Otherwise the missing issues are fetched from ammSle.
Definition at line 47 of file AMMUtils.cpp.
| STAmount ripple::ammLPHolds | ( | ReadView const & | view, |
| Currency const & | cur1, | ||
| Currency const & | cur2, | ||
| AccountID const & | ammAccount, | ||
| AccountID const & | lpAccount, | ||
| beast::Journal const | j | ||
| ) |
Get the balance of LP tokens.
Definition at line 113 of file AMMUtils.cpp.
| STAmount ripple::ammLPHolds | ( | ReadView const & | view, |
| SLE const & | ammSle, | ||
| AccountID const & | lpAccount, | ||
| beast::Journal const | j | ||
| ) |
Definition at line 163 of file AMMUtils.cpp.
| std::uint16_t ripple::getTradingFee | ( | ReadView const & | view, |
| SLE const & | ammSle, | ||
| AccountID const & | account | ||
| ) |
Get AMM trading fee for the given account.
The fee is discounted if the account is the auction slot owner or one of the slot's authorized accounts.
Definition at line 179 of file AMMUtils.cpp.
| STAmount ripple::ammAccountHolds | ( | ReadView const & | view, |
| AccountID const & | ammAccountID, | ||
| Issue const & | issue | ||
| ) |
Returns total amount held by AMM for the given token.
Definition at line 211 of file AMMUtils.cpp.
| TER ripple::deleteAMMAccount | ( | Sandbox & | view, |
| Issue const & | asset, | ||
| Issue const & | asset2, | ||
| beast::Journal | j | ||
| ) |
Delete trustlines to AMM.
If all trustlines are deleted then AMM object and account are deleted. Otherwise tecIMPCOMPLETE is returned.
Definition at line 283 of file AMMUtils.cpp.
| void ripple::initializeFeeAuctionVote | ( | ApplyView & | view, |
| std::shared_ptr< SLE > & | ammSle, | ||
| AccountID const & | account, | ||
| Issue const & | lptIssue, | ||
| std::uint16_t | tfee | ||
| ) |
Initialize Auction and Voting slots and set the trading/discounted fee.
Definition at line 340 of file AMMUtils.cpp.
| Expected< bool, TER > ripple::isOnlyLiquidityProvider | ( | ReadView const & | view, |
| Issue const & | ammIssue, | ||
| AccountID const & | lpAccount | ||
| ) |
Return true if the Liquidity Provider is the only AMM provider, false otherwise.
Return tecINTERNAL if encountered an unexpected condition, for instance Liquidity Provider has more than one LPToken trustline.
Definition at line 387 of file AMMUtils.cpp.
| Expected< bool, TER > ripple::verifyAndAdjustLPTokenBalance | ( | Sandbox & | sb, |
| STAmount const & | lpTokens, | ||
| std::shared_ptr< SLE > & | ammSle, | ||
| AccountID const & | account | ||
| ) |
Due to rounding, the LPTokenBalance of the last LP might not match the LP's trustline balance.
If it's within the tolerance, update LPTokenBalance to match the LP's trustline balance.
Definition at line 469 of file AMMUtils.cpp.
| bool ripple::operator< | ( | CanonicalTXSet::Key const & | lhs, |
| CanonicalTXSet::Key const & | rhs | ||
| ) |
Definition at line 24 of file CanonicalTXSet.cpp.
| NotTEC ripple::checkTxPermission | ( | std::shared_ptr< SLE const > const & | delegate, |
| STTx const & | tx | ||
| ) |
Check if the delegate account has permission to execute the transaction.
| delegate | The delegate account. |
| tx | The transaction that the delegate account intends to execute. |
Definition at line 26 of file DelegateUtils.cpp.
| void ripple::loadGranularPermission | ( | std::shared_ptr< SLE const > const & | delegate, |
| TxType const & | type, | ||
| std::unordered_set< GranularPermissionType > & | granularPermissions | ||
| ) |
Load the granular permissions granted to the delegate account for the specified transaction type.
| delegate | The delegate account. |
| type | Used to determine which granted granular permissions to load, based on the transaction type. |
| granularPermissions | Granted granular permissions tied to the transaction type. |
Definition at line 45 of file DelegateUtils.cpp.
| void ripple::convertBlobsToTxResult | ( | RelationalDatabase::AccountTxs & | to, |
| std::uint32_t | ledger_index, | ||
| std::string const & | status, | ||
| Blob const & | rawTxn, | ||
| Blob const & | rawMeta, | ||
| Application & | app | ||
| ) |
Definition at line 30 of file AccountTxPaging.cpp.
| void ripple::saveLedgerAsync | ( | Application & | app, |
| std::uint32_t | seq | ||
| ) |
Definition at line 60 of file AccountTxPaging.cpp.
|
static |
Definition at line 41 of file AmendmentTable.cpp.
|
static |
Definition at line 237 of file AMMUtils.cpp.
| XRPAmount ripple::scaleFeeLoad | ( | XRPAmount | fee, |
| LoadFeeTrack const & | feeTrack, | ||
| Fees const & | fees, | ||
| bool | bUnlimited | ||
| ) |
Definition at line 84 of file LoadFeeTrack.cpp.
| std::string ripple::to_string | ( | Manifest const & | m | ) |
Format the specified manifest to a string for debugging purposes.
Definition at line 39 of file Manifest.cpp.
| std::optional< Manifest > ripple::deserializeManifest | ( | Slice | s, |
| beast::Journal | journal | ||
| ) |
Constructs Manifest from serialized string.
| s | Serialized manifest string |
std::nullopt if string is invalidManifest::verify should be called after constructing manifest. Definition at line 54 of file Manifest.cpp.
| Stream & ripple::logMftAct | ( | Stream & | s, |
| std::string const & | action, | ||
| PublicKey const & | pk, | ||
| std::uint32_t | seq | ||
| ) |
Definition at line 168 of file Manifest.cpp.
| Stream & ripple::logMftAct | ( | Stream & | s, |
| std::string const & | action, | ||
| PublicKey const & | pk, | ||
| std::uint32_t | seq, | ||
| std::uint32_t | oldSeq | ||
| ) |
Definition at line 182 of file Manifest.cpp.
| std::optional< ValidatorToken > ripple::loadValidatorToken | ( | std::vector< std::string > const & | blob, |
| beast::Journal | journal | ||
| ) |
Definition at line 264 of file Manifest.cpp.
|
static |
|
static |
|
static |
| TxQ::Setup ripple::setup_TxQ | ( | Config const & | config | ) |
Build a TxQ::Setup object from application configuration.
| std::string ripple::to_string | ( | ListDisposition | disposition | ) |
Definition at line 45 of file ValidatorList.cpp.
| std::size_t ripple::splitMessageParts | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
| protocol::TMValidatorListCollection const & | largeMsg, | ||
| std::size_t | maxSize, | ||
| std::size_t | begin, | ||
| std::size_t | end | ||
| ) |
Definition at line 523 of file ValidatorList.cpp.
| std::size_t ripple::splitMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
| protocol::TMValidatorListCollection const & | largeMsg, | ||
| std::size_t | maxSize, | ||
| std::size_t | begin = 0, |
||
| std::size_t | end = 0 |
||
| ) |
Definition at line 502 of file ValidatorList.cpp.
| std::size_t ripple::buildValidatorListMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
| std::uint32_t | rawVersion, | ||
| std::string const & | rawManifest, | ||
| ValidatorBlobInfo const & | currentBlob, | ||
| std::size_t | maxSize | ||
| ) |
Definition at line 588 of file ValidatorList.cpp.
| std::size_t ripple::buildValidatorListMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
| std::uint64_t | peerSequence, | ||
| std::uint32_t | rawVersion, | ||
| std::string const & | rawManifest, | ||
| std::map< std::size_t, ValidatorBlobInfo > const & | blobInfos, | ||
| std::size_t | maxSize | ||
| ) |
Definition at line 623 of file ValidatorList.cpp.
| std::unique_ptr< FeeVote > ripple::make_FeeVote | ( | FeeSetup const & | setup, |
| beast::Journal | journal | ||
| ) |
Create an instance of the FeeVote logic.
| setup | The fee schedule to vote for. |
| journal | Where to log. |
Definition at line 340 of file FeeVoteImpl.cpp.
| HashRouter::Setup ripple::setup_HashRouter | ( | Config const & | config | ) |
Definition at line 137 of file HashRouter.cpp.
|
constexpr |
Definition at line 53 of file HashRouter.h.
|
constexpr |
Definition at line 61 of file HashRouter.h.
|
constexpr |
Definition at line 68 of file HashRouter.h.
|
constexpr |
Definition at line 76 of file HashRouter.h.
|
constexpr |
Definition at line 83 of file HashRouter.h.
| std::optional< Manifest > ripple::deserializeManifest | ( | std::string const & | s, |
| beast::Journal | journal = beast::Journal(beast::Journal::getNullSink()) |
||
| ) |
Definition at line 168 of file Manifest.h.
| std::optional< Manifest > ripple::deserializeManifest | ( | std::vector< T > const & | v, |
| beast::Journal | journal = beast::Journal(beast::Journal::getNullSink()) |
||
| ) |
Definition at line 180 of file Manifest.h.
Definition at line 189 of file Manifest.h.
Definition at line 199 of file Manifest.h.
| std::string ripple::to_string | ( | ManifestDisposition | m | ) |
Definition at line 233 of file Manifest.h.
|
static |
Definition at line 2306 of file NetworkOPs.cpp.
| std::unique_ptr< NetworkOPs > ripple::make_NetworkOPs | ( | Application & | app, |
| NetworkOPs::clock_type & | clock, | ||
| bool | standalone, | ||
| std::size_t | minPeerCount, | ||
| bool | startvalid, | ||
| JobQueue & | job_queue, | ||
| LedgerMaster & | ledgerMaster, | ||
| ValidatorKeys const & | validatorKeys, | ||
| boost::asio::io_context & | io_svc, | ||
| beast::Journal | journal, | ||
| beast::insight::Collector::ptr const & | collector | ||
| ) |
Definition at line 4883 of file NetworkOPs.cpp.
| std::unique_ptr< SHAMapStore > ripple::make_SHAMapStore | ( | Application & | app, |
| NodeStore::Scheduler & | scheduler, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 683 of file SHAMapStoreImp.cpp.
| FeeLevel64 ripple::toFeeLevel | ( | XRPAmount const & | drops, |
| XRPAmount const & | baseFee | ||
| ) |
| void ripple::hash_append | ( | Hasher & | h, |
| ValidatorBlobInfo const & | blobInfo | ||
| ) |
Definition at line 920 of file ValidatorList.h.
| void ripple::hash_append | ( | Hasher & | h, |
| std::vector< ValidatorBlobInfo > const & | blobs | ||
| ) |
Definition at line 932 of file ValidatorList.h.
| void ripple::hash_append | ( | Hasher & | h, |
| std::map< std::size_t, ValidatorBlobInfo > const & | blobs | ||
| ) |
Definition at line 940 of file ValidatorList.h.
| hash_set< Currency > ripple::accountSourceCurrencies | ( | AccountID const & | account, |
| std::shared_ptr< RippleLineCache > const & | lrCache, | ||
| bool | includeXRP | ||
| ) |
Definition at line 25 of file AccountCurrencies.cpp.
| hash_set< Currency > ripple::accountDestCurrencies | ( | AccountID const & | account, |
| std::shared_ptr< RippleLineCache > const & | lrCache, | ||
| bool | includeXRP | ||
| ) |
Definition at line 61 of file AccountCurrencies.cpp.
| STAmount ripple::creditLimit | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| AccountID const & | issuer, | ||
| Currency const & | currency | ||
| ) |
Calculate the maximum amount of IOUs that an account can hold.
| ledger | the ledger to check against. |
| account | the account of interest. |
| issuer | the issuer of the IOU. |
| currency | the IOU to check. |
Definition at line 28 of file Credit.cpp.
| IOUAmount ripple::creditLimit2 | ( | ReadView const & | v, |
| AccountID const & | acc, | ||
| AccountID const & | iss, | ||
| Currency const & | cur | ||
| ) |
Definition at line 55 of file Credit.cpp.
| STAmount ripple::creditBalance | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| AccountID const & | issuer, | ||
| Currency const & | currency | ||
| ) |
Returns the amount of IOUs issued by issuer that are held by an account.
| ledger | the ledger to check against. |
| account | the account of interest. |
| issuer | the issuer of the IOU. |
| currency | the IOU to check. |
Definition at line 65 of file Credit.cpp.
| T & ripple::get | ( | EitherAmount & | amt | ) |
Definition at line 118 of file AmountSpec.h.
| IOUAmount & ripple::get< IOUAmount > | ( | EitherAmount & | amt | ) |
Definition at line 125 of file AmountSpec.h.
| XRPAmount & ripple::get< XRPAmount > | ( | EitherAmount & | amt | ) |
Definition at line 134 of file AmountSpec.h.
| T const & ripple::get | ( | EitherAmount const & | amt | ) |
Definition at line 143 of file AmountSpec.h.
| IOUAmount const & ripple::get< IOUAmount > | ( | EitherAmount const & | amt | ) |
Definition at line 150 of file AmountSpec.h.
| XRPAmount const & ripple::get< XRPAmount > | ( | EitherAmount const & | amt | ) |
Definition at line 160 of file AmountSpec.h.
| AmountSpec ripple::toAmountSpec | ( | STAmount const & | amt | ) |
Definition at line 169 of file AmountSpec.h.
| EitherAmount ripple::toEitherAmount | ( | STAmount const & | amt | ) |
Definition at line 195 of file AmountSpec.h.
| AmountSpec ripple::toAmountSpec | ( | EitherAmount const & | ea, |
| std::optional< Currency > const & | c | ||
| ) |
Definition at line 203 of file AmountSpec.h.
|
static |
Definition at line 651 of file BookStep.cpp.
|
static |
Definition at line 682 of file BookStep.cpp.
|
static |
Definition at line 995 of file BookStep.cpp.
|
static |
Definition at line 1429 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > ripple::make_BookStepII | ( | StrandContext const & | ctx, |
| Issue const & | in, | ||
| Issue const & | out | ||
| ) |
Definition at line 1454 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > ripple::make_BookStepIX | ( | StrandContext const & | ctx, |
| Issue const & | in | ||
| ) |
Definition at line 1460 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > ripple::make_BookStepXI | ( | StrandContext const & | ctx, |
| Issue const & | out | ||
| ) |
Definition at line 1466 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > ripple::make_DirectStepI | ( | StrandContext const & | ctx, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Currency const & | c | ||
| ) |
Definition at line 969 of file DirectStep.cpp.
| void ripple::SetUnion | ( | boost::container::flat_set< T > & | dst, |
| boost::container::flat_set< T > const & | src | ||
| ) |
Given two flat sets dst and src, compute dst = dst union src.
| dst | set to store the resulting union, and also a source of elements for the union |
| src | second source of elements for the union |
Definition at line 35 of file FlatSets.h.
Definition at line 28 of file PathfinderUtils.h.
Definition at line 37 of file PathfinderUtils.h.
| bool ripple::convertAllCheck | ( | STAmount const & | a | ) |
Definition at line 46 of file PathfinderUtils.h.
Definition at line 34 of file PaySteps.cpp.
Definition at line 58 of file PaySteps.cpp.
|
static |
Definition at line 64 of file PaySteps.cpp.
|
static |
Definition at line 72 of file PaySteps.cpp.
| std::pair< TER, Strand > ripple::toStrand | ( | ReadView const & | sb, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Issue const & | deliver, | ||
| std::optional< Quality > const & | limitQuality, | ||
| std::optional< Issue > const & | sendMaxIssue, | ||
| STPath const & | path, | ||
| bool | ownerPaysTransferFee, | ||
| OfferCrossing | offerCrossing, | ||
| AMMContext & | ammContext, | ||
| std::optional< uint256 > const & | domainID, | ||
| beast::Journal | j | ||
| ) |
Create a Strand for the specified path.
| sb | view for trust lines, balances, and attributes like auth and freeze |
| src | Account that is sending assets |
| dst | Account that is receiving assets |
| deliver | Asset the dst account will receive (if issuer of deliver == dst, then accept any issuer) |
| limitQuality | Offer crossing BookSteps use this value in an optimization. If, during direct offer crossing, the quality of the tip of the book drops below this value, then evaluating the strand can stop. |
| sendMaxIssue | Optional asset to send. |
| path | Liquidity sources to use for this strand of the payment. The path contains an ordered collection of the offer books to use and accounts to ripple through. |
| ownerPaysTransferFee | false -> charge sender; true -> charge offer owner |
| offerCrossing | false -> payment; true -> offer crossing |
| ammContext | counts iterations with AMM offers |
| domainID | the domain that order books will use |
| j | Journal for logging messages |
Definition at line 136 of file PaySteps.cpp.
| std::pair< TER, std::vector< Strand > > ripple::toStrands | ( | ReadView const & | sb, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Issue const & | deliver, | ||
| std::optional< Quality > const & | limitQuality, | ||
| std::optional< Issue > const & | sendMax, | ||
| STPathSet const & | paths, | ||
| bool | addDefaultPath, | ||
| bool | ownerPaysTransferFee, | ||
| OfferCrossing | offerCrossing, | ||
| AMMContext & | ammContext, | ||
| std::optional< uint256 > const & | domainID, | ||
| beast::Journal | j | ||
| ) |
Create a Strand for each specified path (including the default path, if indicated)
| sb | View for trust lines, balances, and attributes like auth and freeze |
| src | Account that is sending assets |
| dst | Account that is receiving assets |
| deliver | Asset the dst account will receive (if issuer of deliver == dst, then accept any issuer) |
| limitQuality | Offer crossing BookSteps use this value in an optimization. If, during direct offer crossing, the quality of the tip of the book drops below this value, then evaluating the strand can stop. |
| sendMax | Optional asset to send. |
| paths | Paths to use to fulfill the payment. Each path in the pathset contains an ordered collection of the offer books to use and accounts to ripple through. |
| addDefaultPath | Determines if the default path should be included |
| ownerPaysTransferFee | false -> charge sender; true -> charge offer owner |
| offerCrossing | false -> payment; true -> offer crossing |
| ammContext | counts iterations with AMM offers |
| domainID | the domain that order books will use |
| j | Journal for logging messages |
Definition at line 475 of file PaySteps.cpp.
| bool ripple::isDirectXrpToXrp | ( | Strand const & | strand | ) |
Definition at line 630 of file PaySteps.cpp.
| bool ripple::isDirectXrpToXrp< XRPAmount, XRPAmount > | ( | Strand const & | strand | ) |
Definition at line 636 of file PaySteps.cpp.
| template bool ripple::isDirectXrpToXrp< XRPAmount, IOUAmount > | ( | Strand const & | strand | ) |
| template bool ripple::isDirectXrpToXrp< IOUAmount, XRPAmount > | ( | Strand const & | strand | ) |
| template bool ripple::isDirectXrpToXrp< IOUAmount, IOUAmount > | ( | Strand const & | strand | ) |
| TER ripple::checkFreeze | ( | ReadView const & | view, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Currency const & | currency | ||
| ) |
Definition at line 33 of file StepChecks.h.
| TER ripple::checkNoRipple | ( | ReadView const & | view, |
| AccountID const & | prev, | ||
| AccountID const & | cur, | ||
| AccountID const & | next, | ||
| Currency const & | currency, | ||
| beast::Journal | j | ||
| ) |
Definition at line 88 of file StepChecks.h.
| bool ripple::redeems | ( | DebtDirection | dir | ) |
| bool ripple::issues | ( | DebtDirection | dir | ) |
| std::pair< TER, STPath > ripple::normalizePath | ( | AccountID const & | src, |
| AccountID const & | dst, | ||
| Issue const & | deliver, | ||
| std::optional< Issue > const & | sendMaxIssue, | ||
| STPath const & | path | ||
| ) |
| StrandResult< TInAmt, TOutAmt > ripple::flow | ( | PaymentSandbox const & | baseView, |
| Strand const & | strand, | ||
| std::optional< TInAmt > const & | maxIn, | ||
| TOutAmt const & | out, | ||
| beast::Journal | j | ||
| ) |
Request out amount from a strand.
| baseView | Trust lines and balances |
| strand | Steps of Accounts to ripple through and offer books to use |
| maxIn | Max amount of input allowed |
| out | Amount of output requested from the strand |
| j | Journal to write log messages to |
Definition at line 105 of file StrandFlow.h.
| FlowResult< TInAmt, TOutAmt > ripple::flow | ( | PaymentSandbox const & | baseView, |
| std::vector< Strand > const & | strands, | ||
| TOutAmt const & | outReq, | ||
| bool | partialPayment, | ||
| OfferCrossing | offerCrossing, | ||
| std::optional< Quality > const & | limitQuality, | ||
| std::optional< STAmount > const & | sendMaxST, | ||
| beast::Journal | j, | ||
| AMMContext & | ammContext, | ||
| path::detail::FlowDebugInfo * | flowDebugInfo = nullptr |
||
| ) |
Request out amount from a collection of strands.
Attempt to fulfill the payment by using liquidity from the strands in order from least expensive to most expensive
| baseView | Trust lines and balances |
| strands | Each strand contains the steps of accounts to ripple through and offer books to use |
| outReq | Amount of output requested from the strand |
| partialPayment | If true allow less than the full payment |
| offerCrossing | If true offer crossing, not handling a standard payment |
| limitQuality | If present, the minimum quality for any strand taken |
| sendMaxST | If present, the maximum STAmount to send |
| j | Journal to write journal messages to |
| ammContext | counts iterations with AMM offers |
| flowDebugInfo | If pointer is non-null, write flow debug info here |
Definition at line 569 of file StrandFlow.h.
| bool ripple::operator== | ( | XRPEndpointStep< TDerived > const & | lhs, |
| XRPEndpointStep< TDerived > const & | rhs | ||
| ) |
Definition at line 237 of file XRPEndpointStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > ripple::make_XRPEndpointStep | ( | StrandContext const & | ctx, |
| AccountID const & | acc | ||
| ) |
Definition at line 395 of file XRPEndpointStep.cpp.
|
static |
| path::RippleCalc::Output ripple::flow | ( | PaymentSandbox & | view, |
| STAmount const & | deliver, | ||
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| STPathSet const & | paths, | ||
| bool | defaultPaths, | ||
| bool | partialPayment, | ||
| bool | ownerPaysTransferFee, | ||
| OfferCrossing | offerCrossing, | ||
| std::optional< Quality > const & | limitQuality, | ||
| std::optional< STAmount > const & | sendMax, | ||
| std::optional< uint256 > const & | domainID, | ||
| beast::Journal | j, | ||
| path::detail::FlowDebugInfo * | flowDebugInfo = nullptr |
||
| ) |
Make a payment from the src account to the dst account.
| view | Trust lines and balances |
| deliver | Amount to deliver to the dst account |
| src | Account providing input funds for the payment |
| dst | Account receiving the payment |
| paths | Set of paths to explore for liquidity |
| defaultPaths | Include defaultPaths in the path set |
| partialPayment | If the payment cannot deliver the entire requested amount, deliver as much as possible, given the constraints |
| ownerPaysTransferFee | If true then owner, not sender, pays fee |
| offerCrossing | If Yes or Sell then flow is executing offer crossing, not payments |
| limitQuality | Do not use liquidity below this quality threshold |
| sendMax | Do not spend more than this amount |
| j | Journal to write journal messages to |
| flowDebugInfo | If non-null a pointer to FlowDebugInfo for debugging |
|
static |
Definition at line 463 of file Pathfinder.cpp.
Definition at line 482 of file Pathfinder.cpp.
Definition at line 940 of file Pathfinder.cpp.
| std::unique_ptr< RelationalDatabase > ripple::getSQLiteDatabase | ( | Application & | app, |
| Config const & | config, | ||
| JobQueue & | jobQueue | ||
| ) |
Definition at line 856 of file SQLiteDatabase.cpp.
| void ripple::initPeerFinderDB | ( | soci::session & | session, |
| BasicConfig const & | config, | ||
| beast::Journal | j | ||
| ) |
initPeerFinderDB Opens a session with the peer finder database.
| session | Session with the peer finder database. |
| config | Path to the database and other opening parameters. |
| j | Journal. |
Definition at line 25 of file PeerFinder.cpp.
| void ripple::updatePeerFinderDB | ( | soci::session & | session, |
| int | currentSchemaVersion, | ||
| beast::Journal | j | ||
| ) |
updatePeerFinderDB Updates the peer finder database to a new version.
| session | Session with the database. |
| currentSchemaVersion | New version of the database. |
| j | Journal. |
Definition at line 61 of file PeerFinder.cpp.
| void ripple::readPeerFinderDB | ( | soci::session & | session, |
| std::function< void(std::string const &, int)> const & | func | ||
| ) |
readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for each entry.
| session | Session with the database. |
| func | Callback to invoke for each entry. |
Definition at line 217 of file PeerFinder.cpp.
| void ripple::savePeerFinderDB | ( | soci::session & | session, |
| std::vector< PeerFinder::Store::Entry > const & | v | ||
| ) |
savePeerFinderDB Saves a new entry to the peer finder database.
| session | Session with the database. |
| v | Entry to save which contains information about a new peer. |
Definition at line 239 of file PeerFinder.cpp.
| void ripple::initStateDB | ( | soci::session & | session, |
| BasicConfig const & | config, | ||
| std::string const & | dbName | ||
| ) |
| LedgerIndex ripple::getCanDelete | ( | soci::session & | session | ) |
| LedgerIndex ripple::setCanDelete | ( | soci::session & | session, |
| LedgerIndex | canDelete | ||
| ) |
| SavedState ripple::getSavedState | ( | soci::session & | session | ) |
getSavedState Returns the saved state.
| session | Session with the database. |
| void ripple::setSavedState | ( | soci::session & | session, |
| SavedState const & | state | ||
| ) |
setSavedState Saves the given state.
| session | Session with the database. |
| state | The SavedState structure which contains the names of the writable database, the archive database and the last rotated ledger sequence. |
| void ripple::setLastRotated | ( | soci::session & | session, |
| LedgerIndex | seq | ||
| ) |
| bool ripple::doVacuumDB | ( | DatabaseCon::Setup const & | setup, |
| beast::Journal | j | ||
| ) |
doVacuumDB Creates, initialises, and performs cleanup on a database.
| setup | Path to the database and other opening parameters. |
| j | Journal. |
Definition at line 27 of file Vacuum.cpp.
| std::unique_ptr< DatabaseCon > ripple::makeWalletDB | ( | DatabaseCon::Setup const & | setup, |
| beast::Journal | j | ||
| ) |
makeWalletDB Opens the wallet database and returns it.
| setup | Path to the database and other opening parameters. |
| j | Journal. |
Definition at line 27 of file Wallet.cpp.
| std::unique_ptr< DatabaseCon > ripple::makeTestWalletDB | ( | DatabaseCon::Setup const & | setup, |
| std::string const & | dbname, | ||
| beast::Journal | j | ||
| ) |
makeTestWalletDB Opens a test wallet database with an arbitrary name.
| setup | Path to the database and other opening parameters. |
| dbname | Name of the database. |
| j | Journal. |
Definition at line 35 of file Wallet.cpp.
| void ripple::getManifests | ( | soci::session & | session, |
| std::string const & | dbTable, | ||
| ManifestCache & | mCache, | ||
| beast::Journal | j | ||
| ) |
getManifests Loads a manifest from the wallet database and stores it in the cache.
| session | Session with the database. |
| dbTable | Name of the database table from which the manifest will be extracted. |
| mCache | Cache for storing the manifest. |
| j | Journal. |
Definition at line 46 of file Wallet.cpp.
|
static |
Definition at line 79 of file Wallet.cpp.
| void ripple::saveManifests | ( | soci::session & | session, |
| std::string const & | dbTable, | ||
| std::function< bool(PublicKey const &)> const & | isTrusted, | ||
| hash_map< PublicKey, Manifest > const & | map, | ||
| beast::Journal | j | ||
| ) |
saveManifests Saves all given manifests to the database.
| session | Session with the database. |
| dbTable | Name of the database table that will store the manifest. |
| isTrusted | Callback that returns true if the key is trusted. |
| map | Maps public keys to manifests. |
| j | Journal. |
Definition at line 94 of file Wallet.cpp.
| void ripple::addValidatorManifest | ( | soci::session & | session, |
| std::string const & | serialized | ||
| ) |
addValidatorManifest Saves the manifest of a validator to the database.
Definition at line 119 of file Wallet.cpp.
| void ripple::clearNodeIdentity | ( | soci::session & | session | ) |
Delete any saved public/private key associated with this node.
Definition at line 127 of file Wallet.cpp.
Returns a stable public and private key for this node.
The node's public identity is defined by a secp256k1 keypair that is (normally) randomly generated. This function will return such a keypair, securely generating one if needed.
| session | Session with the database. |
Definition at line 133 of file Wallet.cpp.
| std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > ripple::getPeerReservationTable | ( | soci::session & | session, |
| beast::Journal | j | ||
| ) |
getPeerReservationTable Returns the peer reservation table.
| session | Session with the database. |
| j | Journal. |
Definition at line 170 of file Wallet.cpp.
| void ripple::insertPeerReservation | ( | soci::session & | session, |
| PublicKey const & | nodeId, | ||
| std::string const & | description | ||
| ) |
insertPeerReservation Adds an entry to the peer reservation table.
| session | Session with the database. |
| nodeId | Public key of the node. |
| description | Description of the node. |
Definition at line 207 of file Wallet.cpp.
| void ripple::deletePeerReservation | ( | soci::session & | session, |
| PublicKey const & | nodeId | ||
| ) |
deletePeerReservation Deletes an entry from the peer reservation table.
| session | Session with the database. |
| nodeId | Public key of the node to remove. |
Definition at line 221 of file Wallet.cpp.
| bool ripple::createFeatureVotes | ( | soci::session & | session | ) |
createFeatureVotes Creates the FeatureVote table if it does not exist.
| session | Session with the wallet database. |
Definition at line 229 of file Wallet.cpp.
| void ripple::readAmendments | ( | soci::session & | session, |
| std::function< void(boost::optional< std::string > amendment_hash, boost::optional< std::string > amendment_name, boost::optional< AmendmentVote > vote)> const & | callback | ||
| ) |
readAmendments Reads all amendments from the FeatureVotes table.
| session | Session with the wallet database. |
| callback | Callback called for each amendment with its hash, name and optionally a flag denoting whether the amendment should be vetoed. |
Definition at line 253 of file Wallet.cpp.
| void ripple::voteAmendment | ( | soci::session & | session, |
| uint256 const & | amendment, | ||
| std::string const & | name, | ||
| AmendmentVote | vote | ||
| ) |
voteAmendment Set the veto value for a particular amendment.
| session | Session with the wallet database. |
| amendment | Hash of the amendment. |
| name | Name of the amendment. |
| vote | Whether to vote in favor of this amendment. |
Definition at line 289 of file Wallet.cpp.
| T ripple::rangeCheckedCast | ( | C | c | ) |
Definition at line 230 of file RelationalDatabase.h.
| std::pair< Validity, std::string > ripple::checkValidity | ( | HashRouter & | router, |
| STTx const & | tx, | ||
| Rules const & | rules, | ||
| Config const & | config | ||
| ) |
Checks transaction signature and local checks.
Validity enum representing how valid the STTx is and, if not Valid, a reason string.std::pair, where .first is the status, and .second is the reason if appropriate.| void ripple::forceValidity | ( | HashRouter & | router, |
| uint256 const & | txid, | ||
| Validity | validity | ||
| ) |
Sets the validity of a given transaction in the cache.
| ApplyResult ripple::apply | ( | Application & | app, |
| OpenView & | view, | ||
| STTx const & | tx, | ||
| ApplyFlags | flags, | ||
| beast::Journal | journal | ||
| ) |
Apply a transaction to an OpenView.
This function is the canonical way to apply a transaction to a ledger. It rolls the validation and application steps into one function. To do the steps manually, the correct calling order is:
The result of one function must be passed to the next. The preflight result can be safely cached and reused asynchronously, but preclaim and doApply must be called in the same thread and with the same view.
For open ledgers, the Transactor will catch exceptions and return tefEXCEPTION. For closed ledgers, the Transactor will attempt to only charge a fee, and return tecFAILED_PROCESSING.
If the Transactor gets an exception while trying to charge the fee, it will be caught and turned into tefEXCEPTION.
For network health, a Transactor makes its best effort to at least charge a fee if the ledger is closed.
| app | The current running Application. |
| view | The open ledger that the transaction will attempt to be applied to. |
| tx | The transaction to be checked. |
| flags | ApplyFlags describing processing options. |
| journal | A journal. |
TER and a bool indicating whether or not the transaction was applied. | ApplyTransactionResult ripple::applyTransaction | ( | Application & | app, |
| OpenView & | view, | ||
| STTx const & | tx, | ||
| bool | retryAssured, | ||
| ApplyFlags | flags, | ||
| beast::Journal | journal | ||
| ) |
Transaction application helper.
Provides more detailed logging and decodes the correct behavior based on the TER type
| bool ripple::isTecClaimHardFail | ( | TER | ter, |
| ApplyFlags | flags | ||
| ) |
Return true if the transaction can claim a fee (tec), and the ApplyFlags do not allow soft failures.
Definition at line 48 of file applySteps.h.
| PreflightResult ripple::preflight | ( | Application & | app, |
| Rules const & | rules, | ||
| STTx const & | tx, | ||
| ApplyFlags | flags, | ||
| beast::Journal | j | ||
| ) |
Gate a transaction based on static information.
The transaction is checked against all possible validity constraints that do not require a ledger.
| app | The current running Application. |
| rules | The Rules in effect at the time of the check. |
| tx | The transaction to be checked. |
| flags | ApplyFlags describing processing options. |
| j | A journal. |
PreflightResult object containing, among other things, the TER code. Definition at line 304 of file applySteps.cpp.
| PreflightResult ripple::preflight | ( | Application & | app, |
| Rules const & | rules, | ||
| uint256 const & | parentBatchId, | ||
| STTx const & | tx, | ||
| ApplyFlags | flags, | ||
| beast::Journal | j | ||
| ) |
Definition at line 324 of file applySteps.cpp.
| PreclaimResult ripple::preclaim | ( | PreflightResult const & | preflightResult, |
| Application & | app, | ||
| OpenView const & | view | ||
| ) |
Gate a transaction based on static ledger information.
The transaction is checked against all possible validity constraints that DO require a ledger.
If preclaim succeeds, then the transaction is very likely to claim a fee. This will determine if the transaction is safe to relay without being applied to the open ledger.
"Succeeds" in this case is defined as returning a tes or tec, since both lead to claiming a fee.
preflight| preflightResult | The result of a previous call to preflight for the transaction. |
| app | The current running Application. |
| view | The open ledger that the transaction will attempt to be applied to. |
PreclaimResult object containing, among other things the TER code and the base fee value for this transaction. Definition at line 345 of file applySteps.cpp.
Compute only the expected base fee for a transaction.
Base fees are transaction specific, so any calculation needing them must get the base fee for each transaction.
No validation is done or implied by this function.
Caller is responsible for handling any exceptions. Since none should be thrown, that will usually mean terminating.
| view | The current open ledger. |
| tx | The transaction to be checked. |
Definition at line 406 of file applySteps.cpp.
Return the minimum fee that an "ordinary" transaction would pay.
When computing the FeeLevel for a transaction the TxQ sometimes needs the know what an "ordinary" or reference transaction would be required to pay.
| view | The current open ledger. |
| tx | The transaction so the correct multisigner count is used. |
Definition at line 412 of file applySteps.cpp.
| ApplyResult ripple::doApply | ( | PreclaimResult const & | preclaimResult, |
| Application & | app, | ||
| OpenView & | view | ||
| ) |
Apply a prechecked transaction to an OpenView.
preflight and preclaim| preclaimResult | The result of a previous call to preclaim for the transaction. |
| app | The current running Application. |
| view | The open ledger that the transaction will attempt to be applied to. |
TER and a bool indicating whether or not the transaction was applied. Definition at line 418 of file applySteps.cpp.
|
static |
Definition at line 172 of file AMMBid.cpp.
|
static |
Definition at line 212 of file AMMCreate.cpp.
|
static |
Definition at line 631 of file AMMDeposit.cpp.
|
static |
Definition at line 79 of file AMMVote.cpp.
|
static |
Definition at line 158 of file AMMWithdraw.cpp.
|
static |
Definition at line 675 of file AMMWithdraw.cpp.
| ApplyResult ripple::apply | ( | Application & | app, |
| OpenView & | view, | ||
| PreflightChecks && | preflightChecks | ||
| ) |
| ApplyResult ripple::apply | ( | Application & | app, |
| OpenView & | view, | ||
| uint256 const & | parentBatchId, | ||
| STTx const & | tx, | ||
| ApplyFlags | flags, | ||
| beast::Journal | j | ||
| ) |
|
static |
| TxConsequences ripple::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 92 of file applySteps.cpp.
| TxConsequences ripple::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 101 of file applySteps.cpp.
| TxConsequences ripple::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 110 of file applySteps.cpp.
|
static |
Definition at line 117 of file applySteps.cpp.
|
static |
Definition at line 142 of file applySteps.cpp.
Calculates the base fee for a given transaction.
This function determines the base fee required for the specified transaction by invoking the appropriate fee calculation logic based on the transaction type. It uses a type-dispatch mechanism to select the correct calculation method.
| view | The ledger view to use for fee calculation. |
| tx | The transaction for which the base fee is to be calculated. |
| std::exception | If an error occurs during fee calculation, including but not limited to unknown transaction types or internal errors, the function logs an error and returns an XRPAmount of zero. |
Definition at line 222 of file applySteps.cpp.
|
static |
Definition at line 282 of file applySteps.cpp.
|
static |
| NotTEC ripple::preflightHelper< Issue > | ( | PreflightContext const & | ctx | ) |
Definition at line 36 of file Clawback.cpp.
| NotTEC ripple::preflightHelper< MPTIssue > | ( | PreflightContext const & | ctx | ) |
Definition at line 55 of file Clawback.cpp.
|
static |
| TER ripple::preclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| SLE const & | sleIssuer, | ||
| AccountID const & | issuer, | ||
| AccountID const & | holder, | ||
| STAmount const & | clawAmount | ||
| ) |
Definition at line 106 of file Clawback.cpp.
| TER ripple::preclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| SLE const & | sleIssuer, | ||
| AccountID const & | issuer, | ||
| AccountID const & | holder, | ||
| STAmount const & | clawAmount | ||
| ) |
Definition at line 159 of file Clawback.cpp.
|
static |
| TER ripple::applyHelper< Issue > | ( | ApplyContext & | ctx | ) |
Definition at line 228 of file Clawback.cpp.
| TER ripple::applyHelper< MPTIssue > | ( | ApplyContext & | ctx | ) |
Definition at line 259 of file Clawback.cpp.
| TER ripple::addSLE | ( | ApplyContext & | ctx, |
| std::shared_ptr< SLE > const & | sle, | ||
| AccountID const & | owner | ||
| ) |
|
static |
| NotTEC ripple::escrowCreatePreflightHelper< Issue > | ( | PreflightContext const & | ctx | ) |
Definition at line 93 of file Escrow.cpp.
| NotTEC ripple::escrowCreatePreflightHelper< MPTIssue > | ( | PreflightContext const & | ctx | ) |
Definition at line 107 of file Escrow.cpp.
|
static |
| TER ripple::escrowCreatePreclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 195 of file Escrow.cpp.
| TER ripple::escrowCreatePreclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 273 of file Escrow.cpp.
|
static |
| TER ripple::escrowLockApplyHelper< Issue > | ( | ApplyView & | view, |
| AccountID const & | issuer, | ||
| AccountID const & | sender, | ||
| STAmount const & | amount, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 398 of file Escrow.cpp.
| TER ripple::escrowLockApplyHelper< MPTIssue > | ( | ApplyView & | view, |
| AccountID const & | issuer, | ||
| AccountID const & | sender, | ||
| STAmount const & | amount, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 423 of file Escrow.cpp.
Definition at line 578 of file Escrow.cpp.
|
static |
| TER ripple::escrowFinishPreclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 669 of file Escrow.cpp.
| TER ripple::escrowFinishPreclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 693 of file Escrow.cpp.
|
static |
| TER ripple::escrowUnlockApplyHelper< Issue > | ( | ApplyView & | view, |
| Rate | lockedRate, | ||
| std::shared_ptr< SLE > const & | sleDest, | ||
| STAmount const & | xrpBalance, | ||
| STAmount const & | amount, | ||
| AccountID const & | issuer, | ||
| AccountID const & | sender, | ||
| AccountID const & | receiver, | ||
| bool | createAsset, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 776 of file Escrow.cpp.
| TER ripple::escrowUnlockApplyHelper< MPTIssue > | ( | ApplyView & | view, |
| Rate | lockedRate, | ||
| std::shared_ptr< SLE > const & | sleDest, | ||
| STAmount const & | xrpBalance, | ||
| STAmount const & | amount, | ||
| AccountID const & | issuer, | ||
| AccountID const & | sender, | ||
| AccountID const & | receiver, | ||
| bool | createAsset, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 909 of file Escrow.cpp.
|
static |
| TER ripple::escrowCancelPreclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 1173 of file Escrow.cpp.
| TER ripple::escrowCancelPreclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 1193 of file Escrow.cpp.
Definition at line 94 of file InvariantCheck.cpp.
Definition at line 110 of file InvariantCheck.cpp.
|
static |
Definition at line 1917 of file InvariantCheck.cpp.
| InvariantChecks ripple::getInvariantChecks | ( | ) |
get a tuple of all invariant checks
Definition at line 839 of file InvariantCheck.h.
|
static |
Definition at line 36 of file NFTokenMint.cpp.
|
static |
Definition at line 42 of file NFTokenMint.cpp.
| std::ostream & ripple::operator<< | ( | std::ostream & | os, |
| TOffer< TIn, TOut > const & | offer | ||
| ) |
|
static |
Definition at line 100 of file OfferStream.cpp.
|
static |
Definition at line 112 of file OfferStream.cpp.
|
static |
Definition at line 129 of file OfferStream.cpp.
|
static |
Definition at line 117 of file PayChan.cpp.
| STAmount ripple::getMaxSourceAmount | ( | AccountID const & | account, |
| STAmount const & | dstAmount, | ||
| std::optional< STAmount > const & | sendMax | ||
| ) |
Definition at line 51 of file Payment.cpp.
Definition at line 32 of file SetOracle.cpp.
|
static |
Definition at line 177 of file SetOracle.cpp.
|
static |
Definition at line 190 of file SetOracle.cpp.
|
static |
Definition at line 169 of file SetSignerList.cpp.
|
static |
Definition at line 196 of file SetSignerList.cpp.
| NotTEC ripple::preflight0 | ( | PreflightContext const & | ctx, |
| std::uint32_t | flagMask | ||
| ) |
Performs early sanity checks on the txid.
Performs early sanity checks on the txid and flags.
Definition at line 44 of file Transactor.cpp.
|
static |
Definition at line 988 of file Transactor.cpp.
|
static |
Definition at line 1008 of file Transactor.cpp.
|
static |
Definition at line 1027 of file Transactor.cpp.
|
static |
Definition at line 1040 of file Transactor.cpp.
| bool ripple::shouldCloseLedger | ( | bool | anyTransactions, |
| std::size_t | prevProposers, | ||
| std::size_t | proposersClosed, | ||
| std::size_t | proposersValidated, | ||
| std::chrono::milliseconds | prevRoundTime, | ||
| std::chrono::milliseconds | timeSincePrevClose, | ||
| std::chrono::milliseconds | openTime, | ||
| std::chrono::milliseconds | idleInterval, | ||
| ConsensusParms const & | parms, | ||
| beast::Journal | j, | ||
| std::unique_ptr< std::stringstream > const & | clog = {} |
||
| ) |
Determines whether the current ledger should close at this time.
This function should be called when a ledger is open and there is no close in progress, or when a transaction is received and no close is in progress.
| anyTransactions | indicates whether any transactions have been received |
| prevProposers | proposers in the last closing |
| proposersClosed | proposers who have currently closed this ledger |
| proposersValidated | proposers who have validated the last closed ledger |
| prevRoundTime | time for the previous ledger to reach consensus |
| timeSincePrevClose | time since the previous ledger's (possibly rounded) close time |
| openTime | duration this ledger has been open |
| idleInterval | the network's desired idle interval |
| parms | Consensus constant parameters |
| j | journal for logging |
| clog | log object to which to append |
Definition at line 27 of file Consensus.cpp.
| bool ripple::checkConsensusReached | ( | std::size_t | agreeing, |
| std::size_t | total, | ||
| bool | count_self, | ||
| std::size_t | minConsensusPct, | ||
| bool | reachedMax, | ||
| bool | stalled, | ||
| std::unique_ptr< std::stringstream > const & | clog | ||
| ) |
Definition at line 106 of file Consensus.cpp.
| ConsensusState ripple::checkConsensus | ( | std::size_t | prevProposers, |
| std::size_t | currentProposers, | ||
| std::size_t | currentAgree, | ||
| std::size_t | currentFinished, | ||
| std::chrono::milliseconds | previousAgreeTime, | ||
| std::chrono::milliseconds | currentAgreeTime, | ||
| bool | stalled, | ||
| ConsensusParms const & | parms, | ||
| bool | proposing, | ||
| beast::Journal | j, | ||
| std::unique_ptr< std::stringstream > const & | clog = {} |
||
| ) |
Determine whether the network reached consensus and whether we joined.
| prevProposers | proposers in the last closing (not including us) |
| currentProposers | proposers in this closing so far (not including us) |
| currentAgree | proposers who agree with us |
| currentFinished | proposers who have validated a ledger after this one |
| previousAgreeTime | how long, in milliseconds, it took to agree on the last ledger |
| currentAgreeTime | how long, in milliseconds, we've been trying to agree |
| stalled | the network appears to be stalled, where neither we nor our peers have changed their vote on any disputes in a while. This is undesirable, and should be rare, and will cause us to end consensus without 80% agreement. |
| parms | Consensus constant parameters |
| proposing | whether we should count ourselves |
| j | journal for logging |
| clog | log object to which to append |
Definition at line 177 of file Consensus.cpp.
| int ripple::participantsNeeded | ( | int | participants, |
| int | percent | ||
| ) |
How many of the participants must agree to reach a given threshold?
Note that the number may not precisely yield the requested percentage. For example, with with size = 5 and percent = 70, we return 3, but 3 out of 5 works out to 60%. There are no security implications to this.
| participants | The number of participants (i.e. validators) |
| percent | The percent that we want to reach |
Definition at line 1483 of file Consensus.h.
| std::pair< std::size_t, std::optional< ConsensusParms::AvalancheState > > ripple::getNeededWeight | ( | ConsensusParms const & | p, |
| ConsensusParms::AvalancheState | currentState, | ||
| int | percentTime, | ||
| std::size_t | currentRounds, | ||
| std::size_t | minimumRounds | ||
| ) |
Definition at line 173 of file ConsensusParms.h.
| bool ripple::operator== | ( | ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const & | a, |
| ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const & | b | ||
| ) |
Definition at line 276 of file ConsensusProposal.h.
| std::string ripple::to_string | ( | ConsensusMode | m | ) |
Definition at line 72 of file ConsensusTypes.h.
| std::string ripple::to_string | ( | ConsensusPhase | p | ) |
Definition at line 119 of file ConsensusTypes.h.
| std::chrono::duration< Rep, Period > ripple::getNextLedgerTimeResolution | ( | std::chrono::duration< Rep, Period > | previousResolution, |
| bool | previousAgree, | ||
| Seq | ledgerSeq | ||
| ) |
Calculates the close time resolution for the specified ledger.
The Ripple protocol uses binning to represent time intervals using only one timestamp. This allows servers to derive a common time for the next ledger, without the need for perfectly synchronized clocks. The time resolution (i.e. the size of the intervals) is adjusted dynamically based on what happened in the last ledger, to try to avoid disagreements.
| previousResolution | the resolution used for the prior ledger |
| previousAgree | whether consensus agreed on the close time of the prior ledger |
| ledgerSeq | the sequence number of the new ledger |
| Rep | Type representing number of ticks in std::chrono::duration |
| Period | An std::ratio representing tick period in std::chrono::duration |
| Seq | Unsigned integer-like type corresponding to the ledger sequence number. It should be comparable to 0 and support modular division. Built-in and tagged_integers are supported. |
Definition at line 80 of file LedgerTiming.h.
| std::chrono::time_point< Clock, Duration > ripple::roundCloseTime | ( | std::chrono::time_point< Clock, Duration > | closeTime, |
| std::chrono::duration< Rep, Period > | closeResolution | ||
| ) |
Calculates the close time for a ledger, given a close time resolution.
| closeTime | The time to be rounded |
| closeResolution | The resolution |
Definition at line 133 of file LedgerTiming.h.
| std::chrono::time_point< Clock, Duration > ripple::effCloseTime | ( | std::chrono::time_point< Clock, Duration > | closeTime, |
| std::chrono::duration< Rep, Period > | resolution, | ||
| std::chrono::time_point< Clock, Duration > | priorCloseTime | ||
| ) |
Calculate the effective ledger close time.
After adjusting the ledger close time based on the current resolution, also ensure it is sufficiently separated from the prior close time.
| closeTime | The raw ledger close time |
| resolution | The current close time resolution |
| priorCloseTime | The close time of the prior ledger |
Definition at line 156 of file LedgerTiming.h.
| bool ripple::isCurrent | ( | ValidationParms const & | p, |
| NetClock::time_point | now, | ||
| NetClock::time_point | signTime, | ||
| NetClock::time_point | seenTime | ||
| ) |
Whether a validation is still current.
Determines whether a validation can still be considered the current validation from a node based on when it was signed by that node and first seen by this node.
| p | ValidationParms with timing parameters |
| now | Current time |
| signTime | When the validation was signed |
| seenTime | When the validation was first seen locally |
Definition at line 149 of file Validations.h.
| std::string ripple::to_string | ( | ValStatus | m | ) |
Definition at line 183 of file Validations.h.
Definition at line 1129 of file Config.cpp.
| std::shared_ptr< Checkpointer > ripple::checkpointerFromId | ( | std::uintptr_t | id | ) |
Definition at line 80 of file DatabaseCon.cpp.
| DatabaseCon::Setup ripple::setup_DatabaseCon | ( | Config const & | c, |
| std::optional< beast::Journal > | j = std::nullopt |
||
| ) |
Definition at line 107 of file DatabaseCon.cpp.
| IniFileSections ripple::parseIniFile | ( | std::string const & | strInput, |
| bool const | bTrim | ||
| ) |
Definition at line 161 of file Config.cpp.
| IniFileSections::mapped_type * ripple::getIniFileSection | ( | IniFileSections & | secSource, |
| std::string const & | strSection | ||
| ) |
Definition at line 209 of file Config.cpp.
| bool ripple::getSingleSection | ( | IniFileSections & | secSource, |
| std::string const & | strSection, | ||
| std::string & | strValue, | ||
| beast::Journal | j | ||
| ) |
Definition at line 218 of file Config.cpp.
|
static |
Definition at line 252 of file Config.cpp.
|
static |
Definition at line 429 of file Config.cpp.
| void ripple::open | ( | soci::session & | s, |
| BasicConfig const & | config, | ||
| std::string const & | dbName | ||
| ) |
Open a soci session.
| s | Session to open. |
| config | Parameters to pick the soci backend and how to connect to that backend. |
| dbName | Name of the database. This has different meaning for different backends. Sometimes it is part of a filename (sqlite3), other times it is a database name (postgresql). |
Definition at line 101 of file SociDB.cpp.
| void ripple::open | ( | soci::session & | s, |
| std::string const & | beName, | ||
| std::string const & | connectionString | ||
| ) |
Open a soci session.
| s | Session to open. |
| beName | Backend name. |
| connectionString | Connection string to forward to soci::open. see the soci::open documentation for how to use this. |
Definition at line 107 of file SociDB.cpp.
|
static |
Definition at line 119 of file SociDB.cpp.
| std::uint32_t ripple::getKBUsedAll | ( | soci::session & | s | ) |
Definition at line 133 of file SociDB.cpp.
| std::uint32_t ripple::getKBUsedDB | ( | soci::session & | s | ) |
Definition at line 142 of file SociDB.cpp.
| void ripple::convert | ( | soci::blob & | from, |
| std::vector< std::uint8_t > & | to | ||
| ) |
Definition at line 157 of file SociDB.cpp.
| void ripple::convert | ( | soci::blob & | from, |
| std::string & | to | ||
| ) |
Definition at line 166 of file SociDB.cpp.
| void ripple::convert | ( | std::vector< std::uint8_t > const & | from, |
| soci::blob & | to | ||
| ) |
Definition at line 174 of file SociDB.cpp.
| void ripple::convert | ( | std::string const & | from, |
| soci::blob & | to | ||
| ) |
Definition at line 183 of file SociDB.cpp.
| std::shared_ptr< Checkpointer > ripple::makeCheckpointer | ( | std::uintptr_t | id, |
| std::weak_ptr< soci::session > | , | ||
| JobQueue & | , | ||
| Logs & | |||
| ) |
Returns a new checkpointer which makes checkpoints of a soci database every checkpointPageCount pages, using a job on the job queue.
The checkpointer contains references to the session and job queue and so must outlive them both.
Definition at line 336 of file SociDB.cpp.
| std::optional< std::string > ripple::getFeatureValue | ( | boost::beast::http::fields const & | headers, |
| std::string const & | feature | ||
| ) |
Get feature's header value.
| headers | request/response header |
| feature | name |
Definition at line 39 of file Handshake.cpp.
| bool ripple::isFeatureValue | ( | boost::beast::http::fields const & | headers, |
| std::string const & | feature, | ||
| std::string const & | value | ||
| ) |
Check if a feature's value is equal to the specified value.
| headers | request/response header |
| feature | to check |
| value | of the feature to check, must be a single value; i.e. not value1,value2... |
Definition at line 55 of file Handshake.cpp.
| bool ripple::featureEnabled | ( | boost::beast::http::fields const & | headers, |
| std::string const & | feature | ||
| ) |
Check if a feature is enabled.
| headers | request/response header |
| feature | to check |
Definition at line 67 of file Handshake.cpp.
| std::string ripple::makeFeaturesRequestHeader | ( | bool | comprEnabled, |
| bool | ledgerReplayEnabled, | ||
| bool | txReduceRelayEnabled, | ||
| bool | vpReduceRelayEnabled | ||
| ) |
Make request header X-Protocol-Ctl value with supported features.
| comprEnabled | if true then compression feature is enabled |
| ledgerReplayEnabled | if true then ledger-replay feature is enabled |
| txReduceRelayEnabled | if true then transaction reduce-relay feature is enabled |
| vpReduceRelayEnabled | if true then validation/proposal reduce-relay base squelch feature is enabled |
Definition at line 75 of file Handshake.cpp.
| std::string ripple::makeFeaturesResponseHeader | ( | http_request_type const & | headers, |
| bool | comprEnabled, | ||
| bool | ledgerReplayEnabled, | ||
| bool | txReduceRelayEnabled, | ||
| bool | vpReduceRelayEnabled | ||
| ) |
Make response header X-Protocol-Ctl value with supported features.
If the request has a feature that we support enabled and the feature's configuration is enabled then enable this feature in the response header.
| header | request's header |
| comprEnabled | if true then compression feature is enabled |
| ledgerReplayEnabled | if true then ledger-replay feature is enabled |
| txReduceRelayEnabled | if true then transaction reduce-relay feature is enabled |
| vpReduceRelayEnabled | if true then validation/proposal reduce-relay base squelch feature is enabled |
Definition at line 94 of file Handshake.cpp.
|
static |
Hashes the latest finished message from an SSL stream.
| ssl | the session to get the message from. |
| get | a pointer to the function to call to retrieve the finished message. This can be either:
|
true if successful, false otherwise.Definition at line 128 of file Handshake.cpp.
| std::optional< uint256 > ripple::makeSharedValue | ( | stream_type & | ssl, |
| beast::Journal | journal | ||
| ) |
Computes a shared value based on the SSL connection state.
When there is no man in the middle, both sides will compute the same value. In the presence of an attacker, the computed values will be different.
| ssl | the SSL/TLS connection state. |
Definition at line 146 of file Handshake.cpp.
| void ripple::buildHandshake | ( | boost::beast::http::fields & | h, |
| ripple::uint256 const & | sharedValue, | ||
| std::optional< std::uint32_t > | networkID, | ||
| beast::IP::Address | public_ip, | ||
| beast::IP::Address | remote_ip, | ||
| Application & | app | ||
| ) |
Insert fields headers necessary for upgrading the link to the peer protocol.
Definition at line 178 of file Handshake.cpp.
| PublicKey ripple::verifyHandshake | ( | boost::beast::http::fields const & | headers, |
| uint256 const & | sharedValue, | ||
| std::optional< std::uint32_t > | networkID, | ||
| beast::IP::Address | public_ip, | ||
| beast::IP::Address | remote, | ||
| Application & | app | ||
| ) |
Validate header fields necessary for upgrading the link to the peer protocol.
This performs critical security checks that ensure that prevent MITM attacks on our peer-to-peer links and that the remote peer has the private keys that correspond to the public identity it claims.
| A | class derived from std::exception. |
Definition at line 227 of file Handshake.cpp.
| request_type ripple::makeRequest | ( | bool | crawlPublic, |
| bool | comprEnabled, | ||
| bool | ledgerReplayEnabled, | ||
| bool | txReduceRelayEnabled, | ||
| bool | vpReduceRelayEnabled | ||
| ) |
Make outbound http request.
| crawlPublic | if true then server's IP/Port are included in crawl |
| comprEnabled | if true then compression feature is enabled |
| ledgerReplayEnabled | if true then ledger-replay feature is enabled |
| txReduceRelayEnabled | if true then transaction reduce-relay feature is enabled |
| vpReduceRelayEnabled | if true then validation/proposal reduce-relay feature is enabled |
Definition at line 365 of file Handshake.cpp.
| http_response_type ripple::makeResponse | ( | bool | crawlPublic, |
| http_request_type const & | req, | ||
| beast::IP::Address | public_ip, | ||
| beast::IP::Address | remote_ip, | ||
| uint256 const & | sharedValue, | ||
| std::optional< std::uint32_t > | networkID, | ||
| ProtocolVersion | version, | ||
| Application & | app | ||
| ) |
Make http response.
| crawlPublic | if true then server's IP/Port are included in crawl |
| req | incoming http request |
| public_ip | server's public IP |
| remote_ip | peer's IP |
| sharedValue | shared value based on the SSL connection state |
| networkID | specifies what network we intend to connect to |
| version | supported protocol version |
| app | Application's reference to access some common properties |
Definition at line 392 of file Handshake.cpp.
| bool ripple::peerFeatureEnabled | ( | headers const & | request, |
| std::string const & | feature, | ||
| std::string | value, | ||
| bool | config | ||
| ) |
Check if a feature should be enabled for a peer.
The feature is enabled if its configured value is true and the http header has the specified feature value.
| headers | request (inbound) or response (outbound) header |
| request | http headers |
| feature | to check |
| config | feature's configuration value |
| value | feature's value to check in the headers |
Definition at line 198 of file Handshake.h.
| bool ripple::peerFeatureEnabled | ( | headers const & | request, |
| std::string const & | feature, | ||
| bool | config | ||
| ) |
Wrapper for enable(1)/disable type(0) of feature.
Definition at line 210 of file Handshake.h.
| std::shared_ptr< Message > ripple::makeSquelchMessage | ( | PublicKey const & | validator, |
| bool | squelch, | ||
| uint32_t | squelchDuration | ||
| ) |
Definition at line 1391 of file OverlayImpl.cpp.
| Overlay::Setup ripple::setup_Overlay | ( | BasicConfig const & | config | ) |
Definition at line 1499 of file OverlayImpl.cpp.
| std::unique_ptr< Overlay > ripple::make_Overlay | ( | Application & | app, |
| Overlay::Setup const & | setup, | ||
| ServerHandler & | serverHandler, | ||
| Resource::Manager & | resourceManager, | ||
| Resolver & | resolver, | ||
| boost::asio::io_context & | io_context, | ||
| BasicConfig const & | config, | ||
| beast::insight::Collector::ptr const & | collector | ||
| ) |
Creates the implementation of Overlay.
Definition at line 1604 of file OverlayImpl.cpp.
|
static |
Definition at line 157 of file PeerImp.cpp.
|
static |
Definition at line 3164 of file PeerImp.cpp.
|
static |
Definition at line 3188 of file PeerImp.cpp.
| std::unique_ptr< PeerSetBuilder > ripple::make_PeerSetBuilder | ( | Application & | app | ) |
Definition at line 144 of file PeerSet.cpp.
| std::unique_ptr< PeerSet > ripple::make_DummyPeerSet | ( | Application & | app | ) |
Make a dummy PeerSet that does not do anything.
Definition at line 187 of file PeerSet.cpp.
| protocol::MessageType ripple::protocolMessageType | ( | protocol::TMGetLedger const & | ) |
Definition at line 41 of file ProtocolMessage.h.
| protocol::MessageType ripple::protocolMessageType | ( | protocol::TMReplayDeltaRequest const & | ) |
Definition at line 47 of file ProtocolMessage.h.
| protocol::MessageType ripple::protocolMessageType | ( | protocol::TMProofPathRequest const & | ) |
Definition at line 53 of file ProtocolMessage.h.
| std::string ripple::protocolMessageName | ( | int | type | ) |
Returns the name of a protocol message given its type.
Definition at line 61 of file ProtocolMessage.h.
| std::pair< std::size_t, boost::system::error_code > ripple::invokeProtocolMessage | ( | Buffers const & | buffers, |
| Handler & | handler, | ||
| std::size_t & | hint | ||
| ) |
Calls the handler for up to one protocol message in the passed buffers.
If there is insufficient data to produce a complete protocol message, zero is returned for the number of bytes consumed.
| buffers | The buffer that contains the data we've received |
| handler | The handler that will be used to process the message |
| hint | If possible, a hint as to the amount of data to read next. The returned value MAY be zero, which means "no hint" |
Definition at line 336 of file ProtocolMessage.h.
| std::string ripple::to_string | ( | ProtocolVersion const & | p | ) |
Print a protocol version a human-readable string.
Definition at line 75 of file ProtocolVersion.cpp.
| std::vector< ProtocolVersion > ripple::parseProtocolVersions | ( | boost::beast::string_view const & | s | ) |
Parse a set of protocol versions.
Given a comma-separated string, extract and return all those that look like valid protocol versions (i.e. XRPL/2.0 and later). Strings that are not parseable as valid protocol strings are excluded from the result set.
Definition at line 81 of file ProtocolVersion.cpp.
| std::optional< ProtocolVersion > ripple::negotiateProtocolVersion | ( | std::vector< ProtocolVersion > const & | versions | ) |
Given a list of supported protocol versions, choose the one we prefer.
Definition at line 128 of file ProtocolVersion.cpp.
| std::optional< ProtocolVersion > ripple::negotiateProtocolVersion | ( | boost::beast::string_view const & | versions | ) |
Given a list of supported protocol versions, choose the one we prefer.
Definition at line 151 of file ProtocolVersion.cpp.
| std::string const & ripple::supportedProtocolVersions | ( | ) |
The list of all the protocol versions we support.
Definition at line 159 of file ProtocolVersion.cpp.
| bool ripple::isProtocolSupported | ( | ProtocolVersion const & | v | ) |
Determine whether we support a specific protocol version.
Definition at line 177 of file ProtocolVersion.cpp.
|
constexpr |
Definition at line 41 of file ProtocolVersion.h.
| send_if_pred< Predicate > ripple::send_if | ( | std::shared_ptr< Message > const & | m, |
| Predicate const & | f | ||
| ) |
Helper function to aid in type deduction.
Definition at line 75 of file predicates.h.
| send_if_not_pred< Predicate > ripple::send_if_not | ( | std::shared_ptr< Message > const & | m, |
| Predicate const & | f | ||
| ) |
Helper function to aid in type deduction.
Definition at line 107 of file predicates.h.
| bool ripple::passwordUnrequiredOrSentCorrect | ( | Port const & | port, |
| Json::Value const & | params | ||
| ) |
| bool ripple::ipAllowed | ( | beast::IP::Address const & | remoteIp, |
| std::vector< boost::asio::ip::network_v4 > const & | nets4, | ||
| std::vector< boost::asio::ip::network_v6 > const & | nets6 | ||
| ) |
| bool ripple::isAdmin | ( | Port const & | port, |
| Json::Value const & | params, | ||
| beast::IP::Address const & | remoteIp | ||
| ) |
| Role ripple::requestRole | ( | Role const & | required, |
| Port const & | port, | ||
| Json::Value const & | params, | ||
| beast::IP::Endpoint const & | remoteIp, | ||
| std::string_view | user | ||
| ) |
Return the allowed privilege role.
params must meet the requirements of the JSON-RPC specification. It must be of type Object, containing the key params which is an array with at least one object. Inside this object are the optional keys 'admin_user' and 'admin_password' used to validate the credentials. If user is non-blank, it's username passed in the HTTP header by a secure_gateway proxy.
| bool ripple::isUnlimited | ( | Role const & | role | ) |
| bool ripple::isUnlimited | ( | Role const & | required, |
| Port const & | port, | ||
| Json::Value const & | params, | ||
| beast::IP::Endpoint const & | remoteIp, | ||
| std::string const & | user | ||
| ) |
| Resource::Consumer ripple::requestInboundEndpoint | ( | Resource::Manager & | manager, |
| beast::IP::Endpoint const & | remoteAddress, | ||
| Role const & | role, | ||
| std::string_view | user, | ||
| std::string_view | forwardedFor | ||
| ) |
|
static |
| std::string_view ripple::forwardedFor | ( | http_request_type const & | request | ) |
| std::string ripple::createHTTPPost | ( | std::string const & | strHost, |
| std::string const & | strPath, | ||
| std::string const & | strMsg, | ||
| std::unordered_map< std::string, std::string > const & | mapRequestHeaders | ||
| ) |
Definition at line 62 of file RPCCall.cpp.
| std::string ripple::JSONRPCRequest | ( | std::string const & | strMethod, |
| Json::Value const & | params, | ||
| Json::Value const & | id | ||
| ) |
Definition at line 1349 of file RPCCall.cpp.
| Json::Value ripple::rpcCmdToJson | ( | std::vector< std::string > const & | args, |
| Json::Value & | retParams, | ||
| unsigned int | apiVersion, | ||
| beast::Journal | j | ||
| ) |
Definition at line 1451 of file RPCCall.cpp.
| std::pair< int, Json::Value > ripple::rpcClient | ( | std::vector< std::string > const & | args, |
| Config const & | config, | ||
| Logs & | logs, | ||
| unsigned int | apiVersion, | ||
| std::unordered_map< std::string, std::string > const & | headers = {} |
||
| ) |
Internal invocation of RPC client.
Used by both rippled command line as well as rippled unit tests
Definition at line 1492 of file RPCCall.cpp.
| std::shared_ptr< RPCSub > ripple::make_RPCSub | ( | InfoSub::Source & | source, |
| boost::asio::io_context & | io_context, | ||
| JobQueue & | jobQueue, | ||
| std::string const & | strUrl, | ||
| std::string const & | strUsername, | ||
| std::string const & | strPassword, | ||
| Logs & | logs | ||
| ) |
Definition at line 208 of file RPCSub.cpp.
|
static |
Definition at line 58 of file ServerHandler.cpp.
|
static |
Definition at line 66 of file ServerHandler.cpp.
|
static |
Definition at line 86 of file ServerHandler.cpp.
|
static |
Definition at line 258 of file ServerHandler.cpp.
|
static |
Definition at line 266 of file ServerHandler.cpp.
|
static |
Definition at line 284 of file ServerHandler.cpp.
| void ripple::logDuration | ( | Json::Value const & | request, |
| T const & | duration, | ||
| beast::Journal & | journal | ||
| ) |
Definition at line 405 of file ServerHandler.cpp.
|
static |
Definition at line 597 of file ServerHandler.cpp.
|
static |
Definition at line 1104 of file ServerHandler.cpp.
|
static |
Definition at line 1150 of file ServerHandler.cpp.
|
static |
Definition at line 1221 of file ServerHandler.cpp.
|
static |
Definition at line 1245 of file ServerHandler.cpp.
| ServerHandler::Setup ripple::setup_ServerHandler | ( | Config const & | config, |
| std::ostream && | log | ||
| ) |
Definition at line 1260 of file ServerHandler.cpp.
| std::unique_ptr< ServerHandler > ripple::make_ServerHandler | ( | Application & | app, |
| boost::asio::io_context & | io_context, | ||
| JobQueue & | jobQueue, | ||
| NetworkOPs & | networkOPs, | ||
| Resource::Manager & | resourceManager, | ||
| CollectorManager & | cm | ||
| ) |
Definition at line 1272 of file ServerHandler.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > ripple::doLedgerGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > & | context | ) |
Definition at line 100 of file LedgerHandler.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > ripple::doLedgerEntryGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > & | context | ) |
Definition at line 837 of file LedgerEntry.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > ripple::doLedgerDataGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > & | context | ) |
Definition at line 136 of file LedgerData.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > ripple::doLedgerDiffGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > & | context | ) |
Definition at line 6 of file LedgerDiff.cpp.
| void ripple::addChannel | ( | Json::Value & | jsonLines, |
| SLE const & | line | ||
| ) |
Definition at line 35 of file AccountChannels.cpp.
| Json::Value ripple::doAccountChannels | ( | RPC::JsonContext & | context | ) |
Definition at line 68 of file AccountChannels.cpp.
| Json::Value ripple::doAccountCurrencies | ( | RPC::JsonContext & | context | ) |
Definition at line 32 of file AccountCurrenciesHandler.cpp.
| Json::Value ripple::doAccountInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 50 of file AccountInfo.cpp.
| void ripple::addLine | ( | Json::Value & | jsonLines, |
| RPCTrustLine const & | line | ||
| ) |
Definition at line 34 of file AccountLines.cpp.
| Json::Value ripple::doAccountLines | ( | RPC::JsonContext & | context | ) |
Definition at line 81 of file AccountLines.cpp.
| Json::Value ripple::doAccountNFTs | ( | RPC::JsonContext & | context | ) |
General RPC command that can retrieve objects in the account root.
{ account: <account> ledger_hash: <string> // optional ledger_index: <string | unsigned integer> // optional type: <string> // optional, defaults to all account objects types limit: <integer> // optional marker: <opaque> // optional, resume previous query }
Definition at line 50 of file AccountObjects.cpp.
| Json::Value ripple::doAccountObjects | ( | RPC::JsonContext & | context | ) |
Definition at line 181 of file AccountObjects.cpp.
| void ripple::appendOfferJson | ( | std::shared_ptr< SLE const > const & | offer, |
| Json::Value & | offers | ||
| ) |
Definition at line 35 of file AccountOffers.cpp.
| Json::Value ripple::doAccountOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 57 of file AccountOffers.cpp.
| std::variant< std::optional< LedgerSpecifier >, Json::Value > ripple::parseLedgerArgs | ( | RPC::Context & | context, |
| Json::Value const & | params | ||
| ) |
Definition at line 54 of file AccountTx.cpp.
| std::variant< LedgerRange, RPC::Status > ripple::getLedgerRange | ( | RPC::Context & | context, |
| std::optional< LedgerSpecifier > const & | ledgerSpecifier | ||
| ) |
Definition at line 133 of file AccountTx.cpp.
| std::pair< AccountTxResult, RPC::Status > ripple::doAccountTxHelp | ( | RPC::Context & | context, |
| AccountTxArgs const & | args | ||
| ) |
Definition at line 216 of file AccountTx.cpp.
| Json::Value ripple::populateJsonResponse | ( | std::pair< AccountTxResult, RPC::Status > const & | res, |
| AccountTxArgs const & | args, | ||
| RPC::JsonContext const & | context | ||
| ) |
Definition at line 285 of file AccountTx.cpp.
| Json::Value ripple::doAccountTxJson | ( | RPC::JsonContext & | context | ) |
Definition at line 410 of file AccountTx.cpp.
| std::optional< AccountID > ripple::getAccount | ( | Json::Value const & | v, |
| Json::Value & | result | ||
| ) |
Definition at line 35 of file AMMInfo.cpp.
| Expected< Issue, error_code_i > ripple::getIssue | ( | Json::Value const & | v, |
| beast::Journal | j | ||
| ) |
Definition at line 51 of file AMMInfo.cpp.
| std::string ripple::to_iso8601 | ( | NetClock::time_point | tp | ) |
Definition at line 65 of file AMMInfo.cpp.
| Json::Value ripple::doAMMInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 76 of file AMMInfo.cpp.
| Json::Value ripple::doBlackList | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file BlackList.cpp.
| Json::Value ripple::doBookOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 37 of file BookOffers.cpp.
| Json::Value ripple::doBookChanges | ( | RPC::JsonContext & | context | ) |
Definition at line 222 of file BookOffers.cpp.
| Json::Value ripple::doCanDelete | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file CanDelete.cpp.
| Json::Value ripple::doConnect | ( | RPC::JsonContext & | context | ) |
Definition at line 39 of file Connect.cpp.
| Json::Value ripple::doConsensusInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file ConsensusInfo.cpp.
| Json::Value ripple::doDepositAuthorized | ( | RPC::JsonContext & | context | ) |
Definition at line 41 of file DepositAuthorized.cpp.
| Json::Value ripple::doManifest | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file DoManifest.cpp.
| Json::Value ripple::doFeature | ( | RPC::JsonContext & | context | ) |
Definition at line 36 of file Feature1.cpp.
| Json::Value ripple::doFee | ( | RPC::JsonContext & | context | ) |
| Json::Value ripple::doFetchInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file FetchInfo.cpp.
| Json::Value ripple::doGatewayBalances | ( | RPC::JsonContext & | context | ) |
Definition at line 54 of file GatewayBalances.cpp.
|
static |
Calls callback "f" on the ledger-object sle and up to three previous metadata objects.
Stops early if the callback returns true.
Definition at line 45 of file GetAggregatePrice.cpp.
|
static |
Definition at line 121 of file GetAggregatePrice.cpp.
| Json::Value ripple::doGetAggregatePrice | ( | RPC::JsonContext & | context | ) |
oracles: array of {account, oracle_document_id} base_asset: is the asset to be priced quote_asset: is the denomination in which the prices are expressed trim : percentage of outliers to trim [optional] time_threshold : defines a range of prices to include based on the timestamp range - {most recent, most recent - time_threshold} [optional]
Definition at line 153 of file GetAggregatePrice.cpp.
|
static |
Definition at line 37 of file GetCounts.cpp.
| Json::Value ripple::getCountsJson | ( | Application & | app, |
| int | minObjectCount | ||
| ) |
Definition at line 62 of file GetCounts.cpp.
| Json::Value ripple::doGetCounts | ( | RPC::JsonContext & | context | ) |
Definition at line 138 of file GetCounts.cpp.
| Json::Value ripple::doChannelAuthorize | ( | RPC::JsonContext & | context | ) |
Definition at line 42 of file PayChanClaim.cpp.
| Json::Value ripple::doChannelVerify | ( | RPC::JsonContext & | context | ) |
Definition at line 113 of file PayChanClaim.cpp.
| Json::Value ripple::doLedgerAccept | ( | RPC::JsonContext & | context | ) |
Definition at line 34 of file LedgerAccept.cpp.
| Json::Value ripple::doLedgerCleaner | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file LedgerCleanerHandler.cpp.
| Json::Value ripple::doLedgerClosed | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file LedgerClosed.cpp.
| Json::Value ripple::doLedgerCurrent | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file LedgerCurrent.cpp.
| Json::Value ripple::doLedgerData | ( | RPC::JsonContext & | context | ) |
Definition at line 46 of file LedgerData.cpp.
| Json::Value ripple::doLedgerEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 701 of file LedgerEntry.cpp.
| Json::Value ripple::doLedgerHeader | ( | RPC::JsonContext & | context | ) |
Definition at line 34 of file xrpld/rpc/handlers/LedgerHeader.cpp.
| Json::Value ripple::doLedgerRequest | ( | RPC::JsonContext & | context | ) |
Definition at line 36 of file LedgerRequest.cpp.
| Json::Value ripple::doLogLevel | ( | RPC::JsonContext & | context | ) |
Definition at line 34 of file LogLevel.cpp.
| Json::Value ripple::doLogRotate | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file LogRotate.cpp.
| Json::Value ripple::doNFTBuyOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 165 of file NFTOffers.cpp.
| Json::Value ripple::doNFTSellOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 151 of file NFTOffers.cpp.
| Json::Value ripple::doNoRippleCheck | ( | RPC::JsonContext & | context | ) |
Definition at line 62 of file NoRippleCheck.cpp.
| Json::Value ripple::doOwnerInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file OwnerInfo.cpp.
| Json::Value ripple::doPathFind | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file PathFind.cpp.
| Json::Value ripple::doPause | ( | RPC::JsonContext & | ) |
| Json::Value ripple::doPeers | ( | RPC::JsonContext & | context | ) |
| Json::Value ripple::doPing | ( | RPC::JsonContext & | context | ) |
| Json::Value ripple::doPrint | ( | RPC::JsonContext & | context | ) |
| Json::Value ripple::doRandom | ( | RPC::JsonContext & | context | ) |
Definition at line 39 of file Random.cpp.
| Json::Value ripple::doResume | ( | RPC::JsonContext & | ) |
| Json::Value ripple::doPeerReservationsAdd | ( | RPC::JsonContext & | context | ) |
Definition at line 36 of file Reservations.cpp.
| Json::Value ripple::doPeerReservationsDel | ( | RPC::JsonContext & | context | ) |
Definition at line 89 of file Reservations.cpp.
| Json::Value ripple::doPeerReservationsList | ( | RPC::JsonContext & | context | ) |
Definition at line 116 of file Reservations.cpp.
| Json::Value ripple::doRipplePathFind | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file RipplePathFind.cpp.
| Json::Value ripple::doServerDefinitions | ( | RPC::JsonContext & | context | ) |
Definition at line 298 of file ServerDefinitions.cpp.
| Json::Value ripple::doServerInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 31 of file ServerInfo.cpp.
| Json::Value ripple::doServerState | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file ServerState.cpp.
| Json::Value ripple::doSign | ( | RPC::JsonContext & | context | ) |
Definition at line 34 of file SignHandler.cpp.
| Json::Value ripple::doSignFor | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file SignFor.cpp.
| Json::Value ripple::doSimulate | ( | RPC::JsonContext & | context | ) |
Definition at line 320 of file Simulate.cpp.
| Json::Value ripple::doStop | ( | RPC::JsonContext & | context | ) |
| Json::Value ripple::doSubmit | ( | RPC::JsonContext & | context | ) |
Definition at line 45 of file Submit.cpp.
| Json::Value ripple::doSubmitMultiSigned | ( | RPC::JsonContext & | context | ) |
Definition at line 34 of file SubmitMultiSigned.cpp.
| Json::Value ripple::doSubscribe | ( | RPC::JsonContext & | context | ) |
Definition at line 38 of file Subscribe.cpp.
| Json::Value ripple::doTransactionEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 38 of file TransactionEntry.cpp.
| Json::Value ripple::doTxJson | ( | RPC::JsonContext & | context | ) |
| Json::Value ripple::doTxHistory | ( | RPC::JsonContext & | context | ) |
Definition at line 39 of file TxHistory.cpp.
| Json::Value ripple::doTxReduceRelay | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file TxReduceRelay.cpp.
| Json::Value ripple::doUnlList | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file UnlList.cpp.
| Json::Value ripple::doUnsubscribe | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file Unsubscribe.cpp.
| Json::Value ripple::doValidationCreate | ( | RPC::JsonContext & | context | ) |
Definition at line 45 of file ValidationCreate.cpp.
| Json::Value ripple::doWalletPropose | ( | RPC::JsonContext & | context | ) |
Definition at line 68 of file WalletPropose.cpp.
| Json::Value ripple::doValidators | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file Validators.cpp.
| Json::Value ripple::doValidatorListSites | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file ValidatorListSites.cpp.
| Json::Value ripple::doValidatorInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 31 of file ValidatorInfo.cpp.
| Json::Value ripple::doVaultInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 79 of file VaultInfo.cpp.
|
static |
Definition at line 43 of file LedgerEntry.cpp.
|
static |
Definition at line 57 of file LedgerEntry.cpp.
|
static |
Definition at line 63 of file LedgerEntry.cpp.
|
static |
Definition at line 75 of file LedgerEntry.cpp.
|
static |
Definition at line 81 of file LedgerEntry.cpp.
|
static |
Definition at line 108 of file LedgerEntry.cpp.
|
static |
Definition at line 139 of file LedgerEntry.cpp.
|
static |
Definition at line 145 of file LedgerEntry.cpp.
|
static |
Definition at line 176 of file LedgerEntry.cpp.
|
static |
Definition at line 197 of file LedgerEntry.cpp.
|
static |
Definition at line 244 of file LedgerEntry.cpp.
|
static |
Definition at line 304 of file LedgerEntry.cpp.
|
static |
Definition at line 317 of file LedgerEntry.cpp.
|
static |
Definition at line 372 of file LedgerEntry.cpp.
|
static |
Definition at line 392 of file LedgerEntry.cpp.
|
static |
Definition at line 398 of file LedgerEntry.cpp.
|
static |
Definition at line 404 of file LedgerEntry.cpp.
|
static |
Definition at line 425 of file LedgerEntry.cpp.
|
static |
Definition at line 438 of file LedgerEntry.cpp.
|
static |
Definition at line 444 of file LedgerEntry.cpp.
|
static |
Definition at line 450 of file LedgerEntry.cpp.
|
static |
Definition at line 456 of file LedgerEntry.cpp.
|
static |
Definition at line 477 of file LedgerEntry.cpp.
|
static |
Definition at line 498 of file LedgerEntry.cpp.
|
static |
Definition at line 504 of file LedgerEntry.cpp.
|
static |
Definition at line 533 of file LedgerEntry.cpp.
|
static |
Definition at line 585 of file LedgerEntry.cpp.
|
static |
Definition at line 591 of file LedgerEntry.cpp.
|
static |
Definition at line 612 of file LedgerEntry.cpp.
|
static |
Definition at line 633 of file LedgerEntry.cpp.
|
static |
Definition at line 658 of file LedgerEntry.cpp.
|
static |
Definition at line 35 of file NFTOffers.cpp.
|
static |
Definition at line 63 of file NFTOffers.cpp.
|
static |
Definition at line 36 of file NoRippleCheck.cpp.
|
static |
Definition at line 41 of file Simulate.cpp.
|
static |
Definition at line 75 of file Simulate.cpp.
|
static |
Definition at line 130 of file Simulate.cpp.
|
static |
Definition at line 171 of file Simulate.cpp.
|
static |
Definition at line 233 of file Simulate.cpp.
|
static |
Definition at line 33 of file Submit.cpp.
|
static |
| std::pair< TxResult, RPC::Status > ripple::doTxHelp | ( | RPC::Context & | context, |
| TxArgs | args | ||
| ) |
| Json::Value ripple::populateJsonResponse | ( | std::pair< TxResult, RPC::Status > const & | res, |
| TxArgs const & | args, | ||
| RPC::JsonContext const & | context | ||
| ) |
|
static |
Definition at line 30 of file ValidationCreate.cpp.
|
static |
Definition at line 33 of file VaultInfo.cpp.
| double ripple::estimate_entropy | ( | std::string const & | input | ) |
Definition at line 39 of file WalletPropose.cpp.
| Json::Value ripple::walletPropose | ( | Json::Value const & | params | ) |
Definition at line 74 of file WalletPropose.cpp.
Definition at line 44 of file ServerHandler.h.
|
staticconstexpr |
Clock for measuring the network time.
The epoch is January 1, 2000
epoch_offset = date(2000-01-01) - date(1970-0-01) = days(10957) = seconds(946684800)
|
constexpr |
| constexpr struct ripple::open_ledger_t ripple::open_ledger |
| constexpr struct ripple::batch_view_t ripple::batch_view |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| std::array<keyletDesc<AccountID const&>, 6> const ripple::directAccountKeylets |
|
static |
Definition at line 82 of file LedgerHeader.h.
|
constexpr |
Protocol specific constants.
This information is, implicitly, part of the protocol.
Definition at line 41 of file Protocol.h.
|
constexpr |
Largest legal byte size of a transaction.
Definition at line 44 of file Protocol.h.
|
constexpr |
The maximum number of unfunded offers to delete at once.
Definition at line 47 of file Protocol.h.
|
constexpr |
The maximum number of expired offers to delete at once.
Definition at line 50 of file Protocol.h.
|
constexpr |
The maximum number of metadata entries allowed in one transaction.
Definition at line 53 of file Protocol.h.
|
constexpr |
The maximum number of entries per directory page.
Definition at line 56 of file Protocol.h.
|
constexpr |
The maximum number of pages allowed in a directory.
Made obsolete by fixDirectoryLimit amendment.
Definition at line 62 of file Protocol.h.
|
constexpr |
The maximum number of items in an NFT page.
Definition at line 65 of file Protocol.h.
|
constexpr |
The maximum number of owner directory entries for account to be deletable.
Definition at line 68 of file Protocol.h.
|
constexpr |
The maximum number of token offers that can be canceled at once.
Definition at line 71 of file Protocol.h.
|
constexpr |
The maximum number of offers in an offer directory for NFT to be burnable.
Definition at line 74 of file Protocol.h.
|
constexpr |
The maximum token transfer fee allowed.
Token transfer fees can range from 0% to 50% and are specified in tenths of a basis point; that is a value of 1000 represents a transfer fee of 1% and a value of 10000 represents a transfer fee of 10%.
Note that for extremely low transfer fees values, it is possible that the calculated fee will be 0.
Definition at line 85 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside an NFT.
Definition at line 88 of file Protocol.h.
|
constexpr |
The maximum length of a Data element inside a DID.
Definition at line 91 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside a DID.
Definition at line 94 of file Protocol.h.
|
constexpr |
The maximum length of an Attestation inside a DID.
Definition at line 97 of file Protocol.h.
|
constexpr |
The maximum length of a domain.
Definition at line 100 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside a Credential.
Definition at line 103 of file Protocol.h.
|
constexpr |
The maximum length of a CredentialType inside a Credential.
Definition at line 106 of file Protocol.h.
|
constexpr |
The maximum number of credentials can be passed in array.
Definition at line 109 of file Protocol.h.
|
constexpr |
The maximum number of credentials can be passed in array for permissioned domain.
Definition at line 113 of file Protocol.h.
|
constexpr |
The maximum length of MPTokenMetadata.
Definition at line 116 of file Protocol.h.
|
constexpr |
The maximum amount of MPTokenIssuance.
Definition at line 119 of file Protocol.h.
|
constexpr |
The maximum length of Data payload.
Definition at line 122 of file Protocol.h.
|
constexpr |
Vault withdrawal policies.
Definition at line 125 of file Protocol.h.
|
constexpr |
Default IOU scale factor for a Vault.
Definition at line 128 of file Protocol.h.
|
constexpr |
Maximum scale factor for a Vault.
The number is chosen to ensure that 1 IOU can be always converted to shares. 10^19 > maxMPTokenAmount (2^64-1) > 10^18
Definition at line 132 of file Protocol.h.
|
constexpr |
Maximum recursion depth for vault shares being put as an asset inside another vault; counted from 0.
Definition at line 136 of file Protocol.h.
|
constexpr |
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition at line 150 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside an Oracle.
Definition at line 153 of file Protocol.h.
|
constexpr |
The maximum length of a Provider inside an Oracle.
Definition at line 156 of file Protocol.h.
|
constexpr |
The maximum size of a data series array inside an Oracle.
Definition at line 159 of file Protocol.h.
|
constexpr |
The maximum length of a SymbolClass inside an Oracle.
Definition at line 162 of file Protocol.h.
|
constexpr |
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.
Definition at line 167 of file Protocol.h.
|
constexpr |
The maximum price scaling factor.
Definition at line 171 of file Protocol.h.
|
constexpr |
The maximum percentage of outliers to trim.
Definition at line 175 of file Protocol.h.
|
constexpr |
The maximum number of delegate permissions an account can grant.
Definition at line 179 of file Protocol.h.
|
constexpr |
The maximum number of transactions that can be in a batch.
Definition at line 182 of file Protocol.h.
| Rate const ripple::parityRate(QUALITY_ONE) |
A transfer rate signifying a 1:1 exchange.
|
static |
|
constexpr |
Definition at line 39 of file STValidation.h.
|
constexpr |
Definition at line 42 of file STValidation.h.
|
constexpr |
Configure the native currency.
Number of drops in the genesis account.
Definition at line 44 of file SystemParameters.h.
|
staticconstexpr |
The XRP ledger network's earliest allowed sequence.
Definition at line 70 of file SystemParameters.h.
|
staticconstexpr |
The XRP Ledger mainnet's earliest ledger with a FeeSettings object.
Only used in asserts and tests.
Definition at line 74 of file SystemParameters.h.
|
constexpr |
The minimum amount of support an amendment should have.
Definition at line 77 of file SystemParameters.h.
|
constexpr |
The minimum amount of time an amendment must hold a majority.
Definition at line 80 of file SystemParameters.h.
|
constexpr |
Transaction flags.
These flags are specified in a transaction's 'Flags' field and modify the behavior of that transaction.
There are two types of flags:
(1) Universal flags: these are flags which apply to, and are interpreted
the same way by, all transactions, except, perhaps,
to special pseudo-transactions.
(2) Tx-Specific flags: these are flags which are interpreted according
to the type of the transaction being executed.
That is, the same numerical flag value may have
different effects, depending on the transaction
being executed.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Number of drops per 1 XRP.
Definition at line 259 of file XRPAmount.h.
|
staticconstexpr |
Definition at line 37 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 38 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 39 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 40 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 41 of file SHAMapTreeNode.h.
|
constexpr |
Definition at line 175 of file Number.cpp.
|
static |
Definition at line 36 of file libxrpl/net/HTTPClient.cpp.
|
static |
Definition at line 104 of file AccountID.cpp.
|
static |
Definition at line 462 of file Feature.cpp.
|
staticconstexpr |
Definition at line 62 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 63 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 65 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 66 of file IOUAmount.cpp.
|
static |
Definition at line 40 of file SField.cpp.
| SField const ripple::sfHash(access, STI_UINT256, 257, "hash") | ( | access | , |
| STI_UINT256 | , | ||
| 257 | , | ||
| "hash" | |||
| ) |
| SField const ripple::sfIndex(access, STI_UINT256, 258, "index") | ( | access | , |
| STI_UINT256 | , | ||
| 258 | , | ||
| "index" | |||
| ) |
|
static |
Definition at line 71 of file STAmount.cpp.
|
static |
Definition at line 72 of file STAmount.cpp.
|
static |
Definition at line 73 of file STAmount.cpp.
|
staticconstexpr |
Definition at line 142 of file tokens.cpp.
|
staticconstexpr |
Definition at line 145 of file tokens.cpp.
|
static |
Definition at line 523 of file SHAMap.cpp.
|
constexpr |
Definition at line 74 of file InboundLedger.cpp.
|
staticconstexpr |
Definition at line 62 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 65 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 68 of file LedgerMaster.cpp.
|
constexpr |
Definition at line 34 of file TransactionAcquire.cpp.
| create_genesis_t const ripple::create_genesis {} |
Definition at line 51 of file Ledger.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 27 of file src/xrpld/app/main/Tuning.h.
|
constexpr |
Definition at line 28 of file src/xrpld/app/main/Tuning.h.
|
constexpr |
Definition at line 30 of file src/xrpld/app/main/Tuning.h.
|
constexpr |
Definition at line 34 of file ValidatorSite.cpp.
|
constexpr |
Definition at line 35 of file ValidatorSite.cpp.
|
constexpr |
Definition at line 36 of file ValidatorSite.cpp.
|
static |
Definition at line 875 of file NetworkOPs.cpp.
|
static |
Definition at line 888 of file NetworkOPs.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 42 of file Escrow.cpp.
|
constexpr |
Definition at line 43 of file Escrow.cpp.
|
staticconstexpr |
Definition at line 53 of file MPTokenIssuanceSet.cpp.
|
static |
Definition at line 40 of file SetSignerList.cpp.
|
constexpr |
Definition at line 29 of file XChainBridge.h.
|
constexpr |
Possible ledger close time resolutions.
Values should not be duplicated.
Definition at line 35 of file LedgerTiming.h.
|
constexpr |
Initial resolution of ledger close time.
Definition at line 44 of file LedgerTiming.h.
|
constexpr |
Close time resolution in genesis ledger.
Definition at line 47 of file LedgerTiming.h.
|
constexpr |
How often we increase the close time resolution (in numbers of ledgers)
Definition at line 50 of file LedgerTiming.h.
|
constexpr |
How often we decrease the close time resolution (in numbers of ledgers)
Definition at line 53 of file LedgerTiming.h.
|
constexpr |
Definition at line 113 of file Config.cpp.
| CheckpointersCollection ripple::checkpointers |
Definition at line 77 of file DatabaseCon.cpp.
|
static |
Definition at line 40 of file SociDB.cpp.
|
staticconstexpr |
Definition at line 141 of file Handshake.h.
|
staticconstexpr |
Definition at line 143 of file Handshake.h.
|
staticconstexpr |
Definition at line 145 of file Handshake.h.
|
staticconstexpr |
Definition at line 147 of file Handshake.h.
|
staticconstexpr |
Definition at line 148 of file Handshake.h.
|
staticconstexpr |
Definition at line 149 of file Handshake.h.
|
constexpr |
The list of protocol versions we speak and we prefer to use.
Definition at line 40 of file ProtocolVersion.cpp.
| std::unordered_map<protocol::MessageType, TrafficCount::category> const ripple::type_lookup |
Definition at line 25 of file TrafficCount.cpp.
|
constexpr |
|
constexpr |
Definition at line 607 of file ServerHandler.cpp.
|
constexpr |
Definition at line 608 of file ServerHandler.cpp.
|
constexpr |
Definition at line 609 of file ServerHandler.cpp.
|
constexpr |
Definition at line 610 of file ServerHandler.cpp.