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

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,493 @@
1
+ /* Autogenerated file, do not edit! */
2
+ /* eslint-disable */
3
+ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
4
+ import { FunctionType } from '@aztec/stdlib/abi';
5
+
6
+ import type { ContractArtifact } from '../../api/abi.js';
7
+ import { PublicKeys } from '../../api/keys.js';
8
+ import type {
9
+ AztecAddressLike,
10
+ EthAddressLike,
11
+ FieldLike,
12
+ FunctionSelectorLike,
13
+ WrappedFieldLike,
14
+ } from '../../utils/abi_types.js';
15
+ import type { Wallet } from '../../wallet/wallet.js';
16
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
17
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
18
+
19
+ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
20
+ name: 'ContractInstanceRegistry',
21
+ functions: [
22
+ {
23
+ ...{
24
+ functionType: FunctionType.PRIVATE,
25
+ name: 'publish_for_public_execution',
26
+ isOnlySelf: false,
27
+ isStatic: false,
28
+ isInitializer: false,
29
+ parameters: [
30
+ { name: 'salt', type: { kind: 'field' }, visibility: 'private' },
31
+ {
32
+ name: 'contract_class_id',
33
+ type: {
34
+ kind: 'struct',
35
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
36
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId',
37
+ },
38
+ visibility: 'private',
39
+ },
40
+ { name: 'initialization_hash', type: { kind: 'field' }, visibility: 'private' },
41
+ {
42
+ name: 'public_keys',
43
+ type: {
44
+ kind: 'struct',
45
+ fields: [
46
+ {
47
+ name: 'npk_m',
48
+ type: {
49
+ kind: 'struct',
50
+ fields: [
51
+ {
52
+ name: 'inner',
53
+ type: {
54
+ kind: 'struct',
55
+ fields: [
56
+ { name: 'x', type: { kind: 'field' } },
57
+ { name: 'y', type: { kind: 'field' } },
58
+ { name: 'is_infinite', type: { kind: 'boolean' } },
59
+ ],
60
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint',
61
+ },
62
+ },
63
+ ],
64
+ path: 'aztec::protocol_types::public_keys::NpkM',
65
+ },
66
+ },
67
+ {
68
+ name: 'ivpk_m',
69
+ type: {
70
+ kind: 'struct',
71
+ fields: [
72
+ {
73
+ name: 'inner',
74
+ type: {
75
+ kind: 'struct',
76
+ fields: [
77
+ { name: 'x', type: { kind: 'field' } },
78
+ { name: 'y', type: { kind: 'field' } },
79
+ { name: 'is_infinite', type: { kind: 'boolean' } },
80
+ ],
81
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint',
82
+ },
83
+ },
84
+ ],
85
+ path: 'aztec::protocol_types::public_keys::IvpkM',
86
+ },
87
+ },
88
+ {
89
+ name: 'ovpk_m',
90
+ type: {
91
+ kind: 'struct',
92
+ fields: [
93
+ {
94
+ name: 'inner',
95
+ type: {
96
+ kind: 'struct',
97
+ fields: [
98
+ { name: 'x', type: { kind: 'field' } },
99
+ { name: 'y', type: { kind: 'field' } },
100
+ { name: 'is_infinite', type: { kind: 'boolean' } },
101
+ ],
102
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint',
103
+ },
104
+ },
105
+ ],
106
+ path: 'aztec::protocol_types::public_keys::OvpkM',
107
+ },
108
+ },
109
+ {
110
+ name: 'tpk_m',
111
+ type: {
112
+ kind: 'struct',
113
+ fields: [
114
+ {
115
+ name: 'inner',
116
+ type: {
117
+ kind: 'struct',
118
+ fields: [
119
+ { name: 'x', type: { kind: 'field' } },
120
+ { name: 'y', type: { kind: 'field' } },
121
+ { name: 'is_infinite', type: { kind: 'boolean' } },
122
+ ],
123
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint',
124
+ },
125
+ },
126
+ ],
127
+ path: 'aztec::protocol_types::public_keys::TpkM',
128
+ },
129
+ },
130
+ ],
131
+ path: 'aztec::protocol_types::public_keys::PublicKeys',
132
+ },
133
+ visibility: 'private',
134
+ },
135
+ { name: 'universal_deploy', type: { kind: 'boolean' }, visibility: 'private' },
136
+ ],
137
+ returnTypes: [],
138
+ errorTypes: {
139
+ '718532354304118388': { error_kind: 'string', string: 'Point not on curve' },
140
+ '2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
141
+ '4135474769840782447': {
142
+ error_kind: 'string',
143
+ string: 'Point at infinity should have canonical representation (0 0)',
144
+ },
145
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
146
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
147
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
148
+ },
149
+ },
150
+ bytecode: Buffer.from([]),
151
+ debugSymbols: '',
152
+ },
153
+ {
154
+ ...{
155
+ functionType: FunctionType.UTILITY,
156
+ name: 'process_message',
157
+ isOnlySelf: false,
158
+ isStatic: false,
159
+ isInitializer: false,
160
+ parameters: [
161
+ {
162
+ name: 'message_ciphertext',
163
+ type: {
164
+ kind: 'struct',
165
+ fields: [
166
+ { name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
167
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
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
+ { name: 'tx_hash', type: { kind: 'field' } },
179
+ {
180
+ name: 'unique_note_hashes_in_tx',
181
+ type: {
182
+ kind: 'struct',
183
+ fields: [
184
+ { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
185
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
186
+ ],
187
+ path: 'std::collections::bounded_vec::BoundedVec',
188
+ },
189
+ },
190
+ { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
191
+ {
192
+ name: 'recipient',
193
+ type: {
194
+ kind: 'struct',
195
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
196
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
197
+ },
198
+ },
199
+ ],
200
+ path: 'aztec::messages::processing::message_context::MessageContext',
201
+ },
202
+ visibility: 'private',
203
+ },
204
+ ],
205
+ returnTypes: [],
206
+ errorTypes: {
207
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
208
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
209
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
210
+ '2967937905572420042': {
211
+ error_kind: 'fmtstring',
212
+ length: 61,
213
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
214
+ },
215
+ '3330370348214585450': {
216
+ error_kind: 'fmtstring',
217
+ length: 48,
218
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
219
+ },
220
+ '3670003311596808700': {
221
+ error_kind: 'fmtstring',
222
+ length: 77,
223
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
224
+ },
225
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
226
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
227
+ '9791669845391776238': {
228
+ error_kind: 'string',
229
+ string: '0 has a square root; you cannot claim it is not square',
230
+ },
231
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
232
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
233
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
234
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
235
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
236
+ '13557316507370296400': {
237
+ error_kind: 'fmtstring',
238
+ length: 130,
239
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
240
+ },
241
+ '14938672389828944159': {
242
+ error_kind: 'fmtstring',
243
+ length: 146,
244
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
245
+ },
246
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
247
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
248
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
249
+ '17531474008201752295': {
250
+ error_kind: 'fmtstring',
251
+ length: 133,
252
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
253
+ },
254
+ },
255
+ },
256
+ bytecode: Buffer.from([]),
257
+ debugSymbols: '',
258
+ },
259
+ {
260
+ ...{
261
+ functionType: FunctionType.PUBLIC,
262
+ name: 'public_dispatch',
263
+ isOnlySelf: false,
264
+ isStatic: false,
265
+ isInitializer: false,
266
+ parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
267
+ returnTypes: [],
268
+ errorTypes: {
269
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
270
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
271
+ '5755400808989454547': {
272
+ error_kind: 'string',
273
+ string: 'Function get_update_delay can only be called statically',
274
+ },
275
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
276
+ '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
277
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
278
+ '13455385521185560676': {
279
+ error_kind: 'string',
280
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
281
+ },
282
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
283
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
284
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
285
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
286
+ },
287
+ },
288
+ bytecode: Buffer.from([]),
289
+ debugSymbols: '',
290
+ },
291
+ {
292
+ ...{
293
+ functionType: FunctionType.UTILITY,
294
+ name: 'sync_private_state',
295
+ isOnlySelf: false,
296
+ isStatic: false,
297
+ isInitializer: false,
298
+ parameters: [],
299
+ returnTypes: [],
300
+ errorTypes: {
301
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
302
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
303
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
304
+ '2967937905572420042': {
305
+ error_kind: 'fmtstring',
306
+ length: 61,
307
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
308
+ },
309
+ '3330370348214585450': {
310
+ error_kind: 'fmtstring',
311
+ length: 48,
312
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
313
+ },
314
+ '3670003311596808700': {
315
+ error_kind: 'fmtstring',
316
+ length: 77,
317
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
318
+ },
319
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
320
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
321
+ '9791669845391776238': {
322
+ error_kind: 'string',
323
+ string: '0 has a square root; you cannot claim it is not square',
324
+ },
325
+ '9885968605480832328': {
326
+ error_kind: 'string',
327
+ string: 'Attempted to read past the length of a CapsuleArray',
328
+ },
329
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
330
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
331
+ '11021520179822076911': {
332
+ error_kind: 'string',
333
+ string: 'Attempted to delete past the length of a CapsuleArray',
334
+ },
335
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
336
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
337
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
338
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
339
+ '13557316507370296400': {
340
+ error_kind: 'fmtstring',
341
+ length: 130,
342
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
343
+ },
344
+ '14938672389828944159': {
345
+ error_kind: 'fmtstring',
346
+ length: 146,
347
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
348
+ },
349
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
350
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
351
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
352
+ '17531474008201752295': {
353
+ error_kind: 'fmtstring',
354
+ length: 133,
355
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
356
+ },
357
+ },
358
+ },
359
+ bytecode: Buffer.from([]),
360
+ debugSymbols: '',
361
+ },
362
+ ],
363
+ nonDispatchPublicFunctions: [
364
+ {
365
+ functionType: FunctionType.PUBLIC,
366
+ name: 'get_update_delay',
367
+ isOnlySelf: false,
368
+ isStatic: true,
369
+ isInitializer: false,
370
+ parameters: [],
371
+ returnTypes: [{ kind: 'integer', sign: 'unsigned', width: 64 }],
372
+ errorTypes: {
373
+ '5755400808989454547': {
374
+ error_kind: 'string',
375
+ string: 'Function get_update_delay can only be called statically',
376
+ },
377
+ '13455385521185560676': {
378
+ error_kind: 'string',
379
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
380
+ },
381
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
382
+ },
383
+ },
384
+ {
385
+ functionType: FunctionType.PUBLIC,
386
+ name: 'set_update_delay',
387
+ isOnlySelf: false,
388
+ isStatic: false,
389
+ isInitializer: false,
390
+ parameters: [
391
+ { name: 'new_update_delay', type: { kind: 'integer', sign: 'unsigned', width: 64 }, visibility: 'private' },
392
+ ],
393
+ returnTypes: [],
394
+ errorTypes: {
395
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
396
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
397
+ '13455385521185560676': {
398
+ error_kind: 'string',
399
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
400
+ },
401
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
402
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
403
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
404
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
405
+ },
406
+ },
407
+ {
408
+ functionType: FunctionType.PUBLIC,
409
+ name: 'update',
410
+ isOnlySelf: false,
411
+ isStatic: false,
412
+ isInitializer: false,
413
+ parameters: [
414
+ {
415
+ name: 'new_contract_class_id',
416
+ type: {
417
+ kind: 'struct',
418
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
419
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId',
420
+ },
421
+ visibility: 'private',
422
+ },
423
+ ],
424
+ returnTypes: [],
425
+ errorTypes: {
426
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
427
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
428
+ '13455385521185560676': {
429
+ error_kind: 'string',
430
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
431
+ },
432
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
433
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
434
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
435
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
436
+ },
437
+ },
438
+ ],
439
+ outputs: { structs: {}, globals: {} },
440
+ storageLayout: {},
441
+ fileMap: {},
442
+ };
443
+
444
+ export class ContractInstanceRegistryContract extends ContractBase {
445
+ private constructor(wallet: Wallet) {
446
+ super(ProtocolContractAddress.ContractInstanceRegistry, ContractInstanceRegistryContractArtifact, wallet);
447
+ }
448
+
449
+ public static at(wallet: Wallet): ContractInstanceRegistryContract {
450
+ return new ContractInstanceRegistryContract(wallet);
451
+ }
452
+
453
+ declare public methods: {
454
+ /** get_update_delay() */
455
+ get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
456
+
457
+ /** process_message(message_ciphertext: struct, message_context: struct) */
458
+ process_message: ((
459
+ message_ciphertext: FieldLike[],
460
+ message_context: {
461
+ tx_hash: FieldLike;
462
+ unique_note_hashes_in_tx: FieldLike[];
463
+ first_nullifier_in_tx: FieldLike;
464
+ recipient: AztecAddressLike;
465
+ },
466
+ ) => ContractFunctionInteraction) &
467
+ Pick<ContractMethod, 'selector'>;
468
+
469
+ /** public_dispatch(selector: field) */
470
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
471
+
472
+ /** publish_for_public_execution(salt: field, contract_class_id: struct, initialization_hash: field, public_keys: struct, universal_deploy: boolean) */
473
+ publish_for_public_execution: ((
474
+ salt: FieldLike,
475
+ contract_class_id: WrappedFieldLike,
476
+ initialization_hash: FieldLike,
477
+ public_keys: PublicKeys,
478
+ universal_deploy: boolean,
479
+ ) => ContractFunctionInteraction) &
480
+ Pick<ContractMethod, 'selector'>;
481
+
482
+ /** set_update_delay(new_update_delay: integer) */
483
+ set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
484
+ Pick<ContractMethod, 'selector'>;
485
+
486
+ /** sync_private_state() */
487
+ sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
488
+
489
+ /** update(new_contract_class_id: struct) */
490
+ update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
491
+ Pick<ContractMethod, 'selector'>;
492
+ };
493
+ }