@aztec/aztec.js 0.0.1-commit.96bb3f7 → 0.0.1-commit.a072138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) 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/keys.d.ts +1 -1
  25. package/dest/api/keys.js +1 -1
  26. package/dest/api/node.d.ts +8 -4
  27. package/dest/api/node.d.ts.map +1 -1
  28. package/dest/api/node.js +7 -3
  29. package/dest/api/protocol.d.ts +7 -1
  30. package/dest/api/protocol.d.ts.map +1 -1
  31. package/dest/api/protocol.js +6 -0
  32. package/dest/api/tx.d.ts +2 -2
  33. package/dest/api/tx.d.ts.map +1 -1
  34. package/dest/api/tx.js +1 -1
  35. package/dest/api/wallet.d.ts +3 -2
  36. package/dest/api/wallet.d.ts.map +1 -1
  37. package/dest/api/wallet.js +2 -1
  38. package/dest/authorization/call_authorization_request.d.ts +22 -1
  39. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  40. package/dest/contract/base_contract_interaction.d.ts +8 -10
  41. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  42. package/dest/contract/base_contract_interaction.js +5 -17
  43. package/dest/contract/contract_base.d.ts +4 -1
  44. package/dest/contract/contract_base.d.ts.map +1 -1
  45. package/dest/contract/contract_function_interaction.d.ts +1 -1
  46. package/dest/contract/deploy_method.d.ts +63 -16
  47. package/dest/contract/deploy_method.d.ts.map +1 -1
  48. package/dest/contract/deploy_method.js +41 -23
  49. package/dest/contract/interaction_options.d.ts +42 -5
  50. package/dest/contract/interaction_options.d.ts.map +1 -1
  51. package/dest/contract/interaction_options.js +8 -1
  52. package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
  53. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  54. package/dest/contract/protocol_contracts/auth-registry.js +558 -0
  55. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +26 -0
  56. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  57. package/dest/contract/protocol_contracts/contract-class-registry.js +385 -0
  58. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  59. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  60. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  61. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  62. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  63. package/dest/contract/protocol_contracts/fee-juice.js +426 -0
  64. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  65. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  66. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +575 -0
  67. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  68. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  69. package/dest/contract/protocol_contracts/public-checks.js +583 -0
  70. package/dest/contract/wait_for_proven.d.ts +2 -2
  71. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  72. package/dest/contract/wait_for_proven.js +1 -1
  73. package/dest/contract/wait_opts.d.ts +16 -0
  74. package/dest/contract/wait_opts.d.ts.map +1 -0
  75. package/dest/contract/wait_opts.js +5 -0
  76. package/dest/deployment/broadcast_function.js +3 -3
  77. package/dest/deployment/publish_class.js +2 -2
  78. package/dest/deployment/publish_instance.d.ts +2 -2
  79. package/dest/deployment/publish_instance.d.ts.map +1 -1
  80. package/dest/deployment/publish_instance.js +3 -3
  81. package/dest/ethereum/portal_manager.d.ts +3 -1
  82. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  83. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  84. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  85. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  86. package/dest/utils/authwit.d.ts +8 -6
  87. package/dest/utils/authwit.d.ts.map +1 -1
  88. package/dest/utils/authwit.js +5 -9
  89. package/dest/utils/node.d.ts +12 -1
  90. package/dest/utils/node.d.ts.map +1 -1
  91. package/dest/utils/node.js +46 -0
  92. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  93. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  94. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  95. package/dest/wallet/account_manager.d.ts +5 -8
  96. package/dest/wallet/account_manager.d.ts.map +1 -1
  97. package/dest/wallet/account_manager.js +5 -11
  98. package/dest/wallet/capabilities.d.ts +444 -0
  99. package/dest/wallet/capabilities.d.ts.map +1 -0
  100. package/dest/wallet/capabilities.js +3 -0
  101. package/dest/wallet/deploy_account_method.d.ts +34 -6
  102. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  103. package/dest/wallet/deploy_account_method.js +7 -5
  104. package/dest/wallet/index.d.ts +2 -1
  105. package/dest/wallet/index.d.ts.map +1 -1
  106. package/dest/wallet/index.js +1 -0
  107. package/dest/wallet/wallet.d.ts +1460 -2424
  108. package/dest/wallet/wallet.d.ts.map +1 -1
  109. package/dest/wallet/wallet.js +179 -86
  110. package/package.json +14 -12
  111. package/src/account/account.ts +34 -58
  112. package/src/account/account_contract.ts +6 -7
  113. package/src/account/account_with_secret_key.ts +33 -8
  114. package/src/account/index.ts +2 -1
  115. package/src/account/signerless_account.ts +13 -12
  116. package/src/api/account.ts +9 -3
  117. package/src/api/authorization.ts +1 -0
  118. package/src/api/contract.ts +22 -7
  119. package/src/api/keys.ts +2 -2
  120. package/src/api/node.ts +7 -3
  121. package/src/api/protocol.ts +7 -0
  122. package/src/api/tx.ts +2 -0
  123. package/src/api/wallet.ts +43 -2
  124. package/src/contract/base_contract_interaction.ts +27 -15
  125. package/src/contract/batch_call.ts +2 -2
  126. package/src/contract/deploy_method.ts +122 -29
  127. package/src/contract/interaction_options.ts +49 -4
  128. package/src/contract/protocol_contracts/auth-registry.ts +351 -0
  129. package/src/contract/protocol_contracts/contract-class-registry.ts +241 -0
  130. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  131. package/src/contract/protocol_contracts/fee-juice.ts +264 -0
  132. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
  133. package/src/contract/protocol_contracts/public-checks.ts +316 -0
  134. package/src/contract/wait_for_proven.ts +1 -1
  135. package/src/contract/wait_opts.ts +21 -0
  136. package/src/deployment/broadcast_function.ts +3 -3
  137. package/src/deployment/publish_class.ts +2 -2
  138. package/src/deployment/publish_instance.ts +3 -6
  139. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  140. package/src/utils/authwit.ts +19 -7
  141. package/src/utils/node.ts +62 -0
  142. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  143. package/src/wallet/account_manager.ts +5 -13
  144. package/src/wallet/capabilities.ts +491 -0
  145. package/src/wallet/deploy_account_method.ts +37 -13
  146. package/src/wallet/index.ts +1 -0
  147. package/src/wallet/wallet.ts +257 -93
  148. package/dest/account/interface.d.ts +0 -19
  149. package/dest/account/interface.d.ts.map +0 -1
  150. package/dest/account/interface.js +0 -5
  151. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  152. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  153. package/dest/contract/deploy_sent_tx.js +0 -46
  154. package/dest/contract/protocol_contracts.d.ts +0 -9
  155. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  156. package/dest/contract/protocol_contracts.js +0 -26
  157. package/dest/contract/sent_tx.d.ts +0 -50
  158. package/dest/contract/sent_tx.d.ts.map +0 -1
  159. package/dest/contract/sent_tx.js +0 -90
  160. package/dest/contract/unsafe_contract.d.ts +0 -15
  161. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  162. package/dest/contract/unsafe_contract.js +0 -6
  163. package/src/account/interface.ts +0 -25
  164. package/src/contract/deploy_sent_tx.ts +0 -75
  165. package/src/contract/protocol_contracts.ts +0 -35
  166. package/src/contract/sent_tx.ts +0 -129
  167. package/src/contract/unsafe_contract.ts +0 -19
