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

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 (139) hide show
  1. package/dest/api/abi.d.ts +2 -2
  2. package/dest/api/abi.d.ts.map +1 -1
  3. package/dest/api/block.d.ts +2 -2
  4. package/dest/api/block.d.ts.map +1 -1
  5. package/dest/api/block.js +1 -1
  6. package/dest/api/contract.d.ts +18 -12
  7. package/dest/api/contract.d.ts.map +1 -1
  8. package/dest/api/contract.js +16 -10
  9. package/dest/api/deployment.d.ts +1 -2
  10. package/dest/api/deployment.d.ts.map +1 -1
  11. package/dest/api/deployment.js +0 -1
  12. package/dest/api/events.d.ts +10 -6
  13. package/dest/api/events.d.ts.map +1 -1
  14. package/dest/api/events.js +30 -20
  15. package/dest/api/fields.d.ts +2 -1
  16. package/dest/api/fields.d.ts.map +1 -1
  17. package/dest/api/fields.js +1 -0
  18. package/dest/api/keys.d.ts +1 -1
  19. package/dest/api/keys.js +1 -1
  20. package/dest/api/node.d.ts +8 -4
  21. package/dest/api/node.d.ts.map +1 -1
  22. package/dest/api/node.js +7 -3
  23. package/dest/api/tx.d.ts +2 -2
  24. package/dest/api/tx.d.ts.map +1 -1
  25. package/dest/api/tx.js +1 -1
  26. package/dest/api/wallet.d.ts +3 -2
  27. package/dest/api/wallet.d.ts.map +1 -1
  28. package/dest/api/wallet.js +2 -1
  29. package/dest/contract/base_contract_interaction.d.ts +8 -10
  30. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  31. package/dest/contract/base_contract_interaction.js +5 -17
  32. package/dest/contract/batch_call.d.ts +3 -3
  33. package/dest/contract/batch_call.d.ts.map +1 -1
  34. package/dest/contract/batch_call.js +17 -8
  35. package/dest/contract/contract_function_interaction.d.ts +7 -16
  36. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  37. package/dest/contract/contract_function_interaction.js +107 -18
  38. package/dest/contract/deploy_method.d.ts +91 -19
  39. package/dest/contract/deploy_method.d.ts.map +1 -1
  40. package/dest/contract/deploy_method.js +68 -30
  41. package/dest/contract/get_gas_limits.js +3 -3
  42. package/dest/contract/interaction_options.d.ts +99 -21
  43. package/dest/contract/interaction_options.d.ts.map +1 -1
  44. package/dest/contract/interaction_options.js +41 -1
  45. package/dest/contract/protocol_contracts/auth-registry.d.ts +3 -3
  46. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  47. package/dest/contract/protocol_contracts/auth-registry.js +49 -20
  48. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -22
  49. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
  50. package/dest/contract/protocol_contracts/contract-class-registry.js +13 -671
  51. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
  52. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
  53. package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -486
  54. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
  55. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  56. package/dest/contract/protocol_contracts/fee-juice.js +7 -413
  57. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +3 -3
  58. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  59. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +40 -15
  60. package/dest/contract/protocol_contracts/public-checks.d.ts +3 -3
  61. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  62. package/dest/contract/protocol_contracts/public-checks.js +40 -23
  63. package/dest/contract/wait_for_proven.js +1 -1
  64. package/dest/contract/wait_opts.d.ts +16 -0
  65. package/dest/contract/wait_opts.d.ts.map +1 -0
  66. package/dest/contract/wait_opts.js +5 -0
  67. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  68. package/dest/fee/private_fee_payment_method.js +10 -10
  69. package/dest/fee/public_fee_payment_method.js +10 -10
  70. package/dest/fee/sponsored_fee_payment.js +3 -3
  71. package/dest/utils/abi_types.d.ts +6 -1
  72. package/dest/utils/abi_types.d.ts.map +1 -1
  73. package/dest/utils/abi_types.js +1 -1
  74. package/dest/utils/authwit.d.ts +6 -6
  75. package/dest/utils/authwit.d.ts.map +1 -1
  76. package/dest/utils/authwit.js +12 -12
  77. package/dest/utils/node.d.ts +12 -1
  78. package/dest/utils/node.d.ts.map +1 -1
  79. package/dest/utils/node.js +46 -0
  80. package/dest/wallet/capabilities.d.ts +452 -0
  81. package/dest/wallet/capabilities.d.ts.map +1 -0
  82. package/dest/wallet/capabilities.js +3 -0
  83. package/dest/wallet/deploy_account_method.d.ts +31 -6
  84. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  85. package/dest/wallet/deploy_account_method.js +26 -0
  86. package/dest/wallet/index.d.ts +2 -1
  87. package/dest/wallet/index.d.ts.map +1 -1
  88. package/dest/wallet/index.js +1 -0
  89. package/dest/wallet/wallet.d.ts +1639 -93
  90. package/dest/wallet/wallet.d.ts.map +1 -1
  91. package/dest/wallet/wallet.js +186 -27
  92. package/package.json +20 -11
  93. package/src/api/abi.ts +1 -0
  94. package/src/api/block.ts +1 -1
  95. package/src/api/contract.ts +31 -9
  96. package/src/api/deployment.ts +0 -1
  97. package/src/api/events.ts +35 -27
  98. package/src/api/fields.ts +1 -0
  99. package/src/api/keys.ts +2 -2
  100. package/src/api/node.ts +7 -3
  101. package/src/api/tx.ts +2 -0
  102. package/src/api/wallet.ts +48 -1
  103. package/src/contract/base_contract_interaction.ts +28 -15
  104. package/src/contract/batch_call.ts +17 -14
  105. package/src/contract/contract_function_interaction.ts +114 -26
  106. package/src/contract/deploy_method.ts +172 -35
  107. package/src/contract/get_gas_limits.ts +3 -3
  108. package/src/contract/interaction_options.ts +141 -23
  109. package/src/contract/protocol_contracts/auth-registry.ts +13 -14
  110. package/src/contract/protocol_contracts/contract-class-registry.ts +4 -347
  111. package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -234
  112. package/src/contract/protocol_contracts/fee-juice.ts +2 -202
  113. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +11 -13
  114. package/src/contract/protocol_contracts/public-checks.ts +11 -15
  115. package/src/contract/wait_for_proven.ts +1 -1
  116. package/src/contract/wait_opts.ts +21 -0
  117. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  118. package/src/fee/private_fee_payment_method.ts +7 -7
  119. package/src/fee/public_fee_payment_method.ts +8 -8
  120. package/src/fee/sponsored_fee_payment.ts +3 -3
  121. package/src/utils/abi_types.ts +7 -0
  122. package/src/utils/authwit.ts +31 -21
  123. package/src/utils/node.ts +62 -0
  124. package/src/wallet/capabilities.ts +500 -0
  125. package/src/wallet/deploy_account_method.ts +56 -4
  126. package/src/wallet/index.ts +1 -0
  127. package/src/wallet/wallet.ts +257 -50
  128. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  129. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  130. package/dest/contract/deploy_sent_tx.js +0 -46
  131. package/dest/contract/sent_tx.d.ts +0 -50
  132. package/dest/contract/sent_tx.d.ts.map +0 -1
  133. package/dest/contract/sent_tx.js +0 -90
  134. package/dest/deployment/broadcast_function.d.ts +0 -24
  135. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  136. package/dest/deployment/broadcast_function.js +0 -74
  137. package/src/contract/deploy_sent_tx.ts +0 -75
  138. package/src/contract/sent_tx.ts +0 -129
  139. package/src/deployment/broadcast_function.ts +0 -148
