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

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 (94) hide show
  1. package/dest/api/block.d.ts +2 -2
  2. package/dest/api/block.d.ts.map +1 -1
  3. package/dest/api/block.js +1 -1
  4. package/dest/api/contract.d.ts +16 -10
  5. package/dest/api/contract.d.ts.map +1 -1
  6. package/dest/api/contract.js +14 -8
  7. package/dest/api/node.d.ts +8 -4
  8. package/dest/api/node.d.ts.map +1 -1
  9. package/dest/api/node.js +7 -3
  10. package/dest/api/tx.d.ts +2 -2
  11. package/dest/api/tx.d.ts.map +1 -1
  12. package/dest/api/tx.js +1 -1
  13. package/dest/api/wallet.d.ts +3 -2
  14. package/dest/api/wallet.d.ts.map +1 -1
  15. package/dest/api/wallet.js +2 -1
  16. package/dest/contract/base_contract_interaction.d.ts +8 -10
  17. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  18. package/dest/contract/base_contract_interaction.js +5 -17
  19. package/dest/contract/deploy_method.d.ts +63 -16
  20. package/dest/contract/deploy_method.d.ts.map +1 -1
  21. package/dest/contract/deploy_method.js +36 -19
  22. package/dest/contract/interaction_options.d.ts +42 -5
  23. package/dest/contract/interaction_options.d.ts.map +1 -1
  24. package/dest/contract/interaction_options.js +8 -1
  25. package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -10
  26. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  27. package/dest/contract/protocol_contracts/auth-registry.js +61 -479
  28. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -11
  29. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
  30. package/dest/contract/protocol_contracts/contract-class-registry.js +10 -422
  31. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
  32. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
  33. package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -486
  34. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
  35. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  36. package/dest/contract/protocol_contracts/fee-juice.js +0 -414
  37. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +3 -3
  38. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  39. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +13 -14
  40. package/dest/contract/protocol_contracts/public-checks.d.ts +3 -3
  41. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  42. package/dest/contract/protocol_contracts/public-checks.js +13 -22
  43. package/dest/contract/wait_for_proven.js +1 -1
  44. package/dest/contract/wait_opts.d.ts +16 -0
  45. package/dest/contract/wait_opts.d.ts.map +1 -0
  46. package/dest/contract/wait_opts.js +5 -0
  47. package/dest/utils/authwit.d.ts +6 -6
  48. package/dest/utils/authwit.d.ts.map +1 -1
  49. package/dest/utils/authwit.js +2 -6
  50. package/dest/utils/node.d.ts +12 -1
  51. package/dest/utils/node.d.ts.map +1 -1
  52. package/dest/utils/node.js +46 -0
  53. package/dest/wallet/capabilities.d.ts +444 -0
  54. package/dest/wallet/capabilities.d.ts.map +1 -0
  55. package/dest/wallet/capabilities.js +3 -0
  56. package/dest/wallet/deploy_account_method.d.ts +19 -5
  57. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  58. package/dest/wallet/index.d.ts +2 -1
  59. package/dest/wallet/index.d.ts.map +1 -1
  60. package/dest/wallet/index.js +1 -0
  61. package/dest/wallet/wallet.d.ts +1356 -18
  62. package/dest/wallet/wallet.d.ts.map +1 -1
  63. package/dest/wallet/wallet.js +136 -4
  64. package/package.json +9 -9
  65. package/src/api/block.ts +1 -1
  66. package/src/api/contract.ts +22 -7
  67. package/src/api/node.ts +7 -3
  68. package/src/api/tx.ts +2 -0
  69. package/src/api/wallet.ts +43 -0
  70. package/src/contract/base_contract_interaction.ts +27 -15
  71. package/src/contract/deploy_method.ts +115 -23
  72. package/src/contract/interaction_options.ts +49 -4
  73. package/src/contract/protocol_contracts/auth-registry.ts +37 -240
  74. package/src/contract/protocol_contracts/contract-class-registry.ts +3 -204
  75. package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -234
  76. package/src/contract/protocol_contracts/fee-juice.ts +0 -202
  77. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +6 -12
  78. package/src/contract/protocol_contracts/public-checks.ts +6 -14
  79. package/src/contract/wait_for_proven.ts +1 -1
  80. package/src/contract/wait_opts.ts +21 -0
  81. package/src/utils/authwit.ts +16 -4
  82. package/src/utils/node.ts +62 -0
  83. package/src/wallet/capabilities.ts +491 -0
  84. package/src/wallet/deploy_account_method.ts +19 -4
  85. package/src/wallet/index.ts +1 -0
  86. package/src/wallet/wallet.ts +148 -12
  87. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  88. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  89. package/dest/contract/deploy_sent_tx.js +0 -46
  90. package/dest/contract/sent_tx.d.ts +0 -50
  91. package/dest/contract/sent_tx.d.ts.map +0 -1
  92. package/dest/contract/sent_tx.js +0 -90
  93. package/src/contract/deploy_sent_tx.ts +0 -75
  94. package/src/contract/sent_tx.ts +0 -129