@@ -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,26 @@
1
+ import type { FieldLike, FunctionSelectorLike, WrappedFieldLike } 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
+ /** broadcast_private_function(contract_class_id: struct, artifact_metadata_hash: field, utility_functions_artifact_tree_root: field, private_function_tree_sibling_path: array, private_function_tree_leaf_index: field, artifact_function_tree_sibling_path: array, artifact_function_tree_leaf_index: field, function_data: struct) */
10
+ broadcast_private_function: ((contract_class_id: WrappedFieldLike, artifact_metadata_hash: FieldLike, utility_functions_artifact_tree_root: FieldLike, private_function_tree_sibling_path: FieldLike[], private_function_tree_leaf_index: FieldLike, artifact_function_tree_sibling_path: FieldLike[], artifact_function_tree_leaf_index: FieldLike, function_data: {
11
+ selector: FunctionSelectorLike;
12
+ metadata_hash: FieldLike;
13
+ vk_hash: FieldLike;
14
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
15
+ /** broadcast_utility_function(contract_class_id: struct, artifact_metadata_hash: field, private_functions_artifact_tree_root: field, artifact_function_tree_sibling_path: array, artifact_function_tree_leaf_index: field, function_data: struct) */
16
+ broadcast_utility_function: ((contract_class_id: WrappedFieldLike, artifact_metadata_hash: FieldLike, private_functions_artifact_tree_root: FieldLike, artifact_function_tree_sibling_path: FieldLike[], artifact_function_tree_leaf_index: FieldLike, function_data: {
17
+ selector: FunctionSelectorLike;
18
+ metadata_hash: FieldLike;
19
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
20
+ /** public_dispatch(selector: field) */
21
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
22
+ /** publish(artifact_hash: field, private_functions_root: field, public_bytecode_commitment: field) */
23
+ publish: ((artifact_hash: FieldLike, private_functions_root: FieldLike, public_bytecode_commitment: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
24
+ };
25
+ }
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3QtY2xhc3MtcmVnaXN0cnkuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdC9wcm90b2NvbF9jb250cmFjdHMvY29udHJhY3QtY2xhc3MtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsT0FBTyxLQUFLLEVBR1YsU0FBUyxFQUNULG9CQUFvQixFQUNwQixnQkFBZ0IsRUFDakIsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLEtBQUssY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUFtTGxGLHFCQUFhLDZCQUE4QixTQUFRLFlBQVk7SUFDN0QsT0FBTyxlQUVOO0lBRUQsT0FBYyxFQUFFLENBQUMsTUFBTSxFQUFFLE1BQU0sR0FBRyw2QkFBNkIsQ0FFOUQ7SUFFYyxPQUFPLEVBQUU7UUFDdEIseVVBQXlVO1FBQ3pVLDBCQUEwQixFQUFFLENBQUMsQ0FDM0IsaUJBQWlCLEVBQUUsZ0JBQWdCLEVBQ25DLHNCQUFzQixFQUFFLFNBQVMsRUFDakMsb0NBQW9DLEVBQUUsU0FBUyxFQUMvQyxrQ0FBa0MsRUFBRSxTQUFTLEVBQUUsRUFDL0MsZ0NBQWdDLEVBQUUsU0FBUyxFQUMzQyxtQ0FBbUMsRUFBRSxTQUFTLEVBQUUsRUFDaEQsaUNBQWlDLEVBQUUsU0FBUyxFQUM1QyxhQUFhLEVBQUU7WUFBRSxRQUFRLEVBQUUsb0JBQW9CLENBQUM7WUFBQyxhQUFhLEVBQUUsU0FBUyxDQUFDO1lBQUMsT0FBTyxFQUFFLFNBQVMsQ0FBQTtTQUFFLEtBQzVGLDJCQUEyQixDQUFDLEdBQy9CLElBQUksQ0FBQyxjQUFjLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFbkMscVBBQXFQO1FBQ3JQLDBCQUEwQixFQUFFLENBQUMsQ0FDM0IsaUJBQWlCLEVBQUUsZ0JBQWdCLEVBQ25DLHNCQUFzQixFQUFFLFNBQVMsRUFDakMsb0NBQW9DLEVBQUUsU0FBUyxFQUMvQyxtQ0FBbUMsRUFBRSxTQUFTLEVBQUUsRUFDaEQsaUNBQWlDLEVBQUUsU0FBUyxFQUM1QyxhQUFhLEVBQUU7WUFBRSxRQUFRLEVBQUUsb0JBQW9CLENBQUM7WUFBQyxhQUFhLEVBQUUsU0FBUyxDQUFBO1NBQUUsS0FDeEUsMkJBQTJCLENBQUMsR0FDL0IsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUVuQyx1Q0FBdUM7UUFDdkMsZUFBZSxFQUFFLENBQUMsQ0FBQyxRQUFRLEVBQUUsU0FBUyxLQUFLLDJCQUEyQixDQUFDLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUUzRyxzR0FBc0c7UUFDdEcsT0FBTyxFQUFFLENBQUMsQ0FDUixhQUFhLEVBQUUsU0FBUyxFQUN4QixzQkFBc0IsRUFBRSxTQUFTLEVBQ2pDLDBCQUEwQixFQUFFLFNBQVMsS0FDbEMsMkJBQTJCLENBQUMsR0FDL0IsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztLQUNwQyxDQUFDO0NBQ0gifQ==
@@ -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,EACT,oBAAoB,EACpB,gBAAgB,EACjB,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;AAmLlF,qBAAa,6BAA8B,SAAQ,YAAY;IAC7D,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,6BAA6B,CAE9D;IAEc,OAAO,EAAE;QACtB,yUAAyU;QACzU,0BAA0B,EAAE,CAAC,CAC3B,iBAAiB,EAAE,gBAAgB,EACnC,sBAAsB,EAAE,SAAS,EACjC,oCAAoC,EAAE,SAAS,EAC/C,kCAAkC,EAAE,SAAS,EAAE,EAC/C,gCAAgC,EAAE,SAAS,EAC3C,mCAAmC,EAAE,SAAS,EAAE,EAChD,iCAAiC,EAAE,SAAS,EAC5C,aAAa,EAAE;YAAE,QAAQ,EAAE,oBAAoB,CAAC;YAAC,aAAa,EAAE,SAAS,CAAC;YAAC,OAAO,EAAE,SAAS,CAAA;SAAE,KAC5F,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,qPAAqP;QACrP,0BAA0B,EAAE,CAAC,CAC3B,iBAAiB,EAAE,gBAAgB,EACnC,sBAAsB,EAAE,SAAS,EACjC,oCAAoC,EAAE,SAAS,EAC/C,mCAAmC,EAAE,SAAS,EAAE,EAChD,iCAAiC,EAAE,SAAS,EAC5C,aAAa,EAAE;YAAE,QAAQ,EAAE,oBAAoB,CAAC;YAAC,aAAa,EAAE,SAAS,CAAA;SAAE,KACxE,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,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"}