@aztec/aztec.js 0.0.1-commit.e61ad554 → 0.0.1-commit.ec5f612

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 (92) hide show
  1. package/dest/api/contract.d.ts +2 -2
  2. package/dest/api/contract.js +2 -2
  3. package/dest/api/deployment.d.ts +1 -2
  4. package/dest/api/deployment.d.ts.map +1 -1
  5. package/dest/api/deployment.js +0 -1
  6. package/dest/api/events.d.ts +10 -6
  7. package/dest/api/events.d.ts.map +1 -1
  8. package/dest/api/events.js +30 -20
  9. package/dest/api/fields.d.ts +2 -1
  10. package/dest/api/fields.d.ts.map +1 -1
  11. package/dest/api/fields.js +1 -0
  12. package/dest/api/keys.d.ts +1 -1
  13. package/dest/api/keys.js +1 -1
  14. package/dest/api/wallet.d.ts +3 -2
  15. package/dest/api/wallet.d.ts.map +1 -1
  16. package/dest/api/wallet.js +2 -1
  17. package/dest/contract/batch_call.d.ts +3 -3
  18. package/dest/contract/batch_call.d.ts.map +1 -1
  19. package/dest/contract/batch_call.js +8 -5
  20. package/dest/contract/contract_function_interaction.d.ts +3 -12
  21. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  22. package/dest/contract/contract_function_interaction.js +10 -7
  23. package/dest/contract/deploy_method.d.ts +19 -6
  24. package/dest/contract/deploy_method.d.ts.map +1 -1
  25. package/dest/contract/deploy_method.js +25 -10
  26. package/dest/contract/get_gas_limits.js +3 -3
  27. package/dest/contract/interaction_options.d.ts +8 -1
  28. package/dest/contract/interaction_options.d.ts.map +1 -1
  29. package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -1
  30. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  31. package/dest/contract/protocol_contracts/auth-registry.js +40 -6
  32. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -22
  33. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
  34. package/dest/contract/protocol_contracts/contract-class-registry.js +13 -658
  35. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
  36. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
  37. package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -473
  38. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
  39. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  40. package/dest/contract/protocol_contracts/fee-juice.js +0 -401
  41. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +1 -1
  42. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  43. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +31 -1
  44. package/dest/contract/protocol_contracts/public-checks.d.ts +1 -1
  45. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  46. package/dest/contract/protocol_contracts/public-checks.js +31 -9
  47. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  48. package/dest/fee/private_fee_payment_method.js +10 -10
  49. package/dest/fee/public_fee_payment_method.js +10 -10
  50. package/dest/fee/sponsored_fee_payment.js +3 -3
  51. package/dest/wallet/capabilities.d.ts +452 -0
  52. package/dest/wallet/capabilities.d.ts.map +1 -0
  53. package/dest/wallet/capabilities.js +3 -0
  54. package/dest/wallet/deploy_account_method.d.ts +15 -4
  55. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  56. package/dest/wallet/deploy_account_method.js +26 -0
  57. package/dest/wallet/index.d.ts +2 -1
  58. package/dest/wallet/index.d.ts.map +1 -1
  59. package/dest/wallet/index.js +1 -0
  60. package/dest/wallet/wallet.d.ts +1590 -89
  61. package/dest/wallet/wallet.d.ts.map +1 -1
  62. package/dest/wallet/wallet.js +154 -25
  63. package/package.json +20 -11
  64. package/src/api/contract.ts +2 -2
  65. package/src/api/deployment.ts +0 -1
  66. package/src/api/events.ts +35 -27
  67. package/src/api/fields.ts +1 -0
  68. package/src/api/keys.ts +2 -2
  69. package/src/api/wallet.ts +43 -1
  70. package/src/contract/batch_call.ts +7 -12
  71. package/src/contract/contract_function_interaction.ts +17 -7
  72. package/src/contract/deploy_method.ts +48 -14
  73. package/src/contract/get_gas_limits.ts +3 -3
  74. package/src/contract/interaction_options.ts +7 -0
  75. package/src/contract/protocol_contracts/auth-registry.ts +8 -2
  76. package/src/contract/protocol_contracts/contract-class-registry.ts +4 -338
  77. package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -225
  78. package/src/contract/protocol_contracts/fee-juice.ts +0 -193
  79. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +6 -1
  80. package/src/contract/protocol_contracts/public-checks.ts +6 -3
  81. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  82. package/src/fee/private_fee_payment_method.ts +7 -7
  83. package/src/fee/public_fee_payment_method.ts +8 -8
  84. package/src/fee/sponsored_fee_payment.ts +3 -3
  85. package/src/wallet/capabilities.ts +500 -0
  86. package/src/wallet/deploy_account_method.ts +39 -2
  87. package/src/wallet/index.ts +1 -0
  88. package/src/wallet/wallet.ts +205 -39
  89. package/dest/deployment/broadcast_function.d.ts +0 -24
  90. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  91. package/dest/deployment/broadcast_function.js +0 -74
  92. 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,215 +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
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
232
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
233
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
234
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
235
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
236
- '13557316507370296400': {
237
- error_kind: 'fmtstring',
238
- length: 130,
239
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
240
- },
241
- '14938672389828944159': {
242
- error_kind: 'fmtstring',
243
- length: 146,
244
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
245
- },
246
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
247
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
248
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
249
- '17531474008201752295': {
250
- error_kind: 'fmtstring',
251
- length: 133,
252
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
253
- },
254
- },
255
- },
256
- bytecode: Buffer.from([]),
257
- debugSymbols: '',
258
- },
259
- {
260
- ...{
261
- functionType: FunctionType.PUBLIC,
262
- name: 'public_dispatch',
263
- isOnlySelf: false,
264
- isStatic: false,
265
- isInitializer: false,
266
- parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
267
- returnTypes: [],
268
- errorTypes: {
269
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
270
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
271
- '5755400808989454547': {
272
- error_kind: 'string',
273
- string: 'Function get_update_delay can only be called statically',
274
- },
275
- '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
276
- '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
277
- '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
278
- '13455385521185560676': {
279
- error_kind: 'string',
280
- string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
281
- },
282
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
283
- '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
284
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
285
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
286
- },
287
- },
288
- bytecode: Buffer.from([]),
289
- debugSymbols: '',
290
- },
291
- {
292
- ...{
293
- functionType: FunctionType.UTILITY,
294
- name: 'sync_state',
295
- isOnlySelf: false,
296
- isStatic: false,
297
- isInitializer: false,
298
- parameters: [],
299
- returnTypes: [],
300
- errorTypes: {
301
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
302
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
303
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
304
- '2967937905572420042': {
305
- error_kind: 'fmtstring',
306
- length: 61,
307
- item_types: [{ kind: 'field' }, { kind: 'field' }],
308
- },
309
- '3330370348214585450': {
310
- error_kind: 'fmtstring',
311
- length: 48,
312
- item_types: [{ kind: 'field' }, { kind: 'field' }],
313
- },
314
- '3670003311596808700': {
315
- error_kind: 'fmtstring',
316
- length: 77,
317
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
318
- },
319
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
320
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
321
- '9791669845391776238': {
322
- error_kind: 'string',
323
- string: '0 has a square root; you cannot claim it is not square',
324
- },
325
- '9885968605480832328': {
326
- error_kind: 'string',
327
- string: 'Attempted to read past the length of a CapsuleArray',
328
- },
329
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
330
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
331
- '11021520179822076911': {
332
- error_kind: 'string',
333
- string: 'Attempted to delete past the length of a CapsuleArray',
334
- },
335
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
336
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
337
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
338
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
339
- '13557316507370296400': {
340
- error_kind: 'fmtstring',
341
- length: 130,
342
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
343
- },
344
- '14938672389828944159': {
345
- error_kind: 'fmtstring',
346
- length: 146,
347
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
348
- },
349
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
350
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
351
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
352
- '17531474008201752295': {
353
- error_kind: 'fmtstring',
354
- length: 133,
355
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
356
- },
357
- },
358
- },
359
- bytecode: Buffer.from([]),
360
- debugSymbols: '',
361
- },
362
184
  ],
