@aztec/aztec.js 0.0.1-commit.d3ec352c → 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 (139) hide show
  1. package/dest/account/account.d.ts +4 -4
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +1 -1
  4. package/dest/account/account_contract.d.ts +3 -3
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +4 -3
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/index.d.ts +2 -2
  9. package/dest/account/index.d.ts.map +1 -1
  10. package/dest/account/interface.d.ts +2 -2
  11. package/dest/account/interface.d.ts.map +1 -1
  12. package/dest/account/signerless_account.d.ts +2 -2
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/api/block.d.ts +2 -2
  15. package/dest/api/block.d.ts.map +1 -1
  16. package/dest/api/block.js +1 -1
  17. package/dest/api/fields.d.ts +3 -2
  18. package/dest/api/fields.d.ts.map +1 -1
  19. package/dest/api/fields.js +2 -1
  20. package/dest/api/protocol.d.ts +7 -1
  21. package/dest/api/protocol.d.ts.map +1 -1
  22. package/dest/api/protocol.js +6 -0
  23. package/dest/api/wallet.d.ts +2 -2
  24. package/dest/api/wallet.d.ts.map +1 -1
  25. package/dest/api/wallet.js +1 -1
  26. package/dest/authorization/call_authorization_request.d.ts +23 -2
  27. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  28. package/dest/contract/batch_call.d.ts +1 -1
  29. package/dest/contract/batch_call.d.ts.map +1 -1
  30. package/dest/contract/batch_call.js +3 -1
  31. package/dest/contract/contract_base.d.ts +4 -1
  32. package/dest/contract/contract_base.d.ts.map +1 -1
  33. package/dest/contract/contract_function_interaction.d.ts +1 -1
  34. package/dest/contract/deploy_method.d.ts +2 -2
  35. package/dest/contract/deploy_method.d.ts.map +1 -1
  36. package/dest/contract/deploy_method.js +6 -5
  37. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  38. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  39. package/dest/contract/protocol_contracts/auth-registry.js +928 -0
  40. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
  41. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  42. package/dest/contract/protocol_contracts/contract-class-registry.js +797 -0
  43. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
  44. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  45. package/dest/contract/protocol_contracts/contract-instance-registry.js +867 -0
  46. package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
  47. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  48. package/dest/contract/protocol_contracts/fee-juice.js +824 -0
  49. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  50. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  51. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +576 -0
  52. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  53. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  54. package/dest/contract/protocol_contracts/public-checks.js +592 -0
  55. package/dest/contract/sent_tx.d.ts +2 -3
  56. package/dest/contract/sent_tx.d.ts.map +1 -1
  57. package/dest/contract/wait_for_proven.d.ts +2 -2
  58. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  59. package/dest/deployment/broadcast_function.js +4 -4
  60. package/dest/deployment/publish_class.js +3 -3
  61. package/dest/deployment/publish_instance.d.ts +2 -2
  62. package/dest/deployment/publish_instance.d.ts.map +1 -1
  63. package/dest/deployment/publish_instance.js +3 -3
  64. package/dest/ethereum/portal_manager.d.ts +9 -6
  65. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  66. package/dest/ethereum/portal_manager.js +17 -18
  67. package/dest/fee/fee_juice_payment_method_with_claim.js +1 -1
  68. package/dest/fee/private_fee_payment_method.js +1 -1
  69. package/dest/fee/public_fee_payment_method.js +1 -1
  70. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  71. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  72. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  73. package/dest/utils/abi_types.d.ts +2 -2
  74. package/dest/utils/abi_types.d.ts.map +1 -1
  75. package/dest/utils/authwit.d.ts +2 -2
  76. package/dest/utils/authwit.d.ts.map +1 -1
  77. package/dest/utils/authwit.js +1 -1
  78. package/dest/utils/cross_chain.d.ts +2 -2
  79. package/dest/utils/cross_chain.d.ts.map +1 -1
  80. package/dest/utils/fee_juice.js +1 -1
  81. package/dest/utils/field_compressed_string.js +1 -1
  82. package/dest/utils/pub_key.d.ts +2 -2
  83. package/dest/utils/pub_key.d.ts.map +1 -1
  84. package/dest/utils/pub_key.js +1 -1
  85. package/dest/wallet/account_manager.d.ts +6 -3
  86. package/dest/wallet/account_manager.d.ts.map +1 -1
  87. package/dest/wallet/account_manager.js +1 -1
  88. package/dest/wallet/deploy_account_method.d.ts +2 -2
  89. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  90. package/dest/wallet/deploy_account_method.js +1 -1
  91. package/dest/wallet/wallet.d.ts +241 -954
  92. package/dest/wallet/wallet.d.ts.map +1 -1
  93. package/dest/wallet/wallet.js +61 -87
  94. package/package.json +14 -12
  95. package/src/account/account.ts +1 -1
  96. package/src/account/account_contract.ts +1 -1
  97. package/src/account/account_with_secret_key.ts +1 -1
  98. package/src/account/index.ts +1 -1
  99. package/src/account/interface.ts +1 -1
  100. package/src/account/signerless_account.ts +1 -1
  101. package/src/api/block.ts +1 -1
  102. package/src/api/fields.ts +2 -1
  103. package/src/api/protocol.ts +7 -0
  104. package/src/api/wallet.ts +4 -2
  105. package/src/authorization/call_authorization_request.ts +1 -1
  106. package/src/contract/batch_call.ts +4 -2
  107. package/src/contract/deploy_method.ts +8 -7
  108. package/src/contract/protocol_contracts/auth-registry.ts +542 -0
  109. package/src/contract/protocol_contracts/contract-class-registry.ts +442 -0
  110. package/src/contract/protocol_contracts/contract-instance-registry.ts +501 -0
  111. package/src/contract/protocol_contracts/fee-juice.ts +462 -0
  112. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +338 -0
  113. package/src/contract/protocol_contracts/public-checks.ts +324 -0
  114. package/src/contract/sent_tx.ts +1 -2
  115. package/src/deployment/broadcast_function.ts +4 -4
  116. package/src/deployment/publish_class.ts +3 -3
  117. package/src/deployment/publish_instance.ts +3 -6
  118. package/src/ethereum/portal_manager.ts +20 -24
  119. package/src/fee/fee_juice_payment_method_with_claim.ts +1 -1
  120. package/src/fee/private_fee_payment_method.ts +1 -1
  121. package/src/fee/public_fee_payment_method.ts +1 -1
  122. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  123. package/src/utils/abi_types.ts +1 -1
  124. package/src/utils/authwit.ts +1 -1
  125. package/src/utils/cross_chain.ts +1 -1
  126. package/src/utils/fee_juice.ts +1 -1
  127. package/src/utils/field_compressed_string.ts +1 -1
  128. package/src/utils/pub_key.ts +2 -2
  129. package/src/wallet/account_manager.ts +1 -1
  130. package/src/wallet/deploy_account_method.ts +1 -1
  131. package/src/wallet/wallet.ts +161 -81
  132. package/dest/contract/protocol_contracts.d.ts +0 -9
  133. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  134. package/dest/contract/protocol_contracts.js +0 -26
  135. package/dest/contract/unsafe_contract.d.ts +0 -15
  136. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  137. package/dest/contract/unsafe_contract.js +0 -6
  138. package/src/contract/protocol_contracts.ts +0 -35
  139. package/src/contract/unsafe_contract.ts +0 -19
