@aztec/aztec.js 0.0.1-commit.fce3e4f → 0.0.1-commit.ff7989d6c

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