363
185
  nonDispatchPublicFunctions: [
364
186
  {
@@ -392,6 +214,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
392
214
  ],
393
215
  returnTypes: [],
394
216
  errorTypes: {
217
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
395
218
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
396
219
  '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
397
220
  '13455385521185560676': {
@@ -423,6 +246,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
423
246
  ],
424
247
  returnTypes: [],
425
248
  errorTypes: {
249
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
426
250
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
427
251
  '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
428
252
  '13455385521185560676': {
@@ -454,18 +278,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
454
278
  /** get_update_delay() */
455
279
  get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
456
280
 
457
- /** process_message(message_ciphertext: struct, message_context: struct) */
458
- process_message: ((
459
- message_ciphertext: FieldLike[],
460
- message_context: {
461
- tx_hash: FieldLike;
462
- unique_note_hashes_in_tx: FieldLike[];
463
- first_nullifier_in_tx: FieldLike;
464
- recipient: AztecAddressLike;
465
- },
466
- ) => ContractFunctionInteraction) &
467
- Pick<ContractMethod, 'selector'>;
468
-
469
281
  /** public_dispatch(selector: field) */
470
282
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
471
283
 
@@ -483,9 +295,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
483
295
  set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
484
296
  Pick<ContractMethod, 'selector'>;
485
297
 
486
- /** sync_state() */
487
- sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
488
-
489
298
  /** update(new_contract_class_id: struct) */
490
299
  update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
491
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,112 +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
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
176
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
177
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
178
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
179
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
180
- '13557316507370296400': {
181
- error_kind: 'fmtstring',
182
- length: 130,
183
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
184
- },
185
- '14938672389828944159': {
186
- error_kind: 'fmtstring',
187
- length: 146,
188
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
189
- },
190
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
191
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
192
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
193
- '17531474008201752295': {
194
- error_kind: 'fmtstring',
195
- length: 133,
196
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
197
- },
198
- },
199
- },
200
- bytecode: Buffer.from([]),
201
- debugSymbols: '',
202
- },
203
96
  {
204
97
  ...{
205
98
  functionType: FunctionType.PUBLIC,
@@ -238,77 +131,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
238
131
  bytecode: Buffer.from([]),
239
132
  debugSymbols: '',
240
133
  },
241
- {
242
- ...{
243
- functionType: FunctionType.UTILITY,
244
- name: 'sync_state',
245
- isOnlySelf: false,
246
- isStatic: false,
247
- isInitializer: false,
248
- parameters: [],
249
- returnTypes: [],
250
- errorTypes: {
251
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
252
- '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
253
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
254
- '2967937905572420042': {
255
- error_kind: 'fmtstring',
256
- length: 61,
257
- item_types: [{ kind: 'field' }, { kind: 'field' }],
258
- },
259
- '3330370348214585450': {
260
- error_kind: 'fmtstring',
261
- length: 48,
262
- item_types: [{ kind: 'field' }, { kind: 'field' }],
263
- },
264
- '3670003311596808700': {
265
- error_kind: 'fmtstring',
266
- length: 77,
267
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
268
- },
269
- '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
270
- '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
271
- '9791669845391776238': {
272
- error_kind: 'string',
273
- string: '0 has a square root; you cannot claim it is not square',
274
- },
275
- '9885968605480832328': {
276
- error_kind: 'string',
277
- string: 'Attempted to read past the length of a CapsuleArray',
278
- },
279
- '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
280
- '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
281
- '11021520179822076911': {
282
- error_kind: 'string',
283
- string: 'Attempted to delete past the length of a CapsuleArray',
284
- },
285
- '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
286
- '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
287
- '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
288
- '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
289
- '13557316507370296400': {
290
- error_kind: 'fmtstring',
291
- length: 130,
292
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
293
- },
294
- '14938672389828944159': {
295
- error_kind: 'fmtstring',
296
- length: 146,
297
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
298
- },
299
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
300
- '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
301
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
302
- '17531474008201752295': {
303
- error_kind: 'fmtstring',
304
- length: 133,
305
- item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
306
- },
307
- },
308
- },
309
- bytecode: Buffer.from([]),
310
- debugSymbols: '',
311
- },
312
134
  ],
313
135
  nonDispatchPublicFunctions: [
314
136
  {
@@ -436,22 +258,7 @@ export class FeeJuiceContract extends ContractBase {
436
258
  ) => ContractFunctionInteraction) &
437
259
  Pick<ContractMethod, 'selector'>;
438
260
 
439
- /** process_message(message_ciphertext: struct, message_context: struct) */
440
- process_message: ((
441
- message_ciphertext: FieldLike[],
442
- message_context: {
443
- tx_hash: FieldLike;
444
- unique_note_hashes_in_tx: FieldLike[];
445
- first_nullifier_in_tx: FieldLike;
446
- recipient: AztecAddressLike;
447
- },
448
- ) => ContractFunctionInteraction) &
449
- Pick<ContractMethod, 'selector'>;
450
-
451
261
  /** public_dispatch(selector: field) */
452
262
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
453
-
454
- /** sync_state() */
455
- sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
456
263
  };
457
264
  }
