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

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 (125) 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 +18 -12
  5. package/dest/api/contract.d.ts.map +1 -1
  6. package/dest/api/contract.js +16 -10
  7. package/dest/api/deployment.d.ts +1 -2
  8. package/dest/api/deployment.d.ts.map +1 -1
  9. package/dest/api/deployment.js +0 -1
  10. package/dest/api/events.d.ts +10 -6
  11. package/dest/api/events.d.ts.map +1 -1
  12. package/dest/api/events.js +30 -20
  13. package/dest/api/fields.d.ts +2 -1
  14. package/dest/api/fields.d.ts.map +1 -1
  15. package/dest/api/fields.js +1 -0
  16. package/dest/api/keys.d.ts +1 -1
  17. package/dest/api/keys.js +1 -1
  18. package/dest/api/node.d.ts +8 -4
  19. package/dest/api/node.d.ts.map +1 -1
  20. package/dest/api/node.js +7 -3
  21. package/dest/api/tx.d.ts +2 -2
  22. package/dest/api/tx.d.ts.map +1 -1
  23. package/dest/api/tx.js +1 -1
  24. package/dest/api/wallet.d.ts +3 -2
  25. package/dest/api/wallet.d.ts.map +1 -1
  26. package/dest/api/wallet.js +2 -1
  27. package/dest/contract/base_contract_interaction.d.ts +8 -10
  28. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  29. package/dest/contract/base_contract_interaction.js +5 -17
  30. package/dest/contract/contract_function_interaction.d.ts +3 -12
  31. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  32. package/dest/contract/contract_function_interaction.js +6 -6
  33. package/dest/contract/deploy_method.d.ts +63 -16
  34. package/dest/contract/deploy_method.d.ts.map +1 -1
  35. package/dest/contract/deploy_method.js +36 -19
  36. package/dest/contract/interaction_options.d.ts +42 -5
  37. package/dest/contract/interaction_options.d.ts.map +1 -1
  38. package/dest/contract/interaction_options.js +8 -1
  39. package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -10
  40. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  41. package/dest/contract/protocol_contracts/auth-registry.js +61 -479
  42. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -22
  43. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
  44. package/dest/contract/protocol_contracts/contract-class-registry.js +2 -672
  45. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
  46. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
  47. package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -486
  48. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
  49. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  50. package/dest/contract/protocol_contracts/fee-juice.js +0 -414
  51. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +3 -3
  52. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  53. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +23 -14
  54. package/dest/contract/protocol_contracts/public-checks.d.ts +3 -3
  55. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  56. package/dest/contract/protocol_contracts/public-checks.js +23 -22
  57. package/dest/contract/wait_for_proven.js +1 -1
  58. package/dest/contract/wait_opts.d.ts +16 -0
  59. package/dest/contract/wait_opts.d.ts.map +1 -0
  60. package/dest/contract/wait_opts.js +5 -0
  61. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  62. package/dest/fee/private_fee_payment_method.js +10 -10
  63. package/dest/fee/public_fee_payment_method.js +10 -10
  64. package/dest/fee/sponsored_fee_payment.js +3 -3
  65. package/dest/utils/authwit.d.ts +6 -6
  66. package/dest/utils/authwit.d.ts.map +1 -1
  67. package/dest/utils/authwit.js +2 -6
  68. package/dest/utils/node.d.ts +12 -1
  69. package/dest/utils/node.d.ts.map +1 -1
  70. package/dest/utils/node.js +46 -0
  71. package/dest/wallet/capabilities.d.ts +444 -0
  72. package/dest/wallet/capabilities.d.ts.map +1 -0
  73. package/dest/wallet/capabilities.js +3 -0
  74. package/dest/wallet/deploy_account_method.d.ts +19 -5
  75. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  76. package/dest/wallet/index.d.ts +2 -1
  77. package/dest/wallet/index.d.ts.map +1 -1
  78. package/dest/wallet/index.js +1 -0
  79. package/dest/wallet/wallet.d.ts +1491 -92
  80. package/dest/wallet/wallet.d.ts.map +1 -1
  81. package/dest/wallet/wallet.js +158 -25
  82. package/package.json +19 -10
  83. package/src/api/block.ts +1 -1
  84. package/src/api/contract.ts +24 -9
  85. package/src/api/deployment.ts +0 -1
  86. package/src/api/events.ts +35 -27
  87. package/src/api/fields.ts +1 -0
  88. package/src/api/keys.ts +2 -2
  89. package/src/api/node.ts +7 -3
  90. package/src/api/tx.ts +2 -0
  91. package/src/api/wallet.ts +47 -1
  92. package/src/contract/base_contract_interaction.ts +27 -15
  93. package/src/contract/contract_function_interaction.ts +13 -6
  94. package/src/contract/deploy_method.ts +115 -23
  95. package/src/contract/interaction_options.ts +49 -4
  96. package/src/contract/protocol_contracts/auth-registry.ts +37 -240
  97. package/src/contract/protocol_contracts/contract-class-registry.ts +1 -347
  98. package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -234
  99. package/src/contract/protocol_contracts/fee-juice.ts +0 -202
  100. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +6 -12
  101. package/src/contract/protocol_contracts/public-checks.ts +6 -14
  102. package/src/contract/wait_for_proven.ts +1 -1
  103. package/src/contract/wait_opts.ts +21 -0
  104. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  105. package/src/fee/private_fee_payment_method.ts +7 -7
  106. package/src/fee/public_fee_payment_method.ts +8 -8
  107. package/src/fee/sponsored_fee_payment.ts +3 -3
  108. package/src/utils/authwit.ts +16 -4
  109. package/src/utils/node.ts +62 -0
  110. package/src/wallet/capabilities.ts +491 -0
  111. package/src/wallet/deploy_account_method.ts +19 -4
  112. package/src/wallet/index.ts +1 -0
  113. package/src/wallet/wallet.ts +213 -46
  114. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  115. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  116. package/dest/contract/deploy_sent_tx.js +0 -46
  117. package/dest/contract/sent_tx.d.ts +0 -50
  118. package/dest/contract/sent_tx.d.ts.map +0 -1
  119. package/dest/contract/sent_tx.js +0 -90
  120. package/dest/deployment/broadcast_function.d.ts +0 -24
  121. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  122. package/dest/deployment/broadcast_function.js +0 -74
  123. package/src/contract/deploy_sent_tx.ts +0 -75
  124. package/src/contract/sent_tx.ts +0 -129
  125. 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,6 @@ 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: [] },
