@proton/wrap-constants 0.1.1 → 0.2.0
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 +42 -9
- package/dist/constants.d.ts +10 -0
- package/dist/graph.d.ts +30 -0
- package/dist/index.d.ts +2 -0
- package/dist/math.d.ts +17 -0
- package/dist/parsers/actions.d.ts +1323 -0
- package/dist/parsers/address.d.ts +932 -0
- package/dist/parsers/auth.d.ts +1816 -0
- package/dist/parsers/base.d.ts +35 -0
- package/dist/parsers/currency.d.ts +236 -0
- package/dist/parsers/deposit.d.ts +63 -0
- package/dist/parsers/dex.d.ts +508 -0
- package/dist/parsers/index.d.ts +12 -0
- package/dist/parsers/otc.d.ts +46 -0
- package/dist/parsers/pool.d.ts +51 -0
- package/dist/parsers/withdraw.d.ts +1053 -0
- package/dist/parsers/withdrawalHistory.d.ts +98 -0
- package/dist/parsers/wrap.d.ts +109 -0
- package/dist/utils.d.ts +1 -0
- package/dist/wrap-constants.cjs.development.js +1325 -310
- 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 +1303 -311
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +14 -8
- package/src/coins.ts +563 -149
- package/src/constants.ts +41 -14
- package/src/graph.ts +126 -0
- package/src/index.ts +3 -1
- package/src/math.ts +112 -0
- package/src/parsers/actions.ts +82 -0
- package/src/parsers/address.ts +27 -0
- package/src/parsers/auth.ts +22 -0
- package/src/parsers/base.ts +18 -0
- package/src/parsers/currency.ts +89 -0
- package/src/parsers/deposit.ts +30 -0
- package/src/parsers/dex.ts +167 -0
- package/src/parsers/index.ts +12 -0
- package/src/parsers/otc.ts +23 -0
- package/src/parsers/pool.ts +51 -0
- package/src/parsers/withdraw.ts +39 -0
- package/src/parsers/withdrawalHistory.ts +23 -0
- package/src/parsers/wrap.ts +41 -0
- package/src/utils.ts +12 -1
- package/dist/parsers.d.ts +0 -849
- package/dist/pools.d.ts +0 -31
- package/src/parsers.ts +0 -258
- package/src/pools.ts +0 -26
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from 'nestjs-zod/z';
|
|
2
|
+
export declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
status: z.ZodString;
|
|
5
|
+
amount: z.ZodString;
|
|
6
|
+
currency: z.ZodString;
|
|
7
|
+
network: z.ZodString;
|
|
8
|
+
created: z.ZodString;
|
|
9
|
+
withdrawalAddress: z.ZodString;
|
|
10
|
+
withdrawalHash: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
withdrawalHash?: string | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
status: string;
|
|
15
|
+
amount: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
network: string;
|
|
18
|
+
created: string;
|
|
19
|
+
withdrawalAddress: string;
|
|
20
|
+
}, {
|
|
21
|
+
withdrawalHash?: string | undefined;
|
|
22
|
+
id: string;
|
|
23
|
+
status: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
currency: string;
|
|
26
|
+
network: string;
|
|
27
|
+
created: string;
|
|
28
|
+
withdrawalAddress: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
|
|
31
|
+
export declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
|
|
32
|
+
swaps: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
status: z.ZodString;
|
|
35
|
+
amount: z.ZodString;
|
|
36
|
+
currency: z.ZodString;
|
|
37
|
+
network: z.ZodString;
|
|
38
|
+
created: z.ZodString;
|
|
39
|
+
withdrawalAddress: z.ZodString;
|
|
40
|
+
withdrawalHash: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
withdrawalHash?: string | undefined;
|
|
43
|
+
id: string;
|
|
44
|
+
status: string;
|
|
45
|
+
amount: string;
|
|
46
|
+
currency: string;
|
|
47
|
+
network: string;
|
|
48
|
+
created: string;
|
|
49
|
+
withdrawalAddress: string;
|
|
50
|
+
}, {
|
|
51
|
+
withdrawalHash?: string | undefined;
|
|
52
|
+
id: string;
|
|
53
|
+
status: string;
|
|
54
|
+
amount: string;
|
|
55
|
+
currency: string;
|
|
56
|
+
network: string;
|
|
57
|
+
created: string;
|
|
58
|
+
withdrawalAddress: string;
|
|
59
|
+
}>, "many">;
|
|
60
|
+
page: z.ZodNumber;
|
|
61
|
+
pageSize: z.ZodNumber;
|
|
62
|
+
numberOfElements: z.ZodNumber;
|
|
63
|
+
totalPages: z.ZodNumber;
|
|
64
|
+
totalElements: z.ZodNumber;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
swaps: {
|
|
67
|
+
withdrawalHash?: string | undefined;
|
|
68
|
+
id: string;
|
|
69
|
+
status: string;
|
|
70
|
+
amount: string;
|
|
71
|
+
currency: string;
|
|
72
|
+
network: string;
|
|
73
|
+
created: string;
|
|
74
|
+
withdrawalAddress: string;
|
|
75
|
+
}[];
|
|
76
|
+
page: number;
|
|
77
|
+
pageSize: number;
|
|
78
|
+
numberOfElements: number;
|
|
79
|
+
totalPages: number;
|
|
80
|
+
totalElements: number;
|
|
81
|
+
}, {
|
|
82
|
+
swaps: {
|
|
83
|
+
withdrawalHash?: string | undefined;
|
|
84
|
+
id: string;
|
|
85
|
+
status: string;
|
|
86
|
+
amount: string;
|
|
87
|
+
currency: string;
|
|
88
|
+
network: string;
|
|
89
|
+
created: string;
|
|
90
|
+
withdrawalAddress: string;
|
|
91
|
+
}[];
|
|
92
|
+
page: number;
|
|
93
|
+
pageSize: number;
|
|
94
|
+
numberOfElements: number;
|
|
95
|
+
totalPages: number;
|
|
96
|
+
totalElements: number;
|
|
97
|
+
}>;
|
|
98
|
+
export declare type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { z } from 'nestjs-zod/z';
|
|
2
|
+
export declare enum Status {
|
|
3
|
+
PENDING = "pending",
|
|
4
|
+
SUCCESS = "success",
|
|
5
|
+
FAIL = "fail",
|
|
6
|
+
PROCESSING = "processing"
|
|
7
|
+
}
|
|
8
|
+
export declare const wrapStartParser: z.ZodObject<{
|
|
9
|
+
balance: z.ZodObject<{
|
|
10
|
+
quantity: z.ZodString;
|
|
11
|
+
contract: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
quantity: string;
|
|
14
|
+
contract: string;
|
|
15
|
+
}, {
|
|
16
|
+
quantity: string;
|
|
17
|
+
contract: string;
|
|
18
|
+
}>;
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
txid: z.ZodString;
|
|
21
|
+
chain: z.ZodString;
|
|
22
|
+
deposit_address: z.ZodString;
|
|
23
|
+
confirmations: z.ZodNumber;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
balance: {
|
|
26
|
+
quantity: string;
|
|
27
|
+
contract: string;
|
|
28
|
+
};
|
|
29
|
+
id: string;
|
|
30
|
+
txid: string;
|
|
31
|
+
chain: string;
|
|
32
|
+
deposit_address: string;
|
|
33
|
+
confirmations: number;
|
|
34
|
+
}, {
|
|
35
|
+
balance: {
|
|
36
|
+
quantity: string;
|
|
37
|
+
contract: string;
|
|
38
|
+
};
|
|
39
|
+
id: string;
|
|
40
|
+
txid: string;
|
|
41
|
+
chain: string;
|
|
42
|
+
deposit_address: string;
|
|
43
|
+
confirmations: number;
|
|
44
|
+
}>;
|
|
45
|
+
export declare type WrapStart = z.infer<typeof wrapStartParser>;
|
|
46
|
+
export declare const wrapSetConfParser: z.ZodObject<{
|
|
47
|
+
wrap_hash: z.ZodString;
|
|
48
|
+
confirmations: z.ZodNumber;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
confirmations: number;
|
|
51
|
+
wrap_hash: string;
|
|
52
|
+
}, {
|
|
53
|
+
confirmations: number;
|
|
54
|
+
wrap_hash: string;
|
|
55
|
+
}>;
|
|
56
|
+
export declare type WrapSetConf = z.infer<typeof wrapSetConfParser>;
|
|
57
|
+
export declare const wrapParser: z.ZodObject<{
|
|
58
|
+
index: z.ZodNumber;
|
|
59
|
+
proton_account: z.ZodString;
|
|
60
|
+
balance: z.ZodObject<{
|
|
61
|
+
quantity: z.ZodString;
|
|
62
|
+
contract: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
quantity: string;
|
|
65
|
+
contract: string;
|
|
66
|
+
}, {
|
|
67
|
+
quantity: string;
|
|
68
|
+
contract: string;
|
|
69
|
+
}>;
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
txid: z.ZodString;
|
|
72
|
+
chain: z.ZodString;
|
|
73
|
+
deposit_address: z.ZodString;
|
|
74
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
75
|
+
finish_txid: z.ZodString;
|
|
76
|
+
wrap_hash: z.ZodString;
|
|
77
|
+
confirmations: z.ZodNumber;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
status: Status;
|
|
80
|
+
balance: {
|
|
81
|
+
quantity: string;
|
|
82
|
+
contract: string;
|
|
83
|
+
};
|
|
84
|
+
id: string;
|
|
85
|
+
txid: string;
|
|
86
|
+
chain: string;
|
|
87
|
+
deposit_address: string;
|
|
88
|
+
confirmations: number;
|
|
89
|
+
wrap_hash: string;
|
|
90
|
+
index: number;
|
|
91
|
+
proton_account: string;
|
|
92
|
+
finish_txid: string;
|
|
93
|
+
}, {
|
|
94
|
+
status: Status;
|
|
95
|
+
balance: {
|
|
96
|
+
quantity: string;
|
|
97
|
+
contract: string;
|
|
98
|
+
};
|
|
99
|
+
id: string;
|
|
100
|
+
txid: string;
|
|
101
|
+
chain: string;
|
|
102
|
+
deposit_address: string;
|
|
103
|
+
confirmations: number;
|
|
104
|
+
wrap_hash: string;
|
|
105
|
+
index: number;
|
|
106
|
+
proton_account: string;
|
|
107
|
+
finish_txid: string;
|
|
108
|
+
}>;
|
|
109
|
+
export declare type Wrap = z.infer<typeof wrapParser>;
|