Freeze/interactive tutorials: edits per reviews

This commit is contained in:
mDuo13
2021-10-26 14:43:10 -07:00
parent 7c6257c2d8
commit 473f38329d
27 changed files with 57 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ html: send-xrp.html
parent: get-started.html
blurb: Test Netを使用してXRPの送金をテストします。
cta_text: XRPを送金しよう
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code

View File

@@ -3,7 +3,7 @@ html: send-xrp.html
parent: get-started.html
blurb: Learn how to send test payments right from your browser.
cta_text: Send XRP
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
@@ -58,7 +58,7 @@ The secret key shown here is for example only. For development purposes, you can
{% include '_snippets/interactive-tutorials/generate-step.md' %}
When you're [building actual production-ready software](production-readiness.html), you'll instead use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
### {{n.next()}}. Connect to a Testnet Server
@@ -83,7 +83,7 @@ _Java_
<!-- MULTICODE_BLOCK_END -->
For this tutorial, you can connect directly from your browser by pressing the following button:
For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}

View File

@@ -2,7 +2,7 @@
html: require-destination-tags.html
parent: manage-account-settings.html
blurb: Require users to specify a destination tag when sending to your address.
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
@@ -37,7 +37,7 @@ To transact on the XRP Ledger, you need an address and secret key, and some XRP.
{% include '_snippets/interactive-tutorials/generate-step.md' %}
When you're [building actual production-ready software](production-readiness.html), you'll instead use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
### {{n.next()}}. Connect to the Network
@@ -45,7 +45,7 @@ You must be connected to the network to submit transactions to it. The following
{{ include_code("_code-samples/get-started/js/base.js", language="js") }}
For this tutorial, you can connect directly from your browser by pressing the following button:
For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}

View File

@@ -2,7 +2,7 @@
html: use-tickets.html
parent: manage-account-settings.html
blurb: Use Tickets to send a transaction outside of normal Sequence order.
embed_ripple_lib: true
embed_xrpl_js: true
status: not_enabled
filters:
- interactive_steps
@@ -46,7 +46,7 @@ To transact on the XRP Ledger, you need an address and secret key, and some XRP.
{% include '_snippets/interactive-tutorials/generate-step.md' %}
When you're [building actual production-ready software](production-readiness.html), you'll instead use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
### {{n.next()}}. Connect to Network
@@ -63,7 +63,7 @@ _JavaScript_
**Note:** The code samples in this tutorial use JavaScript's [`async`/`await` pattern](https://javascript.info/async-await). Since `await` needs to be used from within an `async` function, the remaining code samples are written to continue inside the `main()` function started here. You can also use Promise methods `.then()` and `.catch()` instead of `async`/`await` if you prefer.
For this tutorial, you can connect directly from your browser by pressing the following button:
For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}

View File

@@ -2,7 +2,7 @@
html: enable-no-freeze.html
parent: use-tokens.html
blurb: Permanently give up your account's ability to freeze tokens it issues.
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
@@ -43,7 +43,7 @@ For this tutorial, you can get credentials from the following interface:
{% include '_snippets/interactive-tutorials/generate-step.md' %}
When you're [building actual production-ready software](production-readiness.html), you'll instead use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
### {{n.next()}}. Connect to the Network
@@ -58,7 +58,7 @@ _JavaScript_
<!-- MULTICODE_BLOCK_END -->
For this tutorial, you can connect directly from your browser by pressing the following button:
For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}

View File

