@aztec/aztec.js 0.0.1-commit.f295ac2 → 0.0.1-commit.fc805bf

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 (137) hide show
  1. package/dest/account/account.d.ts +25 -40
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +19 -47
  4. package/dest/account/account_contract.d.ts +7 -8
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +18 -7
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/account_with_secret_key.js +21 -4
  9. package/dest/account/index.d.ts +3 -2
  10. package/dest/account/index.d.ts.map +1 -1
  11. package/dest/account/index.js +2 -0
  12. package/dest/account/signerless_account.d.ts +5 -6
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/account.d.ts +2 -4
  16. package/dest/api/account.d.ts.map +1 -1
  17. package/dest/api/account.js +1 -3
  18. package/dest/api/authorization.d.ts +2 -2
  19. package/dest/api/authorization.d.ts.map +1 -1
  20. package/dest/api/authorization.js +1 -1
  21. package/dest/api/block.d.ts +2 -2
  22. package/dest/api/block.d.ts.map +1 -1
  23. package/dest/api/block.js +1 -1
  24. package/dest/api/contract.d.ts +16 -10
  25. package/dest/api/contract.d.ts.map +1 -1
  26. package/dest/api/contract.js +14 -8
  27. package/dest/api/keys.d.ts +1 -1
  28. package/dest/api/keys.js +1 -1
  29. package/dest/api/node.d.ts +8 -4
  30. package/dest/api/node.d.ts.map +1 -1
  31. package/dest/api/node.js +7 -3
  32. package/dest/api/tx.d.ts +2 -2
  33. package/dest/api/tx.d.ts.map +1 -1
  34. package/dest/api/tx.js +1 -1
  35. package/dest/api/wallet.d.ts +3 -2
  36. package/dest/api/wallet.d.ts.map +1 -1
  37. package/dest/api/wallet.js +2 -1
  38. package/dest/contract/base_contract_interaction.d.ts +8 -10
  39. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  40. package/dest/contract/base_contract_interaction.js +5 -17
  41. package/dest/contract/deploy_method.d.ts +63 -16
  42. package/dest/contract/deploy_method.d.ts.map +1 -1
  43. package/dest/contract/deploy_method.js +36 -19
  44. package/dest/contract/interaction_options.d.ts +42 -5
  45. package/dest/contract/interaction_options.d.ts.map +1 -1
  46. package/dest/contract/interaction_options.js +8 -1
  47. package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -10
  48. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  49. package/dest/contract/protocol_contracts/auth-registry.js +97 -467
  50. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -11
  51. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
  52. package/dest/contract/protocol_contracts/contract-class-registry.js +10 -422
  53. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
  54. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
  55. package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -482
  56. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
  57. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  58. package/dest/contract/protocol_contracts/fee-juice.js +14 -412
  59. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +3 -3
  60. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  61. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +13 -14
  62. package/dest/contract/protocol_contracts/public-checks.d.ts +3 -3
  63. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  64. package/dest/contract/protocol_contracts/public-checks.js +13 -22
  65. package/dest/contract/wait_for_proven.js +1 -1
  66. package/dest/contract/wait_opts.d.ts +16 -0
  67. package/dest/contract/wait_opts.d.ts.map +1 -0
  68. package/dest/contract/wait_opts.js +5 -0
  69. package/dest/utils/authwit.d.ts +8 -6
  70. package/dest/utils/authwit.d.ts.map +1 -1
  71. package/dest/utils/authwit.js +5 -9
  72. package/dest/utils/node.d.ts +12 -1
  73. package/dest/utils/node.d.ts.map +1 -1
  74. package/dest/utils/node.js +46 -0
  75. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  76. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  77. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  78. package/dest/wallet/account_manager.d.ts +1 -7
  79. package/dest/wallet/account_manager.d.ts.map +1 -1
  80. package/dest/wallet/account_manager.js +5 -11
  81. package/dest/wallet/capabilities.d.ts +444 -0
  82. package/dest/wallet/capabilities.d.ts.map +1 -0
  83. package/dest/wallet/capabilities.js +3 -0
  84. package/dest/wallet/deploy_account_method.d.ts +34 -6
  85. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  86. package/dest/wallet/deploy_account_method.js +7 -5
  87. package/dest/wallet/index.d.ts +2 -1
  88. package/dest/wallet/index.d.ts.map +1 -1
  89. package/dest/wallet/index.js +1 -0
  90. package/dest/wallet/wallet.d.ts +1358 -20
  91. package/dest/wallet/wallet.d.ts.map +1 -1
  92. package/dest/wallet/wallet.js +136 -5
  93. package/package.json +9 -9
  94. package/src/account/account.ts +34 -58
  95. package/src/account/account_contract.ts +6 -7
  96. package/src/account/account_with_secret_key.ts +33 -8
  97. package/src/account/index.ts +2 -1
  98. package/src/account/signerless_account.ts +13 -12
  99. package/src/api/account.ts +9 -3
  100. package/src/api/authorization.ts +1 -0
  101. package/src/api/block.ts +1 -1
  102. package/src/api/contract.ts +22 -7
  103. package/src/api/keys.ts +2 -2
  104. package/src/api/node.ts +7 -3
  105. package/src/api/tx.ts +2 -0
  106. package/src/api/wallet.ts +43 -0
  107. package/src/contract/base_contract_interaction.ts +27 -15
  108. package/src/contract/deploy_method.ts +115 -23
  109. package/src/contract/interaction_options.ts +49 -4
  110. package/src/contract/protocol_contracts/auth-registry.ts +45 -236
  111. package/src/contract/protocol_contracts/contract-class-registry.ts +3 -204
  112. package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -233
  113. package/src/contract/protocol_contracts/fee-juice.ts +4 -202
  114. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +6 -12
  115. package/src/contract/protocol_contracts/public-checks.ts +6 -14
  116. package/src/contract/wait_for_proven.ts +1 -1
  117. package/src/contract/wait_opts.ts +21 -0
  118. package/src/utils/authwit.ts +19 -7
  119. package/src/utils/node.ts +62 -0
  120. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  121. package/src/wallet/account_manager.ts +5 -13
  122. package/src/wallet/capabilities.ts +491 -0
  123. package/src/wallet/deploy_account_method.ts +37 -13
  124. package/src/wallet/index.ts +1 -0
  125. package/src/wallet/wallet.ts +149 -14
  126. package/dest/account/interface.d.ts +0 -19
  127. package/dest/account/interface.d.ts.map +0 -1
  128. package/dest/account/interface.js +0 -5
  129. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  130. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  131. package/dest/contract/deploy_sent_tx.js +0 -46
  132. package/dest/contract/sent_tx.d.ts +0 -50
  133. package/dest/contract/sent_tx.d.ts.map +0 -1
  134. package/dest/contract/sent_tx.js +0 -90
  135. package/src/account/interface.ts +0 -25
  136. package/src/contract/deploy_sent_tx.ts +0 -75
  137. package/src/contract/sent_tx.ts +0 -129
