@proton/wrap-constants 0.0.30 → 0.0.34

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 CHANGED
@@ -27,7 +27,8 @@ export declare enum Networks {
27
27
  Testnet = "testnet",
28
28
  Ropsten = "ropsten",
29
29
  ERC20 = "erc20",
30
- BEP20 = "bep20"
30
+ BEP20 = "bep20",
31
+ XLM = "xlm"
31
32
  }
32
33
  export declare const similarChains: {
33
34
  Ethereum: Chains[];
@@ -0,0 +1,629 @@
1
+ import * as z from 'zod';
2
+ import { ZodRawShape } from 'zod/lib/src/types/base';
3
+ export declare const baseActionParser: (contract: string, action: string, data: ZodRawShape) => z.ZodObject<{
4
+ account: z.ZodString | z.ZodLiteral<string>;
5
+ name: z.ZodLiteral<string>;
6
+ data: z.ZodObject<ZodRawShape, {
7
+ strict: true;
8
+ }, {
9
+ [x: string]: any;
10
+ [x: number]: any;
11
+ }>;
12
+ authorization: z.ZodArray<z.ZodObject<{
13
+ actor: z.ZodString;
14
+ permission: z.ZodString;
15
+ }, {
16
+ strict: true;
17
+ }, {
18
+ actor: string;
19
+ permission: string;
20
+ }>>;
21
+ }, {
22
+ strict: true;
23
+ }, {
24
+ account: string;
25
+ name: string;
26
+ data: {
27
+ [x: string]: any;
28
+ [x: number]: any;
29
+ };
30
+ authorization: {
31
+ actor: string;
32
+ permission: string;
33
+ }[];
34
+ }>;
35
+ export declare const baseActionSerializedParser: (contract: string, action: string, data: ZodRawShape) => z.ZodObject<{
36
+ account: z.ZodString | z.ZodLiteral<string>;
37
+ name: z.ZodLiteral<string>;
38
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
39
+ strict: true;
40
+ }, {
41
+ [x: string]: any;
42
+ [x: number]: any;
43
+ }>]>;
44
+ authorization: z.ZodArray<z.ZodObject<{
45
+ actor: z.ZodString;
46
+ permission: z.ZodString;
47
+ }, {
48
+ strict: true;
49
+ }, {
50
+ actor: string;
51
+ permission: string;
52
+ }>>;
53
+ }, {
54
+ strict: true;
55
+ }, {
56
+ account: string;
57
+ name: string;
58
+ data: string | {
59
+ [x: string]: any;
60
+ [x: number]: any;
61
+ };
62
+ authorization: {
63
+ actor: string;
64
+ permission: string;
65
+ }[];
66
+ }>;
67
+ export declare const webauthActionParser: (contract: string, action: string, data: ZodRawShape) => z.ZodObject<{
68
+ account: z.ZodLiteral<"webauthn">;
69
+ name: z.ZodLiteral<"exec">;
70
+ data: z.ZodObject<{
71
+ account: z.ZodString;
72
+ key: z.ZodObject<{
73
+ key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
74
+ modulus: z.ZodString;
75
+ exponent: z.ZodString;
76
+ }, {
77
+ strict: true;
78
+ }, {
79
+ modulus: string;
80
+ exponent: string;
81
+ }>]>>;
82
+ user_presence: z.ZodNumber;
83
+ rpid: z.ZodString;
84
+ }, {
85
+ strict: true;
86
+ }, {
87
+ key: (string | {
88
+ modulus: string;
89
+ exponent: string;
90
+ })[];
91
+ user_presence: number;
92
+ rpid: string;
93
+ }>;
94
+ nonce: z.ZodNumber;
95
+ permissions: z.ZodArray<z.ZodObject<{
96
+ actor: z.ZodString;
97
+ permission: z.ZodString;
98
+ }, {
99
+ strict: true;
100
+ }, {
101
+ actor: string;
102
+ permission: string;
103
+ }>>;
104
+ signature: z.ZodObject<{
105
+ auth_data: z.ZodString;
106
+ client_json: z.ZodString;
107
+ signature: z.ZodString;
108
+ }, {
109
+ strict: true;
110
+ }, {
111
+ auth_data: string;
112
+ client_json: string;
113
+ signature: string;
114
+ }>;
115
+ trx: z.ZodObject<{
116
+ expiration: z.ZodString;
117
+ ref_block_num: z.ZodNumber;
118
+ ref_block_prefix: z.ZodNumber;
119
+ max_net_usage_words: z.ZodNumber;
120
+ max_cpu_usage_ms: z.ZodNumber;
121
+ delay_sec: z.ZodNumber;
122
+ context_free_actions: z.ZodArray<z.ZodAny>;
123
+ transaction_extensions: z.ZodArray<z.ZodAny>;
124
+ } & {
125
+ actions: z.ZodArray<z.ZodObject<{
126
+ account: z.ZodString | z.ZodLiteral<string>;
127
+ name: z.ZodLiteral<string>;
128
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
129
+ strict: true;
130
+ }, {
131
+ [x: string]: any;
132
+ [x: number]: any;
133
+ }>]>;
134
+ authorization: z.ZodArray<z.ZodObject<{
135
+ actor: z.ZodString;
136
+ permission: z.ZodString;
137
+ }, {
138
+ strict: true;
139
+ }, {
140
+ actor: string;
141
+ permission: string;
142
+ }>>;
143
+ }, {
144
+ strict: true;
145
+ }, {
146
+ account: string;
147
+ name: string;
148
+ data: string | {
149
+ [x: string]: any;
150
+ [x: number]: any;
151
+ };
152
+ authorization: {
153
+ actor: string;
154
+ permission: string;
155
+ }[];
156
+ }>>;
157
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
158
+ strict: true;
159
+ }, {
160
+ strict: true;
161
+ }>, {
162
+ expiration: string;
163
+ ref_block_num: number;
164
+ ref_block_prefix: number;
165
+ max_net_usage_words: number;
166
+ max_cpu_usage_ms: number;
167
+ delay_sec: number;
168
+ context_free_actions: any[];
169
+ transaction_extensions: any[];
170
+ actions: {
171
+ account: string;
172
+ name: string;
173
+ data: string | {
174
+ [x: string]: any;
175
+ [x: number]: any;
176
+ };
177
+ authorization: {
178
+ actor: string;
179
+ permission: string;
180
+ }[];
181
+ }[];
182
+ }>;
183
+ }, {
184
+ strict: true;
185
+ }, {
186
+ account: string;
187
+ key: {
188
+ key: (string | {
189
+ modulus: string;
190
+ exponent: string;
191
+ })[];
192
+ user_presence: number;
193
+ rpid: string;
194
+ };
195
+ signature: {
196
+ auth_data: string;
197
+ client_json: string;
198
+ signature: string;
199
+ };
200
+ nonce: number;
201
+ permissions: {
202
+ actor: string;
203
+ permission: string;
204
+ }[];
205
+ trx: {
206
+ expiration: string;
207
+ ref_block_num: number;
208
+ ref_block_prefix: number;
209
+ max_net_usage_words: number;
210
+ max_cpu_usage_ms: number;
211
+ delay_sec: number;
212
+ context_free_actions: any[];
213
+ transaction_extensions: any[];
214
+ actions: {
215
+ account: string;
216
+ name: string;
217
+ data: string | {
218
+ [x: string]: any;
219
+ [x: number]: any;
220
+ };
221
+ authorization: {
222
+ actor: string;
223
+ permission: string;
224
+ }[];
225
+ }[];
226
+ };
227
+ }>;
228
+ authorization: z.ZodArray<z.ZodObject<{
229
+ actor: z.ZodString;
230
+ permission: z.ZodString;
231
+ }, {
232
+ strict: true;
233
+ }, {
234
+ actor: string;
235
+ permission: string;
236
+ }>>;
237
+ }, {
238
+ strict: true;
239
+ }, {
240
+ account: "webauthn";
241
+ name: "exec";
242
+ data: {
243
+ account: string;
244
+ key: {
245
+ key: (string | {
246
+ modulus: string;
247
+ exponent: string;
248
+ })[];
249
+ user_presence: number;
250
+ rpid: string;
251
+ };
252
+ signature: {
253
+ auth_data: string;
254
+ client_json: string;
255
+ signature: string;
256
+ };
257
+ nonce: number;
258
+ permissions: {
259
+ actor: string;
260
+ permission: string;
261
+ }[];
262
+ trx: {
263
+ expiration: string;
264
+ ref_block_num: number;
265
+ ref_block_prefix: number;
266
+ max_net_usage_words: number;
267
+ max_cpu_usage_ms: number;
268
+ delay_sec: number;
269
+ context_free_actions: any[];
270
+ transaction_extensions: any[];
271
+ actions: {
272
+ account: string;
273
+ name: string;
274
+ data: string | {
275
+ [x: string]: any;
276
+ [x: number]: any;
277
+ };
278
+ authorization: {
279
+ actor: string;
280
+ permission: string;
281
+ }[];
282
+ }[];
283
+ };
284
+ };
285
+ authorization: {
286
+ actor: string;
287
+ permission: string;
288
+ }[];
289
+ }>;
290
+ export declare const singleActionTransactionParser: (contract: string, action: string, data: ZodRawShape) => z.ZodObject<{
291
+ expiration: z.ZodString;
292
+ ref_block_num: z.ZodNumber;
293
+ ref_block_prefix: z.ZodNumber;
294
+ max_net_usage_words: z.ZodNumber;
295
+ max_cpu_usage_ms: z.ZodNumber;
296
+ delay_sec: z.ZodNumber;
297
+ context_free_actions: z.ZodArray<z.ZodAny>;
298
+ transaction_extensions: z.ZodArray<z.ZodAny>;
299
+ } & {
300
+ actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
301
+ account: z.ZodString | z.ZodLiteral<string>;
302
+ name: z.ZodLiteral<string>;
303
+ data: z.ZodObject<ZodRawShape, {
304
+ strict: true;
305
+ }, {
306
+ [x: string]: any;
307
+ [x: number]: any;
308
+ }>;
309
+ authorization: z.ZodArray<z.ZodObject<{
310
+ actor: z.ZodString;
311
+ permission: z.ZodString;
312
+ }, {
313
+ strict: true;
314
+ }, {
315
+ actor: string;
316
+ permission: string;
317
+ }>>;
318
+ }, {
319
+ strict: true;
320
+ }, {
321
+ account: string;
322
+ name: string;
323
+ data: {
324
+ [x: string]: any;
325
+ [x: number]: any;
326
+ };
327
+ authorization: {
328
+ actor: string;
329
+ permission: string;
330
+ }[];
331
+ }>, z.ZodObject<{
332
+ account: z.ZodLiteral<"webauthn">;
333
+ name: z.ZodLiteral<"exec">;
334
+ data: z.ZodObject<{
335
+ account: z.ZodString;
336
+ key: z.ZodObject<{
337
+ key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
338
+ modulus: z.ZodString;
339
+ exponent: z.ZodString;
340
+ }, {
341
+ strict: true;
342
+ }, {
343
+ modulus: string;
344
+ exponent: string;
345
+ }>]>>;
346
+ user_presence: z.ZodNumber;
347
+ rpid: z.ZodString;
348
+ }, {
349
+ strict: true;
350
+ }, {
351
+ key: (string | {
352
+ modulus: string;
353
+ exponent: string;
354
+ })[];
355
+ user_presence: number;
356
+ rpid: string;
357
+ }>;
358
+ nonce: z.ZodNumber;
359
+ permissions: z.ZodArray<z.ZodObject<{
360
+ actor: z.ZodString;
361
+ permission: z.ZodString;
362
+ }, {
363
+ strict: true;
364
+ }, {
365
+ actor: string;
366
+ permission: string;
367
+ }>>;
368
+ signature: z.ZodObject<{
369
+ auth_data: z.ZodString;
370
+ client_json: z.ZodString;
371
+ signature: z.ZodString;
372
+ }, {
373
+ strict: true;
374
+ }, {
375
+ auth_data: string;
376
+ client_json: string;
377
+ signature: string;
378
+ }>;
379
+ trx: z.ZodObject<{
380
+ expiration: z.ZodString;
381
+ ref_block_num: z.ZodNumber;
382
+ ref_block_prefix: z.ZodNumber;
383
+ max_net_usage_words: z.ZodNumber;
384
+ max_cpu_usage_ms: z.ZodNumber;
385
+ delay_sec: z.ZodNumber;
386
+ context_free_actions: z.ZodArray<z.ZodAny>;
387
+ transaction_extensions: z.ZodArray<z.ZodAny>;
388
+ } & {
389
+ actions: z.ZodArray<z.ZodObject<{
390
+ account: z.ZodString | z.ZodLiteral<string>;
391
+ name: z.ZodLiteral<string>;
392
+ data: z.ZodUnion<[z.ZodString, z.ZodObject<ZodRawShape, {
393
+ strict: true;
394
+ }, {
395
+ [x: string]: any;
396
+ [x: number]: any;
397
+ }>]>;
398
+ authorization: z.ZodArray<z.ZodObject<{
399
+ actor: z.ZodString;
400
+ permission: z.ZodString;
401
+ }, {
402
+ strict: true;
403
+ }, {
404
+ actor: string;
405
+ permission: string;
406
+ }>>;
407
+ }, {
408
+ strict: true;
409
+ }, {
410
+ account: string;
411
+ name: string;
412
+ data: string | {
413
+ [x: string]: any;
414
+ [x: number]: any;
415
+ };
416
+ authorization: {
417
+ actor: string;
418
+ permission: string;
419
+ }[];
420
+ }>>;
421
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
422
+ strict: true;
423
+ }, {
424
+ strict: true;
425
+ }>, {
426
+ expiration: string;
427
+ ref_block_num: number;
428
+ ref_block_prefix: number;
429
+ max_net_usage_words: number;
430
+ max_cpu_usage_ms: number;
431
+ delay_sec: number;
432
+ context_free_actions: any[];
433
+ transaction_extensions: any[];
434
+ actions: {
435
+ account: string;
436
+ name: string;
437
+ data: string | {
438
+ [x: string]: any;
439
+ [x: number]: any;
440
+ };
441
+ authorization: {
442
+ actor: string;
443
+ permission: string;
444
+ }[];
445
+ }[];
446
+ }>;
447
+ }, {
448
+ strict: true;
449
+ }, {
450
+ account: string;
451
+ key: {
452
+ key: (string | {
453
+ modulus: string;
454
+ exponent: string;
455
+ })[];
456
+ user_presence: number;
457
+ rpid: string;
458
+ };
459
+ signature: {
460
+ auth_data: string;
461
+ client_json: string;
462
+ signature: string;
463
+ };
464
+ nonce: number;
465
+ permissions: {
466
+ actor: string;
467
+ permission: string;
468
+ }[];
469
+ trx: {
470
+ expiration: string;
471
+ ref_block_num: number;
472
+ ref_block_prefix: number;
473
+ max_net_usage_words: number;
474
+ max_cpu_usage_ms: number;
475
+ delay_sec: number;
476
+ context_free_actions: any[];
477
+ transaction_extensions: any[];
478
+ actions: {
479
+ account: string;
480
+ name: string;
481
+ data: string | {
482
+ [x: string]: any;
483
+ [x: number]: any;
484
+ };
485
+ authorization: {
486
+ actor: string;
487
+ permission: string;
488
+ }[];
489
+ }[];
490
+ };
491
+ }>;
492
+ authorization: z.ZodArray<z.ZodObject<{
493
+ actor: z.ZodString;
494
+ permission: z.ZodString;
495
+ }, {
496
+ strict: true;
497
+ }, {
498
+ actor: string;
499
+ permission: string;
500
+ }>>;
501
+ }, {
502
+ strict: true;
503
+ }, {
504
+ account: "webauthn";
505
+ name: "exec";
506
+ data: {
507
+ account: string;
508
+ key: {
509
+ key: (string | {
510
+ modulus: string;
511
+ exponent: string;
512
+ })[];
513
+ user_presence: number;
514
+ rpid: string;
515
+ };
516
+ signature: {
517
+ auth_data: string;
518
+ client_json: string;
519
+ signature: string;
520
+ };
521
+ nonce: number;
522
+ permissions: {
523
+ actor: string;
524
+ permission: string;
525
+ }[];
526
+ trx: {
527
+ expiration: string;
528
+ ref_block_num: number;
529
+ ref_block_prefix: number;
530
+ max_net_usage_words: number;
531
+ max_cpu_usage_ms: number;
532
+ delay_sec: number;
533
+ context_free_actions: any[];
534
+ transaction_extensions: any[];
535
+ actions: {
536
+ account: string;
537
+ name: string;
538
+ data: string | {
539
+ [x: string]: any;
540
+ [x: number]: any;
541
+ };
542
+ authorization: {
543
+ actor: string;
544
+ permission: string;
545
+ }[];
546
+ }[];
547
+ };
548
+ };
549
+ authorization: {
550
+ actor: string;
551
+ permission: string;
552
+ }[];
553
+ }>]>>;
554
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
555
+ strict: true;
556
+ }, {
557
+ strict: true;
558
+ }>, {
559
+ expiration: string;
560
+ ref_block_num: number;
561
+ ref_block_prefix: number;
562
+ max_net_usage_words: number;
563
+ max_cpu_usage_ms: number;
564
+ delay_sec: number;
565
+ context_free_actions: any[];
566
+ transaction_extensions: any[];
567
+ actions: ({
568
+ account: string;
569
+ name: string;
570
+ data: {
571
+ [x: string]: any;
572
+ [x: number]: any;
573
+ };
574
+ authorization: {
575
+ actor: string;
576
+ permission: string;
577
+ }[];
578
+ } | {
579
+ account: "webauthn";
580
+ name: "exec";
581
+ data: {
582
+ account: string;
583
+ key: {
584
+ key: (string | {
585
+ modulus: string;
586
+ exponent: string;
587
+ })[];
588
+ user_presence: number;
589
+ rpid: string;
590
+ };
591
+ signature: {
592
+ auth_data: string;
593
+ client_json: string;
594
+ signature: string;
595
+ };
596
+ nonce: number;
597
+ permissions: {
598
+ actor: string;
599
+ permission: string;
600
+ }[];
601
+ trx: {
602
+ expiration: string;
603
+ ref_block_num: number;
604
+ ref_block_prefix: number;
605
+ max_net_usage_words: number;
606
+ max_cpu_usage_ms: number;
607
+ delay_sec: number;
608
+ context_free_actions: any[];
609
+ transaction_extensions: any[];
610
+ actions: {
611
+ account: string;
612
+ name: string;
613
+ data: string | {
614
+ [x: string]: any;
615
+ [x: number]: any;
616
+ };
617
+ authorization: {
618
+ actor: string;
619
+ permission: string;
620
+ }[];
621
+ }[];
622
+ };
623
+ };
624
+ authorization: {
625
+ actor: string;
626
+ permission: string;
627
+ }[];
628
+ })[];
629
+ }>;