@proton/wrap-constants 0.0.32 → 0.0.36

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.
@@ -0,0 +1,537 @@
1
+ import * as z from 'zod';
2
+ declare const withdrawBodyBaseAction: z.ZodObject<{
3
+ account: z.ZodString | z.ZodLiteral<string>;
4
+ name: z.ZodLiteral<string>;
5
+ data: z.ZodObject<{
6
+ from: z.ZodString;
7
+ to: z.ZodLiteral<"proton.wrap">;
8
+ quantity: z.ZodString;
9
+ memo: z.ZodString;
10
+ }, {
11
+ strict: true;
12
+ }, {
13
+ from: string;
14
+ to: "proton.wrap";
15
+ quantity: string;
16
+ memo: string;
17
+ }>;
18
+ authorization: z.ZodArray<z.ZodObject<{
19
+ actor: z.ZodString;
20
+ permission: z.ZodString;
21
+ }, {
22
+ strict: true;
23
+ }, {
24
+ actor: string;
25
+ permission: string;
26
+ }>>;
27
+ }, {
28
+ strict: true;
29
+ }, {
30
+ account: string;
31
+ name: string;
32
+ data: {
33
+ from: string;
34
+ to: "proton.wrap";
35
+ quantity: string;
36
+ memo: string;
37
+ };
38
+ authorization: {
39
+ actor: string;
40
+ permission: string;
41
+ }[];
42
+ }>;
43
+ export declare type WithdrawBodyBaseAction = z.infer<typeof withdrawBodyBaseAction>;
44
+ export declare const withdrawBodyParser: z.ZodObject<{
45
+ signer: z.ZodObject<{
46
+ actor: z.ZodString;
47
+ permission: z.ZodString;
48
+ }, {
49
+ strict: true;
50
+ }, {
51
+ actor: string;
52
+ permission: string;
53
+ }>;
54
+ signatures: z.ZodArray<z.ZodString>;
55
+ transaction: z.ZodObject<{
56
+ expiration: z.ZodString;
57
+ ref_block_num: z.ZodNumber;
58
+ ref_block_prefix: z.ZodNumber;
59
+ max_net_usage_words: z.ZodNumber;
60
+ max_cpu_usage_ms: z.ZodNumber;
61
+ delay_sec: z.ZodNumber;
62
+ context_free_actions: z.ZodArray<z.ZodAny>;
63
+ transaction_extensions: z.ZodArray<z.ZodAny>;
64
+ } & {
65
+ actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
66
+ account: z.ZodString | z.ZodLiteral<string>;
67
+ name: z.ZodLiteral<string>;
68
+ data: z.ZodObject<{
69
+ from: z.ZodString;
70
+ to: z.ZodLiteral<"proton.wrap">;
71
+ quantity: z.ZodString;
72
+ memo: z.ZodString;
73
+ }, {
74
+ strict: true;
75
+ }, {
76
+ from: string;
77
+ to: "proton.wrap";
78
+ quantity: string;
79
+ memo: string;
80
+ }>;
81
+ authorization: z.ZodArray<z.ZodObject<{
82
+ actor: z.ZodString;
83
+ permission: z.ZodString;
84
+ }, {
85
+ strict: true;
86
+ }, {
87
+ actor: string;
88
+ permission: string;
89
+ }>>;
90
+ }, {
91
+ strict: true;
92
+ }, {
93
+ account: string;
94
+ name: string;
95
+ data: {
96
+ from: string;
97
+ to: "proton.wrap";
98
+ quantity: string;
99
+ memo: string;
100
+ };
101
+ authorization: {
102
+ actor: string;
103
+ permission: string;
104
+ }[];
105
+ }>, z.ZodObject<{
106
+ account: z.ZodLiteral<"webauthn">;
107
+ name: z.ZodLiteral<"exec">;
108
+ data: z.ZodObject<{
109
+ account: z.ZodString;
110
+ key: z.ZodObject<{
111
+ key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
112
+ modulus: z.ZodString;
113
+ exponent: z.ZodString;
114
+ }, {
115
+ strict: true;
116
+ }, {
117
+ modulus: string;
118
+ exponent: string;
119
+ }>]>>;
120
+ user_presence: z.ZodNumber;
121
+ rpid: z.ZodString;
122
+ }, {
123
+ strict: true;
124
+ }, {
125
+ key: (string | {
126
+ modulus: string;
127
+ exponent: string;
128
+ })[];
129
+ user_presence: number;
130
+ rpid: string;
131
+ }>;
132
+ nonce: z.ZodNumber;
133
+ permissions: z.ZodArray<z.ZodObject<{
134
+ actor: z.ZodString;
135
+ permission: z.ZodString;
136
+ }, {
137
+ strict: true;
138
+ }, {
139
+ actor: string;
140
+ permission: string;
141
+ }>>;
142
+ signature: z.ZodObject<{
143
+ auth_data: z.ZodString;
144
+ client_json: z.ZodString;
145
+ signature: z.ZodString;
146
+ }, {
147
+ strict: true;
148
+ }, {
149
+ auth_data: string;
150
+ client_json: string;
151
+ signature: string;
152
+ }>;
153
+ trx: z.ZodObject<{
154
+ expiration: z.ZodString;
155
+ ref_block_num: z.ZodNumber;
156
+ ref_block_prefix: z.ZodNumber;
157
+ max_net_usage_words: z.ZodNumber;
158
+ max_cpu_usage_ms: z.ZodNumber;
159
+ delay_sec: z.ZodNumber;
160
+ context_free_actions: z.ZodArray<z.ZodAny>;
161
+ transaction_extensions: z.ZodArray<z.ZodAny>;
162
+ } & {
163
+ actions: z.ZodArray<z.ZodObject<{
164
+ account: z.ZodString | z.ZodLiteral<string>;
165
+ name: z.ZodLiteral<string>;
166
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<{
167
+ from: z.ZodString;
168
+ to: z.ZodLiteral<"proton.wrap">;
169
+ quantity: z.ZodString;
170
+ memo: z.ZodString;
171
+ }, {
172
+ strict: true;
173
+ }, {
174
+ from: string;
175
+ to: "proton.wrap";
176
+ quantity: string;
177
+ memo: string;
178
+ }>]>;
179
+ authorization: z.ZodArray<z.ZodObject<{
180
+ actor: z.ZodString;
181
+ permission: z.ZodString;
182
+ }, {
183
+ strict: true;
184
+ }, {
185
+ actor: string;
186
+ permission: string;
187
+ }>>;
188
+ }, {
189
+ strict: true;
190
+ }, {
191
+ account: string;
192
+ name: string;
193
+ data: string | {
194
+ from: string;
195
+ to: "proton.wrap";
196
+ quantity: string;
197
+ memo: string;
198
+ };
199
+ authorization: {
200
+ actor: string;
201
+ permission: string;
202
+ }[];
203
+ }>>;
204
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
205
+ strict: true;
206
+ }, {
207
+ strict: true;
208
+ }>, {
209
+ expiration: string;
210
+ ref_block_num: number;
211
+ ref_block_prefix: number;
212
+ max_net_usage_words: number;
213
+ max_cpu_usage_ms: number;
214
+ delay_sec: number;
215
+ context_free_actions: any[];
216
+ transaction_extensions: any[];
217
+ actions: {
218
+ account: string;
219
+ name: string;
220
+ data: string | {
221
+ from: string;
222
+ to: "proton.wrap";
223
+ quantity: string;
224
+ memo: string;
225
+ };
226
+ authorization: {
227
+ actor: string;
228
+ permission: string;
229
+ }[];
230
+ }[];
231
+ }>;
232
+ }, {
233
+ strict: true;
234
+ }, {
235
+ account: string;
236
+ key: {
237
+ key: (string | {
238
+ modulus: string;
239
+ exponent: string;
240
+ })[];
241
+ user_presence: number;
242
+ rpid: string;
243
+ };
244
+ signature: {
245
+ auth_data: string;
246
+ client_json: string;
247
+ signature: string;
248
+ };
249
+ nonce: number;
250
+ permissions: {
251
+ actor: string;
252
+ permission: string;
253
+ }[];
254
+ trx: {
255
+ expiration: string;
256
+ ref_block_num: number;
257
+ ref_block_prefix: number;
258
+ max_net_usage_words: number;
259
+ max_cpu_usage_ms: number;
260
+ delay_sec: number;
261
+ context_free_actions: any[];
262
+ transaction_extensions: any[];
263
+ actions: {
264
+ account: string;
265
+ name: string;
266
+ data: string | {
267
+ from: string;
268
+ to: "proton.wrap";
269
+ quantity: string;
270
+ memo: string;
271
+ };
272
+ authorization: {
273
+ actor: string;
274
+ permission: string;
275
+ }[];
276
+ }[];
277
+ };
278
+ }>;
279
+ authorization: z.ZodArray<z.ZodObject<{
280
+ actor: z.ZodString;
281
+ permission: z.ZodString;
282
+ }, {
283
+ strict: true;
284
+ }, {
285
+ actor: string;
286
+ permission: string;
287
+ }>>;
288
+ }, {
289
+ strict: true;
290
+ }, {
291
+ account: "webauthn";
292
+ name: "exec";
293
+ data: {
294
+ account: string;
295
+ key: {
296
+ key: (string | {
297
+ modulus: string;
298
+ exponent: string;
299
+ })[];
300
+ user_presence: number;
301
+ rpid: string;
302
+ };
303
+ signature: {
304
+ auth_data: string;
305
+ client_json: string;
306
+ signature: string;
307
+ };
308
+ nonce: number;
309
+ permissions: {
310
+ actor: string;
311
+ permission: string;
312
+ }[];
313
+ trx: {
314
+ expiration: string;
315
+ ref_block_num: number;
316
+ ref_block_prefix: number;
317
+ max_net_usage_words: number;
318
+ max_cpu_usage_ms: number;
319
+ delay_sec: number;
320
+ context_free_actions: any[];
321
+ transaction_extensions: any[];
322
+ actions: {
323
+ account: string;
324
+ name: string;
325
+ data: string | {
326
+ from: string;
327
+ to: "proton.wrap";
328
+ quantity: string;
329
+ memo: string;
330
+ };
331
+ authorization: {
332
+ actor: string;
333
+ permission: string;
334
+ }[];
335
+ }[];
336
+ };
337
+ };
338
+ authorization: {
339
+ actor: string;
340
+ permission: string;
341
+ }[];
342
+ }>]>>;
343
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
344
+ strict: true;
345
+ }, {
346
+ strict: true;
347
+ }>, {
348
+ expiration: string;
349
+ ref_block_num: number;
350
+ ref_block_prefix: number;
351
+ max_net_usage_words: number;
352
+ max_cpu_usage_ms: number;
353
+ delay_sec: number;
354
+ context_free_actions: any[];
355
+ transaction_extensions: any[];
356
+ actions: ({
357
+ account: string;
358
+ name: string;
359
+ data: {
360
+ from: string;
361
+ to: "proton.wrap";
362
+ quantity: string;
363
+ memo: string;
364
+ };
365
+ authorization: {
366
+ actor: string;
367
+ permission: string;
368
+ }[];
369
+ } | {
370
+ account: "webauthn";
371
+ name: "exec";
372
+ data: {
373
+ account: string;
374
+ key: {
375
+ key: (string | {
376
+ modulus: string;
377
+ exponent: string;
378
+ })[];
379
+ user_presence: number;
380
+ rpid: string;
381
+ };
382
+ signature: {
383
+ auth_data: string;
384
+ client_json: string;
385
+ signature: string;
386
+ };
387
+ nonce: number;
388
+ permissions: {
389
+ actor: string;
390
+ permission: string;
391
+ }[];
392
+ trx: {
393
+ expiration: string;
394
+ ref_block_num: number;
395
+ ref_block_prefix: number;
396
+ max_net_usage_words: number;
397
+ max_cpu_usage_ms: number;
398
+ delay_sec: number;
399
+ context_free_actions: any[];
400
+ transaction_extensions: any[];
401
+ actions: {
402
+ account: string;
403
+ name: string;
404
+ data: string | {
405
+ from: string;
406
+ to: "proton.wrap";
407
+ quantity: string;
408
+ memo: string;
409
+ };
410
+ authorization: {
411
+ actor: string;
412
+ permission: string;
413
+ }[];
414
+ }[];
415
+ };
416
+ };
417
+ authorization: {
418
+ actor: string;
419
+ permission: string;
420
+ }[];
421
+ })[];
422
+ }>;
423
+ quoteId: z.ZodString;
424
+ provider: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
425
+ }, {
426
+ strict: true;
427
+ }, {
428
+ provider?: string | undefined;
429
+ signer: {
430
+ actor: string;
431
+ permission: string;
432
+ };
433
+ signatures: string[];
434
+ transaction: {
435
+ expiration: string;
436
+ ref_block_num: number;
437
+ ref_block_prefix: number;
438
+ max_net_usage_words: number;
439
+ max_cpu_usage_ms: number;
440
+ delay_sec: number;
441
+ context_free_actions: any[];
442
+ transaction_extensions: any[];
443
+ actions: ({
444
+ account: string;
445
+ name: string;
446
+ data: {
447
+ from: string;
448
+ to: "proton.wrap";
449
+ quantity: string;
450
+ memo: string;
451
+ };
452
+ authorization: {
453
+ actor: string;
454
+ permission: string;
455
+ }[];
456
+ } | {
457
+ account: "webauthn";
458
+ name: "exec";
459
+ data: {
460
+ account: string;
461
+ key: {
462
+ key: (string | {
463
+ modulus: string;
464
+ exponent: string;
465
+ })[];
466
+ user_presence: number;
467
+ rpid: string;
468
+ };
469
+ signature: {
470
+ auth_data: string;
471
+ client_json: string;
472
+ signature: string;
473
+ };
474
+ nonce: number;
475
+ permissions: {
476
+ actor: string;
477
+ permission: string;
478
+ }[];
479
+ trx: {
480
+ expiration: string;
481
+ ref_block_num: number;
482
+ ref_block_prefix: number;
483
+ max_net_usage_words: number;
484
+ max_cpu_usage_ms: number;
485
+ delay_sec: number;
486
+ context_free_actions: any[];
487
+ transaction_extensions: any[];
488
+ actions: {
489
+ account: string;
490
+ name: string;
491
+ data: string | {
492
+ from: string;
493
+ to: "proton.wrap";
494
+ quantity: string;
495
+ memo: string;
496
+ };
497
+ authorization: {
498
+ actor: string;
499
+ permission: string;
500
+ }[];
501
+ }[];
502
+ };
503
+ };
504
+ authorization: {
505
+ actor: string;
506
+ permission: string;
507
+ }[];
508
+ })[];
509
+ };
510
+ quoteId: string;
511
+ }>;
512
+ export declare type WithdrawBody = z.infer<typeof withdrawBodyParser>;
513
+ export declare const withdrawMetalResponseParser: z.ZodObject<{
514
+ success: z.ZodBoolean;
515
+ id: z.ZodString;
516
+ }, {
517
+ strict: true;
518
+ }, {
519
+ success: boolean;
520
+ id: string;
521
+ }>;
522
+ export declare type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
523
+ export declare const withdrawalFeeQuoteParser: z.ZodObject<{
524
+ quoteId: z.ZodString;
525
+ estimatedFee: z.ZodString;
526
+ currency: z.ZodString;
527
+ network: z.ZodString;
528
+ }, {
529
+ strict: true;
530
+ }, {
531
+ quoteId: string;
532
+ estimatedFee: string;
533
+ currency: string;
534
+ network: string;
535
+ }>;
536
+ export declare type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
537
+ export {};
@@ -0,0 +1,70 @@
1
+ import * as z from 'zod';
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.ZodUnion<[z.ZodString, z.ZodUndefined]>;
11
+ }, {
12
+ strict: true;
13
+ }, {
14
+ withdrawalHash?: string | undefined;
15
+ id: string;
16
+ status: string;
17
+ amount: string;
18
+ currency: string;
19
+ network: string;
20
+ created: string;
21
+ withdrawalAddress: string;
22
+ }>;
23
+ export declare type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
24
+ export declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
25
+ swaps: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ status: z.ZodString;
28
+ amount: z.ZodString;
29
+ currency: z.ZodString;
30
+ network: z.ZodString;
31
+ created: z.ZodString;
32
+ withdrawalAddress: z.ZodString;
33
+ withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
34
+ }, {
35
+ strict: true;
36
+ }, {
37
+ withdrawalHash?: string | undefined;
38
+ id: string;
39
+ status: string;
40
+ amount: string;
41
+ currency: string;
42
+ network: string;
43
+ created: string;
44
+ withdrawalAddress: string;
45
+ }>>;
46
+ page: z.ZodNumber;
47
+ pageSize: z.ZodNumber;
48
+ numberOfElements: z.ZodNumber;
49
+ totalPages: z.ZodNumber;
50
+ totalElements: z.ZodNumber;
51
+ }, {
52
+ strict: true;
53
+ }, {
54
+ swaps: {
55
+ withdrawalHash?: string | undefined;
56
+ id: string;
57
+ status: string;
58
+ amount: string;
59
+ currency: string;
60
+ network: string;
61
+ created: string;
62
+ withdrawalAddress: string;
63
+ }[];
64
+ page: number;
65
+ pageSize: number;
66
+ numberOfElements: number;
67
+ totalPages: number;
68
+ totalElements: number;
69
+ }>;
70
+ export declare type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
@@ -0,0 +1,85 @@
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 wrapStartParser: z.ZodObject<{
9
+ balance: z.ZodObject<{
10
+ quantity: z.ZodString;
11
+ contract: z.ZodString;
12
+ }, {
13
+ strict: true;
14
+ }, {
15
+ quantity: string;
16
+ contract: string;
17
+ }>;
18
+ id: z.ZodString;
19
+ txid: z.ZodString;
20
+ chain: z.ZodString;
21
+ deposit_address: z.ZodString;
22
+ confirmations: z.ZodNumber;
23
+ }, {
24
+ strict: true;
25
+ }, {
26
+ balance: {
27
+ quantity: string;
28
+ contract: string;
29
+ };
30
+ id: string;
31
+ txid: string;
32
+ chain: string;
33
+ deposit_address: string;
34
+ confirmations: number;
35
+ }>;
36
+ export declare type WrapStart = z.infer<typeof wrapStartParser>;
37
+ export declare const wrapSetConfParser: z.ZodObject<{
38
+ wrap_hash: z.ZodString;
39
+ confirmations: z.ZodNumber;
40
+ }, {
41
+ strict: true;
42
+ }, {
43
+ confirmations: number;
44
+ wrap_hash: string;
45
+ }>;
46
+ export declare type WrapSetConf = z.infer<typeof wrapSetConfParser>;
47
+ export declare const wrapParser: z.ZodObject<{
48
+ index: z.ZodNumber;
49
+ proton_account: z.ZodString;
50
+ balance: z.ZodObject<{
51
+ quantity: z.ZodString;
52
+ contract: z.ZodString;
53
+ }, {
54
+ strict: true;
55
+ }, {
56
+ quantity: string;
57
+ contract: string;
58
+ }>;
59
+ id: z.ZodString;
60
+ txid: z.ZodString;
61
+ chain: z.ZodString;
62
+ deposit_address: z.ZodString;
63
+ status: z.ZodNativeEnum<typeof Status>;
64
+ finish_txid: z.ZodString;
65
+ wrap_hash: z.ZodString;
66
+ confirmations: z.ZodNumber;
67
+ }, {
68
+ strict: true;
69
+ }, {
70
+ balance: {
71
+ quantity: string;
72
+ contract: string;
73
+ };
74
+ id: string;
75
+ txid: string;
76
+ chain: string;
77
+ deposit_address: string;
78
+ confirmations: number;
79
+ wrap_hash: string;
80
+ index: number;
81
+ proton_account: string;
82
+ status: Status;
83
+ finish_txid: string;
84
+ }>;
85
+ export declare type Wrap = z.infer<typeof wrapParser>;