@@ -0,0 +1,928 @@
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.PRIVATE,
10
+ name: 'set_authorized_private',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'approver',
17
+ type: {
18
+ kind: 'struct',
19
+ fields: [
20
+ {
21
+ name: 'inner',
22
+ type: {
23
+ kind: 'field'
24
+ }
25
+ }
26
+ ],
27
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
28
+ },
29
+ visibility: 'private'
30
+ },
31
+ {
32
+ name: 'message_hash',
33
+ type: {
34
+ kind: 'field'
35
+ },
36
+ visibility: 'private'
37
+ },
38
+ {
39
+ name: 'authorize',
40
+ type: {
41
+ kind: 'boolean'
42
+ },
43
+ visibility: 'private'
44
+ }
45
+ ],
46
+ returnTypes: [],
47
+ errorTypes: {
48
+ '2754040237334517471': {
49
+ error_kind: 'fmtstring',
50
+ length: 92,
51
+ item_types: []
52
+ },
53
+ '7555607922535724711': {
54
+ error_kind: 'string',
55
+ string: 'Preimage mismatch'
56
+ },
57
+ '9894212961085021188': {
58
+ error_kind: 'string',
59
+ string: 'Message not authorized by account'
60
+ },
61
+ '14990209321349310352': {
62
+ error_kind: 'string',
63
+ string: 'attempt to add with overflow'
64
+ },
65
+ '15764276373176857197': {
66
+ error_kind: 'string',
67
+ string: 'Stack too deep'
68
+ },
69
+ '16431471497789672479': {
70
+ error_kind: 'string',
71
+ string: 'Index out of bounds'
72
+ }
73
+ }
74
+ },
75
+ bytecode: Buffer.from([]),
76
+ debugSymbols: ''
77
+ },
78
+ {
79
+ ...{
80
+ functionType: FunctionType.UTILITY,
81
+ name: 'utility_is_consumable',
82
+ isOnlySelf: false,
83
+ isStatic: false,
84
+ isInitializer: false,
85
+ parameters: [
86
+ {
87
+ name: 'on_behalf_of',
88
+ type: {
89
+ kind: 'struct',
90
+ fields: [
91
+ {
92
+ name: 'inner',
93
+ type: {
94
+ kind: 'field'
95
+ }
96
+ }
97
+ ],
98
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
99
+ },
100
+ visibility: 'private'
101
+ },
102
+ {
103
+ name: 'message_hash',
104
+ type: {
105
+ kind: 'field'
106
+ },
107
+ visibility: 'private'
108
+ }
109
+ ],
110
+ returnTypes: [
111
+ {
112
+ kind: 'boolean'
113
+ }
114
+ ],
115
+ errorTypes: {
116
+ '13455385521185560676': {
117
+ error_kind: 'string',
118
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
119
+ },
120
+ '14990209321349310352': {
121
+ error_kind: 'string',
122
+ string: 'attempt to add with overflow'
123
+ },
124
+ '15764276373176857197': {
125
+ error_kind: 'string',
126
+ string: 'Stack too deep'
127
+ },
128
+ '16431471497789672479': {
129
+ error_kind: 'string',
130
+ string: 'Index out of bounds'
131
+ }
132
+ }
133
+ },
134
+ bytecode: Buffer.from([]),
135
+ debugSymbols: ''
136
+ },
137
+ {
138
+ ...{
139
+ functionType: FunctionType.UTILITY,
140
+ name: 'process_message',
141
+ isOnlySelf: false,
142
+ isStatic: false,
143
+ isInitializer: false,
144
+ parameters: [
145
+ {
146
+ name: 'message_ciphertext',
147
+ type: {
148
+ kind: 'struct',
149
+ fields: [
150
+ {
151
+ name: 'storage',
152
+ type: {
153
+ kind: 'array',
154
+ length: 17,
155
+ type: {
156
+ kind: 'field'
157
+ }
158
+ }
159
+ },
160
+ {
161
+ name: 'len',
162
+ type: {
163
+ kind: 'integer',
164
+ sign: 'unsigned',
165
+ width: 32
166
+ }
167
+ }
168
+ ],
169
+ path: 'std::collections::bounded_vec::BoundedVec'
170
+ },
171
+ visibility: 'private'
172
+ },
173
+ {
174
+ name: 'message_context',
175
+ type: {
176
+ kind: 'struct',
177
+ fields: [
178
+ {
179
+ name: 'tx_hash',
180
+ type: {
181
+ kind: 'field'
182
+ }
183
+ },
184
+ {
185
+ name: 'unique_note_hashes_in_tx',
186
+ type: {
187
+ kind: 'struct',
188
+ fields: [
189
+ {
190
+ name: 'storage',
191
+ type: {
192
+ kind: 'array',
193
+ length: 64,
194
+ type: {
195
+ kind: 'field'
196
+ }
197
+ }
198
+ },
199
+ {
200
+ name: 'len',
201
+ type: {
202
+ kind: 'integer',
203
+ sign: 'unsigned',
204
+ width: 32
205
+ }
206
+ }
207
+ ],
208
+ path: 'std::collections::bounded_vec::BoundedVec'
209
+ }
210
+ },
211
+ {
212
+ name: 'first_nullifier_in_tx',
213
+ type: {
214
+ kind: 'field'
215
+ }
216
+ },
217
+ {
218
+ name: 'recipient',
219
+ type: {
220
+ kind: 'struct',
221
+ fields: [
222
+ {
223
+ name: 'inner',
224
+ type: {
225
+ kind: 'field'
226
+ }
227
+ }
228
+ ],
229
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
230
+ }
231
+ }
232
+ ],
233
+ path: 'aztec::messages::processing::message_context::MessageContext'
234
+ },
235
+ visibility: 'private'
236
+ }
237
+ ],
238
+ returnTypes: [],
239
+ errorTypes: {
240
+ '361444214588792908': {
241
+ error_kind: 'string',
242
+ string: 'attempt to multiply with overflow'
243
+ },
244
+ '992401946138144806': {
245
+ error_kind: 'string',
246
+ string: 'Attempted to read past end of BoundedVec'
247
+ },
248
+ '1998584279744703196': {
249
+ error_kind: 'string',
250
+ string: 'attempt to subtract with overflow'
251
+ },
252
+ '2967937905572420042': {
253
+ error_kind: 'fmtstring',
254
+ length: 61,
255
+ item_types: [
256
+ {
257
+ kind: 'field'
258
+ },
259
+ {
260
+ kind: 'field'
261
+ }
262
+ ]
263
+ },
264
+ '3330370348214585450': {
265
+ error_kind: 'fmtstring',
266
+ length: 48,
267
+ item_types: [
268
+ {
269
+ kind: 'field'
270
+ },
271
+ {
272
+ kind: 'field'
273
+ }
274
+ ]
275
+ },
276
+ '3670003311596808700': {
277
+ error_kind: 'fmtstring',
278
+ length: 77,
279
+ item_types: [
280
+ {
281
+ kind: 'integer',
282
+ sign: 'unsigned',
283
+ width: 32
284
+ }
285
+ ]
286
+ },
287
+ '4261968856572588300': {
288
+ error_kind: 'string',
289
+ string: 'Value does not fit in field'
290
+ },
291
+ '4440399188109668273': {
292
+ error_kind: 'string',
293
+ string: 'Input length must be a multiple of 32'
294
+ },
295
+ '9791669845391776238': {
296
+ error_kind: 'string',
297
+ string: '0 has a square root; you cannot claim it is not square'
298
+ },
299
+ '9885968605480832328': {
300
+ error_kind: 'string',
301
+ string: 'Attempted to read past the length of a CapsuleArray'
302
+ },
303
+ '10135509984888824963': {
304
+ error_kind: 'fmtstring',
305
+ length: 58,
306
+ item_types: [
307
+ {
308
+ kind: 'field'
309
+ }
310
+ ]
311
+ },
312
+ '10791800398362570014': {
313
+ error_kind: 'string',
314
+ string: 'extend_from_bounded_vec out of bounds'
315
+ },
316
+ '11021520179822076911': {
317
+ error_kind: 'string',
318
+ string: 'Attempted to delete past the length of a CapsuleArray'
319
+ },
320
+ '11692359521570349358': {
321
+ error_kind: 'fmtstring',
322
+ length: 40,
323
+ item_types: []
324
+ },
325
+ '12327971061804302172': {
326
+ error_kind: 'fmtstring',
327
+ length: 98,
328
+ item_types: []
329
+ },
330
+ '12469291177396340830': {
331
+ error_kind: 'string',
332
+ string: 'call to assert_max_bit_size'
333
+ },
334
+ '12913276134398371456': {
335
+ error_kind: 'string',
336
+ string: 'push out of bounds'
337
+ },
338
+ '13557316507370296400': {
339
+ error_kind: 'fmtstring',
340
+ length: 130,
341
+ item_types: [
342
+ {
343
+ kind: 'integer',
344
+ sign: 'unsigned',
345
+ width: 32
346
+ }
347
+ ]
348
+ },
349
+ '14938672389828944159': {
350
+ error_kind: 'fmtstring',
351
+ length: 146,
352
+ item_types: [
353
+ {
354
+ kind: 'integer',
355
+ sign: 'unsigned',
356
+ width: 32
357
+ }
358
+ ]
359
+ },
360
+ '14990209321349310352': {
361
+ error_kind: 'string',
362
+ string: 'attempt to add with overflow'
363
+ },
364
+ '15764276373176857197': {
365
+ error_kind: 'string',
366
+ string: 'Stack too deep'
367
+ },
368
+ '16431471497789672479': {
369
+ error_kind: 'string',
370
+ string: 'Index out of bounds'
371
+ },
372
+ '17531474008201752295': {
373
+ error_kind: 'fmtstring',
374
+ length: 133,
375
+ item_types: [
376
+ {
377
+ kind: 'integer',
378
+ sign: 'unsigned',
379
+ width: 32
380
+ }
381
+ ]
382
+ }
383
+ }
384
+ },
385
+ bytecode: Buffer.from([]),
386
+ debugSymbols: ''
387
+ },
388
+ {
389
+ ...{
390
+ functionType: FunctionType.PUBLIC,
391
+ name: 'public_dispatch',
392
+ isOnlySelf: false,
393
+ isStatic: false,
394
+ isInitializer: false,
395
+ parameters: [
396
+ {
397
+ name: 'selector',
398
+ type: {
399
+ kind: 'field'
400
+ },
401
+ visibility: 'private'
402
+ }
403
+ ],
404
+ returnTypes: [],
405
+ errorTypes: {
406
+ '5525725861591553972': {
407
+ error_kind: 'string',
408
+ string: 'rejecting all'
409
+ },
410
+ '11691217184967371519': {
411
+ error_kind: 'string',
412
+ string: 'Function is_reject_all can only be called statically'
413
+ },
414
+ '12511970388699677811': {
415
+ error_kind: 'fmtstring',
416
+ length: 27,
417
+ item_types: [
418
+ {
419
+ kind: 'field'
420
+ }
421
+ ]
422
+ },
423
+ '13455385521185560676': {
424
+ error_kind: 'string',
425
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
426
+ },
427
+ '13929691561421487185': {
428
+ error_kind: 'string',
429
+ string: 'Function _set_authorized can only be called by the same contract'
430
+ },
431
+ '14990209321349310352': {
432
+ error_kind: 'string',
433
+ string: 'attempt to add with overflow'
434
+ },
435
+ '15764276373176857197': {
436
+ error_kind: 'string',
437
+ string: 'Stack too deep'
438
+ },
439
+ '16431471497789672479': {
440
+ error_kind: 'string',
441
+ string: 'Index out of bounds'
442
+ },
443
+ '17089945683942782951': {
444
+ error_kind: 'string',
445
+ string: 'unauthorized'
446
+ },
447
+ '17312933876399746100': {
448
+ error_kind: 'string',
449
+ string: 'Function is_consumable can only be called statically'
450
+ }
451
+ }
452
+ },
453
+ bytecode: Buffer.from([]),
454
+ debugSymbols: ''
455
+ },
456
+ {
457
+ ...{
458
+ functionType: FunctionType.UTILITY,
459
+ name: 'sync_private_state',
460
+ isOnlySelf: false,
461
+ isStatic: false,
462
+ isInitializer: false,
463
+ parameters: [],
464
+ returnTypes: [],
465
+ errorTypes: {
466
+ '361444214588792908': {
467
+ error_kind: 'string',
468
+ string: 'attempt to multiply with overflow'
469
+ },
470
+ '992401946138144806': {
471
+ error_kind: 'string',
472
+ string: 'Attempted to read past end of BoundedVec'
473
+ },
474
+ '1998584279744703196': {
475
+ error_kind: 'string',
476
+ string: 'attempt to subtract with overflow'
477
+ },
478
+ '2967937905572420042': {
479
+ error_kind: 'fmtstring',
480
+ length: 61,
481
+ item_types: [
482
+ {
483
+ kind: 'field'
484
+ },
485
+ {
486
+ kind: 'field'
487
+ }
488
+ ]
489
+ },
490
+ '3330370348214585450': {
491
+ error_kind: 'fmtstring',
492
+ length: 48,
493
+ item_types: [
494
+ {
495
+ kind: 'field'
496
+ },
497
+ {
498
+ kind: 'field'
499
+ }
500
+ ]
501
+ },
502
+ '3670003311596808700': {
503
+ error_kind: 'fmtstring',
504
+ length: 77,
505
+ item_types: [
506
+ {
507
+ kind: 'integer',
508
+ sign: 'unsigned',
509
+ width: 32
510
+ }
511
+ ]
512
+ },
513
+ '4261968856572588300': {
514
+ error_kind: 'string',
515
+ string: 'Value does not fit in field'
516
+ },
517
+ '4440399188109668273': {
518
+ error_kind: 'string',
519
+ string: 'Input length must be a multiple of 32'
520
+ },
521
+ '9791669845391776238': {
522
+ error_kind: 'string',
523
+ string: '0 has a square root; you cannot claim it is not square'
524
+ },
525
+ '9885968605480832328': {
526
+ error_kind: 'string',
527
+ string: 'Attempted to read past the length of a CapsuleArray'
528
+ },
529
+ '10135509984888824963': {
530
+ error_kind: 'fmtstring',
531
+ length: 58,
532
+ item_types: [
533
+ {
534
+ kind: 'field'
535
+ }
536
+ ]
537
+ },
538
+ '10791800398362570014': {
539
+ error_kind: 'string',
540
+ string: 'extend_from_bounded_vec out of bounds'
541
+ },
542
+ '11021520179822076911': {
543
+ error_kind: 'string',
544
+ string: 'Attempted to delete past the length of a CapsuleArray'
545
+ },
546
+ '11692359521570349358': {
547
+ error_kind: 'fmtstring',
548
+ length: 40,
549
+ item_types: []
550
+ },
551
+ '12327971061804302172': {
552
+ error_kind: 'fmtstring',
553
+ length: 98,
554
+ item_types: []
555
+ },
556
+ '12469291177396340830': {
557
+ error_kind: 'string',
558
+ string: 'call to assert_max_bit_size'
559
+ },
560
+ '12913276134398371456': {
561
+ error_kind: 'string',
562
+ string: 'push out of bounds'
563
+ },
564
+ '13557316507370296400': {
565
+ error_kind: 'fmtstring',
566
+ length: 130,
567
+ item_types: [
568
+ {
569
+ kind: 'integer',
570
+ sign: 'unsigned',
571
+ width: 32
572
+ }
573
+ ]
574
+ },
575
+ '14938672389828944159': {
576
+ error_kind: 'fmtstring',
577
+ length: 146,
578
+ item_types: [
579
+ {
580
+ kind: 'integer',
581
+ sign: 'unsigned',
582
+ width: 32
583
+ }
584
+ ]
585
+ },
586
+ '14990209321349310352': {
587
+ error_kind: 'string',
588
+ string: 'attempt to add with overflow'
589
+ },
590
+ '15764276373176857197': {
591
+ error_kind: 'string',
592
+ string: 'Stack too deep'
593
+ },
594
+ '16431471497789672479': {
595
+ error_kind: 'string',
596
+ string: 'Index out of bounds'
597
+ },
598
+ '17531474008201752295': {
599
+ error_kind: 'fmtstring',
600
+ length: 133,
601
+ item_types: [
602
+ {
603
+ kind: 'integer',
604
+ sign: 'unsigned',
605
+ width: 32
606
+ }
607
+ ]
608
+ }
609
+ }
610
+ },
611
+ bytecode: Buffer.from([]),
612
+ debugSymbols: ''
613
+ }
614
+ ],
615
+ nonDispatchPublicFunctions: [
616
+ {
617
+ functionType: FunctionType.PUBLIC,
618
+ name: '_set_authorized',
619
+ isOnlySelf: true,
620
+ isStatic: false,
621
+ isInitializer: false,
622
+ parameters: [
623
+ {
624
+ name: 'approver',
625
+ type: {
626
+ kind: 'struct',
627
+ fields: [
628
+ {
629
+ name: 'inner',
630
+ type: {
631
+ kind: 'field'
632
+ }
633
+ }
634
+ ],
635
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
636
+ },
637
+ visibility: 'private'
638
+ },
639
+ {
640
+ name: 'message_hash',
641
+ type: {
642
+ kind: 'field'
643
+ },
644
+ visibility: 'private'
645
+ },
646
+ {
647
+ name: 'authorize',
648
+ type: {
649
+ kind: 'boolean'
650
+ },
651
+ visibility: 'private'
652
+ }
653
+ ],
654
+ returnTypes: [],
655
+ errorTypes: {
656
+ '13455385521185560676': {
657
+ error_kind: 'string',
658
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
659
+ },
660
+ '13929691561421487185': {
661
+ error_kind: 'string',
662
+ string: 'Function _set_authorized can only be called by the same contract'
663
+ },
664
+ '14990209321349310352': {
665
+ error_kind: 'string',
666
+ string: 'attempt to add with overflow'
667
+ },
668
+ '15764276373176857197': {
669
+ error_kind: 'string',
670
+ string: 'Stack too deep'
671
+ },
672
+ '16431471497789672479': {
673
+ error_kind: 'string',
674
+ string: 'Index out of bounds'
675
+ }
676
+ }
677
+ },
678
+ {
679
+ functionType: FunctionType.PUBLIC,
680
+ name: 'consume',
681
+ isOnlySelf: false,
682
+ isStatic: false,
683
+ isInitializer: false,
684
+ parameters: [
685
+ {
686
+ name: 'on_behalf_of',
687
+ type: {
688
+ kind: 'struct',
689
+ fields: [
690
+ {
691
+ name: 'inner',
692
+ type: {
693
+ kind: 'field'
694
+ }
695
+ }
696
+ ],
697
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
698
+ },
699
+ visibility: 'private'
700
+ },
701
+ {
702
+ name: 'inner_hash',
703
+ type: {
704
+ kind: 'field'
705
+ },
706
+ visibility: 'private'
707
+ }
708
+ ],
709
+ returnTypes: [
710
+ {
711
+ kind: 'field'
712
+ }
713
+ ],
714
+ errorTypes: {
715
+ '5525725861591553972': {
716
+ error_kind: 'string',
717
+ string: 'rejecting all'
718
+ },
719
+ '13455385521185560676': {
720
+ error_kind: 'string',
721
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
722
+ },
723
+ '14990209321349310352': {
724
+ error_kind: 'string',
725
+ string: 'attempt to add with overflow'
726
+ },
727
+ '15764276373176857197': {
728
+ error_kind: 'string',
729
+ string: 'Stack too deep'
730
+ },
731
+ '16431471497789672479': {
732
+ error_kind: 'string',
733
+ string: 'Index out of bounds'
734
+ },
735
+ '17089945683942782951': {
736
+ error_kind: 'string',
737
+ string: 'unauthorized'
738
+ }
739
+ }
740
+ },
741
+ {
742
+ functionType: FunctionType.PUBLIC,
743
+ name: 'is_consumable',
744
+ isOnlySelf: false,
745
+ isStatic: true,
746
+ isInitializer: false,
747
+ parameters: [
748
+ {
749
+ name: 'on_behalf_of',
750
+ type: {
751
+ kind: 'struct',
752
+ fields: [
753
+ {
754
+ name: 'inner',
755
+ type: {
756
+ kind: 'field'
757
+ }
758
+ }
759
+ ],
760
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
761
+ },
762
+ visibility: 'private'
763
+ },
764
+ {
765
+ name: 'message_hash',
766
+ type: {
767
+ kind: 'field'
768
+ },
769
+ visibility: 'private'
770
+ }
771
+ ],
772
+ returnTypes: [
773
+ {
774
+ kind: 'boolean'
775
+ }
776
+ ],
777
+ errorTypes: {
778
+ '13455385521185560676': {
779
+ error_kind: 'string',
780
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
781
+ },
782
+ '14990209321349310352': {
783
+ error_kind: 'string',
784
+ string: 'attempt to add with overflow'
785
+ },
786
+ '15764276373176857197': {
787
+ error_kind: 'string',
788
+ string: 'Stack too deep'
789
+ },
790
+ '16431471497789672479': {
791
+ error_kind: 'string',
792
+ string: 'Index out of bounds'
793
+ },
794
+ '17312933876399746100': {
795
+ error_kind: 'string',
796
+ string: 'Function is_consumable can only be called statically'
797
+ }
798
+ }
799
+ },
800
+ {
801
+ functionType: FunctionType.PUBLIC,
802
+ name: 'is_reject_all',
803
+ isOnlySelf: false,
804
+ isStatic: true,
805
+ isInitializer: false,
806
+ parameters: [
807
+ {
808
+ name: 'on_behalf_of',
809
+ type: {
810
+ kind: 'struct',
811
+ fields: [
812
+ {
813
+ name: 'inner',
814
+ type: {
815
+ kind: 'field'
816
+ }
817
+ }
818
+ ],
819
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
820
+ },
821
+ visibility: 'private'
822
+ }
823
+ ],
824
+ returnTypes: [
825
+ {
826
+ kind: 'boolean'
827
+ }
828
+ ],
829
+ errorTypes: {
830
+ '11691217184967371519': {
831
+ error_kind: 'string',
832
+ string: 'Function is_reject_all can only be called statically'
833
+ },
834
+ '13455385521185560676': {
835
+ error_kind: 'string',
836
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
837
+ },
838
+ '15764276373176857197': {
839
+ error_kind: 'string',
840
+ string: 'Stack too deep'
841
+ }
842
+ }
843
+ },
844
+ {
845
+ functionType: FunctionType.PUBLIC,
846
+ name: 'set_authorized',
847
+ isOnlySelf: false,
848
+ isStatic: false,
849
+ isInitializer: false,
850
+ parameters: [
851
+ {
852
+ name: 'message_hash',
853
+ type: {
854
+ kind: 'field'
855
+ },
856
+ visibility: 'private'
857
+ },
858
+ {
859
+ name: 'authorize',
860
+ type: {
861
+ kind: 'boolean'
862
+ },
863
+ visibility: 'private'
864
+ }
865
+ ],
866
+ returnTypes: [],
867
+ errorTypes: {
868
+ '13455385521185560676': {
869
+ error_kind: 'string',
870
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
871
+ },
872
+ '14990209321349310352': {
873
+ error_kind: 'string',
874
+ string: 'attempt to add with overflow'
875
+ },
876
+ '15764276373176857197': {
877
+ error_kind: 'string',
878
+ string: 'Stack too deep'
879
+ },
880
+ '16431471497789672479': {
881
+ error_kind: 'string',
882
+ string: 'Index out of bounds'
883
+ }
884
+ }
885
+ },
886
+ {
887
+ functionType: FunctionType.PUBLIC,
888
+ name: 'set_reject_all',
889
+ isOnlySelf: false,
890
+ isStatic: false,
891
+ isInitializer: false,
892
+ parameters: [
893
+ {
894
+ name: 'reject',
895
+ type: {
896
+ kind: 'boolean'
897
+ },
898
+ visibility: 'private'
899
+ }
900
+ ],
901
+ returnTypes: [],
902
+ errorTypes: {
903
+ '13455385521185560676': {
904
+ error_kind: 'string',
905
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
906
+ },
907
+ '15764276373176857197': {
908
+ error_kind: 'string',
909
+ string: 'Stack too deep'
910
+ }
911
+ }
912
+ }
913
+ ],
914
+ outputs: {
915
+ structs: {},
916
+ globals: {}
917
+ },
918
+ storageLayout: {},
919
+ fileMap: {}
920
+ };
921
+ export class AuthRegistryContract extends ContractBase {
922
+ constructor(wallet){
923
+ super(ProtocolContractAddress.AuthRegistry, AuthRegistryContractArtifact, wallet);
924
+ }
925
+ static at(wallet) {
926
+ return new AuthRegistryContract(wallet);
927
+ }
928
+ }