@proton/wrap-constants 0.2.20 → 0.2.23
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/coins.d.ts +4 -2
- package/dist/constants.d.ts +4 -0
- package/dist/parsers/dex.d.ts +15 -5
- package/dist/parsers/login.d.ts +892 -0
- package/dist/wrap-constants.cjs.development.js +22 -9
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +25 -10
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +7 -5
- package/src/constants.ts +5 -0
- package/src/parsers/dex.ts +5 -1
- package/src/parsers/login.ts +9 -0
package/dist/coins.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ export declare enum Chains {
|
|
|
27
27
|
TerraMainnet = "Terra",
|
|
28
28
|
RippleMainnet = "Ripple",
|
|
29
29
|
SolanaMainnet = "Solana",
|
|
30
|
-
MetalXTestnet = "Metal X-Chain (Testnet)"
|
|
30
|
+
MetalXTestnet = "Metal X-Chain (Testnet)",
|
|
31
|
+
MetalCTestnet = "Metal C-Chain (Testnet)"
|
|
31
32
|
}
|
|
32
33
|
export declare enum Networks {
|
|
33
34
|
Mainnet = "mainnet",
|
|
@@ -36,7 +37,8 @@ export declare enum Networks {
|
|
|
36
37
|
ERC20 = "erc20",
|
|
37
38
|
BEP20 = "bep20",
|
|
38
39
|
XLM = "xlm",
|
|
39
|
-
AVM = "avm"
|
|
40
|
+
AVM = "avm",
|
|
41
|
+
EVM = "evm"
|
|
40
42
|
}
|
|
41
43
|
export declare const similarChains: {
|
|
42
44
|
Ethereum: Chains[];
|
package/dist/constants.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ export declare const initializeConstants: (chain: string) => {
|
|
|
43
43
|
METAL_DEX_WS_ENDPOINT: string;
|
|
44
44
|
PROTON_ENDPOINTS: string[];
|
|
45
45
|
CHAIN_ID: string;
|
|
46
|
+
DEX_PROCESS_SIZE: number;
|
|
47
|
+
DEX_SLTPPROCESS_SIZE: number;
|
|
48
|
+
MAX_PRICE: string;
|
|
49
|
+
MIN_PRICE: number;
|
|
46
50
|
CHAIN: string;
|
|
47
51
|
SWAP_COINS: Coin[];
|
|
48
52
|
BRIDGE_COINS: Coin[];
|
package/dist/parsers/dex.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export declare const orderHistoryParser: z.ZodObject<{
|
|
|
61
61
|
account_name: z.ZodString;
|
|
62
62
|
order_side: z.ZodNumber;
|
|
63
63
|
order_type: z.ZodNumber;
|
|
64
|
+
trigger_price: z.ZodNumber;
|
|
65
|
+
fill_type: z.ZodNumber;
|
|
64
66
|
status: z.ZodString;
|
|
65
67
|
quantity_change: z.ZodNumber;
|
|
66
68
|
trx_id: z.ZodString;
|
|
@@ -77,6 +79,8 @@ export declare const orderHistoryParser: z.ZodObject<{
|
|
|
77
79
|
account_name: string;
|
|
78
80
|
order_side: number;
|
|
79
81
|
order_type: number;
|
|
82
|
+
trigger_price: number;
|
|
83
|
+
fill_type: number;
|
|
80
84
|
quantity_change: number;
|
|
81
85
|
trx_id: string;
|
|
82
86
|
}, {
|
|
@@ -92,6 +96,8 @@ export declare const orderHistoryParser: z.ZodObject<{
|
|
|
92
96
|
account_name: string;
|
|
93
97
|
order_side: number;
|
|
94
98
|
order_type: number;
|
|
99
|
+
trigger_price: number;
|
|
100
|
+
fill_type: number;
|
|
95
101
|
quantity_change: number;
|
|
96
102
|
trx_id: string;
|
|
97
103
|
}>;
|
|
@@ -255,17 +261,21 @@ export declare const syncParser: z.ZodObject<{
|
|
|
255
261
|
}>;
|
|
256
262
|
export declare type Sync = z.infer<typeof syncParser>;
|
|
257
263
|
export declare enum orderType {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
TAKEPROFIT = 4
|
|
264
|
+
ORDERBOOK = 0,
|
|
265
|
+
LIMIT = 1,
|
|
266
|
+
STOPLOSS = 2,
|
|
267
|
+
TAKEPROFIT = 3
|
|
263
268
|
}
|
|
264
269
|
export declare enum orderSide {
|
|
265
270
|
INVALID = 0,
|
|
266
271
|
BUY = 1,
|
|
267
272
|
SELL = 2
|
|
268
273
|
}
|
|
274
|
+
export declare enum fillType {
|
|
275
|
+
GTC = 0,
|
|
276
|
+
IOC = 1,
|
|
277
|
+
POST_ONLY = 2
|
|
278
|
+
}
|
|
269
279
|
export declare enum logStatus {
|
|
270
280
|
CREATE = "create",
|
|
271
281
|
UPDATE = "update",
|