Skip to content

Commit d17ef9f

Browse files
authored
Merge branch 'main' into feat/fassets-minting-guide
2 parents 743a009 + 82f9828 commit d17ef9f

File tree

4 files changed

+140
-62
lines changed

4 files changed

+140
-62
lines changed

docs/fassets/9-reference.mdx

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -19,52 +19,11 @@ import TabItem from "@theme/TabItem";
1919
import DocCardList from "@theme/DocCardList";
2020
import SolidityReference from "@site/src/components/DataTables/SolidityReference";
2121

22-
## Deployed Contracts
23-
24-
<Tabs block>
25-
<TabItem value="flare" label="Flare Mainnet">
26-
27-
| **Contract** | **Address** | **Description** |
28-
| -------------------: | ----------- | --------------- |
29-
| `AgentOwnerRegistry` | - | - |
30-
| `FXRP` | - | - |
31-
| `USDX` | - | - |
32-
33-
34-
</TabItem>
35-
<TabItem value="coston2" label="Flare Testnet Coston2">
36-
37-
| **Contract** | **Address** | **Description** |
38-
| -------------------: | ----------- | --------------- |
39-
| `AgentOwnerRegistry` | - | - |
40-
| `FXRP` | - | - |
41-
| `USDX` | - | - |
22+
import Reference from "/src/components/FAssets/Reference";
4223

24+
## Deployed Contracts
4325

