|
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 | directory |
| namespace | InnerObjectFormatsUnitTestDetail |
| namespace | intr_ptr |
| namespace | jss |
| namespace | keylet |
| Keylet computation functions. | |
| namespace | ledger_trie_detail |
| namespace | LedgerEntryHelpers |
| namespace | LedgerReplayParameters |
| namespace | Lending |
| 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 | LoanBrokerCoverClawback |
| class | LoanBrokerCoverDeposit |
| class | LoanBrokerCoverWithdraw |
| class | LoanBrokerDelete |
| class | LoanBrokerSet |
| class | LoanDelete |
| class | LoanManage |
| class | LoanPay |
| struct | LoanPaymentParts |
| struct | LoanProperties |
| class | LoanSet |
| struct | LoanState |
| This structure captures the parts of a loan state. More... | |
| 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 | NoModifiedUnmodifiableFields |
| Invariants: Some fields are unmodifiable. 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 | ValidLoan |
| Invariants: Loans are internally consistent. More... | |
| class | ValidLoanBroker |
| Invariants: Loan brokers are internally consistent. 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 consistent properties. More... | |
| class | ValidVault |
| 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 | IsArithmeticNumber |
| concept | IsArithmeticValueUnit |
| concept | IsArithmeticST |
| concept | IsArithmetic |
| concept | Addable |
| concept | IsArithmeticCompatible |
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 | semaphore = basic_semaphore< std::mutex, std::condition_variable > |
| using | JobCounter = ClosureCounter< void > |
| using | CachedSLEs = TaggedCache< uint256, SLE const > |
| using | majorityAmendments_t = std::map< uint256, NetClock::time_point > |
| using | MultiplePaymentDestinations = std::vector< std::pair< AccountID, Number > > |
| 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 | 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, NoModifiedUnmodifiableFields, ValidPseudoAccounts, ValidLoanBroker, ValidLoan, 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 | 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) |
| template<typename T > | |
| constexpr bool | isPowerOfTen (T value) |
| 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 | isDeepFrozen (ReadView const &view, AccountID const &account, Issue const &issue, int=0) |
| bool | isDeepFrozen (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue, int depth=0) |
| bool | isDeepFrozen (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 | checkDeepFrozen (ReadView const &view, AccountID const &account, Issue const &issue) |
| TER | checkDeepFrozen (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue) |
| TER | checkDeepFrozen (ReadView const &view, AccountID const &account, Asset const &asset) |
| 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 | accountSpendable (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer, FreezeHandling zeroIfFrozen, beast::Journal j) |
| STAmount | accountSpendable (ReadView const &view, AccountID const &account, Issue const &issue, FreezeHandling zeroIfFrozen, beast::Journal j) |
| STAmount | accountSpendable (ReadView const &view, AccountID const &account, MPTIssue const &mptIssue, FreezeHandling zeroIfFrozen, AuthHandling zeroIfUnauthorized, beast::Journal j) |
| STAmount | accountSpendable (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, SF_UINT64 const &node=sfOwnerNode) |
| 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::set< SField const * > const &pseudoFieldFilter={}) |
| std::vector< SField const * > const & | getPseudoAccountFields () |
| bool | isPseudoAccount (ReadView const &view, AccountID const &accountId, std::set< SField const * > const &pseudoFieldFilter={}) |
| TER | canAddHolding (ReadView const &view, Asset const &asset) |
| TER | checkDestinationAndTag (SLE::const_ref toSle, bool hasDestinationTag) |
| Validates that the destination SLE and tag are valid. | |
| TER | canWithdraw (AccountID const &from, ReadView const &view, AccountID const &to, SLE::const_ref toSle, bool hasDestinationTag) |
| Checks that can withdraw funds from an object to itself or a destination. | |
| TER | canWithdraw (AccountID const &from, ReadView const &view, AccountID const &to, bool hasDestinationTag) |
| Checks that can withdraw funds from an object to itself or a destination. | |
| TER | canWithdraw (ReadView const &view, STTx const &tx) |
| Checks that can withdraw funds from an object to itself or a destination. | |
| TER | doWithdraw (ApplyView &view, STTx const &tx, AccountID const &senderAcct, AccountID const &dstAcct, AccountID const &sourceAcct, XRPAmount priorBalance, STAmount const &amount, beast::Journal j) |
| 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 | accountSendMulti (ApplyView &view, AccountID const &senderID, Asset const &asset, MultiplePaymentDestinations const &receivers, beast::Journal j, WaiveTransferFee waiveFee=WaiveTransferFee::No) |
| Like accountSend, except one account is sending multiple payments (with the same asset!) simultaneously. | |
| 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 | canTransfer (ReadView const &view, Issue const &issue, AccountID const &from, AccountID const &to) |
| TER | canTransfer (ReadView const &view, Asset const &asset, AccountID const &from, AccountID const &to) |
| 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 () |
| xrpl::detail::TokenCodecErrcCategory const & | TokenCodecErrcCategory () |
| std::error_code | make_error_code (xrpl::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) |
| Bips32 constexpr | bipsPerUnity (100 *100) |
| There are 10,000 basis points (bips) in 100%. | |
| TenthBips32 constexpr | tenthBipsPerUnity (bipsPerUnity.value() *10) |
| constexpr Bips32 | percentageToBips (std::uint32_t percentage) |
| constexpr TenthBips32 | percentageToTenthBips (std::uint32_t percentage) |
| template<typename T , class TBips > | |
| constexpr T | bipsOfValue (T value, Bips< TBips > bips) |
| template<typename T , class TBips > | |
| constexpr T | tenthBipsOfValue (T value, TenthBips< TBips > bips) |
| 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) 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 (error_code_i 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) |
| STAmount | roundToScale (STAmount const &value, std::int32_t scale, Number::rounding_mode rounding=Number::getround()) |
| Round an arbitrary precision Amount to the precision of an STAmount that has a given exponent. | |
| template<AssetType A> | |
| Number | roundToAsset (A const &asset, Number const &value, std::int32_t scale, Number::rounding_mode rounding=Number::getround()) |
| Round an arbitrary precision Number to the precision of a given Asset. | |
| 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 SLE::const_pointer | getLineIfUsable (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer, FreezeHandling zeroIfFrozen, beast::Journal j) |
| static STAmount | getTrustLineBalance (ReadView const &view, SLE::const_ref sle, AccountID const &account, Currency const ¤cy, AccountID const &issuer, bool includeOppositeLimit, beast::Journal j) |
| 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 | rippleSendMultiIOU (ApplyView &view, AccountID const &senderID, Issue const &issue, MultiplePaymentDestinations const &receivers, STAmount &actual, 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 | accountSendMultiIOU (ApplyView &view, AccountID const &senderID, Issue const &issue, MultiplePaymentDestinations const &receivers, 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 | rippleSendMultiMPT (ApplyView &view, AccountID const &senderID, MPTIssue const &mptIssue, MultiplePaymentDestinations const &receivers, STAmount &actual, 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 TER | accountSendMultiMPT (ApplyView &view, AccountID const &senderID, MPTIssue const &mptIssue, MultiplePaymentDestinations const &receivers, 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 (xrpl::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) |
| Expected< void, std::string > | multiSignHelper (STObject const &sigObject, std::optional< AccountID > txnAccountID, 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, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AmendmentTable, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Check, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Clawback, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Discrepancy, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (FixNFTokenPageLinks, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Freeze, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LedgerLoad, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoadFeeTrack, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenBaseUtil, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenDisallowIncoming, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenWOMintOffer, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenWOModify, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenAllFeatures, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenAuth, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenBurn, app, xrpl, 3) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NFTokenDir, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (OfferStream, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SetRegularKey, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Ticket, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TrustAndBalance, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Apply, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (Vault, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (FileUtilities, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (hardened_hash, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (IOUAmount, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (KeyCache, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Number, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PerfLog, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (StringUtilities, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TaggedCache, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (XRPAmount, basics, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Config, core, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SociDB, core, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Workers, core, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ProtocolVersion, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (short_read, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (BuildInfo, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Hooks, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InnerObjectFormatsParsedJSON, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Issue, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Memo, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PublicKey, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Quality, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SecretKey, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Seed, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SeqProxy, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Serializer, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STAccount, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STAmount, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STInteger, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STNumber, protocol, xrpl) | |
| void | testCompile (std::ostream &out) |
| BEAST_DEFINE_TESTSUITE (STObject, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STParsedJSON, protocol, xrpl) | |
| bool | matches (char const *string, char const *regex) |
| Return true if the string loosely matches the regex. | |
| BEAST_DEFINE_TESTSUITE (STTx, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InnerObjectFormatsSerializer, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STValidation, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TER, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AccountCurrencies, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (AccountSet, rpc, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (AmendmentBlocked, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Connect, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Feature, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (GetCounts, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LedgerClosed, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (LedgerData, rpc, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (LedgerHeader, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NoRippleCheck, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (NoRippleCheckLimits, rpc, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (OwnerInfo, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Peers, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Transaction, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TransactionEntry, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TransactionHistory, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Version, rpc, xrpl) | |
| TEST_SUITE_BEGIN ("json_value") | |
| TEST_CASE ("limits") | |
| 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::Value with a description of the ledger. | |
| Json::Value | getJson (LedgerFill const &) |
| Return a new Json::Value representing the ledger with given options. | |
| void | copyFrom (Json::Value &to, Json::Value const &from) |
| Copy all the keys and values from one object into another. | |
| 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 (LedgerHeader 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 (LedgerHeader 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) |
| bool | checkLendingProtocolDependencies (PreflightContext const &ctx) |
| Number | loanPeriodicRate (TenthBips32 interestRate, std::uint32_t paymentInterval) |
| bool | isRounded (Asset const &asset, Number const &value, std::int32_t scale) |
| detail::LoanStateDeltas | operator- (LoanState const &lhs, LoanState const &rhs) |
| LoanState | operator- (LoanState const &lhs, detail::LoanStateDeltas const &rhs) |
| LoanState | operator+ (LoanState const &lhs, detail::LoanStateDeltas const &rhs) |
| TER | checkLoanGuards (Asset const &vaultAsset, Number const &principalRequested, bool expectInterest, std::uint32_t paymentTotal, LoanProperties const &properties, beast::Journal j) |
| Number | computeFullPaymentInterest (Number const &rawPrincipalOutstanding, Number const &periodicRate, NetClock::time_point parentCloseTime, std::uint32_t paymentInterval, std::uint32_t prevPaymentDate, std::uint32_t startDate, TenthBips32 closeInterestRate) |
| Number | computeFullPaymentInterest (Number const &periodicPayment, Number const &periodicRate, std::uint32_t paymentRemaining, NetClock::time_point parentCloseTime, std::uint32_t paymentInterval, std::uint32_t prevPaymentDate, std::uint32_t startDate, TenthBips32 closeInterestRate) |
| LoanState | computeRawLoanState (Number const &periodicPayment, Number const &periodicRate, std::uint32_t const paymentRemaining, TenthBips32 const managementFeeRate) |
| LoanState | computeRawLoanState (Number const &periodicPayment, TenthBips32 interestRate, std::uint32_t paymentInterval, std::uint32_t const paymentRemaining, TenthBips32 const managementFeeRate) |
| LoanState | constructLoanState (Number const &totalValueOutstanding, Number const &principalOutstanding, Number const &managementFeeOutstanding) |
| LoanState | constructRoundedLoanState (SLE::const_ref loan) |
| Number | computeManagementFee (Asset const &asset, Number const &value, TenthBips32 managementFeeRate, std::int32_t scale) |
| LoanProperties | computeLoanProperties (Asset const &asset, Number principalOutstanding, TenthBips32 interestRate, std::uint32_t paymentInterval, std::uint32_t paymentsRemaining, TenthBips32 managementFeeRate, std::int32_t minimumScale) |
| Expected< LoanPaymentParts, TER > | loanMakePayment (Asset const &asset, ApplyView &view, SLE::ref loan, SLE::const_ref brokerSle, STAmount const &amount, LoanPaymentType const paymentType, 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) |
| Number | roundPeriodicPayment (Asset const &asset, Number const &periodicPayment, std::int32_t scale) |
| Ensure the periodic payment is always rounded consistently. | |
| template<class NumberProxy > | |
| void | adjustImpreciseNumber (NumberProxy value, Number const &adjustment, Asset const &asset, int vaultScale) |
| int | getVaultScale (SLE::const_ref vaultSle) |
| 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 | |
| Expected< uint256, TER > | determineBrokerID (ReadView const &view, STTx const &tx) |
| Expected< Asset, TER > | determineAsset (ReadView const &view, AccountID const &account, AccountID const &brokerPseudoAccountID, STAmount const &amount) |
| Expected< STAmount, TER > | determineClawAmount (SLE const &sleBroker, Asset const &vaultAsset, std::optional< STAmount > const &amount) |
| template<ValidIssueType T> | |
| static TER | preclaimHelper (PreclaimContext const &ctx, SLE const &sleIssuer, STAmount const &clawAmount) |
| template<> | |
| TER | preclaimHelper< Issue > (PreclaimContext const &ctx, SLE const &sleIssuer, STAmount const &clawAmount) |
| template<> | |
| TER | preclaimHelper< MPTIssue > (PreclaimContext const &ctx, SLE const &sleIssuer, STAmount const &clawAmount) |
| static Number | owedToVault (SLE::ref loanSle) |
| static std::uint32_t | getStartDate (ReadView const &view) |
| 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) |
| STAmount | clawbackAmount (std::shared_ptr< SLE const > const &vault, std::optional< STAmount > const &maybeAmount, AccountID const &account) |
| 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) |
| void | injectSLE (Json::Value &jv, SLE const &sle) |
| Injects JSON describing a ledger entry. | |
| 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. | |
| bool | getAccountObjects (ReadView const &ledger, AccountID const &account, std::optional< std::vector< LedgerEntryType > > const &typeFilter, uint256 dirIndex, uint256 entryIndex, std::uint32_t const limit, Json::Value &jvResult) |
| Gathers all objects for an account in a ledger. | |
| 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) |
| 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 > | parseLoanBroker (Json::Value const ¶ms, Json::StaticString const fieldName) |
| static Expected< uint256, Json::Value > | parseLoan (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() |
| static constexpr Number | numZero {} |
| constexpr struct xrpl::open_ledger_t | open_ledger |
| constexpr struct xrpl::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 std::uint32_t const | tfLoanOverpayment = 0x00010000 |
| constexpr std::uint32_t const | tfLoanFullPayment = 0x00020000 |
| constexpr std::uint32_t const | tfLoanLatePayment = 0x00040000 |
| constexpr std::uint32_t const | tfLoanSetMask |
| constexpr std::uint32_t const | tfLoanPayMask |
| constexpr std::uint32_t const | tfLoanDefault = 0x00010000 |
| constexpr std::uint32_t const | tfLoanImpair = 0x00020000 |
| constexpr std::uint32_t const | tfLoanUnimpair = 0x00040000 |
| constexpr std::uint32_t const | tfLoanManageMask = ~(tfUniversal | tfLoanDefault | tfLoanImpair | tfLoanUnimpair) |
| 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 constexpr std::uint32_t | secondsInYear = 365 * 24 * 60 * 60 |
| 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 | maximumMessageSize = 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.
Callback for filtering SHAMap during sync.
TODO: Remove xrpl::basic_semaphore (and this file) and use std::counting_semaphore.
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 xrpl::uint128 = typedef base_uint<128> |
Definition at line 537 of file base_uint.h.
| using xrpl::uint160 = typedef base_uint<160> |
Definition at line 538 of file base_uint.h.
| using xrpl::uint256 = typedef base_uint<256> |
Definition at line 539 of file base_uint.h.
| using xrpl::uint192 = typedef base_uint<192> |
Definition at line 540 of file base_uint.h.
| using xrpl::IniFileSections = typedef std::unordered_map<std::string, std::vector<std::string> > |
Definition at line 17 of file BasicConfig.h.
| using xrpl::Blob = typedef std::vector<unsigned char> |
| using xrpl::days = typedef std::chrono::duration< int, std::ratio_multiply<std::chrono::hours::period, std::ratio<24> >> |
| using xrpl::weeks = typedef std::chrono:: duration<int, std::ratio_multiply<days::period, std::ratio<7> >> |
| using xrpl::Stopwatch = typedef beast::abstract_clock<std::chrono::steady_clock> |
| using xrpl::TestStopwatch = typedef beast::manual_clock<std::chrono::steady_clock> |
| using xrpl::KeyCache = typedef TaggedCache<uint256, int, true> |
Definition at line 9 of file KeyCache.h.
| using xrpl::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 26 of file RangeSet.h.
| using xrpl::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 51 of file RangeSet.h.
| using xrpl::hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 35 of file UnorderedContainers.h.
| using xrpl::hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 43 of file UnorderedContainers.h.
| using xrpl::hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 51 of file UnorderedContainers.h.
| using xrpl::hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 58 of file UnorderedContainers.h.
| using xrpl::strong_hash = typedef beast::xxhasher |
Definition at line 62 of file UnorderedContainers.h.
| using xrpl::hardened_hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 70 of file UnorderedContainers.h.
| using xrpl::hardened_partitioned_hash_map = typedef partitioned_unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 78 of file UnorderedContainers.h.
| using xrpl::hardened_hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 87 of file UnorderedContainers.h.
| using xrpl::hardened_hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 95 of file UnorderedContainers.h.
| using xrpl::hardened_hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 102 of file UnorderedContainers.h.
| using xrpl::semaphore = typedef basic_semaphore<std::mutex, std::condition_variable> |
Definition at line 88 of file semaphore.h.
| using xrpl::JobCounter = typedef ClosureCounter<void> |
| typedef TaggedCache< uint256, SLE const > xrpl::CachedSLEs |
Definition at line 9 of file CachedSLEs.h.
| using xrpl::majorityAmendments_t = typedef std::map<uint256, NetClock::time_point> |
| using xrpl::MultiplePaymentDestinations = typedef std::vector<std::pair<AccountID, Number> > |
| using xrpl::EntryDeleter = typedef std::function<std::pair<TER, SkipEntry>( LedgerEntryType, uint256 const&, std::shared_ptr<SLE>&)> |
| using xrpl::AccountID = typedef base_uint<160, detail::AccountIDTag> |
A 160-bit unsigned that uniquely identifies an account.
Definition at line 29 of file AccountID.h.
| using xrpl::Result = typedef boost::outcome_v2::result<T, std::error_code> |
Definition at line 18 of file b58_utils.h.
| using xrpl::ripemd160_hasher = typedef openssl_ripemd160_hasher |
| using xrpl::sha256_hasher = typedef openssl_sha256_hasher |
| using xrpl::sha512_hasher = typedef openssl_sha512_hasher |
| using xrpl::sha512_half_hasher = typedef detail::basic_sha512_half_hasher<false> |
| using xrpl::sha512_half_hasher_s = typedef detail::basic_sha512_half_hasher<true> |
| using xrpl::MultiApiJson = typedef detail:: MultiApiJson<RPC::apiMinimumSupportedVersion, RPC::apiMaximumValidVersion> |
Definition at line 217 of file MultiApiJson.h.
| using xrpl::LedgerIndex = typedef std::uint32_t |
A ledger index.
Definition at line 255 of file Protocol.h.
| using xrpl::TxID = typedef uint256 |
A transaction identifier.
The value is computed as the hash of the canonicalized, serialized transaction object.
Definition at line 261 of file Protocol.h.
| using xrpl::LedgerHash = typedef uint256 |
Definition at line 8 of file RippleLedgerHash.h.
| using xrpl::SF_UINT8 = typedef TypedField<STInteger<std::uint8_t> > |
| using xrpl::SF_UINT16 = typedef TypedField<STInteger<std::uint16_t> > |
| using xrpl::SF_UINT32 = typedef TypedField<STInteger<std::uint32_t> > |
| using xrpl::SF_UINT64 = typedef TypedField<STInteger<std::uint64_t> > |
| using xrpl::SF_UINT96 = typedef TypedField<STBitString<96> > |
| using xrpl::SF_UINT128 = typedef TypedField<STBitString<128> > |
| using xrpl::SF_UINT160 = typedef TypedField<STBitString<160> > |
| using xrpl::SF_UINT192 = typedef TypedField<STBitString<192> > |
| using xrpl::SF_UINT256 = typedef TypedField<STBitString<256> > |
| using xrpl::SF_UINT384 = typedef TypedField<STBitString<384> > |
| using xrpl::SF_UINT512 = typedef TypedField<STBitString<512> > |
| using xrpl::SF_INT32 = typedef TypedField<STInteger<std::int32_t> > |
| using xrpl::SF_INT64 = typedef TypedField<STInteger<std::int64_t> > |
| using xrpl::SF_ACCOUNT = typedef TypedField<STAccount> |
| using xrpl::SF_AMOUNT = typedef TypedField<STAmount> |
| using xrpl::SF_ISSUE = typedef TypedField<STIssue> |
| using xrpl::SF_CURRENCY = typedef TypedField<STCurrency> |
| using xrpl::SF_NUMBER = typedef TypedField<STNumber> |
| using xrpl::SF_VL = typedef TypedField<STBlob> |
| using xrpl::SF_VECTOR256 = typedef TypedField<STVector256> |
| using xrpl::SF_XCHAIN_BRIDGE = typedef TypedField<STXChainBridge> |
| using xrpl::STUInt128 = typedef STBitString<128> |
Definition at line 66 of file STBitString.h.
| using xrpl::STUInt160 = typedef STBitString<160> |
Definition at line 67 of file STBitString.h.
| using xrpl::STUInt192 = typedef STBitString<192> |
Definition at line 68 of file STBitString.h.
| using xrpl::STUInt256 = typedef STBitString<256> |
Definition at line 69 of file STBitString.h.
| using xrpl::STUInt8 = typedef STInteger<unsigned char> |
Definition at line 60 of file STInteger.h.
| using xrpl::STUInt16 = typedef STInteger<std::uint16_t> |
Definition at line 61 of file STInteger.h.
| using xrpl::STUInt32 = typedef STInteger<std::uint32_t> |
Definition at line 62 of file STInteger.h.
| using xrpl::STUInt64 = typedef STInteger<std::uint64_t> |
Definition at line 63 of file STInteger.h.
| using xrpl::STInt32 = typedef STInteger<std::int32_t> |
Definition at line 65 of file STInteger.h.
| typedef STLedgerEntry xrpl::SLE |
Definition at line 83 of file STLedgerEntry.h.
| using xrpl::TERUnderlyingType = typedef int |
| using xrpl::NotTEC = typedef TERSubset<CanCvtToNotTEC> |
| using xrpl::TER = typedef TERSubset<CanCvtToTER> |
| using xrpl::B58Result = typedef Expected<T, std::error_code> |
| using xrpl::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 34 of file UintTypes.h.
| using xrpl::Currency = typedef base_uint<160, detail::CurrencyTag> |
Currency is a hash representing a specific currency.
Definition at line 37 of file UintTypes.h.
| using xrpl::NodeID = typedef base_uint<160, detail::NodeIDTag> |
NodeID is a 160-bit hash representing one node.
Definition at line 40 of file UintTypes.h.
| using xrpl::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 45 of file UintTypes.h.
| using xrpl::Domain = typedef base_uint<256> |
Domain is a 256-bit hash representing a specific domain.
Definition at line 48 of file UintTypes.h.
| using xrpl::FeeLevel = typedef unit::ValueUnit<unit::feelevelTag, T> |
| using xrpl::FeeLevel64 = typedef FeeLevel<std::uint64_t> |
| using xrpl::FeeLevelDouble = typedef FeeLevel<double> |
| using xrpl::Bips = typedef unit::ValueUnit<unit::BipsTag, T> |
| using xrpl::Bips16 = typedef Bips<std::uint16_t> |
| using xrpl::Bips32 = typedef Bips<std::uint32_t> |
| using xrpl::TenthBips = typedef unit::ValueUnit<unit::TenthBipsTag, T> |
| using xrpl::TenthBips16 = typedef TenthBips<std::uint16_t> |
| using xrpl::TenthBips32 = typedef TenthBips<std::uint32_t> |
| using xrpl::Endpoints = typedef std::unordered_map<std::string, boost::asio::ip::tcp::endpoint> |
Definition at line 21 of file ServerImpl.h.
| typedef boost::beast::http::request< boost::beast::http::dynamic_body > xrpl::http_request_type |
| typedef boost::beast::http::response< boost::beast::http::dynamic_body > xrpl::http_response_type |
| using xrpl::FullBelowCache = typedef detail::BasicFullBelowCache |
Definition at line 130 of file FullBelowCache.h.
| using xrpl::TreeNodeCache = typedef TaggedCache< uint256, SHAMapTreeNode, false, intr_ptr::SharedWeakUnionPtr<SHAMapTreeNode>, intr_ptr::SharedPtr<SHAMapTreeNode> > |
Definition at line 10 of file TreeNodeCache.h.
| using xrpl::const_iterator = typedef Dir::const_iterator |
| using xrpl::sha256_t = typedef unsigned_integer<256, std::size_t> |
Definition at line 145 of file hardened_hash_test.cpp.
| typedef Validations< RCLValidationsAdaptor > xrpl::RCLValidations |
Alias for RCL-specific instantiation of generic Validations.
Definition at line 222 of file RCLValidations.h.
| using xrpl::CachedLedger = typedef CachedView<Ledger> |
A ledger wrapped in a CachedView.
| using xrpl::OrderedTxs = typedef CanonicalTXSet |
Definition at line 27 of file OpenLedger.h.
| using xrpl::NodeCache = typedef TaggedCache<SHAMapHash, Blob> |
Definition at line 87 of file Application.h.
| using xrpl::CheckCancel = typedef CancelCheck |
Definition at line 27 of file CancelCheck.h.
| using xrpl::OfferCancel = typedef CancelOffer |
Definition at line 29 of file CancelOffer.h.
| using xrpl::CheckCash = typedef CashCheck |
Definition at line 27 of file CashCheck.h.
| using xrpl::EnableAmendment = typedef Change |
| using xrpl::SetFee = typedef Change |
| using xrpl::UNLModify = typedef Change |
| using xrpl::CheckCreate = typedef CreateCheck |
Definition at line 27 of file CreateCheck.h.
| using xrpl::OfferCreate = typedef CreateOffer |
Definition at line 79 of file CreateOffer.h.
| using xrpl::TicketCreate = typedef CreateTicket |
Definition at line 66 of file CreateTicket.h.
| using xrpl::AccountDelete = typedef DeleteAccount |
Definition at line 33 of file DeleteAccount.h.
| using xrpl::OracleDelete = typedef DeleteOracle |
Definition at line 43 of file DeleteOracle.h.
Definition at line 907 of file InvariantCheck.h.
| using xrpl::Offer = typedef TOffer<> |
| using xrpl::PaymentChannelCreate = typedef PayChanCreate |
Definition at line 30 of file src/xrpld/app/tx/detail/PayChan.h.
| using xrpl::PaymentChannelFund = typedef PayChanFund |
Definition at line 53 of file src/xrpld/app/tx/detail/PayChan.h.
| using xrpl::PaymentChannelClaim = typedef PayChanClaim |
Definition at line 82 of file src/xrpld/app/tx/detail/PayChan.h.
| using xrpl::AccountSet = typedef SetAccount |
Definition at line 38 of file SetAccount.h.
| using xrpl::OracleSet = typedef SetOracle |
Definition at line 36 of file SetOracle.h.
| using xrpl::SignerListSet = typedef SetSignerList |
Definition at line 80 of file SetSignerList.h.
| using xrpl::TrustSet = typedef SetTrust |
Definition at line 35 of file SetTrust.h.
| using xrpl::XChainModifyBridge = typedef BridgeModify |
Definition at line 55 of file XChainBridge.h.
| using xrpl::XChainAccountCreateCommit = typedef XChainCreateAccountCommit |
Definition at line 238 of file XChainBridge.h.
| using xrpl::socket_type = typedef boost::beast::tcp_stream |
Definition at line 22 of file Handshake.h.
| using xrpl::stream_type = typedef boost::beast::ssl_stream<socket_type> |
Definition at line 23 of file Handshake.h.
| using xrpl::request_type = typedef boost::beast::http::request<boost::beast::http::empty_body> |
Definition at line 24 of file Handshake.h.
| using xrpl::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 19 of file ProtocolVersion.h.
| using xrpl::TxnsData = typedef RelationalDatabase::AccountTxs |
Definition at line 24 of file AccountTx.cpp.
| using xrpl::TxnsDataBinary = typedef RelationalDatabase::MetaTxsList |
Definition at line 25 of file AccountTx.cpp.
| using xrpl::TxnDataBinary = typedef RelationalDatabase::txnMetaLedgerType |
Definition at line 26 of file AccountTx.cpp.
| using xrpl::AccountTxArgs = typedef RelationalDatabase::AccountTxArgs |
Definition at line 27 of file AccountTx.cpp.
| using xrpl::AccountTxResult = typedef RelationalDatabase::AccountTxResult |
Definition at line 28 of file AccountTx.cpp.
| using xrpl::LedgerShortcut = typedef RelationalDatabase::LedgerShortcut |
Definition at line 30 of file AccountTx.cpp.
| using xrpl::LedgerSpecifier = typedef RelationalDatabase::LedgerSpecifier |
Definition at line 31 of file AccountTx.cpp.
| using xrpl::Prices = typedef bimap< multiset_of<std::uint32_t, std::greater<std::uint32_t> >, multiset_of<STAmount> > |
Definition at line 18 of file GetAggregatePrice.cpp.
| using xrpl::FunctionType = typedef Expected<uint256, Json::Value> (*)( Json::Value const&, Json::StaticString const) |
Definition at line 720 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 22 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 32 of file IntrusiveRefCounts.h.
| enum xrpl::LogSeverity |
| enum xrpl::JobType |
| enum xrpl::ApplyFlags : std::uint32_t |
| Enumerator | |
|---|---|
| tapNONE | |
| tapFAIL_HARD | |
| tapRETRY | |
| tapUNLIMITED | |
| tapBATCH | |
| tapDRY_RUN | |
Definition at line 11 of file ApplyView.h.
|
strong |
|
strong |
| enum xrpl::FreezeHandling |
| enum xrpl::AuthHandling |
|
strong |
|
strong |
The types of node objects.
| Enumerator | |
|---|---|
| hotUNKNOWN | |
| hotLEDGER | |
| hotACCOUNT_NODE | |
| hotTRANSACTION_NODE | |
| hotDUMMY | |
Definition at line 13 of file NodeObject.h.
|
strong |
| Enumerator | |
|---|---|
| success | |
| inputTooLarge | |
| inputTooSmall | |
| badB58Character | |
| outputTooSmall | |
| mismatchedTokenType | |
| mismatchedChecksum | |
| invalidEncodingChar | |
| overflowAdd | |
| unknown | |
Definition at line 7 of file token_errors.h.
| enum xrpl::error_code_i |
Definition at line 21 of file ErrorCodes.h.
| enum xrpl::warning_code_i |
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 153 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. |
| batch | |
Definition at line 36 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 34 of file LedgerFormats.h.
Definition at line 104 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 20 of file Permissions.h.
| enum xrpl::Delegation |
| Enumerator | |
|---|---|
| delegable | |
| notDelegable | |
Definition at line 32 of file Permissions.h.
|
strong |
| Enumerator | |
|---|---|
| canonical | |
| fullyCanonical | |
Definition at line 175 of file PublicKey.h.
| enum xrpl::SOEStyle |
Kind of element in each entry of an SOTemplate.
| Enumerator | |
|---|---|
| soeINVALID | |
| soeREQUIRED | |
| soeOPTIONAL | |
| soeDEFAULT | |
Definition at line 14 of file SOTemplate.h.
| enum xrpl::SOETxMPTIssue |
Amount fields that can support MPT.
| Enumerator | |
|---|---|
| soeMPTNone | |
| soeMPTSupported | |
| soeMPTNotSupported | |
Definition at line 24 of file SOTemplate.h.
| enum xrpl::TxnSql : char |
| enum xrpl::TELcodes : TERUnderlyingType |
| enum xrpl::TEMcodes : TERUnderlyingType |
| enum xrpl::TEFcodes : TERUnderlyingType |
| enum xrpl::TERcodes : TERUnderlyingType |
| enum xrpl::TEScodes : TERUnderlyingType |
| enum xrpl::TECcodes : TERUnderlyingType |
|
strong |
| enum xrpl::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 37 of file TxFormats.h.
|
strong |
| Enumerator | |
|---|---|
| nonDstMismatch | |
| matchExceptDst | |
| match | |
Definition at line 237 of file XChainAttestations.h.
|
strong |
Describes the current state of a given SHAMap.
|
strong |
| Enumerator | |
|---|---|
| TRANSACTION | |
| STATE | |
| FREE | |
Definition at line 14 of file SHAMapMissingNode.h.
|
strong |
| Enumerator | |
|---|---|
| tnINNER | |
| tnTRANSACTION_NM | |
| tnTRANSACTION_MD | |
| tnACCOUNT_STATE | |
Definition at line 24 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 47 of file Indexes.cpp.
|
strong |
| Enumerator | |
|---|---|
| no | |
| yes | |
Definition at line 18 of file RCLValidations.h.
| anonymous enum |
| Enumerator | |
|---|---|
| peerCountStart | |
| peerCountAdd | |
| ledgerTimeoutRetriesMax | |
| ledgerBecomeAggressiveThreshold | |
| missingNodesFind | |
| reqNodesReply | |
| reqNodes | |
Definition at line 25 of file InboundLedger.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| startPeers | |
| setKeepRounds | |
Definition at line 17 of file InboundTransactions.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| NORM_TIMEOUTS | |
| MAX_TIMEOUTS | |
Definition at line 17 of file TransactionAcquire.cpp.
|
strong |
| Enumerator | |
|---|---|
| No | |
| Yes | |
Definition at line 32 of file AMMHelpers.h.
|
strong |
| Enumerator | |
|---|---|
| UNDEFINED | |
| BAD | |
| SAVED | |
| HELD | |
| TRUSTED | |
| PRIVATE1 | |
| PRIVATE2 | |
| PRIVATE3 | |
| PRIVATE4 | |
| PRIVATE5 | |
| PRIVATE6 | |
Definition at line 15 of file HashRouter.h.
|
strong |
| Enumerator | |
|---|---|
| regular | |
| late | |
| full | |
| overpayment | |
Definition at line 430 of file LendingHelpers.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 196 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 49 of file NetworkOPs.h.
| enum xrpl::TransStatus |
| Enumerator | |
|---|---|
| NEW | |
| INVALID | |
| INCLUDED | |
| CONFLICTED | |
| COMMITTED | |
| HELD | |
| REMOVED | |
| OBSOLETE | |
| INCOMPLETE | |
Definition at line 27 of file Transaction.h.
|
strong |
| Enumerator | |
|---|---|
| all | |
| some | |
| unknown | |
Definition at line 39 of file Transaction.h.
|
strong |
Definition at line 36 of file ValidatorList.h.
|
strong |
| Enumerator | |
|---|---|
| available | |
| expired | |
| unavailable | |
| revoked | |
Definition at line 68 of file ValidatorList.h.
|
strong |
|
strong |
|
strong |
| enum xrpl::OfferCrossing |
|
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 22 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 49 of file AMMWithdraw.h.
| enum xrpl::Privilege |
Definition at line 49 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 38 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 86 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 169 of file ConsensusTypes.h.
|
strong |
Status of validation we received.
Definition at line 150 of file Validations.h.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| ValidatorListPropagation | |
| ValidatorList2Propagation | |
| LedgerReplay | |
Definition at line 17 of file xrpld/overlay/Peer.h.
|
strong |
| void xrpl::generalized_set_intersection | ( | InputIter1 | first1, |
| InputIter1 | last1, | ||
| InputIter2 | first2, | ||
| InputIter2 | last2, | ||
| Action | action, | ||
| Comp | comp | ||
| ) |
Definition at line 17 of file algorithm.h.
| FwdIter1 xrpl::remove_if_intersect_or_match | ( | FwdIter1 | first1, |
| FwdIter1 | last1, | ||
| InputIter2 | first2, | ||
| InputIter2 | last2, | ||
| Pred | pred, | ||
| Comp | comp | ||
| ) |
Definition at line 55 of file algorithm.h.
| void xrpl::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 17 of file Archive.cpp.
| std::string xrpl::base64_encode | ( | std::uint8_t const * | data, |
| std::size_t | len | ||
| ) |
Definition at line 217 of file libxrpl/basics/base64.cpp.
| std::string xrpl::base64_encode | ( | std::string const & | s | ) |
| std::string xrpl::base64_decode | ( | std::string_view | data | ) |
Definition at line 226 of file libxrpl/basics/base64.cpp.
|
constexpr |
Definition at line 543 of file base_uint.h.
|
constexpr |
Definition at line 566 of file base_uint.h.
|
constexpr |
Definition at line 574 of file base_uint.h.
|
constexpr |
Definition at line 582 of file base_uint.h.
|
constexpr |
Definition at line 589 of file base_uint.h.
|
constexpr |
Definition at line 596 of file base_uint.h.
|
constexpr |
Definition at line 603 of file base_uint.h.
| std::string xrpl::to_string | ( | base_uint< Bits, Tag > const & | a | ) |
Definition at line 611 of file base_uint.h.
| std::string xrpl::to_short_string | ( | base_uint< Bits, Tag > const & | a | ) |
Definition at line 618 of file base_uint.h.
| std::ostream & xrpl::operator<< | ( | std::ostream & | out, |
| base_uint< Bits, Tag > const & | u | ||
| ) |
Definition at line 627 of file base_uint.h.
| std::size_t xrpl::extract | ( | uint256 const & | key | ) |
Definition at line 635 of file base_uint.h.
| bool xrpl::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 296 of file BasicConfig.h.
| bool xrpl::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 318 of file BasicConfig.h.
| T xrpl::get | ( | Section const & | section, |
| std::string const & | name, | ||
| T const & | defaultValue = T{} |
||
| ) |
Retrieve a key/value pair from a section.
Definition at line 336 of file BasicConfig.h.
| std::string xrpl::get | ( | Section const & | section, |
| std::string const & | name, | ||
| char const * | defaultValue | ||
| ) |
Definition at line 351 of file BasicConfig.h.
| bool xrpl::get_if_exists | ( | Section const & | section, |
| std::string const & | name, | ||
| T & | v | ||
| ) |
Definition at line 367 of file BasicConfig.h.
| bool xrpl::get_if_exists< bool > | ( | Section const & | section, |
| std::string const & | name, | ||
| bool & | v | ||
| ) |
Definition at line 373 of file BasicConfig.h.
|
constexprnoexcept |
Definition at line 8 of file ByteUtilities.h.
|
constexprnoexcept |
Definition at line 15 of file ByteUtilities.h.
| std::string xrpl::to_string | ( | date::sys_time< Duration > | tp | ) |
| std::string xrpl::to_string | ( | NetClock::time_point | tp | ) |
| std::string xrpl::to_string_iso | ( | date::sys_time< Duration > | tp | ) |
| std::string xrpl::to_string_iso | ( | NetClock::time_point | tp | ) |
| Stopwatch & xrpl::stopwatch | ( | ) |
| void xrpl::LogThrow | ( | std::string const & | title | ) |
Generates and logs a call stack.
Definition at line 12 of file libxrpl/basics/contract.cpp.
| void xrpl::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 29 of file contract.h.
| void xrpl::Throw | ( | Args &&... | args | ) |
Definition at line 37 of file contract.h.
|
noexcept |
Called when faulty logic causes a broken invariant.
Definition at line 18 of file libxrpl/basics/contract.cpp.
| xrpl::Unexpected | ( | E(&) | [N] | ) | -> Unexpected< E const * > |
| std::string xrpl::getFileContents | ( | boost::system::error_code & | ec, |
| boost::filesystem::path const & | sourcePath, | ||
| std::optional< std::size_t > | maxSize = std::nullopt |
||
| ) |
Definition at line 21 of file FileUtilities.cpp.
| void xrpl::writeFileContents | ( | boost::system::error_code & | ec, |
| boost::filesystem::path const & | destPath, | ||
| std::string const & | contents | ||
| ) |
Definition at line 62 of file FileUtilities.cpp.
| SharedIntrusive< TT > xrpl::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 448 of file IntrusivePointer.h.
| void xrpl::partialDestructorFinished | ( | T ** | o | ) |
Definition at line 460 of file IntrusiveRefCounts.h.
| Stream & xrpl::join | ( | Stream & | s, |
| Iter | iter, | ||
| Iter | end, | ||
| std::string const & | delimiter | ||
| ) |
| std::unique_ptr< beast::Journal::Sink > xrpl::setDebugLogSink | ( | std::unique_ptr< beast::Journal::Sink > | sink | ) |
| beast::Journal xrpl::debugLog | ( | ) |
| std::shared_ptr< boost::asio::ssl::context > xrpl::make_SSLContext | ( | std::string const & | cipherList | ) |
Create a self-signed SSL context that allows anonymous Diffie Hellman.
Definition at line 366 of file make_SSLContext.cpp.
| std::shared_ptr< boost::asio::ssl::context > xrpl::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 377 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 25 of file MathUtilities.h.
| std::optional< std::uint64_t > xrpl::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 13 of file libxrpl/basics/mulDiv.cpp.
| std::string xrpl::to_string | ( | Number const & | amount | ) |
Definition at line 524 of file Number.cpp.
|
constexpr |
Definition at line 621 of file Number.cpp.
Definition at line 644 of file Number.cpp.
Definition at line 709 of file Number.cpp.
Definition at line 749 of file Number.cpp.
|
static |
Definition at line 19 of file partitioned_unordered_map.h.
| std::size_t xrpl::extract | ( | std::string const & | key | ) |
Definition at line 26 of file partitioned_unordered_map.h.
| beast::xor_shift_engine & xrpl::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 46 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > xrpl::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 96 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value, Integral > xrpl::rand_int | ( | Integral | min, |
| Integral | max | ||
| ) |
Definition at line 108 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > xrpl::rand_int | ( | Engine & | engine, |
| Integral | max | ||
| ) |
Definition at line 117 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value, Integral > xrpl::rand_int | ( | Integral | max | ) |
Definition at line 124 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value &&detail::is_engine< Engine >::value, Integral > xrpl::rand_int | ( | Engine & | engine | ) |
Definition at line 133 of file include/xrpl/basics/random.h.
| std::enable_if_t< std::is_integral< Integral >::value, Integral > xrpl::rand_int | ( | ) |
Definition at line 140 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 > xrpl::rand_byte | ( | Engine & | engine | ) |
Return a random byte.
Definition at line 154 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 > xrpl::rand_byte | ( | ) |
Definition at line 167 of file include/xrpl/basics/random.h.
| bool xrpl::rand_bool | ( | Engine & | engine | ) |
Return a random boolean value.
Definition at line 177 of file include/xrpl/basics/random.h.
| bool xrpl::rand_bool | ( | ) |
Definition at line 183 of file include/xrpl/basics/random.h.
| ClosedInterval< T > xrpl::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 35 of file RangeSet.h.
| std::string xrpl::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 64 of file RangeSet.h.
| std::string xrpl::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 81 of file RangeSet.h.
| bool xrpl::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 105 of file RangeSet.h.
| std::optional< T > xrpl::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 164 of file RangeSet.h.
|
constexprnoexcept |
Definition at line 22 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 38 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 46 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 58 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 70 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 78 of file safe_cast.h.
| xrpl::scope_exit | ( | EF | ) | -> scope_exit< EF > |
| xrpl::scope_fail | ( | EF | ) | -> scope_fail< EF > |
| xrpl::scope_success | ( | EF | ) | -> scope_success< EF > |
| xrpl::scope_unlock | ( | std::unique_lock< Mutex > & | ) | -> scope_unlock< Mutex > |
| bool xrpl::operator!= | ( | SHAMapHash const & | x, |
| SHAMapHash const & | y | ||
| ) |
Definition at line 88 of file SHAMapHash.h.
| std::size_t xrpl::extract | ( | SHAMapHash const & | key | ) |
Definition at line 95 of file SHAMapHash.h.
| void xrpl::hash_append | ( | Hasher & | h, |
| Slice const & | v | ||
| ) |
| Stream & xrpl::operator<< | ( | Stream & | s, |
| Slice const & | v | ||
| ) |
| std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > xrpl::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 > xrpl::makeSlice | ( | std::vector< T, Alloc > const & | v | ) |
| Slice xrpl::makeSlice | ( | std::basic_string< char, Traits, Alloc > const & | s | ) |
| std::string xrpl::strHex | ( | FwdIt | begin, |
| FwdIt | end | ||
| ) |
| std::string xrpl::strHex | ( | T const & | from | ) |
| std::string xrpl::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 23 of file StringUtilities.cpp.
| std::optional< Blob > xrpl::strUnHex | ( | std::size_t | strSize, |
| Iterator | begin, | ||
| Iterator | end | ||
| ) |
Definition at line 32 of file StringUtilities.h.
| std::optional< Blob > xrpl::strUnHex | ( | std::string const & | strSrc | ) |
Definition at line 87 of file StringUtilities.h.
| std::optional< Blob > xrpl::strViewUnHex | ( | std::string_view | strSrc | ) |
Definition at line 93 of file StringUtilities.h.
| bool xrpl::parseUrl | ( | parsedURL & | pUrl, |
| std::string const & | strUrl | ||
| ) |
Definition at line 37 of file StringUtilities.cpp.
| std::string xrpl::trim_whitespace | ( | std::string | str | ) |
Definition at line 97 of file StringUtilities.cpp.
| std::optional< std::uint64_t > xrpl::to_uint64 | ( | std::string const & | s | ) |
Definition at line 104 of file StringUtilities.cpp.
| bool xrpl::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 113 of file StringUtilities.cpp.
| std::enable_if< std::is_arithmetic< T >::value, std::string >::type xrpl::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 17 of file ToString.h.
| std::string xrpl::to_string | ( | bool | b | ) |
Definition at line 23 of file ToString.h.
| std::string xrpl::to_string | ( | char | c | ) |
Definition at line 29 of file ToString.h.
| std::string xrpl::to_string | ( | std::string | s | ) |
Definition at line 35 of file ToString.h.
| std::string xrpl::to_string | ( | char const * | s | ) |
Definition at line 41 of file ToString.h.
| csprng_engine & xrpl::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 84 of file libxrpl/crypto/csprng.cpp.
| void xrpl::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 10 of file secure_erase.cpp.
|
constexpr |
Definition at line 34 of file ApplyView.h.
|
constexpr |
Definition at line 49 of file ApplyView.h.
|
constexpr |
Definition at line 60 of file ApplyView.h.
| ApplyFlags xrpl::operator|= | ( | ApplyFlags & | lhs, |
| ApplyFlags const & | rhs | ||
| ) |
Definition at line 71 of file ApplyView.h.
| ApplyFlags xrpl::operator&= | ( | ApplyFlags & | lhs, |
| ApplyFlags const & | rhs | ||
| ) |
Definition at line 78 of file ApplyView.h.
| TER xrpl::verifyValidDomain | ( | ApplyView & | view, |
| AccountID const & | account, | ||
| uint256 | domainID, | ||
| beast::Journal | j | ||
| ) |
Definition at line 304 of file CredentialHelpers.cpp.
| TER xrpl::verifyDepositPreauth | ( | STTx const & | tx, |
| ApplyView & | view, | ||
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| std::shared_ptr< SLE > const & | sleDst, | ||
| beast::Journal | j | ||
| ) |
Definition at line 342 of file CredentialHelpers.cpp.
| Rules xrpl::makeRulesGivenLedger | ( | DigestAwareReadView const & | ledger, |
| Rules const & | current | ||
| ) |
Definition at line 50 of file ReadView.cpp.
| Rules xrpl::makeRulesGivenLedger | ( | DigestAwareReadView const & | ledger, |
| std::unordered_set< uint256, beast::uhash<> > const & | presets | ||
| ) |
Definition at line 56 of file ReadView.cpp.
| bool xrpl::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 xrpl::isAnyFrozen | ( | ReadView const & | view, |
| std::initializer_list< AccountID > const & | accounts, | ||
| MPTIssue const & | mptIssue, | ||
| int | depth = 0 |
||
| ) |
| bool xrpl::isAnyFrozen | ( | ReadView const & | view, |
| std::initializer_list< AccountID > const & | accounts, | ||
| Issue const & | issue | ||
| ) |
| bool xrpl::isAnyFrozen | ( | ReadView const & | view, |
| std::initializer_list< AccountID > const & | accounts, | ||
| Asset const & | asset, | ||
| int | depth = 0 |
||
| ) |
| STAmount xrpl::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Currency const & | currency, | ||
| AccountID const & | issuer, | ||
| FreezeHandling | zeroIfFrozen, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Issue const & | issue, | ||
| FreezeHandling | zeroIfFrozen, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| MPTIssue const & | mptIssue, | ||
| FreezeHandling | zeroIfFrozen, | ||
| AuthHandling | zeroIfUnauthorized, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountHolds | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Asset const & | asset, | ||
| FreezeHandling | zeroIfFrozen, | ||
| AuthHandling | zeroIfUnauthorized, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountSpendable | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Currency const & | currency, | ||
| AccountID const & | issuer, | ||
| FreezeHandling | zeroIfFrozen, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountSpendable | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Issue const & | issue, | ||
| FreezeHandling | zeroIfFrozen, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountSpendable | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| MPTIssue const & | mptIssue, | ||
| FreezeHandling | zeroIfFrozen, | ||
| AuthHandling | zeroIfUnauthorized, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountSpendable | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| Asset const & | asset, | ||
| FreezeHandling | zeroIfFrozen, | ||
| AuthHandling | zeroIfUnauthorized, | ||
| beast::Journal | j | ||
| ) |
| STAmount xrpl::accountFunds | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| STAmount const & | saDefault, | ||
| FreezeHandling | freezeHandling, | ||
| beast::Journal | j | ||
| ) |
| XRPAmount xrpl::xrpLiquid | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| std::int32_t | ownerCountAdj, | ||
| beast::Journal | j | ||
| ) |
| void xrpl::forEachItem | ( | ReadView const & | view, |
| Keylet const & | root, | ||
| std::function< void(std::shared_ptr< SLE const > const &)> const & | f | ||
| ) |
| bool xrpl::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 xrpl::forEachItem | ( | ReadView const & | view, |
| AccountID const & | id, | ||
| std::function< void(std::shared_ptr< SLE const > const &)> const & | f | ||
| ) |
| bool xrpl::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 xrpl::getMajorityAmendments | ( | ReadView const & | view | ) |
| std::optional< uint256 > xrpl::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 xrpl::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 xrpl::areCompatible | ( | ReadView const & | validLedger, |
| ReadView const & | testLedger, | ||
| beast::Journal::Stream & | s, | ||
| char const * | reason | ||
| ) |
| bool xrpl::areCompatible | ( | uint256 const & | validHash, |
| LedgerIndex | validIndex, | ||
| ReadView const & | testLedger, | ||
| beast::Journal::Stream & | s, | ||
| char const * | reason | ||
| ) |
| void xrpl::adjustOwnerCount | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | sle, | ||
| std::int32_t | amount, | ||
| beast::Journal | j | ||
| ) |
| bool xrpl::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 xrpl::dirFirst | ( | ApplyView & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< SLE > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
| bool xrpl::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 xrpl::dirNext | ( | ApplyView & | view, |
| uint256 const & | root, | ||
| std::shared_ptr< SLE > & | page, | ||
| unsigned int & | index, | ||
| uint256 & | entry | ||
| ) |
| std::function< void(SLE::ref)> xrpl::describeOwnerDir | ( | AccountID const & | account | ) |
| Expected< std::shared_ptr< SLE >, TER > xrpl::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 xrpl::isPseudoAccount | ( | std::shared_ptr< SLE const > | sleAcct, |
| std::set< SField const * > const & | pseudoFieldFilter = {} |
||
| ) |
| std::vector< SField const * > const & xrpl::getPseudoAccountFields | ( | ) |
| TER xrpl::checkDestinationAndTag | ( | SLE::const_ref | toSle, |
| bool | hasDestinationTag | ||
| ) |
| TER xrpl::canWithdraw | ( | AccountID const & | from, |
| ReadView const & | view, | ||
| AccountID const & | to, | ||
| SLE::const_ref | toSle, | ||
| bool | hasDestinationTag | ||
| ) |
Checks that can withdraw funds from an object to itself or a destination.
The receiver may be either the submitting account (sfAccount) or a different destination account (sfDestination).
| TER xrpl::canWithdraw | ( | AccountID const & | from, |
| ReadView const & | view, | ||
| AccountID const & | to, | ||
| bool | hasDestinationTag | ||
| ) |
Checks that can withdraw funds from an object to itself or a destination.
The receiver may be either the submitting account (sfAccount) or a different destination account (sfDestination).
Checks that can withdraw funds from an object to itself or a destination.
The receiver may be either the submitting account (sfAccount) or a different destination account (sfDestination).
| TER xrpl::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 xrpl::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 xrpl::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 xrpl::removeEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| Issue const & | issue, | ||
| beast::Journal | journal | ||
| ) |
| TER xrpl::removeEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| MPTIssue const & | mptIssue, | ||
| beast::Journal | journal | ||
| ) |
| TER xrpl::removeEmptyHolding | ( | ApplyView & | view, |
| AccountID const & | accountID, | ||
| Asset const & | asset, | ||
| beast::Journal | journal | ||
| ) |
| TER xrpl::trustDelete | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | sleRippleState, | ||
| AccountID const & | uLowAccountID, | ||
| AccountID const & | uHighAccountID, | ||
| beast::Journal | j | ||
| ) |
| TER xrpl::offerDelete | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | sle, | ||
| beast::Journal | j | ||
| ) |
| TER xrpl::rippleLockEscrowMPT | ( | ApplyView & | view, |
| AccountID const & | uGrantorID, | ||
| STAmount const & | saAmount, | ||
| beast::Journal | j | ||
| ) |
| TER xrpl::accountSend | ( | ApplyView & | view, |
| AccountID const & | from, | ||
| AccountID const & | to, | ||
| STAmount const & | saAmount, | ||
| beast::Journal | j, | ||
| WaiveTransferFee | waiveFee = WaiveTransferFee::No |
||
| ) |
| TER xrpl::accountSendMulti | ( | ApplyView & | view, |
| AccountID const & | senderID, | ||
| Asset const & | asset, | ||
| MultiplePaymentDestinations const & | receivers, | ||
| beast::Journal | j, | ||
| WaiveTransferFee | waiveFee = WaiveTransferFee::No |
||
| ) |
| TER xrpl::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 xrpl::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. Vault and LoanBroker pseudo-accounts are implicitly 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 xrpl::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 xrpl::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 xrpl::deleteAMMTrustLine | ( | ApplyView & | view, |
| std::shared_ptr< SLE > | sleState, | ||
| std::optional< AccountID > const & | ammAccountID, | ||
| beast::Journal | j | ||
| ) |
| std::optional< STAmount > xrpl::assetsToSharesDeposit | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | assets | ||
| ) |
| std::optional< STAmount > xrpl::sharesToAssetsDeposit | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | shares | ||
| ) |
| std::optional< STAmount > xrpl::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 > xrpl::sharesToAssetsWithdraw | ( | std::shared_ptr< SLE const > const & | vault, |
| std::shared_ptr< SLE const > const & | issuance, | ||
| STAmount const & | shares | ||
| ) |
| bool xrpl::after | ( | NetClock::time_point | now, |
| std::uint32_t | mark | ||
| ) |
| void xrpl::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 19 of file RegisterSSLCerts.cpp.
| std::string xrpl::toBase58 | ( | AccountID const & | v | ) |
Convert AccountID to base58 checked string.
Definition at line 95 of file AccountID.cpp.
| std::optional< AccountID > xrpl::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Definition at line 105 of file AccountID.cpp.
| AccountID const & xrpl::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 159 of file AccountID.cpp.
| AccountID const & xrpl::noAccount | ( | ) |
A placeholder for empty accounts.
Definition at line 166 of file AccountID.cpp.
| bool xrpl::to_issuer | ( | AccountID & | issuer, |
| std::string const & | s | ||
| ) |
Convert hex or base58 string to AccountID.
true if the parsing was successful. Definition at line 173 of file AccountID.cpp.
| bool xrpl::isXRP | ( | AccountID const & | c | ) |
Definition at line 71 of file AccountID.h.
| std::string xrpl::to_string | ( | AccountID const & | account | ) |
Returns "", "XRP", or three letter ISO code.
Definition at line 78 of file AccountID.h.
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| AccountID const & | x | ||
| ) |
Definition at line 84 of file AccountID.h.
| void xrpl::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 88 of file AccountID.cpp.
Calculate Liquidity Provider Token (LPT) Currency.
Definition at line 24 of file AMMCore.cpp.
| Issue xrpl::ammLPTIssue | ( | Currency const & | cur1, |
| Currency const & | cur2, | ||
| AccountID const & | ammAccountID | ||
| ) |
Calculate LPT Issue from AMM asset pair.
Definition at line 38 of file AMMCore.cpp.
| NotTEC xrpl::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 76 of file AMMCore.cpp.
| NotTEC xrpl::invalidAMMAsset | ( | Issue const & | issue, |
| std::optional< std::pair< Issue, Issue > > const & | pair = std::nullopt |
||
| ) |
Definition at line 47 of file AMMCore.cpp.
| NotTEC xrpl::invalidAMMAssetPair | ( | Issue const & | issue1, |
| Issue const & | issue2, | ||
| std::optional< std::pair< Issue, Issue > > const & | pair = std::nullopt |
||
| ) |
Definition at line 61 of file AMMCore.cpp.
| std::optional< std::uint8_t > xrpl::ammAuctionTimeSlot | ( | std::uint64_t | current, |
| STObject const & | auctionSlot | ||
| ) |
Get time slot of the auction slot.
Definition at line 89 of file AMMCore.cpp.
| bool xrpl::ammEnabled | ( | Rules const & | rules | ) |
Return true if required AMM amendments are enabled.
Definition at line 110 of file AMMCore.cpp.
| Number xrpl::getFee | ( | std::uint16_t | tfee | ) |
| Number xrpl::feeMult | ( | std::uint16_t | tfee | ) |
| Number xrpl::feeMultHalf | ( | std::uint16_t | tfee | ) |
Definition at line 13 of file AmountConversions.h.
Definition at line 21 of file AmountConversions.h.
Definition at line 27 of file AmountConversions.h.
Definition at line 35 of file AmountConversions.h.
|
delete |
| STAmount xrpl::toAmount< STAmount > | ( | STAmount const & | amt | ) |
Definition at line 47 of file AmountConversions.h.
| IOUAmount xrpl::toAmount< IOUAmount > | ( | STAmount const & | amt | ) |
Definition at line 54 of file AmountConversions.h.
| XRPAmount xrpl::toAmount< XRPAmount > | ( | STAmount const & | amt | ) |
Definition at line 69 of file AmountConversions.h.
|
delete |
| IOUAmount xrpl::toAmount< IOUAmount > | ( | IOUAmount const & | amt | ) |
Definition at line 88 of file AmountConversions.h.
|
delete |
| XRPAmount xrpl::toAmount< XRPAmount > | ( | XRPAmount const & | amt | ) |
Definition at line 99 of file AmountConversions.h.
| T xrpl::toAmount | ( | Issue const & | issue, |
| Number const & | n, | ||
| Number::rounding_mode | mode = Number::getround() |
||
| ) |
Definition at line 107 of file AmountConversions.h.
| T xrpl::toMaxAmount | ( | Issue const & | issue | ) |
Definition at line 135 of file AmountConversions.h.
| STAmount xrpl::toSTAmount | ( | Issue const & | issue, |
| Number const & | n, | ||
| Number::rounding_mode | mode = Number::getround() |
||
| ) |
Definition at line 156 of file AmountConversions.h.
| Issue xrpl::getIssue | ( | T const & | amt | ) |
Definition at line 166 of file AmountConversions.h.
|
constexpr |
Definition at line 183 of file AmountConversions.h.
| void xrpl::forApiVersions | ( | Fn const & | fn, |
| Args &&... | args | ||
| ) |
Definition at line 136 of file ApiVersion.h.
| void xrpl::forAllApiVersions | ( | Fn const & | fn, |
| Args &&... | args | ||
| ) |
Definition at line 158 of file ApiVersion.h.
| Json::Value xrpl::to_json | ( | Asset const & | asset | ) |
|
constexpr |
| std::string xrpl::to_string | ( | Asset const & | asset | ) |
| bool xrpl::validJSONAsset | ( | Json::Value const & | jv | ) |
| Asset xrpl::assetFromJson | ( | Json::Value const & | jv | ) |
| void xrpl::serializeBatch | ( | Serializer & | msg, |
| std::uint32_t const & | flags, | ||
| std::vector< uint256 > const & | txids | ||
| ) |
Definition at line 8 of file include/xrpl/protocol/Batch.h.
| std::string xrpl::to_string | ( | Book const & | book | ) |
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| Book const & | x | ||
| ) |
| void xrpl::hash_append | ( | Hasher & | h, |
| Book const & | b | ||
| ) |
|
constexpr |
| secp256k1_context const * xrpl::secp256k1Context | ( | ) |
Definition at line 10 of file secp256k1.h.
| xrpl::detail::TokenCodecErrcCategory const & xrpl::TokenCodecErrcCategory | ( | ) |
Definition at line 71 of file token_errors.h.
| std::error_code xrpl::make_error_code | ( | xrpl::TokenCodecErrc | e | ) |
Definition at line 78 of file token_errors.h.
| sha512_half_hasher::result_type xrpl::sha512Half | ( | Args const &... | args | ) |
| sha512_half_hasher_s::result_type xrpl::sha512Half_s | ( | Args const &... | args | ) |
| std::string xrpl::rpcErrorString | ( | Json::Value const & | jv | ) |
Returns a single string with the contents of an RPC error.
Definition at line 222 of file ErrorCodes.cpp.
| std::map< std::string, AmendmentSupport > const & xrpl::allAmendments | ( | ) |
All amendments libxrpl knows about.
All amendments libxrpl knows of.
Definition at line 332 of file Feature.cpp.
| std::optional< uint256 > xrpl::getRegisteredFeature | ( | std::string const & | name | ) |
Definition at line 363 of file Feature.cpp.
| size_t xrpl::featureToBitsetIndex | ( | uint256 const & | f | ) |
Definition at line 390 of file Feature.cpp.
| uint256 xrpl::bitsetIndexToFeature | ( | size_t | i | ) |
Definition at line 396 of file Feature.cpp.
| std::string xrpl::featureToName | ( | uint256 const & | f | ) |
Definition at line 402 of file Feature.cpp.
| void xrpl::foreachFeature | ( | FeatureBitset | bs, |
| F && | f | ||
| ) |
|
noexcept |
Definition at line 76 of file HashPrefix.h.
Definition at line 98 of file Indexes.cpp.
Definition at line 123 of file Indexes.cpp.
| std::uint64_t xrpl::getQuality | ( | uint256 const & | uBase | ) |
Definition at line 131 of file Indexes.cpp.
| uint256 xrpl::getTicketIndex | ( | AccountID const & | account, |
| std::uint32_t | uSequence | ||
| ) |
Definition at line 138 of file Indexes.cpp.
Definition at line 145 of file Indexes.cpp.
| MPTID xrpl::makeMptID | ( | std::uint32_t | sequence, |
| AccountID const & | account | ||
| ) |
Definition at line 152 of file Indexes.cpp.
| std::string xrpl::to_string | ( | IOUAmount const & | amount | ) |
Definition at line 165 of file IOUAmount.cpp.
| IOUAmount xrpl::mulRatio | ( | IOUAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 171 of file IOUAmount.cpp.
| bool xrpl::getSTNumberSwitchover | ( | ) |
Definition at line 31 of file IOUAmount.cpp.
| void xrpl::setSTNumberSwitchover | ( | bool | v | ) |
Definition at line 37 of file IOUAmount.cpp.
| std::string xrpl::to_string | ( | Issue const & | ac | ) |
| Json::Value xrpl::to_json | ( | Issue const & | is | ) |
| Issue xrpl::issueFromJson | ( | Json::Value const & | v | ) |
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| Issue const & | x | ||
| ) |
| void xrpl::hash_append | ( | Hasher & | h, |
| Issue const & | r | ||
| ) |
|
constexpr |
| Issue const & xrpl::xrpIssue | ( | ) |
| Issue const & xrpl::noIssue | ( | ) |
| std::optional< KeyType > xrpl::keyTypeFromString | ( | std::string const & | s | ) |
| Stream & xrpl::operator<< | ( | Stream & | s, |
| KeyType | type | ||
| ) |
| bool xrpl::getCloseAgree | ( | LedgerHeader const & | info | ) |
Definition at line 60 of file LedgerHeader.h.
| void xrpl::addRaw | ( | LedgerHeader const & | info, |
| Serializer & | s, | ||
| bool | includeHash = false |
||
| ) |
Definition at line 9 of file libxrpl/protocol/LedgerHeader.cpp.
| LedgerHeader xrpl::deserializeHeader | ( | Slice | data, |
| bool | hasHash = false |
||
| ) |
Deserialize a ledger header from a byte array.
Definition at line 26 of file libxrpl/protocol/LedgerHeader.cpp.
| LedgerHeader xrpl::deserializePrefixedHeader | ( | Slice | data, |
| bool | hasHash = false |
||
| ) |
Deserialize a ledger header (prefixed with 4 bytes) from a byte array.
Definition at line 50 of file libxrpl/protocol/LedgerHeader.cpp.
| std::string xrpl::to_string | ( | MPTAmount const & | amount | ) |
Definition at line 120 of file MPTAmount.h.
| MPTAmount xrpl::mulRatio | ( | MPTAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 126 of file MPTAmount.h.
Definition at line 52 of file MPTIssue.h.
|
constexpr |
Definition at line 57 of file MPTIssue.h.
| bool xrpl::isXRP | ( | MPTID const & | ) |
MPT is a non-native token.
Definition at line 66 of file MPTIssue.h.
| Json::Value xrpl::to_json | ( | MPTIssue const & | mptIssue | ) |
Definition at line 45 of file MPTIssue.cpp.
| std::string xrpl::to_string | ( | MPTIssue const & | mptIssue | ) |
Definition at line 53 of file MPTIssue.cpp.
| MPTIssue xrpl::mptIssueFromJson | ( | Json::Value const & | jv | ) |
Definition at line 59 of file MPTIssue.cpp.
| bool xrpl::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 23 of file NFTokenID.cpp.
| std::optional< uint256 > xrpl::getNFTokenIDFromPage | ( | TxMeta const & | transactionMeta | ) |
Definition at line 43 of file NFTokenID.cpp.
| std::vector< uint256 > xrpl::getNFTokenIDFromDeletedOffer | ( | TxMeta const & | transactionMeta | ) |
Definition at line 128 of file NFTokenID.cpp.
| void xrpl::insertNFTokenID | ( | Json::Value & | response, |
| std::shared_ptr< STTx const > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 153 of file NFTokenID.cpp.
| bool xrpl::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 19 of file NFTokenOfferID.cpp.
| std::optional< uint256 > xrpl::getOfferIDFromCreatedOffer | ( | TxMeta const & | transactionMeta | ) |
Definition at line 39 of file NFTokenOfferID.cpp.
| void xrpl::insertNFTokenOfferID | ( | Json::Value & | response, |
| std::shared_ptr< STTx const > const & | transaction, | ||
| TxMeta const & | transactionMeta | ||
| ) |
Definition at line 53 of file NFTokenOfferID.cpp.
| void xrpl::serializePayChanAuthorization | ( | Serializer & | msg, |
| uint256 const & | key, | ||
| XRPAmount const & | amt | ||
| ) |
Definition at line 12 of file include/xrpl/protocol/PayChan.h.
|
constexpr |
There are 10,000 basis points (bips) in 100%.
Basis points represent 0.01%.
Given a value X, to find the amount for B bps, use X * B / bipsPerUnity
Example: If a loan broker has 999 XRP of debt, and must maintain 1,000 bps of that debt as cover (10%), then the minimum cover amount is 999,000,000 drops
Given a percentage P, to find the number of bps that percentage represents, use P * bipsPerUnity.
Example: 50% is 0.50 * bipsPerUnity = 5,000 bps.
|
constexpr |
|
constexpr |
Definition at line 91 of file Protocol.h.
|
constexpr |
Definition at line 96 of file Protocol.h.
|
constexpr |
Definition at line 102 of file Protocol.h.
|
constexpr |
Definition at line 108 of file Protocol.h.
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| PublicKey const & | pk | ||
| ) |
Print the public key to a stream.
Definition at line 26 of file PublicKey.cpp.
Definition at line 121 of file PublicKey.h.
Definition at line 126 of file PublicKey.h.
| void xrpl::hash_append | ( | Hasher & | h, |
| PublicKey const & | pk | ||
| ) |
Definition at line 138 of file PublicKey.h.
| std::string xrpl::toBase58 | ( | TokenType | type, |
| PublicKey const & | pk | ||
| ) |
Definition at line 166 of file PublicKey.h.
| std::optional< PublicKey > xrpl::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Definition at line 35 of file PublicKey.cpp.
| std::optional< ECDSACanonicality > xrpl::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 110 of file PublicKey.cpp.
| std::optional< KeyType > xrpl::publicKeyType | ( | Slice const & | slice | ) |
Returns the type of public key.
Definition at line 204 of file PublicKey.cpp.
| std::optional< KeyType > xrpl::publicKeyType | ( | PublicKey const & | publicKey | ) |
Definition at line 215 of file PublicKey.h.
|
noexcept |
Verify a secp256k1 signature on the digest of a message.
Definition at line 219 of file PublicKey.cpp.
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 269 of file PublicKey.cpp.
Calculate the 160-bit node ID from a node public key.
Definition at line 295 of file PublicKey.cpp.
Definition at line 149 of file AccountID.cpp.
| std::string xrpl::getFingerprint | ( | beast::IP::Endpoint const & | address, |
| std::optional< PublicKey > const & | publicKey = std::nullopt, |
||
| std::optional< std::string > const & | id = std::nullopt |
||
| ) |
Definition at line 246 of file PublicKey.h.
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| Rate const & | rate | ||
| ) |
| bool xrpl::isRpcError | ( | Json::Value | jvResult | ) |
Definition at line 21 of file RPCErr.cpp.
| Json::Value xrpl::rpcError | ( | error_code_i | iError | ) |
Definition at line 12 of file RPCErr.cpp.
| std::optional< Rules > const & xrpl::getCurrentTransactionRules | ( | ) |
| void xrpl::setCurrentTransactionRules | ( | std::optional< Rules > | r | ) |
Definition at line 82 of file SecretKey.h.
Definition at line 89 of file SecretKey.h.
| std::optional< SecretKey > xrpl::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Parse a secret key.
Definition at line 35 of file PublicKey.cpp.
| std::string xrpl::toBase58 | ( | TokenType | type, |
| SecretKey const & | sk | ||
| ) |
Definition at line 102 of file SecretKey.h.
| SecretKey xrpl::randomSecretKey | ( | ) |
Create a secret key using secure random numbers.
Definition at line 279 of file SecretKey.cpp.
Generate a new secret key deterministically.
Definition at line 289 of file SecretKey.cpp.
Derive the public key from a secret key.
Definition at line 311 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 349 of file SecretKey.cpp.
Create a key pair using secure random numbers.
Definition at line 366 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 210 of file SecretKey.cpp.
Definition at line 144 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 236 of file SecretKey.cpp.
Definition at line 159 of file SecretKey.h.
| Seed xrpl::randomSeed | ( | ) |
| Seed xrpl::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 > xrpl::parseBase58 | ( | std::string const & | s | ) |
Parse a Base58 encoded string into a seed.
Parse a Base58 encoded string into a seed.
Definition at line 105 of file AccountID.cpp.
| std::optional< Seed > xrpl::parseGenericSeed | ( | std::string const & | str, |
| bool | rfc1751 = true |
||
| ) |
| std::string xrpl::seedAs1751 | ( | Seed const & | seed | ) |
| std::string xrpl::toBase58 | ( | Seed const & | seed | ) |
| Blob xrpl::serializeBlob | ( | Object const & | o | ) |
Serialize an object to a blob.
Definition at line 13 of file serialize.h.
| std::string xrpl::serializeHex | ( | STObject const & | o | ) |
Serialize an object to a hex string.
Definition at line 22 of file serialize.h.
| int xrpl::field_code | ( | SerializedTypeID | id, |
| int | index | ||
| ) |
| OptionaledField< T > xrpl::operator~ | ( | TypedField< T > const & | f | ) |
| void xrpl::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 xrpl::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 xrpl::buildMultiSigningData | ( | STObject const & | obj, |
| AccountID const & | signingID | ||
| ) |
Return a Serializer suitable for computing a multisigning TxnSignature.
| Serializer xrpl::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 xrpl::finishMultiSigningData | ( | AccountID const & | signingID, |
| Serializer & | s | ||
| ) |
Definition at line 86 of file STAccount.h.
Definition at line 91 of file STAccount.h.
Definition at line 98 of file STAccount.h.
Definition at line 103 of file STAccount.h.
Definition at line 109 of file STAccount.h.
| STAmount xrpl::amountFromQuality | ( | std::uint64_t | rate | ) |
Definition at line 965 of file STAmount.cpp.
| STAmount xrpl::amountFromString | ( | Asset const & | asset, |
| std::string const & | amount | ||
| ) |
Definition at line 977 of file STAmount.cpp.
| STAmount xrpl::amountFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 987 of file STAmount.cpp.
| bool xrpl::amountFromJsonNoThrow | ( | STAmount & | result, |
| Json::Value const & | jvSource | ||
| ) |
Definition at line 1115 of file STAmount.cpp.
Definition at line 426 of file STAmount.h.
| bool xrpl::isLegalNet | ( | STAmount const & | value | ) |
Definition at line 592 of file STAmount.h.
Definition at line 1137 of file STAmount.cpp.
Definition at line 1143 of file STAmount.cpp.
Definition at line 609 of file STAmount.h.
Definition at line 615 of file STAmount.h.
Definition at line 620 of file STAmount.h.
Definition at line 627 of file STAmount.h.
Definition at line 1179 of file STAmount.cpp.
Definition at line 344 of file STAmount.cpp.
Definition at line 418 of file STAmount.cpp.
Definition at line 1246 of file STAmount.cpp.
Definition at line 1291 of file STAmount.cpp.
| STAmount xrpl::mulRound | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1623 of file STAmount.cpp.
| STAmount xrpl::mulRoundStrict | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1634 of file STAmount.cpp.
| STAmount xrpl::divRound | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1730 of file STAmount.cpp.
| STAmount xrpl::divRoundStrict | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Asset const & | asset, | ||
| bool | roundUp | ||
| ) |
Definition at line 1740 of file STAmount.cpp.
| std::uint64_t xrpl::getRate | ( | STAmount const & | offerOut, |
| STAmount const & | offerIn | ||
| ) |
Definition at line 443 of file STAmount.cpp.
| STAmount xrpl::roundToScale | ( | STAmount const & | value, |
| std::int32_t | scale, | ||
| Number::rounding_mode | rounding = Number::getround() |
||
| ) |
Round an arbitrary precision Amount to the precision of an STAmount that has a given exponent.
This is used to ensure that calculations involving IOU amounts do not collect dust beyond the precision of the reference value.
| value | The value to be rounded |
| scale | An exponent value to establish the precision limit of value. Should be larger than value.exponent(). |
| rounding | Optional Number rounding mode |
Definition at line 1465 of file STAmount.cpp.
| Number xrpl::roundToAsset | ( | A const & | asset, |
| Number const & | value, | ||
| std::int32_t | scale, | ||
| Number::rounding_mode | rounding = Number::getround() |
||
| ) |
Round an arbitrary precision Number to the precision of a given Asset.
This is used to ensure that calculations do not collect dust beyond the precision of the reference value for IOUs, or fractional amounts for the integral types XRP and MPT.
| asset | The relevant asset |
| value | The value to be rounded |
| scale | Only relevant to IOU assets. An exponent value to establish the precision limit of value. Should be larger than value.exponent(). |
| rounding | Optional Number rounding mode |
Definition at line 722 of file STAmount.h.
| bool xrpl::isXRP | ( | STAmount const & | amount | ) |
Definition at line 740 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 485 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 565 of file STAmount.cpp.
| Json::Value xrpl::to_json | ( | T const & | t | ) |
| std::ostream & xrpl::operator<< | ( | std::ostream & | out, |
| STBase const & | t | ||
| ) |
Definition at line 139 of file STBase.cpp.
| STCurrency xrpl::currencyFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 87 of file STCurrency.cpp.
| bool xrpl::operator== | ( | STCurrency const & | lhs, |
| STCurrency const & | rhs | ||
| ) |
Definition at line 88 of file STCurrency.h.
| bool xrpl::operator!= | ( | STCurrency const & | lhs, |
| STCurrency const & | rhs | ||
| ) |
Definition at line 94 of file STCurrency.h.
| bool xrpl::operator< | ( | STCurrency const & | lhs, |
| STCurrency const & | rhs | ||
| ) |
Definition at line 99 of file STCurrency.h.
| bool xrpl::operator== | ( | STCurrency const & | lhs, |
| Currency const & | rhs | ||
| ) |
Definition at line 106 of file STCurrency.h.
| bool xrpl::operator< | ( | STCurrency const & | lhs, |
| Currency const & | rhs | ||
| ) |
Definition at line 111 of file STCurrency.h.
| std::optional< T > xrpl::get | ( | STObject const & | st, |
| TypedField< U > const & | f | ||
| ) |
Return the value of a field in an STObject as a given type.
Definition at line 97 of file STExchange.h.
| std::optional< typename STExchange< U, typename U::value_type >::value_type > xrpl::get | ( | STObject const & | st, |
| TypedField< U > const & | f | ||
| ) |
Definition at line 116 of file STExchange.h.
| void xrpl::set | ( | STObject & | st, |
| TypedField< U > const & | f, | ||
| T && | t | ||
| ) |
Set a field value in an STObject.
Definition at line 125 of file STExchange.h.
| void xrpl::set | ( | STObject & | st, |
| TypedField< STBlob > const & | f, | ||
| std::size_t | size, | ||
| Init && | init | ||
| ) |
Set a blob field using an init function.
Definition at line 134 of file STExchange.h.
| void xrpl::set | ( | STObject & | st, |
| TypedField< STBlob > const & | f, | ||
| void const * | data, | ||
| std::size_t | size | ||
| ) |
Set a blob field from data.
Definition at line 142 of file STExchange.h.
| void xrpl::erase | ( | STObject & | st, |
| TypedField< U > const & | f | ||
| ) |
Remove a field in an STObject.
Definition at line 153 of file STExchange.h.
| STIssue xrpl::issueFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 137 of file STIssue.cpp.
|
constexpr |
|
constexpr |
| std::ostream & xrpl::operator<< | ( | std::ostream & | out, |
| STNumber const & | rhs | ||
| ) |
Definition at line 96 of file STNumber.cpp.
| NumberParts xrpl::partsFromString | ( | std::string const & | number | ) |
Definition at line 103 of file STNumber.cpp.
| STNumber xrpl::numberFromJson | ( | SField const & | field, |
| Json::Value const & | value | ||
| ) |
Definition at line 159 of file STNumber.cpp.
| void xrpl::throwFieldNotFound | ( | SField const & | field | ) |
Definition at line 32 of file STObject.h.
| bool xrpl::passesLocalChecks | ( | STObject const & | st, |
| std::string & | reason | ||
| ) |
| std::shared_ptr< STTx const > xrpl::sterilize | ( | STTx const & | stx | ) |
| bool xrpl::isPseudoTx | ( | STObject const & | tx | ) |
| bool xrpl::operator== | ( | STXChainBridge const & | lhs, |
| STXChainBridge const & | rhs | ||
| ) |
Definition at line 116 of file STXChainBridge.h.
| bool xrpl::operator< | ( | STXChainBridge const & | lhs, |
| STXChainBridge const & | rhs | ||
| ) |
Definition at line 130 of file STXChainBridge.h.
|
static |
Definition at line 16 of file SystemParameters.h.
| bool xrpl::isLegalAmount | ( | XRPAmount const & | amount | ) |
Returns true if the amount does not exceed the initial XRP in existence.
Definition at line 29 of file SystemParameters.h.
| bool xrpl::isLegalAmountSigned | ( | XRPAmount const & | amount | ) |
Returns true if the absolute value of the amount does not exceed the initial XRP in existence.
Definition at line 37 of file SystemParameters.h.
|
static |
Definition at line 44 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 & xrpl::transResults | ( | ) |
| bool xrpl::transResultInfo | ( | TER | code, |
| std::string & | token, | ||
| std::string & | text | ||
| ) |
| std::string xrpl::transToken | ( | TER | code | ) |
| std::string xrpl::transHuman | ( | TER | code | ) |
| std::optional< TER > xrpl::transCode | ( | std::string const & | token | ) |
| std::optional< T > xrpl::parseBase58 | ( | std::string const & | s | ) |
| std::optional< T > xrpl::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
| std::string xrpl::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 181 of file tokens.cpp.
| std::string xrpl::decodeBase58Token | ( | std::string const & | s, |
| TokenType | type | ||
| ) |
Definition at line 191 of file tokens.cpp.
| Currency const & xrpl::xrpCurrency | ( | ) |
XRP currency.
Definition at line 100 of file UintTypes.cpp.
| Currency const & xrpl::noCurrency | ( | ) |
A placeholder for empty currencies.
Definition at line 107 of file UintTypes.cpp.
| Currency const & xrpl::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 114 of file UintTypes.cpp.
| bool xrpl::to_currency | ( | Currency & | currency, |
| std::string const & | code | ||
| ) |
Tries to convert a string to a Currency, returns true on success.
Definition at line 65 of file UintTypes.cpp.
| Currency xrpl::to_currency | ( | std::string const & | code | ) |
Tries to convert a string to a Currency, returns noCurrency() on failure.
Definition at line 91 of file UintTypes.cpp.
| std::optional< Dest > xrpl::mulDiv | ( | Source1 | value, |
| Dest | mul, | ||
| Source2 | div | ||
| ) |
| std::optional< Dest > xrpl::mulDiv | ( | Dest | value, |
| Source1 | mul, | ||
| Source2 | div | ||
| ) |
| std::optional< Dest > xrpl::mulDiv | ( | std::uint64_t | value, |
| Dest | mul, | ||
| std::uint64_t | div | ||
| ) |
| std::optional< Dest > xrpl::mulDiv | ( | Dest | value, |
| std::uint64_t | mul, | ||
| std::uint64_t | div | ||
| ) |
| std::optional< std::uint64_t > xrpl::mulDiv | ( | Source1 | value, |
| std::uint64_t | mul, | ||
| Source2 | div | ||
| ) |
| std::optional< std::uint64_t > xrpl::mulDiv | ( | std::uint64_t | value, |
| Source1 | mul, | ||
| Source2 | div | ||
| ) |
|
constexprnoexcept |
|
constexprnoexcept |
| bool xrpl::operator== | ( | XChainAttestationsBase< TAttestation > const & | lhs, |
| XChainAttestationsBase< TAttestation > const & | rhs | ||
| ) |
Definition at line 423 of file XChainAttestations.h.
| std::basic_ostream< Char, Traits > & xrpl::operator<< | ( | std::basic_ostream< Char, Traits > & | os, |
| XRPAmount const & | q | ||
| ) |
Definition at line 243 of file XRPAmount.h.
| std::string xrpl::to_string | ( | XRPAmount const & | amount | ) |
Definition at line 257 of file XRPAmount.h.
| XRPAmount xrpl::mulRatio | ( | XRPAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 263 of file XRPAmount.h.
| void xrpl::HTTPReply | ( | int | nStatus, |
| std::string const & | strMsg, | ||
| Json::Output const & | output, | ||
| beast::Journal | j | ||
| ) |
Definition at line 39 of file JSONRPCUtil.cpp.
|
noexcept |
Definition at line 15 of file LowestLayer.h.
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| Port const & | p | ||
| ) |
| void xrpl::parse_Port | ( | ParsedPort & | port, |
| Section const & | section, | ||
| std::ostream & | log | ||
| ) |
| std::unique_ptr< Server > xrpl::make_Server | ( | Handler & | handler, |
| boost::asio::io_context & | io_context, | ||
| beast::Journal | journal | ||
| ) |
| int xrpl::popcnt16 | ( | std::uint16_t | a | ) |
Definition at line 205 of file TaggedPointer.h.
| bool xrpl::operator== | ( | SHAMap::const_iterator const & | x, |
| SHAMap::const_iterator const & | y | ||
| ) |
| bool xrpl::operator!= | ( | SHAMap::const_iterator const & | x, |
| SHAMap::const_iterator const & | y | ||
| ) |
| void xrpl::intrusive_ptr_add_ref | ( | SHAMapItem const * | x | ) |
Definition at line 113 of file SHAMapItem.h.
| void xrpl::intrusive_ptr_release | ( | SHAMapItem const * | x | ) |
Definition at line 122 of file SHAMapItem.h.
| boost::intrusive_ptr< SHAMapItem > xrpl::make_shamapitem | ( | uint256 const & | tag, |
| Slice | data | ||
| ) |
Definition at line 142 of file SHAMapItem.h.
| boost::intrusive_ptr< SHAMapItem > xrpl::make_shamapitem | ( | SHAMapItem const & | other | ) |
Definition at line 166 of file SHAMapItem.h.
| std::string xrpl::to_string | ( | SHAMapType | t | ) |
Definition at line 21 of file SHAMapMissingNode.h.
| std::string xrpl::to_string | ( | SHAMapNodeID const & | node | ) |
Definition at line 104 of file SHAMapNodeID.h.
| std::ostream & xrpl::operator<< | ( | std::ostream & | out, |
| SHAMapNodeID const & | node | ||
| ) |
Definition at line 113 of file SHAMapNodeID.h.
| std::optional< SHAMapNodeID > xrpl::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 89 of file SHAMapNodeID.cpp.
| std::optional< SHAMapNodeID > xrpl::deserializeSHAMapNodeID | ( | std::string const & | s | ) |
Definition at line 132 of file SHAMapNodeID.h.
| unsigned int xrpl::selectBranch | ( | SHAMapNodeID const & | id, |
| uint256 const & | hash | ||
| ) |
Returns the branch that would contain the given hash.
Definition at line 109 of file SHAMapNodeID.cpp.
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| Section const & | section | ||
| ) |
Definition at line 100 of file BasicConfig.cpp.
| std::ostream & xrpl::operator<< | ( | std::ostream & | ss, |
| BasicConfig const & | c | ||
| ) |
Definition at line 178 of file BasicConfig.cpp.
|
static |
Definition at line 366 of file Number.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| TER xrpl::cleanupOnAccountDelete | ( | ApplyView & | view, |
| Keylet const & | ownerDirKeylet, | ||
| EntryDeleter const & | deleter, | ||
| beast::Journal | j, | ||
| std::optional< uint16_t > | maxNodesToDelete | ||
| ) |
| std::optional< AccountID > xrpl::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Parse a Base58 encoded string into a seed.
Definition at line 105 of file AccountID.cpp.
| std::size_t xrpl::hash_value | ( | xrpl::uint256 const & | feature | ) |
Definition at line 25 of file Feature.cpp.
| uint256 xrpl::registerFeature | ( | std::string const & | name, |
| Supported | support, | ||
| VoteBehavior | vote | ||
| ) |
Definition at line 369 of file Feature.cpp.
| uint256 xrpl::retireFeature | ( | std::string const & | name | ) |
Definition at line 377 of file Feature.cpp.
| bool xrpl::registrationIsDone | ( | ) |
Tell FeatureCollections when registration is complete.
Definition at line 384 of file Feature.cpp.
|
static |
Definition at line 92 of file Indexes.cpp.
| std::optional< PublicKey > xrpl::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Parse a secret key.
Definition at line 35 of file PublicKey.cpp.
|
static |
Definition at line 49 of file PublicKey.cpp.
|
static |
Definition at line 75 of file PublicKey.cpp.
|
static |
Definition at line 152 of file PublicKey.cpp.
|
static |
Definition at line 58 of file Quality.cpp.
|
static |
Definition at line 98 of file Quality.cpp.
| Quality xrpl::composed_quality | ( | Quality const & | lhs, |
| Quality const & | rhs | ||
| ) |
Definition at line 137 of file Quality.cpp.
| Rate const xrpl::parityRate | ( | QUALITY_ONE | ) |
| std::optional< SecretKey > xrpl::parseBase58 | ( | TokenType | type, |
| std::string const & | s | ||
| ) |
Parse a secret key.
Definition at line 374 of file SecretKey.cpp.
| std::optional< Seed > xrpl::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Parse a Base58 encoded string into a seed.
|
static |
Definition at line 58 of file STAmount.cpp.
|
static |
Definition at line 78 of file STAmount.cpp.
|
static |
Definition at line 84 of file STAmount.cpp.
Definition at line 91 of file STAmount.cpp.
|
static |
Definition at line 1201 of file STAmount.cpp.
|
static |
Definition at line 1222 of file STAmount.cpp.
|
static |
Definition at line 1384 of file STAmount.cpp.
|
static |
Definition at line 1423 of file STAmount.cpp.
|
static |
Definition at line 1518 of file STAmount.cpp.
|
static |
Definition at line 1648 of file STAmount.cpp.
|
static |
| Expected< void, std::string > xrpl::multiSignHelper | ( | STObject const & | sigObject, |
| std::optional< AccountID > | txnAccountID, | ||
| std::function< Serializer(AccountID const &)> | makeMsg, | ||
| Rules const & | rules | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
staticnoexcept |
Definition at line 138 of file tokens.cpp.
|
static |
Definition at line 151 of file tokens.cpp.
|
static |
Definition at line 159 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 174 of file tokens.cpp.
| bool xrpl::operator== | ( | XChainClaimAttestation const & | lhs, |
| XChainClaimAttestation const & | rhs | ||
| ) |
Definition at line 500 of file XChainAttestations.cpp.
| bool xrpl::operator== | ( | XChainCreateAccountAttestation const & | lhs, |
| XChainCreateAccountAttestation const & | rhs | ||
| ) |
Definition at line 635 of file XChainAttestations.cpp.
| std::string xrpl::getHTTPHeaderTimestamp | ( | ) |
Definition at line 14 of file JSONRPCUtil.cpp.
|
static |
| intr_ptr::SharedPtr< SHAMapLeafNode > xrpl::makeTypedLeaf | ( | SHAMapNodeType | type, |
| boost::intrusive_ptr< SHAMapItem const > | item, | ||
| std::uint32_t | owner | ||
| ) |
Definition at line 13 of file SHAMap.cpp.
|
static |
Definition at line 10 of file SHAMapNodeID.cpp.
| xrpl::BEAST_DEFINE_TESTSUITE | ( | AccountTxPaging | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | AmendmentTable | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Check | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Clawback | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Discrepancy | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | FixNFTokenPageLinks | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Freeze | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | LedgerLoad | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | LoadFeeTrack | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenBaseUtil | , |
| app | , | ||
| xrpl | , | ||
| 2 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenDisallowIncoming | , |
| app | , | ||
| xrpl | , | ||
| 2 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenWOMintOffer | , |
| app | , | ||
| xrpl | , | ||
| 2 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenWOModify | , |
| app | , | ||
| xrpl | , | ||
| 2 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenAllFeatures | , |
| app | , | ||
| xrpl | , | ||
| 2 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenAuth | , |
| app | , | ||
| xrpl | , | ||
| 2 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenBurn | , |
| app | , | ||
| xrpl | , | ||
| 3 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenDir | , |
| app | , | ||
| xrpl | , | ||
| 1 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | OfferStream | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | SetRegularKey | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Ticket | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | TrustAndBalance | , |
| app | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Apply | , |
| tx | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | Vault | , |
| app | , | ||
| xrpl | , | ||
| 1 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | FileUtilities | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | hardened_hash | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | IOUAmount | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | KeyCache | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Number | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | PerfLog | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | StringUtilities | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | TaggedCache | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | XRPAmount | , |
| basics | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Config | , |
| core | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | SociDB | , |
| core | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Workers | , |
| core | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | ProtocolVersion | , |
| overlay | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | short_read | , |
| overlay | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | BuildInfo | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Hooks | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | InnerObjectFormatsParsedJSON | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Issue | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Memo | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | PublicKey | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Quality | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | SecretKey | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Seed | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | SeqProxy | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Serializer | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STAccount | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STAmount | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STInteger | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STNumber | , |
| protocol | , | ||
| xrpl | |||
| ) |
| void xrpl::testCompile | ( | std::ostream & | out | ) |
Definition at line 287 of file STNumber_test.cpp.
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STObject | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STParsedJSON | , |
| protocol | , | ||
| xrpl | |||
| ) |
| bool xrpl::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 22 of file STTx_test.cpp.
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STTx | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | InnerObjectFormatsSerializer | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | STValidation | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | TER | , |
| protocol | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | AccountCurrencies | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | AccountSet | , |
| rpc | , | ||
| xrpl | , | ||
| 1 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | AmendmentBlocked | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Connect | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Feature | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | GetCounts | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | LedgerClosed | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_PRIO | ( | LedgerData | , |
| rpc | , | ||
| xrpl | , | ||
| 1 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | LedgerHeader | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | NoRippleCheck | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | NoRippleCheckLimits | , |
| rpc | , | ||
| xrpl | , | ||
| 1 | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | OwnerInfo | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Peers | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Transaction | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | TransactionEntry | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | TransactionHistory | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::BEAST_DEFINE_TESTSUITE | ( | Version | , |
| rpc | , | ||
| xrpl | |||
| ) |
| xrpl::TEST_SUITE_BEGIN | ( | "json_value" | ) |
| xrpl::TEST_CASE | ( | "construct and compare Json::StaticString" | ) |
| xrpl::TEST_SUITE_END | ( | ) |
| uint256 xrpl::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 47 of file RCLCxPeerPos.cpp.
| RCLValidatedLedger::Seq xrpl::mismatch | ( | RCLValidatedLedger const & | a, |
| RCLValidatedLedger const & | b | ||
| ) |
Definition at line 80 of file RCLValidations.cpp.
| void xrpl::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 146 of file RCLValidations.cpp.
| std::shared_ptr< Ledger > xrpl::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 163 of file BuildLedger.cpp.
| std::shared_ptr< Ledger > xrpl::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 208 of file BuildLedger.cpp.
| std::shared_ptr< Ledger > xrpl::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 20 of file BuildLedger.cpp.
| std::size_t xrpl::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 80 of file BuildLedger.cpp.
|
static |
Definition at line 182 of file InboundLedger.cpp.
| std::unique_ptr< InboundLedgers > xrpl::make_InboundLedgers | ( | Application & | app, |
| InboundLedgers::clock_type & | clock, | ||
| beast::insight::Collector::ptr const & | collector | ||
| ) |
Definition at line 451 of file InboundLedgers.cpp.
| std::unique_ptr< InboundTransactions > xrpl::make_InboundTransactions | ( | Application & | app, |
| beast::insight::Collector::ptr const & | collector, | ||
| std::function< void(std::shared_ptr< SHAMap > const &, bool)> | gotSet | ||
| ) |
Definition at line 252 of file InboundTransactions.cpp.
| std::unique_ptr< LedgerCleaner > xrpl::make_LedgerCleaner | ( | Application & | app, |
| beast::Journal | journal | ||
| ) |
Definition at line 440 of file LedgerCleaner.cpp.
|
static |
Definition at line 54 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 2047 of file LedgerMaster.cpp.
| void xrpl::addJson | ( | Json::Value & | json, |
| LedgerFill const & | fill | ||
| ) |
Given a Ledger and options, fill a Json::Value with a description of the ledger.
Definition at line 322 of file LedgerToJson.cpp.
| Json::Value xrpl::getJson | ( | LedgerFill const & | fill | ) |
Return a new Json::Value representing the ledger with given options.
Definition at line 332 of file LedgerToJson.cpp.
| void xrpl::copyFrom | ( | Json::Value & | to, |
| Json::Value const & | from | ||
| ) |
Copy all the keys and values from one object into another.
Definition at line 340 of file LedgerToJson.cpp.
| std::unique_ptr< LocalTxs > xrpl::make_LocalTxs | ( | ) |
Definition at line 173 of file LocalTxs.cpp.
| std::string xrpl::debugTxstr | ( | std::shared_ptr< STTx const > const & | tx | ) |
Definition at line 178 of file OpenLedger.cpp.
| std::string xrpl::debugTostr | ( | OrderedTxs const & | set | ) |
Definition at line 186 of file OpenLedger.cpp.
| std::string xrpl::debugTostr | ( | SHAMap const & | set | ) |
Definition at line 195 of file OpenLedger.cpp.
| std::string xrpl::debugTostr | ( | std::shared_ptr< ReadView const > const & | view | ) |
Definition at line 215 of file OpenLedger.cpp.
| uint256 xrpl::calculateLedgerHash | ( | LedgerHeader const & | info | ) |
Definition at line 35 of file Ledger.cpp.
| std::shared_ptr< STTx const > xrpl::deserializeTx | ( | SHAMapItem const & | item | ) |
Deserialize a SHAMapItem containing a single STTx.
Throw:
May throw on deserializaton error
Definition at line 366 of file Ledger.cpp.
| std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > xrpl::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 373 of file Ledger.cpp.
| bool xrpl::isFlagLedger | ( | LedgerIndex | seq | ) |
Returns true if the given ledgerIndex is a flag ledgerIndex.
Definition at line 945 of file Ledger.cpp.
|
static |
Definition at line 951 of file Ledger.cpp.
| bool xrpl::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 981 of file Ledger.cpp.
| std::shared_ptr< Ledger > xrpl::loadLedgerHelper | ( | LedgerHeader const & | info, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1054 of file Ledger.cpp.
|
static |
Definition at line 1072 of file Ledger.cpp.
| std::tuple< std::shared_ptr< Ledger >, std::uint32_t, uint256 > xrpl::getLatestLedger | ( | Application & | app | ) |
Definition at line 1092 of file Ledger.cpp.
| std::shared_ptr< Ledger > xrpl::loadByIndex | ( | std::uint32_t | ledgerIndex, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1102 of file Ledger.cpp.
| std::shared_ptr< Ledger > xrpl::loadByHash | ( | uint256 const & | ledgerHash, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1115 of file Ledger.cpp.
|
static |
Definition at line 141 of file LedgerHistory.cpp.
|
static |
Definition at line 163 of file LedgerHistory.cpp.
|
static |
Definition at line 307 of file LedgerHistory.cpp.
Definition at line 2189 of file Application.cpp.
| std::unique_ptr< Application > xrpl::make_Application | ( | std::unique_ptr< Config > | config, |
| std::unique_ptr< Logs > | logs, | ||
| std::unique_ptr< TimeKeeper > | timeKeeper | ||
| ) |
Definition at line 2179 of file Application.cpp.
| std::unique_ptr< CollectorManager > xrpl::make_CollectorManager | ( | Section const & | params, |
| beast::Journal | journal | ||
| ) |
Definition at line 54 of file CollectorManager.cpp.
| std::unique_ptr< LoadManager > xrpl::make_LoadManager | ( | Application & | app, |
| beast::Journal | journal | ||
| ) |
Definition at line 179 of file LoadManager.cpp.
| bool xrpl::adjustDescriptorLimit | ( | int | needed, |
| beast::Journal | j | ||
| ) |
| void xrpl::printHelp | ( | po::options_description const & | desc | ) |
| std::pair< PublicKey, SecretKey > xrpl::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 10 of file NodeIdentity.cpp.
| std::unique_ptr< AmendmentTable > xrpl::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 1033 of file AmendmentTable.cpp.
| STAmount xrpl::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 6 of file AMMHelpers.cpp.
| STAmount xrpl::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 26 of file AMMHelpers.cpp.
| STAmount xrpl::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 61 of file AMMHelpers.cpp.
| STAmount xrpl::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 93 of file AMMHelpers.cpp.
| STAmount xrpl::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 126 of file AMMHelpers.cpp.
| bool xrpl::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 110 of file AMMHelpers.h.
| bool xrpl::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 137 of file AMMHelpers.h.
| std::optional< Number > xrpl::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 252 of file AMMHelpers.cpp.
| std::optional< TAmounts< TIn, TOut > > xrpl::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 177 of file AMMHelpers.h.
| std::optional< TAmounts< TIn, TOut > > xrpl::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 248 of file AMMHelpers.h.
| std::optional< TAmounts< TIn, TOut > > xrpl::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 312 of file AMMHelpers.h.
| TOut xrpl::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 445 of file AMMHelpers.h.
| TIn xrpl::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 518 of file AMMHelpers.h.
Return square of n.
Definition at line 148 of file AMMHelpers.cpp.
| STAmount xrpl::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 154 of file AMMHelpers.cpp.
| std::tuple< STAmount, std::optional< STAmount >, STAmount > xrpl::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 168 of file AMMHelpers.cpp.
Positive solution for quadratic equation: x = (-b + sqrt(b**2 + 4*a*c))/(2*a)
Definition at line 245 of file AMMHelpers.cpp.
| STAmount xrpl::multiply | ( | STAmount const & | amount, |
| Number const & | frac, | ||
| Number::rounding_mode | rm | ||
| ) |
Definition at line 266 of file AMMHelpers.cpp.
| STAmount xrpl::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 659 of file AMMHelpers.h.
| STAmount xrpl::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 274 of file AMMHelpers.cpp.
| STAmount xrpl::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 292 of file AMMHelpers.cpp.
| STAmount xrpl::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 307 of file AMMHelpers.cpp.
| std::pair< STAmount, STAmount > xrpl::adjustAssetInByTokens | ( | Rules const & | rules, |
| STAmount const & | balance, | ||
| STAmount const & | amount, | ||
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | tokens, | ||
| std::uint16_t | tfee | ||
| ) |
Definition at line 330 of file AMMHelpers.cpp.
| std::pair< STAmount, STAmount > xrpl::adjustAssetOutByTokens | ( | Rules const & | rules, |
| STAmount const & | balance, | ||
| STAmount const & | amount, | ||
| STAmount const & | lptAMMBalance, | ||
| STAmount const & | tokens, | ||
| std::uint16_t | tfee | ||
| ) |
Definition at line 356 of file AMMHelpers.cpp.
| Number xrpl::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 382 of file AMMHelpers.cpp.
| std::pair< STAmount, STAmount > xrpl::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 12 of file AMMUtils.cpp.
| Expected< std::tuple< STAmount, STAmount, STAmount >, TER > xrpl::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 28 of file AMMUtils.cpp.
| STAmount xrpl::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 94 of file AMMUtils.cpp.
| STAmount xrpl::ammLPHolds | ( | ReadView const & | view, |
| SLE const & | ammSle, | ||
| AccountID const & | lpAccount, | ||
| beast::Journal const | j | ||
| ) |
Definition at line 144 of file AMMUtils.cpp.
| std::uint16_t xrpl::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 160 of file AMMUtils.cpp.
| STAmount xrpl::ammAccountHolds | ( | ReadView const & | view, |
| AccountID const & | ammAccountID, | ||
| Issue const & | issue | ||
| ) |
Returns total amount held by AMM for the given token.
Definition at line 192 of file AMMUtils.cpp.
| TER xrpl::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 264 of file AMMUtils.cpp.
| void xrpl::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 321 of file AMMUtils.cpp.
| Expected< bool, TER > xrpl::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 369 of file AMMUtils.cpp.
| Expected< bool, TER > xrpl::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 451 of file AMMUtils.cpp.
| bool xrpl::operator< | ( | CanonicalTXSet::Key const & | lhs, |
| CanonicalTXSet::Key const & | rhs | ||
| ) |
Definition at line 5 of file CanonicalTXSet.cpp.
| NotTEC xrpl::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 7 of file DelegateUtils.cpp.
| void xrpl::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 26 of file DelegateUtils.cpp.
| void xrpl::convertBlobsToTxResult | ( | RelationalDatabase::AccountTxs & | to, |
| std::uint32_t | ledger_index, | ||
| std::string const & | status, | ||
| Blob const & | rawTxn, | ||
| Blob const & | rawMeta, | ||
| Application & | app | ||
| ) |
Definition at line 11 of file AccountTxPaging.cpp.
| void xrpl::saveLedgerAsync | ( | Application & | app, |
| std::uint32_t | seq | ||
| ) |
Definition at line 41 of file AccountTxPaging.cpp.
|
static |
Definition at line 22 of file AmendmentTable.cpp.
|
static |
Definition at line 218 of file AMMUtils.cpp.
| bool xrpl::checkLendingProtocolDependencies | ( | PreflightContext const & | ctx | ) |
Definition at line 8 of file LendingHelpers.cpp.
| Number xrpl::loanPeriodicRate | ( | TenthBips32 | interestRate, |
| std::uint32_t | paymentInterval | ||
| ) |
Definition at line 52 of file LendingHelpers.cpp.
| bool xrpl::isRounded | ( | Asset const & | asset, |
| Number const & | value, | ||
| std::int32_t | scale | ||
| ) |
Definition at line 64 of file LendingHelpers.cpp.
| detail::LoanStateDeltas xrpl::operator- | ( | LoanState const & | lhs, |
| LoanState const & | rhs | ||
| ) |
Definition at line 1276 of file LendingHelpers.cpp.
| LoanState xrpl::operator- | ( | LoanState const & | lhs, |
| detail::LoanStateDeltas const & | rhs | ||
| ) |
Definition at line 1288 of file LendingHelpers.cpp.
| LoanState xrpl::operator+ | ( | LoanState const & | lhs, |
| detail::LoanStateDeltas const & | rhs | ||
| ) |
Definition at line 1301 of file LendingHelpers.cpp.
| TER xrpl::checkLoanGuards | ( | Asset const & | vaultAsset, |
| Number const & | principalRequested, | ||
| bool | expectInterest, | ||
| std::uint32_t | paymentTotal, | ||
| LoanProperties const & | properties, | ||
| beast::Journal | j | ||
| ) |
Definition at line 1314 of file LendingHelpers.cpp.
| Number xrpl::computeFullPaymentInterest | ( | Number const & | rawPrincipalOutstanding, |
| Number const & | periodicRate, | ||
| NetClock::time_point | parentCloseTime, | ||
| std::uint32_t | paymentInterval, | ||
| std::uint32_t | prevPaymentDate, | ||
| std::uint32_t | startDate, | ||
| TenthBips32 | closeInterestRate | ||
| ) |
Definition at line 1401 of file LendingHelpers.cpp.
| Number xrpl::computeFullPaymentInterest | ( | Number const & | periodicPayment, |
| Number const & | periodicRate, | ||
| std::uint32_t | paymentRemaining, | ||
| NetClock::time_point | parentCloseTime, | ||
| std::uint32_t | paymentInterval, | ||
| std::uint32_t | prevPaymentDate, | ||
| std::uint32_t | startDate, | ||
| TenthBips32 | closeInterestRate | ||
| ) |
Definition at line 1437 of file LendingHelpers.cpp.
| LoanState xrpl::computeRawLoanState | ( | Number const & | periodicPayment, |
| Number const & | periodicRate, | ||
| std::uint32_t const | paymentRemaining, | ||
| TenthBips32 const | managementFeeRate | ||
| ) |
Definition at line 1481 of file LendingHelpers.cpp.
| LoanState xrpl::computeRawLoanState | ( | Number const & | periodicPayment, |
| TenthBips32 | interestRate, | ||
| std::uint32_t | paymentInterval, | ||
| std::uint32_t const | paymentRemaining, | ||
| TenthBips32 const | managementFeeRate | ||
| ) |
Definition at line 1523 of file LendingHelpers.cpp.
| LoanState xrpl::constructLoanState | ( | Number const & | totalValueOutstanding, |
| Number const & | principalOutstanding, | ||
| Number const & | managementFeeOutstanding | ||
| ) |
Definition at line 1557 of file LendingHelpers.cpp.
| LoanState xrpl::constructRoundedLoanState | ( | SLE::const_ref | loan | ) |
Definition at line 1573 of file LendingHelpers.cpp.
| Number xrpl::computeManagementFee | ( | Asset const & | asset, |
| Number const & | value, | ||
| TenthBips32 | managementFeeRate, | ||
| std::int32_t | scale | ||
| ) |
Definition at line 1588 of file LendingHelpers.cpp.
| LoanProperties xrpl::computeLoanProperties | ( | Asset const & | asset, |
| Number | principalOutstanding, | ||
| TenthBips32 | interestRate, | ||
| std::uint32_t | paymentInterval, | ||
| std::uint32_t | paymentsRemaining, | ||
| TenthBips32 | managementFeeRate, | ||
| std::int32_t | minimumScale | ||
| ) |
Definition at line 1605 of file LendingHelpers.cpp.
| Expected< LoanPaymentParts, TER > xrpl::loanMakePayment | ( | Asset const & | asset, |
| ApplyView & | view, | ||
| SLE::ref | loan, | ||
| SLE::const_ref | brokerSle, | ||
| STAmount const & | amount, | ||
| LoanPaymentType const | paymentType, | ||
| beast::Journal | j | ||
| ) |
Definition at line 1700 of file LendingHelpers.cpp.
| XRPAmount xrpl::scaleFeeLoad | ( | XRPAmount | fee, |
| LoadFeeTrack const & | feeTrack, | ||
| Fees const & | fees, | ||
| bool | bUnlimited | ||
| ) |
Definition at line 65 of file LoadFeeTrack.cpp.
| std::string xrpl::to_string | ( | Manifest const & | m | ) |
Format the specified manifest to a string for debugging purposes.
Definition at line 20 of file Manifest.cpp.
| std::optional< Manifest > xrpl::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 35 of file Manifest.cpp.
| Stream & xrpl::logMftAct | ( | Stream & | s, |
| std::string const & | action, | ||
| PublicKey const & | pk, | ||
| std::uint32_t | seq | ||
| ) |
Definition at line 149 of file Manifest.cpp.
| Stream & xrpl::logMftAct | ( | Stream & | s, |
| std::string const & | action, | ||
| PublicKey const & | pk, | ||
| std::uint32_t | seq, | ||
| std::uint32_t | oldSeq | ||
| ) |
Definition at line 163 of file Manifest.cpp.
| std::optional< ValidatorToken > xrpl::loadValidatorToken | ( | std::vector< std::string > const & | blob, |
| beast::Journal | journal | ||
| ) |
Definition at line 244 of file Manifest.cpp.
|
static |
|
static |
|
static |
| TxQ::Setup xrpl::setup_TxQ | ( | Config const & | config | ) |
Build a TxQ::Setup object from application configuration.
| std::string xrpl::to_string | ( | ListDisposition | disposition | ) |
Definition at line 26 of file ValidatorList.cpp.
| std::size_t xrpl::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 504 of file ValidatorList.cpp.
| std::size_t xrpl::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 483 of file ValidatorList.cpp.
| std::size_t xrpl::buildValidatorListMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
| std::uint32_t | rawVersion, | ||
| std::string const & | rawManifest, | ||
| ValidatorBlobInfo const & | currentBlob, | ||
| std::size_t | maxSize | ||
| ) |
Definition at line 569 of file ValidatorList.cpp.
| std::size_t xrpl::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 604 of file ValidatorList.cpp.
| std::unique_ptr< FeeVote > xrpl::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 320 of file FeeVoteImpl.cpp.
| HashRouter::Setup xrpl::setup_HashRouter | ( | Config const & | config | ) |
Definition at line 118 of file HashRouter.cpp.
|
constexpr |
Definition at line 34 of file HashRouter.h.
|
constexpr |
Definition at line 42 of file HashRouter.h.
|
constexpr |
Definition at line 49 of file HashRouter.h.
|
constexpr |
Definition at line 57 of file HashRouter.h.
|
constexpr |
Definition at line 64 of file HashRouter.h.
| Number xrpl::roundPeriodicPayment | ( | Asset const & | asset, |
| Number const & | periodicPayment, | ||
| std::int32_t | scale | ||
| ) |
Ensure the periodic payment is always rounded consistently.
Definition at line 22 of file LendingHelpers.h.
| void xrpl::adjustImpreciseNumber | ( | NumberProxy | value, |
| Number const & | adjustment, | ||
| Asset const & | asset, | ||
| int | vaultScale | ||
| ) |
Definition at line 169 of file LendingHelpers.h.
| int xrpl::getVaultScale | ( | SLE::const_ref | vaultSle | ) |
Definition at line 182 of file LendingHelpers.h.
| std::optional< Manifest > xrpl::deserializeManifest | ( | std::string const & | s, |
| beast::Journal | journal = beast::Journal(beast::Journal::getNullSink()) |
||
| ) |
Definition at line 149 of file Manifest.h.
| std::optional< Manifest > xrpl::deserializeManifest | ( | std::vector< T > const & | v, |
| beast::Journal | journal = beast::Journal(beast::Journal::getNullSink()) |
||
| ) |
Definition at line 161 of file Manifest.h.
Definition at line 170 of file Manifest.h.
Definition at line 180 of file Manifest.h.
| std::string xrpl::to_string | ( | ManifestDisposition | m | ) |
Definition at line 214 of file Manifest.h.
|
static |
Definition at line 2291 of file NetworkOPs.cpp.
| std::unique_ptr< NetworkOPs > xrpl::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 4869 of file NetworkOPs.cpp.
| std::unique_ptr< SHAMapStore > xrpl::make_SHAMapStore | ( | Application & | app, |
| NodeStore::Scheduler & | scheduler, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 664 of file SHAMapStoreImp.cpp.
| FeeLevel64 xrpl::toFeeLevel | ( | XRPAmount const & | drops, |
| XRPAmount const & | baseFee | ||
| ) |
| void xrpl::hash_append | ( | Hasher & | h, |
| ValidatorBlobInfo const & | blobInfo | ||
| ) |
Definition at line 901 of file ValidatorList.h.
| void xrpl::hash_append | ( | Hasher & | h, |
| std::vector< ValidatorBlobInfo > const & | blobs | ||
| ) |
Definition at line 913 of file ValidatorList.h.
| void xrpl::hash_append | ( | Hasher & | h, |
| std::map< std::size_t, ValidatorBlobInfo > const & | blobs | ||
| ) |
Definition at line 921 of file ValidatorList.h.
| hash_set< Currency > xrpl::accountSourceCurrencies | ( | AccountID const & | account, |
| std::shared_ptr< RippleLineCache > const & | lrCache, | ||
| bool | includeXRP | ||
| ) |
Definition at line 6 of file AccountCurrencies.cpp.
| hash_set< Currency > xrpl::accountDestCurrencies | ( | AccountID const & | account, |
| std::shared_ptr< RippleLineCache > const & | lrCache, | ||
| bool | includeXRP | ||
| ) |
Definition at line 42 of file AccountCurrencies.cpp.
| STAmount xrpl::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 9 of file Credit.cpp.
| IOUAmount xrpl::creditLimit2 | ( | ReadView const & | v, |
| AccountID const & | acc, | ||
| AccountID const & | iss, | ||
| Currency const & | cur | ||
| ) |
Definition at line 36 of file Credit.cpp.
| STAmount xrpl::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 46 of file Credit.cpp.
| T & xrpl::get | ( | EitherAmount & | amt | ) |
Definition at line 99 of file AmountSpec.h.
| IOUAmount & xrpl::get< IOUAmount > | ( | EitherAmount & | amt | ) |
Definition at line 106 of file AmountSpec.h.
| XRPAmount & xrpl::get< XRPAmount > | ( | EitherAmount & | amt | ) |
Definition at line 115 of file AmountSpec.h.
| T const & xrpl::get | ( | EitherAmount const & | amt | ) |
Definition at line 124 of file AmountSpec.h.
| IOUAmount const & xrpl::get< IOUAmount > | ( | EitherAmount const & | amt | ) |
Definition at line 131 of file AmountSpec.h.
| XRPAmount const & xrpl::get< XRPAmount > | ( | EitherAmount const & | amt | ) |
Definition at line 140 of file AmountSpec.h.
| AmountSpec xrpl::toAmountSpec | ( | STAmount const & | amt | ) |
Definition at line 149 of file AmountSpec.h.
| EitherAmount xrpl::toEitherAmount | ( | STAmount const & | amt | ) |
Definition at line 175 of file AmountSpec.h.
| AmountSpec xrpl::toAmountSpec | ( | EitherAmount const & | ea, |
| std::optional< Currency > const & | c | ||
| ) |
Definition at line 183 of file AmountSpec.h.
|
static |
Definition at line 632 of file BookStep.cpp.
|
static |
Definition at line 663 of file BookStep.cpp.
|
static |
Definition at line 976 of file BookStep.cpp.
|
static |
Definition at line 1409 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > xrpl::make_BookStepII | ( | StrandContext const & | ctx, |
| Issue const & | in, | ||
| Issue const & | out | ||
| ) |
Definition at line 1434 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > xrpl::make_BookStepIX | ( | StrandContext const & | ctx, |
| Issue const & | in | ||
| ) |
Definition at line 1440 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > xrpl::make_BookStepXI | ( | StrandContext const & | ctx, |
| Issue const & | out | ||
| ) |
Definition at line 1446 of file BookStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > xrpl::make_DirectStepI | ( | StrandContext const & | ctx, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Currency const & | c | ||
| ) |
Definition at line 950 of file DirectStep.cpp.
| void xrpl::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 16 of file FlatSets.h.
Definition at line 9 of file PathfinderUtils.h.
Definition at line 18 of file PathfinderUtils.h.
| bool xrpl::convertAllCheck | ( | STAmount const & | a | ) |
Definition at line 27 of file PathfinderUtils.h.
Definition at line 15 of file PaySteps.cpp.
Definition at line 39 of file PaySteps.cpp.
|
static |
Definition at line 45 of file PaySteps.cpp.
|
static |
Definition at line 53 of file PaySteps.cpp.
| std::pair< TER, Strand > xrpl::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 117 of file PaySteps.cpp.
| std::pair< TER, std::vector< Strand > > xrpl::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 456 of file PaySteps.cpp.
| bool xrpl::isDirectXrpToXrp | ( | Strand const & | strand | ) |
Definition at line 611 of file PaySteps.cpp.
| bool xrpl::isDirectXrpToXrp< XRPAmount, XRPAmount > | ( | Strand const & | strand | ) |
Definition at line 617 of file PaySteps.cpp.
| template bool xrpl::isDirectXrpToXrp< XRPAmount, IOUAmount > | ( | Strand const & | strand | ) |
| template bool xrpl::isDirectXrpToXrp< IOUAmount, XRPAmount > | ( | Strand const & | strand | ) |
| template bool xrpl::isDirectXrpToXrp< IOUAmount, IOUAmount > | ( | Strand const & | strand | ) |
| TER xrpl::checkFreeze | ( | ReadView const & | view, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Currency const & | currency | ||
| ) |
Definition at line 14 of file StepChecks.h.
| TER xrpl::checkNoRipple | ( | ReadView const & | view, |
| AccountID const & | prev, | ||
| AccountID const & | cur, | ||
| AccountID const & | next, | ||
| Currency const & | currency, | ||
| beast::Journal | j | ||
| ) |
Definition at line 69 of file StepChecks.h.
| bool xrpl::redeems | ( | DebtDirection | dir | ) |
| bool xrpl::issues | ( | DebtDirection | dir | ) |
| std::pair< TER, STPath > xrpl::normalizePath | ( | AccountID const & | src, |
| AccountID const & | dst, | ||
| Issue const & | deliver, | ||
| std::optional< Issue > const & | sendMaxIssue, | ||
| STPath const & | path | ||
| ) |
| StrandResult< TInAmt, TOutAmt > xrpl::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 86 of file StrandFlow.h.
| FlowResult< TInAmt, TOutAmt > xrpl::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 550 of file StrandFlow.h.
| bool xrpl::operator== | ( | XRPEndpointStep< TDerived > const & | lhs, |
| XRPEndpointStep< TDerived > const & | rhs | ||
| ) |
Definition at line 218 of file XRPEndpointStep.cpp.
| std::pair< TER, std::unique_ptr< Step > > xrpl::make_XRPEndpointStep | ( | StrandContext const & | ctx, |
| AccountID const & | acc | ||
| ) |
Definition at line 376 of file XRPEndpointStep.cpp.
|
static |
| path::RippleCalc::Output xrpl::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 444 of file Pathfinder.cpp.
Definition at line 463 of file Pathfinder.cpp.
Definition at line 921 of file Pathfinder.cpp.
| std::unique_ptr< RelationalDatabase > xrpl::getSQLiteDatabase | ( | Application & | app, |
| Config const & | config, | ||
| JobQueue & | jobQueue | ||
| ) |
Definition at line 837 of file SQLiteDatabase.cpp.
| void xrpl::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 6 of file PeerFinder.cpp.
| void xrpl::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 42 of file PeerFinder.cpp.
| void xrpl::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 198 of file PeerFinder.cpp.
| void xrpl::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 220 of file PeerFinder.cpp.
| void xrpl::initStateDB | ( | soci::session & | session, |
| BasicConfig const & | config, | ||
| std::string const & | dbName | ||
| ) |
| LedgerIndex xrpl::getCanDelete | ( | soci::session & | session | ) |
| LedgerIndex xrpl::setCanDelete | ( | soci::session & | session, |
| LedgerIndex | canDelete | ||
| ) |
| SavedState xrpl::getSavedState | ( | soci::session & | session | ) |
getSavedState Returns the saved state.
| session | Session with the database. |
| void xrpl::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 xrpl::setLastRotated | ( | soci::session & | session, |
| LedgerIndex | seq | ||
| ) |
| bool xrpl::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 8 of file Vacuum.cpp.
| std::unique_ptr< DatabaseCon > xrpl::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 8 of file Wallet.cpp.
| std::unique_ptr< DatabaseCon > xrpl::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 16 of file Wallet.cpp.
| void xrpl::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 27 of file Wallet.cpp.
|
static |
Definition at line 60 of file Wallet.cpp.
| void xrpl::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 75 of file Wallet.cpp.
| void xrpl::addValidatorManifest | ( | soci::session & | session, |
| std::string const & | serialized | ||
| ) |
addValidatorManifest Saves the manifest of a validator to the database.
Definition at line 100 of file Wallet.cpp.
| void xrpl::clearNodeIdentity | ( | soci::session & | session | ) |
Delete any saved public/private key associated with this node.
Definition at line 108 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 114 of file Wallet.cpp.
| std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > xrpl::getPeerReservationTable | ( | soci::session & | session, |
| beast::Journal | j | ||
| ) |
getPeerReservationTable Returns the peer reservation table.
| session | Session with the database. |
| j | Journal. |
Definition at line 151 of file Wallet.cpp.
| void xrpl::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 188 of file Wallet.cpp.
| void xrpl::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 202 of file Wallet.cpp.
| bool xrpl::createFeatureVotes | ( | soci::session & | session | ) |
createFeatureVotes Creates the FeatureVote table if it does not exist.
| session | Session with the wallet database. |
Definition at line 210 of file Wallet.cpp.
| void xrpl::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 234 of file Wallet.cpp.
| void xrpl::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 270 of file Wallet.cpp.
| T xrpl::rangeCheckedCast | ( | C | c | ) |
Definition at line 211 of file RelationalDatabase.h.
| std::pair< Validity, std::string > xrpl::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 xrpl::forceValidity | ( | HashRouter & | router, |
| uint256 const & | txid, | ||
| Validity | validity | ||
| ) |
Sets the validity of a given transaction in the cache.
| ApplyResult xrpl::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 xrpl::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 xrpl::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 29 of file applySteps.h.
| PreflightResult xrpl::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 284 of file applySteps.cpp.
| PreflightResult xrpl::preflight | ( | Application & | app, |
| Rules const & | rules, | ||
| uint256 const & | parentBatchId, | ||
| STTx const & | tx, | ||
| ApplyFlags | flags, | ||
| beast::Journal | j | ||
| ) |
Definition at line 304 of file applySteps.cpp.
| PreclaimResult xrpl::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 325 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 386 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 392 of file applySteps.cpp.
| ApplyResult xrpl::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 398 of file applySteps.cpp.
|
static |
Definition at line 153 of file AMMBid.cpp.
|
static |
Definition at line 193 of file AMMCreate.cpp.
|
static |
Definition at line 612 of file AMMDeposit.cpp.
|
static |
Definition at line 60 of file AMMVote.cpp.
|
static |
Definition at line 139 of file AMMWithdraw.cpp.
|
static |
Definition at line 656 of file AMMWithdraw.cpp.
| ApplyResult xrpl::apply | ( | Application & | app, |
| OpenView & | view, | ||
| PreflightChecks && | preflightChecks | ||
| ) |
| ApplyResult xrpl::apply | ( | Application & | app, |
| OpenView & | view, | ||
| uint256 const & | parentBatchId, | ||
| STTx const & | tx, | ||
| ApplyFlags | flags, | ||
| beast::Journal | j | ||
| ) |
|
static |
| TxConsequences xrpl::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 73 of file applySteps.cpp.
| TxConsequences xrpl::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 82 of file applySteps.cpp.
| TxConsequences xrpl::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 91 of file applySteps.cpp.
|
static |
Definition at line 98 of file applySteps.cpp.
|
static |
Definition at line 123 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 203 of file applySteps.cpp.
|
static |
Definition at line 262 of file applySteps.cpp.
|
static |
| NotTEC xrpl::preflightHelper< Issue > | ( | PreflightContext const & | ctx | ) |
Definition at line 17 of file Clawback.cpp.
| NotTEC xrpl::preflightHelper< MPTIssue > | ( | PreflightContext const & | ctx | ) |
Definition at line 36 of file Clawback.cpp.
|
static |
| TER xrpl::preclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| SLE const & | sleIssuer, | ||
| AccountID const & | issuer, | ||
| AccountID const & | holder, | ||
| STAmount const & | clawAmount | ||
| ) |
Definition at line 87 of file Clawback.cpp.
| TER xrpl::preclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| SLE const & | sleIssuer, | ||
| AccountID const & | issuer, | ||
| AccountID const & | holder, | ||
| STAmount const & | clawAmount | ||
| ) |
Definition at line 140 of file Clawback.cpp.
|
static |
| TER xrpl::applyHelper< Issue > | ( | ApplyContext & | ctx | ) |
Definition at line 209 of file Clawback.cpp.
| TER xrpl::applyHelper< MPTIssue > | ( | ApplyContext & | ctx | ) |
Definition at line 240 of file Clawback.cpp.
| TER xrpl::addSLE | ( | ApplyContext & | ctx, |
| std::shared_ptr< SLE > const & | sle, | ||
| AccountID const & | owner | ||
| ) |
|
static |
| NotTEC xrpl::escrowCreatePreflightHelper< Issue > | ( | PreflightContext const & | ctx | ) |
Definition at line 74 of file Escrow.cpp.
| NotTEC xrpl::escrowCreatePreflightHelper< MPTIssue > | ( | PreflightContext const & | ctx | ) |
Definition at line 88 of file Escrow.cpp.
|
static |
| TER xrpl::escrowCreatePreclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 170 of file Escrow.cpp.
| TER xrpl::escrowCreatePreclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 248 of file Escrow.cpp.
|
static |
| TER xrpl::escrowLockApplyHelper< Issue > | ( | ApplyView & | view, |
| AccountID const & | issuer, | ||
| AccountID const & | sender, | ||
| STAmount const & | amount, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 373 of file Escrow.cpp.
| TER xrpl::escrowLockApplyHelper< MPTIssue > | ( | ApplyView & | view, |
| AccountID const & | issuer, | ||
| AccountID const & | sender, | ||
| STAmount const & | amount, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 398 of file Escrow.cpp.
Definition at line 547 of file Escrow.cpp.
|
static |
| TER xrpl::escrowFinishPreclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 638 of file Escrow.cpp.
| TER xrpl::escrowFinishPreclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | dest, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 662 of file Escrow.cpp.
|
static |
| TER xrpl::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 745 of file Escrow.cpp.
| TER xrpl::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 878 of file Escrow.cpp.
|
static |
| TER xrpl::escrowCancelPreclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 1139 of file Escrow.cpp.
| TER xrpl::escrowCancelPreclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| AccountID const & | account, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 1159 of file Escrow.cpp.
Definition at line 77 of file InvariantCheck.cpp.
Definition at line 93 of file InvariantCheck.cpp.
|
static |
Definition at line 1951 of file InvariantCheck.cpp.
| InvariantChecks xrpl::getInvariantChecks | ( | ) |
get a tuple of all invariant checks
Definition at line 942 of file InvariantCheck.h.
Definition at line 58 of file LoanBrokerCoverClawback.cpp.
| Expected< Asset, TER > xrpl::determineAsset | ( | ReadView const & | view, |
| AccountID const & | account, | ||
| AccountID const & | brokerPseudoAccountID, | ||
| STAmount const & | amount | ||
| ) |
Definition at line 101 of file LoanBrokerCoverClawback.cpp.
| Expected< STAmount, TER > xrpl::determineClawAmount | ( | SLE const & | sleBroker, |
| Asset const & | vaultAsset, | ||
| std::optional< STAmount > const & | amount | ||
| ) |
Definition at line 131 of file LoanBrokerCoverClawback.cpp.
|
static |
| TER xrpl::preclaimHelper< Issue > | ( | PreclaimContext const & | ctx, |
| SLE const & | sleIssuer, | ||
| STAmount const & | clawAmount | ||
| ) |
Definition at line 167 of file LoanBrokerCoverClawback.cpp.
| TER xrpl::preclaimHelper< MPTIssue > | ( | PreclaimContext const & | ctx, |
| SLE const & | sleIssuer, | ||
| STAmount const & | clawAmount | ||
| ) |
Definition at line 183 of file LoanBrokerCoverClawback.cpp.
Definition at line 118 of file LoanManage.cpp.
|
static |
Definition at line 189 of file LoanSet.cpp.
|
static |
Definition at line 17 of file NFTokenMint.cpp.
|
static |
Definition at line 23 of file NFTokenMint.cpp.
| std::ostream & xrpl::operator<< | ( | std::ostream & | os, |
| TOffer< TIn, TOut > const & | offer | ||
| ) |
|
static |
Definition at line 81 of file OfferStream.cpp.
|
static |
Definition at line 93 of file OfferStream.cpp.
|
static |
Definition at line 110 of file OfferStream.cpp.
|
static |
Definition at line 98 of file PayChan.cpp.
| STAmount xrpl::getMaxSourceAmount | ( | AccountID const & | account, |
| STAmount const & | dstAmount, | ||
| std::optional< STAmount > const & | sendMax | ||
| ) |
Definition at line 32 of file Payment.cpp.
Definition at line 13 of file SetOracle.cpp.
|
static |
Definition at line 158 of file SetOracle.cpp.
|
static |
Definition at line 171 of file SetOracle.cpp.
|
static |
Definition at line 146 of file SetSignerList.cpp.
|
static |
Definition at line 173 of file SetSignerList.cpp.
| NotTEC xrpl::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 25 of file Transactor.cpp.
|
static |
Definition at line 990 of file Transactor.cpp.
|
static |
Definition at line 1010 of file Transactor.cpp.
|
static |
Definition at line 1029 of file Transactor.cpp.
|
static |
Definition at line 1042 of file Transactor.cpp.
| STAmount xrpl::clawbackAmount | ( | std::shared_ptr< SLE const > const & | vault, |
| std::optional< STAmount > const & | maybeAmount, | ||
| AccountID const & | account | ||
| ) |
Definition at line 41 of file VaultClawback.cpp.
| bool xrpl::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 8 of file Consensus.cpp.
| bool xrpl::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 87 of file Consensus.cpp.
| ConsensusState xrpl::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 158 of file Consensus.cpp.
| int xrpl::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 1464 of file Consensus.h.
| std::pair< std::size_t, std::optional< ConsensusParms::AvalancheState > > xrpl::getNeededWeight | ( | ConsensusParms const & | p, |
| ConsensusParms::AvalancheState | currentState, | ||
| int | percentTime, | ||
| std::size_t | currentRounds, | ||
| std::size_t | minimumRounds | ||
| ) |
Definition at line 154 of file ConsensusParms.h.
| bool xrpl::operator== | ( | ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const & | a, |
| ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const & | b | ||
| ) |
Definition at line 257 of file ConsensusProposal.h.
| std::string xrpl::to_string | ( | ConsensusMode | m | ) |
Definition at line 53 of file ConsensusTypes.h.
| std::string xrpl::to_string | ( | ConsensusPhase | p | ) |
Definition at line 100 of file ConsensusTypes.h.
| std::chrono::duration< Rep, Period > xrpl::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 61 of file LedgerTiming.h.
| std::chrono::time_point< Clock, Duration > xrpl::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 114 of file LedgerTiming.h.
| std::chrono::time_point< Clock, Duration > xrpl::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 137 of file LedgerTiming.h.
| bool xrpl::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 130 of file Validations.h.
| std::string xrpl::to_string | ( | ValStatus | m | ) |
Definition at line 164 of file Validations.h.
Definition at line 1110 of file Config.cpp.
| std::shared_ptr< Checkpointer > xrpl::checkpointerFromId | ( | std::uintptr_t | id | ) |
Definition at line 61 of file DatabaseCon.cpp.
| DatabaseCon::Setup xrpl::setup_DatabaseCon | ( | Config const & | c, |
| std::optional< beast::Journal > | j = std::nullopt |
||
| ) |
Definition at line 88 of file DatabaseCon.cpp.
| IniFileSections xrpl::parseIniFile | ( | std::string const & | strInput, |
| bool const | bTrim | ||
| ) |
Definition at line 142 of file Config.cpp.
| IniFileSections::mapped_type * xrpl::getIniFileSection | ( | IniFileSections & | secSource, |
| std::string const & | strSection | ||
| ) |
Definition at line 190 of file Config.cpp.
| bool xrpl::getSingleSection | ( | IniFileSections & | secSource, |
| std::string const & | strSection, | ||
| std::string & | strValue, | ||
| beast::Journal | j | ||
| ) |
Definition at line 199 of file Config.cpp.
|
static |
Definition at line 234 of file Config.cpp.
|
static |
Definition at line 411 of file Config.cpp.
| void xrpl::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 82 of file SociDB.cpp.
| void xrpl::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 88 of file SociDB.cpp.
|
static |
Definition at line 100 of file SociDB.cpp.
| std::uint32_t xrpl::getKBUsedAll | ( | soci::session & | s | ) |
Definition at line 114 of file SociDB.cpp.
| std::uint32_t xrpl::getKBUsedDB | ( | soci::session & | s | ) |
Definition at line 123 of file SociDB.cpp.
| void xrpl::convert | ( | soci::blob & | from, |
| std::vector< std::uint8_t > & | to | ||
| ) |
Definition at line 138 of file SociDB.cpp.
| void xrpl::convert | ( | soci::blob & | from, |
| std::string & | to | ||
| ) |
Definition at line 147 of file SociDB.cpp.
| void xrpl::convert | ( | std::vector< std::uint8_t > const & | from, |
| soci::blob & | to | ||
| ) |
Definition at line 155 of file SociDB.cpp.
| void xrpl::convert | ( | std::string const & | from, |
| soci::blob & | to | ||
| ) |
Definition at line 164 of file SociDB.cpp.
| std::shared_ptr< Checkpointer > xrpl::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 317 of file SociDB.cpp.
| std::optional< std::string > xrpl::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 20 of file Handshake.cpp.
| bool xrpl::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 36 of file Handshake.cpp.
| bool xrpl::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 48 of file Handshake.cpp.
| std::string xrpl::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 56 of file Handshake.cpp.
| std::string xrpl::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 75 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 109 of file Handshake.cpp.
| std::optional< uint256 > xrpl::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 127 of file Handshake.cpp.
| void xrpl::buildHandshake | ( | boost::beast::http::fields & | h, |
| xrpl::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 159 of file Handshake.cpp.
| PublicKey xrpl::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 208 of file Handshake.cpp.
| request_type xrpl::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 346 of file Handshake.cpp.
| http_response_type xrpl::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 373 of file Handshake.cpp.
| bool xrpl::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 179 of file Handshake.h.
| bool xrpl::peerFeatureEnabled | ( | headers const & | request, |
| std::string const & | feature, | ||
| bool | config | ||
| ) |
Wrapper for enable(1)/disable type(0) of feature.
Definition at line 191 of file Handshake.h.
| std::shared_ptr< Message > xrpl::makeSquelchMessage | ( | PublicKey const & | validator, |
| bool | squelch, | ||
| uint32_t | squelchDuration | ||
| ) |
Definition at line 1370 of file OverlayImpl.cpp.
| Overlay::Setup xrpl::setup_Overlay | ( | BasicConfig const & | config | ) |
Definition at line 1478 of file OverlayImpl.cpp.
| std::unique_ptr< Overlay > xrpl::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 1583 of file OverlayImpl.cpp.
|
static |
Definition at line 138 of file PeerImp.cpp.
|
static |
Definition at line 3175 of file PeerImp.cpp.
|
static |
Definition at line 3199 of file PeerImp.cpp.
| std::unique_ptr< PeerSetBuilder > xrpl::make_PeerSetBuilder | ( | Application & | app | ) |
Definition at line 126 of file PeerSet.cpp.
| std::unique_ptr< PeerSet > xrpl::make_DummyPeerSet | ( | Application & | app | ) |
Make a dummy PeerSet that does not do anything.
Definition at line 169 of file PeerSet.cpp.
| protocol::MessageType xrpl::protocolMessageType | ( | protocol::TMGetLedger const & | ) |
Definition at line 22 of file ProtocolMessage.h.
| protocol::MessageType xrpl::protocolMessageType | ( | protocol::TMReplayDeltaRequest const & | ) |
Definition at line 28 of file ProtocolMessage.h.
| protocol::MessageType xrpl::protocolMessageType | ( | protocol::TMProofPathRequest const & | ) |
Definition at line 34 of file ProtocolMessage.h.
| std::string xrpl::protocolMessageName | ( | int | type | ) |
Returns the name of a protocol message given its type.
Definition at line 42 of file ProtocolMessage.h.
| std::pair< std::size_t, boost::system::error_code > xrpl::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 317 of file ProtocolMessage.h.
| std::string xrpl::to_string | ( | ProtocolVersion const & | p | ) |
Print a protocol version a human-readable string.
Definition at line 56 of file ProtocolVersion.cpp.
| std::vector< ProtocolVersion > xrpl::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 parsable as valid protocol strings are excluded from the result set.
Definition at line 62 of file ProtocolVersion.cpp.
| std::optional< ProtocolVersion > xrpl::negotiateProtocolVersion | ( | std::vector< ProtocolVersion > const & | versions | ) |
Given a list of supported protocol versions, choose the one we prefer.
Definition at line 109 of file ProtocolVersion.cpp.
| std::optional< ProtocolVersion > xrpl::negotiateProtocolVersion | ( | boost::beast::string_view const & | versions | ) |
Given a list of supported protocol versions, choose the one we prefer.
Definition at line 132 of file ProtocolVersion.cpp.
| std::string const & xrpl::supportedProtocolVersions | ( | ) |
The list of all the protocol versions we support.
Definition at line 140 of file ProtocolVersion.cpp.
| bool xrpl::isProtocolSupported | ( | ProtocolVersion const & | v | ) |
Determine whether we support a specific protocol version.
Definition at line 158 of file ProtocolVersion.cpp.
|
constexpr |
Definition at line 22 of file ProtocolVersion.h.
| send_if_pred< Predicate > xrpl::send_if | ( | std::shared_ptr< Message > const & | m, |
| Predicate const & | f | ||
| ) |
Helper function to aid in type deduction.
Definition at line 56 of file predicates.h.
| send_if_not_pred< Predicate > xrpl::send_if_not | ( | std::shared_ptr< Message > const & | m, |
| Predicate const & | f | ||
| ) |
Helper function to aid in type deduction.
Definition at line 88 of file predicates.h.
| bool xrpl::passwordUnrequiredOrSentCorrect | ( | Port const & | port, |
| Json::Value const & | params | ||
| ) |
| bool xrpl::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 xrpl::isAdmin | ( | Port const & | port, |
| Json::Value const & | params, | ||
| beast::IP::Address const & | remoteIp | ||
| ) |
| Role xrpl::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 xrpl::isUnlimited | ( | Role const & | role | ) |
| bool xrpl::isUnlimited | ( | Role const & | required, |
| Port const & | port, | ||
| Json::Value const & | params, | ||
| beast::IP::Endpoint const & | remoteIp, | ||
| std::string const & | user | ||
| ) |
| Resource::Consumer xrpl::requestInboundEndpoint | ( | Resource::Manager & | manager, |
| beast::IP::Endpoint const & | remoteAddress, | ||
| Role const & | role, | ||
| std::string_view | user, | ||
| std::string_view | forwardedFor | ||
| ) |
|
static |
| std::string_view xrpl::forwardedFor | ( | http_request_type const & | request | ) |
| std::string xrpl::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 43 of file RPCCall.cpp.
| std::string xrpl::JSONRPCRequest | ( | std::string const & | strMethod, |
| Json::Value const & | params, | ||
| Json::Value const & | id | ||
| ) |
Definition at line 1346 of file RPCCall.cpp.
| Json::Value xrpl::rpcCmdToJson | ( | std::vector< std::string > const & | args, |
| Json::Value & | retParams, | ||
| unsigned int | apiVersion, | ||
| beast::Journal | j | ||
| ) |
Definition at line 1448 of file RPCCall.cpp.
| std::pair< int, Json::Value > xrpl::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 1489 of file RPCCall.cpp.
| std::shared_ptr< RPCSub > xrpl::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 189 of file RPCSub.cpp.
|
static |
Definition at line 47 of file ServerHandler.cpp.
|
static |
Definition at line 55 of file ServerHandler.cpp.
|
static |
Definition at line 75 of file ServerHandler.cpp.
|
static |
Definition at line 247 of file ServerHandler.cpp.
|
static |
Definition at line 255 of file ServerHandler.cpp.
|
static |
Definition at line 273 of file ServerHandler.cpp.
| void xrpl::logDuration | ( | Json::Value const & | request, |
| T const & | duration, | ||
| beast::Journal & | journal | ||
| ) |
Definition at line 394 of file ServerHandler.cpp.
|
static |
Definition at line 586 of file ServerHandler.cpp.
|
static |
Definition at line 1094 of file ServerHandler.cpp.
|
static |
Definition at line 1140 of file ServerHandler.cpp.
|
static |
Definition at line 1211 of file ServerHandler.cpp.
|
static |
Definition at line 1235 of file ServerHandler.cpp.
| ServerHandler::Setup xrpl::setup_ServerHandler | ( | Config const & | config, |
| std::ostream && | log | ||
| ) |
Definition at line 1250 of file ServerHandler.cpp.
| std::unique_ptr< ServerHandler > xrpl::make_ServerHandler | ( | Application & | app, |
| boost::asio::io_context & | io_context, | ||
| JobQueue & | jobQueue, | ||
| NetworkOPs & | networkOPs, | ||
| Resource::Manager & | resourceManager, | ||
| CollectorManager & | cm | ||
| ) |
Definition at line 1262 of file ServerHandler.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > xrpl::doLedgerGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > & | context | ) |
Definition at line 118 of file LedgerHandler.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > xrpl::doLedgerEntryGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > & | context | ) |
Definition at line 873 of file LedgerEntry.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > xrpl::doLedgerDataGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > & | context | ) |
Definition at line 118 of file LedgerData.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > xrpl::doLedgerDiffGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > & | context | ) |
Definition at line 6 of file LedgerDiff.cpp.
| void xrpl::addChannel | ( | Json::Value & | jsonLines, |
| SLE const & | line | ||
| ) |
Definition at line 17 of file AccountChannels.cpp.
| Json::Value xrpl::doAccountChannels | ( | RPC::JsonContext & | context | ) |
Definition at line 50 of file AccountChannels.cpp.
| Json::Value xrpl::doAccountCurrencies | ( | RPC::JsonContext & | context | ) |
Definition at line 13 of file AccountCurrenciesHandler.cpp.
| void xrpl::injectSLE | ( | Json::Value & | jv, |
| SLE const & | sle | ||
| ) |
Injects JSON describing a ledger entry.
| jv | The JSON value to populate. |
| sle | The ledger entry to describe. |
Populates the provided JSON value with the description of the specified ledger entry. If the entry is an account root and contains an email hash, adds a 'urlgravatar' field with the corresponding Gravatar URL. If the entry is not an account root, sets the 'Invalid' field to true.
Definition at line 31 of file AccountInfo.cpp.
| Json::Value xrpl::doAccountInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 70 of file AccountInfo.cpp.
| void xrpl::addLine | ( | Json::Value & | jsonLines, |
| RPCTrustLine const & | line | ||
| ) |
Definition at line 16 of file AccountLines.cpp.
| Json::Value xrpl::doAccountLines | ( | RPC::JsonContext & | context | ) |
Definition at line 63 of file AccountLines.cpp.
| Json::Value xrpl::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 32 of file AccountObjects.cpp.
| bool xrpl::getAccountObjects | ( | ReadView const & | ledger, |
| AccountID const & | account, | ||
| std::optional< std::vector< LedgerEntryType > > const & | typeFilter, | ||
| uint256 | dirIndex, | ||
| uint256 | entryIndex, | ||
| std::uint32_t const | limit, | ||
| Json::Value & | jvResult | ||
| ) |
Gathers all objects for an account in a ledger.
| ledger | Ledger to search account objects. |
| account | AccountID to find objects for. |
| typeFilter | Gathers objects of these types. empty gathers all types. |
| dirIndex | Begin gathering account objects from this directory. |
| entryIndex | Begin gathering objects from this directory node. |
| limit | Maximum number of objects to find. |
| jvResult | A JSON result that holds the request objects. |
Definition at line 172 of file AccountObjects.cpp.
| Json::Value xrpl::doAccountObjects | ( | RPC::JsonContext & | context | ) |
Definition at line 364 of file AccountObjects.cpp.
| void xrpl::appendOfferJson | ( | std::shared_ptr< SLE const > const & | offer, |
| Json::Value & | offers | ||
| ) |
Definition at line 17 of file AccountOffers.cpp.
| Json::Value xrpl::doAccountOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 39 of file AccountOffers.cpp.
| std::variant< std::optional< LedgerSpecifier >, Json::Value > xrpl::parseLedgerArgs | ( | RPC::Context & | context, |
| Json::Value const & | params | ||
| ) |
Definition at line 35 of file AccountTx.cpp.
| std::variant< LedgerRange, RPC::Status > xrpl::getLedgerRange | ( | RPC::Context & | context, |
| std::optional< LedgerSpecifier > const & | ledgerSpecifier | ||
| ) |
Definition at line 114 of file AccountTx.cpp.
| std::pair< AccountTxResult, RPC::Status > xrpl::doAccountTxHelp | ( | RPC::Context & | context, |
| AccountTxArgs const & | args | ||
| ) |
Definition at line 198 of file AccountTx.cpp.
| Json::Value xrpl::populateJsonResponse | ( | std::pair< AccountTxResult, RPC::Status > const & | res, |
| AccountTxArgs const & | args, | ||
| RPC::JsonContext const & | context | ||
| ) |
Definition at line 267 of file AccountTx.cpp.
| Json::Value xrpl::doAccountTxJson | ( | RPC::JsonContext & | context | ) |
Definition at line 391 of file AccountTx.cpp.
| Expected< Issue, error_code_i > xrpl::getIssue | ( | Json::Value const & | v, |
| beast::Journal | j | ||
| ) |
Definition at line 16 of file AMMInfo.cpp.
| std::string xrpl::to_iso8601 | ( | NetClock::time_point | tp | ) |
Definition at line 30 of file AMMInfo.cpp.
| Json::Value xrpl::doAMMInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 41 of file AMMInfo.cpp.
| Json::Value xrpl::doBlackList | ( | RPC::JsonContext & | context | ) |
Definition at line 10 of file BlackList.cpp.
| Json::Value xrpl::doBookOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 19 of file BookOffers.cpp.
| Json::Value xrpl::doBookChanges | ( | RPC::JsonContext & | context | ) |
Definition at line 204 of file BookOffers.cpp.
| Json::Value xrpl::doCanDelete | ( | RPC::JsonContext & | context | ) |
Definition at line 16 of file CanDelete.cpp.
| Json::Value xrpl::doConnect | ( | RPC::JsonContext & | context | ) |
Definition at line 20 of file Connect.cpp.
| Json::Value xrpl::doConsensusInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file ConsensusInfo.cpp.
| Json::Value xrpl::doDepositAuthorized | ( | RPC::JsonContext & | context | ) |
Definition at line 22 of file DepositAuthorized.cpp.
| Json::Value xrpl::doManifest | ( | RPC::JsonContext & | context | ) |
Definition at line 13 of file DoManifest.cpp.
| Json::Value xrpl::doFeature | ( | RPC::JsonContext & | context | ) |
Definition at line 17 of file Feature1.cpp.
| Json::Value xrpl::doFee | ( | RPC::JsonContext & | context | ) |
| Json::Value xrpl::doFetchInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file FetchInfo.cpp.
| Json::Value xrpl::doGatewayBalances | ( | RPC::JsonContext & | context | ) |
Definition at line 35 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 26 of file GetAggregatePrice.cpp.
|
static |
Definition at line 102 of file GetAggregatePrice.cpp.
| Json::Value xrpl::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 134 of file GetAggregatePrice.cpp.
|
static |
Definition at line 18 of file GetCounts.cpp.
| Json::Value xrpl::getCountsJson | ( | Application & | app, |
| int | minObjectCount | ||
| ) |
Definition at line 43 of file GetCounts.cpp.
| Json::Value xrpl::doGetCounts | ( | RPC::JsonContext & | context | ) |
Definition at line 119 of file GetCounts.cpp.
| Json::Value xrpl::doChannelAuthorize | ( | RPC::JsonContext & | context | ) |
Definition at line 23 of file PayChanClaim.cpp.
| Json::Value xrpl::doChannelVerify | ( | RPC::JsonContext & | context | ) |
Definition at line 94 of file PayChanClaim.cpp.
| Json::Value xrpl::doLedgerAccept | ( | RPC::JsonContext & | context | ) |
Definition at line 15 of file LedgerAccept.cpp.
| Json::Value xrpl::doLedgerCleaner | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file LedgerCleanerHandler.cpp.
| Json::Value xrpl::doLedgerClosed | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file LedgerClosed.cpp.
| Json::Value xrpl::doLedgerCurrent | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file LedgerCurrent.cpp.
| Json::Value xrpl::doLedgerData | ( | RPC::JsonContext & | context | ) |
Definition at line 28 of file LedgerData.cpp.
| Json::Value xrpl::doLedgerEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 737 of file LedgerEntry.cpp.
| Json::Value xrpl::doLedgerHeader | ( | RPC::JsonContext & | context | ) |
Definition at line 15 of file xrpld/rpc/handlers/LedgerHeader.cpp.
| Json::Value xrpl::doLedgerRequest | ( | RPC::JsonContext & | context | ) |
Definition at line 16 of file LedgerRequest.cpp.
| Json::Value xrpl::doLogLevel | ( | RPC::JsonContext & | context | ) |
Definition at line 15 of file LogLevel.cpp.
| Json::Value xrpl::doLogRotate | ( | RPC::JsonContext & | context | ) |
Definition at line 10 of file LogRotate.cpp.
| Json::Value xrpl::doNFTBuyOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 147 of file NFTOffers.cpp.
| Json::Value xrpl::doNFTSellOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 133 of file NFTOffers.cpp.
| Json::Value xrpl::doNoRippleCheck | ( | RPC::JsonContext & | context | ) |
Definition at line 44 of file NoRippleCheck.cpp.
| Json::Value xrpl::doOwnerInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 16 of file OwnerInfo.cpp.
| Json::Value xrpl::doPathFind | ( | RPC::JsonContext & | context | ) |
Definition at line 14 of file PathFind.cpp.
| Json::Value xrpl::doPause | ( | RPC::JsonContext & | ) |
| Json::Value xrpl::doPeers | ( | RPC::JsonContext & | context | ) |
| Json::Value xrpl::doPing | ( | RPC::JsonContext & | context | ) |
| Json::Value xrpl::doPrint | ( | RPC::JsonContext & | context | ) |
| Json::Value xrpl::doRandom | ( | RPC::JsonContext & | context | ) |
Definition at line 20 of file Random.cpp.
| Json::Value xrpl::doResume | ( | RPC::JsonContext & | ) |
| Json::Value xrpl::doPeerReservationsAdd | ( | RPC::JsonContext & | context | ) |
Definition at line 17 of file Reservations.cpp.
| Json::Value xrpl::doPeerReservationsDel | ( | RPC::JsonContext & | context | ) |
Definition at line 70 of file Reservations.cpp.
| Json::Value xrpl::doPeerReservationsList | ( | RPC::JsonContext & | context | ) |
Definition at line 97 of file Reservations.cpp.
| Json::Value xrpl::doRipplePathFind | ( | RPC::JsonContext & | context | ) |
Definition at line 14 of file RipplePathFind.cpp.
| Json::Value xrpl::doServerDefinitions | ( | RPC::JsonContext & | context | ) |
Definition at line 279 of file ServerDefinitions.cpp.
| Json::Value xrpl::doServerInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 12 of file ServerInfo.cpp.
| Json::Value xrpl::doServerState | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file ServerState.cpp.
| Json::Value xrpl::doSign | ( | RPC::JsonContext & | context | ) |
Definition at line 15 of file SignHandler.cpp.
| Json::Value xrpl::doSignFor | ( | RPC::JsonContext & | context | ) |
Definition at line 16 of file SignFor.cpp.
| Json::Value xrpl::doSimulate | ( | RPC::JsonContext & | context | ) |
Definition at line 301 of file Simulate.cpp.
| Json::Value xrpl::doStop | ( | RPC::JsonContext & | context | ) |
| Json::Value xrpl::doSubmit | ( | RPC::JsonContext & | context | ) |
Definition at line 26 of file Submit.cpp.
| Json::Value xrpl::doSubmitMultiSigned | ( | RPC::JsonContext & | context | ) |
Definition at line 15 of file SubmitMultiSigned.cpp.
| Json::Value xrpl::doSubscribe | ( | RPC::JsonContext & | context | ) |
Definition at line 19 of file Subscribe.cpp.
| Json::Value xrpl::doTransactionEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 19 of file TransactionEntry.cpp.
| Json::Value xrpl::doTxJson | ( | RPC::JsonContext & | context | ) |
| Json::Value xrpl::doTxHistory | ( | RPC::JsonContext & | context | ) |
Definition at line 20 of file TxHistory.cpp.
| Json::Value xrpl::doTxReduceRelay | ( | RPC::JsonContext & | context | ) |
Definition at line 10 of file TxReduceRelay.cpp.
| Json::Value xrpl::doUnlList | ( | RPC::JsonContext & | context | ) |
Definition at line 11 of file UnlList.cpp.
| Json::Value xrpl::doUnsubscribe | ( | RPC::JsonContext & | context | ) |
Definition at line 14 of file Unsubscribe.cpp.
| Json::Value xrpl::doValidationCreate | ( | RPC::JsonContext & | context | ) |
Definition at line 26 of file ValidationCreate.cpp.
| Json::Value xrpl::doWalletPropose | ( | RPC::JsonContext & | context | ) |
Definition at line 49 of file WalletPropose.cpp.
| Json::Value xrpl::doValidators | ( | RPC::JsonContext & | context | ) |
Definition at line 10 of file Validators.cpp.
| Json::Value xrpl::doValidatorListSites | ( | RPC::JsonContext & | context | ) |
Definition at line 10 of file ValidatorListSites.cpp.
| Json::Value xrpl::doValidatorInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 14 of file ValidatorInfo.cpp.
| Json::Value xrpl::doVaultInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 60 of file VaultInfo.cpp.
|
static |
Definition at line 22 of file LedgerEntry.cpp.
|
static |
Definition at line 36 of file LedgerEntry.cpp.
|
static |
Definition at line 42 of file LedgerEntry.cpp.
|
static |
Definition at line 54 of file LedgerEntry.cpp.
|
static |
Definition at line 60 of file LedgerEntry.cpp.
|
static |
Definition at line 88 of file LedgerEntry.cpp.
|
static |
Definition at line 119 of file LedgerEntry.cpp.
|
static |
Definition at line 125 of file LedgerEntry.cpp.
|
static |
Definition at line 156 of file LedgerEntry.cpp.
|
static |
Definition at line 177 of file LedgerEntry.cpp.
|
static |
Definition at line 247 of file LedgerEntry.cpp.
|
static |
Definition at line 300 of file LedgerEntry.cpp.
|
static |
Definition at line 313 of file LedgerEntry.cpp.
|
static |
Definition at line 368 of file LedgerEntry.cpp.
|
static |
Definition at line 388 of file LedgerEntry.cpp.
|
static |
Definition at line 394 of file LedgerEntry.cpp.
|
static |
Definition at line 400 of file LedgerEntry.cpp.
|
static |
Definition at line 420 of file LedgerEntry.cpp.
|
static |
Definition at line 440 of file LedgerEntry.cpp.
|
static |
Definition at line 461 of file LedgerEntry.cpp.
|
static |
Definition at line 474 of file LedgerEntry.cpp.
|
static |
Definition at line 480 of file LedgerEntry.cpp.
|
static |
Definition at line 486 of file LedgerEntry.cpp.
|
static |
Definition at line 492 of file LedgerEntry.cpp.
|
static |
Definition at line 513 of file LedgerEntry.cpp.
|
static |
Definition at line 534 of file LedgerEntry.cpp.
|
static |
Definition at line 540 of file LedgerEntry.cpp.
|
static |
Definition at line 569 of file LedgerEntry.cpp.
|
static |
Definition at line 621 of file LedgerEntry.cpp.
|
static |
Definition at line 627 of file LedgerEntry.cpp.
|
static |
Definition at line 648 of file LedgerEntry.cpp.
|
static |
Definition at line 669 of file LedgerEntry.cpp.
|
static |
Definition at line 694 of file LedgerEntry.cpp.
|
static |
Definition at line 17 of file NFTOffers.cpp.
|
static |
Definition at line 45 of file NFTOffers.cpp.
|
static |
Definition at line 18 of file NoRippleCheck.cpp.
|
static |
Definition at line 22 of file Simulate.cpp.
|
static |
Definition at line 56 of file Simulate.cpp.
|
static |
Definition at line 111 of file Simulate.cpp.
|
static |
Definition at line 152 of file Simulate.cpp.
|
static |
Definition at line 214 of file Simulate.cpp.
|
static |
Definition at line 14 of file Submit.cpp.
|
static |
| std::pair< TxResult, RPC::Status > xrpl::doTxHelp | ( | RPC::Context & | context, |
| TxArgs | args | ||
| ) |
| Json::Value xrpl::populateJsonResponse | ( | std::pair< TxResult, RPC::Status > const & | res, |
| TxArgs const & | args, | ||
| RPC::JsonContext const & | context | ||
| ) |
|
static |
Definition at line 11 of file ValidationCreate.cpp.
|
static |
Definition at line 14 of file VaultInfo.cpp.
| double xrpl::estimate_entropy | ( | std::string const & | input | ) |
Definition at line 20 of file WalletPropose.cpp.
| Json::Value xrpl::walletPropose | ( | Json::Value const & | params | ) |
Definition at line 55 of file WalletPropose.cpp.
Definition at line 25 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 xrpl::open_ledger_t xrpl::open_ledger |
| constexpr struct xrpl::batch_view_t xrpl::batch_view |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| std::array<keyletDesc<AccountID const&>, 6> const xrpl::directAccountKeylets |
|
static |
Definition at line 57 of file LedgerHeader.h.
|
constexpr |
Protocol specific constants.
This information is, implicitly, part of the protocol.
Definition at line 23 of file Protocol.h.
|
constexpr |
Largest legal byte size of a transaction.
Definition at line 26 of file Protocol.h.
|
constexpr |
The maximum number of unfunded offers to delete at once.
Definition at line 29 of file Protocol.h.
|
constexpr |
The maximum number of expired offers to delete at once.
Definition at line 32 of file Protocol.h.
|
constexpr |
The maximum number of metadata entries allowed in one transaction.
Definition at line 35 of file Protocol.h.
|
constexpr |
The maximum number of entries per directory page.
Definition at line 38 of file Protocol.h.
|
constexpr |
The maximum number of pages allowed in a directory.
Made obsolete by fixDirectoryLimit amendment.
Definition at line 44 of file Protocol.h.
|
constexpr |
The maximum number of items in an NFT page.
Definition at line 47 of file Protocol.h.
|
constexpr |
The maximum number of owner directory entries for account to be deletable.
Definition at line 50 of file Protocol.h.
|
constexpr |
The maximum number of token offers that can be canceled at once.
Definition at line 53 of file Protocol.h.
|
constexpr |
The maximum number of offers in an offer directory for NFT to be burnable.
Definition at line 56 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 67 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside an NFT.
Definition at line 204 of file Protocol.h.
|
constexpr |
The maximum length of a Data element inside a DID.
Definition at line 207 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside a DID.
Definition at line 210 of file Protocol.h.
|
constexpr |
The maximum length of an Attestation inside a DID.
Definition at line 213 of file Protocol.h.
|
constexpr |
The maximum length of a domain.
Definition at line 216 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside a Credential.
Definition at line 219 of file Protocol.h.
|
constexpr |
The maximum length of a CredentialType inside a Credential.
Definition at line 222 of file Protocol.h.
|
constexpr |
The maximum number of credentials can be passed in array.
Definition at line 225 of file Protocol.h.
|
constexpr |
The maximum number of credentials can be passed in array for permissioned domain.
Definition at line 229 of file Protocol.h.
|
constexpr |
The maximum length of MPTokenMetadata.
Definition at line 232 of file Protocol.h.
|
constexpr |
The maximum amount of MPTokenIssuance.
Definition at line 235 of file Protocol.h.
|
constexpr |
The maximum length of Data payload.
Definition at line 238 of file Protocol.h.
|
constexpr |
Vault withdrawal policies.
Definition at line 241 of file Protocol.h.
|
constexpr |
Default IOU scale factor for a Vault.
Definition at line 244 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 248 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 252 of file Protocol.h.
|
constexpr |
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition at line 266 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside an Oracle.
Definition at line 269 of file Protocol.h.
|
constexpr |
The maximum length of a Provider inside an Oracle.
Definition at line 272 of file Protocol.h.
|
constexpr |
The maximum size of a data series array inside an Oracle.
Definition at line 275 of file Protocol.h.
|
constexpr |
The maximum length of a SymbolClass inside an Oracle.
Definition at line 278 of file Protocol.h.
|
constexpr |
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.
Definition at line 283 of file Protocol.h.
|
constexpr |
The maximum price scaling factor.
Definition at line 287 of file Protocol.h.
|
constexpr |
The maximum percentage of outliers to trim.
Definition at line 291 of file Protocol.h.
|
constexpr |
The maximum number of delegate permissions an account can grant.
Definition at line 295 of file Protocol.h.
|
constexpr |
The maximum number of transactions that can be in a batch.
Definition at line 298 of file Protocol.h.
| Rate const xrpl::parityRate(QUALITY_ONE) |
A transfer rate signifying a 1:1 exchange.
|
static |
|
constexpr |
Definition at line 20 of file STValidation.h.
|
constexpr |
Definition at line 23 of file STValidation.h.
|
constexpr |
Configure the native currency.
Number of drops in the genesis account.
Definition at line 25 of file SystemParameters.h.
|
staticconstexpr |
The XRP ledger network's earliest allowed sequence.
Definition at line 51 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 55 of file SystemParameters.h.
|
constexpr |
The minimum amount of support an amendment should have.
Definition at line 58 of file SystemParameters.h.
|
constexpr |
The minimum amount of time an amendment must hold a majority.
Definition at line 61 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 |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Number of drops per 1 XRP.
Definition at line 240 of file XRPAmount.h.
|
staticconstexpr |
Definition at line 18 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 19 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 20 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 21 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 22 of file SHAMapTreeNode.h.
|
constexpr |
Definition at line 223 of file Number.cpp.
|
static |
Definition at line 17 of file libxrpl/net/HTTPClient.cpp.
|
static |
Definition at line 85 of file AccountID.cpp.
|
static |
Definition at line 452 of file Feature.cpp.
|
staticconstexpr |
Definition at line 43 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 44 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 46 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 47 of file IOUAmount.cpp.
|
static |
Definition at line 21 of file SField.cpp.
| SField const xrpl::sfIndex(access, STI_UINT256, 258, "index") | ( | access | , |
| STI_UINT256 | , | ||
| 258 | , | ||
| "index" | |||
| ) |
|
static |
Definition at line 52 of file STAmount.cpp.
|
static |
Definition at line 53 of file STAmount.cpp.
|
static |
Definition at line 54 of file STAmount.cpp.
|
staticconstexpr |
Definition at line 124 of file tokens.cpp.
|
staticconstexpr |
Definition at line 127 of file tokens.cpp.
|
static |
Definition at line 503 of file SHAMap.cpp.
|
constexpr |
Definition at line 55 of file InboundLedger.cpp.
|
staticconstexpr |
Definition at line 43 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 46 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 49 of file LedgerMaster.cpp.
|
constexpr |
Definition at line 15 of file TransactionAcquire.cpp.
| create_genesis_t const xrpl::create_genesis {} |
Definition at line 32 of file Ledger.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 8 of file src/xrpld/app/main/Tuning.h.
|
constexpr |
Definition at line 9 of file src/xrpld/app/main/Tuning.h.
|
constexpr |
Definition at line 11 of file src/xrpld/app/main/Tuning.h.
|
constexpr |
Definition at line 15 of file ValidatorSite.cpp.
|
constexpr |
Definition at line 16 of file ValidatorSite.cpp.
|
constexpr |
Definition at line 17 of file ValidatorSite.cpp.
|
staticconstexpr |
Definition at line 15 of file LendingHelpers.h.
|
static |
Definition at line 856 of file NetworkOPs.cpp.
|
static |
Definition at line 869 of file NetworkOPs.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 23 of file Escrow.cpp.
|
constexpr |
Definition at line 24 of file Escrow.cpp.
|
staticconstexpr |
Definition at line 34 of file MPTokenIssuanceSet.cpp.
|
static |
Definition at line 21 of file SetSignerList.cpp.
|
constexpr |
Definition at line 10 of file XChainBridge.h.
|
constexpr |
Possible ledger close time resolutions.
Values should not be duplicated.
Definition at line 16 of file LedgerTiming.h.
|
constexpr |
Initial resolution of ledger close time.
Definition at line 25 of file LedgerTiming.h.
|
constexpr |
Close time resolution in genesis ledger.
Definition at line 28 of file LedgerTiming.h.
|
constexpr |
How often we increase the close time resolution (in numbers of ledgers)
Definition at line 31 of file LedgerTiming.h.
|
constexpr |
How often we decrease the close time resolution (in numbers of ledgers)
Definition at line 34 of file LedgerTiming.h.
|
constexpr |
Definition at line 94 of file Config.cpp.
| CheckpointersCollection xrpl::checkpointers |
Definition at line 58 of file DatabaseCon.cpp.
|
static |
Definition at line 21 of file SociDB.cpp.
|
staticconstexpr |
Definition at line 122 of file Handshake.h.
|
staticconstexpr |
Definition at line 124 of file Handshake.h.
|
staticconstexpr |
Definition at line 126 of file Handshake.h.
|
staticconstexpr |
Definition at line 128 of file Handshake.h.
|
staticconstexpr |
Definition at line 129 of file Handshake.h.
|
staticconstexpr |
Definition at line 130 of file Handshake.h.
|
constexpr |
The list of protocol versions we speak and we prefer to use.
Definition at line 21 of file ProtocolVersion.cpp.
| std::unordered_map<protocol::MessageType, TrafficCount::category> const xrpl::type_lookup |
Definition at line 6 of file TrafficCount.cpp.
|
constexpr |
|
constexpr |
Definition at line 596 of file ServerHandler.cpp.
|
constexpr |
Definition at line 597 of file ServerHandler.cpp.
|
constexpr |
Definition at line 598 of file ServerHandler.cpp.
|
constexpr |
Definition at line 599 of file ServerHandler.cpp.