Skip to content

Commit 4ce8367

Browse files
committed
docs: update FAssets minting guide to clarify XRP payment process and proof retrieval
1 parent 5aac719 commit 4ce8367

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/fassets/developer-guides/3-fassets-minting.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ The following code demonstrates how to reserve collateral by calling the [`reser
6565

6666
## Send Payment on XRP Ledger
6767

68+
The next step is to send the XRP Ledger payment to the agent, and you can use this script to do that.
69+
6870
<CodeBlock language="typescript" title="scripts/fassets/xrpPayment.ts">
6971
{FAssetsCreateXrpPayment}
7072
</CodeBlock>
@@ -80,13 +82,13 @@ The following code demonstrates how to reserve collateral by calling the [`reser
8082

8183
## Generate Proof with Flare Data Connector
8284

83-
Use the [FDC Payment](/fdc/guides/hardhat/payment) script to generate a Merkle proof by providing the XRP transaction details.
84-
85-
FDC returns an attestation response with the required proof structure to execute minting.
85+
Use the [FDC Payment](/fdc/guides/hardhat/payment) script to validate the XRP payment and generate a Merkle proof.
8686

8787
## Execute Minting
8888

89-
Once you have the proof, call [`executeMinting()`](/fassets/reference/IAssetManager#executeminting) to mint FAssets.
89+
Once the XRP payment is validated, you can retrieve the FDC proof from the [Data Availability Layer](/fdc/overview#data-availability-layer) and call the [`executeMinting()`](/fassets/reference/IAssetManager#executeminting) function on the AssetManager contract.
90+
91+
This script demonstrates how to retrieve the FDC proof and execute minting.
9092

9193
<CodeBlock language="typescript" title="scripts/fassets/executeMinting.ts">
9294
{FAssetsExecuteMinting}
@@ -98,7 +100,7 @@ Once you have the proof, call [`executeMinting()`](/fassets/reference/IAssetMana
98100
2. Declare the constant `ASSET_MANAGER_ADDRESS` pointing to the FXRP AssetManager on the Songbird Testnet (Coston network).
99101

100102
3. Set the collateral reservation ID to the previously reserved minting request.
101-
4. Set the Flare Data Connector (FDC) round ID to retrieve the proof for.
103+
4. Set the Flare Data Connector (FDC) round ID to retrieve the proof.
102104
5. Prepare the FDC request payload data.
103105
6. Function to get the proof from the FDC. It sends a POST request to the [Flare Data Availability Layer](/fdc/overview#data-availability-layer) and returns a Merkle proof and attestation response from FDC.
104106
7. Retrieve the FDC proof from the Data Availability Layer.

0 commit comments

Comments
 (0)