@proton/wrap-constants 0.2.69 → 0.2.70
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/dist/coins.d.ts +1 -0
- package/dist/parsers/dex.d.ts +16 -0
- package/dist/wrap-constants.cjs.development.js +30 -2
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +30 -2
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +26 -0
- package/src/parsers/dex.ts +3 -1
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.70",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"resolutions": {
|
|
45
45
|
"typescript": "4.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8b462c23ff833f4714019ddcedbdd348e72d8b53"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -28,6 +28,7 @@ export enum Chains {
|
|
|
28
28
|
TerraMainnet = 'Terra',
|
|
29
29
|
RippleMainnet = 'Ripple',
|
|
30
30
|
SolanaMainnet = 'Solana',
|
|
31
|
+
XDCMainnet = 'XDC Network',
|
|
31
32
|
MetalXTestnet = 'Metal X-Chain (Testnet)',
|
|
32
33
|
MetalCTestnet = 'Metal C-Chain (Testnet)',
|
|
33
34
|
MetalCMainnet = 'Metal C-Chain'
|
|
@@ -491,6 +492,31 @@ export const initializeCoins = (protonChain: string): {
|
|
|
491
492
|
image: 'https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420',
|
|
492
493
|
coingeckoId: 'euro-coin'
|
|
493
494
|
},
|
|
495
|
+
// {
|
|
496
|
+
// allowSwap: false,
|
|
497
|
+
// allowBridge: IS_MAINNET,
|
|
498
|
+
// allowLend: false,
|
|
499
|
+
// allowBorrow: false,
|
|
500
|
+
// name: 'XDC Network',
|
|
501
|
+
// coin: 'XDC',
|
|
502
|
+
// xtokenSymbol: 'XDC',
|
|
503
|
+
// xtokenPrecision: 4,
|
|
504
|
+
// xtokenContract: 'xtokens',
|
|
505
|
+
// wallets: [
|
|
506
|
+
// ...(IS_MAINNET ? [{
|
|
507
|
+
// wallet: 'XDC',
|
|
508
|
+
// symbol: 'XDC',
|
|
509
|
+
// chain: Chains.XDCMainnet,
|
|
510
|
+
// network: Networks.Mainnet,
|
|
511
|
+
// precision: 18,
|
|
512
|
+
// contract: '',
|
|
513
|
+
// provider: Providers.FIREBLOCKS,
|
|
514
|
+
// hasWithdrawMemo: false
|
|
515
|
+
// }]: [])
|
|
516
|
+
// ],
|
|
517
|
+
// image: 'https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890',
|
|
518
|
+
// coingeckoId: 'xdce-crowd-sale'
|
|
519
|
+
// },
|
|
494
520
|
{
|
|
495
521
|
allowSwap: false,
|
|
496
522
|
allowBridge: IS_MAINNET,
|
package/src/parsers/dex.ts
CHANGED
|
@@ -132,7 +132,9 @@ export const dailyParser = z.object({
|
|
|
132
132
|
last: z.number(),
|
|
133
133
|
bid: z.number(),
|
|
134
134
|
ask: z.number(),
|
|
135
|
-
change_percentage_24hr: z.number()
|
|
135
|
+
change_percentage_24hr: z.number(),
|
|
136
|
+
high: z.number(),
|
|
137
|
+
low: z.number(),
|
|
136
138
|
})
|
|
137
139
|
export type Daily = z.infer<typeof dailyParser>
|
|
138
140
|
|