@@ -74,10 +74,10 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
74
74
  returnTypes: [],
75
75
  errorTypes: {
76
76
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
77
- '2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
78
77
  '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
79
78
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
80
79
  '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
80
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
81
81
  },
82
82
  },
83
83
  bytecode: Buffer.from([]),
@@ -131,10 +131,10 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
131
131
  returnTypes: [],
132
132
  errorTypes: {
133
133
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
134
- '2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
135
134
  '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
136
135
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
137
136
  '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
137
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
138
138
  },
139
139
  },
140
140
  bytecode: Buffer.from([]),
@@ -157,7 +157,6 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
157
157
  '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
158
158
  '922421554006670918': { error_kind: 'string', string: 'num_items is greater than MAX_ITEMS' },
159
159
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
160
- '2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
161
160
  '10965409165809799877': {
162
161
  error_kind: 'string',
163
162
  string: 'Given in_len to absorb is larger than the input array len',
@@ -167,192 +166,7 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
167
166
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
168
167
  '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
169
168
  '16450579948625159707': { error_kind: 'string', string: 'Sponge must be in cache_size=1' },
170
- },
171
- },
172
- bytecode: Buffer.from([]),
173
- debugSymbols: '',
174
- },
175
- {
176
- ...{
177
- functionType: FunctionType.UTILITY,
178
- name: 'process_message',
179
- isOnlySelf: false,
180
- isStatic: false,
181
- isInitializer: false,
182
- parameters: [
183
- {
184
- name: 'message_ciphertext',
185
- type: {
186
- kind: 'struct',
187
- fields: [
188
- { name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
189
- { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
190
- ],
191
- path: 'std::collections::bounded_vec::BoundedVec',
192
- },
193
- visibility: 'private',
194
- },
195
- {
196
- name: 'message_context',
197
- type: {
198
- kind: 'struct',
199
- fields: [
200
- { name: 'tx_hash', type: { kind: 'field' } },
201
- {
202
- name: 'unique_note_hashes_in_tx',
203
- type: {
204
- kind: 'struct',
205
- fields: [
206
- { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
207
- { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
208
- ],
209
- path: 'std::collections::bounded_vec::BoundedVec',
210
- },
211
- },
212
- { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
213
- {
214
- name: 'recipient',
215
- type: {
216
- kind: 'struct',
217
- fields: [{ name: 'inner', type: { kind: 'field' } }],
218
- path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
219
- },
220
- },
221
- ],
222
- path: 'aztec::messages::processing::message_context::MessageContext',
223
- },
224
- visibility: 'private',
225
- },
226
- ],
227
- returnTypes: [],
228
- errorTypes: {
229
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
230
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
231
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
232
- '2967937905572420042': {
233
- error_kind: 'fmtstring',
234
- length: 61,
235
- item_types: [{ kind: 'field' }, { kind: 'field' }],
236
- },
237
- '3330370348214585450': {
238
- error_kind: 'fmtstring',
239
- length: 48,
240
- item_types: [{ kind: 'field' }, { kind: 'field' }],
241
- },
242
- '3670003311596808700': {
243
- error_kind: 'fmtstring',
244
- length: 77,
245
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
246
- },
247
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
248
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
249
- '9791669845391776238': {
250
- error_kind: 'string',
251
- string: '0 has a square root; you cannot claim it is not square',
252
- },
253
- '9885968605480832328': {
254
- error_kind: 'string',
255
- string: 'Attempted to read past the length of a CapsuleArray',
256
- },
257
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
258
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
259
- '11021520179822076911': {
260
- error_kind: 'string',
261
- string: 'Attempted to delete past the length of a CapsuleArray',
262
- },
263
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
264
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
265
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
266
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
267
- '13557316507370296400': {
268
- error_kind: 'fmtstring',
269
- length: 130,
270
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
271
- },
272
- '14938672389828944159': {
273
- error_kind: 'fmtstring',
274
- length: 146,
275
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
276
- },
277
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
278
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
279
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
280
- '17531474008201752295': {
281
- error_kind: 'fmtstring',
282
- length: 133,
283
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
284
- },
285
- },
286
- },
287
- bytecode: Buffer.from([]),
288
- debugSymbols: '',
289
- },
290
- {
291
- ...{
292
- functionType: FunctionType.UTILITY,
293
- name: 'sync_private_state',
294
- isOnlySelf: false,
295
- isStatic: false,
296
- isInitializer: false,
297
- parameters: [],
298
- returnTypes: [],
299
- errorTypes: {
300
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
301
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
302
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
303
- '2967937905572420042': {
304
- error_kind: 'fmtstring',
305
- length: 61,
306
- item_types: [{ kind: 'field' }, { kind: 'field' }],
307
- },
308
- '3330370348214585450': {
309
- error_kind: 'fmtstring',
310
- length: 48,
311
- item_types: [{ kind: 'field' }, { kind: 'field' }],
312
- },
313
- '3670003311596808700': {
314
- error_kind: 'fmtstring',
315
- length: 77,
316
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
317
- },
318
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
319
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
320
- '9791669845391776238': {
321
- error_kind: 'string',
322
- string: '0 has a square root; you cannot claim it is not square',
323
- },
324
- '9885968605480832328': {
325
- error_kind: 'string',
326
- string: 'Attempted to read past the length of a CapsuleArray',
327
- },
328
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
329
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
330
- '11021520179822076911': {
331
- error_kind: 'string',
332
- string: 'Attempted to delete past the length of a CapsuleArray',
333
- },
334
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
335
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
336
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
337
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
338
- '13557316507370296400': {
339
- error_kind: 'fmtstring',
340
- length: 130,
341
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
342
- },
343
- '14938672389828944159': {
344
- error_kind: 'fmtstring',
345
- length: 146,
346
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
347
- },
348
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
349
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
350
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
351
- '17531474008201752295': {
352
- error_kind: 'fmtstring',
353
- length: 133,
354
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
355
- },
169
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
356
170
  },
357
171
  },
358
172
  bytecode: Buffer.from([]),
@@ -413,18 +227,6 @@ export class ContractClassRegistryContract extends ContractBase {
413
227
  ) => ContractFunctionInteraction) &
414
228
  Pick<ContractMethod, 'selector'>;
415
229
 
416
- /** process_message(message_ciphertext: struct, message_context: struct) */
417
- process_message: ((
418
- message_ciphertext: FieldLike[],
419
- message_context: {
420
- tx_hash: FieldLike;
421
- unique_note_hashes_in_tx: FieldLike[];
422
- first_nullifier_in_tx: FieldLike;
423
- recipient: AztecAddressLike;
424
- },
425
- ) => ContractFunctionInteraction) &
426
- Pick<ContractMethod, 'selector'>;
427
-
428
230
  /** public_dispatch(selector: field) */
429
231
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
430
232
 
@@ -435,8 +237,5 @@ export class ContractClassRegistryContract extends ContractBase {
435
237
  public_bytecode_commitment: FieldLike,
436
238
  ) => ContractFunctionInteraction) &
437
239
  Pick<ContractMethod, 'selector'>;
438
-
439
- /** sync_private_state() */
440
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
441
240
  };
442
241
  }
@@ -19,6 +19,38 @@ import { ContractFunctionInteraction } from '../contract_function_interaction.js
19
19
  const ContractInstanceRegistryContractArtifact: ContractArtifact = {
20
20
  name: 'ContractInstanceRegistry',
21
21
  functions: [
22
+ {
23
+ ...{
24
+ functionType: FunctionType.PUBLIC,
25
+ name: 'public_dispatch',
26
+ isOnlySelf: false,
27
+ isStatic: false,
28
+ isInitializer: false,
29
+ parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
30
+ returnTypes: [],
31
+ errorTypes: {
32
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
33
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
34
+ '5755400808989454547': {
35
+ error_kind: 'string',
36
+ string: 'Function get_update_delay can only be called statically',
37
+ },
38
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
39
+ '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
40
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
41
+ '13455385521185560676': {
42
+ error_kind: 'string',
43
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
44
+ },
45
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
46
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
47
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
48
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
49
+ },
50
+ },
51
+ bytecode: Buffer.from([]),
52
+ debugSymbols: '',
53
+ },
22
54
  {
23
55
  ...{
24
56
  functionType: FunctionType.PRIVATE,
@@ -137,7 +169,6 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
137
169
  returnTypes: [],
138
170
  errorTypes: {
139
171
  '718532354304118388': { error_kind: 'string', string: 'Point not on curve' },
140
- '2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
141
172
  '4135474769840782447': {
142
173
  error_kind: 'string',
143
174
  string: 'Point at infinity should have canonical representation (0 0)',
@@ -150,224 +181,6 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
150
181
  bytecode: Buffer.from([]),
151
182
  debugSymbols: '',
152
183
  },
153
- {
154
- ...{
155
- functionType: FunctionType.UTILITY,
156
- name: 'process_message',
157
- isOnlySelf: false,
158
- isStatic: false,
159
- isInitializer: false,
160
- parameters: [
161
- {
162
- name: 'message_ciphertext',
163
- type: {
164
- kind: 'struct',
165
- fields: [
166
- { name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
167
- { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
168
- ],
169
- path: 'std::collections::bounded_vec::BoundedVec',
170
- },
171
- visibility: 'private',
172
- },
173
- {
174
- name: 'message_context',
175
- type: {
176
- kind: 'struct',
177
- fields: [
178
- { name: 'tx_hash', type: { kind: 'field' } },
179
- {
180
- name: 'unique_note_hashes_in_tx',
181
- type: {
182
- kind: 'struct',
183
- fields: [
184
- { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
185
- { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
186
- ],
187
- path: 'std::collections::bounded_vec::BoundedVec',
188
- },
189
- },
190
- { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
191
- {
192
- name: 'recipient',
193
- type: {
194
- kind: 'struct',
195
- fields: [{ name: 'inner', type: { kind: 'field' } }],
196
- path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
197
- },
198
- },
199
- ],
200
- path: 'aztec::messages::processing::message_context::MessageContext',
201
- },
202
- visibility: 'private',
203
- },
204
- ],
205
- returnTypes: [],
206
- errorTypes: {
207
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
208
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
209
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
210
- '2967937905572420042': {
211
- error_kind: 'fmtstring',
212
- length: 61,
213
- item_types: [{ kind: 'field' }, { kind: 'field' }],
214
- },
215
- '3330370348214585450': {
216
- error_kind: 'fmtstring',
217
- length: 48,
218
- item_types: [{ kind: 'field' }, { kind: 'field' }],
219
- },
220
- '3670003311596808700': {
221
- error_kind: 'fmtstring',
222
- length: 77,
223
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
224
- },
225
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
226
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
227
- '9791669845391776238': {
228
- error_kind: 'string',
229
- string: '0 has a square root; you cannot claim it is not square',
230
- },
231
- '9885968605480832328': {
232
- error_kind: 'string',
233
- string: 'Attempted to read past the length of a CapsuleArray',
234
- },
235
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
236
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
237
- '11021520179822076911': {
238
- error_kind: 'string',
239
- string: 'Attempted to delete past the length of a CapsuleArray',
240
- },
241
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
242
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
243
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
244
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
245
- '13557316507370296400': {
246
- error_kind: 'fmtstring',
247
- length: 130,
248
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
249
- },
250
- '14938672389828944159': {
251
- error_kind: 'fmtstring',
252
- length: 146,
253
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
254
- },
255
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
256
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
257
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
258
- '17531474008201752295': {
259
- error_kind: 'fmtstring',
260
- length: 133,
261
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
262
- },
263
- },
264
- },
265
- bytecode: Buffer.from([]),
266
- debugSymbols: '',
267
- },
268
- {
269
- ...{
270
- functionType: FunctionType.PUBLIC,
271
- name: 'public_dispatch',
272
- isOnlySelf: false,
273
- isStatic: false,
274
- isInitializer: false,
275
- parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
276
- returnTypes: [],
277
- errorTypes: {
278
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
279
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
280
- '5755400808989454547': {
281
- error_kind: 'string',
282
- string: 'Function get_update_delay can only be called statically',
283
- },
284
- '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
285
- '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
286
- '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
287
- '13455385521185560676': {
288
- error_kind: 'string',
289
- string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
290
- },
291
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
292
- '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
293
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
294
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
295
- },
296
- },
297
- bytecode: Buffer.from([]),
298
- debugSymbols: '',
299
- },
300
- {
301
- ...{
302
- functionType: FunctionType.UTILITY,
303
- name: 'sync_private_state',
304
- isOnlySelf: false,
305
- isStatic: false,
306
- isInitializer: false,
307
- parameters: [],
308
- returnTypes: [],
309
- errorTypes: {
310
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
311
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
312
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
313
- '2967937905572420042': {
314
- error_kind: 'fmtstring',
315
- length: 61,
316
- item_types: [{ kind: 'field' }, { kind: 'field' }],
317
- },
318
- '3330370348214585450': {
319
- error_kind: 'fmtstring',
320
- length: 48,
321
- item_types: [{ kind: 'field' }, { kind: 'field' }],
322
- },
323
- '3670003311596808700': {
324
- error_kind: 'fmtstring',
325
- length: 77,
326
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
327
- },
328
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
329
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
330
- '9791669845391776238': {
331
- error_kind: 'string',
332
- string: '0 has a square root; you cannot claim it is not square',
333
- },
334
- '9885968605480832328': {
335
- error_kind: 'string',
336
- string: 'Attempted to read past the length of a CapsuleArray',
337
- },
338
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
339
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
340
- '11021520179822076911': {
341
- error_kind: 'string',
342
- string: 'Attempted to delete past the length of a CapsuleArray',
343
- },
344
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
345
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
346
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
347
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
348
- '13557316507370296400': {
349
- error_kind: 'fmtstring',
350
- length: 130,
351
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
352
- },
353
- '14938672389828944159': {
354
- error_kind: 'fmtstring',
355
- length: 146,
356
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
357
- },
358
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
359
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
360
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
361
- '17531474008201752295': {
362
- error_kind: 'fmtstring',
363
- length: 133,
364
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
365
- },
366
- },
367
- },
368
- bytecode: Buffer.from([]),
369
- debugSymbols: '',
370
- },
371
184
  ],
372
185
  nonDispatchPublicFunctions: [
373
186
  {
@@ -401,6 +214,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
401
214
  ],
402
215
  returnTypes: [],
403
216
  errorTypes: {
217
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
404
218
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
405
219
  '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
406
220
  '13455385521185560676': {
@@ -432,6 +246,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
432
246
  ],
433
247
  returnTypes: [],
434
248
  errorTypes: {
249
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
435
250
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
436
251
  '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
437
252
  '13455385521185560676': {
@@ -463,18 +278,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
463
278
  /** get_update_delay() */
464
279
  get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
465
280
 
466
- /** process_message(message_ciphertext: struct, message_context: struct) */
467
- process_message: ((
468
- message_ciphertext: FieldLike[],
469
- message_context: {
470
- tx_hash: FieldLike;
471
- unique_note_hashes_in_tx: FieldLike[];
472
- first_nullifier_in_tx: FieldLike;
473
- recipient: AztecAddressLike;
474
- },
475
- ) => ContractFunctionInteraction) &
476
- Pick<ContractMethod, 'selector'>;
477
-
478
281
  /** public_dispatch(selector: field) */
479
282
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
480
283
 
@@ -492,9 +295,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
492
295
  set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
493
296
  Pick<ContractMethod, 'selector'>;
494
297
 
495
- /** sync_private_state() */
496
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
497
-
498
298
  /** update(new_contract_class_id: struct) */
499
299
  update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
500
300
  Pick<ContractMethod, 'selector'>;