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

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 (88) hide show
  1. package/dest/account/account.d.ts +3 -3
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account_contract.d.ts +2 -2
  4. package/dest/account/account_contract.d.ts.map +1 -1
  5. package/dest/account/account_with_secret_key.d.ts +2 -1
  6. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  7. package/dest/api/block.d.ts +2 -2
  8. package/dest/api/block.d.ts.map +1 -1
  9. package/dest/api/block.js +1 -1
  10. package/dest/api/protocol.d.ts +7 -1
  11. package/dest/api/protocol.d.ts.map +1 -1
  12. package/dest/api/protocol.js +6 -0
  13. package/dest/api/wallet.d.ts +2 -2
  14. package/dest/api/wallet.d.ts.map +1 -1
  15. package/dest/api/wallet.js +1 -1
  16. package/dest/authorization/call_authorization_request.d.ts +22 -1
  17. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  18. package/dest/contract/batch_call.d.ts +1 -1
  19. package/dest/contract/batch_call.d.ts.map +1 -1
  20. package/dest/contract/batch_call.js +3 -1
  21. package/dest/contract/contract_base.d.ts +4 -1
  22. package/dest/contract/contract_base.d.ts.map +1 -1
  23. package/dest/contract/contract_function_interaction.d.ts +1 -1
  24. package/dest/contract/deploy_method.d.ts +1 -1
  25. package/dest/contract/deploy_method.d.ts.map +1 -1
  26. package/dest/contract/deploy_method.js +5 -4
  27. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  28. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  29. package/dest/contract/protocol_contracts/auth-registry.js +928 -0
  30. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
  31. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  32. package/dest/contract/protocol_contracts/contract-class-registry.js +797 -0
  33. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
  34. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  35. package/dest/contract/protocol_contracts/contract-instance-registry.js +867 -0
  36. package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
  37. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  38. package/dest/contract/protocol_contracts/fee-juice.js +824 -0
  39. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  40. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  41. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +576 -0
  42. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  43. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  44. package/dest/contract/protocol_contracts/public-checks.js +592 -0
  45. package/dest/contract/wait_for_proven.d.ts +2 -2
  46. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  47. package/dest/deployment/broadcast_function.js +3 -3
  48. package/dest/deployment/publish_class.js +2 -2
  49. package/dest/deployment/publish_instance.d.ts +2 -2
  50. package/dest/deployment/publish_instance.d.ts.map +1 -1
  51. package/dest/deployment/publish_instance.js +3 -3
  52. package/dest/ethereum/portal_manager.d.ts +6 -3
  53. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  54. package/dest/ethereum/portal_manager.js +10 -10
  55. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  56. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  57. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  58. package/dest/wallet/account_manager.d.ts +5 -2
  59. package/dest/wallet/account_manager.d.ts.map +1 -1
  60. package/dest/wallet/wallet.d.ts +181 -2483
  61. package/dest/wallet/wallet.d.ts.map +1 -1
  62. package/dest/wallet/wallet.js +46 -84
  63. package/package.json +14 -12
  64. package/src/api/block.ts +1 -1
  65. package/src/api/protocol.ts +7 -0
  66. package/src/api/wallet.ts +0 -2
  67. package/src/contract/batch_call.ts +4 -2
  68. package/src/contract/deploy_method.ts +7 -6
  69. package/src/contract/protocol_contracts/auth-registry.ts +542 -0
  70. package/src/contract/protocol_contracts/contract-class-registry.ts +442 -0
  71. package/src/contract/protocol_contracts/contract-instance-registry.ts +501 -0
  72. package/src/contract/protocol_contracts/fee-juice.ts +462 -0
  73. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +338 -0
  74. package/src/contract/protocol_contracts/public-checks.ts +324 -0
  75. package/src/deployment/broadcast_function.ts +3 -3
  76. package/src/deployment/publish_class.ts +2 -2
  77. package/src/deployment/publish_instance.ts +3 -6
  78. package/src/ethereum/portal_manager.ts +9 -8
  79. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  80. package/src/wallet/wallet.ts +109 -80
  81. package/dest/contract/protocol_contracts.d.ts +0 -9
  82. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  83. package/dest/contract/protocol_contracts.js +0 -26
  84. package/dest/contract/unsafe_contract.d.ts +0 -15
  85. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  86. package/dest/contract/unsafe_contract.js +0 -6
  87. package/src/contract/protocol_contracts.ts +0 -35
  88. package/src/contract/unsafe_contract.ts +0 -19