@@ -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'>;
@@ -44,7 +44,7 @@ const FeeJuiceContractArtifact: ContractArtifact = {
44
44
  errorTypes: {
45
45
  '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
46
46
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
47
- '2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
47
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
48
48
  '6609888949476313245': { error_kind: 'string', string: 'Message not in state' },
49
49
  '11019205087382408538': { error_kind: 'string', string: 'Field failed to decompose into specified 4 limbs' },
50
50
  '12370419938245003393': { error_kind: 'string', string: 'Field failed to decompose into specified 36 limbs' },
@@ -82,6 +82,7 @@ const FeeJuiceContractArtifact: ContractArtifact = {
82
82
  errorTypes: {
83
83
  '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
84
84
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
85
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
85
86
  '6609888949476313245': { error_kind: 'string', string: 'Message not in state' },
86
87
  '11019205087382408538': { error_kind: 'string', string: 'Field failed to decompose into specified 4 limbs' },
87
88
  '12370419938245003393': { error_kind: 'string', string: 'Field failed to decompose into specified 36 limbs' },
@@ -94,121 +95,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
94
95
  bytecode: Buffer.from([]),
95
96
  debugSymbols: '',
96
97
  },
97
- {
98
- ...{
99
- functionType: FunctionType.UTILITY,
100
- name: 'process_message',
101
- isOnlySelf: false,
102
- isStatic: false,
103
- isInitializer: false,
104
- parameters: [
105
- {
106
- name: 'message_ciphertext',
107
- type: {
108
- kind: 'struct',
109
- fields: [
110
- { name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
111
- { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
112
- ],
113
- path: 'std::collections::bounded_vec::BoundedVec',
114
- },
115
- visibility: 'private',
116
- },
117
- {
118
- name: 'message_context',
119
- type: {
120
- kind: 'struct',
121
- fields: [
122
- { name: 'tx_hash', type: { kind: 'field' } },
123
- {
124
- name: 'unique_note_hashes_in_tx',
125
- type: {
126
- kind: 'struct',
127
- fields: [
128
- { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
129
- { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
130
- ],
131
- path: 'std::collections::bounded_vec::BoundedVec',
132
- },
133
- },
134
- { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
135
- {
136
- name: 'recipient',
137
- type: {
138
- kind: 'struct',
139
- fields: [{ name: 'inner', type: { kind: 'field' } }],
140
- path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
141
- },
142
- },
143
- ],
144
- path: 'aztec::messages::processing::message_context::MessageContext',
145
- },
146
- visibility: 'private',
147
- },
148
- ],
149
- returnTypes: [],
150
- errorTypes: {
151
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
152
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
153
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
154
- '2967937905572420042': {
155
- error_kind: 'fmtstring',
156
- length: 61,
157
- item_types: [{ kind: 'field' }, { kind: 'field' }],
158
- },
159
- '3330370348214585450': {
160
- error_kind: 'fmtstring',
161
- length: 48,
162
- item_types: [{ kind: 'field' }, { kind: 'field' }],
163
- },
164
- '3670003311596808700': {
165
- error_kind: 'fmtstring',
166
- length: 77,
167
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
168
- },
169
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
170
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
171
- '9791669845391776238': {
172
- error_kind: 'string',
173
- string: '0 has a square root; you cannot claim it is not square',
174
- },
175
- '9885968605480832328': {
176
- error_kind: 'string',
177
- string: 'Attempted to read past the length of a CapsuleArray',
178
- },
179
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
180
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
181
- '11021520179822076911': {
182
- error_kind: 'string',
183
- string: 'Attempted to delete past the length of a CapsuleArray',
184
- },
185
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
186
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
187
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
188
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
189
- '13557316507370296400': {
190
- error_kind: 'fmtstring',
191
- length: 130,
192
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
193
- },
194
- '14938672389828944159': {
195
- error_kind: 'fmtstring',
196
- length: 146,
197
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
198
- },
199
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
200
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
201
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
202
- '17531474008201752295': {
203
- error_kind: 'fmtstring',
204
- length: 133,
205
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
206
- },
207
- },
208
- },
209
- bytecode: Buffer.from([]),
210
- debugSymbols: '',
211
- },
212
98
  {
213
99
  ...{
214
100
  functionType: FunctionType.PUBLIC,
@@ -247,77 +133,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
247
133
  bytecode: Buffer.from([]),
248
134
  debugSymbols: '',
249
135
  },
250
- {
251
- ...{
252
- functionType: FunctionType.UTILITY,
253
- name: 'sync_private_state',
254
- isOnlySelf: false,
255
- isStatic: false,
256
- isInitializer: false,
257
- parameters: [],
258
- returnTypes: [],
259
- errorTypes: {
260
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
261
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
262
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
263
- '2967937905572420042': {
264
- error_kind: 'fmtstring',
265
- length: 61,
266
- item_types: [{ kind: 'field' }, { kind: 'field' }],
267
- },
268
- '3330370348214585450': {
269
- error_kind: 'fmtstring',
270
- length: 48,
271
- item_types: [{ kind: 'field' }, { kind: 'field' }],
272
- },
273
- '3670003311596808700': {
274
- error_kind: 'fmtstring',
275
- length: 77,
276
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
277
- },
278
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
279
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
280
- '9791669845391776238': {
281
- error_kind: 'string',
282
- string: '0 has a square root; you cannot claim it is not square',
283
- },
284
- '9885968605480832328': {
285
- error_kind: 'string',
286
- string: 'Attempted to read past the length of a CapsuleArray',
287
- },
288
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
289
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
290
- '11021520179822076911': {
291
- error_kind: 'string',
292
- string: 'Attempted to delete past the length of a CapsuleArray',
293
- },
294
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
295
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
296
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
297
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
298
- '13557316507370296400': {
299
- error_kind: 'fmtstring',
300
- length: 130,
301
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
302
- },
303
- '14938672389828944159': {
304
- error_kind: 'fmtstring',
305
- length: 146,
306
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
307
- },
308
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
309
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
310
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
311
- '17531474008201752295': {
312
- error_kind: 'fmtstring',
313
- length: 133,
314
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
315
- },
316
- },
317
- },
318
- bytecode: Buffer.from([]),
319
- debugSymbols: '',
320
- },
321
136
  ],
322
137
  nonDispatchPublicFunctions: [
323
138
  {
@@ -445,22 +260,7 @@ export class FeeJuiceContract extends ContractBase {
445
260
  ) => ContractFunctionInteraction) &
446
261
  Pick<ContractMethod, 'selector'>;
447
262
 
448
- /** process_message(message_ciphertext: struct, message_context: struct) */
449
- process_message: ((
450
- message_ciphertext: FieldLike[],
451
- message_context: {
452
- tx_hash: FieldLike;
453
- unique_note_hashes_in_tx: FieldLike[];
454
- first_nullifier_in_tx: FieldLike;
455
- recipient: AztecAddressLike;
456
- },
457
- ) => ContractFunctionInteraction) &
458
- Pick<ContractMethod, 'selector'>;
459
-
460
263
  /** public_dispatch(selector: field) */
461
264
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
462
-
463
- /** sync_private_state() */
464
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
465
265
  };
466
266
  }
@@ -99,7 +99,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
99
99
  type: {
100
100
  kind: 'struct',
101
101
  fields: [
102
- { name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
102
+ { name: 'storage', type: { kind: 'array', length: 15, type: { kind: 'field' } } },
103
103
  { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
104
104
  ],
105
105
  path: 'std::collections::bounded_vec::BoundedVec',
@@ -160,22 +160,16 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
160
160
  },
161
161
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
162
162
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
163
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
164
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
165
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
163
166
  '9791669845391776238': {
164
167
  error_kind: 'string',
165
168
  string: '0 has a square root; you cannot claim it is not square',
166
169
  },
167
- '9885968605480832328': {
168
- error_kind: 'string',
169
- string: 'Attempted to read past the length of a CapsuleArray',
170
- },
171
170
  '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
172
171
  '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
173
- '11021520179822076911': {
174
- error_kind: 'string',
175
- string: 'Attempted to delete past the length of a CapsuleArray',
176
- },
177
172
  '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
178
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
179
173
  '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
180
174
  '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
181
175
  '13557316507370296400': {
@@ -204,7 +198,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
204
198
  {
205
199
  ...{
206
200
  functionType: FunctionType.UTILITY,
207
- name: 'sync_private_state',
201
+ name: 'sync_state',
208
202
  isOnlySelf: false,
209
203
  isStatic: false,
210
204
  isInitializer: false,
@@ -231,6 +225,9 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
231
225
  },
232
226
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
233
227
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
228
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
229
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
230
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
234
231
  '9791669845391776238': {
235
232
  error_kind: 'string',
236
233
  string: '0 has a square root; you cannot claim it is not square',
@@ -267,6 +264,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
267
264
  length: 133,
268
265
  item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
269
266
  },
267
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
270
268
  },
271
269
  },
272
270
  bytecode: Buffer.from([]),
@@ -332,7 +330,7 @@ export class MultiCallEntrypointContract extends ContractBase {
332
330
  /** public_dispatch(selector: field) */
333
331
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
334
332
 
335
- /** sync_private_state() */
336
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
333
+ /** sync_state() */
334
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
337
335
  };
338
336
  }