@aztec/aztec.js 3.0.3 → 4.0.0-devnet.1-patch.0

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 (197) 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 +8 -9
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +19 -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/contract.d.ts +18 -12
  22. package/dest/api/contract.d.ts.map +1 -1
  23. package/dest/api/contract.js +16 -10
  24. package/dest/api/deployment.d.ts +1 -2
  25. package/dest/api/deployment.d.ts.map +1 -1
  26. package/dest/api/deployment.js +0 -1
  27. package/dest/api/events.d.ts +10 -6
  28. package/dest/api/events.d.ts.map +1 -1
  29. package/dest/api/events.js +30 -20
  30. package/dest/api/fields.d.ts +2 -1
  31. package/dest/api/fields.d.ts.map +1 -1
  32. package/dest/api/fields.js +1 -0
  33. package/dest/api/keys.d.ts +1 -1
  34. package/dest/api/keys.js +1 -1
  35. package/dest/api/node.d.ts +8 -4
  36. package/dest/api/node.d.ts.map +1 -1
  37. package/dest/api/node.js +7 -3
  38. package/dest/api/protocol.d.ts +7 -1
  39. package/dest/api/protocol.d.ts.map +1 -1
  40. package/dest/api/protocol.js +6 -0
  41. package/dest/api/tx.d.ts +2 -2
  42. package/dest/api/tx.d.ts.map +1 -1
  43. package/dest/api/tx.js +1 -1
  44. package/dest/api/wallet.d.ts +3 -2
  45. package/dest/api/wallet.d.ts.map +1 -1
  46. package/dest/api/wallet.js +2 -1
  47. package/dest/authorization/call_authorization_request.d.ts +22 -1
  48. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  49. package/dest/contract/base_contract_interaction.d.ts +8 -10
  50. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  51. package/dest/contract/base_contract_interaction.js +5 -17
  52. package/dest/contract/batch_call.d.ts +1 -1
  53. package/dest/contract/batch_call.d.ts.map +1 -1
  54. package/dest/contract/batch_call.js +3 -1
  55. package/dest/contract/contract_base.d.ts +4 -1
  56. package/dest/contract/contract_base.d.ts.map +1 -1
  57. package/dest/contract/contract_function_interaction.d.ts +3 -12
  58. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  59. package/dest/contract/contract_function_interaction.js +6 -6
  60. package/dest/contract/deploy_method.d.ts +63 -16
  61. package/dest/contract/deploy_method.d.ts.map +1 -1
  62. package/dest/contract/deploy_method.js +41 -23
  63. package/dest/contract/interaction_options.d.ts +42 -5
  64. package/dest/contract/interaction_options.d.ts.map +1 -1
  65. package/dest/contract/interaction_options.js +8 -1
  66. package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
  67. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  68. package/dest/contract/protocol_contracts/auth-registry.js +558 -0
  69. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  70. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  71. package/dest/contract/protocol_contracts/contract-class-registry.js +127 -0
  72. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  73. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  74. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  75. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  76. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  77. package/dest/contract/protocol_contracts/fee-juice.js +426 -0
  78. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  79. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  80. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +585 -0
  81. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  82. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  83. package/dest/contract/protocol_contracts/public-checks.js +593 -0
  84. package/dest/contract/wait_for_proven.d.ts +2 -2
  85. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  86. package/dest/contract/wait_for_proven.js +1 -1
  87. package/dest/contract/wait_opts.d.ts +16 -0
  88. package/dest/contract/wait_opts.d.ts.map +1 -0
  89. package/dest/contract/wait_opts.js +5 -0
  90. package/dest/deployment/publish_class.js +2 -2
  91. package/dest/deployment/publish_instance.d.ts +2 -2
  92. package/dest/deployment/publish_instance.d.ts.map +1 -1
  93. package/dest/deployment/publish_instance.js +3 -3
  94. package/dest/ethereum/portal_manager.d.ts +7 -4
  95. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  96. package/dest/ethereum/portal_manager.js +15 -16
  97. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  98. package/dest/fee/private_fee_payment_method.js +10 -10
  99. package/dest/fee/public_fee_payment_method.js +10 -10
  100. package/dest/fee/sponsored_fee_payment.js +3 -3
  101. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  102. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  103. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  104. package/dest/utils/authwit.d.ts +8 -6
  105. package/dest/utils/authwit.d.ts.map +1 -1
  106. package/dest/utils/authwit.js +5 -9
  107. package/dest/utils/node.d.ts +12 -1
  108. package/dest/utils/node.d.ts.map +1 -1
  109. package/dest/utils/node.js +46 -0
  110. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  111. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  112. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  113. package/dest/wallet/account_manager.d.ts +5 -8
  114. package/dest/wallet/account_manager.d.ts.map +1 -1
  115. package/dest/wallet/account_manager.js +5 -11
  116. package/dest/wallet/capabilities.d.ts +444 -0
  117. package/dest/wallet/capabilities.d.ts.map +1 -0
  118. package/dest/wallet/capabilities.js +3 -0
  119. package/dest/wallet/deploy_account_method.d.ts +34 -6
  120. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  121. package/dest/wallet/deploy_account_method.js +7 -5
  122. package/dest/wallet/index.d.ts +2 -1
  123. package/dest/wallet/index.d.ts.map +1 -1
  124. package/dest/wallet/index.js +1 -0
  125. package/dest/wallet/wallet.d.ts +1642 -1007
  126. package/dest/wallet/wallet.d.ts.map +1 -1
  127. package/dest/wallet/wallet.js +201 -107
  128. package/package.json +24 -13
  129. package/src/account/account.ts +34 -58
  130. package/src/account/account_contract.ts +6 -7
  131. package/src/account/account_with_secret_key.ts +33 -8
  132. package/src/account/index.ts +2 -1
  133. package/src/account/signerless_account.ts +13 -12
  134. package/src/api/account.ts +9 -3
  135. package/src/api/authorization.ts +1 -0
  136. package/src/api/contract.ts +24 -9
  137. package/src/api/deployment.ts +0 -1
  138. package/src/api/events.ts +35 -27
  139. package/src/api/fields.ts +1 -0
  140. package/src/api/keys.ts +2 -2
  141. package/src/api/node.ts +7 -3
  142. package/src/api/protocol.ts +7 -0
  143. package/src/api/tx.ts +2 -0
  144. package/src/api/wallet.ts +47 -3
  145. package/src/contract/base_contract_interaction.ts +27 -15
  146. package/src/contract/batch_call.ts +4 -2
  147. package/src/contract/contract_function_interaction.ts +13 -6
  148. package/src/contract/deploy_method.ts +122 -29
  149. package/src/contract/interaction_options.ts +49 -4
  150. package/src/contract/protocol_contracts/auth-registry.ts +351 -0
  151. package/src/contract/protocol_contracts/contract-class-registry.ts +96 -0
  152. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  153. package/src/contract/protocol_contracts/fee-juice.ts +264 -0
  154. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
  155. package/src/contract/protocol_contracts/public-checks.ts +316 -0
  156. package/src/contract/wait_for_proven.ts +1 -1
  157. package/src/contract/wait_opts.ts +21 -0
  158. package/src/deployment/publish_class.ts +2 -2
  159. package/src/deployment/publish_instance.ts +3 -6
  160. package/src/ethereum/portal_manager.ts +17 -21
  161. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  162. package/src/fee/private_fee_payment_method.ts +7 -7
  163. package/src/fee/public_fee_payment_method.ts +8 -8
  164. package/src/fee/sponsored_fee_payment.ts +3 -3
  165. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  166. package/src/utils/authwit.ts +19 -7
  167. package/src/utils/node.ts +62 -0
  168. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  169. package/src/wallet/account_manager.ts +5 -13
  170. package/src/wallet/capabilities.ts +491 -0
  171. package/src/wallet/deploy_account_method.ts +37 -13
  172. package/src/wallet/index.ts +1 -0
  173. package/src/wallet/wallet.ts +319 -118
  174. package/dest/account/interface.d.ts +0 -19
  175. package/dest/account/interface.d.ts.map +0 -1
  176. package/dest/account/interface.js +0 -5
  177. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  178. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  179. package/dest/contract/deploy_sent_tx.js +0 -46
  180. package/dest/contract/protocol_contracts.d.ts +0 -9
  181. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  182. package/dest/contract/protocol_contracts.js +0 -26
  183. package/dest/contract/sent_tx.d.ts +0 -50
  184. package/dest/contract/sent_tx.d.ts.map +0 -1
  185. package/dest/contract/sent_tx.js +0 -90
  186. package/dest/contract/unsafe_contract.d.ts +0 -15
  187. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  188. package/dest/contract/unsafe_contract.js +0 -6
  189. package/dest/deployment/broadcast_function.d.ts +0 -24
  190. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  191. package/dest/deployment/broadcast_function.js +0 -74
  192. package/src/account/interface.ts +0 -25
  193. package/src/contract/deploy_sent_tx.ts +0 -75
  194. package/src/contract/protocol_contracts.ts +0 -35
  195. package/src/contract/sent_tx.ts +0 -129
  196. package/src/contract/unsafe_contract.ts +0 -19
  197. package/src/deployment/broadcast_function.ts +0 -148
