@aztec/aztec.js 0.0.1-commit.9b94fc1 → 0.0.1-commit.a072138

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 +9 -10
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +21 -9
  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 +4 -3
  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 +6 -7
  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 +16 -10
  22. package/dest/api/contract.d.ts.map +1 -1
  23. package/dest/api/contract.js +14 -8
  24. package/dest/api/fields.d.ts +3 -2
  25. package/dest/api/fields.d.ts.map +1 -1
  26. package/dest/api/fields.js +2 -1
  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/protocol.d.ts +7 -1
  33. package/dest/api/protocol.d.ts.map +1 -1
  34. package/dest/api/protocol.js +6 -0
  35. package/dest/api/tx.d.ts +2 -2
  36. package/dest/api/tx.d.ts.map +1 -1
  37. package/dest/api/tx.js +1 -1
  38. package/dest/api/wallet.d.ts +3 -2
  39. package/dest/api/wallet.d.ts.map +1 -1
  40. package/dest/api/wallet.js +2 -1
  41. package/dest/authorization/call_authorization_request.d.ts +23 -2
  42. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  43. package/dest/contract/base_contract_interaction.d.ts +8 -10
  44. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  45. package/dest/contract/base_contract_interaction.js +5 -17
  46. package/dest/contract/batch_call.d.ts +1 -1
  47. package/dest/contract/batch_call.d.ts.map +1 -1
  48. package/dest/contract/batch_call.js +3 -1
  49. package/dest/contract/contract_base.d.ts +4 -1
  50. package/dest/contract/contract_base.d.ts.map +1 -1
  51. package/dest/contract/contract_function_interaction.d.ts +1 -1
  52. package/dest/contract/deploy_method.d.ts +64 -17
  53. package/dest/contract/deploy_method.d.ts.map +1 -1
  54. package/dest/contract/deploy_method.js +42 -24
  55. package/dest/contract/interaction_options.d.ts +42 -5
  56. package/dest/contract/interaction_options.d.ts.map +1 -1
  57. package/dest/contract/interaction_options.js +8 -1
  58. package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
  59. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  60. package/dest/contract/protocol_contracts/auth-registry.js +558 -0
  61. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +26 -0
  62. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  63. package/dest/contract/protocol_contracts/contract-class-registry.js +385 -0
  64. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  65. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  66. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  67. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  68. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  69. package/dest/contract/protocol_contracts/fee-juice.js +426 -0
  70. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  71. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  72. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +575 -0
  73. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  74. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  75. package/dest/contract/protocol_contracts/public-checks.js +583 -0
  76. package/dest/contract/wait_for_proven.d.ts +2 -2
  77. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  78. package/dest/contract/wait_for_proven.js +1 -1
  79. package/dest/contract/wait_opts.d.ts +16 -0
  80. package/dest/contract/wait_opts.d.ts.map +1 -0
  81. package/dest/contract/wait_opts.js +5 -0
  82. package/dest/deployment/broadcast_function.js +4 -4
  83. package/dest/deployment/publish_class.js +3 -3
  84. package/dest/deployment/publish_instance.d.ts +2 -2
  85. package/dest/deployment/publish_instance.d.ts.map +1 -1
  86. package/dest/deployment/publish_instance.js +3 -3
  87. package/dest/ethereum/portal_manager.d.ts +9 -6
  88. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  89. package/dest/ethereum/portal_manager.js +17 -18
  90. package/dest/fee/fee_juice_payment_method_with_claim.js +1 -1
  91. package/dest/fee/private_fee_payment_method.js +1 -1
  92. package/dest/fee/public_fee_payment_method.js +1 -1
  93. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  94. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  95. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  96. package/dest/utils/abi_types.d.ts +2 -2
  97. package/dest/utils/abi_types.d.ts.map +1 -1
  98. package/dest/utils/authwit.d.ts +9 -7
  99. package/dest/utils/authwit.d.ts.map +1 -1
  100. package/dest/utils/authwit.js +6 -10
  101. package/dest/utils/cross_chain.d.ts +2 -2
  102. package/dest/utils/cross_chain.d.ts.map +1 -1
  103. package/dest/utils/fee_juice.js +1 -1
  104. package/dest/utils/field_compressed_string.js +1 -1
  105. package/dest/utils/node.d.ts +12 -1
  106. package/dest/utils/node.d.ts.map +1 -1
  107. package/dest/utils/node.js +46 -0
  108. package/dest/utils/pub_key.d.ts +2 -2
  109. package/dest/utils/pub_key.d.ts.map +1 -1
  110. package/dest/utils/pub_key.js +1 -1
  111. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  112. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  113. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  114. package/dest/wallet/account_manager.d.ts +6 -9
  115. package/dest/wallet/account_manager.d.ts.map +1 -1
  116. package/dest/wallet/account_manager.js +6 -12
  117. package/dest/wallet/capabilities.d.ts +444 -0
  118. package/dest/wallet/capabilities.d.ts.map +1 -0
  119. package/dest/wallet/capabilities.js +3 -0
  120. package/dest/wallet/deploy_account_method.d.ts +35 -7
  121. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  122. package/dest/wallet/deploy_account_method.js +8 -6
  123. package/dest/wallet/index.d.ts +2 -1
  124. package/dest/wallet/index.d.ts.map +1 -1
  125. package/dest/wallet/index.js +1 -0
  126. package/dest/wallet/wallet.d.ts +1542 -917
  127. package/dest/wallet/wallet.d.ts.map +1 -1
  128. package/dest/wallet/wallet.js +191 -86
  129. package/package.json +15 -13
  130. package/src/account/account.ts +34 -58
  131. package/src/account/account_contract.ts +7 -8
  132. package/src/account/account_with_secret_key.ts +34 -9
  133. package/src/account/index.ts +3 -2
  134. package/src/account/signerless_account.ts +14 -13
  135. package/src/api/account.ts +9 -3
  136. package/src/api/authorization.ts +1 -0
  137. package/src/api/contract.ts +22 -7
  138. package/src/api/fields.ts +2 -1
  139. package/src/api/keys.ts +2 -2
  140. package/src/api/node.ts +7 -3
  141. package/src/api/protocol.ts +7 -0
  142. package/src/api/tx.ts +2 -0
  143. package/src/api/wallet.ts +47 -2
  144. package/src/authorization/call_authorization_request.ts +1 -1
  145. package/src/contract/base_contract_interaction.ts +27 -15
  146. package/src/contract/batch_call.ts +4 -2
  147. package/src/contract/deploy_method.ts +123 -30
  148. package/src/contract/interaction_options.ts +49 -4
  149. package/src/contract/protocol_contracts/auth-registry.ts +351 -0
  150. package/src/contract/protocol_contracts/contract-class-registry.ts +241 -0
  151. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  152. package/src/contract/protocol_contracts/fee-juice.ts +264 -0
  153. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
  154. package/src/contract/protocol_contracts/public-checks.ts +316 -0
  155. package/src/contract/wait_for_proven.ts +1 -1
  156. package/src/contract/wait_opts.ts +21 -0
  157. package/src/deployment/broadcast_function.ts +4 -4
  158. package/src/deployment/publish_class.ts +3 -3
  159. package/src/deployment/publish_instance.ts +3 -6
  160. package/src/ethereum/portal_manager.ts +20 -24
  161. package/src/fee/fee_juice_payment_method_with_claim.ts +1 -1
  162. package/src/fee/private_fee_payment_method.ts +1 -1
  163. package/src/fee/public_fee_payment_method.ts +1 -1
  164. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  165. package/src/utils/abi_types.ts +1 -1
  166. package/src/utils/authwit.ts +20 -8
  167. package/src/utils/cross_chain.ts +1 -1
  168. package/src/utils/fee_juice.ts +1 -1
  169. package/src/utils/field_compressed_string.ts +1 -1
  170. package/src/utils/node.ts +62 -0
  171. package/src/utils/pub_key.ts +2 -2
  172. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  173. package/src/wallet/account_manager.ts +6 -14
  174. package/src/wallet/capabilities.ts +491 -0
  175. package/src/wallet/deploy_account_method.ts +38 -14
  176. package/src/wallet/index.ts +1 -0
  177. package/src/wallet/wallet.ts +307 -92
  178. package/dest/account/interface.d.ts +0 -19
  179. package/dest/account/interface.d.ts.map +0 -1
  180. package/dest/account/interface.js +0 -5
  181. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  182. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  183. package/dest/contract/deploy_sent_tx.js +0 -46
  184. package/dest/contract/protocol_contracts.d.ts +0 -9
  185. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  186. package/dest/contract/protocol_contracts.js +0 -26
  187. package/dest/contract/sent_tx.d.ts +0 -51
  188. package/dest/contract/sent_tx.d.ts.map +0 -1
  189. package/dest/contract/sent_tx.js +0 -90
  190. package/dest/contract/unsafe_contract.d.ts +0 -15
  191. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  192. package/dest/contract/unsafe_contract.js +0 -6
  193. package/src/account/interface.ts +0 -25
  194. package/src/contract/deploy_sent_tx.ts +0 -75
  195. package/src/contract/protocol_contracts.ts +0 -35
  196. package/src/contract/sent_tx.ts +0 -130
  197. package/src/contract/unsafe_contract.ts +0 -19
