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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dest/account/account.d.ts +25 -40
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +19 -47
  4. package/dest/account/account_contract.d.ts +8 -9
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +19 -7
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/account_with_secret_key.js +21 -4
  9. package/dest/account/index.d.ts +3 -2
  10. package/dest/account/index.d.ts.map +1 -1
  11. package/dest/account/index.js +2 -0
  12. package/dest/account/signerless_account.d.ts +5 -6
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/account.d.ts +2 -4
  16. package/dest/api/account.d.ts.map +1 -1
  17. package/dest/api/account.js +1 -3
  18. package/dest/api/authorization.d.ts +2 -2
  19. package/dest/api/authorization.d.ts.map +1 -1
  20. package/dest/api/authorization.js +1 -1
  21. package/dest/api/contract.d.ts +18 -12
  22. package/dest/api/contract.d.ts.map +1 -1
  23. package/dest/api/contract.js +16 -10
  24. package/dest/api/deployment.d.ts +1 -2
  25. package/dest/api/deployment.d.ts.map +1 -1
  26. package/dest/api/deployment.js +0 -1
  27. package/dest/api/events.d.ts +10 -6
  28. package/dest/api/events.d.ts.map +1 -1
  29. package/dest/api/events.js +30 -20
  30. package/dest/api/fields.d.ts +2 -1
  31. package/dest/api/fields.d.ts.map +1 -1
  32. package/dest/api/fields.js +1 -0
  33. package/dest/api/keys.d.ts +1 -1
  34. package/dest/api/keys.js +1 -1
  35. package/dest/api/node.d.ts +8 -4
  36. package/dest/api/node.d.ts.map +1 -1
  37. package/dest/api/node.js +7 -3
  38. package/dest/api/protocol.d.ts +7 -1
  39. package/dest/api/protocol.d.ts.map +1 -1
  40. package/dest/api/protocol.js +6 -0
  41. package/dest/api/tx.d.ts +2 -2
  42. package/dest/api/tx.d.ts.map +1 -1
  43. package/dest/api/tx.js +1 -1
  44. package/dest/api/wallet.d.ts +3 -2
  45. package/dest/api/wallet.d.ts.map +1 -1
  46. package/dest/api/wallet.js +2 -1
  47. package/dest/authorization/call_authorization_request.d.ts +22 -1
  48. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  49. package/dest/contract/base_contract_interaction.d.ts +8 -10
  50. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  51. package/dest/contract/base_contract_interaction.js +5 -17
  52. package/dest/contract/batch_call.d.ts +1 -1
  53. package/dest/contract/batch_call.d.ts.map +1 -1
  54. package/dest/contract/batch_call.js +3 -1
  55. package/dest/contract/contract_base.d.ts +4 -1
  56. package/dest/contract/contract_base.d.ts.map +1 -1
  57. package/dest/contract/contract_function_interaction.d.ts +3 -12
  58. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  59. package/dest/contract/contract_function_interaction.js +6 -6
  60. package/dest/contract/deploy_method.d.ts +63 -16
  61. package/dest/contract/deploy_method.d.ts.map +1 -1
  62. package/dest/contract/deploy_method.js +41 -23
  63. package/dest/contract/interaction_options.d.ts +42 -5
  64. package/dest/contract/interaction_options.d.ts.map +1 -1
  65. package/dest/contract/interaction_options.js +8 -1
  66. package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
  67. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  68. package/dest/contract/protocol_contracts/auth-registry.js +558 -0
  69. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  70. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  71. package/dest/contract/protocol_contracts/contract-class-registry.js +127 -0
  72. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  73. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  74. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  75. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  76. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  77. package/dest/contract/protocol_contracts/fee-juice.js +426 -0
  78. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  79. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  80. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +585 -0
  81. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  82. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  83. package/dest/contract/protocol_contracts/public-checks.js +593 -0
  84. package/dest/contract/wait_for_proven.d.ts +2 -2
  85. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  86. package/dest/contract/wait_for_proven.js +1 -1
  87. package/dest/contract/wait_opts.d.ts +16 -0
  88. package/dest/contract/wait_opts.d.ts.map +1 -0
  89. package/dest/contract/wait_opts.js +5 -0
  90. package/dest/deployment/publish_class.js +2 -2
  91. package/dest/deployment/publish_instance.d.ts +2 -2
  92. package/dest/deployment/publish_instance.d.ts.map +1 -1
  93. package/dest/deployment/publish_instance.js +3 -3
  94. package/dest/ethereum/portal_manager.d.ts +7 -4
  95. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  96. package/dest/ethereum/portal_manager.js +15 -16
  97. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  98. package/dest/fee/private_fee_payment_method.js +10 -10
  99. package/dest/fee/public_fee_payment_method.js +10 -10
  100. package/dest/fee/sponsored_fee_payment.js +3 -3
  101. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  102. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  103. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  104. package/dest/utils/authwit.d.ts +8 -6
  105. package/dest/utils/authwit.d.ts.map +1 -1
  106. package/dest/utils/authwit.js +5 -9
  107. package/dest/utils/node.d.ts +12 -1
  108. package/dest/utils/node.d.ts.map +1 -1
  109. package/dest/utils/node.js +46 -0
  110. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  111. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  112. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  113. package/dest/wallet/account_manager.d.ts +5 -8
  114. package/dest/wallet/account_manager.d.ts.map +1 -1
  115. package/dest/wallet/account_manager.js +5 -11
  116. package/dest/wallet/capabilities.d.ts +444 -0
  117. package/dest/wallet/capabilities.d.ts.map +1 -0
  118. package/dest/wallet/capabilities.js +3 -0
  119. package/dest/wallet/deploy_account_method.d.ts +34 -6
  120. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  121. package/dest/wallet/deploy_account_method.js +7 -5
  122. package/dest/wallet/index.d.ts +2 -1
  123. package/dest/wallet/index.d.ts.map +1 -1
  124. package/dest/wallet/index.js +1 -0
  125. package/dest/wallet/wallet.d.ts +1642 -1007
  126. package/dest/wallet/wallet.d.ts.map +1 -1
  127. package/dest/wallet/wallet.js +201 -107
  128. package/package.json +24 -13
  129. package/src/account/account.ts +34 -58
  130. package/src/account/account_contract.ts +6 -7
  131. package/src/account/account_with_secret_key.ts +33 -8
  132. package/src/account/index.ts +2 -1
  133. package/src/account/signerless_account.ts +13 -12
  134. package/src/api/account.ts +9 -3
  135. package/src/api/authorization.ts +1 -0
  136. package/src/api/contract.ts +24 -9
  137. package/src/api/deployment.ts +0 -1
  138. package/src/api/events.ts +35 -27
  139. package/src/api/fields.ts +1 -0
  140. package/src/api/keys.ts +2 -2
  141. package/src/api/node.ts +7 -3
  142. package/src/api/protocol.ts +7 -0
  143. package/src/api/tx.ts +2 -0
  144. package/src/api/wallet.ts +47 -3
  145. package/src/contract/base_contract_interaction.ts +27 -15
  146. package/src/contract/batch_call.ts +4 -2
  147. package/src/contract/contract_function_interaction.ts +13 -6
  148. package/src/contract/deploy_method.ts +122 -29
  149. package/src/contract/interaction_options.ts +49 -4
  150. package/src/contract/protocol_contracts/auth-registry.ts +351 -0
  151. package/src/contract/protocol_contracts/contract-class-registry.ts +96 -0
  152. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  153. package/src/contract/protocol_contracts/fee-juice.ts +264 -0
  154. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
  155. package/src/contract/protocol_contracts/public-checks.ts +316 -0
  156. package/src/contract/wait_for_proven.ts +1 -1
  157. package/src/contract/wait_opts.ts +21 -0
  158. package/src/deployment/publish_class.ts +2 -2
  159. package/src/deployment/publish_instance.ts +3 -6
  160. package/src/ethereum/portal_manager.ts +17 -21
  161. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  162. package/src/fee/private_fee_payment_method.ts +7 -7
  163. package/src/fee/public_fee_payment_method.ts +8 -8
  164. package/src/fee/sponsored_fee_payment.ts +3 -3
  165. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  166. package/src/utils/authwit.ts +19 -7
  167. package/src/utils/node.ts +62 -0
  168. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  169. package/src/wallet/account_manager.ts +5 -13
  170. package/src/wallet/capabilities.ts +491 -0
  171. package/src/wallet/deploy_account_method.ts +37 -13
  172. package/src/wallet/index.ts +1 -0
  173. package/src/wallet/wallet.ts +319 -118
  174. package/dest/account/interface.d.ts +0 -19
  175. package/dest/account/interface.d.ts.map +0 -1
  176. package/dest/account/interface.js +0 -5
  177. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  178. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  179. package/dest/contract/deploy_sent_tx.js +0 -46
  180. package/dest/contract/protocol_contracts.d.ts +0 -9
  181. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  182. package/dest/contract/protocol_contracts.js +0 -26
  183. package/dest/contract/sent_tx.d.ts +0 -50
  184. package/dest/contract/sent_tx.d.ts.map +0 -1
  185. package/dest/contract/sent_tx.js +0 -90
  186. package/dest/contract/unsafe_contract.d.ts +0 -15
  187. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  188. package/dest/contract/unsafe_contract.js +0 -6
  189. package/dest/deployment/broadcast_function.d.ts +0 -24
  190. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  191. package/dest/deployment/broadcast_function.js +0 -74
  192. package/src/account/interface.ts +0 -25
  193. package/src/contract/deploy_sent_tx.ts +0 -75
  194. package/src/contract/protocol_contracts.ts +0 -35
  195. package/src/contract/sent_tx.ts +0 -129
  196. package/src/contract/unsafe_contract.ts +0 -19
  197. package/src/deployment/broadcast_function.ts +0 -148
