Skip to content

Commit bfcc744

Browse files
authored
Merge pull request #3077 from XRPLF/mpt_generator_tutorial
Update the UI (and screenshots), link to demo video.
2 parents 3d0b0cd + c190daa commit bfcc744

10 files changed

+12
-6
lines changed

_code-samples/mpt-generator/mpt-generator.htm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1>MPT Generator</h1>
4242
</tr>
4343
<tr>
4444
<td align="right">
45-
<span class="tooltip" tooltip-data="Arbitrary human-readable name for the account.">
45+
<span class="tooltip" tooltip-data="An optional arbitrary human-readable name for the account.">
4646
<label for="accountNameField">Account Name</label>
4747
</span>
4848
</td>
@@ -86,7 +86,7 @@ <h1>MPT Generator</h1>
8686
</tr>
8787
<tr>
8888
<td>
89-
<span class="tooltip" tooltip-data="An asset scale is the difference, in orders of magnitude, between a standard unit and a corresponding fractional unit.">
89+
<span class="tooltip" tooltip-data="The decimal precision of the MPT. For example, a US Dollar Stablecoin will likely have an asset scale of 2, representing 2 decimal places; 1 unit of this MPToken would equal 0.01 US Dollars.">
9090
Asset Scale
9191
</span>
9292
</td>
@@ -120,7 +120,7 @@ <h1>MPT Generator</h1>
120120
<tr>
121121
<td>
122122
<span class="tooltip" tooltip-data="Issuer can claw back value from holders.">
123-
Clawback
123+
Allow Clawback
124124
</span>
125125
</td>
126126
<td align="middle">
@@ -132,8 +132,8 @@ <h1>MPT Generator</h1>
132132
</tr>
133133
<tr>
134134
<td>
135-
<span class="tooltip" tooltip-data="MPT can be locked individually and globally.">
136-
Lock
135+
<span class="tooltip" tooltip-data="Allow MPT to be locked individually and globally.">
136+
Allow Lock
137137
</span>
138138
</td>
139139
<td align="middle">
2.77 KB
Loading
Loading
-64.9 KB
Loading
-43.5 KB
Loading
-1.99 KB
Loading
Loading
-17.6 KB
Loading

docs/references/protocol/transactions/types/mptokenissuancecreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This example assumes that the issuer of the token is the signer of the transacti
4141
| Field | JSON Type | [Internal Type][] | Description |
4242
|:----------------|:--------------------|:------------------|:-------------------|
4343
| `TransactionType` | string | UInt16 | Indicates the new transaction type MPTokenIssuanceCreate. |
44-
| `AssetScale` | number | UInt8 | (Optional) An asset scale is the difference, in orders of magnitude, between a standard unit and a corresponding fractional unit. More formally, the asset scale is a non-negative integer (0, 1, 2, …) such that one standard unit equals 10^(-scale) of a corresponding fractional unit. If the fractional unit equals the standard unit, then the asset scale is 0. Note that this value is optional, and will default to 0 if not supplied. |
44+
| `AssetScale` | number | UInt8 | (Optional) An asset scale is the difference, in orders of magnitude, between a standard unit and a corresponding fractional unit. More formally, the asset scale is a non-negative integer (0, 1, 2, …) such that one standard unit equals 10^(-scale) of a corresponding fractional unit. For example, a US Dollar Stablecoin will likely have an asset scale of _2_, representing 2 points of precision; 1 unit of this MPToken would equal 0.01 US Dollars. If the fractional unit equals the standard unit, then the asset scale is 0. Note that this value is optional, and will default to 0 if not supplied. |
4545
| `Flags` | number | UInt16 | Specifies the flags for this transaction. See [MPTokenIssuanceCreate Flags](#mptokenissuancecreate-flags). |
4646
| `TransferFee` | number | UInt16 | (Optional) The value specifies the fee to charged by the issuer for secondary sales of the Token, if such sales are allowed. Valid values for this field are between 0 and 50,000 inclusive, allowing transfer rates of between 0.000% and 50.000% in increments of 0.001. The field _must not_ be present if the tfMPTCanTransfer flag is not set. If it is, the transaction should fail and a fee should be claimed. |
4747
| `MaximumAmount` | string | UInt64 | (Optional) The maximum asset amount of this token that can ever be issued, as a base-10 number encoded as a string. The current default maximum limit is 9,223,372,036,854,775,807 (2^63-1). _This limit may increase in the future. If an upper limit is required, you must specify this field._ |

docs/use-cases/tokenization/creating-an-asset-backed-multi-purpose-token.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ const transactionJson = {
357357

358358
A US Treasury bill (T-bill) is a short-term debt security issued by the US government. T-bills are considered a safe investment because they're backed by the US government. T-bills are appealing to investors in American states that have high income tax because the interest earned is exempt from state and local taxes. See [Treasury Bills In Depth](https://www.treasurydirect.gov/research-center/history-of-marketable-securities/bills/t-bills-indepth/).
359359

360+
<iframe width="560" height="315" src="https://www.youtube.com/embed/ZZ2KZTEJECg?si=IilL9rPrHqsi21Lb" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
361+
360362
### Creating an Issuing Account
361363

362364
You can use the Account Configurator to experiment with the settings for a T-bill issuing account in a sandbox environment. When you are satisfied with your configuration, you can create an account on XRPL Mainnet to begin trading.
@@ -452,4 +454,8 @@ Click **Gather MPT Information** to copy the account information and MPT Issuanc
452454

453455
![Account and MPT ID in the result field.](../../img/uc-mpt1-t-bill-gather-mpt-info.png)
454456

457+
## See Also:
458+
459+
- [Sending MPTs](../../tutorials/javascript/send-payments/sending-mpts.md)
460+
455461
{% raw-partial file="/docs/_snippets/common-links.md" /%}

0 commit comments

Comments
 (0)