@@ -0,0 +1,575 @@
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
+ '9530675838293881722': {
283
+ error_kind: 'string',
284
+ string: 'Writer did not write all data'
285
+ },
286
+ '9791669845391776238': {
287
+ error_kind: 'string',
288
+ string: '0 has a square root; you cannot claim it is not square'
289
+ },
290
+ '10135509984888824963': {
291
+ error_kind: 'fmtstring',
292
+ length: 58,
293
+ item_types: [
294
+ {
295
+ kind: 'field'
296
+ }
297
+ ]
298
+ },
299
+ '10791800398362570014': {
300
+ error_kind: 'string',
301
+ string: 'extend_from_bounded_vec out of bounds'
302
+ },
303
+ '11692359521570349358': {
304
+ error_kind: 'fmtstring',
305
+ length: 40,
306
+ item_types: []
307
+ },
308
+ '12469291177396340830': {
309
+ error_kind: 'string',
310
+ string: 'call to assert_max_bit_size'
311
+ },
312
+ '12913276134398371456': {
313
+ error_kind: 'string',
314
+ string: 'push out of bounds'
315
+ },
316
+ '13557316507370296400': {
317
+ error_kind: 'fmtstring',
318
+ length: 130,
319
+ item_types: [
320
+ {
321
+ kind: 'integer',
322
+ sign: 'unsigned',
323
+ width: 32
324
+ }
325
+ ]
326
+ },
327
+ '14938672389828944159': {
328
+ error_kind: 'fmtstring',
329
+ length: 146,
330
+ item_types: [
331
+ {
332
+ kind: 'integer',
333
+ sign: 'unsigned',
334
+ width: 32
335
+ }
336
+ ]
337
+ },
338
+ '14990209321349310352': {
339
+ error_kind: 'string',
340
+ string: 'attempt to add with overflow'
341
+ },
342
+ '15764276373176857197': {
343
+ error_kind: 'string',
344
+ string: 'Stack too deep'
345
+ },
346
+ '16431471497789672479': {
347
+ error_kind: 'string',
348
+ string: 'Index out of bounds'
349
+ },
350
+ '17531474008201752295': {
351
+ error_kind: 'fmtstring',
352
+ length: 133,
353
+ item_types: [
354
+ {
355
+ kind: 'integer',
356
+ sign: 'unsigned',
357
+ width: 32
358
+ }
359
+ ]
360
+ }
361
+ }
362
+ },
363
+ bytecode: Buffer.from([]),
364
+ debugSymbols: ''
365
+ },
366
+ {
367
+ ...{
368
+ functionType: FunctionType.UTILITY,
369
+ name: 'sync_state',
370
+ isOnlySelf: false,
371
+ isStatic: false,
372
+ isInitializer: false,
373
+ parameters: [],
374
+ returnTypes: [],
375
+ errorTypes: {
376
+ '361444214588792908': {
377
+ error_kind: 'string',
378
+ string: 'attempt to multiply with overflow'
379
+ },
380
+ '992401946138144806': {
381
+ error_kind: 'string',
382
+ string: 'Attempted to read past end of BoundedVec'
383
+ },
384
+ '1998584279744703196': {
385
+ error_kind: 'string',
386
+ string: 'attempt to subtract with overflow'
387
+ },
388
+ '2967937905572420042': {
389
+ error_kind: 'fmtstring',
390
+ length: 61,
391
+ item_types: [
392
+ {
393
+ kind: 'field'
394
+ },
395
+ {
396
+ kind: 'field'
397
+ }
398
+ ]
399
+ },
400
+ '3330370348214585450': {
401
+ error_kind: 'fmtstring',
402
+ length: 48,
403
+ item_types: [
404
+ {
405
+ kind: 'field'
406
+ },
407
+ {
408
+ kind: 'field'
409
+ }
410
+ ]
411
+ },
412
+ '3670003311596808700': {
413
+ error_kind: 'fmtstring',
414
+ length: 77,
415
+ item_types: [
416
+ {
417
+ kind: 'integer',
418
+ sign: 'unsigned',
419
+ width: 32
420
+ }
421
+ ]
422
+ },
423
+ '4261968856572588300': {
424
+ error_kind: 'string',
425
+ string: 'Value does not fit in field'
426
+ },
427
+ '4440399188109668273': {
428
+ error_kind: 'string',
429
+ string: 'Input length must be a multiple of 32'
430
+ },
431
+ '9530675838293881722': {
432
+ error_kind: 'string',
433
+ string: 'Writer did not write all data'
434
+ },
435
+ '9791669845391776238': {
436
+ error_kind: 'string',
437
+ string: '0 has a square root; you cannot claim it is not square'
438
+ },
439
+ '9885968605480832328': {
440
+ error_kind: 'string',
441
+ string: 'Attempted to read past the length of a CapsuleArray'
442
+ },
443
+ '10135509984888824963': {
444
+ error_kind: 'fmtstring',
445
+ length: 58,
446
+ item_types: [
447
+ {
448
+ kind: 'field'
449
+ }
450
+ ]
451
+ },
452
+ '10791800398362570014': {
453
+ error_kind: 'string',
454
+ string: 'extend_from_bounded_vec out of bounds'
455
+ },
456
+ '11021520179822076911': {
457
+ error_kind: 'string',
458
+ string: 'Attempted to delete past the length of a CapsuleArray'
459
+ },
460
+ '11692359521570349358': {
461
+ error_kind: 'fmtstring',
462
+ length: 40,
463
+ item_types: []
464
+ },
465
+ '12327971061804302172': {
466
+ error_kind: 'fmtstring',
467
+ length: 98,
468
+ item_types: []
469
+ },
470
+ '12469291177396340830': {
471
+ error_kind: 'string',
472
+ string: 'call to assert_max_bit_size'
473
+ },
474
+ '12913276134398371456': {
475
+ error_kind: 'string',
476
+ string: 'push out of bounds'
477
+ },
478
+ '13557316507370296400': {
479
+ error_kind: 'fmtstring',
480
+ length: 130,
481
+ item_types: [
482
+ {
483
+ kind: 'integer',
484
+ sign: 'unsigned',
485
+ width: 32
486
+ }
487
+ ]
488
+ },
489
+ '14938672389828944159': {
490
+ error_kind: 'fmtstring',
491
+ length: 146,
492
+ item_types: [
493
+ {
494
+ kind: 'integer',
495
+ sign: 'unsigned',
496
+ width: 32
497
+ }
498
+ ]
499
+ },
500
+ '14990209321349310352': {
501
+ error_kind: 'string',
502
+ string: 'attempt to add with overflow'
503
+ },
504
+ '15764276373176857197': {
505
+ error_kind: 'string',
506
+ string: 'Stack too deep'
507
+ },
508
+ '16431471497789672479': {
509
+ error_kind: 'string',
510
+ string: 'Index out of bounds'
511
+ },
512
+ '17531474008201752295': {
513
+ error_kind: 'fmtstring',
514
+ length: 133,
515
+ item_types: [
516
+ {
517
+ kind: 'integer',
518
+ sign: 'unsigned',
519
+ width: 32
520
+ }
521
+ ]
522
+ },
523
+ '17655676068928457687': {
524
+ error_kind: 'string',
525
+ string: 'Reader did not read all data'
526
+ }
527
+ }
528
+ },
529
+ bytecode: Buffer.from([]),
530
+ debugSymbols: ''
531
+ },
532
+ {
533
+ ...{
534
+ functionType: FunctionType.PUBLIC,
535
+ name: 'public_dispatch',
536
+ isOnlySelf: false,
537
+ isStatic: false,
538
+ isInitializer: false,
539
+ parameters: [
540
+ {
541
+ name: 'selector',
542
+ type: {
543
+ kind: 'field'
544
+ },
545
+ visibility: 'private'
546
+ }
547
+ ],
548
+ returnTypes: [],
549
+ errorTypes: {
550
+ '1335198680857977525': {
551
+ error_kind: 'string',
552
+ string: 'No public functions'
553
+ }
554
+ }
555
+ },
556
+ bytecode: Buffer.from([]),
557
+ debugSymbols: ''
558
+ }
559
+ ],
560
+ nonDispatchPublicFunctions: [],
561
+ outputs: {
562
+ structs: {},
563
+ globals: {}
564
+ },
565
+ storageLayout: {},
566
+ fileMap: {}
567
+ };
568
+ export class MultiCallEntrypointContract extends ContractBase {
569
+ constructor(wallet){
570
+ super(ProtocolContractAddress.MultiCallEntrypoint, MultiCallEntrypointContractArtifact, wallet);
571
+ }
572
+ static at(wallet) {
573
+ return new MultiCallEntrypointContract(wallet);
574
+ }
575
+ }
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWNoZWNrcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbnRyYWN0L3Byb3RvY29sX2NvbnRyYWN0cy9wdWJsaWMtY2hlY2tzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLE9BQU8sS0FBSyxFQUNWLGdCQUFnQixFQUVoQixTQUFTLEVBR1YsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLEtBQUssY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUF1UWxGLHFCQUFhLG9CQUFxQixTQUFRLFlBQVk7SUFDcEQsT0FBTyxlQUVOO0lBRUQsT0FBYyxFQUFFLENBQUMsTUFBTSxFQUF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