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/1-fassets-get-asset-amanager-address-registry.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ These addresses can change between Flare testnets and mainnet deployments, and r
20
20
Instead, you should dynamically fetch the FXRP Asset Manager address using the [Flare Contract Registry](/network/guides/flare-contracts-registry), the trusted source for discovering contract addresses on any Flare network.
21
21
22
22
This guide walks you through:
23
+
23
24
- How to retrieve the **Asset Manager Controller** using the Flare Contract Registry.
24
25
- How to find the specific **FXRP Asset Manager**.
25
26
- A sample Solidity contract that encapsulates this logic.
@@ -41,7 +42,7 @@ Then, it uses the Asset Manager Controller address to get the FXRP Asset Manager
41
42
42
43
1. Imports the neccesary interfaces and libraries from the [Flare Periphery Contracts package](https://www.npmjs.com/package/@flarenetwork/flare-periphery-contracts).
43
44
2. Defines a constant `TXRP_HASH` that is the hash of the string `TXRP`.
44
-
This is used to identify the FXRP asset manager.
45
+
This is used to identify the FXRP asset manager.
45
46
3. Implements a function `getFxrpAssetManager` that returns the FXRP Asset Manager address.
46
47
4. Uses the `ContractRegistry` library from the Flare Periphery Contracts package to get the Asset Manager Controller address from the Flare contract registry.
47
48
5. Uses the `IAssetManagerController` interface from the Flare Periphery Contracts package to get all the asset managers from the Asset Manager Controller.
@@ -61,4 +62,4 @@ To continue your FAssets development journey, you can:
61
62
62
63
- Learn how to [mint FXRP](/fassets/developer-guides/fassets-mint).
63
64
- Understand how to [redeem FXRP](/fassets/developer-guides/fassets-redeem).
64
-
- Explore [FAssets system settings](/fassets/operational-parameters).
65
+
- Explore [FAssets system settings](/fassets/operational-parameters).
0 commit comments