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
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,13 @@ Instead, you should dynamically fetch the FXRP Asset Manager address using the [
21
21
22
22
This guide walks you through:
23
23
24
-
- How to retrieve the **Asset Manager Controller** using the Flare Contract Registry.
25
-
- How to find the specific **FXRP Asset Manager**.
24
+
- How to retrieve the [Asset Manager Controller](/fassets/reference/IAssetManagerController) using the Flare Contract Registry.
25
+
- How to find the specific FXRP [Asset Manager](/fassets/reference/IAssetManager).
26
26
- A sample Solidity contract that encapsulates this logic.
27
27
28
28
## Sample code
29
29
30
-
To get the FAssets asset manager address, you can use the following smart contract that retrieves the Asset Manager Controller address from the Flare contract registry.
31
-
Then, it uses the Asset Manager Controller address to get the FXRP Asset Manager address.
30
+
To get the [FAssets asset manager](/fassets/reference/IAssetManager) address, you can use the following smart contract that retrieves the [Asset Manager Controller](/fassets/reference/IAssetManagerController) address from the [Flare contract registry](/network/guides/flare-contracts-registry).
@@ -43,8 +42,8 @@ Then, it uses the Asset Manager Controller address to get the FXRP Asset Manager
43
42
1. Imports the necessary interfaces and libraries from the [Flare Periphery Contracts package](https://www.npmjs.com/package/@flarenetwork/flare-periphery-contracts).
44
43
2. Defines a constant `TXRP_HASH` that is the hash of the string `TXRP`.
45
44
This is used to identify the FXRP asset manager.
46
-
3. Implements a function `getFxrpAssetManager` that returns the FXRP Asset Manager address.
47
-
4. Uses the `ContractRegistry` library from the Flare Periphery Contracts package to get the Asset Manager Controller address from the Flare contract registry.
45
+
3. Implements a function `getFxrpAssetManager` that returns the FXRP [Asset Manager](/fassets/reference/IAssetManager) address.
46
+
4. Uses the `ContractRegistry` library from the Flare Periphery Contracts package to get the [Asset Manager Controller](/fassets/reference/IAssetManagerController) address from the Flare contract registry.
48
47
5. Uses the `IAssetManagerController` interface from the Flare Periphery Contracts package to get all the asset managers from the Asset Manager Controller.
49
48
6. Iterates over the asset managers and returns the FXRP Asset Manager address.
0 commit comments