@proton/wrap-constants 0.0.34 → 0.0.35
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/actions.d.ts +365 -107
- package/dist/parsers/address.d.ts +5 -15
- package/dist/parsers/auth.d.ts +19 -41
- package/dist/parsers/withdraw.d.ts +20 -26
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/actions.ts +4 -4
|
@@ -47,12 +47,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
47
47
|
}, {
|
|
48
48
|
[x: string]: any;
|
|
49
49
|
[x: number]: any;
|
|
50
|
-
}
|
|
51
|
-
strict: true;
|
|
52
|
-
}, {
|
|
53
|
-
[x: string]: any;
|
|
54
|
-
[x: number]: any;
|
|
55
|
-
}>]>;
|
|
50
|
+
}>;
|
|
56
51
|
authorization: z.ZodArray<z.ZodObject<{
|
|
57
52
|
actor: z.ZodString;
|
|
58
53
|
permission: z.ZodString;
|
|
@@ -67,7 +62,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
67
62
|
}, {
|
|
68
63
|
account: string;
|
|
69
64
|
name: string;
|
|
70
|
-
data:
|
|
65
|
+
data: {
|
|
71
66
|
[x: string]: any;
|
|
72
67
|
[x: number]: any;
|
|
73
68
|
};
|
|
@@ -136,12 +131,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
136
131
|
actions: z.ZodArray<z.ZodObject<{
|
|
137
132
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
138
133
|
name: z.ZodLiteral<string>;
|
|
139
|
-
data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
140
|
-
strict: true;
|
|
141
|
-
}, {
|
|
142
|
-
[x: string]: any;
|
|
143
|
-
[x: number]: any;
|
|
144
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
134
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
145
135
|
strict: true;
|
|
146
136
|
}, {
|
|
147
137
|
[x: string]: any;
|
|
@@ -319,7 +309,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
319
309
|
actions: ({
|
|
320
310
|
account: string;
|
|
321
311
|
name: string;
|
|
322
|
-
data:
|
|
312
|
+
data: {
|
|
323
313
|
[x: string]: any;
|
|
324
314
|
[x: number]: any;
|
|
325
315
|
};
|
|
@@ -401,7 +391,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
401
391
|
actions: ({
|
|
402
392
|
account: string;
|
|
403
393
|
name: string;
|
|
404
|
-
data:
|
|
394
|
+
data: {
|
|
405
395
|
[x: string]: any;
|
|
406
396
|
[x: number]: any;
|
|
407
397
|
};
|
package/dist/parsers/auth.d.ts
CHANGED
|
@@ -29,12 +29,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
29
29
|
}, {
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
[x: number]: any;
|
|
32
|
-
}
|
|
33
|
-
strict: true;
|
|
34
|
-
}, {
|
|
35
|
-
[x: string]: any;
|
|
36
|
-
[x: number]: any;
|
|
37
|
-
}>]>;
|
|
32
|
+
}>;
|
|
38
33
|
authorization: z.ZodArray<z.ZodObject<{
|
|
39
34
|
actor: z.ZodString;
|
|
40
35
|
permission: z.ZodString;
|
|
@@ -49,7 +44,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
49
44
|
}, {
|
|
50
45
|
account: string;
|
|
51
46
|
name: string;
|
|
52
|
-
data:
|
|
47
|
+
data: {
|
|
53
48
|
[x: string]: any;
|
|
54
49
|
[x: number]: any;
|
|
55
50
|
};
|
|
@@ -118,12 +113,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
118
113
|
actions: z.ZodArray<z.ZodObject<{
|
|
119
114
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
120
115
|
name: z.ZodLiteral<string>;
|
|
121
|
-
data: z.ZodObject<ZodRawShape, {
|
|
122
|
-
strict: true;
|
|
123
|
-
}, {
|
|
124
|
-
[x: string]: any;
|
|
125
|
-
[x: number]: any;
|
|
126
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
116
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
127
117
|
strict: true;
|
|
128
118
|
}, {
|
|
129
119
|
[x: string]: any;
|
|
@@ -301,7 +291,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
301
291
|
actions: ({
|
|
302
292
|
account: string;
|
|
303
293
|
name: string;
|
|
304
|
-
data:
|
|
294
|
+
data: {
|
|
305
295
|
[x: string]: any;
|
|
306
296
|
[x: number]: any;
|
|
307
297
|
};
|
|
@@ -381,7 +371,7 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
381
371
|
actions: ({
|
|
382
372
|
account: string;
|
|
383
373
|
name: string;
|
|
384
|
-
data:
|
|
374
|
+
data: {
|
|
385
375
|
[x: string]: any;
|
|
386
376
|
[x: number]: any;
|
|
387
377
|
};
|
|
@@ -445,17 +435,15 @@ export declare const createAbstractAuthParser: (contract: string, action: string
|
|
|
445
435
|
declare const generateAuthActionsBaseParser: z.ZodObject<{
|
|
446
436
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
447
437
|
name: z.ZodLiteral<string>;
|
|
448
|
-
data: z.ZodObject<
|
|
449
|
-
|
|
438
|
+
data: z.ZodObject<{
|
|
439
|
+
time: z.ZodString;
|
|
440
|
+
protonAccount: z.ZodString;
|
|
450
441
|
}, {
|
|
451
|
-
[x: string]: any;
|
|
452
|
-
[x: number]: any;
|
|
453
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
454
442
|
strict: true;
|
|
455
443
|
}, {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
444
|
+
time: string;
|
|
445
|
+
protonAccount: string;
|
|
446
|
+
}>;
|
|
459
447
|
authorization: z.ZodArray<z.ZodObject<{
|
|
460
448
|
actor: z.ZodString;
|
|
461
449
|
permission: z.ZodString;
|
|
@@ -470,9 +458,9 @@ declare const generateAuthActionsBaseParser: z.ZodObject<{
|
|
|
470
458
|
}, {
|
|
471
459
|
account: string;
|
|
472
460
|
name: string;
|
|
473
|
-
data:
|
|
474
|
-
|
|
475
|
-
|
|
461
|
+
data: {
|
|
462
|
+
time: string;
|
|
463
|
+
protonAccount: string;
|
|
476
464
|
};
|
|
477
465
|
authorization: {
|
|
478
466
|
actor: string;
|
|
@@ -509,12 +497,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
509
497
|
}, {
|
|
510
498
|
[x: string]: any;
|
|
511
499
|
[x: number]: any;
|
|
512
|
-
}
|
|
513
|
-
strict: true;
|
|
514
|
-
}, {
|
|
515
|
-
[x: string]: any;
|
|
516
|
-
[x: number]: any;
|
|
517
|
-
}>]>;
|
|
500
|
+
}>;
|
|
518
501
|
authorization: z.ZodArray<z.ZodObject<{
|
|
519
502
|
actor: z.ZodString;
|
|
520
503
|
permission: z.ZodString;
|
|
@@ -529,7 +512,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
529
512
|
}, {
|
|
530
513
|
account: string;
|
|
531
514
|
name: string;
|
|
532
|
-
data:
|
|
515
|
+
data: {
|
|
533
516
|
[x: string]: any;
|
|
534
517
|
[x: number]: any;
|
|
535
518
|
};
|
|
@@ -598,12 +581,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
598
581
|
actions: z.ZodArray<z.ZodObject<{
|
|
599
582
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
600
583
|
name: z.ZodLiteral<string>;
|
|
601
|
-
data: z.ZodObject<ZodRawShape, {
|
|
602
|
-
strict: true;
|
|
603
|
-
}, {
|
|
604
|
-
[x: string]: any;
|
|
605
|
-
[x: number]: any;
|
|
606
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
584
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
|
|
607
585
|
strict: true;
|
|
608
586
|
}, {
|
|
609
587
|
[x: string]: any;
|
|
@@ -781,7 +759,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
781
759
|
actions: ({
|
|
782
760
|
account: string;
|
|
783
761
|
name: string;
|
|
784
|
-
data:
|
|
762
|
+
data: {
|
|
785
763
|
[x: string]: any;
|
|
786
764
|
[x: number]: any;
|
|
787
765
|
};
|
|
@@ -861,7 +839,7 @@ export declare const generateAuthParser: z.ZodObject<{
|
|
|
861
839
|
actions: ({
|
|
862
840
|
account: string;
|
|
863
841
|
name: string;
|
|
864
|
-
data:
|
|
842
|
+
data: {
|
|
865
843
|
[x: string]: any;
|
|
866
844
|
[x: number]: any;
|
|
867
845
|
};
|
|
@@ -2,17 +2,19 @@ import * as z from 'zod';
|
|
|
2
2
|
declare const withdrawBodyBaseAction: z.ZodObject<{
|
|
3
3
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
4
4
|
name: z.ZodLiteral<string>;
|
|
5
|
-
data: z.ZodObject<
|
|
6
|
-
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
from: z.ZodString;
|
|
7
|
+
to: z.ZodLiteral<"proton.wrap">;
|
|
8
|
+
quantity: z.ZodString;
|
|
9
|
+
memo: z.ZodString;
|
|
7
10
|
}, {
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
[x: number]: any;
|
|
10
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
11
11
|
strict: true;
|
|
12
12
|
}, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
from: string;
|
|
14
|
+
to: "proton.wrap";
|
|
15
|
+
quantity: string;
|
|
16
|
+
memo: string;
|
|
17
|
+
}>;
|
|
16
18
|
authorization: z.ZodArray<z.ZodObject<{
|
|
17
19
|
actor: z.ZodString;
|
|
18
20
|
permission: z.ZodString;
|
|
@@ -27,9 +29,11 @@ declare const withdrawBodyBaseAction: z.ZodObject<{
|
|
|
27
29
|
}, {
|
|
28
30
|
account: string;
|
|
29
31
|
name: string;
|
|
30
|
-
data:
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
data: {
|
|
33
|
+
from: string;
|
|
34
|
+
to: "proton.wrap";
|
|
35
|
+
quantity: string;
|
|
36
|
+
memo: string;
|
|
33
37
|
};
|
|
34
38
|
authorization: {
|
|
35
39
|
actor: string;
|
|
@@ -66,12 +70,7 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
66
70
|
}, {
|
|
67
71
|
[x: string]: any;
|
|
68
72
|
[x: number]: any;
|
|
69
|
-
}
|
|
70
|
-
strict: true;
|
|
71
|
-
}, {
|
|
72
|
-
[x: string]: any;
|
|
73
|
-
[x: number]: any;
|
|
74
|
-
}>]>;
|
|
73
|
+
}>;
|
|
75
74
|
authorization: z.ZodArray<z.ZodObject<{
|
|
76
75
|
actor: z.ZodString;
|
|
77
76
|
permission: z.ZodString;
|
|
@@ -86,7 +85,7 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
86
85
|
}, {
|
|
87
86
|
account: string;
|
|
88
87
|
name: string;
|
|
89
|
-
data:
|
|
88
|
+
data: {
|
|
90
89
|
[x: string]: any;
|
|
91
90
|
[x: number]: any;
|
|
92
91
|
};
|
|
@@ -155,12 +154,7 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
155
154
|
actions: z.ZodArray<z.ZodObject<{
|
|
156
155
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
157
156
|
name: z.ZodLiteral<string>;
|
|
158
|
-
data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
159
|
-
strict: true;
|
|
160
|
-
}, {
|
|
161
|
-
[x: string]: any;
|
|
162
|
-
[x: number]: any;
|
|
163
|
-
}> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
157
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
|
|
164
158
|
strict: true;
|
|
165
159
|
}, {
|
|
166
160
|
[x: string]: any;
|
|
@@ -338,7 +332,7 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
338
332
|
actions: ({
|
|
339
333
|
account: string;
|
|
340
334
|
name: string;
|
|
341
|
-
data:
|
|
335
|
+
data: {
|
|
342
336
|
[x: string]: any;
|
|
343
337
|
[x: number]: any;
|
|
344
338
|
};
|
|
@@ -421,7 +415,7 @@ export declare const withdrawBodyParser: z.ZodObject<{
|
|
|
421
415
|
actions: ({
|
|
422
416
|
account: string;
|
|
423
417
|
name: string;
|
|
424
|
-
data:
|
|
418
|
+
data: {
|
|
425
419
|
[x: string]: any;
|
|
426
420
|
[x: number]: any;
|
|
427
421
|
};
|