Update tutorial for testnet

This commit is contained in:
ddawson
2022-11-14 17:45:08 -08:00
parent 4d1939f670
commit 30102e5152
38 changed files with 17 additions and 42 deletions

View File

@@ -27,11 +27,11 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
## Get Accounts ## Get Accounts
1. Open `6.authorized-minter.html` in a browser. 1. Open `6.authorized-minter.html` in a browser.
2. Get test accounts. 2. Choose your ledger instance (_Testnet_ or _Devnet_).
1. If you have existing NFT-Devnet account seeds: 1. If you have existing test account seeds:
1. Paste the account seeds in the **Seeds** field. 1. Paste the account seeds in the **Seeds** field.
2. Click **Get Accounts from Seeds**. 2. Click **Get Accounts from Seeds**.
2. If you do not have existing NFT-Devnet accounts: 2. If you do not have existing test accounts:
1. Click **Get New Standby Account**. 1. Click **Get New Standby Account**.
2. Click **Get New Operational Account**. 2. Click **Get New Operational Account**.
@@ -398,9 +398,6 @@ Update the form with fields and buttons to support the new functions.
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">

View File

@@ -360,9 +360,6 @@ For this form:
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">

View File

@@ -28,12 +28,12 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
## Get Accounts ## Get Accounts
1. Open `5.broker-nfts.html` in a browser. 1. Open `5.broker-nfts.html` in a browser.
2. Choose **XLS20-NFT** as your ledger instance. 2. Choose your ledger instance.
3. Get test accounts. 3. Get test accounts.
1. If you have existing NFT-Devnet account seeds: 1. If you have existing account seeds:
1. Paste 3 account seeds in the **Seeds** field. 1. Paste 3 account seeds in the **Seeds** field.
2. Click **Get Accounts from Seeds**. 2. Click **Get Accounts from Seeds**.
2. If you do not have NFT-Devnet account seeds: 2. If you do not have account seeds:
1. Click **Get New Standby Account**. 1. Click **Get New Standby Account**.
2. Click **Get New Operational Account**. 2. Click **Get New Operational Account**.
3. Click **Get New Broker Account** 3. Click **Get New Broker Account**
@@ -625,9 +625,6 @@ Revise the HTML form to add a new Broker section at the top.
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">

View File

@@ -10,24 +10,18 @@ labels:
--- ---
# 1. Create Accounts and Send XRP # 1. Create Accounts and Send XRP
This example shows how to: This example shows how to:
1. Create accounts on the Testnet, funded with 10000 test XRP with no actual value. 1. Create accounts on the Testnet, funded with 10000 test XRP with no actual value.
2. Retrieve the accounts from seed values. 2. Retrieve the accounts from seed values.
3. Transfer XRP between accounts. 3. Transfer XRP between accounts.
When you create an account, you receive a public/private key pair offline. It does not appear on the ledger until it is funded with XRP. This example shows how to create accounts for Testnet, but not how to create an account that you can use on Mainnet. When you create an account, you receive a public/private key pair offline. It does not appear on the ledger until it is funded with XRP. This example shows how to create accounts for Testnet, but not how to create an account that you can use on Mainnet.
![Token Test Harness](img/quickstart2.png) ![Token Test Harness](img/quickstart2.png)
## Prerequisites ## Prerequisites
To get started, create a new folder on your local disk and install the JavaScript library using `npm`. To get started, create a new folder on your local disk and install the JavaScript library using `npm`.
@@ -47,7 +41,7 @@ To get test accounts:
1. Open `1.get-accounts-send-xrp.html` in a browser 1. Open `1.get-accounts-send-xrp.html` in a browser
2. Choose **NFT-Devnet**, **Testnet**, or **Devnet**. 2. Choose **Testnet** or **Devnet**.
3. Click **Get New Standby Account**. 3. Click **Get New Standby Account**.
4. Click **Get New Operational Account.** 4. Click **Get New Operational Account.**
5. Copy and paste the **Seeds** field in a persistent location, such as a Notepad, so that you can reuse the accounts after reloading the form. 5. Copy and paste the **Seeds** field in a persistent location, such as a Notepad, so that you can reuse the accounts after reloading the form.
@@ -80,7 +74,7 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
## ripplex-1-send-xrp.js ## ripplex-1-send-xrp.js
This example can be used with any XRP Ledger network. Currently, there are _Testnet_ and _Devnet,_ with the experimental _NFT-Devnet_ server with support for NFTokens. You can update the code to choose different or additional XRP Ledger networks. This example can be used with any XRP Ledger network, _Testnet_, or _Devnet_. You can update the code to choose different or additional XRP Ledger networks.
### getNet() ### getNet()
@@ -100,7 +94,6 @@ This function uses brute force `if` statements to discover the selected network
``` ```
let net let net
if (document.getElementById("xls").checked) net = "wss://xls20-sandbox.rippletest.net:51233"
if (document.getElementById("tn").checked) net = "wss://s.altnet.rippletest.net:51233" if (document.getElementById("tn").checked) net = "wss://s.altnet.rippletest.net:51233"
if (document.getElementById("dn").checked) net = "wss://s.devnet.rippletest.net:51233" if (document.getElementById("dn").checked) net = "wss://s.devnet.rippletest.net:51233"
return net return net
@@ -380,7 +373,6 @@ Connect to your selected ledger.
``` ```
Prepare the transaction. This is a Payment transaction from the standby wallet to the operational wallet. Prepare the transaction. This is a Payment transaction from the standby wallet to the operational wallet.
The _Payment_ transaction expects the XRP to be expressed in drops, or 1/millionth of an XRP. You can use the xrpToDrops utility to convert the send amount for you (which beats having to type an extra 6 zeroes to send 1 XRP). The _Payment_ transaction expects the XRP to be expressed in drops, or 1/millionth of an XRP. You can use the xrpToDrops utility to convert the send amount for you (which beats having to type an extra 6 zeroes to send 1 XRP).
@@ -542,9 +534,6 @@ Create a standard HTML form to send transactions and requests, then display the
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">