48
47
  '6609888949476313245': { error_kind: 'string', string: 'Message not in state' },
49
48
  '11019205087382408538': { error_kind: 'string', string: 'Field failed to decompose into specified 4 limbs' },
50
49
  '12370419938245003393': { error_kind: 'string', string: 'Field failed to decompose into specified 36 limbs' },
@@ -94,121 +93,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
94
93
  bytecode: Buffer.from([]),
95
94
  debugSymbols: '',
96
95
  },
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
96
  {
213
97
  ...{
214
98
  functionType: FunctionType.PUBLIC,
@@ -247,77 +131,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
247
131
  bytecode: Buffer.from([]),
248
132
  debugSymbols: '',
249
133
  },
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
134
  ],
322
135
  nonDispatchPublicFunctions: [
323
136
  {
@@ -445,22 +258,7 @@ export class FeeJuiceContract extends ContractBase {
445
258
  ) => ContractFunctionInteraction) &
446
259
  Pick<ContractMethod, 'selector'>;
447
260
 
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
261
  /** public_dispatch(selector: field) */
461
262
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
462
-
463
- /** sync_private_state() */
464
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
465
263
  };
466
264
  }
@@ -160,22 +160,14 @@ 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' }] },
163
164
  '9791669845391776238': {
164
165
  error_kind: 'string',
165
166
  string: '0 has a square root; you cannot claim it is not square',
166
167
  },
