@proton/wrap-constants 0.2.19 → 0.2.22

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.19",
8
+ "version": "0.2.22",
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": "926994d4913c68f67e2080b2a7706ea74d1c67e4"
47
+ "gitHead": "0eb1af9d4a7b0826a4dbe065fad488536801eea0"
48
48
  }
package/src/coins.ts CHANGED
@@ -28,7 +28,8 @@ export enum Chains {
28
28
  TerraMainnet = 'Terra',
29
29
  RippleMainnet = 'Ripple',
30
30
  SolanaMainnet = 'Solana',
31
- MetalXTestnet = 'Metal X-Chain (Testnet)'
31
+ MetalXTestnet = 'Metal X-Chain (Testnet)',
32
+ MetalCTestnet = 'Metal C-Chain (Testnet)'
32
33
  }
33
34
 
34
35
  export enum Networks {
@@ -39,6 +40,7 @@ export enum Networks {
39
40
  BEP20 = 'bep20',
40
41
  XLM = 'xlm',
41
42
  AVM = 'avm',
43
+ EVM = 'evm',
42
44
  }
43
45
 
44
46
  export const similarChains = {
@@ -273,12 +275,12 @@ export const initializeCoins = (protonChain: string): {
273
275
  ...(IS_TESTNET ? [{
274
276
  wallet: 'METAL',
275
277
  symbol: 'METAL',
276
- chain: Chains.MetalXTestnet,
277
- network: Networks.AVM,
278
- precision: 9,
278
+ chain: Chains.MetalCTestnet,
279
+ network: Networks.EVM,
280
+ precision: 18,
279
281
  contract: '',
280
282
  provider: Providers.METAL,
281
- hasWithdrawMemo: true
283
+ hasWithdrawMemo: false
282
284
  }]: [])
283
285
  ],
284
286
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
package/src/constants.ts CHANGED
@@ -11,7 +11,7 @@ export const initializeConstants = (chain: string) => {
11
11
  SWAP_CONTRACT: 'proton.swaps',
12
12
  DEX_CONTRACT: chain === 'proton'
13
13
  ? 'dex'
14
- : 'dextest21',
14
+ : 'dextest22',
15
15
  FEE_FACTOR,
16
16
  GOOGLE_MAPS_KEY: 'AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs',
17
17
  SWAP_URL: chain === 'proton'
@@ -75,6 +75,11 @@ export const initializeConstants = (chain: string) => {
75
75
  ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0'
76
76
  : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
77
77
 
78
+ DEX_PROCESS_SIZE: 30,
79
+ DEX_SLTPPROCESS_SIZE: 10,
80
+ MAX_PRICE: "9223372036854775806",
81
+ MIN_PRICE: 1,
82
+
78
83
  CHAIN: chain,
79
84
 
80
85
  SWAP_COINS: swapCoins,
@@ -36,6 +36,8 @@ export const orderHistoryParser = z.object({
36
36
  account_name: z.string(),
37
37
  order_side: z.number(),
38
38
  order_type: z.number(),
39
+ trigger_price: z.number(),
40
+ fill_type: z.number(),
39
41
  status: z.string(),
40
42
  quantity_change: z.number(),
41
43
  trx_id: z.string(),
@@ -111,10 +113,12 @@ export const syncParser = z.object({
111
113
  })
112
114
  export type Sync = z.infer<typeof syncParser>
113
115
 
114
- export enum orderType { INVALID = 0, MARKET = 1, LIMIT = 2, STOPLOSS = 3, TAKEPROFIT = 4 }
116
+ export enum orderType { ORDERBOOK = 0, LIMIT = 1, STOPLOSS = 2, TAKEPROFIT = 3 }
115
117
 
116
118
  export enum orderSide { INVALID = 0, BUY = 1, SELL = 2 }
117
119
 
120
+ export enum fillType { GTC = 0, IOC = 1, POST_ONLY = 2 }
121
+
118
122
  export enum logStatus {
119
123
  CREATE = "create",
120
124
  UPDATE = "update",