@proton/wrap-constants 0.2.73 → 0.2.74

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/index.d.ts CHANGED
@@ -8835,6 +8835,10 @@ declare const initializeConstants: (chain: string) => {
8835
8835
  BORROW_COINS: Coin[];
8836
8836
  LOAN_COINS: Coin[];
8837
8837
  ALL_COINS: Coin[];
8838
+ XMD_CONTRACT: string;
8839
+ XMD_TOKEN_CONTRACT: string;
8840
+ XMD_SYMBOL_CODE: string;
8841
+ XMD_DECIMALS: number;
8838
8842
  findBridgeCoinWalletByXtokenAndChain(xtokenSymbol: string, chain: string): CoinWallet | undefined;
8839
8843
  findBridgeCoinWallet(coin: string, wallet: string): CoinWallet | undefined;
8840
8844
  findBridgeCoinNetwork(coin: string, network: string): CoinWallet | undefined;
package/dist/index.js CHANGED
@@ -1539,6 +1539,10 @@ var initializeConstants = (chain) => {
1539
1539
  BORROW_COINS: borrowCoins,
1540
1540
  LOAN_COINS: loanCoins,
1541
1541
  ALL_COINS: allCoins,
1542
+ XMD_CONTRACT: "xmd.treasury",
1543
+ XMD_TOKEN_CONTRACT: "xmd.token",
1544
+ XMD_SYMBOL_CODE: "XMD",
1545
+ XMD_DECIMALS: 6,
1542
1546
  findBridgeCoinWalletByXtokenAndChain(xtokenSymbol, chain2) {
1543
1547
  const bridgeCoin = constants.BRIDGE_COINS.find((bridgeCoin2) => bridgeCoin2.xtokenSymbol === xtokenSymbol);
1544
1548
  if (!bridgeCoin)
package/dist/index.mjs CHANGED
@@ -1411,6 +1411,10 @@ var initializeConstants = (chain) => {
1411
1411
  BORROW_COINS: borrowCoins,
1412
1412
  LOAN_COINS: loanCoins,
1413
1413
  ALL_COINS: allCoins,
1414
+ XMD_CONTRACT: "xmd.treasury",
1415
+ XMD_TOKEN_CONTRACT: "xmd.token",
1416
+ XMD_SYMBOL_CODE: "XMD",
1417
+ XMD_DECIMALS: 6,
1414
1418
  findBridgeCoinWalletByXtokenAndChain(xtokenSymbol, chain2) {
1415
1419
  const bridgeCoin = constants.BRIDGE_COINS.find((bridgeCoin2) => bridgeCoin2.xtokenSymbol === xtokenSymbol);
1416
1420
  if (!bridgeCoin)
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.73",
8
+ "version": "0.2.74",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "resolutions": {
41
41
  "typescript": "4.5"
42
42
  },
43
- "gitHead": "736717742a07f54845d7a07df19c477953848cd2"
43
+ "gitHead": "e87ba644e48e0eafff5f5fac74009e1677e766c5"
44
44
  }
package/src/constants.ts CHANGED
@@ -9,7 +9,7 @@ export const initializeConstants = (chain: string) => {
9
9
 
10
10
  const constants = {
11
11
  SWAP_CONTRACT: 'proton.swaps',
12
- DEX_CONTRACT: 'dex',
12
+ DEX_CONTRACT: 'dex',
13
13
  FEE_FACTOR,
14
14
  GOOGLE_MAPS_KEY: 'AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs',
15
15
  SWAP_URL: chain === 'proton'
@@ -92,6 +92,11 @@ export const initializeConstants = (chain: string) => {
92
92
  LOAN_COINS: loanCoins,
93
93
  ALL_COINS: allCoins,
94
94
 
95
+ XMD_CONTRACT: 'xmd.treasury',
96
+ XMD_TOKEN_CONTRACT: 'xmd.token',
97
+ XMD_SYMBOL_CODE: 'XMD',
98
+ XMD_DECIMALS: 6,
99
+
95
100
  findBridgeCoinWalletByXtokenAndChain (xtokenSymbol: string, chain: string): CoinWallet | undefined {
96
101
  const bridgeCoin = constants.BRIDGE_COINS.find((bridgeCoin: Coin) => bridgeCoin.xtokenSymbol === xtokenSymbol)
97
102
  if (!bridgeCoin) return undefined