@proton/wrap-constants 0.2.69 → 0.2.71

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.69",
8
+ "version": "0.2.71",
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": "eec73f7bde2923e14cc61299a3022c1b7fea30e9"
47
+ "gitHead": "1f608fe090427d0d7b85433f8be3c51da6f8479f"
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'
@@ -114,6 +115,7 @@ export const explorerLinkByChain = {
114
115
  [Chains.MetalXTestnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
115
116
  [Chains.MetalCTestnet] : (txid: string) => `https://tahoe.metaltrace.io/tx/${txid}`,
116
117
  [Chains.MetalCMainnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
118
+ [Chains.XDCMainnet] : (txid: string) => `https://xdc.blocksscan.io/txs/${txid}`,
117
119
  }
118
120
 
119
121
  export const protonExplorerTxUrl = (chain: string, txId: string, traces?: boolean) => chain === 'proton'
@@ -491,6 +493,31 @@ export const initializeCoins = (protonChain: string): {
491
493
  image: 'https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420',
492
494
  coingeckoId: 'euro-coin'
493
495
  },
496
+ {
497
+ allowSwap: false,
498
+ allowBridge: IS_MAINNET,
499
+ allowLend: false,
500
+ allowBorrow: false,
501
+ name: 'XDC Network',
502
+ coin: 'XDC',
503
+ xtokenSymbol: 'XDC',
504
+ xtokenPrecision: 4,
505
+ xtokenContract: 'xtokens',
506
+ wallets: [
507
+ ...(IS_MAINNET ? [{
508
+ wallet: 'XDC',
509
+ symbol: 'XDC',
510
+ chain: Chains.XDCMainnet,
511
+ network: Networks.Mainnet,
512
+ precision: 18,
513
+ contract: '',
514
+ provider: Providers.FIREBLOCKS,
515
+ hasWithdrawMemo: false
516
+ }]: [])
517
+ ],
518
+ image: 'https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890',
519
+ coingeckoId: 'xdce-crowd-sale'
520
+ },
494
521
  {
495
522
  allowSwap: false,
496
523
  allowBridge: IS_MAINNET,
@@ -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