@@ -2,7 +2,7 @@
html: enact-global-freeze.html
parent: use-tokens.html
blurb: Freeze all tokens issued by your address.
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
@@ -46,7 +46,7 @@ For this tutorial, you can get credentials from the following interface:
{% include '_snippets/interactive-tutorials/generate-step.md' %}
When you're [building actual production-ready software](production-readiness.html), you'll instead use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
### {{n.next()}}. Connect to the Network
@@ -61,12 +61,12 @@ _JavaScript_
<!-- MULTICODE_BLOCK_END -->
For this tutorial, you can connect directly from your browser by pressing the following button:
For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}
### {{n.next()}}. Send AccountSet Transaction to Enact the Freeze
### {{n.next()}}. Send AccountSet Transaction to Start the Freeze
To enable the Global Freeze setting, send an [AccountSet transaction][] with a `SetFlag` field containing the [`asfGlobalFreeze` value (`7`)](accountset.html#accountset-flags). To send the transaction, you first _prepare_ it to fill out all the necessary fields, then _sign_ it with your account's secret key, and finally _submit_ it to the network.
@@ -101,7 +101,7 @@ _WebSocket_
<!-- MULTICODE_BLOCK_END -->
{{ start_step("Send AccountSet") }}
{{ start_step("Send AccountSet (Start Freeze)") }}
<button class="btn btn-primary previous-steps-required send-accountset" data-wait-step-name="Wait" data-action="start_freeze">Send AccountSet</button>
<div class="loader collapse"><img class="throbber" src="assets/img/xrp-loader-96.png">Sending...</div>
<div class="output-area"></div>
@@ -225,7 +225,7 @@ _WebSocket_
<!-- MULTICODE_BLOCK_END -->
{{ start_step("End Freeze") }}
{{ start_step("Send AccountSet (End Freeze)") }}
<button class="btn btn-primary previous-steps-required send-accountset" data-wait-step-name="Wait (again)" data-action="end_freeze">Send AccountSet (end the freeze)</button>
<div class="loader collapse"><img class="throbber" src="assets/img/xrp-loader-96.png">Sending...</div>
<div class="output-area"></div>

View File

@@ -2,7 +2,7 @@
html: freeze-a-trust-line.html
parent: use-tokens.html
blurb: Freeze an individual holder of a token.
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
@@ -69,7 +69,7 @@ For purposes of this tutorial, use the following interface to connect and perfor
### {{n.next()}}. Choose Trust Line
You can only freeze one trust line per transaction, so you need to know which one you want. A trust line is uniquely identified by these 3 things:
You can only freeze one trust line per transaction, so you need to know which trust line you want. Each of your trust lines is uniquely identified by these 3 things:
- Your own address.
- The address of the account linked to yours via the trust line.
@@ -188,7 +188,7 @@ _WebSocket_
<div class="output-area"></div>
{{ end_step() }}
**Note:** If you want to freeze multiple trust lines in different currencies with the same counterparty, repeat this step for each one, choosing a different currency code each time. It is possible to send several transactions in a single ledger if you use different [sequence numbers](basic-data-types.html#account-sequence) for each. <!--{# TODO: link rapid/batch submission guidelines when https://github.com/XRPLF/xrpl-dev-portal/issues/1025 is done #}-->
**Note:** If you want to freeze multiple trust lines in different currencies with the same counterparty, repeat this step for each trust line. It is possible to send several transactions in a single ledger if you use a different [sequence number](basic-data-types.html#account-sequence) for each transaction. <!--{# TODO: link rapid/batch submission guidelines when https://github.com/XRPLF/xrpl-dev-portal/issues/1025 is done #}-->
### {{n.next()}}. Wait for Validation

View File

@@ -2,7 +2,7 @@
html: issue-a-fungible-token.html
parent: use-tokens.html
blurb: Create your own token and issue it on the XRP Ledger Testnet.
embed_ripple_lib: true
embed_xrpl_js: true
filters:
- interactive_steps
- include_code
@@ -60,7 +60,7 @@ In this tutorial, the hot address receives the tokens you issue from the cold ad
**Caution:** Ripple provides the [Testnet and Devnet](parallel-networks.html) for testing purposes only, and sometimes resets the state of these test networks along with all balances. As a precaution, **do not** use the same addresses on Testnet/Devnet and Mainnet.
When you're [building actual production-ready software](production-readiness.html), you'll instead use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
When you're [building production-ready software](production-readiness.html), you should use an existing account, and manage your keys using a [secure signing configuration](set-up-secure-signing.html).
### {{n.next()}}. Connect to the Network
@@ -86,7 +86,7 @@ _Java_
**Note:** The JavaScript code samples in this tutorial use the [`async`/`await` pattern](https://javascript.info/async-await). Since `await` needs to be used from within an `async` function, the remaining code samples are written to continue inside the `main()` function started here. You can also use Promise methods `.then()` and `.catch()` instead of `async`/`await` if you prefer.
For this tutorial, you can connect directly from your browser by pressing the following button:
For this tutorial, click the following button to connect:
{% include '_snippets/interactive-tutorials/connect-step.md' %}