@aztec/aztec.js 0.0.1-commit.c7c42ec → 0.0.1-commit.f295ac2

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.
Files changed (88) hide show
  1. package/dest/account/account.d.ts +3 -3
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account_contract.d.ts +2 -2
  4. package/dest/account/account_contract.d.ts.map +1 -1
  5. package/dest/account/account_with_secret_key.d.ts +2 -1
  6. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  7. package/dest/api/block.d.ts +2 -2
  8. package/dest/api/block.d.ts.map +1 -1
  9. package/dest/api/block.js +1 -1
  10. package/dest/api/protocol.d.ts +7 -1
  11. package/dest/api/protocol.d.ts.map +1 -1
  12. package/dest/api/protocol.js +6 -0
  13. package/dest/api/wallet.d.ts +2 -2
  14. package/dest/api/wallet.d.ts.map +1 -1
  15. package/dest/api/wallet.js +1 -1
  16. package/dest/authorization/call_authorization_request.d.ts +22 -1
  17. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  18. package/dest/contract/batch_call.d.ts +1 -1
  19. package/dest/contract/batch_call.d.ts.map +1 -1
  20. package/dest/contract/batch_call.js +3 -1
  21. package/dest/contract/contract_base.d.ts +4 -1
  22. package/dest/contract/contract_base.d.ts.map +1 -1
  23. package/dest/contract/contract_function_interaction.d.ts +1 -1
  24. package/dest/contract/deploy_method.d.ts +1 -1
  25. package/dest/contract/deploy_method.d.ts.map +1 -1
  26. package/dest/contract/deploy_method.js +5 -4
  27. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  28. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  29. package/dest/contract/protocol_contracts/auth-registry.js +928 -0
  30. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
  31. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  32. package/dest/contract/protocol_contracts/contract-class-registry.js +797 -0
  33. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
  34. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  35. package/dest/contract/protocol_contracts/contract-instance-registry.js +867 -0
  36. package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
  37. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  38. package/dest/contract/protocol_contracts/fee-juice.js +824 -0
  39. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  40. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  41. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +576 -0
  42. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  43. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  44. package/dest/contract/protocol_contracts/public-checks.js +592 -0
  45. package/dest/contract/wait_for_proven.d.ts +2 -2
  46. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  47. package/dest/deployment/broadcast_function.js +3 -3
  48. package/dest/deployment/publish_class.js +2 -2
  49. package/dest/deployment/publish_instance.d.ts +2 -2
  50. package/dest/deployment/publish_instance.d.ts.map +1 -1
  51. package/dest/deployment/publish_instance.js +3 -3
  52. package/dest/ethereum/portal_manager.d.ts +6 -3
  53. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  54. package/dest/ethereum/portal_manager.js +10 -10
  55. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  56. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  57. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  58. package/dest/wallet/account_manager.d.ts +5 -2
  59. package/dest/wallet/account_manager.d.ts.map +1 -1
  60. package/dest/wallet/wallet.d.ts +181 -2483
  61. package/dest/wallet/wallet.d.ts.map +1 -1
  62. package/dest/wallet/wallet.js +46 -84
  63. package/package.json +14 -12
  64. package/src/api/block.ts +1 -1
  65. package/src/api/protocol.ts +7 -0
  66. package/src/api/wallet.ts +0 -2
  67. package/src/contract/batch_call.ts +4 -2
  68. package/src/contract/deploy_method.ts +7 -6
  69. package/src/contract/protocol_contracts/auth-registry.ts +542 -0
  70. package/src/contract/protocol_contracts/contract-class-registry.ts +442 -0
  71. package/src/contract/protocol_contracts/contract-instance-registry.ts +501 -0
  72. package/src/contract/protocol_contracts/fee-juice.ts +462 -0
  73. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +338 -0
  74. package/src/contract/protocol_contracts/public-checks.ts +324 -0
  75. package/src/deployment/broadcast_function.ts +3 -3
  76. package/src/deployment/publish_class.ts +2 -2
  77. package/src/deployment/publish_instance.ts +3 -6
  78. package/src/ethereum/portal_manager.ts +9 -8
  79. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  80. package/src/wallet/wallet.ts +109 -80
  81. package/dest/contract/protocol_contracts.d.ts +0 -9
  82. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  83. package/dest/contract/protocol_contracts.js +0 -26
  84. package/dest/contract/unsafe_contract.d.ts +0 -15
  85. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  86. package/dest/contract/unsafe_contract.js +0 -6
  87. package/src/contract/protocol_contracts.ts +0 -35
  88. package/src/contract/unsafe_contract.ts +0 -19