@@ -0,0 +1,34 @@
1
+ import type { AztecAddressLike, FieldLike, FunctionSelectorLike } 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 MultiCallEntrypointContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): MultiCallEntrypointContract;
8
+ methods: {
9
+ /** entrypoint(app_payload: struct) */
10
+ entrypoint: ((app_payload: {
11
+ function_calls: {
12
+ args_hash: FieldLike;
13
+ function_selector: FunctionSelectorLike;
14
+ target_address: AztecAddressLike;
15
+ is_public: boolean;
16
+ hide_msg_sender: boolean;
17
+ is_static: boolean;
18
+ }[];
19
+ tx_nonce: FieldLike;
20
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
21
+ /** process_message(message_ciphertext: struct, message_context: struct) */
22
+ process_message: ((message_ciphertext: FieldLike[], message_context: {
23
+ tx_hash: FieldLike;
24
+ unique_note_hashes_in_tx: FieldLike[];
25
+ first_nullifier_in_tx: FieldLike;
26
+ recipient: AztecAddressLike;
27
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
28
+ /** public_dispatch(selector: field) */
29
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
30
+ /** sync_private_state() */
31
+ sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
32
+ };
33
+ }
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGktY2FsbC1lbnRyeXBvaW50LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3QvcHJvdG9jb2xfY29udHJhY3RzL211bHRpLWNhbGwtZW50cnlwb2ludC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEtBQUssRUFDVixnQkFBZ0IsRUFFaEIsU0FBUyxFQUNULG9CQUFvQixFQUVyQixNQUFNLDBCQUEwQixDQUFDO0FBQ2xDLE9BQU8sS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsS0FBSyxjQUFjLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN4RSxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQXVSbEYscUJBQWEsMkJBQTRCLFNBQVEsWUFBWTtJQUMzRCxPQUFPLGVBRU47SUFFRCxPQUFjLEVBQUUsQ0FBQyxNQUFNLEVBQUUsTUFBTSxHQUFHLDJCQUEyQixDQUU1RDtJQ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QUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0tBQzVGLENBQUM7Q0FDSCJ9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-call-entrypoint.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/multi-call-entrypoint.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAEhB,SAAS,EACT,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAuRlF,qBAAa,2BAA4B,SAAQ,YAAY;IAC3D,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,2BAA2B,CAE5D;IAEc,OAAO,EAAE;QACtB,sCAAsC;QACtC,UAAU,EAAE,CAAC,CAAC,WAAW,EAAE;YACzB,cAAc,EAAE;gBACd,SAAS,EAAE,SAAS,CAAC;gBACrB,iBAAiB,EAAE,oBAAoB,CAAC;gBACxC,cAAc,EAAE,gBAAgB,CAAC;gBACjC,SAAS,EAAE,OAAO,CAAC;gBACnB,eAAe,EAAE,OAAO,CAAC;gBACzB,SAAS,EAAE,OAAO,CAAC;aACpB,EAAE,CAAC;YACJ,QAAQ,EAAE,SAAS,CAAC;SACrB,KAAK,2BAA2B,CAAC,GAChC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,2EAA2E;QAC3E,eAAe,EAAE,CAAC,CAChB,kBAAkB,EAAE,SAAS,EAAE,EAC/B,eAAe,EAAE;YACf,OAAO,EAAE,SAAS,CAAC;YACnB,wBAAwB,EAAE,SAAS,EAAE,CAAC;YACtC,qBAAqB,EAAE,SAAS,CAAC;YACjC,SAAS,EAAE,gBAAgB,CAAC;SAC7B,KACE,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAE3G,2BAA2B;QAC3B,kBAAkB,EAAE,CAAC,MAAM,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KAC5F,CAAC;CACH"}
@@ -0,0 +1,576 @@
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
+ '9791669845391776238': {
283
+ error_kind: 'string',
284
+ string: '0 has a square root; you cannot claim it is not square'
285
+ },
286
+ '9885968605480832328': {
287
+ error_kind: 'string',
288
+ string: 'Attempted to read past the length of a CapsuleArray'
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
+ '11021520179822076911': {
304
+ error_kind: 'string',
305
+ string: 'Attempted to delete past the length of a CapsuleArray'
306
+ },
307
+ '11692359521570349358': {
308
+ error_kind: 'fmtstring',
309
+ length: 40,
310
+ item_types: []
311
+ },
312
+ '12327971061804302172': {
313
+ error_kind: 'fmtstring',
314
+ length: 98,
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_private_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
+ '9791669845391776238': {
441
+ error_kind: 'string',
442
+ string: '0 has a square root; you cannot claim it is not square'
443
+ },
444
+ '9885968605480832328': {
445
+ error_kind: 'string',
446
+ string: 'Attempted to read past the length of a CapsuleArray'
447
+ },
448
+ '10135509984888824963': {
449
+ error_kind: 'fmtstring',
450
+ length: 58,
451
+ item_types: [
452
+ {
453
+ kind: 'field'
454
+ }
455
+ ]
456
+ },
457
+ '10791800398362570014': {
458
+ error_kind: 'string',
459
+ string: 'extend_from_bounded_vec out of bounds'
460
+ },
461
+ '11021520179822076911': {
462
+ error_kind: 'string',
463
+ string: 'Attempted to delete past the length of a CapsuleArray'
464
+ },
465
+ '11692359521570349358': {
466
+ error_kind: 'fmtstring',
467
+ length: 40,
468
+ item_types: []
469
+ },
470
+ '12327971061804302172': {
471
+ error_kind: 'fmtstring',
472
+ length: 98,
473
+ item_types: []
474
+ },
475
+ '12469291177396340830': {
476
+ error_kind: 'string',
477
+ string: 'call to assert_max_bit_size'
478
+ },
479
+ '12913276134398371456': {
480
+ error_kind: 'string',
481
+ string: 'push out of bounds'
482
+ },
483
+ '13557316507370296400': {
484
+ error_kind: 'fmtstring',
485
+ length: 130,
486
+ item_types: [
487
+ {
488
+ kind: 'integer',
489
+ sign: 'unsigned',
490
+ width: 32
491
+ }
492
+ ]
493
+ },
494
+ '14938672389828944159': {
495
+ error_kind: 'fmtstring',
496
+ length: 146,
497
+ item_types: [
498
+ {
499
+ kind: 'integer',
500
+ sign: 'unsigned',
501
+ width: 32
502
+ }
503
+ ]
504
+ },
505
+ '14990209321349310352': {
506
+ error_kind: 'string',
507
+ string: 'attempt to add with overflow'
508
+ },
509
+ '15764276373176857197': {
510
+ error_kind: 'string',
511
+ string: 'Stack too deep'
512
+ },
513
+ '16431471497789672479': {
514
+ error_kind: 'string',
515
+ string: 'Index out of bounds'
516
+ },
517
+ '17531474008201752295': {
518
+ error_kind: 'fmtstring',
519
+ length: 133,
520
+ item_types: [
521
+ {
522
+ kind: 'integer',
523
+ sign: 'unsigned',
524
+ width: 32
525
+ }
526
+ ]
527
+ }
528
+ }
529
+ },
530
+ bytecode: Buffer.from([]),
531
+ debugSymbols: ''
532
+ },
533
+ {
534
+ ...{
535
+ functionType: FunctionType.PUBLIC,
536
+ name: 'public_dispatch',
537
+ isOnlySelf: false,
538
+ isStatic: false,
539
+ isInitializer: false,
540
+ parameters: [
541
+ {
542
+ name: 'selector',
543
+ type: {
544
+ kind: 'field'
545
+ },
546
+ visibility: 'private'
547
+ }
548
+ ],
549
+ returnTypes: [],
550
+ errorTypes: {
551
+ '1335198680857977525': {
552
+ error_kind: 'string',
553
+ string: 'No public functions'
554
+ }
555
+ }
556
+ },
557
+ bytecode: Buffer.from([]),
558
+ debugSymbols: ''
559
+ }
560
+ ],
561
+ nonDispatchPublicFunctions: [],
562
+ outputs: {
563
+ structs: {},
564
+ globals: {}
565
+ },
566
+ storageLayout: {},
567
+ fileMap: {}
568
+ };
569
+ export class MultiCallEntrypointContract extends ContractBase {
570
+ constructor(wallet){
571
+ super(ProtocolContractAddress.MultiCallEntrypoint, MultiCallEntrypointContractArtifact, wallet);
572
+ }
573
+ static at(wallet) {
574
+ return new MultiCallEntrypointContract(wallet);
575
+ }
576
+ }
@@ -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_private_state() */
23
+ sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
24
+ };
25
+ }
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWNoZWNrcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbnRyYWN0L3Byb3RvY29sX2NvbnRyYWN0cy9wdWJsaWMtY2hlY2tzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLE9BQU8sS0FBSyxFQUNWLGdCQUFnQixFQUVoQixTQUFTLEVBR1YsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLEtBQUssY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUErUWxGLHFCQUFhLG9CQUFxQixTQUFRLFlBQVk7SUFDcEQsT0FBTyxlQUVOO0lBRUQsT0FB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