167
- '9885968605480832328': {
168
- error_kind: 'string',
169
- string: 'Attempted to read past the length of a CapsuleArray',
170
- },
171
168
  '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
172
169
  '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
170
  '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
178
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
179
171
  '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
180
172
  '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
181
173
  '13557316507370296400': {
@@ -204,7 +196,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
204
196
  {
205
197
  ...{
206
198
  functionType: FunctionType.UTILITY,
207
- name: 'sync_private_state',
199
+ name: 'sync_state',
208
200
  isOnlySelf: false,
209
201
  isStatic: false,
210
202
  isInitializer: false,
@@ -231,6 +223,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
231
223
  },
232
224
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
233
225
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
226
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
234
227
  '9791669845391776238': {
235
228
  error_kind: 'string',
236
229
  string: '0 has a square root; you cannot claim it is not square',
@@ -267,6 +260,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
267
260
  length: 133,
268
261
  item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
269
262
  },
263
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
270
264
  },
271
265
  },
272
266
  bytecode: Buffer.from([]),
@@ -332,7 +326,7 @@ export class MultiCallEntrypointContract extends ContractBase {
332
326
  /** public_dispatch(selector: field) */
333
327
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
334
328
 
335
- /** sync_private_state() */
336
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
329
+ /** sync_state() */
330
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
337
331
  };
338
332
  }
@@ -93,22 +93,14 @@ const PublicChecksContractArtifact: ContractArtifact = {
93
93
  },
94
94
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
95
95
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
96
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
96
97
  '9791669845391776238': {
97
98
  error_kind: 'string',
98
99
  string: '0 has a square root; you cannot claim it is not square',
99
100
  },
100
- '9885968605480832328': {
101
- error_kind: 'string',
102
- string: 'Attempted to read past the length of a CapsuleArray',
103
- },
104
101
  '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
105
102
  '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
106
- '11021520179822076911': {
107
- error_kind: 'string',
108
- string: 'Attempted to delete past the length of a CapsuleArray',
109
- },
110
103
  '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
111
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
112
104
  '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
113
105
  '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
114
106
  '13557316507370296400': {
@@ -155,10 +147,8 @@ const PublicChecksContractArtifact: ContractArtifact = {
155
147
  },
156
148
  '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
157
149
  '13950240626967988787': { error_kind: 'string', string: 'Timestamp mismatch.' },
158
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
159
150
  '15015303112667403944': { error_kind: 'fmtstring', length: 17, item_types: [] },
160
151
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
161
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
162
152
  },
163
153
  },
164
154
  bytecode: Buffer.from([]),
@@ -167,7 +157,7 @@ const PublicChecksContractArtifact: ContractArtifact = {
167
157
  {
168
158
  ...{
169
159
  functionType: FunctionType.UTILITY,
170
- name: 'sync_private_state',
160
+ name: 'sync_state',
171
161
  isOnlySelf: false,
172
162
  isStatic: false,
173
163
  isInitializer: false,
@@ -194,6 +184,7 @@ const PublicChecksContractArtifact: ContractArtifact = {
194
184
  },
195
185
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
196
186
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
187
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
197
188
  '9791669845391776238': {
198
189
  error_kind: 'string',
199
190
  string: '0 has a square root; you cannot claim it is not square',
@@ -230,6 +221,7 @@ const PublicChecksContractArtifact: ContractArtifact = {
230
221
  length: 133,
231
222
  item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
232
223
  },
224
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
233
225
  },
234
226
  },
235
227
  bytecode: Buffer.from([]),
@@ -318,7 +310,7 @@ export class PublicChecksContract extends ContractBase {
318
310
  /** public_dispatch(selector: field) */
319
311
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
320
312
 
321
- /** sync_private_state() */
322
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
313
+ /** sync_state() */
314
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
323
315
  };
324
316
  }