From cefc36510b9337385952e857b11a2c543b43ec7f Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 28 Jan 2019 22:09:04 -0800 Subject: [PATCH 1/7] Add flask icon to sidebar for features not enabled --- assets/css/devportal.css | 13 ++++++++++ dactyl-config.yml | 11 ++++++++ tool/template-sidebar_nav.html | 36 +++++++++++++-------------- tool/template-status_not_enabled.html | 1 + 4 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 tool/template-status_not_enabled.html diff --git a/assets/css/devportal.css b/assets/css/devportal.css index 5b9657bdb4..8b435487f8 100644 --- a/assets/css/devportal.css +++ b/assets/css/devportal.css @@ -989,6 +989,19 @@ a.current { } +/* Status labels ("DEV" etc) for non-enabled features ----------------------- */ + +.status { + cursor: help; + padding: 1px 2px; + font-weight: normal; + text-indent: 0; +} + +.status.not_enabled { + color: #0F72E5; +} + /* Responsive design for different viewscreens ------------------------------ */ @media (max-width: 991px) { diff --git a/dactyl-config.yml b/dactyl-config.yml index f538f6bc1b..08964be18f 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -273,6 +273,7 @@ pages: doc_type: Concepts category: Complex Payment Types blurb: Checks let users create deferred payments that can be canceled or cashed by the intended recipients. + status: not_enabled targets: - local @@ -811,6 +812,7 @@ pages: category: Use Complex Payment Types subcategory: Use Checks blurb: Checks in the XRP Ledger authorize another account to claim funds later, similar to how personal paper checks work. + status: not_enabled template: template-landing-children.html targets: - local @@ -821,6 +823,7 @@ pages: doc_type: Tutorials category: Use Complex Payment Types subcategory: Use Checks + status: not_enabled targets: - local @@ -830,6 +833,7 @@ pages: doc_type: Tutorials category: Use Complex Payment Types subcategory: Use Checks + status: not_enabled targets: - local @@ -839,6 +843,7 @@ pages: doc_type: Tutorials category: Use Complex Payment Types subcategory: Use Checks + status: not_enabled targets: - local @@ -848,6 +853,7 @@ pages: doc_type: Tutorials category: Use Complex Payment Types subcategory: Use Checks + status: not_enabled targets: - local @@ -857,6 +863,7 @@ pages: doc_type: Tutorials category: Use Complex Payment Types subcategory: Use Checks + status: not_enabled targets: - local @@ -866,6 +873,7 @@ pages: doc_type: Tutorials category: Use Complex Payment Types subcategory: Use Checks + status: not_enabled targets: - local @@ -2365,6 +2373,7 @@ pages: category: Transaction Formats subcategory: Transaction Types blurb: Cancel a check. + status: not_enabled targets: - local @@ -2376,6 +2385,7 @@ pages: category: Transaction Formats subcategory: Transaction Types blurb: Redeem a check. + status: not_enabled targets: - local @@ -2387,6 +2397,7 @@ pages: category: Transaction Formats subcategory: Transaction Types blurb: Create a check. + status: not_enabled targets: - local diff --git a/tool/template-sidebar_nav.html b/tool/template-sidebar_nav.html index 80646f5b1d..c96359ca58 100644 --- a/tool/template-sidebar_nav.html +++ b/tool/template-sidebar_nav.html @@ -39,9 +39,9 @@ {% for page in funnelpages %} {% if loop.index == 1 %}{# Skip the first element since it's linked by the funnel header #} {% elif page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% endfor %} @@ -81,25 +81,25 @@ {% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #} {% if page.subcategory is undefined %} {% if page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% elif page.subcategory not in printed_subcategories %} {% if page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% elif page.subcategory == currentpage.subcategory %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %} {% if subpage != page %} {% if subpage == currentpage %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% endif %} {% endfor %} @@ -152,14 +152,14 @@ {% for subpage in supercatpages %} {% if loop.index != 1 %}{# Skip the first element since it's linked by the supercategory header #} {% if subpage.category not in printed_categories %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% set category_members = supercatpages|selectattr('category', 'equalto', subpage.category)|list %} {% for subsubpage in category_members %} {% if subsubpage != subpage and (subsubpage.subcategory is undefined or subsubpage == category_members|selectattr('subcategory', 'equalto', subsubpage.subcategory)|first) %} -
  • {{ subsubpage.name }}
  • +
  • {{ subsubpage.name }}{% if subsubpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% endfor %} {% set _ = printed_categories.append(subpage.category) %} @@ -203,25 +203,25 @@ {% if loop.index != 1 %}{# Skip the first element since it's linked by the category header #} {% if page.subcategory is undefined %} {% if page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% elif page.subcategory not in printed_subcategories %} {% if page == currentpage %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% elif page.subcategory == currentpage.subcategory %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ page.name }}
  • +
  • {{ page.name }}{% if page.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% for subpage in catpages|selectattr('subcategory', 'equalto', page.subcategory) %} {% if subpage != page %} {% if subpage == currentpage %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% else %} -
  • {{ subpage.name }}
  • +
  • {{ subpage.name }}{% if subpage.status == "not_enabled" %} {% include 'template-status_not_enabled.html' %}{% endif %}
  • {% endif %} {% endif %} {% endfor %} diff --git a/tool/template-status_not_enabled.html b/tool/template-status_not_enabled.html new file mode 100644 index 0000000000..1cb9813085 --- /dev/null +++ b/tool/template-status_not_enabled.html @@ -0,0 +1 @@ + From d8e4cb7d221875ccde51d031b0911b61cd995738 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Thu, 14 Feb 2019 19:14:21 -0800 Subject: [PATCH 2/7] Status icons in body text --- assets/css/devportal.css | 4 ++++ dactyl-config.yml | 1 + tool/filter_external_links.py | 1 + tool/filter_status_badges.py | 24 ++++++++++++++++++++++++ tool/template-status_enabled.html | 1 + 5 files changed, 31 insertions(+) create mode 100644 tool/filter_status_badges.py create mode 100644 tool/template-status_enabled.html diff --git a/assets/css/devportal.css b/assets/css/devportal.css index 8b435487f8..bbb6e13844 100644 --- a/assets/css/devportal.css +++ b/assets/css/devportal.css @@ -1002,6 +1002,10 @@ a.current { color: #0F72E5; } +.status.enabled { + color: #5cb85c; +} + /* Responsive design for different viewscreens ------------------------------ */ @media (max-width: 991px) { diff --git a/dactyl-config.yml b/dactyl-config.yml index 08964be18f..b98f2ca412 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -32,6 +32,7 @@ default_filters: - badges - link_replacement - external_links + - status_badges callout_class: "devportal-callout" diff --git a/tool/filter_external_links.py b/tool/filter_external_links.py index 1421827491..2fe655b5cf 100644 --- a/tool/filter_external_links.py +++ b/tool/filter_external_links.py @@ -13,6 +13,7 @@ import re def filter_soup(soup, **kwargs): + print("currentpage", kwargs["currentpage"]) """ Adds an external link marker to external links and makes them open in new tabs. diff --git a/tool/filter_status_badges.py b/tool/filter_status_badges.py new file mode 100644 index 0000000000..2ae9417b8e --- /dev/null +++ b/tool/filter_status_badges.py @@ -0,0 +1,24 @@ +################################################ +## Amendment Flask Marker +## Author: Rome Reginelli +## Copyright: Ripple Labs, 2019 +## +## Uses the +## - end with an "external link" icon +## (FontAwesome required) +################################################ + +import os.path + +STATUSES = { + "(NOT_ENABLED_ICON)": "template-status_not_enabled.html", + "(ENABLED_ICON)": "template-status_enabled.html", +} + + +def filter_markdown(md, config={}, **kwargs): + for needle, src_file in STATUSES.items(): + with open(os.path.join(config["template_path"], src_file)) as f: + replacement = f.read().strip() + md = md.replace(needle, replacement) + return md diff --git a/tool/template-status_enabled.html b/tool/template-status_enabled.html new file mode 100644 index 0000000000..79df1332cb --- /dev/null +++ b/tool/template-status_enabled.html @@ -0,0 +1 @@ + From f55c9de62625e2c9adc5c4d1bc61d989482756d0 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Thu, 14 Feb 2019 19:14:35 -0800 Subject: [PATCH 3/7] Use amendment status icons in body text --- .../concepts/decentralized-exchange/ticksize.md | 2 +- .../issued-currencies/authorized-trust-lines.md | 2 +- .../payment-system-basics/accounts/depositauth.md | 15 +++++++-------- .../ledger-object-types/accountroot.md | 2 +- .../ledger-object-types/check.md | 2 +- .../ledger-object-types/escrow.md | 2 +- .../ledger-object-types/paychannel.md | 2 +- .../ledger-object-types/signerlist.md | 9 ++++++--- .../transaction-types/checkcancel.md | 4 ++-- 9 files changed, 21 insertions(+), 19 deletions(-) diff --git a/content/concepts/decentralized-exchange/ticksize.md b/content/concepts/decentralized-exchange/ticksize.md index 507fff5a3d..826572d868 100644 --- a/content/concepts/decentralized-exchange/ticksize.md +++ b/content/concepts/decentralized-exchange/ticksize.md @@ -1,6 +1,6 @@ # Tick Size -_Requires the [TickSize amendment](known-amendments.html#ticksize)._ +_((ENABLED_ICON) Requires the [TickSize amendment](known-amendments.html#ticksize).)_ When an Offer is placed into an order book, its exchange rate is truncated based on the `TickSize` values set by the issuers of the currencies involved in the Offer. When a trader offers to exchange XRP and an issued currency, the `TickSize` from the issuer of the currency applies. When a trader offers to exchange two issued currencies, the offer uses the smaller `TickSize` value (that is, the one with fewer significant digits). If neither currency has a `TickSize` set, the default behavior applies. diff --git a/content/concepts/issued-currencies/authorized-trust-lines.md b/content/concepts/issued-currencies/authorized-trust-lines.md index 5b2c1818f1..f043c93512 100644 --- a/content/concepts/issued-currencies/authorized-trust-lines.md +++ b/content/concepts/issued-currencies/authorized-trust-lines.md @@ -10,7 +10,7 @@ The transaction to authorize a trust line must be signed by the issuing address, 2. A customer sends a [TrustSet transaction][] to create a trust line from her XRP Ledger address to the gateway's issuing address. This indicates that she is willing to hold a specific currency issued by the gateway, up to a specific numeric limit. 3. The gateway's issuing address sends a TrustSet transaction authorizing the customer's trust line. -**Tip:** An issuing gateway can authorize a trust line preemptively (step 3), before the customer has created it. This creates a trust line with zero limit, so that the customer's TrustSet transaction (step 2) sets the limit on the pre-authorized trust line. _(Requires the [TrustSetAuth amendment](known-amendments.html#trustsetauth), which has been enabled in the production XRP Ledger since 2016-07-19.)_ +**Tip:** An issuing gateway can authorize a trust line preemptively (step 3), before the customer has created it. This creates a trust line with zero limit, so that the customer's TrustSet transaction (step 2) sets the limit on the pre-authorized trust line. _((ENABLED_ICON) Requires the [TrustSetAuth amendment](known-amendments.html#trustsetauth).)_ ## RequireAuth Setting diff --git a/content/concepts/payment-system-basics/accounts/depositauth.md b/content/concepts/payment-system-basics/accounts/depositauth.md index 103930b35e..01afcf1d13 100644 --- a/content/concepts/payment-system-basics/accounts/depositauth.md +++ b/content/concepts/payment-system-basics/accounts/depositauth.md @@ -1,6 +1,6 @@ # Deposit Authorization -_(Requires the [DepositAuth amendment](known-amendments.html#depositauth).)_ +_((ENABLED_ICON) Requires the [DepositAuth amendment](known-amendments.html#depositauth).)_ Deposit Authorization is an optional feature of an [account](accounts.html) in the XRP Ledger. With Deposit Authorization enabled, transactions cannot send value of any kind to the account unless the sender of those transactions is the account itself. This includes transfers of XRP and issued currencies. @@ -14,7 +14,7 @@ The Deposit Authorization flag introduces an option for those using the XRP Ledg When you have Deposit Authorization enabled, you can receive money from [Checks](known-amendments.html#checks), [Escrow](escrow.html), and [Payment Channels](known-amendments.html#paychan). In these transactions' "two-step" model, first the source sends a transaction to authorize sending funds, then the destination sends a transaction to authorize receiving those funds. -To receive money from [Payment transactions][] when you have Deposit Authorization enabled, you must [preauthorize](#preauthorization) the senders of those Payments. _(Requires the [DepositPreauth amendment][])_ +To receive money from [Payment transactions][] when you have Deposit Authorization enabled, you must [preauthorize](#preauthorization) the senders of those Payments. _((ENABLED_ICON) Requires the [DepositPreauth amendment][])_ ## Recommended Usage @@ -29,15 +29,15 @@ To get the full effect of Deposit Authorization, Ripple recommends also doing th An account with Deposit Authorization enabled: - **Cannot** be the destination of [Payment transactions][], with **the following exceptions**: - - If the destination has [preauthorized](#preauthorization) the sender of the Payment. _(Requires the [DepositPreauth amendment][])_ + - If the destination has [preauthorized](#preauthorization) the sender of the Payment. _((ENABLED_ICON) Requires the [DepositPreauth amendment][])_ - If the account's XRP balance is equal to or below the minimum account [reserve requirement](reserves.html), it can be the destination of an XRP Payment whose `Amount` is equal or less than the minimum account reserve (currently 20 XRP). This is to prevent an account from becoming "stuck" by being unable to send transactions but also unable to receive XRP. The account's owner reserve does not matter for this case. - Can receive XRP from [PaymentChannelClaim transactions][] **only in the following cases**: - The sender of the PaymentChannelClaim transaction is the destination of the payment channel. - - The destination of the PaymentChannelClaim transaction has [preauthorized](#preauthorization) the sender of the PaymentChannelClaim. _(Requires the [DepositPreauth amendment][])_ + - The destination of the PaymentChannelClaim transaction has [preauthorized](#preauthorization) the sender of the PaymentChannelClaim. _((ENABLED_ICON) Requires the [DepositPreauth amendment][])_ - Can receive XRP from [EscrowFinish transactions][] **only in the following cases**: - The sender of the EscrowFinish transaction is the destination of the escrow. - - The destination of the EscrowFinish transaction has [preauthorized](#preauthorization) the sender of the EscrowFinish. _(Requires the [DepositPreauth amendment][])_ -- **Can** receive XRP or issued currencies by sending a [CheckCash][] transaction. _(Requires the [Checks amendment](known-amendments.html#checks).)_ + - The destination of the EscrowFinish transaction has [preauthorized](#preauthorization) the sender of the EscrowFinish. _((ENABLED_ICON) Requires the [DepositPreauth amendment][])_ +- **Can** receive XRP or issued currencies by sending a [CheckCash][] transaction. _((NOT_ENABLED_ICON) Requires the [Checks amendment](known-amendments.html#checks).)_ - **Can** receive XRP or issued currencies by sending [OfferCreate transactions][]. - If the account sends an OfferCreate transaction that is not fully executed immediately, it **can** receive the remainder of the ordered XRP or issued currency later when the offer is consumed by other accounts' [Payment][] and [OfferCreate][] transactions. - If the account has created any trust lines without the [NoRipple flag](rippling.html) enabled, or has enabled the DefaultRipple flag and issued any currency, the account **can** receive the issued currencies of those trust lines in [Payment transactions][] as a result of rippling. It cannot be the destination of those transactions. @@ -64,7 +64,7 @@ If the result of the `Flags` value bitwise-AND the `lsfDepositAuth` flag value ( ## Preauthorization -_(Requires the [DepositPreauth amendment][])_ +_((ENABLED_ICON) Requires the [DepositPreauth amendment][])_ Accounts with DepositAuth enabled can _preauthorize_ certain senders, to allow payments from those senders to succeed even with DepositAuth enabled. This allows specific senders to send funds directly without the receiver taking action on each transaction individually. Preauthorization is not required to use DepositAuth, but can make certain operations more convenient. @@ -99,7 +99,6 @@ You can use the [deposit_authorized method][] to see if an account is authorized - The `DisallowXRP` flag indicates that an account should not receive XRP. This is a softer protection than Deposit Authorization, and is not enforced by the XRP Ledger. (Client applications should honor this flag or at least warn about it.) - The `RequireDest` flag indicates that an account can only receive currency amounts if the sending transaction specifies a [Destination Tag](become-an-xrp-ledger-gateway.html#source-and-destination-tags). This protects users from forgetting to indicate the purpose of a payment, but does not protect recipients from unknown senders, who can make up arbitrary destination tags. - [Partial Payments](partial-payments.html) provide a way for accounts to return unwanted payments while subtracting [transfer fees](transfer-fees.html) and exchange rates from the amount delivered instead of adding them to the amount sent. - diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-types/accountroot.md b/content/references/rippled-api/ledger-data-formats/ledger-object-types/accountroot.md index dbb2d3f36f..0ccb0ae3f1 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-types/accountroot.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-types/accountroot.md @@ -43,7 +43,7 @@ The `AccountRoot` object has the following fields: | `EmailHash` | String | Hash128 | _(Optional)_ The md5 hash of an email address. Clients can use this to look up an avatar through services such as [Gravatar](https://en.gravatar.com/). | | `MessageKey` | String | VariableLength | _(Optional)_ A public key that may be used to send encrypted messages to this account. In JSON, uses hexadecimal. No more than 33 bytes. | | `RegularKey` | String | AccountID | _(Optional)_ The address of a keypair that can be used to sign transactions for this account instead of the master key. Use a [SetRegularKey transaction][] to change this value. | -| `TickSize` | Number | UInt8 | _(Optional)_ How many significant digits to use for exchange rates of Offers involving currencies issued by this address. Valid values are `3` to `15`, inclusive. _(Requires the [TickSize amendment](known-amendments.html#ticksize).)_ | +| `TickSize` | Number | UInt8 | _(Optional)_ How many significant digits to use for exchange rates of Offers involving currencies issued by this address. Valid values are `3` to `15`, inclusive. _((ENABLED_ICON) Requires the [TickSize amendment](known-amendments.html#ticksize).)_ | | `TransferRate` | Number | UInt32 | _(Optional)_ A [transfer fee](https://ripple.com/knowledge_center/transfer-fees/) to charge other users for sending currency issued by this account to each other. | | `WalletLocator` | String | Hash256 | _(Optional)_ **DEPRECATED**. Do not use. | | `WalletSize` | Number | UInt32 | _(Optional)_ **DEPRECATED**. Do not use. | diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-types/check.md b/content/references/rippled-api/ledger-data-formats/ledger-object-types/check.md index 9c65b8638e..79aca585ad 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-types/check.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-types/check.md @@ -1,7 +1,7 @@ # Check [[Source]
    ](https://github.com/ripple/rippled/blob/master/src/ripple/protocol/impl/LedgerFormats.cpp#L157-L170 "Source") -_Requires the [Checks Amendment](known-amendments.html#checks)._ +_((NOT_ENABLED_ICON) Requires the [Checks Amendment](known-amendments.html#checks).)_ A `Check` object describes a check, similar to a paper personal check, which can be cashed by its destination to get money from its sender. (The potential payment has already been approved by its sender, but no money moves until it is cashed. Unlike an [Escrow](escrow.html), the money for a Check is not set aside, so cashing the Check could fail due to lack of funds.) diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-types/escrow.md b/content/references/rippled-api/ledger-data-formats/ledger-object-types/escrow.md index 59f3369796..19de03128f 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-types/escrow.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-types/escrow.md @@ -1,7 +1,7 @@ # Escrow [[Source]
    ](https://github.com/ripple/rippled/blob/c6b6d82a754fe449cc533e18659df483c10a5c98/src/ripple/protocol/impl/LedgerFormats.cpp#L90-L101 "Source") -_(Requires the [Escrow Amendment](known-amendments.html#escrow).)_ +_((ENABLED_ICON) Requires the [Escrow Amendment](known-amendments.html#escrow).)_ The `Escrow` object type represents a held payment of XRP waiting to be executed or canceled. An [EscrowCreate transaction][] creates an `Escrow` object in the ledger. A successful [EscrowFinish][] or [EscrowCancel][] transaction deletes the object. If the ``Escrow`` object has a [_crypto-condition_](https://tools.ietf.org/html/draft-thomas-crypto-conditions-02), the payment can only succeed if an EscrowFinish transaction provides the corresponding _fulfillment_ that satisfies the condition. (The only supported crypto-condition type is [PREIMAGE-SHA-256](https://tools.ietf.org/html/draft-thomas-crypto-conditions-02#section-8.1).) If the `Escrow` object has a `FinishAfter` time, the held payment can only execute after that time. diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-types/paychannel.md b/content/references/rippled-api/ledger-data-formats/ledger-object-types/paychannel.md index 108842721a..8040fb9878 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-types/paychannel.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-types/paychannel.md @@ -1,7 +1,7 @@ # PayChannel [[Source]
    ](https://github.com/ripple/rippled/blob/master/src/ripple/protocol/impl/LedgerFormats.cpp#L141-L155 "Source") -_(Requires the [PayChan Amendment](known-amendments.html#paychan).)_ +_((ENABLED_ICON) Requires the [PayChan Amendment](known-amendments.html#paychan).)_ The `PayChannel` object type represents a payment channel. Payment channels enable small, rapid off-ledger payments of XRP that can be later reconciled with the consensus ledger. A payment channel holds a balance of XRP that can only be paid out to a specific destination address until the channel is closed. Any unspent XRP is returned to the channel's owner (the source address that created and funded it) when the channel closes. diff --git a/content/references/rippled-api/ledger-data-formats/ledger-object-types/signerlist.md b/content/references/rippled-api/ledger-data-formats/ledger-object-types/signerlist.md index 6b64937de3..7e0b376679 100644 --- a/content/references/rippled-api/ledger-data-formats/ledger-object-types/signerlist.md +++ b/content/references/rippled-api/ledger-data-formats/ledger-object-types/signerlist.md @@ -1,7 +1,10 @@ # SignerList [[Source]
    ](https://github.com/ripple/rippled/blob/6d2e3da30696bd10e3bb11a5ff6d45d2c4dae90f/src/ripple/protocol/impl/LedgerFormats.cpp#L127 "Source") -The `SignerList` object type represents a list of parties that, as a group, are authorized to sign a transaction in place of an individual account. You can create, replace, or remove a SignerList using a [SignerListSet transaction][]. This object type is introduced by the [MultiSign amendment](known-amendments.html#multisign). [New in: rippled 0.31.0][] +_((ENABLED_ICON) Requires the [MultiSign amendment](known-amendments.html#multisign).)_ + +The `SignerList` object type represents a list of parties that, as a group, are authorized to sign a transaction in place of an individual account. You can create, replace, or remove a SignerList using a [SignerListSet transaction][]. + ## Example {{currentpage.name}} JSON @@ -68,7 +71,7 @@ When processing a multi-signed transaction, the server dereferences the `Account ## {{currentpage.name}} Flags -_Requires the [MultiSignReserve Amendment](known-amendments.html#multisignreserve)._ +_((NOT_ENABLED_ICON) Requires the [MultiSignReserve Amendment](known-amendments.html#multisignreserve).)_ SignerList objects can have the following flag value: @@ -82,7 +85,7 @@ A SignerList contributes to its owner's [reserve requirement](reserves.html). Without the [MultiSignReserve Amendment](known-amendments.html#multisignreserve), the SignerList itself counts as two objects, and each member of the list counts as one. As a result, the total owner reserve associated with a SignerList is anywhere from 3 times to 10 times the reserve required by a single trust line ([RippleState](ripplestate.html)) or [Offer](offer.html) object in the ledger. -With the [MultiSignReserve Amendment](known-amendments.html#multisignreserve) enabled, the SignerList counts as one object, regardless of how many members it has. As a result, the owner reserve associated with a SignerList is 5 XRP, regardless of how many members it has. +(NOT_ENABLED_ICON) With the [MultiSignReserve Amendment](known-amendments.html#multisignreserve) enabled, the SignerList counts as one object, regardless of how many members it has. As a result, the owner reserve associated with a SignerList is 5 XRP, regardless of how many members it has. The reserve requirement does not change for SignerLists created before the MultiSignReserve amendment. To take advantage of the new reserve, update the SignerList by sending a [SignerListSet transaction][]. diff --git a/content/references/rippled-api/transaction-formats/transaction-types/checkcancel.md b/content/references/rippled-api/transaction-formats/transaction-types/checkcancel.md index e93db11003..167cb75091 100644 --- a/content/references/rippled-api/transaction-formats/transaction-types/checkcancel.md +++ b/content/references/rippled-api/transaction-formats/transaction-types/checkcancel.md @@ -1,7 +1,7 @@ # CheckCancel -[[Source]
    ](https://github.com/ripple/rippled/blob/master/src/ripple/app/tx/impl/CancelCheck.cpp "Source") +[[Source]
    ](https://github.com/ripple/rippled/blob/master/src/ripple/app/tx/impl/CancelCheck.cpp "Source") -_Requires the [Checks Amendment](known-amendments.html#checks)._ +_(NOT_ENABLED_ICON) Requires the [Checks Amendment](known-amendments.html#checks)._ Cancels an unredeemed Check, removing it from the ledger without sending any money. The source or the destination of the check can cancel a Check at any time using this transaction type. If the Check has expired, any address can cancel it. From 6c464cc27bfa0919b694a61891fde8a2471f3784 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Fri, 15 Feb 2019 19:08:05 -0800 Subject: [PATCH 4/7] Make templates compatible with StrictUndefined Dactyl v0.8.0 required --- dactyl-config.yml | 1 - tool/filter_external_links.py | 2 - tool/template-base.html | 14 ++-- tool/template-breadcrumbs.html | 24 +++---- tool/template-footer.html | 2 +- tool/template-github-edit.html | 2 +- tool/template-home.html | 4 +- tool/template-landing-docs.html | 4 +- tool/template-landing-references.html | 8 +-- tool/template-page-children.html | 18 ++--- tool/template-sidebar_nav.html | 98 +++++++++++++-------------- tool/template-use-case.html | 2 +- 12 files changed, 88 insertions(+), 91 deletions(-) diff --git a/dactyl-config.yml b/dactyl-config.yml index b98f2ca412..faa1114d73 100644 --- a/dactyl-config.yml +++ b/dactyl-config.yml @@ -1858,7 +1858,6 @@ pages: - md: references/rippled-api/admin-rippled-methods/admin-rippled-methods.md html: admin-rippled-methods.html - blurb: Admin methods are meant only for trusted personnel in charge of keeping the server operational. Admin methods include commands for managing, monitoring, and debugging the server. funnel: Docs doc_type: References supercategory: rippled API diff --git a/tool/filter_external_links.py b/tool/filter_external_links.py index 2fe655b5cf..544e3ae391 100644 --- a/tool/filter_external_links.py +++ b/tool/filter_external_links.py @@ -11,9 +11,7 @@ import re - def filter_soup(soup, **kwargs): - print("currentpage", kwargs["currentpage"]) """ Adds an external link marker to external links and makes them open in new tabs. diff --git a/tool/template-base.html b/tool/template-base.html index 4dde71cdff..0d6d5c3729 100644 --- a/tool/template-base.html +++ b/tool/template-base.html @@ -55,10 +55,10 @@ - +