@proton/wrap-constants 0.2.187 → 0.2.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -87
- package/dist/index.d.mts +13270 -0
- package/dist/index.d.ts +285 -286
- package/dist/index.js +97 -1514
- package/dist/index.mjs +94 -1511
- package/package.json +4 -7
- package/src/coins.ts +72 -0
- package/src/constants.ts +9 -10
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.189",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -34,11 +34,8 @@
|
|
|
34
34
|
"tsup": "^8.5.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"bignumber.js": "^9.3.1",
|
|
37
38
|
"lodash.clonedeep": "^4.5.0",
|
|
38
39
|
"zod": "^3.19.1"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
"typescript": "4.8.4"
|
|
42
|
-
},
|
|
43
|
-
"gitHead": "88555c5fb8a463f5e0d8af0e6976025739398ba3"
|
|
44
|
-
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/coins.ts
CHANGED
|
@@ -1516,6 +1516,78 @@ export const initializeCoins = (
|
|
|
1516
1516
|
coingeckoId: "hedera-hashgraph",
|
|
1517
1517
|
unifiedCryptoassetId: "4642",
|
|
1518
1518
|
},
|
|
1519
|
+
|
|
1520
|
+
{
|
|
1521
|
+
allowSwap: false,
|
|
1522
|
+
allowBridge: true,
|
|
1523
|
+
allowLend: false,
|
|
1524
|
+
allowBorrow: false,
|
|
1525
|
+
name: "Ripple USD",
|
|
1526
|
+
coin: "RLUSD",
|
|
1527
|
+
xtokenSymbol: "XRLUSD",
|
|
1528
|
+
xtokenPrecision: 6,
|
|
1529
|
+
xtokenContract: "xtokens",
|
|
1530
|
+
wallets: [
|
|
1531
|
+
...(IS_MAINNET
|
|
1532
|
+
? [
|
|
1533
|
+
{
|
|
1534
|
+
wallet: "RLUSD",
|
|
1535
|
+
symbol: "RLUSD",
|
|
1536
|
+
chain: Chains.EthereumMainnet,
|
|
1537
|
+
network: Networks.ERC20,
|
|
1538
|
+
precision: 18,
|
|
1539
|
+
contract: '0x8292bb45bf1ee4d140127049757c2e0ff06317ed',
|
|
1540
|
+
provider: Providers.FIREBLOCKS,
|
|
1541
|
+
hasWithdrawMemo: false,
|
|
1542
|
+
},
|
|
1543
|
+
]
|
|
1544
|
+
: [
|
|
1545
|
+
{
|
|
1546
|
+
wallet: "RLUSD",
|
|
1547
|
+
symbol: "RLUSD",
|
|
1548
|
+
chain: Chains.EthereumSepolia,
|
|
1549
|
+
network: Networks.ERC20,
|
|
1550
|
+
precision: 18,
|
|
1551
|
+
contract: '0xe101FB315a64cDa9944E570a7bFfaFE60b994b1D',
|
|
1552
|
+
provider: Providers.FIREBLOCKS,
|
|
1553
|
+
hasWithdrawMemo: false,
|
|
1554
|
+
},
|
|
1555
|
+
]),
|
|
1556
|
+
],
|
|
1557
|
+
image: "https://app.metalx.com/img/tokens/rlusd.png",
|
|
1558
|
+
coingeckoId: "ripple-usd",
|
|
1559
|
+
unifiedCryptoassetId: "34387",
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
allowSwap: false,
|
|
1563
|
+
allowBridge: IS_MAINNET,
|
|
1564
|
+
allowLend: false,
|
|
1565
|
+
allowBorrow: false,
|
|
1566
|
+
name: "Fidelity Digital Dollar",
|
|
1567
|
+
coin: "FIDD",
|
|
1568
|
+
xtokenSymbol: "XFIDD",
|
|
1569
|
+
xtokenPrecision: 6,
|
|
1570
|
+
xtokenContract: "xtokens",
|
|
1571
|
+
wallets: [
|
|
1572
|
+
...(IS_MAINNET
|
|
1573
|
+
? [
|
|
1574
|
+
{
|
|
1575
|
+
wallet: "FIDD",
|
|
1576
|
+
symbol: "FIDD",
|
|
1577
|
+
chain: Chains.EthereumMainnet,
|
|
1578
|
+
network: Networks.ERC20,
|
|
1579
|
+
precision: 18,
|
|
1580
|
+
contract: "0x7C135549504245B5EAE64FC0E99FA5EBABB8E35D",
|
|
1581
|
+
provider: Providers.FIREBLOCKS,
|
|
1582
|
+
hasWithdrawMemo: false,
|
|
1583
|
+
},
|
|
1584
|
+
]
|
|
1585
|
+
: []),
|
|
1586
|
+
],
|
|
1587
|
+
image: "https://app.metalx.com/img/tokens/fidd.png",
|
|
1588
|
+
coingeckoId: "fidelity-digital-dollar",
|
|
1589
|
+
unifiedCryptoassetId: "39549",
|
|
1590
|
+
},
|
|
1519
1591
|
];
|
|
1520
1592
|
|
|
1521
1593
|
// Validation
|
package/src/constants.ts
CHANGED
|
@@ -20,7 +20,6 @@ export const initializeConstants = (chain: string) => {
|
|
|
20
20
|
VEST_CONTRACT: "vest",
|
|
21
21
|
DEX_CONTRACT: "dex",
|
|
22
22
|
FEE_FACTOR,
|
|
23
|
-
GOOGLE_MAPS_KEY: "AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs",
|
|
24
23
|
SWAP_URL:
|
|
25
24
|
chain === "proton"
|
|
26
25
|
? "https://otc.protonswap.com"
|
|
@@ -83,16 +82,16 @@ export const initializeConstants = (chain: string) => {
|
|
|
83
82
|
PROTON_ENDPOINTS:
|
|
84
83
|
chain === "proton"
|
|
85
84
|
? [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
"https://rpc.api.mainnet.metalx.com",
|
|
86
|
+
"https://proton.greymass.com",
|
|
87
|
+
"https://proton.eoscafeblock.com",
|
|
88
|
+
"https://proton.cryptolions.io",
|
|
89
|
+
"https://proton.eosusa.news",
|
|
90
|
+
]
|
|
92
91
|
: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
"https://rpc.api.testnet.metalx.com",
|
|
93
|
+
"https://testnet.protonchain.com",
|
|
94
|
+
],
|
|
96
95
|
|
|
97
96
|
CHAIN_ID:
|
|
98
97
|
chain === "proton"
|