@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.
package/dist/parsers.d.ts DELETED
@@ -1,1881 +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 enum Type {
9
- RECEIVE = "receive",
10
- SEND = "send"
11
- }
12
- export declare const accountParser: z.ZodString;
13
- export declare const authorizationParser: z.ZodObject<{
14
- actor: z.ZodString;
15
- permission: z.ZodString;
16
- }, {
17
- strict: true;
18
- }, {
19
- actor: string;
20
- permission: string;
21
- }>;
22
- export declare type Authorization = z.infer<typeof authorizationParser>;
23
- export declare const authorizationsParser: z.ZodArray<z.ZodObject<{
24
- actor: z.ZodString;
25
- permission: z.ZodString;
26
- }, {
27
- strict: true;
28
- }, {
29
- actor: string;
30
- permission: string;
31
- }>>;
32
- export declare type Authorizations = z.infer<typeof authorizationsParser>;
33
- export declare const rawTransactionParser: z.ZodObject<{
34
- expiration: z.ZodString;
35
- ref_block_num: z.ZodNumber;
36
- ref_block_prefix: z.ZodNumber;
37
- max_net_usage_words: z.ZodNumber;
38
- max_cpu_usage_ms: z.ZodNumber;
39
- delay_sec: z.ZodNumber;
40
- context_free_actions: z.ZodArray<z.ZodAny>;
41
- transaction_extensions: z.ZodArray<z.ZodAny>;
42
- }, {
43
- strict: true;
44
- }, {
45
- expiration: string;
46
- ref_block_num: number;
47
- ref_block_prefix: number;
48
- max_net_usage_words: number;
49
- max_cpu_usage_ms: number;
50
- delay_sec: number;
51
- context_free_actions: any[];
52
- transaction_extensions: any[];
53
- }>;
54
- declare const generateAuthActionsBaseParser: z.ZodObject<{
55
- account: z.ZodLiteral<"proton.wrap">;
56
- name: z.ZodLiteral<"generateauth">;
57
- data: z.ZodObject<{
58
- time: z.ZodString;
59
- protonAccount: z.ZodString;
60
- }, {
61
- strict: true;
62
- }, {
63
- time: string;
64
- protonAccount: string;
65
- }>;
66
- authorization: z.ZodArray<z.ZodObject<{
67
- actor: z.ZodString;
68
- permission: z.ZodString;
69
- }, {
70
- strict: true;
71
- }, {
72
- actor: string;
73
- permission: string;
74
- }>>;
75
- }, {
76
- strict: true;
77
- }, {
78
- account: "proton.wrap";
79
- name: "generateauth";
80
- data: {
81
- time: string;
82
- protonAccount: string;
83
- };
84
- authorization: {
85
- actor: string;
86
- permission: string;
87
- }[];
88
- }>;
89
- export declare type GenerateAuthBaseAction = z.infer<typeof generateAuthActionsBaseParser>;
90
- export declare const generateAuthParser: z.ZodObject<{
91
- signer: z.ZodObject<{
92
- actor: z.ZodString;
93
- permission: z.ZodString;
94
- }, {
95
- strict: true;
96
- }, {
97
- actor: string;
98
- permission: string;
99
- }>;
100
- signatures: z.ZodArray<z.ZodString>;
101
- transaction: z.ZodObject<{
102
- expiration: z.ZodString;
103
- ref_block_num: z.ZodNumber;
104
- ref_block_prefix: z.ZodNumber;
105
- max_net_usage_words: z.ZodNumber;
106
- max_cpu_usage_ms: z.ZodNumber;
107
- delay_sec: z.ZodNumber;
108
- context_free_actions: z.ZodArray<z.ZodAny>;
109
- transaction_extensions: z.ZodArray<z.ZodAny>;
110
- } & {
111
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
112
- account: z.ZodLiteral<"proton.wrap">;
113
- name: z.ZodLiteral<"generateauth">;
114
- data: z.ZodObject<{
115
- time: z.ZodString;
116
- protonAccount: z.ZodString;
117
- }, {
118
- strict: true;
119
- }, {
120
- time: string;
121
- protonAccount: string;
122
- }>;
123
- authorization: z.ZodArray<z.ZodObject<{
124
- actor: z.ZodString;
125
- permission: z.ZodString;
126
- }, {
127
- strict: true;
128
- }, {
129
- actor: string;
130
- permission: string;
131
- }>>;
132
- }, {
133
- strict: true;
134
- }, {
135
- account: "proton.wrap";
136
- name: "generateauth";
137
- data: {
138
- time: string;
139
- protonAccount: string;
140
- };
141
- authorization: {
142
- actor: string;
143
- permission: string;
144
- }[];
145
- }>, z.ZodObject<{
146
- account: z.ZodLiteral<"webauthn">;
147
- name: z.ZodLiteral<"exec">;
148
- authorization: z.ZodArray<z.ZodObject<{
149
- actor: z.ZodString;
150
- permission: z.ZodString;
151
- }, {
152
- strict: true;
153
- }, {
154
- actor: string;
155
- permission: string;
156
- }>>;
157
- data: z.ZodObject<{
158
- account: z.ZodString;
159
- key: z.ZodObject<{
160
- key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
161
- modulus: z.ZodString;
162
- exponent: z.ZodString;
163
- }, {
164
- strict: true;
165
- }, {
166
- modulus: string;
167
- exponent: string;
168
- }>]>>;
169
- user_presence: z.ZodNumber;
170
- rpid: z.ZodString;
171
- }, {
172
- strict: true;
173
- }, {
174
- key: (string | {
175
- modulus: string;
176
- exponent: string;
177
- })[];
178
- user_presence: number;
179
- rpid: string;
180
- }>;
181
- nonce: z.ZodNumber;
182
- permissions: z.ZodArray<z.ZodObject<{
183
- actor: z.ZodString;
184
- permission: z.ZodString;
185
- }, {
186
- strict: true;
187
- }, {
188
- actor: string;
189
- permission: string;
190
- }>>;
191
- signature: z.ZodObject<{
192
- auth_data: z.ZodString;
193
- client_json: z.ZodString;
194
- signature: z.ZodString;
195
- }, {
196
- strict: true;
197
- }, {
198
- auth_data: string;
199
- client_json: string;
200
- signature: string;
201
- }>;
202
- trx: z.ZodObject<{
203
- expiration: z.ZodString;
204
- ref_block_num: z.ZodNumber;
205
- ref_block_prefix: z.ZodNumber;
206
- max_net_usage_words: z.ZodNumber;
207
- max_cpu_usage_ms: z.ZodNumber;
208
- delay_sec: z.ZodNumber;
209
- context_free_actions: z.ZodArray<z.ZodAny>;
210
- transaction_extensions: z.ZodArray<z.ZodAny>;
211
- } & {
212
- actions: z.ZodArray<z.ZodObject<{
213
- account: z.ZodLiteral<"proton.wrap">;
214
- name: z.ZodLiteral<"generateauth">;
215
- data: z.ZodUnion<[z.ZodString, z.ZodObject<{
216
- time: z.ZodString;
217
- protonAccount: z.ZodString;
218
- }, {
219
- strict: true;
220
- }, {
221
- time: string;
222
- protonAccount: string;
223
- }>]>;
224
- authorization: z.ZodArray<z.ZodObject<{
225
- actor: z.ZodString;
226
- permission: z.ZodString;
227
- }, {
228
- strict: true;
229
- }, {
230
- actor: string;
231
- permission: string;
232
- }>>;
233
- }, {
234
- strict: true;
235
- }, {
236
- account: "proton.wrap";
237
- name: "generateauth";
238
- data: string | {
239
- time: string;
240
- protonAccount: string;
241
- };
242
- authorization: {
243
- actor: string;
244
- permission: string;
245
- }[];
246
- }>>;
247
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
248
- strict: true;
249
- }, {
250
- strict: true;
251
- }>, {
252
- expiration: string;
253
- ref_block_num: number;
254
- ref_block_prefix: number;
255
- max_net_usage_words: number;
256
- max_cpu_usage_ms: number;
257
- delay_sec: number;
258
- context_free_actions: any[];
259
- transaction_extensions: any[];
260
- actions: {
261
- account: "proton.wrap";
262
- name: "generateauth";
263
- data: string | {
264
- time: string;
265
- protonAccount: string;
266
- };
267
- authorization: {
268
- actor: string;
269
- permission: string;
270
- }[];
271
- }[];
272
- }>;
273
- }, {
274
- strict: true;
275
- }, {
276
- account: string;
277
- key: {
278
- key: (string | {
279
- modulus: string;
280
- exponent: string;
281
- })[];
282
- user_presence: number;
283
- rpid: string;
284
- };
285
- signature: {
286
- auth_data: string;
287
- client_json: string;
288
- signature: string;
289
- };
290
- nonce: number;
291
- permissions: {
292
- actor: string;
293
- permission: string;
294
- }[];
295
- trx: {
296
- expiration: string;
297
- ref_block_num: number;
298
- ref_block_prefix: number;
299
- max_net_usage_words: number;
300
- max_cpu_usage_ms: number;
301
- delay_sec: number;
302
- context_free_actions: any[];
303
- transaction_extensions: any[];
304
- actions: {
305
- account: "proton.wrap";
306
- name: "generateauth";
307
- data: string | {
308
- time: string;
309
- protonAccount: string;
310
- };
311
- authorization: {
312
- actor: string;
313
- permission: string;
314
- }[];
315
- }[];
316
- };
317
- }>;
318
- }, {
319
- strict: true;
320
- }, {
321
- account: "webauthn";
322
- name: "exec";
323
- data: {
324
- account: string;
325
- key: {
326
- key: (string | {
327
- modulus: string;
328
- exponent: string;
329
- })[];
330
- user_presence: number;
331
- rpid: string;
332
- };
333
- signature: {
334
- auth_data: string;
335
- client_json: string;
336
- signature: string;
337
- };
338
- nonce: number;
339
- permissions: {
340
- actor: string;
341
- permission: string;
342
- }[];
343
- trx: {
344
- expiration: string;
345
- ref_block_num: number;
346
- ref_block_prefix: number;
347
- max_net_usage_words: number;
348
- max_cpu_usage_ms: number;
349
- delay_sec: number;
350
- context_free_actions: any[];
351
- transaction_extensions: any[];
352
- actions: {
353
- account: "proton.wrap";
354
- name: "generateauth";
355
- data: string | {
356
- time: string;
357
- protonAccount: string;
358
- };
359
- authorization: {
360
- actor: string;
361
- permission: string;
362
- }[];
363
- }[];
364
- };
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: "proton.wrap";
386
- name: "generateauth";
387
- data: {
388
- time: string;
389
- protonAccount: string;
390
- };
391
- authorization: {
392
- actor: string;
393
- permission: string;
394
- }[];
395
- } | {
396
- account: "webauthn";
397
- name: "exec";
398
- data: {
399
- account: string;
400
- key: {
401
- key: (string | {
402
- modulus: string;
403
- exponent: string;
404
- })[];
405
- user_presence: number;
406
- rpid: string;
407
- };
408
- signature: {
409
- auth_data: string;
410
- client_json: string;
411
- signature: string;
412
- };
413
- nonce: number;
414
- permissions: {
415
- actor: string;
416
- permission: string;
417
- }[];
418
- trx: {
419
- expiration: string;
420
- ref_block_num: number;
421
- ref_block_prefix: number;
422
- max_net_usage_words: number;
423
- max_cpu_usage_ms: number;
424
- delay_sec: number;
425
- context_free_actions: any[];
426
- transaction_extensions: any[];
427
- actions: {
428
- account: "proton.wrap";
429
- name: "generateauth";
430
- data: string | {
431
- time: string;
432
- protonAccount: string;
433
- };
434
- authorization: {
435
- actor: string;
436
- permission: string;
437
- }[];
438
- }[];
439
- };
440
- };
441
- authorization: {
442
- actor: string;
443
- permission: string;
444
- }[];
445
- })[];
446
- }>;
447
- }, {
448
- strict: true;
449
- }, {
450
- signer: {
451
- actor: string;
452
- permission: string;
453
- };
454
- signatures: string[];
455
- transaction: {
456
- expiration: string;
457
- ref_block_num: number;
458
- ref_block_prefix: number;
459
- max_net_usage_words: number;
460
- max_cpu_usage_ms: number;
461
- delay_sec: number;
462
- context_free_actions: any[];
463
- transaction_extensions: any[];
464
- actions: ({
465
- account: "proton.wrap";
466
- name: "generateauth";
467
- data: {
468
- time: string;
469
- protonAccount: string;
470
- };
471
- authorization: {
472
- actor: string;
473
- permission: string;
474
- }[];
475
- } | {
476
- account: "webauthn";
477
- name: "exec";
478
- data: {
479
- account: string;
480
- key: {
481
- key: (string | {
482
- modulus: string;
483
- exponent: string;
484
- })[];
485
- user_presence: number;
486
- rpid: string;
487
- };
488
- signature: {
489
- auth_data: string;
490
- client_json: string;
491
- signature: string;
492
- };
493
- nonce: number;
494
- permissions: {
495
- actor: string;
496
- permission: string;
497
- }[];
498
- trx: {
499
- expiration: string;
500
- ref_block_num: number;
501
- ref_block_prefix: number;
502
- max_net_usage_words: number;
503
- max_cpu_usage_ms: number;
504
- delay_sec: number;
505
- context_free_actions: any[];
506
- transaction_extensions: any[];
507
- actions: {
508
- account: "proton.wrap";
509
- name: "generateauth";
510
- data: string | {
511
- time: string;
512
- protonAccount: string;
513
- };
514
- authorization: {
515
- actor: string;
516
- permission: string;
517
- }[];
518
- }[];
519
- };
520
- };
521
- authorization: {
522
- actor: string;
523
- permission: string;
524
- }[];
525
- })[];
526
- };
527
- }>;
528
- export declare type GenerateAuth = z.infer<typeof generateAuthParser>;
529
- export declare const generateAddressBodyParser: z.ZodObject<{
530
- coin: z.ZodString;
531
- wallet: z.ZodString;
532
- } & {
533
- signer: z.ZodObject<{
534
- actor: z.ZodString;
535
- permission: z.ZodString;
536
- }, {
537
- strict: true;
538
- }, {
539
- actor: string;
540
- permission: string;
541
- }>;
542
- signatures: z.ZodArray<z.ZodString>;
543
- transaction: z.ZodObject<{
544
- expiration: z.ZodString;
545
- ref_block_num: z.ZodNumber;
546
- ref_block_prefix: z.ZodNumber;
547
- max_net_usage_words: z.ZodNumber;
548
- max_cpu_usage_ms: z.ZodNumber;
549
- delay_sec: z.ZodNumber;
550
- context_free_actions: z.ZodArray<z.ZodAny>;
551
- transaction_extensions: z.ZodArray<z.ZodAny>;
552
- } & {
553
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
554
- account: z.ZodLiteral<"proton.wrap">;
555
- name: z.ZodLiteral<"generateauth">;
556
- data: z.ZodObject<{
557
- time: z.ZodString;
558
- protonAccount: z.ZodString;
559
- }, {
560
- strict: true;
561
- }, {
562
- time: string;
563
- protonAccount: string;
564
- }>;
565
- authorization: z.ZodArray<z.ZodObject<{
566
- actor: z.ZodString;
567
- permission: z.ZodString;
568
- }, {
569
- strict: true;
570
- }, {
571
- actor: string;
572
- permission: string;
573
- }>>;
574
- }, {
575
- strict: true;
576
- }, {
577
- account: "proton.wrap";
578
- name: "generateauth";
579
- data: {
580
- time: string;
581
- protonAccount: string;
582
- };
583
- authorization: {
584
- actor: string;
585
- permission: string;
586
- }[];
587
- }>, z.ZodObject<{
588
- account: z.ZodLiteral<"webauthn">;
589
- name: z.ZodLiteral<"exec">;
590
- authorization: z.ZodArray<z.ZodObject<{
591
- actor: z.ZodString;
592
- permission: z.ZodString;
593
- }, {
594
- strict: true;
595
- }, {
596
- actor: string;
597
- permission: string;
598
- }>>;
599
- data: z.ZodObject<{
600
- account: z.ZodString;
601
- key: z.ZodObject<{
602
- key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
603
- modulus: z.ZodString;
604
- exponent: z.ZodString;
605
- }, {
606
- strict: true;
607
- }, {
608
- modulus: string;
609
- exponent: string;
610
- }>]>>;
611
- user_presence: z.ZodNumber;
612
- rpid: z.ZodString;
613
- }, {
614
- strict: true;
615
- }, {
616
- key: (string | {
617
- modulus: string;
618
- exponent: string;
619
- })[];
620
- user_presence: number;
621
- rpid: string;
622
- }>;
623
- nonce: z.ZodNumber;
624
- permissions: z.ZodArray<z.ZodObject<{
625
- actor: z.ZodString;
626
- permission: z.ZodString;
627
- }, {
628
- strict: true;
629
- }, {
630
- actor: string;
631
- permission: string;
632
- }>>;
633
- signature: z.ZodObject<{
634
- auth_data: z.ZodString;
635
- client_json: z.ZodString;
636
- signature: z.ZodString;
637
- }, {
638
- strict: true;
639
- }, {
640
- auth_data: string;
641
- client_json: string;
642
- signature: string;
643
- }>;
644
- trx: z.ZodObject<{
645
- expiration: z.ZodString;
646
- ref_block_num: z.ZodNumber;
647
- ref_block_prefix: z.ZodNumber;
648
- max_net_usage_words: z.ZodNumber;
649
- max_cpu_usage_ms: z.ZodNumber;
650
- delay_sec: z.ZodNumber;
651
- context_free_actions: z.ZodArray<z.ZodAny>;
652
- transaction_extensions: z.ZodArray<z.ZodAny>;
653
- } & {
654
- actions: z.ZodArray<z.ZodObject<{
655
- account: z.ZodLiteral<"proton.wrap">;
656
- name: z.ZodLiteral<"generateauth">;
657
- data: z.ZodUnion<[z.ZodString, z.ZodObject<{
658
- time: z.ZodString;
659
- protonAccount: z.ZodString;
660
- }, {
661
- strict: true;
662
- }, {
663
- time: string;
664
- protonAccount: string;
665
- }>]>;
666
- authorization: z.ZodArray<z.ZodObject<{
667
- actor: z.ZodString;
668
- permission: z.ZodString;
669
- }, {
670
- strict: true;
671
- }, {
672
- actor: string;
673
- permission: string;
674
- }>>;
675
- }, {
676
- strict: true;
677
- }, {
678
- account: "proton.wrap";
679
- name: "generateauth";
680
- data: string | {
681
- time: string;
682
- protonAccount: string;
683
- };
684
- authorization: {
685
- actor: string;
686
- permission: string;
687
- }[];
688
- }>>;
689
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
690
- strict: true;
691
- }, {
692
- strict: true;
693
- }>, {
694
- expiration: string;
695
- ref_block_num: number;
696
- ref_block_prefix: number;
697
- max_net_usage_words: number;
698
- max_cpu_usage_ms: number;
699
- delay_sec: number;
700
- context_free_actions: any[];
701
- transaction_extensions: any[];
702
- actions: {
703
- account: "proton.wrap";
704
- name: "generateauth";
705
- data: string | {
706
- time: string;
707
- protonAccount: string;
708
- };
709
- authorization: {
710
- actor: string;
711
- permission: string;
712
- }[];
713
- }[];
714
- }>;
715
- }, {
716
- strict: true;
717
- }, {
718
- account: string;
719
- key: {
720
- key: (string | {
721
- modulus: string;
722
- exponent: string;
723
- })[];
724
- user_presence: number;
725
- rpid: string;
726
- };
727
- signature: {
728
- auth_data: string;
729
- client_json: string;
730
- signature: string;
731
- };
732
- nonce: number;
733
- permissions: {
734
- actor: string;
735
- permission: string;
736
- }[];
737
- trx: {
738
- expiration: string;
739
- ref_block_num: number;
740
- ref_block_prefix: number;
741
- max_net_usage_words: number;
742
- max_cpu_usage_ms: number;
743
- delay_sec: number;
744
- context_free_actions: any[];
745
- transaction_extensions: any[];
746
- actions: {
747
- account: "proton.wrap";
748
- name: "generateauth";
749
- data: string | {
750
- time: string;
751
- protonAccount: string;
752
- };
753
- authorization: {
754
- actor: string;
755
- permission: string;
756
- }[];
757
- }[];
758
- };
759
- }>;
760
- }, {
761
- strict: true;
762
- }, {
763
- account: "webauthn";
764
- name: "exec";
765
- data: {
766
- account: string;
767
- key: {
768
- key: (string | {
769
- modulus: string;
770
- exponent: string;
771
- })[];
772
- user_presence: number;
773
- rpid: string;
774
- };
775
- signature: {
776
- auth_data: string;
777
- client_json: string;
778
- signature: string;
779
- };
780
- nonce: number;
781
- permissions: {
782
- actor: string;
783
- permission: string;
784
- }[];
785
- trx: {
786
- expiration: string;
787
- ref_block_num: number;
788
- ref_block_prefix: number;
789
- max_net_usage_words: number;
790
- max_cpu_usage_ms: number;
791
- delay_sec: number;
792
- context_free_actions: any[];
793
- transaction_extensions: any[];
794
- actions: {
795
- account: "proton.wrap";
796
- name: "generateauth";
797
- data: string | {
798
- time: string;
799
- protonAccount: string;
800
- };
801
- authorization: {
802
- actor: string;
803
- permission: string;
804
- }[];
805
- }[];
806
- };
807
- };
808
- authorization: {
809
- actor: string;
810
- permission: string;
811
- }[];
812
- }>]>>;
813
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
814
- strict: true;
815
- }, {
816
- strict: true;
817
- }>, {
818
- expiration: string;
819
- ref_block_num: number;
820
- ref_block_prefix: number;
821
- max_net_usage_words: number;
822
- max_cpu_usage_ms: number;
823
- delay_sec: number;
824
- context_free_actions: any[];
825
- transaction_extensions: any[];
826
- actions: ({
827
- account: "proton.wrap";
828
- name: "generateauth";
829
- data: {
830
- time: string;
831
- protonAccount: string;
832
- };
833
- authorization: {
834
- actor: string;
835
- permission: string;
836
- }[];
837
- } | {
838
- account: "webauthn";
839
- name: "exec";
840
- data: {
841
- account: string;
842
- key: {
843
- key: (string | {
844
- modulus: string;
845
- exponent: string;
846
- })[];
847
- user_presence: number;
848
- rpid: string;
849
- };
850
- signature: {
851
- auth_data: string;
852
- client_json: string;
853
- signature: string;
854
- };
855
- nonce: number;
856
- permissions: {
857
- actor: string;
858
- permission: string;
859
- }[];
860
- trx: {
861
- expiration: string;
862
- ref_block_num: number;
863
- ref_block_prefix: number;
864
- max_net_usage_words: number;
865
- max_cpu_usage_ms: number;
866
- delay_sec: number;
867
- context_free_actions: any[];
868
- transaction_extensions: any[];
869
- actions: {
870
- account: "proton.wrap";
871
- name: "generateauth";
872
- data: string | {
873
- time: string;
874
- protonAccount: string;
875
- };
876
- authorization: {
877
- actor: string;
878
- permission: string;
879
- }[];
880
- }[];
881
- };
882
- };
883
- authorization: {
884
- actor: string;
885
- permission: string;
886
- }[];
887
- })[];
888
- }>;
889
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
890
- strict: true;
891
- }, {
892
- strict: true;
893
- }>, {
894
- signer: {
895
- actor: string;
896
- permission: string;
897
- };
898
- signatures: string[];
899
- transaction: {
900
- expiration: string;
901
- ref_block_num: number;
902
- ref_block_prefix: number;
903
- max_net_usage_words: number;
904
- max_cpu_usage_ms: number;
905
- delay_sec: number;
906
- context_free_actions: any[];
907
- transaction_extensions: any[];
908
- actions: ({
909
- account: "proton.wrap";
910
- name: "generateauth";
911
- data: {
912
- time: string;
913
- protonAccount: string;
914
- };
915
- authorization: {
916
- actor: string;
917
- permission: string;
918
- }[];
919
- } | {
920
- account: "webauthn";
921
- name: "exec";
922
- data: {
923
- account: string;
924
- key: {
925
- key: (string | {
926
- modulus: string;
927
- exponent: string;
928
- })[];
929
- user_presence: number;
930
- rpid: string;
931
- };
932
- signature: {
933
- auth_data: string;
934
- client_json: string;
935
- signature: string;
936
- };
937
- nonce: number;
938
- permissions: {
939
- actor: string;
940
- permission: string;
941
- }[];
942
- trx: {
943
- expiration: string;
944
- ref_block_num: number;
945
- ref_block_prefix: number;
946
- max_net_usage_words: number;
947
- max_cpu_usage_ms: number;
948
- delay_sec: number;
949
- context_free_actions: any[];
950
- transaction_extensions: any[];
951
- actions: {
952
- account: "proton.wrap";
953
- name: "generateauth";
954
- data: string | {
955
- time: string;
956
- protonAccount: string;
957
- };
958
- authorization: {
959
- actor: string;
960
- permission: string;
961
- }[];
962
- }[];
963
- };
964
- };
965
- authorization: {
966
- actor: string;
967
- permission: string;
968
- }[];
969
- })[];
970
- };
971
- coin: string;
972
- wallet: string;
973
- }>;
974
- export declare type GenerateAddressBody = z.infer<typeof generateAddressBodyParser>;
975
- export declare const generateAddressResponse: z.ZodObject<{
976
- id: z.ZodString;
977
- address: z.ZodString;
978
- coin: z.ZodString;
979
- wallet: z.ZodString;
980
- memo: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
981
- }, {
982
- strict: true;
983
- }, {
984
- memo?: string | undefined;
985
- coin: string;
986
- wallet: string;
987
- id: string;
988
- address: string;
989
- }>;
990
- export declare type GenerateAddressResponse = z.infer<typeof generateAddressResponse>;
991
- export declare const depositBodyParser: z.ZodObject<{
992
- id: z.ZodString;
993
- type: z.ZodNativeEnum<typeof Type>;
994
- hash: z.ZodString;
995
- coin: z.ZodString;
996
- wallet: z.ZodString;
997
- }, {
998
- strict: true;
999
- }, {
1000
- type: Type;
1001
- coin: string;
1002
- wallet: string;
1003
- id: string;
1004
- hash: string;
1005
- }>;
1006
- export declare type DepositBody = z.infer<typeof depositBodyParser>;
1007
- declare const withdrawBodyBaseAction: z.ZodObject<{
1008
- account: z.ZodString;
1009
- name: z.ZodLiteral<"transfer">;
1010
- data: z.ZodObject<{
1011
- from: z.ZodString;
1012
- to: z.ZodLiteral<"proton.wrap">;
1013
- quantity: z.ZodString;
1014
- memo: z.ZodString;
1015
- }, {
1016
- strict: true;
1017
- }, {
1018
- from: string;
1019
- to: "proton.wrap";
1020
- quantity: string;
1021
- memo: string;
1022
- }>;
1023
- authorization: z.ZodArray<z.ZodObject<{
1024
- actor: z.ZodString;
1025
- permission: z.ZodString;
1026
- }, {
1027
- strict: true;
1028
- }, {
1029
- actor: string;
1030
- permission: string;
1031
- }>>;
1032
- }, {
1033
- strict: true;
1034
- }, {
1035
- account: string;
1036
- name: "transfer";
1037
- data: {
1038
- from: string;
1039
- to: "proton.wrap";
1040
- quantity: string;
1041
- memo: string;
1042
- };
1043
- authorization: {
1044
- actor: string;
1045
- permission: string;
1046
- }[];
1047
- }>;
1048
- export declare type WithdrawBodyBaseAction = z.infer<typeof withdrawBodyBaseAction>;
1049
- export declare const withdrawBodyParser: z.ZodObject<{
1050
- signer: z.ZodObject<{
1051
- actor: z.ZodString;
1052
- permission: z.ZodString;
1053
- }, {
1054
- strict: true;
1055
- }, {
1056
- actor: string;
1057
- permission: string;
1058
- }>;
1059
- signatures: z.ZodArray<z.ZodString>;
1060
- transaction: z.ZodObject<{
1061
- expiration: z.ZodString;
1062
- ref_block_num: z.ZodNumber;
1063
- ref_block_prefix: z.ZodNumber;
1064
- max_net_usage_words: z.ZodNumber;
1065
- max_cpu_usage_ms: z.ZodNumber;
1066
- delay_sec: z.ZodNumber;
1067
- context_free_actions: z.ZodArray<z.ZodAny>;
1068
- transaction_extensions: z.ZodArray<z.ZodAny>;
1069
- } & {
1070
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1071
- account: z.ZodString;
1072
- name: z.ZodLiteral<"transfer">;
1073
- data: z.ZodObject<{
1074
- from: z.ZodString;
1075
- to: z.ZodLiteral<"proton.wrap">;
1076
- quantity: z.ZodString;
1077
- memo: z.ZodString;
1078
- }, {
1079
- strict: true;
1080
- }, {
1081
- from: string;
1082
- to: "proton.wrap";
1083
- quantity: string;
1084
- memo: string;
1085
- }>;
1086
- authorization: z.ZodArray<z.ZodObject<{
1087
- actor: z.ZodString;
1088
- permission: z.ZodString;
1089
- }, {
1090
- strict: true;
1091
- }, {
1092
- actor: string;
1093
- permission: string;
1094
- }>>;
1095
- }, {
1096
- strict: true;
1097
- }, {
1098
- account: string;
1099
- name: "transfer";
1100
- data: {
1101
- from: string;
1102
- to: "proton.wrap";
1103
- quantity: string;
1104
- memo: string;
1105
- };
1106
- authorization: {
1107
- actor: string;
1108
- permission: string;
1109
- }[];
1110
- }>, z.ZodObject<{
1111
- account: z.ZodLiteral<"webauthn">;
1112
- name: z.ZodLiteral<"exec">;
1113
- authorization: z.ZodArray<z.ZodObject<{
1114
- actor: z.ZodString;
1115
- permission: z.ZodString;
1116
- }, {
1117
- strict: true;
1118
- }, {
1119
- actor: string;
1120
- permission: string;
1121
- }>>;
1122
- data: z.ZodObject<{
1123
- account: z.ZodString;
1124
- key: z.ZodObject<{
1125
- key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1126
- modulus: z.ZodString;
1127
- exponent: z.ZodString;
1128
- }, {
1129
- strict: true;
1130
- }, {
1131
- modulus: string;
1132
- exponent: string;
1133
- }>]>>;
1134
- user_presence: z.ZodNumber;
1135
- rpid: z.ZodString;
1136
- }, {
1137
- strict: true;
1138
- }, {
1139
- key: (string | {
1140
- modulus: string;
1141
- exponent: string;
1142
- })[];
1143
- user_presence: number;
1144
- rpid: string;
1145
- }>;
1146
- nonce: z.ZodNumber;
1147
- permissions: z.ZodArray<z.ZodObject<{
1148
- actor: z.ZodString;
1149
- permission: z.ZodString;
1150
- }, {
1151
- strict: true;
1152
- }, {
1153
- actor: string;
1154
- permission: string;
1155
- }>>;
1156
- signature: z.ZodObject<{
1157
- auth_data: z.ZodString;
1158
- client_json: z.ZodString;
1159
- signature: z.ZodString;
1160
- }, {
1161
- strict: true;
1162
- }, {
1163
- auth_data: string;
1164
- client_json: string;
1165
- signature: string;
1166
- }>;
1167
- trx: z.ZodObject<{
1168
- expiration: z.ZodString;
1169
- ref_block_num: z.ZodNumber;
1170
- ref_block_prefix: z.ZodNumber;
1171
- max_net_usage_words: z.ZodNumber;
1172
- max_cpu_usage_ms: z.ZodNumber;
1173
- delay_sec: z.ZodNumber;
1174
- context_free_actions: z.ZodArray<z.ZodAny>;
1175
- transaction_extensions: z.ZodArray<z.ZodAny>;
1176
- } & {
1177
- actions: z.ZodArray<z.ZodObject<{
1178
- account: z.ZodString;
1179
- name: z.ZodLiteral<"transfer">;
1180
- data: z.ZodUnion<[z.ZodString, z.ZodObject<{
1181
- from: z.ZodString;
1182
- to: z.ZodLiteral<"proton.wrap">;
1183
- quantity: z.ZodString;
1184
- memo: z.ZodString;
1185
- }, {
1186
- strict: true;
1187
- }, {
1188
- from: string;
1189
- to: "proton.wrap";
1190
- quantity: string;
1191
- memo: string;
1192
- }>]>;
1193
- authorization: z.ZodArray<z.ZodObject<{
1194
- actor: z.ZodString;
1195
- permission: z.ZodString;
1196
- }, {
1197
- strict: true;
1198
- }, {
1199
- actor: string;
1200
- permission: string;
1201
- }>>;
1202
- }, {
1203
- strict: true;
1204
- }, {
1205
- account: string;
1206
- name: "transfer";
1207
- data: string | {
1208
- from: string;
1209
- to: "proton.wrap";
1210
- quantity: string;
1211
- memo: string;
1212
- };
1213
- authorization: {
1214
- actor: string;
1215
- permission: string;
1216
- }[];
1217
- }>>;
1218
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
1219
- strict: true;
1220
- }, {
1221
- strict: true;
1222
- }>, {
1223
- expiration: string;
1224
- ref_block_num: number;
1225
- ref_block_prefix: number;
1226
- max_net_usage_words: number;
1227
- max_cpu_usage_ms: number;
1228
- delay_sec: number;
1229
- context_free_actions: any[];
1230
- transaction_extensions: any[];
1231
- actions: {
1232
- account: string;
1233
- name: "transfer";
1234
- data: string | {
1235
- from: string;
1236
- to: "proton.wrap";
1237
- quantity: string;
1238
- memo: string;
1239
- };
1240
- authorization: {
1241
- actor: string;
1242
- permission: string;
1243
- }[];
1244
- }[];
1245
- }>;
1246
- }, {
1247
- strict: true;
1248
- }, {
1249
- account: string;
1250
- key: {
1251
- key: (string | {
1252
- modulus: string;
1253
- exponent: string;
1254
- })[];
1255
- user_presence: number;
1256
- rpid: string;
1257
- };
1258
- signature: {
1259
- auth_data: string;
1260
- client_json: string;
1261
- signature: string;
1262
- };
1263
- nonce: number;
1264
- permissions: {
1265
- actor: string;
1266
- permission: string;
1267
- }[];
1268
- trx: {
1269
- expiration: string;
1270
- ref_block_num: number;
1271
- ref_block_prefix: number;
1272
- max_net_usage_words: number;
1273
- max_cpu_usage_ms: number;
1274
- delay_sec: number;
1275
- context_free_actions: any[];
1276
- transaction_extensions: any[];
1277
- actions: {
1278
- account: string;
1279
- name: "transfer";
1280
- data: string | {
1281
- from: string;
1282
- to: "proton.wrap";
1283
- quantity: string;
1284
- memo: string;
1285
- };
1286
- authorization: {
1287
- actor: string;
1288
- permission: string;
1289
- }[];
1290
- }[];
1291
- };
1292
- }>;
1293
- }, {
1294
- strict: true;
1295
- }, {
1296
- account: "webauthn";
1297
- name: "exec";
1298
- data: {
1299
- account: string;
1300
- key: {
1301
- key: (string | {
1302
- modulus: string;
1303
- exponent: string;
1304
- })[];
1305
- user_presence: number;
1306
- rpid: string;
1307
- };
1308
- signature: {
1309
- auth_data: string;
1310
- client_json: string;
1311
- signature: string;
1312
- };
1313
- nonce: number;
1314
- permissions: {
1315
- actor: string;
1316
- permission: string;
1317
- }[];
1318
- trx: {
1319
- expiration: string;
1320
- ref_block_num: number;
1321
- ref_block_prefix: number;
1322
- max_net_usage_words: number;
1323
- max_cpu_usage_ms: number;
1324
- delay_sec: number;
1325
- context_free_actions: any[];
1326
- transaction_extensions: any[];
1327
- actions: {
1328
- account: string;
1329
- name: "transfer";
1330
- data: string | {
1331
- from: string;
1332
- to: "proton.wrap";
1333
- quantity: string;
1334
- memo: string;
1335
- };
1336
- authorization: {
1337
- actor: string;
1338
- permission: string;
1339
- }[];
1340
- }[];
1341
- };
1342
- };
1343
- authorization: {
1344
- actor: string;
1345
- permission: string;
1346
- }[];
1347
- }>]>>;
1348
- }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
1349
- strict: true;
1350
- }, {
1351
- strict: true;
1352
- }>, {
1353
- expiration: string;
1354
- ref_block_num: number;
1355
- ref_block_prefix: number;
1356
- max_net_usage_words: number;
1357
- max_cpu_usage_ms: number;
1358
- delay_sec: number;
1359
- context_free_actions: any[];
1360
- transaction_extensions: any[];
1361
- actions: ({
1362
- account: string;
1363
- name: "transfer";
1364
- data: {
1365
- from: string;
1366
- to: "proton.wrap";
1367
- quantity: string;
1368
- memo: string;
1369
- };
1370
- authorization: {
1371
- actor: string;
1372
- permission: string;
1373
- }[];
1374
- } | {
1375
- account: "webauthn";
1376
- name: "exec";
1377
- data: {
1378
- account: string;
1379
- key: {
1380
- key: (string | {
1381
- modulus: string;
1382
- exponent: string;
1383
- })[];
1384
- user_presence: number;
1385
- rpid: string;
1386
- };
1387
- signature: {
1388
- auth_data: string;
1389
- client_json: string;
1390
- signature: string;
1391
- };
1392
- nonce: number;
1393
- permissions: {
1394
- actor: string;
1395
- permission: string;
1396
- }[];
1397
- trx: {
1398
- expiration: string;
1399
- ref_block_num: number;
1400
- ref_block_prefix: number;
1401
- max_net_usage_words: number;
1402
- max_cpu_usage_ms: number;
1403
- delay_sec: number;
1404
- context_free_actions: any[];
1405
- transaction_extensions: any[];
1406
- actions: {
1407
- account: string;
1408
- name: "transfer";
1409
- data: string | {
1410
- from: string;
1411
- to: "proton.wrap";
1412
- quantity: string;
1413
- memo: string;
1414
- };
1415
- authorization: {
1416
- actor: string;
1417
- permission: string;
1418
- }[];
1419
- }[];
1420
- };
1421
- };
1422
- authorization: {
1423
- actor: string;
1424
- permission: string;
1425
- }[];
1426
- })[];
1427
- }>;
1428
- quoteId: z.ZodString;
1429
- provider: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
1430
- }, {
1431
- strict: true;
1432
- }, {
1433
- provider?: string | undefined;
1434
- signer: {
1435
- actor: string;
1436
- permission: string;
1437
- };
1438
- signatures: string[];
1439
- transaction: {
1440
- expiration: string;
1441
- ref_block_num: number;
1442
- ref_block_prefix: number;
1443
- max_net_usage_words: number;
1444
- max_cpu_usage_ms: number;
1445
- delay_sec: number;
1446
- context_free_actions: any[];
1447
- transaction_extensions: any[];
1448
- actions: ({
1449
- account: string;
1450
- name: "transfer";
1451
- data: {
1452
- from: string;
1453
- to: "proton.wrap";
1454
- quantity: string;
1455
- memo: string;
1456
- };
1457
- authorization: {
1458
- actor: string;
1459
- permission: string;
1460
- }[];
1461
- } | {
1462
- account: "webauthn";
1463
- name: "exec";
1464
- data: {
1465
- account: string;
1466
- key: {
1467
- key: (string | {
1468
- modulus: string;
1469
- exponent: string;
1470
- })[];
1471
- user_presence: number;
1472
- rpid: string;
1473
- };
1474
- signature: {
1475
- auth_data: string;
1476
- client_json: string;
1477
- signature: string;
1478
- };
1479
- nonce: number;
1480
- permissions: {
1481
- actor: string;
1482
- permission: string;
1483
- }[];
1484
- trx: {
1485
- expiration: string;
1486
- ref_block_num: number;
1487
- ref_block_prefix: number;
1488
- max_net_usage_words: number;
1489
- max_cpu_usage_ms: number;
1490
- delay_sec: number;
1491
- context_free_actions: any[];
1492
- transaction_extensions: any[];
1493
- actions: {
1494
- account: string;
1495
- name: "transfer";
1496
- data: string | {
1497
- from: string;
1498
- to: "proton.wrap";
1499
- quantity: string;
1500
- memo: string;
1501
- };
1502
- authorization: {
1503
- actor: string;
1504
- permission: string;
1505
- }[];
1506
- }[];
1507
- };
1508
- };
1509
- authorization: {
1510
- actor: string;
1511
- permission: string;
1512
- }[];
1513
- })[];
1514
- };
1515
- quoteId: string;
1516
- }>;
1517
- export declare type WithdrawBody = z.infer<typeof withdrawBodyParser>;
1518
- export declare const withdrawMetalResponseParser: z.ZodObject<{
1519
- success: z.ZodBoolean;
1520
- id: z.ZodString;
1521
- }, {
1522
- strict: true;
1523
- }, {
1524
- id: string;
1525
- success: boolean;
1526
- }>;
1527
- export declare type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
1528
- export declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
1529
- id: z.ZodString;
1530
- status: z.ZodString;
1531
- amount: z.ZodString;
1532
- currency: z.ZodString;
1533
- network: z.ZodString;
1534
- created: z.ZodString;
1535
- withdrawalAddress: z.ZodString;
1536
- withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
1537
- }, {
1538
- strict: true;
1539
- }, {
1540
- withdrawalHash?: string | undefined;
1541
- id: string;
1542
- status: string;
1543
- amount: string;
1544
- currency: string;
1545
- network: string;
1546
- created: string;
1547
- withdrawalAddress: string;
1548
- }>;
1549
- export declare type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
1550
- export declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
1551
- swaps: z.ZodArray<z.ZodObject<{
1552
- id: z.ZodString;
1553
- status: z.ZodString;
1554
- amount: z.ZodString;
1555
- currency: z.ZodString;
1556
- network: z.ZodString;
1557
- created: z.ZodString;
1558
- withdrawalAddress: z.ZodString;
1559
- withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
1560
- }, {
1561
- strict: true;
1562
- }, {
1563
- withdrawalHash?: string | undefined;
1564
- id: string;
1565
- status: string;
1566
- amount: string;
1567
- currency: string;
1568
- network: string;
1569
- created: string;
1570
- withdrawalAddress: string;
1571
- }>>;
1572
- page: z.ZodNumber;
1573
- pageSize: z.ZodNumber;
1574
- numberOfElements: z.ZodNumber;
1575
- totalPages: z.ZodNumber;
1576
- totalElements: z.ZodNumber;
1577
- }, {
1578
- strict: true;
1579
- }, {
1580
- swaps: {
1581
- withdrawalHash?: string | undefined;
1582
- id: string;
1583
- status: string;
1584
- amount: string;
1585
- currency: string;
1586
- network: string;
1587
- created: string;
1588
- withdrawalAddress: string;
1589
- }[];
1590
- page: number;
1591
- pageSize: number;
1592
- numberOfElements: number;
1593
- totalPages: number;
1594
- totalElements: number;
1595
- }>;
1596
- export declare type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
1597
- declare const ExtendedAssetParser: z.ZodObject<{
1598
- quantity: z.ZodString;
1599
- contract: z.ZodString;
1600
- }, {
1601
- strict: true;
1602
- }, {
1603
- quantity: string;
1604
- contract: string;
1605
- }>;
1606
- export declare type ExtendedAsset = z.infer<typeof ExtendedAssetParser>;
1607
- export declare const wrapStartParser: z.ZodObject<{
1608
- balance: z.ZodObject<{
1609
- quantity: z.ZodString;
1610
- contract: z.ZodString;
1611
- }, {
1612
- strict: true;
1613
- }, {
1614
- quantity: string;
1615
- contract: string;
1616
- }>;
1617
- id: z.ZodString;
1618
- txid: z.ZodString;
1619
- chain: z.ZodString;
1620
- deposit_address: z.ZodString;
1621
- confirmations: z.ZodNumber;
1622
- }, {
1623
- strict: true;
1624
- }, {
1625
- id: string;
1626
- balance: {
1627
- quantity: string;
1628
- contract: string;
1629
- };
1630
- txid: string;
1631
- chain: string;
1632
- deposit_address: string;
1633
- confirmations: number;
1634
- }>;
1635
- export declare type WrapStart = z.infer<typeof wrapStartParser>;
1636
- export declare const wrapSetConfParser: z.ZodObject<{
1637
- wrap_hash: z.ZodString;
1638
- confirmations: z.ZodNumber;
1639
- }, {
1640
- strict: true;
1641
- }, {
1642
- confirmations: number;
1643
- wrap_hash: string;
1644
- }>;
1645
- export declare type WrapSetConf = z.infer<typeof wrapSetConfParser>;
1646
- export declare const wrapParser: z.ZodObject<{
1647
- index: z.ZodNumber;
1648
- proton_account: z.ZodString;
1649
- balance: z.ZodObject<{
1650
- quantity: z.ZodString;
1651
- contract: z.ZodString;
1652
- }, {
1653
- strict: true;
1654
- }, {
1655
- quantity: string;
1656
- contract: string;
1657
- }>;
1658
- id: z.ZodString;
1659
- txid: z.ZodString;
1660
- chain: z.ZodString;
1661
- deposit_address: z.ZodString;
1662
- status: z.ZodNativeEnum<typeof Status>;
1663
- finish_txid: z.ZodString;
1664
- wrap_hash: z.ZodString;
1665
- confirmations: z.ZodNumber;
1666
- }, {
1667
- strict: true;
1668
- }, {
1669
- id: string;
1670
- status: Status;
1671
- balance: {
1672
- quantity: string;
1673
- contract: string;
1674
- };
1675
- txid: string;
1676
- chain: string;
1677
- deposit_address: string;
1678
- confirmations: number;
1679
- wrap_hash: string;
1680
- index: number;
1681
- proton_account: string;
1682
- finish_txid: string;
1683
- }>;
1684
- export declare type Wrap = z.infer<typeof wrapParser>;
1685
- export declare const transactionParser: z.ZodObject<{
1686
- id: z.ZodString;
1687
- wallet: z.ZodString;
1688
- value: z.ZodNumber;
1689
- valueString: z.ZodString;
1690
- address: z.ZodString;
1691
- type: z.ZodNativeEnum<typeof Type>;
1692
- state: z.ZodString;
1693
- confirmations: z.ZodNumber;
1694
- hash: z.ZodString;
1695
- blockHash: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUndefined]>, z.ZodNull]>;
1696
- blockHeight: z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, z.ZodNull]>;
1697
- }, {
1698
- strict: true;
1699
- }, {
1700
- blockHash?: string | null | undefined;
1701
- blockHeight?: number | null | undefined;
1702
- type: Type;
1703
- wallet: string;
1704
- id: string;
1705
- address: string;
1706
- hash: string;
1707
- confirmations: number;
1708
- value: number;
1709
- valueString: string;
1710
- state: string;
1711
- }>;
1712
- export declare type Transaction = z.infer<typeof transactionParser>;
1713
- export declare const addressParser: z.ZodObject<{
1714
- index: z.ZodNumber;
1715
- account: z.ZodString;
1716
- chain: z.ZodString;
1717
- address: z.ZodString;
1718
- address_hash: z.ZodString;
1719
- }, {
1720
- strict: true;
1721
- }, {
1722
- account: string;
1723
- address: string;
1724
- chain: string;
1725
- index: number;
1726
- address_hash: string;
1727
- }>;
1728
- export declare type Address = z.infer<typeof addressParser>;
1729
- export declare const otcOrderResponseParser: z.ZodObject<{
1730
- success: z.ZodBoolean;
1731
- transaction_id: z.ZodString;
1732
- errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
1733
- }, {
1734
- strict: true;
1735
- }, {
1736
- errormsg?: string | undefined;
1737
- success: boolean;
1738
- transaction_id: string;
1739
- }>;
1740
- export declare type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
1741
- export declare const otcQuoteBodyParser: z.ZodObject<{
1742
- baseAmount: z.ZodNumber;
1743
- baseSymbol: z.ZodString;
1744
- quoteSymbol: z.ZodString;
1745
- }, {
1746
- strict: true;
1747
- }, {
1748
- baseAmount: number;
1749
- baseSymbol: string;
1750
- quoteSymbol: string;
1751
- }>;
1752
- export declare type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
1753
- export declare const otcQuoteResponseParser: z.ZodObject<{
1754
- success: z.ZodBoolean;
1755
- token: z.ZodString;
1756
- qty: z.ZodNumber;
1757
- errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
1758
- }, {
1759
- strict: true;
1760
- }, {
1761
- errormsg?: string | undefined;
1762
- success: boolean;
1763
- token: string;
1764
- qty: number;
1765
- }>;
1766
- export declare type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;
1767
- export declare const rateParser: z.ZodObject<{
1768
- counterCurrency: z.ZodString;
1769
- price: z.ZodNumber;
1770
- priceChangePercent: z.ZodNumber;
1771
- marketCap: z.ZodNumber;
1772
- volume: z.ZodNumber;
1773
- timestamp: z.ZodNumber;
1774
- }, {
1775
- strict: true;
1776
- }, {
1777
- counterCurrency: string;
1778
- price: number;
1779
- priceChangePercent: number;
1780
- marketCap: number;
1781
- volume: number;
1782
- timestamp: number;
1783
- }>;
1784
- export declare type Rate = z.infer<typeof rateParser>;
1785
- export declare const exchangeRateParser: z.ZodObject<{
1786
- contract: z.ZodString;
1787
- symbol: z.ZodString;
1788
- rank: z.ZodNumber;
1789
- rates: z.ZodArray<z.ZodObject<{
1790
- counterCurrency: z.ZodString;
1791
- price: z.ZodNumber;
1792
- priceChangePercent: z.ZodNumber;
1793
- marketCap: z.ZodNumber;
1794
- volume: z.ZodNumber;
1795
- timestamp: z.ZodNumber;
1796
- }, {
1797
- strict: true;
1798
- }, {
1799
- counterCurrency: string;
1800
- price: number;
1801
- priceChangePercent: number;
1802
- marketCap: number;
1803
- volume: number;
1804
- timestamp: number;
1805
- }>>;
1806
- }, {
1807
- strict: true;
1808
- }, {
1809
- symbol: string;
1810
- contract: string;
1811
- rank: number;
1812
- rates: {
1813
- counterCurrency: string;
1814
- price: number;
1815
- priceChangePercent: number;
1816
- marketCap: number;
1817
- volume: number;
1818
- timestamp: number;
1819
- }[];
1820
- }>;
1821
- export declare type ExchangeRate = z.infer<typeof exchangeRateParser>;
1822
- export declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
1823
- contract: z.ZodString;
1824
- symbol: z.ZodString;
1825
- rank: z.ZodNumber;
1826
- rates: z.ZodArray<z.ZodObject<{
1827
- counterCurrency: z.ZodString;
1828
- price: z.ZodNumber;
1829
- priceChangePercent: z.ZodNumber;
1830
- marketCap: z.ZodNumber;
1831
- volume: z.ZodNumber;
1832
- timestamp: z.ZodNumber;
1833
- }, {
1834
- strict: true;
1835
- }, {
1836
- counterCurrency: string;
1837
- price: number;
1838
- priceChangePercent: number;
1839
- marketCap: number;
1840
- volume: number;
1841
- timestamp: number;
1842
- }>>;
1843
- }, {
1844
- strict: true;
1845
- }, {
1846
- symbol: string;
1847
- contract: string;
1848
- rank: number;
1849
- rates: {
1850
- counterCurrency: string;
1851
- price: number;
1852
- priceChangePercent: number;
1853
- marketCap: number;
1854
- volume: number;
1855
- timestamp: number;
1856
- }[];
1857
- }>>;
1858
- export declare type ExchangeRates = z.infer<typeof exchangeRatesParser>;
1859
- export declare const withdrawalFeeQuoteParser: z.ZodObject<{
1860
- quoteId: z.ZodString;
1861
- estimatedFee: z.ZodString;
1862
- currency: z.ZodString;
1863
- network: z.ZodString;
1864
- }, {
1865
- strict: true;
1866
- }, {
1867
- currency: string;
1868
- network: string;
1869
- quoteId: string;
1870
- estimatedFee: string;
1871
- }>;
1872
- export declare type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
1873
- export interface CurrencyStat {
1874
- supply: string;
1875
- max_supply: string;
1876
- issuer: string;
1877
- }
1878
- export interface CurrencyStats {
1879
- [key: string]: CurrencyStat;
1880
- }
1881
- export {};