@aztec/aztec.js 0.0.1-commit.d3ec352c → 0.0.1-commit.d431d1c

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 (155) hide show
  1. package/dest/account/account.d.ts +25 -40
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +19 -47
  4. package/dest/account/account_contract.d.ts +9 -10
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +21 -9
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/account_with_secret_key.js +21 -4
  9. package/dest/account/index.d.ts +4 -3
  10. package/dest/account/index.d.ts.map +1 -1
  11. package/dest/account/index.js +2 -0
  12. package/dest/account/signerless_account.d.ts +6 -7
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/account.d.ts +2 -4
  16. package/dest/api/account.d.ts.map +1 -1
  17. package/dest/api/account.js +1 -3
  18. package/dest/api/authorization.d.ts +2 -2
  19. package/dest/api/authorization.d.ts.map +1 -1
  20. package/dest/api/authorization.js +1 -1
  21. package/dest/api/block.d.ts +2 -2
  22. package/dest/api/block.d.ts.map +1 -1
  23. package/dest/api/block.js +1 -1
  24. package/dest/api/fields.d.ts +3 -2
  25. package/dest/api/fields.d.ts.map +1 -1
  26. package/dest/api/fields.js +2 -1
  27. package/dest/api/protocol.d.ts +7 -1
  28. package/dest/api/protocol.d.ts.map +1 -1
  29. package/dest/api/protocol.js +6 -0
  30. package/dest/api/wallet.d.ts +2 -2
  31. package/dest/api/wallet.d.ts.map +1 -1
  32. package/dest/api/wallet.js +1 -1
  33. package/dest/authorization/call_authorization_request.d.ts +23 -2
  34. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  35. package/dest/contract/batch_call.d.ts +1 -1
  36. package/dest/contract/batch_call.d.ts.map +1 -1
  37. package/dest/contract/batch_call.js +3 -1
  38. package/dest/contract/contract_base.d.ts +4 -1
  39. package/dest/contract/contract_base.d.ts.map +1 -1
  40. package/dest/contract/contract_function_interaction.d.ts +1 -1
  41. package/dest/contract/deploy_method.d.ts +2 -2
  42. package/dest/contract/deploy_method.d.ts.map +1 -1
  43. package/dest/contract/deploy_method.js +6 -5
  44. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  45. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  46. package/dest/contract/protocol_contracts/auth-registry.js +976 -0
  47. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
  48. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  49. package/dest/contract/protocol_contracts/contract-class-registry.js +797 -0
  50. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
  51. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  52. package/dest/contract/protocol_contracts/contract-instance-registry.js +871 -0
  53. package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
  54. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  55. package/dest/contract/protocol_contracts/fee-juice.js +840 -0
  56. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  57. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  58. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +576 -0
  59. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  60. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  61. package/dest/contract/protocol_contracts/public-checks.js +592 -0
  62. package/dest/contract/sent_tx.d.ts +2 -3
  63. package/dest/contract/sent_tx.d.ts.map +1 -1
  64. package/dest/contract/wait_for_proven.d.ts +2 -2
  65. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  66. package/dest/deployment/broadcast_function.js +4 -4
  67. package/dest/deployment/publish_class.js +3 -3
  68. package/dest/deployment/publish_instance.d.ts +2 -2
  69. package/dest/deployment/publish_instance.d.ts.map +1 -1
  70. package/dest/deployment/publish_instance.js +3 -3
  71. package/dest/ethereum/portal_manager.d.ts +9 -6
  72. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  73. package/dest/ethereum/portal_manager.js +17 -18
  74. package/dest/fee/fee_juice_payment_method_with_claim.js +1 -1
  75. package/dest/fee/private_fee_payment_method.js +1 -1
  76. package/dest/fee/public_fee_payment_method.js +1 -1
  77. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  78. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  79. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  80. package/dest/utils/abi_types.d.ts +2 -2
  81. package/dest/utils/abi_types.d.ts.map +1 -1
  82. package/dest/utils/authwit.d.ts +4 -2
  83. package/dest/utils/authwit.d.ts.map +1 -1
  84. package/dest/utils/authwit.js +4 -4
  85. package/dest/utils/cross_chain.d.ts +2 -2
  86. package/dest/utils/cross_chain.d.ts.map +1 -1
  87. package/dest/utils/fee_juice.js +1 -1
  88. package/dest/utils/field_compressed_string.js +1 -1
  89. package/dest/utils/pub_key.d.ts +2 -2
  90. package/dest/utils/pub_key.d.ts.map +1 -1
  91. package/dest/utils/pub_key.js +1 -1
  92. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  93. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  94. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  95. package/dest/wallet/account_manager.d.ts +6 -9
  96. package/dest/wallet/account_manager.d.ts.map +1 -1
  97. package/dest/wallet/account_manager.js +6 -12
  98. package/dest/wallet/deploy_account_method.d.ts +18 -4
  99. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  100. package/dest/wallet/deploy_account_method.js +8 -6
  101. package/dest/wallet/wallet.d.ts +242 -955
  102. package/dest/wallet/wallet.d.ts.map +1 -1
  103. package/dest/wallet/wallet.js +61 -88
  104. package/package.json +14 -12
  105. package/src/account/account.ts +34 -58
  106. package/src/account/account_contract.ts +7 -8
  107. package/src/account/account_with_secret_key.ts +34 -9
  108. package/src/account/index.ts +3 -2
  109. package/src/account/signerless_account.ts +14 -13
  110. package/src/api/account.ts +9 -3
  111. package/src/api/authorization.ts +1 -0
  112. package/src/api/block.ts +1 -1
  113. package/src/api/fields.ts +2 -1
  114. package/src/api/protocol.ts +7 -0
  115. package/src/api/wallet.ts +4 -2
  116. package/src/authorization/call_authorization_request.ts +1 -1
  117. package/src/contract/batch_call.ts +4 -2
  118. package/src/contract/deploy_method.ts +8 -7
  119. package/src/contract/protocol_contracts/auth-registry.ts +554 -0
  120. package/src/contract/protocol_contracts/contract-class-registry.ts +442 -0
  121. package/src/contract/protocol_contracts/contract-instance-registry.ts +502 -0
  122. package/src/contract/protocol_contracts/fee-juice.ts +466 -0
  123. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +338 -0
  124. package/src/contract/protocol_contracts/public-checks.ts +324 -0
  125. package/src/contract/sent_tx.ts +1 -2
  126. package/src/deployment/broadcast_function.ts +4 -4
  127. package/src/deployment/publish_class.ts +3 -3
  128. package/src/deployment/publish_instance.ts +3 -6
  129. package/src/ethereum/portal_manager.ts +20 -24
  130. package/src/fee/fee_juice_payment_method_with_claim.ts +1 -1
  131. package/src/fee/private_fee_payment_method.ts +1 -1
  132. package/src/fee/public_fee_payment_method.ts +1 -1
  133. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  134. package/src/utils/abi_types.ts +1 -1
  135. package/src/utils/authwit.ts +4 -4
  136. package/src/utils/cross_chain.ts +1 -1
  137. package/src/utils/fee_juice.ts +1 -1
  138. package/src/utils/field_compressed_string.ts +1 -1
  139. package/src/utils/pub_key.ts +2 -2
  140. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  141. package/src/wallet/account_manager.ts +6 -14
  142. package/src/wallet/deploy_account_method.ts +20 -11
  143. package/src/wallet/wallet.ts +162 -83
  144. package/dest/account/interface.d.ts +0 -19
  145. package/dest/account/interface.d.ts.map +0 -1
  146. package/dest/account/interface.js +0 -5
  147. package/dest/contract/protocol_contracts.d.ts +0 -9
  148. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  149. package/dest/contract/protocol_contracts.js +0 -26
  150. package/dest/contract/unsafe_contract.d.ts +0 -15
  151. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  152. package/dest/contract/unsafe_contract.js +0 -6
  153. package/src/account/interface.ts +0 -25
  154. package/src/contract/protocol_contracts.ts +0 -35
  155. package/src/contract/unsafe_contract.ts +0 -19
