@proton/wrap-constants 0.2.68 → 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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.68",
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": "c916cbea7f0b8384d905b4f0a3a6add88c1bdf53"
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'
@@ -466,6 +467,56 @@ export const initializeCoins = (protonChain: string): {
466
467
  image: 'https://www.proton.org/images/tokens/xtokensXTUSD.png',
467
468
  coingeckoId: 'true-usd'
468
469
  },
470
+ {
471
+ allowSwap: false,
472
+ allowBridge: IS_MAINNET,
473
+ allowLend: false,
474
+ allowBorrow: false,
475
+ name: 'Euro Coin',
476
+ coin: 'EUROC',
477
+ xtokenSymbol: 'XEUROC',
478
+ xtokenPrecision: 6,
479
+ xtokenContract: 'xtokens',
480
+ wallets: [
481
+ ...(IS_MAINNET ? [{
482
+ wallet: 'EUROC',
483
+ symbol: 'EUROC-ERC20',
484
+ chain: Chains.EthereumMainnet,
485
+ network: Networks.ERC20,
486
+ precision: 6,
487
+ contract: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
488
+ provider: Providers.FIREBLOCKS,
489
+ hasWithdrawMemo: false
490
+ }]: [])
491
+ ],
492
+ image: 'https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420',
493
+ coingeckoId: 'euro-coin'
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
+ // },
469
520
  {
470
521
  allowSwap: false,
471
522
  allowBridge: IS_MAINNET,
@@ -689,7 +740,7 @@ export const initializeCoins = (protonChain: string): {
689
740
  coingeckoId: 'litecoin'
690
741
  },
691
742
  {
692
- allowSwap: IS_MAINNET,
743
+ allowSwap: false,
693
744
  allowBridge: true,
694
745
  allowLend: false,
695
746
  allowBorrow: false,
@@ -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