44-
</TabItem>
45-
<TabItem value="songbird" label="Songbird Canary-Network" default>
46-
47-
| **Contract** | **Address** | **Description** |
48-
| -------------------: | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
49-
| `AgentOwnerRegistry` | [`0xa7f5d3C81f55f2b072FB62a0D4A03317BFd1a3c0`](https://songbird-explorer.flare.network/address/0xa7f5d3C81f55f2b072FB62a0D4A03317BFd1a3c0) | Manages agent whitelisting and allows setting and retrieving details such as work and management addresses, name, description, and icon. |
50-
| `AssetManager_XRP` | [`0x299d678f67e7ADD4efdf295Ebe0E92FCb4f75C4c`](https://songbird-explorer.flare.network/address/0x299d678f67e7ADD4efdf295Ebe0E92FCb4f75C4c) | Smart ontract that can mint and burn FXRP while managing collateral and backing funds. |
51-
| `FXRP` | [`0xF9a84f4ec903F4EaB117A9c1098BeC078BA7027d`](https://songbird-explorer.flare.network/address/0xF9a84f4ec903F4EaB117A9c1098BeC078BA7027d) | The FAsset-wrapped XRP token, ready for use on Songbird. |
52-
| `AssetManager_FDOGE` | [`0x866077dC52445167dC971643c1b2910608eD0C5A`](https://songbird-explorer.flare.network/address/0x866077dC52445167dC971643c1b2910608eD0C5A) | Smart ontract that can mint and burn FDOGE while managing collateral and backing funds. |
53-
| `FDOGE` | [`0xaa25ee3B68c515e69A463876Ab262bc4e8339030`](https://songbird-explorer.flare.network/address/0xaa25ee3B68c515e69A463876Ab262bc4e8339030) | The FAsset-wrapped DOGE token, ready for use on Songbird. |
54-
| `USDX` | [`0x4A771Cc1a39FDd8AA08B8EA51F7Fd412e73B3d2B`](https://songbird-explorer.flare.network/address/0x4A771Cc1a39FDd8AA08B8EA51F7Fd412e73B3d2B) | ERC-20 token used by FAssets as vault collateral. |
55-
56-
</TabItem>
57-
<TabItem value="coston" label="Songbird Testnet Coston">
58-
59-
| **Contract** | **Address** | **Description** |
60-
| -------------------: | ----------- | --------------- |
61-
| `AgentOwnerRegistry` | - | - |
62-
| `FXRP` | - | - |
63-
| `USDX` | - | - |
64-
65-
</TabItem>
66-
67-
</Tabs>
26+
<Reference />
6827

6928
## Interfaces
7029

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import React from "react";
2+
import Tabs from "@theme/Tabs";
3+
import TabItem from "@theme/TabItem";
4+
import Link from "@docusaurus/Link";
5+
6+
import { reference } from "./reference-data";
7+
8+
export default function Reference() {
9+
function ReferenceTable({
10+
network,
11+
}: {
12+
network: "songbird" | "coston" | "coston2" | "flare";
13+
}) {
14+
return (
15+
<table>
16+
<thead>
17+
<tr>
18+
<th>Contract</th>
19+
<th>Address</th>
20+
<th>Description</th>
21+
</tr>
22+
</thead>
23+
<tbody>
24+
{reference.map((item) => (
25+
<tr key={item.name[network]}>
26+
<td>{item.name[network]}</td>
27+
<td>
28+
{item.address[network] ? (
29+
<Link
30+
to={`https://${network}-explorer.flare.network/address/${item.address[network]}`}
31+
>
32+
<code>{item.address[network]}</code>
33+
</Link>
34+
) : (
35+
"-"
36+
)}
37+
</td>
38+
<td>{item.description}</td>
39+
</tr>
40+
))}
41+
</tbody>
42+
</table>
43+
);
44+
}
45+
46+
return (
47+
<Tabs
48+
defaultValue="songbird"
49+
values={[
50+
{ label: "Flare Mainnet", value: "flare" },
51+
{ label: "Flare Testnet Coston2", value: "coston2" },
52+
{ label: "Songbird Canary-Network", value: "songbird" },
53+
{ label: "Songbird Testnet Coston", value: "coston" },
54+
]}
55+
>
56+
<TabItem value="flare">
57+
<ReferenceTable network="flare" />
58+
</TabItem>
59+
<TabItem value="coston2">
60+
<ReferenceTable network="coston2" />
61+
</TabItem>
62+
<TabItem value="songbird">
63+
<ReferenceTable network="songbird" />
64+
</TabItem>
65+
<TabItem value="coston">
66+
<ReferenceTable network="coston" />
67+
</TabItem>
68+
</Tabs>
69+
);
70+
}

src/components/FAssets/operational-parameters.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,14 @@ export const operationalParameters = [
342342
link: "/fassets/collateral#minimal-cr",
343343
values: {
344344
songbird: {
345-
xrp: "1.2",
346-
btc: "1.2",
347-
doge: "1.2",
345+
xrp: "1.5",
346+
btc: "1.5",
347+
doge: "1.5",
348348
},
349349
coston: {
350-
xrp: "1.4",
351-
btc: "1.4",
352-
doge: "1.4",
350+
xrp: "2.0",
351+
btc: "2.0",
352+
doge: "2.0",
353353
},
354354
},
355355
},
@@ -361,14 +361,14 @@ export const operationalParameters = [
361361
link: "/fassets/collateral#liquidation-cr",
362362
values: {
363363
songbird: {
364-
xrp: "1.1",
365-
btc: "1.1",
366-
doge: "1.1",
364+
xrp: "1.4",
365+
btc: "1.4",
366+
doge: "1.4",
367367
},
368368
coston: {
369-
xrp: "1.3",
370-
btc: "1.3",
371-
doge: "1.3",
369+
xrp: "1.9",
370+
btc: "1.9",
371+
doge: "1.9",
372372
},
373373
},
374374
},
@@ -379,14 +379,14 @@ export const operationalParameters = [
379379
link: "/fassets/collateral#safety-cr",
380380
values: {
381381
songbird: {
382-
xrp: "1.3",
383-
btc: "1.3",
384-
doge: "1.3",
382+
xrp: "1.6",
383+
btc: "1.6",
384+
doge: "1.6",
385385
},
386386
coston: {
387-
xrp: "1.5",
388-
btc: "1.5",
389-
doge: "1.5",
387+
xrp: "2.1",
388+
btc: "2.1",
389+
doge: "2.1",
390390
},
391391
},
392392
},
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
export const reference = [
2+
{
3+
name: {
4+
flare: "AssetManagerController",
5+
coston2: "AssetManagerController",
6+
songbird: "AssetManagerController",
7+
coston: "AssetManagerController",
8+
},
9+
address: {
10+
flare: "",
11+
coston2: "0x0f575c6eC54176a5681cD5500fc770e9133b8982",
12+
songbird: "0x04025BBf6Be30d6cB6ad412c2958c712c6B2BCbA",
13+
coston: "0x572DeF121DC83332887E25e34aD51C2f5f40BC97",
14+
},
15+
description:
16+
"FAssets asset manager controller. Added to the Flare contracts registry.",
17+
},
18+
{
19+
name: {
20+
flare: "AssetManager XRP",
21+
coston2: "AssetManager Testnet XRP",
22+
songbird: "AssetManager XRP",
23+
coston: "AssetManager Testnet XRP",
24+
},
25+
address: {
26+
flare: "",
27+
coston2: "0xDeD50DA9C3492Bee44560a4B35cFe0e778F41eC5",
28+
songbird: "0x299d678f67e7ADD4efdf295Ebe0E92FCb4f75C4c",
29+
coston: "0x56728e46908fB6FcC5BCD2cc0c0F9BB91C3e4D34",
30+
},
31+
description:
32+
"Smart contract that can mint and burn FXRP while managing collateral and backing funds.",
33+
},
34+
{
35+
name: {
36+
flare: "FXRP",
37+
coston2: "FTestXRP",
38+
songbird: "FXRP",
39+
coston: "FTestXRP",
40+
},
41+
address: {
42+
flare: "",
43+
coston2: "0x8b4abA9C4BD7DD961659b02129beE20c6286e17F",
44+
songbird: "0xF9a84f4ec903F4EaB117A9c1098BeC078BA7027d",
45+
coston: "0x36be8f2e1CC3339Cf6702CEfA69626271C36E2fd",
46+
},
47+
description: "The FAsset-wrapped XRP token, ready for use on Songbird.",
48+
},
49+
];

0 commit comments

Comments
 (0)