@proton/wrap-constants 0.2.9 → 0.2.10

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.9",
8
+ "version": "0.2.10",
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": "b6863a23441f7dc2b7055ca8d626c671785d51f3"
47
+ "gitHead": "e28f2c60624c17d9d8b83fe7a3f17d361097f58f"
48
48
  }
package/src/coins.ts CHANGED
@@ -27,7 +27,8 @@ export enum Chains {
27
27
  PolygonMainnet = 'Polygon',
28
28
  TerraMainnet = 'Terra',
29
29
  RippleMainnet = 'Ripple',
30
- SolanaMainnet = 'Solana'
30
+ SolanaMainnet = 'Solana',
31
+ MetalXTestnet = 'Metal X-Chain (Testnet)'
31
32
  }
32
33
 
33
34
  export enum Networks {
@@ -37,6 +38,7 @@ export enum Networks {
37
38
  ERC20 = 'erc20',
38
39
  BEP20 = 'bep20',
39
40
  XLM = 'xlm',
41
+ AVM = 'avm',
40
42
  }
41
43
 
42
44
  export const similarChains = {
@@ -245,7 +247,7 @@ export const initializeCoins = (protonChain: string): {
245
247
  },
246
248
  {
247
249
  allowSwap: IS_MAINNET,
248
- allowBridge: false,
250
+ allowBridge: IS_TESTNET,
249
251
  allowLend: false,
250
252
  allowBorrow: false,
251
253
  name: 'Metal Blockchain',
@@ -253,7 +255,17 @@ export const initializeCoins = (protonChain: string): {
253
255
  xtokenSymbol: 'METAL',
254
256
  xtokenPrecision: 8,
255
257
  xtokenContract: 'xtokens',
256
- wallets: [],
258
+ wallets: [
259
+ ...(IS_TESTNET ? [{
260
+ wallet: 'METAL',
261
+ symbol: 'METAL',
262
+ chain: Chains.MetalXTestnet,
263
+ network: Networks.AVM,
264
+ precision: 9,
265
+ contract: '',
266
+ hasWithdrawMemo: true
267
+ }]: [])
268
+ ],
257
269
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
258
270
  coingeckoId: ''
259
271
  },
package/src/constants.ts CHANGED
@@ -59,9 +59,13 @@ export const initializeConstants = (chain: string) => {
59
59
  ? 'https://api.protonchain.com'
60
60
  : 'https://api-dev.protonchain.com',
61
61
 
62
- METAL_DEX_ENDPOINT: chain === 'proton'
63
- ? 'https://metallicus-dbapi-dev01.binfra.one'
64
- : 'https://metallicus-dbapi-dev01.binfra.one',
62
+ METAL_DEX_HTTP_ENDPOINT: chain === 'proton'
63
+ ? 'https://metallicus-dbapi-dev01.binfra.one/dex'
64
+ : 'https://metallicus-dbapi-dev01.binfra.one/dex',
65
+
66
+ METAL_DEX_WS_ENDPOINT: chain === 'proton'
67
+ ? 'wss://metallicus-dbapi-dev01.binfra.one/dexws'
68
+ : 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
65
69
 
66
70
  PROTON_ENDPOINTS: chain === 'proton'
67
71
  ? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news']