@proton/wrap-constants 0.1.1 → 0.2.2
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 +291 -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 +1236 -289
- 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 +1216 -293
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +14 -8
- package/src/coins.ts +578 -150
- 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 +156 -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
package/dist/parsers.d.ts
DELETED
|
@@ -1,849 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
export declare enum Status {
|
|
3
|
-
PENDING = "pending",
|
|
4
|
-
SUCCESS = "success",
|
|
5
|
-
FAIL = "fail",
|
|
6
|
-
PROCESSING = "processing"
|
|
7
|
-
}
|
|
8
|
-
export declare const accountParser: z.ZodString;
|
|
9
|
-
export declare const authorizationParser: z.ZodObject<{
|
|
10
|
-
actor: z.ZodString;
|
|
11
|
-
permission: z.ZodString;
|
|
12
|
-
}, {
|
|
13
|
-
strict: true;
|
|
14
|
-
}, {
|
|
15
|
-
actor: string;
|
|
16
|
-
permission: string;
|
|
17
|
-
}>;
|
|
18
|
-
export declare type Authorization = z.infer<typeof authorizationParser>;
|
|
19
|
-
export declare const rawTransactionParser: z.ZodObject<{
|
|
20
|
-
expiration: z.ZodString;
|
|
21
|
-
ref_block_num: z.ZodNumber;
|
|
22
|
-
ref_block_prefix: z.ZodNumber;
|
|
23
|
-
max_net_usage_words: z.ZodNumber;
|
|
24
|
-
max_cpu_usage_ms: z.ZodNumber;
|
|
25
|
-
delay_sec: z.ZodNumber;
|
|
26
|
-
context_free_actions: z.ZodArray<z.ZodAny>;
|
|
27
|
-
transaction_extensions: z.ZodArray<z.ZodAny>;
|
|
28
|
-
}, {
|
|
29
|
-
strict: true;
|
|
30
|
-
}, {
|
|
31
|
-
expiration: string;
|
|
32
|
-
ref_block_num: number;
|
|
33
|
-
ref_block_prefix: number;
|
|
34
|
-
max_net_usage_words: number;
|
|
35
|
-
max_cpu_usage_ms: number;
|
|
36
|
-
delay_sec: number;
|
|
37
|
-
context_free_actions: any[];
|
|
38
|
-
transaction_extensions: any[];
|
|
39
|
-
}>;
|
|
40
|
-
export declare const generateAuthParser: z.ZodObject<{
|
|
41
|
-
signer: z.ZodObject<{
|
|
42
|
-
actor: z.ZodString;
|
|
43
|
-
permission: z.ZodString;
|
|
44
|
-
}, {
|
|
45
|
-
strict: true;
|
|
46
|
-
}, {
|
|
47
|
-
actor: string;
|
|
48
|
-
permission: string;
|
|
49
|
-
}>;
|
|
50
|
-
signatures: z.ZodArray<z.ZodString>;
|
|
51
|
-
transaction: z.ZodObject<{
|
|
52
|
-
expiration: z.ZodString;
|
|
53
|
-
ref_block_num: z.ZodNumber;
|
|
54
|
-
ref_block_prefix: z.ZodNumber;
|
|
55
|
-
max_net_usage_words: z.ZodNumber;
|
|
56
|
-
max_cpu_usage_ms: z.ZodNumber;
|
|
57
|
-
delay_sec: z.ZodNumber;
|
|
58
|
-
context_free_actions: z.ZodArray<z.ZodAny>;
|
|
59
|
-
transaction_extensions: z.ZodArray<z.ZodAny>;
|
|
60
|
-
} & {
|
|
61
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
62
|
-
account: z.ZodString;
|
|
63
|
-
name: z.ZodString;
|
|
64
|
-
data: z.ZodObject<{
|
|
65
|
-
time: z.ZodString;
|
|
66
|
-
protonAccount: z.ZodString;
|
|
67
|
-
}, {
|
|
68
|
-
strict: true;
|
|
69
|
-
}, {
|
|
70
|
-
time: string;
|
|
71
|
-
protonAccount: string;
|
|
72
|
-
}>;
|
|
73
|
-
authorization: z.ZodArray<z.ZodObject<{
|
|
74
|
-
actor: z.ZodString;
|
|
75
|
-
permission: z.ZodString;
|
|
76
|
-
}, {
|
|
77
|
-
strict: true;
|
|
78
|
-
}, {
|
|
79
|
-
actor: string;
|
|
80
|
-
permission: string;
|
|
81
|
-
}>>;
|
|
82
|
-
}, {
|
|
83
|
-
strict: true;
|
|
84
|
-
}, {
|
|
85
|
-
account: string;
|
|
86
|
-
name: string;
|
|
87
|
-
data: {
|
|
88
|
-
time: string;
|
|
89
|
-
protonAccount: string;
|
|
90
|
-
};
|
|
91
|
-
authorization: {
|
|
92
|
-
actor: string;
|
|
93
|
-
permission: string;
|
|
94
|
-
}[];
|
|
95
|
-
}>>;
|
|
96
|
-
}, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
|
|
97
|
-
strict: true;
|
|
98
|
-
}, {
|
|
99
|
-
strict: true;
|
|
100
|
-
}>, {
|
|
101
|
-
expiration: string;
|
|
102
|
-
ref_block_num: number;
|
|
103
|
-
ref_block_prefix: number;
|
|
104
|
-
max_net_usage_words: number;
|
|
105
|
-
max_cpu_usage_ms: number;
|
|
106
|
-
delay_sec: number;
|
|
107
|
-
context_free_actions: any[];
|
|
108
|
-
transaction_extensions: any[];
|
|
109
|
-
actions: {
|
|
110
|
-
account: string;
|
|
111
|
-
name: string;
|
|
112
|
-
data: {
|
|
113
|
-
time: string;
|
|
114
|
-
protonAccount: string;
|
|
115
|
-
};
|
|
116
|
-
authorization: {
|
|
117
|
-
actor: string;
|
|
118
|
-
permission: string;
|
|
119
|
-
}[];
|
|
120
|
-
}[];
|
|
121
|
-
}>;
|
|
122
|
-
}, {
|
|
123
|
-
strict: true;
|
|
124
|
-
}, {
|
|
125
|
-
signer: {
|
|
126
|
-
actor: string;
|
|
127
|
-
permission: string;
|
|
128
|
-
};
|
|
129
|
-
signatures: string[];
|
|
130
|
-
transaction: {
|
|
131
|
-
expiration: string;
|
|
132
|
-
ref_block_num: number;
|
|
133
|
-
ref_block_prefix: number;
|
|
134
|
-
max_net_usage_words: number;
|
|
135
|
-
max_cpu_usage_ms: number;
|
|
136
|
-
delay_sec: number;
|
|
137
|
-
context_free_actions: any[];
|
|
138
|
-
transaction_extensions: any[];
|
|
139
|
-
actions: {
|
|
140
|
-
account: string;
|
|
141
|
-
name: string;
|
|
142
|
-
data: {
|
|
143
|
-
time: string;
|
|
144
|
-
protonAccount: string;
|
|
145
|
-
};
|
|
146
|
-
authorization: {
|
|
147
|
-
actor: string;
|
|
148
|
-
permission: string;
|
|
149
|
-
}[];
|
|
150
|
-
}[];
|
|
151
|
-
};
|
|
152
|
-
}>;
|
|
153
|
-
export declare type GenerateAuth = z.infer<typeof generateAuthParser>;
|
|
154
|
-
export declare const generateAddressBodyParser: z.ZodObject<{
|
|
155
|
-
coin: z.ZodString;
|
|
156
|
-
wallet: z.ZodString;
|
|
157
|
-
} & {
|
|
158
|
-
signer: z.ZodObject<{
|
|
159
|
-
actor: z.ZodString;
|
|
160
|
-
permission: z.ZodString;
|
|
161
|
-
}, {
|
|
162
|
-
strict: true;
|
|
163
|
-
}, {
|
|
164
|
-
actor: string;
|
|
165
|
-
permission: string;
|
|
166
|
-
}>;
|
|
167
|
-
signatures: z.ZodArray<z.ZodString>;
|
|
168
|
-
transaction: z.ZodObject<{
|
|
169
|
-
expiration: z.ZodString;
|
|
170
|
-
ref_block_num: z.ZodNumber;
|
|
171
|
-
ref_block_prefix: z.ZodNumber;
|
|
172
|
-
max_net_usage_words: z.ZodNumber;
|
|
173
|
-
max_cpu_usage_ms: z.ZodNumber;
|
|
174
|
-
delay_sec: z.ZodNumber;
|
|
175
|
-
context_free_actions: z.ZodArray<z.ZodAny>;
|
|
176
|
-
transaction_extensions: z.ZodArray<z.ZodAny>;
|
|
177
|
-
} & {
|
|
178
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
179
|
-
account: z.ZodString;
|
|
180
|
-
name: z.ZodString;
|
|
181
|
-
data: z.ZodObject<{
|
|
182
|
-
time: z.ZodString;
|
|
183
|
-
protonAccount: z.ZodString;
|
|
184
|
-
}, {
|
|
185
|
-
strict: true;
|
|
186
|
-
}, {
|
|
187
|
-
time: string;
|
|
188
|
-
protonAccount: string;
|
|
189
|
-
}>;
|
|
190
|
-
authorization: z.ZodArray<z.ZodObject<{
|
|
191
|
-
actor: z.ZodString;
|
|
192
|
-
permission: z.ZodString;
|
|
193
|
-
}, {
|
|
194
|
-
strict: true;
|
|
195
|
-
}, {
|
|
196
|
-
actor: string;
|
|
197
|
-
permission: string;
|
|
198
|
-
}>>;
|
|
199
|
-
}, {
|
|
200
|
-
strict: true;
|
|
201
|
-
}, {
|
|
202
|
-
account: string;
|
|
203
|
-
name: string;
|
|
204
|
-
data: {
|
|
205
|
-
time: string;
|
|
206
|
-
protonAccount: string;
|
|
207
|
-
};
|
|
208
|
-
authorization: {
|
|
209
|
-
actor: string;
|
|
210
|
-
permission: string;
|
|
211
|
-
}[];
|
|
212
|
-
}>>;
|
|
213
|
-
}, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
|
|
214
|
-
strict: true;
|
|
215
|
-
}, {
|
|
216
|
-
strict: true;
|
|
217
|
-
}>, {
|
|
218
|
-
expiration: string;
|
|
219
|
-
ref_block_num: number;
|
|
220
|
-
ref_block_prefix: number;
|
|
221
|
-
max_net_usage_words: number;
|
|
222
|
-
max_cpu_usage_ms: number;
|
|
223
|
-
delay_sec: number;
|
|
224
|
-
context_free_actions: any[];
|
|
225
|
-
transaction_extensions: any[];
|
|
226
|
-
actions: {
|
|
227
|
-
account: string;
|
|
228
|
-
name: string;
|
|
229
|
-
data: {
|
|
230
|
-
time: string;
|
|
231
|
-
protonAccount: string;
|
|
232
|
-
};
|
|
233
|
-
authorization: {
|
|
234
|
-
actor: string;
|
|
235
|
-
permission: string;
|
|
236
|
-
}[];
|
|
237
|
-
}[];
|
|
238
|
-
}>;
|
|
239
|
-
}, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
|
|
240
|
-
strict: true;
|
|
241
|
-
}, {
|
|
242
|
-
strict: true;
|
|
243
|
-
}>, {
|
|
244
|
-
signer: {
|
|
245
|
-
actor: string;
|
|
246
|
-
permission: string;
|
|
247
|
-
};
|
|
248
|
-
signatures: string[];
|
|
249
|
-
transaction: {
|
|
250
|
-
expiration: string;
|
|
251
|
-
ref_block_num: number;
|
|
252
|
-
ref_block_prefix: number;
|
|
253
|
-
max_net_usage_words: number;
|
|
254
|
-
max_cpu_usage_ms: number;
|
|
255
|
-
delay_sec: number;
|
|
256
|
-
context_free_actions: any[];
|
|
257
|
-
transaction_extensions: any[];
|
|
258
|
-
actions: {
|
|
259
|
-
account: string;
|
|
260
|
-
name: string;
|
|
261
|
-
data: {
|
|
262
|
-
time: string;
|
|
263
|
-
protonAccount: string;
|
|
264
|
-
};
|
|
265
|
-
authorization: {
|
|
266
|
-
actor: string;
|
|
267
|
-
permission: string;
|
|
268
|
-
}[];
|
|
269
|
-
}[];
|
|
270
|
-
};
|
|
271
|
-
coin: string;
|
|
272
|
-
wallet: string;
|
|
273
|
-
}>;
|
|
274
|
-
export declare type GenerateAddressBody = z.infer<typeof generateAddressBodyParser>;
|
|
275
|
-
export declare const generateAddressResponse: z.ZodObject<{
|
|
276
|
-
id: z.ZodString;
|
|
277
|
-
address: z.ZodString;
|
|
278
|
-
coin: z.ZodString;
|
|
279
|
-
wallet: z.ZodString;
|
|
280
|
-
memo: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
281
|
-
}, {
|
|
282
|
-
strict: true;
|
|
283
|
-
}, {
|
|
284
|
-
memo?: string | undefined;
|
|
285
|
-
coin: string;
|
|
286
|
-
wallet: string;
|
|
287
|
-
id: string;
|
|
288
|
-
address: string;
|
|
289
|
-
}>;
|
|
290
|
-
export declare type GenerateAddressResponse = z.infer<typeof generateAddressResponse>;
|
|
291
|
-
export declare const depositBodyParser: z.ZodObject<{
|
|
292
|
-
id: z.ZodString;
|
|
293
|
-
externalId: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
294
|
-
type: z.ZodString;
|
|
295
|
-
hash: z.ZodString;
|
|
296
|
-
coin: z.ZodString;
|
|
297
|
-
wallet: z.ZodString;
|
|
298
|
-
}, {
|
|
299
|
-
strict: true;
|
|
300
|
-
}, {
|
|
301
|
-
externalId?: string | undefined;
|
|
302
|
-
type: string;
|
|
303
|
-
coin: string;
|
|
304
|
-
wallet: string;
|
|
305
|
-
id: string;
|
|
306
|
-
hash: string;
|
|
307
|
-
}>;
|
|
308
|
-
export declare type DepositBody = z.infer<typeof depositBodyParser>;
|
|
309
|
-
export declare const withdrawBodyParser: z.ZodObject<{
|
|
310
|
-
signer: z.ZodObject<{
|
|
311
|
-
actor: z.ZodString;
|
|
312
|
-
permission: z.ZodString;
|
|
313
|
-
}, {
|
|
314
|
-
strict: true;
|
|
315
|
-
}, {
|
|
316
|
-
actor: string;
|
|
317
|
-
permission: string;
|
|
318
|
-
}>;
|
|
319
|
-
signatures: z.ZodArray<z.ZodString>;
|
|
320
|
-
transaction: z.ZodObject<{
|
|
321
|
-
expiration: z.ZodString;
|
|
322
|
-
ref_block_num: z.ZodNumber;
|
|
323
|
-
ref_block_prefix: z.ZodNumber;
|
|
324
|
-
max_net_usage_words: z.ZodNumber;
|
|
325
|
-
max_cpu_usage_ms: z.ZodNumber;
|
|
326
|
-
delay_sec: z.ZodNumber;
|
|
327
|
-
context_free_actions: z.ZodArray<z.ZodAny>;
|
|
328
|
-
transaction_extensions: z.ZodArray<z.ZodAny>;
|
|
329
|
-
} & {
|
|
330
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
331
|
-
account: z.ZodString;
|
|
332
|
-
name: z.ZodLiteral<"transfer">;
|
|
333
|
-
data: z.ZodObject<{
|
|
334
|
-
from: z.ZodString;
|
|
335
|
-
to: z.ZodLiteral<"proton.wrap">;
|
|
336
|
-
quantity: z.ZodString;
|
|
337
|
-
memo: z.ZodString;
|
|
338
|
-
}, {
|
|
339
|
-
strict: true;
|
|
340
|
-
}, {
|
|
341
|
-
from: string;
|
|
342
|
-
to: "proton.wrap";
|
|
343
|
-
quantity: string;
|
|
344
|
-
memo: string;
|
|
345
|
-
}>;
|
|
346
|
-
authorization: z.ZodArray<z.ZodObject<{
|
|
347
|
-
actor: z.ZodString;
|
|
348
|
-
permission: z.ZodString;
|
|
349
|
-
}, {
|
|
350
|
-
strict: true;
|
|
351
|
-
}, {
|
|
352
|
-
actor: string;
|
|
353
|
-
permission: string;
|
|
354
|
-
}>>;
|
|
355
|
-
}, {
|
|
356
|
-
strict: true;
|
|
357
|
-
}, {
|
|
358
|
-
account: string;
|
|
359
|
-
name: "transfer";
|
|
360
|
-
data: {
|
|
361
|
-
from: string;
|
|
362
|
-
to: "proton.wrap";
|
|
363
|
-
quantity: string;
|
|
364
|
-
memo: string;
|
|
365
|
-
};
|
|
366
|
-
authorization: {
|
|
367
|
-
actor: string;
|
|
368
|
-
permission: string;
|
|
369
|
-
}[];
|
|
370
|
-
}>>;
|
|
371
|
-
}, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
|
|
372
|
-
strict: true;
|
|
373
|
-
}, {
|
|
374
|
-
strict: true;
|
|
375
|
-
}>, {
|
|
376
|
-
expiration: string;
|
|
377
|
-
ref_block_num: number;
|
|
378
|
-
ref_block_prefix: number;
|
|
379
|
-
max_net_usage_words: number;
|
|
380
|
-
max_cpu_usage_ms: number;
|
|
381
|
-
delay_sec: number;
|
|
382
|
-
context_free_actions: any[];
|
|
383
|
-
transaction_extensions: any[];
|
|
384
|
-
actions: {
|
|
385
|
-
account: string;
|
|
386
|
-
name: "transfer";
|
|
387
|
-
data: {
|
|
388
|
-
from: string;
|
|
389
|
-
to: "proton.wrap";
|
|
390
|
-
quantity: string;
|
|
391
|
-
memo: string;
|
|
392
|
-
};
|
|
393
|
-
authorization: {
|
|
394
|
-
actor: string;
|
|
395
|
-
permission: string;
|
|
396
|
-
}[];
|
|
397
|
-
}[];
|
|
398
|
-
}>;
|
|
399
|
-
quoteId: z.ZodString;
|
|
400
|
-
}, {
|
|
401
|
-
strict: true;
|
|
402
|
-
}, {
|
|
403
|
-
signer: {
|
|
404
|
-
actor: string;
|
|
405
|
-
permission: string;
|
|
406
|
-
};
|
|
407
|
-
signatures: string[];
|
|
408
|
-
transaction: {
|
|
409
|
-
expiration: string;
|
|
410
|
-
ref_block_num: number;
|
|
411
|
-
ref_block_prefix: number;
|
|
412
|
-
max_net_usage_words: number;
|
|
413
|
-
max_cpu_usage_ms: number;
|
|
414
|
-
delay_sec: number;
|
|
415
|
-
context_free_actions: any[];
|
|
416
|
-
transaction_extensions: any[];
|
|
417
|
-
actions: {
|
|
418
|
-
account: string;
|
|
419
|
-
name: "transfer";
|
|
420
|
-
data: {
|
|
421
|
-
from: string;
|
|
422
|
-
to: "proton.wrap";
|
|
423
|
-
quantity: string;
|
|
424
|
-
memo: string;
|
|
425
|
-
};
|
|
426
|
-
authorization: {
|
|
427
|
-
actor: string;
|
|
428
|
-
permission: string;
|
|
429
|
-
}[];
|
|
430
|
-
}[];
|
|
431
|
-
};
|
|
432
|
-
quoteId: string;
|
|
433
|
-
}>;
|
|
434
|
-
export declare type WithdrawBody = z.infer<typeof withdrawBodyParser>;
|
|
435
|
-
export declare const withdrawMetalResponseParser: z.ZodObject<{
|
|
436
|
-
success: z.ZodBoolean;
|
|
437
|
-
id: z.ZodString;
|
|
438
|
-
}, {
|
|
439
|
-
strict: true;
|
|
440
|
-
}, {
|
|
441
|
-
id: string;
|
|
442
|
-
success: boolean;
|
|
443
|
-
}>;
|
|
444
|
-
export declare type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
|
|
445
|
-
export declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
|
|
446
|
-
id: z.ZodString;
|
|
447
|
-
status: z.ZodString;
|
|
448
|
-
amount: z.ZodString;
|
|
449
|
-
currency: z.ZodString;
|
|
450
|
-
network: z.ZodString;
|
|
451
|
-
created: z.ZodString;
|
|
452
|
-
withdrawalAddress: z.ZodString;
|
|
453
|
-
withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
454
|
-
}, {
|
|
455
|
-
strict: true;
|
|
456
|
-
}, {
|
|
457
|
-
withdrawalHash?: string | undefined;
|
|
458
|
-
id: string;
|
|
459
|
-
status: string;
|
|
460
|
-
amount: string;
|
|
461
|
-
currency: string;
|
|
462
|
-
network: string;
|
|
463
|
-
created: string;
|
|
464
|
-
withdrawalAddress: string;
|
|
465
|
-
}>;
|
|
466
|
-
export declare type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
|
|
467
|
-
export declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
|
|
468
|
-
swaps: z.ZodArray<z.ZodObject<{
|
|
469
|
-
id: z.ZodString;
|
|
470
|
-
status: z.ZodString;
|
|
471
|
-
amount: z.ZodString;
|
|
472
|
-
currency: z.ZodString;
|
|
473
|
-
network: z.ZodString;
|
|
474
|
-
created: z.ZodString;
|
|
475
|
-
withdrawalAddress: z.ZodString;
|
|
476
|
-
withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
477
|
-
}, {
|
|
478
|
-
strict: true;
|
|
479
|
-
}, {
|
|
480
|
-
withdrawalHash?: string | undefined;
|
|
481
|
-
id: string;
|
|
482
|
-
status: string;
|
|
483
|
-
amount: string;
|
|
484
|
-
currency: string;
|
|
485
|
-
network: string;
|
|
486
|
-
created: string;
|
|
487
|
-
withdrawalAddress: string;
|
|
488
|
-
}>>;
|
|
489
|
-
page: z.ZodNumber;
|
|
490
|
-
pageSize: z.ZodNumber;
|
|
491
|
-
numberOfElements: z.ZodNumber;
|
|
492
|
-
totalPages: z.ZodNumber;
|
|
493
|
-
totalElements: z.ZodNumber;
|
|
494
|
-
}, {
|
|
495
|
-
strict: true;
|
|
496
|
-
}, {
|
|
497
|
-
swaps: {
|
|
498
|
-
withdrawalHash?: string | undefined;
|
|
499
|
-
id: string;
|
|
500
|
-
status: string;
|
|
501
|
-
amount: string;
|
|
502
|
-
currency: string;
|
|
503
|
-
network: string;
|
|
504
|
-
created: string;
|
|
505
|
-
withdrawalAddress: string;
|
|
506
|
-
}[];
|
|
507
|
-
page: number;
|
|
508
|
-
pageSize: number;
|
|
509
|
-
numberOfElements: number;
|
|
510
|
-
totalPages: number;
|
|
511
|
-
totalElements: number;
|
|
512
|
-
}>;
|
|
513
|
-
export declare type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
|
|
514
|
-
declare const ExtendedAssetParser: z.ZodObject<{
|
|
515
|
-
quantity: z.ZodString;
|
|
516
|
-
contract: z.ZodString;
|
|
517
|
-
}, {
|
|
518
|
-
strict: true;
|
|
519
|
-
}, {
|
|
520
|
-
quantity: string;
|
|
521
|
-
contract: string;
|
|
522
|
-
}>;
|
|
523
|
-
export declare type ExtendedAsset = z.infer<typeof ExtendedAssetParser>;
|
|
524
|
-
export declare const wrapStartParser: z.ZodObject<{
|
|
525
|
-
balance: z.ZodObject<{
|
|
526
|
-
quantity: z.ZodString;
|
|
527
|
-
contract: z.ZodString;
|
|
528
|
-
}, {
|
|
529
|
-
strict: true;
|
|
530
|
-
}, {
|
|
531
|
-
quantity: string;
|
|
532
|
-
contract: string;
|
|
533
|
-
}>;
|
|
534
|
-
txid: z.ZodString;
|
|
535
|
-
coin: z.ZodString;
|
|
536
|
-
wallet: z.ZodString;
|
|
537
|
-
deposit_address: z.ZodString;
|
|
538
|
-
confirmations: z.ZodNumber;
|
|
539
|
-
}, {
|
|
540
|
-
strict: true;
|
|
541
|
-
}, {
|
|
542
|
-
coin: string;
|
|
543
|
-
wallet: string;
|
|
544
|
-
balance: {
|
|
545
|
-
quantity: string;
|
|
546
|
-
contract: string;
|
|
547
|
-
};
|
|
548
|
-
txid: string;
|
|
549
|
-
deposit_address: string;
|
|
550
|
-
confirmations: number;
|
|
551
|
-
}>;
|
|
552
|
-
export declare type WrapStart = z.infer<typeof wrapStartParser>;
|
|
553
|
-
export declare const wrapSetConfParser: z.ZodObject<{
|
|
554
|
-
wrap_hash: z.ZodString;
|
|
555
|
-
confirmations: z.ZodNumber;
|
|
556
|
-
}, {
|
|
557
|
-
strict: true;
|
|
558
|
-
}, {
|
|
559
|
-
confirmations: number;
|
|
560
|
-
wrap_hash: string;
|
|
561
|
-
}>;
|
|
562
|
-
export declare type WrapSetConf = z.infer<typeof wrapSetConfParser>;
|
|
563
|
-
export declare const wrapParser: z.ZodObject<{
|
|
564
|
-
index: z.ZodNumber;
|
|
565
|
-
proton_account: z.ZodString;
|
|
566
|
-
balance: z.ZodObject<{
|
|
567
|
-
quantity: z.ZodString;
|
|
568
|
-
contract: z.ZodString;
|
|
569
|
-
}, {
|
|
570
|
-
strict: true;
|
|
571
|
-
}, {
|
|
572
|
-
quantity: string;
|
|
573
|
-
contract: string;
|
|
574
|
-
}>;
|
|
575
|
-
txid: z.ZodString;
|
|
576
|
-
coin: z.ZodString;
|
|
577
|
-
wallet: z.ZodString;
|
|
578
|
-
deposit_address: z.ZodString;
|
|
579
|
-
status: z.ZodNativeEnum<typeof Status>;
|
|
580
|
-
finish_txid: z.ZodString;
|
|
581
|
-
wrap_hash: z.ZodString;
|
|
582
|
-
confirmations: z.ZodNumber;
|
|
583
|
-
}, {
|
|
584
|
-
strict: true;
|
|
585
|
-
}, {
|
|
586
|
-
coin: string;
|
|
587
|
-
wallet: string;
|
|
588
|
-
status: Status;
|
|
589
|
-
balance: {
|
|
590
|
-
quantity: string;
|
|
591
|
-
contract: string;
|
|
592
|
-
};
|
|
593
|
-
txid: string;
|
|
594
|
-
deposit_address: string;
|
|
595
|
-
confirmations: number;
|
|
596
|
-
wrap_hash: string;
|
|
597
|
-
index: number;
|
|
598
|
-
proton_account: string;
|
|
599
|
-
finish_txid: string;
|
|
600
|
-
}>;
|
|
601
|
-
export declare type Wrap = z.infer<typeof wrapParser>;
|
|
602
|
-
export declare const transactionParser: z.ZodObject<{
|
|
603
|
-
coin: z.ZodString;
|
|
604
|
-
wallet: z.ZodString;
|
|
605
|
-
blockhash: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUndefined]>, z.ZodNull]>;
|
|
606
|
-
txid: z.ZodString;
|
|
607
|
-
type: z.ZodString;
|
|
608
|
-
height: z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, z.ZodNull]>;
|
|
609
|
-
confirmations: z.ZodNumber;
|
|
610
|
-
state: z.ZodString;
|
|
611
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
612
|
-
address: z.ZodString;
|
|
613
|
-
wallet: z.ZodString;
|
|
614
|
-
value: z.ZodNumber;
|
|
615
|
-
valueString: z.ZodString;
|
|
616
|
-
isChange: z.ZodBoolean;
|
|
617
|
-
}, {
|
|
618
|
-
strict: true;
|
|
619
|
-
}, {
|
|
620
|
-
wallet: string;
|
|
621
|
-
address: string;
|
|
622
|
-
value: number;
|
|
623
|
-
valueString: string;
|
|
624
|
-
isChange: boolean;
|
|
625
|
-
}>>;
|
|
626
|
-
outputs: z.ZodArray<z.ZodObject<{
|
|
627
|
-
address: z.ZodString;
|
|
628
|
-
wallet: z.ZodString;
|
|
629
|
-
fromWallet: z.ZodString;
|
|
630
|
-
value: z.ZodNumber;
|
|
631
|
-
valueString: z.ZodString;
|
|
632
|
-
coinbase: z.ZodBoolean;
|
|
633
|
-
}, {
|
|
634
|
-
strict: true;
|
|
635
|
-
}, {
|
|
636
|
-
wallet: string;
|
|
637
|
-
address: string;
|
|
638
|
-
value: number;
|
|
639
|
-
valueString: string;
|
|
640
|
-
fromWallet: string;
|
|
641
|
-
coinbase: boolean;
|
|
642
|
-
}>>;
|
|
643
|
-
value: z.ZodNumber;
|
|
644
|
-
valueString: z.ZodString;
|
|
645
|
-
pending: z.ZodBoolean;
|
|
646
|
-
instant: z.ZodBoolean;
|
|
647
|
-
}, {
|
|
648
|
-
strict: true;
|
|
649
|
-
}, {
|
|
650
|
-
blockhash?: string | null | undefined;
|
|
651
|
-
height?: number | null | undefined;
|
|
652
|
-
type: string;
|
|
653
|
-
coin: string;
|
|
654
|
-
wallet: string;
|
|
655
|
-
value: number;
|
|
656
|
-
valueString: string;
|
|
657
|
-
txid: string;
|
|
658
|
-
confirmations: number;
|
|
659
|
-
state: string;
|
|
660
|
-
entries: {
|
|
661
|
-
wallet: string;
|
|
662
|
-
address: string;
|
|
663
|
-
value: number;
|
|
664
|
-
valueString: string;
|
|
665
|
-
isChange: boolean;
|
|
666
|
-
}[];
|
|
667
|
-
outputs: {
|
|
668
|
-
wallet: string;
|
|
669
|
-
address: string;
|
|
670
|
-
value: number;
|
|
671
|
-
valueString: string;
|
|
672
|
-
fromWallet: string;
|
|
673
|
-
coinbase: boolean;
|
|
674
|
-
}[];
|
|
675
|
-
pending: boolean;
|
|
676
|
-
instant: boolean;
|
|
677
|
-
}>;
|
|
678
|
-
export declare type Transaction = z.infer<typeof transactionParser>;
|
|
679
|
-
export declare const addressParser: z.ZodObject<{
|
|
680
|
-
index: z.ZodNumber;
|
|
681
|
-
account: z.ZodString;
|
|
682
|
-
coin: z.ZodString;
|
|
683
|
-
address: z.ZodString;
|
|
684
|
-
wallet: z.ZodString;
|
|
685
|
-
address_hash: z.ZodString;
|
|
686
|
-
}, {
|
|
687
|
-
strict: true;
|
|
688
|
-
}, {
|
|
689
|
-
account: string;
|
|
690
|
-
coin: string;
|
|
691
|
-
wallet: string;
|
|
692
|
-
address: string;
|
|
693
|
-
index: number;
|
|
694
|
-
address_hash: string;
|
|
695
|
-
}>;
|
|
696
|
-
export declare type Address = z.infer<typeof addressParser>;
|
|
697
|
-
export declare const otcOrderResponseParser: z.ZodObject<{
|
|
698
|
-
success: z.ZodBoolean;
|
|
699
|
-
transaction_id: z.ZodString;
|
|
700
|
-
errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
701
|
-
}, {
|
|
702
|
-
strict: true;
|
|
703
|
-
}, {
|
|
704
|
-
errormsg?: string | undefined;
|
|
705
|
-
success: boolean;
|
|
706
|
-
transaction_id: string;
|
|
707
|
-
}>;
|
|
708
|
-
export declare type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
|
|
709
|
-
export declare const otcQuoteBodyParser: z.ZodObject<{
|
|
710
|
-
baseAmount: z.ZodNumber;
|
|
711
|
-
baseSymbol: z.ZodString;
|
|
712
|
-
quoteSymbol: z.ZodString;
|
|
713
|
-
}, {
|
|
714
|
-
strict: true;
|
|
715
|
-
}, {
|
|
716
|
-
baseAmount: number;
|
|
717
|
-
baseSymbol: string;
|
|
718
|
-
quoteSymbol: string;
|
|
719
|
-
}>;
|
|
720
|
-
export declare type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
|
|
721
|
-
export declare const otcQuoteResponseParser: z.ZodObject<{
|
|
722
|
-
success: z.ZodBoolean;
|
|
723
|
-
token: z.ZodString;
|
|
724
|
-
qty: z.ZodNumber;
|
|
725
|
-
errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
726
|
-
}, {
|
|
727
|
-
strict: true;
|
|
728
|
-
}, {
|
|
729
|
-
errormsg?: string | undefined;
|
|
730
|
-
success: boolean;
|
|
731
|
-
token: string;
|
|
732
|
-
qty: number;
|
|
733
|
-
}>;
|
|
734
|
-
export declare type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;
|
|
735
|
-
export declare const rateParser: z.ZodObject<{
|
|
736
|
-
counterCurrency: z.ZodString;
|
|
737
|
-
price: z.ZodNumber;
|
|
738
|
-
priceChangePercent: z.ZodNumber;
|
|
739
|
-
marketCap: z.ZodNumber;
|
|
740
|
-
volume: z.ZodNumber;
|
|
741
|
-
timestamp: z.ZodNumber;
|
|
742
|
-
}, {
|
|
743
|
-
strict: true;
|
|
744
|
-
}, {
|
|
745
|
-
counterCurrency: string;
|
|
746
|
-
price: number;
|
|
747
|
-
priceChangePercent: number;
|
|
748
|
-
marketCap: number;
|
|
749
|
-
volume: number;
|
|
750
|
-
timestamp: number;
|
|
751
|
-
}>;
|
|
752
|
-
export declare type Rate = z.infer<typeof rateParser>;
|
|
753
|
-
export declare const exchangeRateParser: z.ZodObject<{
|
|
754
|
-
contract: z.ZodString;
|
|
755
|
-
symbol: z.ZodString;
|
|
756
|
-
rank: z.ZodNumber;
|
|
757
|
-
rates: z.ZodArray<z.ZodObject<{
|
|
758
|
-
counterCurrency: z.ZodString;
|
|
759
|
-
price: z.ZodNumber;
|
|
760
|
-
priceChangePercent: z.ZodNumber;
|
|
761
|
-
marketCap: z.ZodNumber;
|
|
762
|
-
volume: z.ZodNumber;
|
|
763
|
-
timestamp: z.ZodNumber;
|
|
764
|
-
}, {
|
|
765
|
-
strict: true;
|
|
766
|
-
}, {
|
|
767
|
-
counterCurrency: string;
|
|
768
|
-
price: number;
|
|
769
|
-
priceChangePercent: number;
|
|
770
|
-
marketCap: number;
|
|
771
|
-
volume: number;
|
|
772
|
-
timestamp: number;
|
|
773
|
-
}>>;
|
|
774
|
-
}, {
|
|
775
|
-
strict: true;
|
|
776
|
-
}, {
|
|
777
|
-
symbol: string;
|
|
778
|
-
contract: string;
|
|
779
|
-
rank: number;
|
|
780
|
-
rates: {
|
|
781
|
-
counterCurrency: string;
|
|
782
|
-
price: number;
|
|
783
|
-
priceChangePercent: number;
|
|
784
|
-
marketCap: number;
|
|
785
|
-
volume: number;
|
|
786
|
-
timestamp: number;
|
|
787
|
-
}[];
|
|
788
|
-
}>;
|
|
789
|
-
export declare type ExchangeRate = z.infer<typeof exchangeRateParser>;
|
|
790
|
-
export declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
|
|
791
|
-
contract: z.ZodString;
|
|
792
|
-
symbol: z.ZodString;
|
|
793
|
-
rank: z.ZodNumber;
|
|
794
|
-
rates: z.ZodArray<z.ZodObject<{
|
|
795
|
-
counterCurrency: z.ZodString;
|
|
796
|
-
price: z.ZodNumber;
|
|
797
|
-
priceChangePercent: z.ZodNumber;
|
|
798
|
-
marketCap: z.ZodNumber;
|
|
799
|
-
volume: z.ZodNumber;
|
|
800
|
-
timestamp: z.ZodNumber;
|
|
801
|
-
}, {
|
|
802
|
-
strict: true;
|
|
803
|
-
}, {
|
|
804
|
-
counterCurrency: string;
|
|
805
|
-
price: number;
|
|
806
|
-
priceChangePercent: number;
|
|
807
|
-
marketCap: number;
|
|
808
|
-
volume: number;
|
|
809
|
-
timestamp: number;
|
|
810
|
-
}>>;
|
|
811
|
-
}, {
|
|
812
|
-
strict: true;
|
|
813
|
-
}, {
|
|
814
|
-
symbol: string;
|
|
815
|
-
contract: string;
|
|
816
|
-
rank: number;
|
|
817
|
-
rates: {
|
|
818
|
-
counterCurrency: string;
|
|
819
|
-
price: number;
|
|
820
|
-
priceChangePercent: number;
|
|
821
|
-
marketCap: number;
|
|
822
|
-
volume: number;
|
|
823
|
-
timestamp: number;
|
|
824
|
-
}[];
|
|
825
|
-
}>>;
|
|
826
|
-
export declare type ExchangeRates = z.infer<typeof exchangeRatesParser>;
|
|
827
|
-
export declare const withdrawalFeeQuoteParser: z.ZodObject<{
|
|
828
|
-
quoteId: z.ZodString;
|
|
829
|
-
estimatedFee: z.ZodString;
|
|
830
|
-
currency: z.ZodString;
|
|
831
|
-
network: z.ZodString;
|
|
832
|
-
}, {
|
|
833
|
-
strict: true;
|
|
834
|
-
}, {
|
|
835
|
-
currency: string;
|
|
836
|
-
network: string;
|
|
837
|
-
quoteId: string;
|
|
838
|
-
estimatedFee: string;
|
|
839
|
-
}>;
|
|
840
|
-
export declare type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
|
|
841
|
-
export interface CurrencyStat {
|
|
842
|
-
supply: string;
|
|
843
|
-
max_supply: string;
|
|
844
|
-
issuer: string;
|
|
845
|
-
}
|
|
846
|
-
export interface CurrencyStats {
|
|
847
|
-
[key: string]: CurrencyStat;
|
|
848
|
-
}
|
|
849
|
-
export {};
|