@@ -0,0 +1,585 @@
1
+ /* Autogenerated file, do not edit! */ /* eslint-disable */ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ import { FunctionType } from '@aztec/stdlib/abi';
3
+ import { ContractBase } from '../contract_base.js';
4
+ const MultiCallEntrypointContractArtifact = {
5
+ name: 'MultiCallEntrypoint',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PRIVATE,
10
+ name: 'entrypoint',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'app_payload',
17
+ type: {
18
+ kind: 'struct',
19
+ fields: [
20
+ {
21
+ name: 'function_calls',
22
+ type: {
23
+ kind: 'array',
24
+ length: 5,
25
+ type: {
26
+ kind: 'struct',
27
+ fields: [
28
+ {
29
+ name: 'args_hash',
30
+ type: {
31
+ kind: 'field'
32
+ }
33
+ },
34
+ {
35
+ name: 'function_selector',
36
+ type: {
37
+ kind: 'struct',
38
+ fields: [
39
+ {
40
+ name: 'inner',
41
+ type: {
42
+ kind: 'integer',
43
+ sign: 'unsigned',
44
+ width: 32
45
+ }
46
+ }
47
+ ],
48
+ path: 'aztec::protocol_types::abis::function_selector::FunctionSelector'
49
+ }
50
+ },
51
+ {
52
+ name: 'target_address',
53
+ type: {
54
+ kind: 'struct',
55
+ fields: [
56
+ {
57
+ name: 'inner',
58
+ type: {
59
+ kind: 'field'
60
+ }
61
+ }
62
+ ],
63
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
64
+ }
65
+ },
66
+ {
67
+ name: 'is_public',
68
+ type: {
69
+ kind: 'boolean'
70
+ }
71
+ },
72
+ {
73
+ name: 'hide_msg_sender',
74
+ type: {
75
+ kind: 'boolean'
76
+ }
77
+ },
78
+ {
79
+ name: 'is_static',
80
+ type: {
81
+ kind: 'boolean'
82
+ }
83
+ }
84
+ ],
85
+ path: 'aztec::authwit::entrypoint::function_call::FunctionCall'
86
+ }
87
+ }
88
+ },
89
+ {
90
+ name: 'tx_nonce',
91
+ type: {
92
+ kind: 'field'
93
+ }
94
+ }
95
+ ],
96
+ path: 'aztec::authwit::entrypoint::app::AppPayload'
97
+ },
98
+ visibility: 'private'
99
+ }
100
+ ],
101
+ returnTypes: [],
102
+ errorTypes: {
103
+ '10365856833277169390': {
104
+ error_kind: 'string',
105
+ string: 'Incompatible flag. `hide_msg_sender = true` is only available for public calls.'
106
+ },
107
+ '12913276134398371456': {
108
+ error_kind: 'string',
109
+ string: 'push out of bounds'
110
+ },
111
+ '14990209321349310352': {
112
+ error_kind: 'string',
113
+ string: 'attempt to add with overflow'
114
+ },
115
+ '15764276373176857197': {
116
+ error_kind: 'string',
117
+ string: 'Stack too deep'
118
+ }
119
+ }
120
+ },
121
+ bytecode: Buffer.from([]),
122
+ debugSymbols: ''
123
+ },
124
+ {
125
+ ...{
126
+ functionType: FunctionType.UTILITY,
127
+ name: 'process_message',
128
+ isOnlySelf: false,
129
+ isStatic: false,
130
+ isInitializer: false,
131
+ parameters: [
132
+ {
133
+ name: 'message_ciphertext',
134
+ type: {
135
+ kind: 'struct',
136
+ fields: [
137
+ {
138
+ name: 'storage',
139
+ type: {
140
+ kind: 'array',
141
+ length: 17,
142
+ type: {
143
+ kind: 'field'
144
+ }
145
+ }
146
+ },
147
+ {
148
+ name: 'len',
149
+ type: {
150
+ kind: 'integer',
151
+ sign: 'unsigned',
152
+ width: 32
153
+ }
154
+ }
155
+ ],
156
+ path: 'std::collections::bounded_vec::BoundedVec'
157
+ },
158
+ visibility: 'private'
159
+ },
160
+ {
161
+ name: 'message_context',
162
+ type: {
163
+ kind: 'struct',
164
+ fields: [
165
+ {
166
+ name: 'tx_hash',
167
+ type: {
168
+ kind: 'field'
169
+ }
170
+ },
171
+ {
172
+ name: 'unique_note_hashes_in_tx',
173
+ type: {
174
+ kind: 'struct',
175
+ fields: [
176
+ {
177
+ name: 'storage',
178
+ type: {
179
+ kind: 'array',
180
+ length: 64,
181
+ type: {
182
+ kind: 'field'
183
+ }
184
+ }
185
+ },
186
+ {
187
+ name: 'len',
188
+ type: {
189
+ kind: 'integer',
190
+ sign: 'unsigned',
191
+ width: 32
192
+ }
193
+ }
194
+ ],
195
+ path: 'std::collections::bounded_vec::BoundedVec'
196
+ }
197
+ },
198
+ {
199
+ name: 'first_nullifier_in_tx',
200
+ type: {
201
+ kind: 'field'
202
+ }
203
+ },
204
+ {
205
+ name: 'recipient',
206
+ type: {
207
+ kind: 'struct',
208
+ fields: [
209
+ {
210
+ name: 'inner',
211
+ type: {
212
+ kind: 'field'
213
+ }
214
+ }
215
+ ],
216
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
217
+ }
218
+ }
219
+ ],
220
+ path: 'aztec::messages::processing::message_context::MessageContext'
221
+ },
222
+ visibility: 'private'
223
+ }
224
+ ],
225
+ returnTypes: [],
226
+ errorTypes: {
227
+ '361444214588792908': {
228
+ error_kind: 'string',
229
+ string: 'attempt to multiply with overflow'
230
+ },
231
+ '992401946138144806': {
232
+ error_kind: 'string',
233
+ string: 'Attempted to read past end of BoundedVec'
234
+ },
235
+ '1998584279744703196': {
236
+ error_kind: 'string',
237
+ string: 'attempt to subtract with overflow'
238
+ },
239
+ '2967937905572420042': {
240
+ error_kind: 'fmtstring',
241
+ length: 61,
242
+ item_types: [
243
+ {
244
+ kind: 'field'
245
+ },
246
+ {
247
+ kind: 'field'
248
+ }
249
+ ]
250
+ },
251
+ '3330370348214585450': {
252
+ error_kind: 'fmtstring',
253
+ length: 48,
254
+ item_types: [
255
+ {
256
+ kind: 'field'
257
+ },
258
+ {
259
+ kind: 'field'
260
+ }
261
+ ]
262
+ },
263
+ '3670003311596808700': {
264
+ error_kind: 'fmtstring',
265
+ length: 77,
266
+ item_types: [
267
+ {
268
+ kind: 'integer',
269
+ sign: 'unsigned',
270
+ width: 32
271
+ }
272
+ ]
273
+ },
274
+ '4261968856572588300': {
275
+ error_kind: 'string',
276
+ string: 'Value does not fit in field'
277
+ },
278
+ '4440399188109668273': {
279
+ error_kind: 'string',
280
+ string: 'Input length must be a multiple of 32'
281
+ },
282
+ '5417577161503694006': {
283
+ error_kind: 'fmtstring',
284
+ length: 56,
285
+ item_types: [
286
+ {
287
+ kind: 'field'
288
+ }
289
+ ]
290
+ },
291
+ '9791669845391776238': {
292
+ error_kind: 'string',
293
+ string: '0 has a square root; you cannot claim it is not square'
294
+ },
295
+ '10135509984888824963': {
296
+ error_kind: 'fmtstring',
297
+ length: 58,
298
+ item_types: [
299
+ {
300
+ kind: 'field'
301
+ }
302
+ ]
303
+ },
304
+ '10791800398362570014': {
305
+ error_kind: 'string',
306
+ string: 'extend_from_bounded_vec out of bounds'
307
+ },
308
+ '11692359521570349358': {
309
+ error_kind: 'fmtstring',
310
+ length: 40,
311
+ item_types: []
312
+ },
313
+ '12469291177396340830': {
314
+ error_kind: 'string',
315
+ string: 'call to assert_max_bit_size'
316
+ },
317
+ '12913276134398371456': {
318
+ error_kind: 'string',
319
+ string: 'push out of bounds'
320
+ },
321
+ '13557316507370296400': {
322
+ error_kind: 'fmtstring',
323
+ length: 130,
324
+ item_types: [
325
+ {
326
+ kind: 'integer',
327
+ sign: 'unsigned',
328
+ width: 32
329
+ }
330
+ ]
331
+ },
332
+ '14938672389828944159': {
333
+ error_kind: 'fmtstring',
334
+ length: 146,
335
+ item_types: [
336
+ {
337
+ kind: 'integer',
338
+ sign: 'unsigned',
339
+ width: 32
340
+ }
341
+ ]
342
+ },
343
+ '14990209321349310352': {
344
+ error_kind: 'string',
345
+ string: 'attempt to add with overflow'
346
+ },
347
+ '15764276373176857197': {
348
+ error_kind: 'string',
349
+ string: 'Stack too deep'
350
+ },
351
+ '16431471497789672479': {
352
+ error_kind: 'string',
353
+ string: 'Index out of bounds'
354
+ },
355
+ '17531474008201752295': {
356
+ error_kind: 'fmtstring',
357
+ length: 133,
358
+ item_types: [
359
+ {
360
+ kind: 'integer',
361
+ sign: 'unsigned',
362
+ width: 32
363
+ }
364
+ ]
365
+ }
366
+ }
367
+ },
368
+ bytecode: Buffer.from([]),
369
+ debugSymbols: ''
370
+ },
371
+ {
372
+ ...{
373
+ functionType: FunctionType.UTILITY,
374
+ name: 'sync_state',
375
+ isOnlySelf: false,
376
+ isStatic: false,
377
+ isInitializer: false,
378
+ parameters: [],
379
+ returnTypes: [],
380
+ errorTypes: {
381
+ '361444214588792908': {
382
+ error_kind: 'string',
383
+ string: 'attempt to multiply with overflow'
384
+ },
385
+ '992401946138144806': {
386
+ error_kind: 'string',
387
+ string: 'Attempted to read past end of BoundedVec'
388
+ },
389
+ '1998584279744703196': {
390
+ error_kind: 'string',
391
+ string: 'attempt to subtract with overflow'
392
+ },
393
+ '2967937905572420042': {
394
+ error_kind: 'fmtstring',
395
+ length: 61,
396
+ item_types: [
397
+ {
398
+ kind: 'field'
399
+ },
400
+ {
401
+ kind: 'field'
402
+ }
403
+ ]
404
+ },
405
+ '3330370348214585450': {
406
+ error_kind: 'fmtstring',
407
+ length: 48,
408
+ item_types: [
409
+ {
410
+ kind: 'field'
411
+ },
412
+ {
413
+ kind: 'field'
414
+ }
415
+ ]
416
+ },
417
+ '3670003311596808700': {
418
+ error_kind: 'fmtstring',
419
+ length: 77,
420
+ item_types: [
421
+ {
422
+ kind: 'integer',
423
+ sign: 'unsigned',
424
+ width: 32
425
+ }
426
+ ]
427
+ },
428
+ '4261968856572588300': {
429
+ error_kind: 'string',
430
+ string: 'Value does not fit in field'
431
+ },
432
+ '4440399188109668273': {
433
+ error_kind: 'string',
434
+ string: 'Input length must be a multiple of 32'
435
+ },
436
+ '5417577161503694006': {
437
+ error_kind: 'fmtstring',
438
+ length: 56,
439
+ item_types: [
440
+ {
441
+ kind: 'field'
442
+ }
443
+ ]
444
+ },
445
+ '9791669845391776238': {
446
+ error_kind: 'string',
447
+ string: '0 has a square root; you cannot claim it is not square'
448
+ },
449
+ '9885968605480832328': {
450
+ error_kind: 'string',
451
+ string: 'Attempted to read past the length of a CapsuleArray'
452
+ },
453
+ '10135509984888824963': {
454
+ error_kind: 'fmtstring',
455
+ length: 58,
456
+ item_types: [
457
+ {
458
+ kind: 'field'
459
+ }
460
+ ]
461
+ },
462
+ '10791800398362570014': {
463
+ error_kind: 'string',
464
+ string: 'extend_from_bounded_vec out of bounds'
465
+ },
466
+ '11021520179822076911': {
467
+ error_kind: 'string',
468
+ string: 'Attempted to delete past the length of a CapsuleArray'
469
+ },
470
+ '11692359521570349358': {
471
+ error_kind: 'fmtstring',
472
+ length: 40,
473
+ item_types: []
474
+ },
475
+ '12327971061804302172': {
476
+ error_kind: 'fmtstring',
477
+ length: 98,
478
+ item_types: []
479
+ },
480
+ '12469291177396340830': {
481
+ error_kind: 'string',
482
+ string: 'call to assert_max_bit_size'
483
+ },
484
+ '12913276134398371456': {
485
+ error_kind: 'string',
486
+ string: 'push out of bounds'
487
+ },
488
+ '13557316507370296400': {
489
+ error_kind: 'fmtstring',
490
+ length: 130,
491
+ item_types: [
492
+ {
493
+ kind: 'integer',
494
+ sign: 'unsigned',
495
+ width: 32
496
+ }
497
+ ]
498
+ },
499
+ '14938672389828944159': {
500
+ error_kind: 'fmtstring',
501
+ length: 146,
502
+ item_types: [
503
+ {
504
+ kind: 'integer',
505
+ sign: 'unsigned',
506
+ width: 32
507
+ }
508
+ ]
509
+ },
510
+ '14990209321349310352': {
511
+ error_kind: 'string',
512
+ string: 'attempt to add with overflow'
513
+ },
514
+ '15764276373176857197': {
515
+ error_kind: 'string',
516
+ string: 'Stack too deep'
517
+ },
518
+ '16431471497789672479': {
519
+ error_kind: 'string',
520
+ string: 'Index out of bounds'
521
+ },
522
+ '17531474008201752295': {
523
+ error_kind: 'fmtstring',
524
+ length: 133,
525
+ item_types: [
526
+ {
527
+ kind: 'integer',
528
+ sign: 'unsigned',
529
+ width: 32
530
+ }
531
+ ]
532
+ },
533
+ '17655676068928457687': {
534
+ error_kind: 'string',
535
+ string: 'Reader did not read all data'
536
+ }
537
+ }
538
+ },
539
+ bytecode: Buffer.from([]),
540
+ debugSymbols: ''
541
+ },
542
+ {
543
+ ...{
544
+ functionType: FunctionType.PUBLIC,
545
+ name: 'public_dispatch',
546
+ isOnlySelf: false,
547
+ isStatic: false,
548
+ isInitializer: false,
549
+ parameters: [
550
+ {
551
+ name: 'selector',
552
+ type: {
553
+ kind: 'field'
554
+ },
555
+ visibility: 'private'
556
+ }
557
+ ],
558
+ returnTypes: [],
559
+ errorTypes: {
560
+ '1335198680857977525': {
561
+ error_kind: 'string',
562
+ string: 'No public functions'
563
+ }
564
+ }
565
+ },
566
+ bytecode: Buffer.from([]),
567
+ debugSymbols: ''
568
+ }
569
+ ],
570
+ nonDispatchPublicFunctions: [],
571
+ outputs: {
572
+ structs: {},
573
+ globals: {}
574
+ },
575
+ storageLayout: {},
576
+ fileMap: {}
577
+ };
578
+ export class MultiCallEntrypointContract extends ContractBase {
579
+ constructor(wallet){
580
+ super(ProtocolContractAddress.MultiCallEntrypoint, MultiCallEntrypointContractArtifact, wallet);
581
+ }
582
+ static at(wallet) {
583
+ return new MultiCallEntrypointContract(wallet);
584
+ }
585
+ }
@@ -0,0 +1,26 @@
1
+ import type { AztecAddressLike, FieldLike } from '../../utils/abi_types.js';
2
+ import type { Wallet } from '../../wallet/wallet.js';
3
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
4
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
5
+ export declare class PublicChecksContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): PublicChecksContract;
8
+ methods: {
9
+ /** check_block_number(operation: integer, value: integer) */
10
+ check_block_number: ((operation: bigint | number, value: bigint | number) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
11
+ /** check_timestamp(operation: integer, value: integer) */
12
+ check_timestamp: ((operation: bigint | number, value: bigint | number) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
13
+ /** process_message(message_ciphertext: struct, message_context: struct) */
14
+ process_message: ((message_ciphertext: FieldLike[], message_context: {
15
+ tx_hash: FieldLike;
16
+ unique_note_hashes_in_tx: FieldLike[];
17
+ first_nullifier_in_tx: FieldLike;
18
+ recipient: AztecAddressLike;
19
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
20
+ /** public_dispatch(selector: field) */
21
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
22
+ /** sync_state() */
23
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
24
+ };
25
+ }
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWNoZWNrcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbnRyYWN0L3Byb3RvY29sX2NvbnRyYWN0cy9wdWJsaWMtY2hlY2tzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLE9BQU8sS0FBSyxFQUNWLGdCQUFnQixFQUVoQixTQUFTLEVBR1YsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLEtBQUssY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUF1UWxGLHFCQUFhLG9CQUFxQixTQUFRL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