@@ -0,0 +1,871 @@
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
+ '361444214588792908': {
509
+ error_kind: 'string',
510
+ string: 'attempt to multiply with overflow'
511
+ },
512
+ '1998584279744703196': {
513
+ error_kind: 'string',
514
+ string: 'attempt to subtract with overflow'
515
+ },
516
+ '5755400808989454547': {
517
+ error_kind: 'string',
518
+ string: 'Function get_update_delay can only be called statically'
519
+ },
520
+ '6804164082532189961': {
521
+ error_kind: 'string',
522
+ string: 'New update delay is too low'
523
+ },
524
+ '12511970388699677811': {
525
+ error_kind: 'fmtstring',
526
+ length: 27,
527
+ item_types: [
528
+ {
529
+ kind: 'field'
530
+ }
531
+ ]
532
+ },
533
+ '12579274401768182412': {
534
+ error_kind: 'string',
535
+ string: 'New contract class is not registered'
536
+ },
537
+ '13455385521185560676': {
538
+ error_kind: 'string',
539
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
540
+ },
541
+ '14990209321349310352': {
542
+ error_kind: 'string',
543
+ string: 'attempt to add with overflow'
544
+ },
545
+ '15353471697975175405': {
546
+ error_kind: 'string',
547
+ string: 'msg.sender is not deployed'
548
+ },
549
+ '15764276373176857197': {
550
+ error_kind: 'string',
551
+ string: 'Stack too deep'
552
+ },
553
+ '16431471497789672479': {
554
+ error_kind: 'string',
555
+ string: 'Index out of bounds'
556
+ }
557
+ }
558
+ },
559
+ bytecode: Buffer.from([]),
560
+ debugSymbols: ''
561
+ },
562
+ {
563
+ ...{
564
+ functionType: FunctionType.UTILITY,
565
+ name: 'sync_private_state',
566
+ isOnlySelf: false,
567
+ isStatic: false,
568
+ isInitializer: false,
569
+ parameters: [],
570
+ returnTypes: [],
571
+ errorTypes: {
572
+ '361444214588792908': {
573
+ error_kind: 'string',
574
+ string: 'attempt to multiply with overflow'
575
+ },
576
+ '992401946138144806': {
577
+ error_kind: 'string',
578
+ string: 'Attempted to read past end of BoundedVec'
579
+ },
580
+ '1998584279744703196': {
581
+ error_kind: 'string',
582
+ string: 'attempt to subtract with overflow'
583
+ },
584
+ '2967937905572420042': {
585
+ error_kind: 'fmtstring',
586
+ length: 61,
587
+ item_types: [
588
+ {
589
+ kind: 'field'
590
+ },
591
+ {
592
+ kind: 'field'
593
+ }
594
+ ]
595
+ },
596
+ '3330370348214585450': {
597
+ error_kind: 'fmtstring',
598
+ length: 48,
599
+ item_types: [
600
+ {
601
+ kind: 'field'
602
+ },
603
+ {
604
+ kind: 'field'
605
+ }
606
+ ]
607
+ },
608
+ '3670003311596808700': {
609
+ error_kind: 'fmtstring',
610
+ length: 77,
611
+ item_types: [
612
+ {
613
+ kind: 'integer',
614
+ sign: 'unsigned',
615
+ width: 32
616
+ }
617
+ ]
618
+ },
619
+ '4261968856572588300': {
620
+ error_kind: 'string',
621
+ string: 'Value does not fit in field'
622
+ },
623
+ '4440399188109668273': {
624
+ error_kind: 'string',
625
+ string: 'Input length must be a multiple of 32'
626
+ },
627
+ '9791669845391776238': {
628
+ error_kind: 'string',
629
+ string: '0 has a square root; you cannot claim it is not square'
630
+ },
631
+ '9885968605480832328': {
632
+ error_kind: 'string',
633
+ string: 'Attempted to read past the length of a CapsuleArray'
634
+ },
635
+ '10135509984888824963': {
636
+ error_kind: 'fmtstring',
637
+ length: 58,
638
+ item_types: [
639
+ {
640
+ kind: 'field'
641
+ }
642
+ ]
643
+ },
644
+ '10791800398362570014': {
645
+ error_kind: 'string',
646
+ string: 'extend_from_bounded_vec out of bounds'
647
+ },
648
+ '11021520179822076911': {
649
+ error_kind: 'string',
650
+ string: 'Attempted to delete past the length of a CapsuleArray'
651
+ },
652
+ '11692359521570349358': {
653
+ error_kind: 'fmtstring',
654
+ length: 40,
655
+ item_types: []
656
+ },
657
+ '12327971061804302172': {
658
+ error_kind: 'fmtstring',
659
+ length: 98,
660
+ item_types: []
661
+ },
662
+ '12469291177396340830': {
663
+ error_kind: 'string',
664
+ string: 'call to assert_max_bit_size'
665
+ },
666
+ '12913276134398371456': {
667
+ error_kind: 'string',
668
+ string: 'push out of bounds'
669
+ },
670
+ '13557316507370296400': {
671
+ error_kind: 'fmtstring',
672
+ length: 130,
673
+ item_types: [
674
+ {
675
+ kind: 'integer',
676
+ sign: 'unsigned',
677
+ width: 32
678
+ }
679
+ ]
680
+ },
681
+ '14938672389828944159': {
682
+ error_kind: 'fmtstring',
683
+ length: 146,
684
+ item_types: [
685
+ {
686
+ kind: 'integer',
687
+ sign: 'unsigned',
688
+ width: 32
689
+ }
690
+ ]
691
+ },
692
+ '14990209321349310352': {
693
+ error_kind: 'string',
694
+ string: 'attempt to add with overflow'
695
+ },
696
+ '15764276373176857197': {
697
+ error_kind: 'string',
698
+ string: 'Stack too deep'
699
+ },
700
+ '16431471497789672479': {
701
+ error_kind: 'string',
702
+ string: 'Index out of bounds'
703
+ },
704
+ '17531474008201752295': {
705
+ error_kind: 'fmtstring',
706
+ length: 133,
707
+ item_types: [
708
+ {
709
+ kind: 'integer',
710
+ sign: 'unsigned',
711
+ width: 32
712
+ }
713
+ ]
714
+ }
715
+ }
716
+ },
717
+ bytecode: Buffer.from([]),
718
+ debugSymbols: ''
719
+ }
720
+ ],
721
+ nonDispatchPublicFunctions: [
722
+ {
723
+ functionType: FunctionType.PUBLIC,
724
+ name: 'get_update_delay',
725
+ isOnlySelf: false,
726
+ isStatic: true,
727
+ isInitializer: false,
728
+ parameters: [],
729
+ returnTypes: [
730
+ {
731
+ kind: 'integer',
732
+ sign: 'unsigned',
733
+ width: 64
734
+ }
735
+ ],
736
+ errorTypes: {
737
+ '5755400808989454547': {
738
+ error_kind: 'string',
739
+ string: 'Function get_update_delay can only be called statically'
740
+ },
741
+ '13455385521185560676': {
742
+ error_kind: 'string',
743
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
744
+ },
745
+ '15764276373176857197': {
746
+ error_kind: 'string',
747
+ string: 'Stack too deep'
748
+ }
749
+ }
750
+ },
751
+ {
752
+ functionType: FunctionType.PUBLIC,
753
+ name: 'set_update_delay',
754
+ isOnlySelf: false,
755
+ isStatic: false,
756
+ isInitializer: false,
757
+ parameters: [
758
+ {
759
+ name: 'new_update_delay',
760
+ type: {
761
+ kind: 'integer',
762
+ sign: 'unsigned',
763
+ width: 64
764
+ },
765
+ visibility: 'private'
766
+ }
767
+ ],
768
+ returnTypes: [],
769
+ errorTypes: {
770
+ '1998584279744703196': {
771
+ error_kind: 'string',
772
+ string: 'attempt to subtract with overflow'
773
+ },
774
+ '6804164082532189961': {
775
+ error_kind: 'string',
776
+ string: 'New update delay is too low'
777
+ },
778
+ '13455385521185560676': {
779
+ error_kind: 'string',
780
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
781
+ },
782
+ '14990209321349310352': {
783
+ error_kind: 'string',
784
+ string: 'attempt to add with overflow'
785
+ },
786
+ '15353471697975175405': {
787
+ error_kind: 'string',
788
+ string: 'msg.sender is not deployed'
789
+ },
790
+ '15764276373176857197': {
791
+ error_kind: 'string',
792
+ string: 'Stack too deep'
793
+ },
794
+ '16431471497789672479': {
795
+ error_kind: 'string',
796
+ string: 'Index out of bounds'
797
+ }
798
+ }
799
+ },
800
+ {
801
+ functionType: FunctionType.PUBLIC,
802
+ name: 'update',
803
+ isOnlySelf: false,
804
+ isStatic: false,
805
+ isInitializer: false,
806
+ parameters: [
807
+ {
808
+ name: 'new_contract_class_id',
809
+ type: {
810
+ kind: 'struct',
811
+ fields: [
812
+ {
813
+ name: 'inner',
814
+ type: {
815
+ kind: 'field'
816
+ }
817
+ }
818
+ ],
819
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
820
+ },
821
+ visibility: 'private'
822
+ }
823
+ ],
824
+ returnTypes: [],
825
+ errorTypes: {
826
+ '1998584279744703196': {
827
+ error_kind: 'string',
828
+ string: 'attempt to subtract with overflow'
829
+ },
830
+ '12579274401768182412': {
831
+ error_kind: 'string',
832
+ string: 'New contract class is not registered'
833
+ },
834
+ '13455385521185560676': {
835
+ error_kind: 'string',
836
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
837
+ },
838
+ '14990209321349310352': {
839
+ error_kind: 'string',
840
+ string: 'attempt to add with overflow'
841
+ },
842
+ '15353471697975175405': {
843
+ error_kind: 'string',
844
+ string: 'msg.sender is not deployed'
845
+ },
846
+ '15764276373176857197': {
847
+ error_kind: 'string',
848
+ string: 'Stack too deep'
849
+ },
850
+ '16431471497789672479': {
851
+ error_kind: 'string',
852
+ string: 'Index out of bounds'
853
+ }
854
+ }
855
+ }
856
+ ],
857
+ outputs: {
858
+ structs: {},
859
+ globals: {}
860
+ },
861
+ storageLayout: {},
862
+ fileMap: {}
863
+ };
864
+ export class ContractInstanceRegistryContract extends ContractBase {
865
+ constructor(wallet){
866
+ super(ProtocolContractAddress.ContractInstanceRegistry, ContractInstanceRegistryContractArtifact, wallet);
867
+ }
868
+ static at(wallet) {
869
+ return new ContractInstanceRegistryContract(wallet);
870
+ }
871
+ }