View File

@@ -648,9 +648,6 @@ Update the form to support the new functions.
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">

View File

@@ -12,10 +12,12 @@ labels:
This example shows how to: This example shows how to:
1. Mint new Non-Fungible Tokens (NFTokens).
1. Mint new Non-fungible Tokens (NFTokens).
2. Get a list of existing NFTokens. 2. Get a list of existing NFTokens.
3. Delete (Burn) a NFToken. 3. Delete (Burn) a NFToken.
![Test harness with mint NFToken fields](img/quickstart8.png) ![Test harness with mint NFToken fields](img/quickstart8.png)
@@ -30,10 +32,10 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
1. Open `3.mint-nfts.html` in a browser. 1. Open `3.mint-nfts.html` in a browser.
2. Get test accounts. 2. Get test accounts.
1. If you have existing NFT-Devnet account seeds: 1. If you have existing Testnet account seeds:
1. Paste the account seeds in the **Seeds** field. 1. Paste the account seeds in the **Seeds** field.
2. Click **Get Accounts from Seeds**. 2. Click **Get Accounts from Seeds**.
2. If you do not have existing NFT-Devnet accounts: 2. If you do not have existing Testnet accounts:
1. Click **Get New Standby Account**. 1. Click **Get New Standby Account**.
2. Click **Get New Operational Account**. 2. Click **Get New Operational Account**.
@@ -480,11 +482,7 @@ Bold text in the following indicates changes to the form that support the new fu
<body> <body>
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">
<label for="testnet">Testnet</label> <label for="testnet">Testnet</label>

View File

@@ -10,9 +10,12 @@ labels:
# 4. Transfer NFTokens # 4. Transfer NFTokens
{% include '_snippets/nfts-disclaimer.md' %}
This example shows how to: This example shows how to:
1. Create NFToken Sell Offers. 1. Create NFToken Sell Offers.
2. Create NFToken Buy Offers. 2. Create NFToken Buy Offers.
3. Accept NFToken Sell Offers. 3. Accept NFToken Sell Offers.
@@ -1189,9 +1192,6 @@ Update the form with fields and buttons to support the new functions.
<h1>Token Test Harness</h1> <h1>Token Test Harness</h1>
<form id="theForm"> <form id="theForm">
Choose your ledger instance: Choose your ledger instance:
<input type="radio" id="xls" name="server"
value="wss://xls20-sandbox.rippletest.net:51233" checked>
<label for="xls20">XLS20-NFT</label>
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="radio" id="tn" name="server" <input type="radio" id="tn" name="server"
value="wss://s.altnet.rippletest.net:51233"> value="wss://s.altnet.rippletest.net:51233">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 KiB

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 KiB

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 184 KiB