You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/fassets/developer-guides/15-fassets-redemption-queue.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The [`redemptionQueue`](/fassets/reference/IAssetManager#redemptionqueue) functi
46
46
Each `RedemptionTicketInfo` includes:
47
47
48
48
-`agentVault`: address of the backing agent.
49
-
-`valueUBA`: value in underlying base amount.
49
+
-`ticketValueUBA`: value of the ticket in underlying base amount (UBA).
50
50
-`lots`: number of lots.
51
51
-`createdAt`: creation timestamp.
52
52
@@ -78,8 +78,8 @@ The script:
78
78
4. Get the `maxRedeemedTickets` value from the system settings (maximumnumberofticketsthatcanberedeemedinasinglerequest).
79
79
The actual number of tickets returned may be less than `maxRedeemedTickets` if the queue is shorter.
80
80
5. Get the lot size value from the settings (minimumquantityrequiredformintingFAssets).
81
-
6. Get the redemption queue by calling the contract method `redemptionQueue` starting from `0` and up to `maxRedeemedTickets`.
82
-
You can paginate over the queue.
81
+
6. Get the redemption queue by calling the contract method `redemptionQueue(_firstRedemptionTicketId, _pageSize)` — passing `0` as the first id starts at the **beginning of the queue** (itdoesnotrefertoticketindex`0`).
82
+
The method returns `(_queue, _nextRedemptionTicketId)`; use`_nextRedemptionTicketId`topaginate.
83
83
7. Sum all ticket values in the redemption queue to calculate the total value in UBA (Underlying Asset Base Amount)
84
84
8. Calculate the total lots in the redemption queue by dividing the total value by the lot size.
Copy file name to clipboardExpand all lines: docs/fassets/developer-guides/4-fassets-settings-node.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,8 @@ Timestamp: 1756977702
284
284
285
285
## Summary
286
286
287
-
Congratulations! You have built a TypeScript script that connects to the Coston2 network and retrieves the FAsset configuration settings and the price of XRP in USD.
287
+
Congratulations!
288
+
You have built a TypeScript script that connects to the Coston2 network and retrieves the FAsset configuration settings and the price of XRP in USD.
Copy file name to clipboardExpand all lines: docs/fassets/developer-guides/8-fassets-mint-executor.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ This script demonstrates how to retrieve the FDC proof and execute minting.
130
130
### Execute Minting Script Breakdown
131
131
132
132
1. Get environment variables.
133
-
2.Declare the constant `ASSET_MANAGER_ADDRESS` pointing to the FXRP AssetManager on the Songbird Testnet (Coston network).
133
+
2.Resolve the FXRP AssetManager address dynamically on Coston2 by calling `getAssetManagerFXRP()` from the registry helper rather than hard-coding it.
134
134
135
135
3. Set the collateral reservation ID to the previously reserved minting request.
136
136
4. Set the FDC round ID to retrieve the proof.
@@ -139,7 +139,7 @@ This script demonstrates how to retrieve the FDC proof and execute minting.
139
139
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.
140
140
7. Retrieve the FDC proof from the Data Availability Layer.
141
141
8. Call the [`executeMinting`](/fassets/reference/IAssetManager#executeminting) function on the AssetManager contract and send a transaction to the Flare network to convert the attested XRP payment into FXRP (minting).
142
-
9. On a successful transaction call `parseExecutemintingEvents` to extract and log events [`RedemptionTicketCreated`](/fassets/reference/IAssetManagerEvents#redemptionticketcreated) and [`MintingExecuted`](/fassets/reference/IAssetManagerEvents#mintingexecuted).
142
+
9. On a successful transaction call `parseEvents` to extract and log events [`RedemptionTicketCreated`](/fassets/reference/IAssetManagerEvents#redemptionticketcreated) and [`MintingExecuted`](/fassets/reference/IAssetManagerEvents#mintingexecuted).
Examples in this guide target the **Coston2** testnet for safety.
4
+
For Songbird or Flare mainnet, swap the `coston2/` segment of every `@flarenetwork/flare-periphery-contracts/coston2/...` import for `songbird/` or `flare/` respectively, and resolve the AssetManager via the corresponding network's `IFlareContractRegistry`.
5
+
RPC endpoints, faucet links, and the FAssets agents available on each network are listed on the [FAssets overview](/fassets/overview).
description: On-chain liveness ping/response between users and FAssets agent bots.
5
+
---
6
+
7
+
`IAgentPing` exposes a simple ping/response protocol for verifying that an FAssets agent's off-chain bot is alive.
8
+
Users (or anyone) call `agentPing(agentVault, query)` to emit a `AgentPing` event; the bot listens for these events and replies with `agentPingResponse(agentVault, query, response)`, which emits an `AgentPingResponse` event identifying the owner address.
9
+
10
+
Sourced from `IAgentPing.sol` on [GitHub](https://github.com/flare-foundation/fassets/blob/main/contracts/userInterfaces/IAgentPing.sol).
11
+
12
+
## Functions
13
+
14
+
### agentPing
15
+
16
+
```solidity
17
+
function agentPing(address _agentVault, uint256 _query) external;
18
+
```
19
+
20
+
Emits an `AgentPing` event addressed at `_agentVault`.
21
+
`_query` is an off-chain-defined identifier that helps the bot decide which kind of response is required (and whether the request is worth responding to at all).
22
+
23
+
### agentPingResponse
24
+
25
+
```solidity
26
+
function agentPingResponse(
27
+
address _agentVault,
28
+
uint256 _query,
29
+
string calldata _response
30
+
) external;
31
+
```
32
+
33
+
Called by the agent owner address in response to an `AgentPing`.
0 commit comments