@@ -0,0 +1,797 @@
1
+ /* Autogenerated file, do not edit! */ /* eslint-disable */ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ import { FunctionType } from '@aztec/stdlib/abi';
3
+ import { ContractBase } from '../contract_base.js';
4
+ const ContractClassRegistryContractArtifact = {
5
+ name: 'ContractClassRegistry',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PRIVATE,
10
+ name: 'broadcast_private_function',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'contract_class_id',
17
+ type: {
18
+ kind: 'struct',
19
+ fields: [
20
+ {
21
+ name: 'inner',
22
+ type: {
23
+ kind: 'field'
24
+ }
25
+ }
26
+ ],
27
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
28
+ },
29
+ visibility: 'private'
30
+ },
31
+ {
32
+ name: 'artifact_metadata_hash',
33
+ type: {
34
+ kind: 'field'
35
+ },
36
+ visibility: 'private'
37
+ },
38
+ {
39
+ name: 'utility_functions_artifact_tree_root',
40
+ type: {
41
+ kind: 'field'
42
+ },
43
+ visibility: 'private'
44
+ },
45
+ {
46
+ name: 'private_function_tree_sibling_path',
47
+ type: {
48
+ kind: 'array',
49
+ length: 7,
50
+ type: {
51
+ kind: 'field'
52
+ }
53
+ },
54
+ visibility: 'private'
55
+ },
56
+ {
57
+ name: 'private_function_tree_leaf_index',
58
+ type: {
59
+ kind: 'field'
60
+ },
61
+ visibility: 'private'
62
+ },
63
+ {
64
+ name: 'artifact_function_tree_sibling_path',
65
+ type: {
66
+ kind: 'array',
67
+ length: 7,
68
+ type: {
69
+ kind: 'field'
70
+ }
71
+ },
72
+ visibility: 'private'
73
+ },
74
+ {
75
+ name: 'artifact_function_tree_leaf_index',
76
+ type: {
77
+ kind: 'field'
78
+ },
79
+ visibility: 'private'
80
+ },
81
+ {
82
+ name: 'function_data',
83
+ type: {
84
+ kind: 'struct',
85
+ fields: [
86
+ {
87
+ name: 'selector',
88
+ type: {
89
+ kind: 'struct',
90
+ fields: [
91
+ {
92
+ name: 'inner',
93
+ type: {
94
+ kind: 'integer',
95
+ sign: 'unsigned',
96
+ width: 32
97
+ }
98
+ }
99
+ ],
100
+ path: 'aztec::protocol_types::abis::function_selector::FunctionSelector'
101
+ }
102
+ },
103
+ {
104
+ name: 'metadata_hash',
105
+ type: {
106
+ kind: 'field'
107
+ }
108
+ },
109
+ {
110
+ name: 'vk_hash',
111
+ type: {
112
+ kind: 'field'
113
+ }
114
+ }
115
+ ],
116
+ path: 'events::private_function_broadcasted::InnerPrivateFunction'
117
+ },
118
+ visibility: 'private'
119
+ }
120
+ ],
121
+ returnTypes: [],
122
+ errorTypes: {
123
+ '1998584279744703196': {
124
+ error_kind: 'string',
125
+ string: 'attempt to subtract with overflow'
126
+ },
127
+ '2754040237334517471': {
128
+ error_kind: 'fmtstring',
129
+ length: 92,
130
+ item_types: []
131
+ },
132
+ '14990209321349310352': {
133
+ error_kind: 'string',
134
+ string: 'attempt to add with overflow'
135
+ },
136
+ '15764276373176857197': {
137
+ error_kind: 'string',
138
+ string: 'Stack too deep'
139
+ },
140
+ '16431471497789672479': {
141
+ error_kind: 'string',
142
+ string: 'Index out of bounds'
143
+ }
144
+ }
145
+ },
146
+ bytecode: Buffer.from([]),
147
+ debugSymbols: ''
148
+ },
149
+ {
150
+ ...{
151
+ functionType: FunctionType.PRIVATE,
152
+ name: 'broadcast_utility_function',
153
+ isOnlySelf: false,
154
+ isStatic: false,
155
+ isInitializer: false,
156
+ parameters: [
157
+ {
158
+ name: 'contract_class_id',
159
+ type: {
160
+ kind: 'struct',
161
+ fields: [
162
+ {
163
+ name: 'inner',
164
+ type: {
165
+ kind: 'field'
166
+ }
167
+ }
168
+ ],
169
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
170
+ },
171
+ visibility: 'private'
172
+ },
173
+ {
174
+ name: 'artifact_metadata_hash',
175
+ type: {
176
+ kind: 'field'
177
+ },
178
+ visibility: 'private'
179
+ },
180
+ {
181
+ name: 'private_functions_artifact_tree_root',
182
+ type: {
183
+ kind: 'field'
184
+ },
185
+ visibility: 'private'
186
+ },
187
+ {
188
+ name: 'artifact_function_tree_sibling_path',
189
+ type: {
190
+ kind: 'array',
191
+ length: 7,
192
+ type: {
193
+ kind: 'field'
194
+ }
195
+ },
196
+ visibility: 'private'
197
+ },
198
+ {
199
+ name: 'artifact_function_tree_leaf_index',
200
+ type: {
201
+ kind: 'field'
202
+ },
203
+ visibility: 'private'
204
+ },
205
+ {
206
+ name: 'function_data',
207
+ type: {
208
+ kind: 'struct',
209
+ fields: [
210
+ {
211
+ name: 'selector',
212
+ type: {
213
+ kind: 'struct',
214
+ fields: [
215
+ {
216
+ name: 'inner',
217
+ type: {
218
+ kind: 'integer',
219
+ sign: 'unsigned',
220
+ width: 32
221
+ }
222
+ }
223
+ ],
224
+ path: 'aztec::protocol_types::abis::function_selector::FunctionSelector'
225
+ }
226
+ },
227
+ {
228
+ name: 'metadata_hash',
229
+ type: {
230
+ kind: 'field'
231
+ }
232
+ }
233
+ ],
234
+ path: 'events::utility_function_broadcasted::InnerUtilityFunction'
235
+ },
236
+ visibility: 'private'
237
+ }
238
+ ],
239
+ returnTypes: [],
240
+ errorTypes: {
241
+ '1998584279744703196': {
242
+ error_kind: 'string',
243
+ string: 'attempt to subtract with overflow'
244
+ },
245
+ '2754040237334517471': {
246
+ error_kind: 'fmtstring',
247
+ length: 92,
248
+ item_types: []
249
+ },
250
+ '14990209321349310352': {
251
+ error_kind: 'string',
252
+ string: 'attempt to add with overflow'
253
+ },
254
+ '15764276373176857197': {
255
+ error_kind: 'string',
256
+ string: 'Stack too deep'
257
+ },
258
+ '16431471497789672479': {
259
+ error_kind: 'string',
260
+ string: 'Index out of bounds'
261
+ }
262
+ }
263
+ },
264
+ bytecode: Buffer.from([]),
265
+ debugSymbols: ''
266
+ },
267
+ {
268
+ ...{
269
+ functionType: FunctionType.PRIVATE,
270
+ name: 'publish',
271
+ isOnlySelf: false,
272
+ isStatic: false,
273
+ isInitializer: false,
274
+ parameters: [
275
+ {
276
+ name: 'artifact_hash',
277
+ type: {
278
+ kind: 'field'
279
+ },
280
+ visibility: 'private'
281
+ },
282
+ {
283
+ name: 'private_functions_root',
284
+ type: {
285
+ kind: 'field'
286
+ },
287
+ visibility: 'private'
288
+ },
289
+ {
290
+ name: 'public_bytecode_commitment',
291
+ type: {
292
+ kind: 'field'
293
+ },
294
+ visibility: 'private'
295
+ }
296
+ ],
297
+ returnTypes: [],
298
+ errorTypes: {
299
+ '361444214588792908': {
300
+ error_kind: 'string',
301
+ string: 'attempt to multiply with overflow'
302
+ },
303
+ '922421554006670918': {
304
+ error_kind: 'string',
305
+ string: 'num_items is greater than MAX_ITEMS'
306
+ },
307
+ '1998584279744703196': {
308
+ error_kind: 'string',
309
+ string: 'attempt to subtract with overflow'
310
+ },
311
+ '2754040237334517471': {
312
+ error_kind: 'fmtstring',
313
+ length: 92,
314
+ item_types: []
315
+ },
316
+ '10965409165809799877': {
317
+ error_kind: 'string',
318
+ string: 'Given in_len to absorb is larger than the input array len'
319
+ },
320
+ '14990209321349310352': {
321
+ error_kind: 'string',
322
+ string: 'attempt to add with overflow'
323
+ },
324
+ '15669273164684982983': {
325
+ error_kind: 'string',
326
+ string: 'num_permutations is greater than MAX_PERMUTATIONS'
327
+ },
328
+ '15764276373176857197': {
329
+ error_kind: 'string',
330
+ string: 'Stack too deep'
331
+ },
332
+ '16431471497789672479': {
333
+ error_kind: 'string',
334
+ string: 'Index out of bounds'
335
+ },
336
+ '16450579948625159707': {
337
+ error_kind: 'string',
338
+ string: 'Sponge must be in cache_size=1'
339
+ }
340
+ }
341
+ },
342
+ bytecode: Buffer.from([]),
343
+ debugSymbols: ''
344
+ },
345
+ {
346
+ ...{
347
+ functionType: FunctionType.UTILITY,
348
+ name: 'process_message',
349
+ isOnlySelf: false,
350
+ isStatic: false,
351
+ isInitializer: false,
352
+ parameters: [
353
+ {
354
+ name: 'message_ciphertext',
355
+ type: {
356
+ kind: 'struct',
357
+ fields: [
358
+ {
359
+ name: 'storage',
360
+ type: {
361
+ kind: 'array',
362
+ length: 17,
363
+ type: {
364
+ kind: 'field'
365
+ }
366
+ }
367
+ },
368
+ {
369
+ name: 'len',
370
+ type: {
371
+ kind: 'integer',
372
+ sign: 'unsigned',
373
+ width: 32
374
+ }
375
+ }
376
+ ],
377
+ path: 'std::collections::bounded_vec::BoundedVec'
378
+ },
379
+ visibility: 'private'
380
+ },
381
+ {
382
+ name: 'message_context',
383
+ type: {
384
+ kind: 'struct',
385
+ fields: [
386
+ {
387
+ name: 'tx_hash',
388
+ type: {
389
+ kind: 'field'
390
+ }
391
+ },
392
+ {
393
+ name: 'unique_note_hashes_in_tx',
394
+ type: {
395
+ kind: 'struct',
396
+ fields: [
397
+ {
398
+ name: 'storage',
399
+ type: {
400
+ kind: 'array',
401
+ length: 64,
402
+ type: {
403
+ kind: 'field'
404
+ }
405
+ }
406
+ },
407
+ {
408
+ name: 'len',
409
+ type: {
410
+ kind: 'integer',
411
+ sign: 'unsigned',
412
+ width: 32
413
+ }
414
+ }
415
+ ],
416
+ path: 'std::collections::bounded_vec::BoundedVec'
417
+ }
418
+ },
419
+ {
420
+ name: 'first_nullifier_in_tx',
421
+ type: {
422
+ kind: 'field'
423
+ }
424
+ },
425
+ {
426
+ name: 'recipient',
427
+ type: {
428
+ kind: 'struct',
429
+ fields: [
430
+ {
431
+ name: 'inner',
432
+ type: {
433
+ kind: 'field'
434
+ }
435
+ }
436
+ ],
437
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
438
+ }
439
+ }
440
+ ],
441
+ path: 'aztec::messages::processing::message_context::MessageContext'
442
+ },
443
+ visibility: 'private'
444
+ }
445
+ ],
446
+ returnTypes: [],
447
+ errorTypes: {
448
+ '361444214588792908': {
449
+ error_kind: 'string',
450
+ string: 'attempt to multiply with overflow'
451
+ },
452
+ '992401946138144806': {
453
+ error_kind: 'string',
454
+ string: 'Attempted to read past end of BoundedVec'
455
+ },
456
+ '1998584279744703196': {
457
+ error_kind: 'string',
458
+ string: 'attempt to subtract with overflow'
459
+ },
460
+ '2967937905572420042': {
461
+ error_kind: 'fmtstring',
462
+ length: 61,
463
+ item_types: [
464
+ {
465
+ kind: 'field'
466
+ },
467
+ {
468
+ kind: 'field'
469
+ }
470
+ ]
471
+ },
472
+ '3330370348214585450': {
473
+ error_kind: 'fmtstring',
474
+ length: 48,
475
+ item_types: [
476
+ {
477
+ kind: 'field'
478
+ },
479
+ {
480
+ kind: 'field'
481
+ }
482
+ ]
483
+ },
484
+ '3670003311596808700': {
485
+ error_kind: 'fmtstring',
486
+ length: 77,
487
+ item_types: [
488
+ {
489
+ kind: 'integer',
490
+ sign: 'unsigned',
491
+ width: 32
492
+ }
493
+ ]
494
+ },
495
+ '4261968856572588300': {
496
+ error_kind: 'string',
497
+ string: 'Value does not fit in field'
498
+ },
499
+ '4440399188109668273': {
500
+ error_kind: 'string',
501
+ string: 'Input length must be a multiple of 32'
502
+ },
503
+ '9791669845391776238': {
504
+ error_kind: 'string',
505
+ string: '0 has a square root; you cannot claim it is not square'
506
+ },
507
+ '9885968605480832328': {
508
+ error_kind: 'string',
509
+ string: 'Attempted to read past the length of a CapsuleArray'
510
+ },
511
+ '10135509984888824963': {
512
+ error_kind: 'fmtstring',
513
+ length: 58,
514
+ item_types: [
515
+ {
516
+ kind: 'field'
517
+ }
518
+ ]
519
+ },
520
+ '10791800398362570014': {
521
+ error_kind: 'string',
522
+ string: 'extend_from_bounded_vec out of bounds'
523
+ },
524
+ '11021520179822076911': {
525
+ error_kind: 'string',
526
+ string: 'Attempted to delete past the length of a CapsuleArray'
527
+ },
528
+ '11692359521570349358': {
529
+ error_kind: 'fmtstring',
530
+ length: 40,
531
+ item_types: []
532
+ },
533
+ '12327971061804302172': {
534
+ error_kind: 'fmtstring',
535
+ length: 98,
536
+ item_types: []
537
+ },
538
+ '12469291177396340830': {
539
+ error_kind: 'string',
540
+ string: 'call to assert_max_bit_size'
541
+ },
542
+ '12913276134398371456': {
543
+ error_kind: 'string',
544
+ string: 'push out of bounds'
545
+ },
546
+ '13557316507370296400': {
547
+ error_kind: 'fmtstring',
548
+ length: 130,
549
+ item_types: [
550
+ {
551
+ kind: 'integer',
552
+ sign: 'unsigned',
553
+ width: 32
554
+ }
555
+ ]
556
+ },
557
+ '14938672389828944159': {
558
+ error_kind: 'fmtstring',
559
+ length: 146,
560
+ item_types: [
561
+ {
562
+ kind: 'integer',
563
+ sign: 'unsigned',
564
+ width: 32
565
+ }
566
+ ]
567
+ },
568
+ '14990209321349310352': {
569
+ error_kind: 'string',
570
+ string: 'attempt to add with overflow'
571
+ },
572
+ '15764276373176857197': {
573
+ error_kind: 'string',
574
+ string: 'Stack too deep'
575
+ },
576
+ '16431471497789672479': {
577
+ error_kind: 'string',
578
+ string: 'Index out of bounds'
579
+ },
580
+ '17531474008201752295': {
581
+ error_kind: 'fmtstring',
582
+ length: 133,
583
+ item_types: [
584
+ {
585
+ kind: 'integer',
586
+ sign: 'unsigned',
587
+ width: 32
588
+ }
589
+ ]
590
+ }
591
+ }
592
+ },
593
+ bytecode: Buffer.from([]),
594
+ debugSymbols: ''
595
+ },
596
+ {
597
+ ...{
598
+ functionType: FunctionType.UTILITY,
599
+ name: 'sync_private_state',
600
+ isOnlySelf: false,
601
+ isStatic: false,
602
+ isInitializer: false,
603
+ parameters: [],
604
+ returnTypes: [],
605
+ errorTypes: {
606
+ '361444214588792908': {
607
+ error_kind: 'string',
608
+ string: 'attempt to multiply with overflow'
609
+ },
610
+ '992401946138144806': {
611
+ error_kind: 'string',
612
+ string: 'Attempted to read past end of BoundedVec'
613
+ },
614
+ '1998584279744703196': {
615
+ error_kind: 'string',
616
+ string: 'attempt to subtract with overflow'
617
+ },
618
+ '2967937905572420042': {
619
+ error_kind: 'fmtstring',
620
+ length: 61,
621
+ item_types: [
622
+ {
623
+ kind: 'field'
624
+ },
625
+ {
626
+ kind: 'field'
627
+ }
628
+ ]
629
+ },
630
+ '3330370348214585450': {
631
+ error_kind: 'fmtstring',
632
+ length: 48,
633
+ item_types: [
634
+ {
635
+ kind: 'field'
636
+ },
637
+ {
638
+ kind: 'field'
639
+ }
640
+ ]
641
+ },
642
+ '3670003311596808700': {
643
+ error_kind: 'fmtstring',
644
+ length: 77,
645
+ item_types: [
646
+ {
647
+ kind: 'integer',
648
+ sign: 'unsigned',
649
+ width: 32
650
+ }
651
+ ]
652
+ },
653
+ '4261968856572588300': {
654
+ error_kind: 'string',
655
+ string: 'Value does not fit in field'
656
+ },
657
+ '4440399188109668273': {
658
+ error_kind: 'string',
659
+ string: 'Input length must be a multiple of 32'
660
+ },
661
+ '9791669845391776238': {
662
+ error_kind: 'string',
663
+ string: '0 has a square root; you cannot claim it is not square'
664
+ },
665
+ '9885968605480832328': {
666
+ error_kind: 'string',
667
+ string: 'Attempted to read past the length of a CapsuleArray'
668
+ },
669
+ '10135509984888824963': {
670
+ error_kind: 'fmtstring',
671
+ length: 58,
672
+ item_types: [
673
+ {
674
+ kind: 'field'
675
+ }
676
+ ]
677
+ },
678
+ '10791800398362570014': {
679
+ error_kind: 'string',
680
+ string: 'extend_from_bounded_vec out of bounds'
681
+ },
682
+ '11021520179822076911': {
683
+ error_kind: 'string',
684
+ string: 'Attempted to delete past the length of a CapsuleArray'
685
+ },
686
+ '11692359521570349358': {
687
+ error_kind: 'fmtstring',
688
+ length: 40,
689
+ item_types: []
690
+ },
691
+ '12327971061804302172': {
692
+ error_kind: 'fmtstring',
693
+ length: 98,
694
+ item_types: []
695
+ },
696
+ '12469291177396340830': {
697
+ error_kind: 'string',
698
+ string: 'call to assert_max_bit_size'
699
+ },
700
+ '12913276134398371456': {
701
+ error_kind: 'string',
702
+ string: 'push out of bounds'
703
+ },
704
+ '13557316507370296400': {
705
+ error_kind: 'fmtstring',
706
+ length: 130,
707
+ item_types: [
708
+ {
709
+ kind: 'integer',
710
+ sign: 'unsigned',
711
+ width: 32
712
+ }
713
+ ]
714
+ },
715
+ '14938672389828944159': {
716
+ error_kind: 'fmtstring',
717
+ length: 146,
718
+ item_types: [
719
+ {
720
+ kind: 'integer',
721
+ sign: 'unsigned',
722
+ width: 32
723
+ }
724
+ ]
725
+ },
726
+ '14990209321349310352': {
727
+ error_kind: 'string',
728
+ string: 'attempt to add with overflow'
729
+ },
730
+ '15764276373176857197': {
731
+ error_kind: 'string',
732
+ string: 'Stack too deep'
733
+ },
734
+ '16431471497789672479': {
735
+ error_kind: 'string',
736
+ string: 'Index out of bounds'
737
+ },
738
+ '17531474008201752295': {
739
+ error_kind: 'fmtstring',
740
+ length: 133,
741
+ item_types: [
742
+ {
743
+ kind: 'integer',
744
+ sign: 'unsigned',
745
+ width: 32
746
+ }
747
+ ]
748
+ }
749
+ }
750
+ },
751
+ bytecode: Buffer.from([]),
752
+ debugSymbols: ''
753
+ },
754
+ {
755
+ ...{
756
+ functionType: FunctionType.PUBLIC,
757
+ name: 'public_dispatch',
758
+ isOnlySelf: false,
759
+ isStatic: false,
760
+ isInitializer: false,
761
+ parameters: [
762
+ {
763
+ name: 'selector',
764
+ type: {
765
+ kind: 'field'
766
+ },
767
+ visibility: 'private'
768
+ }
769
+ ],
770
+ returnTypes: [],
771
+ errorTypes: {
772
+ '1335198680857977525': {
773
+ error_kind: 'string',
774
+ string: 'No public functions'
775
+ }
776
+ }
777
+ },
778
+ bytecode: Buffer.from([]),
779
+ debugSymbols: ''
780
+ }
781
+ ],
782
+ nonDispatchPublicFunctions: [],
783
+ outputs: {
784
+ structs: {},
785
+ globals: {}
786
+ },
787
+ storageLayout: {},
788
+ fileMap: {}
789
+ };
790
+ export class ContractClassRegistryContract extends ContractBase {
791
+ constructor(wallet){
792
+ super(ProtocolContractAddress.ContractClassRegistry, ContractClassRegistryContractArtifact, wallet);
793
+ }
794
+ static at(wallet) {
795
+ return new ContractClassRegistryContract(wallet);
796
+ }
797
+ }