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