@aztec/aztec.js 0.0.1-commit.fcb71a6 → 0.0.1-commit.fffb133c

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