@proton/wrap-constants 0.0.33 → 0.0.37

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.
@@ -47,12 +47,7 @@ export declare const generateAddressBodyParser: z.ZodObject<{
47
47
  }, {
48
48
  [x: string]: any;
49
49
  [x: number]: any;
50
- }> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
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: string | {
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: string | {
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: string | {
394
+ data: {
405
395
  [x: string]: any;
406
396
  [x: number]: any;
407
397
  };
@@ -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
- }> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
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: string | {
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: string | {
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: string | {
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<ZodRawShape, {
449
- strict: true;
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
- [x: string]: any;
457
- [x: number]: any;
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: string | {
474
- [x: string]: any;
475
- [x: number]: any;
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
- }> | z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
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: string | {
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: string | {
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: string | {
842
+ data: {
865
843
  [x: string]: any;
866
844
  [x: number]: any;
867
845
  };
@@ -5,6 +5,7 @@ export * from './base';
5
5
  export * from './currency';
6
6
  export * from './deposit';
7
7
  export * from './otc';
8
+ export * from './pool';
8
9
  export * from './withdraw';
9
10
  export * from './withdrawalHistory';
10
11
  export * from './wrap';
@@ -0,0 +1,21 @@
1
+ export interface RawPool {
2
+ lt_symbol: string;
3
+ creator: string;
4
+ memo: string;
5
+ pool1: {
6
+ quantity: string;
7
+ contract: string;
8
+ };
9
+ pool2: {
10
+ quantity: string;
11
+ contract: string;
12
+ };
13
+ hash: string;
14
+ fee: {
15
+ exchange_fee: number;
16
+ add_liquidity_fee: number;
17
+ remove_liquidity_fee: number;
18
+ };
19
+ active: boolean;
20
+ reserved?: any;
21
+ }
@@ -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<import("zod/lib/src/types/base").ZodRawShape, {
6
- strict: true;
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
- [x: string]: any;
14
- [x: number]: any;
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: string | {
31
- [x: string]: any;
32
- [x: number]: any;
32
+ data: {
33
+ from: string;
34
+ to: "proton.wrap";
35
+ quantity: string;
36
+ memo: string;
33
37
  };
34
38
  authorization: {
35
39
  actor: string;
@@ -61,17 +65,19 @@ export declare const withdrawBodyParser: z.ZodObject<{
61
65
  actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
62
66
  account: z.ZodString | z.ZodLiteral<string>;
63
67
  name: z.ZodLiteral<string>;
64
- data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
65
- strict: true;
68
+ data: z.ZodObject<{
69
+ from: z.ZodString;
70
+ to: z.ZodLiteral<"proton.wrap">;
71
+ quantity: z.ZodString;
72
+ memo: z.ZodString;
66
73
  }, {
67
- [x: string]: any;
68
- [x: number]: any;
69
- }> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
70
74
  strict: true;
71
75
  }, {
72
- [x: string]: any;
73
- [x: number]: any;
74
- }>]>;
76
+ from: string;
77
+ to: "proton.wrap";
78
+ quantity: string;
79
+ memo: string;
80
+ }>;
75
81
  authorization: z.ZodArray<z.ZodObject<{
76
82
  actor: z.ZodString;
77
83
  permission: z.ZodString;
@@ -86,9 +92,11 @@ export declare const withdrawBodyParser: z.ZodObject<{
86
92
  }, {
87
93
  account: string;
88
94
  name: string;
89
- data: string | {
90
- [x: string]: any;
91
- [x: number]: any;
95
+ data: {
96
+ from: string;
97
+ to: "proton.wrap";
98
+ quantity: string;
99
+ memo: string;
92
100
  };
93
101
  authorization: {
94
102
  actor: string;
@@ -155,16 +163,18 @@ export declare const withdrawBodyParser: z.ZodObject<{
155
163
  actions: z.ZodArray<z.ZodObject<{
156
164
  account: z.ZodString | z.ZodLiteral<string>;
157
165
  name: z.ZodLiteral<string>;
158
- data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
159
- strict: true;
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;
160
171
  }, {
161
- [x: string]: any;
162
- [x: number]: any;
163
- }> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
164
172
  strict: true;
165
173
  }, {
166
- [x: string]: any;
167
- [x: number]: any;
174
+ from: string;
175
+ to: "proton.wrap";
176
+ quantity: string;
177
+ memo: string;
168
178
  }>]>;
169
179
  authorization: z.ZodArray<z.ZodObject<{
170
180
  actor: z.ZodString;
@@ -181,8 +191,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
181
191
  account: string;
182
192
  name: string;
183
193
  data: string | {
184
- [x: string]: any;
185
- [x: number]: any;
194
+ from: string;
195
+ to: "proton.wrap";
196
+ quantity: string;
197
+ memo: string;
186
198
  };
187
199
  authorization: {
188
200
  actor: string;
@@ -206,8 +218,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
206
218
  account: string;
207
219
  name: string;
208
220
  data: string | {
209
- [x: string]: any;
210
- [x: number]: any;
221
+ from: string;
222
+ to: "proton.wrap";
223
+ quantity: string;
224
+ memo: string;
211
225
  };
212
226
  authorization: {
213
227
  actor: string;
@@ -250,8 +264,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
250
264
  account: string;
251
265
  name: string;
252
266
  data: string | {
253
- [x: string]: any;
254
- [x: number]: any;
267
+ from: string;
268
+ to: "proton.wrap";
269
+ quantity: string;
270
+ memo: string;
255
271
  };
256
272
  authorization: {
257
273
  actor: string;
@@ -307,8 +323,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
307
323
  account: string;
308
324
  name: string;
309
325
  data: string | {
310
- [x: string]: any;
311
- [x: number]: any;
326
+ from: string;
327
+ to: "proton.wrap";
328
+ quantity: string;
329
+ memo: string;
312
330
  };
313
331
  authorization: {
314
332
  actor: string;
@@ -338,9 +356,11 @@ export declare const withdrawBodyParser: z.ZodObject<{
338
356
  actions: ({
339
357
  account: string;
340
358
  name: string;
341
- data: string | {
342
- [x: string]: any;
343
- [x: number]: any;
359
+ data: {
360
+ from: string;
361
+ to: "proton.wrap";
362
+ quantity: string;
363
+ memo: string;
344
364
  };
345
365
  authorization: {
346
366
  actor: string;
@@ -382,8 +402,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
382
402
  account: string;
383
403
  name: string;
384
404
  data: string | {
385
- [x: string]: any;
386
- [x: number]: any;
405
+ from: string;
406
+ to: "proton.wrap";
407
+ quantity: string;
408
+ memo: string;
387
409
  };
388
410
  authorization: {
389
411
  actor: string;
@@ -421,9 +443,11 @@ export declare const withdrawBodyParser: z.ZodObject<{
421
443
  actions: ({
422
444
  account: string;
423
445
  name: string;
424
- data: string | {
425
- [x: string]: any;
426
- [x: number]: any;
446
+ data: {
447
+ from: string;
448
+ to: "proton.wrap";
449
+ quantity: string;
450
+ memo: string;
427
451
  };
428
452
  authorization: {
429
453
  actor: string;
@@ -465,8 +489,10 @@ export declare const withdrawBodyParser: z.ZodObject<{
465
489
  account: string;
466
490
  name: string;
467
491
  data: string | {
468
- [x: string]: any;
469
- [x: number]: any;
492
+ from: string;
493
+ to: "proton.wrap";
494
+ quantity: string;
495
+ memo: string;
470
496
  };
471
497
  authorization: {
472
498
  actor: string;