@@ -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,6 +160,8 @@ 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
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
163
165
  '9791669845391776238': {
164
166
  error_kind: 'string',
165
167
  string: '0 has a square root; you cannot claim it is not square',
@@ -222,6 +224,8 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
222
224
  },
223
225
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
224
226
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
227
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
228
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
225
229
  '9791669845391776238': {
226
230
  error_kind: 'string',
227
231
  string: '0 has a square root; you cannot claim it is not square',
@@ -258,6 +262,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
258
262
  length: 133,
259
263
  item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
260
264
  },
265
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
261
266
  },
262
267
  },
263
268
  bytecode: Buffer.from([]),
@@ -32,7 +32,7 @@ const PublicChecksContractArtifact: ContractArtifact = {
32
32
  type: {
33
33
  kind: 'struct',
34
34
  fields: [
35
- { name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
35
+ { name: 'storage', type: { kind: 'array', length: 15, type: { kind: 'field' } } },
36
36
  { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
37
37
  ],
38
38
  path: 'std::collections::bounded_vec::BoundedVec',
@@ -93,6 +93,8 @@ 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' }] },
97
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
96
98
  '9791669845391776238': {
97
99
  error_kind: 'string',
98
100
  string: '0 has a square root; you cannot claim it is not square',
@@ -146,10 +148,8 @@ const PublicChecksContractArtifact: ContractArtifact = {
146
148
  },
147
149
  '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
148
150
  '13950240626967988787': { error_kind: 'string', string: 'Timestamp mismatch.' },
149
- '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
150
151
  '15015303112667403944': { error_kind: 'fmtstring', length: 17, item_types: [] },
151
152
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
152
- '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
153
153
  },
154
154
  },
155
155
  bytecode: Buffer.from([]),
@@ -185,6 +185,8 @@ const PublicChecksContractArtifact: ContractArtifact = {
185
185
  },
186
186
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
187
187
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
188
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
189
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
188
190
  '9791669845391776238': {
189
191
  error_kind: 'string',
190
192
  string: '0 has a square root; you cannot claim it is not square',
@@ -221,6 +223,7 @@ const PublicChecksContractArtifact: ContractArtifact = {
221
223
  length: 133,
222
224
  item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
223
225
  },
226
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
224
227
  },
225
228
  },
226
229
  bytecode: Buffer.from([]),
@@ -1,6 +1,6 @@
1
1
  import { Fr } from '@aztec/foundation/curves/bn254';
2
2
  import { ProtocolContractAddress } from '@aztec/protocol-contracts';
3
- import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
3
+ import { FunctionCall, FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
4
4
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
5
  import type { GasSettings } from '@aztec/stdlib/gas';
6
6
  import { ExecutionPayload } from '@aztec/stdlib/tx';
@@ -27,10 +27,11 @@ export class FeeJuicePaymentMethodWithClaim implements FeePaymentMethod {
27
27
 
28
28
  return new ExecutionPayload(
29
29
  [
30
- {
31
- to: ProtocolContractAddress.FeeJuice,
30
+ FunctionCall.from({
32
31
  name: 'claim_and_end_setup',
32
+ to: ProtocolContractAddress.FeeJuice,
33
33
  selector,
34
+ type: FunctionType.PRIVATE,
34
35
  hideMsgSender: false,
35
36
  isStatic: false,
36
37
  args: [
@@ -40,8 +41,7 @@ export class FeeJuicePaymentMethodWithClaim implements FeePaymentMethod {
40
41
  new Fr(this.claim.messageLeafIndex),
41
42
  ],
42
43
  returnTypes: [],
43
- type: FunctionType.PRIVATE,
44
- },
44
+ }),
45
45
  ],
46
46
  [],
47
47
  [],