@@ -4,6 +4,78 @@ import { ContractBase } from '../contract_base.js';
4
4
  const ContractInstanceRegistryContractArtifact = {
5
5
  name: 'ContractInstanceRegistry',
6
6
  functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PUBLIC,
10
+ name: 'public_dispatch',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'selector',
17
+ type: {
18
+ kind: 'field'
19
+ },
20
+ visibility: 'private'
21
+ }
22
+ ],
23
+ returnTypes: [],
24
+ errorTypes: {
25
+ '361444214588792908': {
26
+ error_kind: 'string',
27
+ string: 'attempt to multiply with overflow'
28
+ },
29
+ '1998584279744703196': {
30
+ error_kind: 'string',
31
+ string: 'attempt to subtract with overflow'
32
+ },
33
+ '5755400808989454547': {
34
+ error_kind: 'string',
35
+ string: 'Function get_update_delay can only be called statically'
36
+ },
37
+ '6804164082532189961': {
38
+ error_kind: 'string',
39
+ string: 'New update delay is too low'
40
+ },
41
+ '12511970388699677811': {
42
+ error_kind: 'fmtstring',
43
+ length: 27,
44
+ item_types: [
45
+ {
46
+ kind: 'field'
47
+ }
48
+ ]
49
+ },
50
+ '12579274401768182412': {
51
+ error_kind: 'string',
52
+ string: 'New contract class is not registered'
53
+ },
54
+ '13455385521185560676': {
55
+ error_kind: 'string',
56
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
57
+ },
58
+ '14990209321349310352': {
59
+ error_kind: 'string',
60
+ string: 'attempt to add with overflow'
61
+ },
62
+ '15353471697975175405': {
63
+ error_kind: 'string',
64
+ string: 'msg.sender is not deployed'
65
+ },
66
+ '15764276373176857197': {
67
+ error_kind: 'string',
68
+ string: 'Stack too deep'
69
+ },
70
+ '16431471497789672479': {
71
+ error_kind: 'string',
72
+ string: 'Index out of bounds'
73
+ }
74
+ }
75
+ },
76
+ bytecode: Buffer.from([]),
77
+ debugSymbols: ''
78
+ },
7
79
  {
8
80
  ...{
9
81
  functionType: FunctionType.PRIVATE,
@@ -210,11 +282,6 @@ const ContractInstanceRegistryContractArtifact = {
210
282
  error_kind: 'string',
211
283
  string: 'Point not on curve'
212
284
  },
213
- '2754040237334517471': {
214
- error_kind: 'fmtstring',
215
- length: 92,
216
- item_types: []
217
- },
218
285
  '4135474769840782447': {
219
286
  error_kind: 'string',
220
287
  string: 'Point at infinity should have canonical representation (0 0)'
@@ -235,483 +302,6 @@ const ContractInstanceRegistryContractArtifact = {
235
302
  },
236
303
  bytecode: Buffer.from([]),
237
304
  debugSymbols: ''
238
- },
239
- {
240
- ...{
241
- functionType: FunctionType.UTILITY,
242
- name: 'process_message',
243
- isOnlySelf: false,
244
- isStatic: false,
245
- isInitializer: false,
246
- parameters: [
247
- {
248
- name: 'message_ciphertext',
249
- type: {
250
- kind: 'struct',
251
- fields: [
252
- {
253
- name: 'storage',
254
- type: {
255
- kind: 'array',
256
- length: 17,
257
- type: {
258
- kind: 'field'
259
- }
260
- }
261
- },
262
- {
263
- name: 'len',
264
- type: {
265
- kind: 'integer',
266
- sign: 'unsigned',
267
- width: 32
268
- }
269
- }
270
- ],
271
- path: 'std::collections::bounded_vec::BoundedVec'
272
- },
273
- visibility: 'private'
274
- },
275
- {
276
- name: 'message_context',
277
- type: {
278
- kind: 'struct',
279
- fields: [
280
- {
281
- name: 'tx_hash',
282
- type: {
283
- kind: 'field'
284
- }
285
- },
286
- {
287
- name: 'unique_note_hashes_in_tx',
288
- type: {
289
- kind: 'struct',
290
- fields: [
291
- {
292
- name: 'storage',
293
- type: {
294
- kind: 'array',
295
- length: 64,
296
- type: {
297
- kind: 'field'
298
- }
299
- }
300
- },
301
- {
302
- name: 'len',
303
- type: {
304
- kind: 'integer',
305
- sign: 'unsigned',
306
- width: 32
307
- }
308
- }
309
- ],
310
- path: 'std::collections::bounded_vec::BoundedVec'
311
- }
312
- },
313
- {
314
- name: 'first_nullifier_in_tx',
315
- type: {
316
- kind: 'field'
317
- }
318
- },
319
- {
320
- name: 'recipient',
321
- type: {
322
- kind: 'struct',
323
- fields: [
324
- {
325
- name: 'inner',
326
- type: {
327
- kind: 'field'
328
- }
329
- }
330
- ],
331
- path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
332
- }
333
- }
334
- ],
335
- path: 'aztec::messages::processing::message_context::MessageContext'
336
- },
337
- visibility: 'private'
338
- }
339
- ],
340
- returnTypes: [],
341
- errorTypes: {
342
- '361444214588792908': {
343
- error_kind: 'string',
344
- string: 'attempt to multiply with overflow'
345
- },
346
- '992401946138144806': {
347
- error_kind: 'string',
348
- string: 'Attempted to read past end of BoundedVec'
349
- },
350
- '1998584279744703196': {
351
- error_kind: 'string',
352
- string: 'attempt to subtract with overflow'
353
- },
354
- '2967937905572420042': {
355
- error_kind: 'fmtstring',
356
- length: 61,
357
- item_types: [
358
- {
359
- kind: 'field'
360
- },
361
- {
362
- kind: 'field'
363
- }
364
- ]
365
- },
366
- '3330370348214585450': {
367
- error_kind: 'fmtstring',
368
- length: 48,
369
- item_types: [
370
- {
371
- kind: 'field'
372
- },
373
- {
374
- kind: 'field'
375
- }
376
- ]
377
- },
378
- '3670003311596808700': {
379
- error_kind: 'fmtstring',
380
- length: 77,
381
- item_types: [
382
- {
383
- kind: 'integer',
384
- sign: 'unsigned',
385
- width: 32
386
- }
387
- ]
388
- },
389
- '4261968856572588300': {
390
- error_kind: 'string',
391
- string: 'Value does not fit in field'
392
- },
393
- '4440399188109668273': {
394
- error_kind: 'string',
395
- string: 'Input length must be a multiple of 32'
396
- },
397
- '9791669845391776238': {
398
- error_kind: 'string',
399
- string: '0 has a square root; you cannot claim it is not square'
400
- },
401
- '9885968605480832328': {
402
- error_kind: 'string',
403
- string: 'Attempted to read past the length of a CapsuleArray'
404
- },
405
- '10135509984888824963': {
406
- error_kind: 'fmtstring',
407
- length: 58,
408
- item_types: [
409
- {
410
- kind: 'field'
411
- }
412
- ]
413
- },
414
- '10791800398362570014': {
415
- error_kind: 'string',
416
- string: 'extend_from_bounded_vec out of bounds'
417
- },
418
- '11021520179822076911': {
419
- error_kind: 'string',
420
- string: 'Attempted to delete past the length of a CapsuleArray'
421
- },
422
- '11692359521570349358': {
423
- error_kind: 'fmtstring',
424
- length: 40,
425
- item_types: []
426
- },
427
- '12327971061804302172': {
428
- error_kind: 'fmtstring',
429
- length: 98,
430
- item_types: []
431
- },
432
- '12469291177396340830': {
433
- error_kind: 'string',
434
- string: 'call to assert_max_bit_size'
435
- },
436
- '12913276134398371456': {
437
- error_kind: 'string',
438
- string: 'push out of bounds'
439
- },
440
- '13557316507370296400': {
441
- error_kind: 'fmtstring',
442
- length: 130,
443
- item_types: [
444
- {
445
- kind: 'integer',
446
- sign: 'unsigned',
447
- width: 32
448
- }
449
- ]
450
- },
451
- '14938672389828944159': {
452
- error_kind: 'fmtstring',
453
- length: 146,
454
- item_types: [
455
- {
456
- kind: 'integer',
457
- sign: 'unsigned',
458
- width: 32
459
- }
460
- ]
461
- },
462
- '14990209321349310352': {
463
- error_kind: 'string',
464
- string: 'attempt to add with overflow'
465
- },
466
- '15764276373176857197': {
467
- error_kind: 'string',
468
- string: 'Stack too deep'
469
- },
470
- '16431471497789672479': {
471
- error_kind: 'string',
472
- string: 'Index out of bounds'
473
- },
474
- '17531474008201752295': {
475
- error_kind: 'fmtstring',
476
- length: 133,
477
- item_types: [
478
- {
479
- kind: 'integer',
480
- sign: 'unsigned',
481
- width: 32
482
- }
483
- ]
484
- }
485
- }
486
- },
487
- bytecode: Buffer.from([]),
488
- debugSymbols: ''
489
- },
490
- {
491
- ...{
492
- functionType: FunctionType.PUBLIC,
493
- name: 'public_dispatch',
494
- isOnlySelf: false,
495
- isStatic: false,
496
- isInitializer: false,
497
- parameters: [
498
- {
499
- name: 'selector',
500
- type: {
501
- kind: 'field'
502
- },
503
- visibility: 'private'
504
- }
505
- ],
506
- returnTypes: [],
507
- errorTypes: {
508
- '1998584279744703196': {
509
- error_kind: 'string',
510
- string: 'attempt to subtract with overflow'
511
- },
512
- '5755400808989454547': {
513
- error_kind: 'string',
514
- string: 'Function get_update_delay can only be called statically'
515
- },
516
- '6804164082532189961': {
517
- error_kind: 'string',
518
- string: 'New update delay is too low'
519
- },
520
- '12511970388699677811': {
521
- error_kind: 'fmtstring',
522
- length: 27,
523
- item_types: [
524
- {
525
- kind: 'field'
526
- }
527
- ]
528
- },
529
- '12579274401768182412': {
530
- error_kind: 'string',
531
- string: 'New contract class is not registered'
532
- },
533
- '13455385521185560676': {
534
- error_kind: 'string',
535
- string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
536
- },
537
- '14990209321349310352': {
538
- error_kind: 'string',
539
- string: 'attempt to add with overflow'
540
- },
541
- '15353471697975175405': {
542
- error_kind: 'string',
543
- string: 'msg.sender is not deployed'
544
- },
545
- '15764276373176857197': {
546
- error_kind: 'string',
547
- string: 'Stack too deep'
548
- },
549
- '16431471497789672479': {
550
- error_kind: 'string',
551
- string: 'Index out of bounds'
552
- }
553
- }
554
- },
555
- bytecode: Buffer.from([]),
556
- debugSymbols: ''
557
- },
558
- {
559
- ...{
560
- functionType: FunctionType.UTILITY,
561
- name: 'sync_private_state',
562
- isOnlySelf: false,
563
- isStatic: false,
564
- isInitializer: false,
565
- parameters: [],
566
- returnTypes: [],
567
- errorTypes: {
568
- '361444214588792908': {
569
- error_kind: 'string',
570
- string: 'attempt to multiply with overflow'
571
- },
572
- '992401946138144806': {
573
- error_kind: 'string',
574
- string: 'Attempted to read past end of BoundedVec'
575
- },
576
- '1998584279744703196': {
577
- error_kind: 'string',
578
- string: 'attempt to subtract with overflow'
579
- },
580
- '2967937905572420042': {
581
- error_kind: 'fmtstring',
582
- length: 61,
583
- item_types: [
584
- {
585
- kind: 'field'
586
- },
587
- {
588
- kind: 'field'
589
- }
590
- ]
591
- },
592
- '3330370348214585450': {
593
- error_kind: 'fmtstring',
594
- length: 48,
595
- item_types: [
596
- {
597
- kind: 'field'
598
- },
599
- {
600
- kind: 'field'
601
- }
602
- ]
603
- },
604
- '3670003311596808700': {
605
- error_kind: 'fmtstring',
606
- length: 77,
607
- item_types: [
608
- {
609
- kind: 'integer',
610
- sign: 'unsigned',
611
- width: 32
612
- }
613
- ]
614
- },
615
- '4261968856572588300': {
616
- error_kind: 'string',
617
- string: 'Value does not fit in field'
618
- },
619
- '4440399188109668273': {
620
- error_kind: 'string',
621
- string: 'Input length must be a multiple of 32'
622
- },
623
- '9791669845391776238': {
624
- error_kind: 'string',
625
- string: '0 has a square root; you cannot claim it is not square'
626
- },
627
- '9885968605480832328': {
628
- error_kind: 'string',
629
- string: 'Attempted to read past the length of a CapsuleArray'
630
- },
631
- '10135509984888824963': {
632
- error_kind: 'fmtstring',
633
- length: 58,
634
- item_types: [
635
- {
636
- kind: 'field'
637
- }
638
- ]
639
- },
640
- '10791800398362570014': {
641
- error_kind: 'string',
642
- string: 'extend_from_bounded_vec out of bounds'
643
- },
644
- '11021520179822076911': {
645
- error_kind: 'string',
646
- string: 'Attempted to delete past the length of a CapsuleArray'
647
- },
648
- '11692359521570349358': {
649
- error_kind: 'fmtstring',
650
- length: 40,
651
- item_types: []
652
- },
653
- '12327971061804302172': {
654
- error_kind: 'fmtstring',
655
- length: 98,
656
- item_types: []
657
- },
658
- '12469291177396340830': {
659
- error_kind: 'string',
660
- string: 'call to assert_max_bit_size'
661
- },
662
- '12913276134398371456': {
663
- error_kind: 'string',
664
- string: 'push out of bounds'
665
- },
666
- '13557316507370296400': {
667
- error_kind: 'fmtstring',
668
- length: 130,
669
- item_types: [
670
- {
671
- kind: 'integer',
672
- sign: 'unsigned',
673
- width: 32
674
- }
675
- ]
676
- },
677
- '14938672389828944159': {
678
- error_kind: 'fmtstring',
679
- length: 146,
680
- item_types: [
681
- {
682
- kind: 'integer',
683
- sign: 'unsigned',
684
- width: 32
685
- }
686
- ]
687
- },
688
- '14990209321349310352': {
689
- error_kind: 'string',
690
- string: 'attempt to add with overflow'
691
- },
692
- '15764276373176857197': {
693
- error_kind: 'string',
694
- string: 'Stack too deep'
695
- },
696
- '16431471497789672479': {
697
- error_kind: 'string',
698
- string: 'Index out of bounds'
699
- },
700
- '17531474008201752295': {
701
- error_kind: 'fmtstring',
702
- length: 133,
703
- item_types: [
704
- {
705
- kind: 'integer',
706
- sign: 'unsigned',
707
- width: 32
708
- }
709
- ]
710
- }
711
- }
712
- },
713
- bytecode: Buffer.from([]),
714
- debugSymbols: ''
715
305
  }
716
306
  ],
717
307
  nonDispatchPublicFunctions: [
@@ -763,6 +353,10 @@ const ContractInstanceRegistryContractArtifact = {
763
353
  ],
764
354
  returnTypes: [],
765
355
  errorTypes: {
356
+ '361444214588792908': {
357
+ error_kind: 'string',
358
+ string: 'attempt to multiply with overflow'
359
+ },
766
360
  '1998584279744703196': {
767
361
  error_kind: 'string',
768
362
  string: 'attempt to subtract with overflow'
@@ -819,6 +413,10 @@ const ContractInstanceRegistryContractArtifact = {
819
413
  ],
820
414
  returnTypes: [],
821
415
  errorTypes: {
416
+ '361444214588792908': {
417
+ error_kind: 'string',
418
+ string: 'attempt to multiply with overflow'
419
+ },
822
420
  '1998584279744703196': {
823
421
  error_kind: 'string',
824
422
  string: 'attempt to subtract with overflow'
@@ -14,17 +14,8 @@ export declare class FeeJuiceContract extends ContractBase {
14
14
  claim: ((to: AztecAddressLike, amount: bigint | number, secret: FieldLike, message_leaf_index: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
15
15
  /** claim_and_end_setup(to: struct, amount: integer, secret: field, message_leaf_index: field) */
16
16
  claim_and_end_setup: ((to: AztecAddressLike, amount: bigint | number, secret: FieldLike, message_leaf_index: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
17
- /** process_message(message_ciphertext: struct, message_context: struct) */
18
- process_message: ((message_ciphertext: FieldLike[], message_context: {
19
- tx_hash: FieldLike;
20
- unique_note_hashes_in_tx: FieldLike[];
21
- first_nullifier_in_tx: FieldLike;
22
- recipient: AztecAddressLike;
23
- }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
24
17
  /** public_dispatch(selector: field) */
25
18
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
26
- /** sync_private_state() */
27
- sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
28
19
  };
29
20
  }
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVlLWp1aWNlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3QvcHJvdG9jb2xfY29udHJhY3RzL2ZlZS1qdWljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQ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