@@ -0,0 +1,558 @@
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 AuthRegistryContractArtifact = {
5
+ name: 'AuthRegistry',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PUBLIC,
10
+ name: 'public_dispatch',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'selector',
17
+ type: {
18
+ kind: 'field'
19
+ },
20
+ visibility: 'private'
21
+ }
22
+ ],
23
+ returnTypes: [],
24
+ errorTypes: {
25
+ '361444214588792908': {
26
+ error_kind: 'string',
27
+ string: 'attempt to multiply with overflow'
28
+ },
29
+ '1998584279744703196': {
30
+ error_kind: 'string',
31
+ string: 'attempt to subtract with overflow'
32
+ },
33
+ '5525725861591553972': {
34
+ error_kind: 'string',
35
+ string: 'rejecting all'
36
+ },
37
+ '11691217184967371519': {
38
+ error_kind: 'string',
39
+ string: 'Function is_reject_all can only be called statically'
40
+ },
41
+ '12511970388699677811': {
42
+ error_kind: 'fmtstring',
43
+ length: 27,
44
+ item_types: [
45
+ {
46
+ kind: 'field'
47
+ }
48
+ ]
49
+ },
50
+ '13455385521185560676': {
51
+ error_kind: 'string',
52
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
53
+ },
54
+ '13929691561421487185': {
55
+ error_kind: 'string',
56
+ string: 'Function _set_authorized can only be called by the same contract'
57
+ },
58
+ '14990209321349310352': {
59
+ error_kind: 'string',
60
+ string: 'attempt to add with overflow'
61
+ },
62
+ '15764276373176857197': {
63
+ error_kind: 'string',
64
+ string: 'Stack too deep'
65
+ },
66
+ '16431471497789672479': {
67
+ error_kind: 'string',
68
+ string: 'Index out of bounds'
69
+ },
70
+ '17089945683942782951': {
71
+ error_kind: 'string',
72
+ string: 'unauthorized'
73
+ },
74
+ '17312933876399746100': {
75
+ error_kind: 'string',
76
+ string: 'Function is_consumable can only be called statically'
77
+ }
78
+ }
79
+ },
80
+ bytecode: Buffer.from([]),
81
+ debugSymbols: ''
82
+ },
83
+ {
84
+ ...{
85
+ functionType: FunctionType.PRIVATE,
86
+ name: 'set_authorized_private',
87
+ isOnlySelf: false,
88
+ isStatic: false,
89
+ isInitializer: false,
90
+ parameters: [
91
+ {
92
+ name: 'approver',
93
+ type: {
94
+ kind: 'struct',
95
+ fields: [
96
+ {
97
+ name: 'inner',
98
+ type: {
99
+ kind: 'field'
100
+ }
101
+ }
102
+ ],
103
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
104
+ },
105
+ visibility: 'private'
106
+ },
107
+ {
108
+ name: 'message_hash',
109
+ type: {
110
+ kind: 'field'
111
+ },
112
+ visibility: 'private'
113
+ },
114
+ {
115
+ name: 'authorize',
116
+ type: {
117
+ kind: 'boolean'
118
+ },
119
+ visibility: 'private'
120
+ }
121
+ ],
122
+ returnTypes: [],
123
+ errorTypes: {
124
+ '7555607922535724711': {
125
+ error_kind: 'string',
126
+ string: 'Preimage mismatch'
127
+ },
128
+ '9894212961085021188': {
129
+ error_kind: 'string',
130
+ string: 'Message not authorized by account'
131
+ },
132
+ '14990209321349310352': {
133
+ error_kind: 'string',
134
+ string: 'attempt to add with overflow'
135
+ },
136
+ '15764276373176857197': {
137
+ error_kind: 'string',
138
+ string: 'Stack too deep'
139
+ }
140
+ }
141
+ },
142
+ bytecode: Buffer.from([]),
143
+ debugSymbols: ''
144
+ },
145
+ {
146
+ ...{
147
+ functionType: FunctionType.UTILITY,
148
+ name: 'utility_is_consumable',
149
+ isOnlySelf: false,
150
+ isStatic: false,
151
+ isInitializer: false,
152
+ parameters: [
153
+ {
154
+ name: 'on_behalf_of',
155
+ type: {
156
+ kind: 'struct',
157
+ fields: [
158
+ {
159
+ name: 'inner',
160
+ type: {
161
+ kind: 'field'
162
+ }
163
+ }
164
+ ],
165
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
166
+ },
167
+ visibility: 'private'
168
+ },
169
+ {
170
+ name: 'message_hash',
171
+ type: {
172
+ kind: 'field'
173
+ },
174
+ visibility: 'private'
175
+ }
176
+ ],
177
+ returnTypes: [
178
+ {
179
+ kind: 'boolean'
180
+ }
181
+ ],
182
+ errorTypes: {
183
+ '361444214588792908': {
184
+ error_kind: 'string',
185
+ string: 'attempt to multiply with overflow'
186
+ },
187
+ '1998584279744703196': {
188
+ error_kind: 'string',
189
+ string: 'attempt to subtract with overflow'
190
+ },
191
+ '13455385521185560676': {
192
+ error_kind: 'string',
193
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
194
+ },
195
+ '14990209321349310352': {
196
+ error_kind: 'string',
197
+ string: 'attempt to add with overflow'
198
+ },
199
+ '15764276373176857197': {
200
+ error_kind: 'string',
201
+ string: 'Stack too deep'
202
+ },
203
+ '16431471497789672479': {
204
+ error_kind: 'string',
205
+ string: 'Index out of bounds'
206
+ }
207
+ }
208
+ },
209
+ bytecode: Buffer.from([]),
210
+ debugSymbols: ''
211
+ }
212
+ ],
213
+ nonDispatchPublicFunctions: [
214
+ {
215
+ functionType: FunctionType.PUBLIC,
216
+ name: '_set_authorized',
217
+ isOnlySelf: true,
218
+ isStatic: false,
219
+ isInitializer: false,
220
+ parameters: [
221
+ {
222
+ name: 'approver',
223
+ type: {
224
+ kind: 'struct',
225
+ fields: [
226
+ {
227
+ name: 'inner',
228
+ type: {
229
+ kind: 'field'
230
+ }
231
+ }
232
+ ],
233
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
234
+ },
235
+ visibility: 'private'
236
+ },
237
+ {
238
+ name: 'message_hash',
239
+ type: {
240
+ kind: 'field'
241
+ },
242
+ visibility: 'private'
243
+ },
244
+ {
245
+ name: 'authorize',
246
+ type: {
247
+ kind: 'boolean'
248
+ },
249
+ visibility: 'private'
250
+ }
251
+ ],
252
+ returnTypes: [],
253
+ errorTypes: {
254
+ '361444214588792908': {
255
+ error_kind: 'string',
256
+ string: 'attempt to multiply with overflow'
257
+ },
258
+ '1998584279744703196': {
259
+ error_kind: 'string',
260
+ string: 'attempt to subtract with overflow'
261
+ },
262
+ '13455385521185560676': {
263
+ error_kind: 'string',
264
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
265
+ },
266
+ '13929691561421487185': {
267
+ error_kind: 'string',
268
+ string: 'Function _set_authorized can only be called by the same contract'
269
+ },
270
+ '14990209321349310352': {
271
+ error_kind: 'string',
272
+ string: 'attempt to add with overflow'
273
+ },
274
+ '15764276373176857197': {
275
+ error_kind: 'string',
276
+ string: 'Stack too deep'
277
+ },
278
+ '16431471497789672479': {
279
+ error_kind: 'string',
280
+ string: 'Index out of bounds'
281
+ }
282
+ }
283
+ },
284
+ {
285
+ functionType: FunctionType.PUBLIC,
286
+ name: 'consume',
287
+ isOnlySelf: false,
288
+ isStatic: false,
289
+ isInitializer: false,
290
+ parameters: [
291
+ {
292
+ name: 'on_behalf_of',
293
+ type: {
294
+ kind: 'struct',
295
+ fields: [
296
+ {
297
+ name: 'inner',
298
+ type: {
299
+ kind: 'field'
300
+ }
301
+ }
302
+ ],
303
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
304
+ },
305
+ visibility: 'private'
306
+ },
307
+ {
308
+ name: 'inner_hash',
309
+ type: {
310
+ kind: 'field'
311
+ },
312
+ visibility: 'private'
313
+ }
314
+ ],
315
+ returnTypes: [
316
+ {
317
+ kind: 'field'
318
+ }
319
+ ],
320
+ errorTypes: {
321
+ '361444214588792908': {
322
+ error_kind: 'string',
323
+ string: 'attempt to multiply with overflow'
324
+ },
325
+ '1998584279744703196': {
326
+ error_kind: 'string',
327
+ string: 'attempt to subtract with overflow'
328
+ },
329
+ '5525725861591553972': {
330
+ error_kind: 'string',
331
+ string: 'rejecting all'
332
+ },
333
+ '13455385521185560676': {
334
+ error_kind: 'string',
335
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
336
+ },
337
+ '14990209321349310352': {
338
+ error_kind: 'string',
339
+ string: 'attempt to add with overflow'
340
+ },
341
+ '15764276373176857197': {
342
+ error_kind: 'string',
343
+ string: 'Stack too deep'
344
+ },
345
+ '16431471497789672479': {
346
+ error_kind: 'string',
347
+ string: 'Index out of bounds'
348
+ },
349
+ '17089945683942782951': {
350
+ error_kind: 'string',
351
+ string: 'unauthorized'
352
+ }
353
+ }
354
+ },
355
+ {
356
+ functionType: FunctionType.PUBLIC,
357
+ name: 'is_consumable',
358
+ isOnlySelf: false,
359
+ isStatic: true,
360
+ isInitializer: false,
361
+ parameters: [
362
+ {
363
+ name: 'on_behalf_of',
364
+ type: {
365
+ kind: 'struct',
366
+ fields: [
367
+ {
368
+ name: 'inner',
369
+ type: {
370
+ kind: 'field'
371
+ }
372
+ }
373
+ ],
374
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
375
+ },
376
+ visibility: 'private'
377
+ },
378
+ {
379
+ name: 'message_hash',
380
+ type: {
381
+ kind: 'field'
382
+ },
383
+ visibility: 'private'
384
+ }
385
+ ],
386
+ returnTypes: [
387
+ {
388
+ kind: 'boolean'
389
+ }
390
+ ],
391
+ errorTypes: {
392
+ '361444214588792908': {
393
+ error_kind: 'string',
394
+ string: 'attempt to multiply with overflow'
395
+ },
396
+ '1998584279744703196': {
397
+ error_kind: 'string',
398
+ string: 'attempt to subtract with overflow'
399
+ },
400
+ '13455385521185560676': {
401
+ error_kind: 'string',
402
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
403
+ },
404
+ '14990209321349310352': {
405
+ error_kind: 'string',
406
+ string: 'attempt to add with overflow'
407
+ },
408
+ '15764276373176857197': {
409
+ error_kind: 'string',
410
+ string: 'Stack too deep'
411
+ },
412
+ '16431471497789672479': {
413
+ error_kind: 'string',
414
+ string: 'Index out of bounds'
415
+ },
416
+ '17312933876399746100': {
417
+ error_kind: 'string',
418
+ string: 'Function is_consumable can only be called statically'
419
+ }
420
+ }
421
+ },
422
+ {
423
+ functionType: FunctionType.PUBLIC,
424
+ name: 'is_reject_all',
425
+ isOnlySelf: false,
426
+ isStatic: true,
427
+ isInitializer: false,
428
+ parameters: [
429
+ {
430
+ name: 'on_behalf_of',
431
+ type: {
432
+ kind: 'struct',
433
+ fields: [
434
+ {
435
+ name: 'inner',
436
+ type: {
437
+ kind: 'field'
438
+ }
439
+ }
440
+ ],
441
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
442
+ },
443
+ visibility: 'private'
444
+ }
445
+ ],
446
+ returnTypes: [
447
+ {
448
+ kind: 'boolean'
449
+ }
450
+ ],
451
+ errorTypes: {
452
+ '11691217184967371519': {
453
+ error_kind: 'string',
454
+ string: 'Function is_reject_all can only be called statically'
455
+ },
456
+ '13455385521185560676': {
457
+ error_kind: 'string',
458
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
459
+ },
460
+ '15764276373176857197': {
461
+ error_kind: 'string',
462
+ string: 'Stack too deep'
463
+ }
464
+ }
465
+ },
466
+ {
467
+ functionType: FunctionType.PUBLIC,
468
+ name: 'set_authorized',
469
+ isOnlySelf: false,
470
+ isStatic: false,
471
+ isInitializer: false,
472
+ parameters: [
473
+ {
474
+ name: 'message_hash',
475
+ type: {
476
+ kind: 'field'
477
+ },
478
+ visibility: 'private'
479
+ },
480
+ {
481
+ name: 'authorize',
482
+ type: {
483
+ kind: 'boolean'
484
+ },
485
+ visibility: 'private'
486
+ }
487
+ ],
488
+ returnTypes: [],
489
+ errorTypes: {
490
+ '361444214588792908': {
491
+ error_kind: 'string',
492
+ string: 'attempt to multiply with overflow'
493
+ },
494
+ '1998584279744703196': {
495
+ error_kind: 'string',
496
+ string: 'attempt to subtract with overflow'
497
+ },
498
+ '13455385521185560676': {
499
+ error_kind: 'string',
500
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
501
+ },
502
+ '14990209321349310352': {
503
+ error_kind: 'string',
504
+ string: 'attempt to add with overflow'
505
+ },
506
+ '15764276373176857197': {
507
+ error_kind: 'string',
508
+ string: 'Stack too deep'
509
+ },
510
+ '16431471497789672479': {
511
+ error_kind: 'string',
512
+ string: 'Index out of bounds'
513
+ }
514
+ }
515
+ },
516
+ {
517
+ functionType: FunctionType.PUBLIC,
518
+ name: 'set_reject_all',
519
+ isOnlySelf: false,
520
+ isStatic: false,
521
+ isInitializer: false,
522
+ parameters: [
523
+ {
524
+ name: 'reject',
525
+ type: {
526
+ kind: 'boolean'
527
+ },
528
+ visibility: 'private'
529
+ }
530
+ ],
531
+ returnTypes: [],
532
+ errorTypes: {
533
+ '13455385521185560676': {
534
+ error_kind: 'string',
535
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
536
+ },
537
+ '15764276373176857197': {
538
+ error_kind: 'string',
539
+ string: 'Stack too deep'
540
+ }
541
+ }
542
+ }
543
+ ],
544
+ outputs: {
545
+ structs: {},
546
+ globals: {}
547
+ },
548
+ storageLayout: {},
549
+ fileMap: {}
550
+ };
551
+ export class AuthRegistryContract extends ContractBase {
552
+ constructor(wallet){
553
+ super(ProtocolContractAddress.AuthRegistry, AuthRegistryContractArtifact, wallet);
554
+ }
555
+ static at(wallet) {
556
+ return new AuthRegistryContract(wallet);
557
+ }
558
+ }
@@ -0,0 +1,15 @@
1
+ import type { 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 ContractClassRegistryContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): ContractClassRegistryContract;
8
+ methods: {
9
+ /** public_dispatch(selector: field) */
10
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
11
+ /** publish(artifact_hash: field, private_functions_root: field, public_bytecode_commitment: field) */
12
+ publish: ((artifact_hash: FieldLike, private_functions_root: FieldLike, public_bytecode_commitment: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
13
+ };
14
+ }
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3QtY2xhc3MtcmVnaXN0cnkuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdC9wcm90b2NvbF9jb250cmFjdHMvY29udHJhY3QtY2xhc3MtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsT0FBTyxLQUFLLEVBR1YsU0FBUyxFQUdWLE1BQU0sMEJBQTBCLENBQUM7QUFDbEMsT0FBTyxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDckQsT0FBTyxFQUFFLFlBQVksRUFBRSxLQUFLLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3hFLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBMERsRixxQkFBYSw2QkFBOEIsU0FBUSxZQUFZO0lBQzdELE9BQU8sZUFFTjtJQUVELE9BQWMsRUFBRSxDQUFDLE1BQU0sRUFBRSxNQUFNLEdBQUcsNkJBQTZCLENBRTlEO0lBRWMsT0FBTyxFQUFFO1FBQ3RCLHVDQUF1QztRQUN2QyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxTQUFTLEtBQUssMkJBQTJCLENBQUMsR0FBRyxJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRTNHLHNHQUFzRztRQUN0RyxPQUFPLEVBQUUsQ0FBQyxDQUNSLGFBQWEsRUFBRSxTQUFTLEVBQ3hCLHNCQUFzQixFQUFFLFNBQVMsRUFDakMsMEJBQTBCLEVBQUUsU0FBUyxLQUNsQywyQkFBMkIsQ0FBQyxHQUMvQixJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0tBQ3BDLENBQUM7Q0FDSCJ9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-class-registry.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/contract-class-registry.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAGV,SAAS,EAGV,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;AA0DlF,qBAAa,6BAA8B,SAAQ,YAAY;IAC7D,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,6BAA6B,CAE9D;IAEc,OAAO,EAAE;QACtB,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAE3G,sGAAsG;QACtG,OAAO,EAAE,CAAC,CACR,aAAa,EAAE,SAAS,EACxB,sBAAsB,EAAE,SAAS,EACjC,0BAA0B,EAAE,SAAS,KAClC,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACpC,CAAC;CACH"}