mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-28 23:55:49 +00:00
Add words from new features such as NFTs to the spell checker (#1615)
* Add words from new features such as NFTs to the spell checker * Add more proper nouns and general purpose words * Add more proper nouns and general purpose words * Update to use backticks * Update proper nouns and generic words * Fix style for words based on style checker report * Style/spelling fixes * Fix links broken by style/spelling updates * More edits for style * Finish updates to get style checker to pass Co-authored-by: mDuo13 <mduo13@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4c9ca0f219
commit
845422da7f
@@ -12,8 +12,6 @@ labels:
|
||||
|
||||
This example shows how to:
|
||||
|
||||
|
||||
|
||||
1. Create NFToken Sell Offers.
|
||||
2. Create NFToken Buy Offers.
|
||||
3. Accept NFToken Sell Offers.
|
||||
@@ -21,8 +19,6 @@ This example shows how to:
|
||||
5. Get a list of offers for a particular NFToken.
|
||||
6. Cancel an offer.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-portal/tree/master/content/_code-samples/quickstart/js/quickstart.zip){.github-code-download} archive to try each of the samples in your own browser.
|
||||
@@ -33,8 +29,6 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
|
||||
## Get Accounts
|
||||
|
||||
|
||||
|
||||
1. Open `4.transfer-nftokens.html` in a browser.
|
||||
2. Choose your ledger instance (**Testnet** or **Devnet**).
|
||||
3. Get test accounts.
|
||||
@@ -45,7 +39,6 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
1. Click **Get New Standby Account**.
|
||||
2. Click **Get New Operational Account**.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -54,16 +47,13 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
|
||||
To create a NFToken sell offer:
|
||||
|
||||
|
||||
1. Enter the **Amount** of the sell offer in drops (millionths of an XRP).
|
||||
2. Set the **Flags** field to _1_.
|
||||
3. Enter the **NFToken ID** of the NFToken you want to sell.
|
||||
4. Optionally, enter a number of days until **Expiration**.
|
||||
5. Click **Create Sell Offer**.
|
||||
|
||||
The important piece of information in the response is the Token Offer Index, labeled as _nft_offer_index,_ which is used to accept the sell offer.
|
||||
|
||||
|
||||
The important piece of information in the response is the NFToken Offer Index, labeled as `nft_offer_index`, which you use to accept the sell offer.
|
||||
|
||||

|
||||
|
||||
@@ -71,17 +61,13 @@ The important piece of information in the response is the Token Offer Index, lab
|
||||
|
||||
## Accept Sell Offer
|
||||
|
||||
Once a sell offer is available, another account can opt to accept the offer and purchase the NFToken.
|
||||
Once a sell offer is available, another account can opt to accept the offer and buy the NFToken.
|
||||
|
||||
To accept an available sell offer:
|
||||
|
||||
|
||||
|
||||
1. Enter the **NFToken Offer Index** (labeled as _nft_offer_index_ in the token offer results. This is not the same as the _nft_id_).
|
||||
1. Enter the **NFToken Offer Index** (labeled as `nft_offer_index` in the token offer results. This is different from the `NFTokenID`.)
|
||||
2. Click **Accept Sell Offer**.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -92,16 +78,12 @@ You can offer to buy a NFToken from another account.
|
||||
|
||||
To create an offer to buy a NFToken:
|
||||
|
||||
|
||||
|
||||
1. Enter the **Amount** of your offer.
|
||||
2. Enter the **NFToken ID**.
|
||||
3. Enter the owner’s account string in the **Owner** field.
|
||||
4. Optionally enter the number of days until **Expiration**.
|
||||
5. Click **Create Buy Offer**.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -110,13 +92,9 @@ To create an offer to buy a NFToken:
|
||||
|
||||
To accept an offer to buy a NFToken:
|
||||
|
||||
|
||||
|
||||
1. Enter the **NFToken Offer Index** (the _nft_offer_index_ of the token buy offer).
|
||||
1. Enter the **NFToken Offer Index** (the `nft_offer_index` of the NFToken buy offer).
|
||||
3. Click **Accept Buy Offer**.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -127,8 +105,6 @@ To list the buy and sell offers associated with a NFToken:
|
||||
1. Enter the **NFToken ID**.
|
||||
2. Click **Get Offers**.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -137,13 +113,9 @@ To list the buy and sell offers associated with a NFToken:
|
||||
|
||||
To cancel a buy or sell offer that you have created:
|
||||
|
||||
|
||||
|
||||
1. Enter the **NFToken Offer Index**.
|
||||
2. Click **Cancel Offer**.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -163,7 +135,7 @@ You can download the [Quickstart Samples](https://github.com/XRPLF/xrpl-dev-port
|
||||
```
|
||||
|
||||
|
||||
Connect to the ledger and get the wallet accounts.
|
||||
Connect to the ledger and get the accounts.
|
||||
|
||||
|
||||
```
|
||||
@@ -179,7 +151,7 @@ async function createSellOffer() {
|
||||
document.getElementById('standbyResultField').value = results
|
||||
```
|
||||
|
||||
Compute the Expiration Date, if present. The expiration date represents the number of seconds after the Ripple Epoch that the offer should expire. Start with the current date, add the number of days till expiration, then set the expirationDate variable to the converted date in Ripple time.
|
||||
Compute the Expiration Date, if present. The expiration date represents the number of seconds after the Ripple Epoch that the offer should expire. Start with the current date, add the number of days till expiration, then set the `expirationDate` variable to the converted date in Ripple time.
|
||||
|
||||
```
|
||||
//------------------------------------- Prepare Expiration Date
|
||||
@@ -213,7 +185,7 @@ If the Expiration Date is present, append it to the transaction.
|
||||
|
||||
```
|
||||
|
||||
If the Destination field is not empty, append it to the transaction. When the destination is set, only the destination account can purchase the NFToken.
|
||||
If the Destination field is not empty, append it to the transaction. When the destination is set, only the destination account can buy the NFToken.
|
||||
|
||||
```
|
||||
if(standbyDestinationField.value !== '') {
|
||||
@@ -319,7 +291,7 @@ async function createBuyOffer() {
|
||||
```
|
||||
|
||||
|
||||
Get the account wallets and connect to the ledger.
|
||||
Get the account and connect to the ledger.
|
||||
|
||||
|
||||
```
|
||||
@@ -445,7 +417,7 @@ async function cancelOffer() {
|
||||
```
|
||||
|
||||
|
||||
Get the standby wallet and connect to the ledger.
|
||||
Get the standby address and connect to the ledger.
|
||||
|
||||
|
||||
```
|
||||
@@ -631,7 +603,7 @@ async function acceptSellOffer() {
|
||||
```
|
||||
|
||||
|
||||
Get the account wallets and connect to the ledger.
|
||||
Get the accounts and connect to the ledger.
|
||||
|
||||
|
||||
```
|
||||
@@ -724,7 +696,7 @@ async function acceptBuyOffer() {
|
||||
```
|
||||
|
||||
|
||||
Get the account wallets and connect to the ledger.
|
||||
Get the accounts and connect to the ledger.
|
||||
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user