@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,501 @@
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
+ '9885968605480832328': {
232
+ error_kind: 'string',
233
+ string: 'Attempted to read past the length of a CapsuleArray',
234
+ },
235
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
236
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
237
+ '11021520179822076911': {
238
+ error_kind: 'string',
239
+ string: 'Attempted to delete past the length of a CapsuleArray',
240
+ },
241
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
242
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
243
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
244
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
245
+ '13557316507370296400': {
246
+ error_kind: 'fmtstring',
247
+ length: 130,
248
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
249
+ },
250
+ '14938672389828944159': {
251
+ error_kind: 'fmtstring',
252
+ length: 146,
253
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
254
+ },
255
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
256
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
257
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
258
+ '17531474008201752295': {
259
+ error_kind: 'fmtstring',
260
+ length: 133,
261
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
262
+ },
263
+ },
264
+ },
265
+ bytecode: Buffer.from([]),
266
+ debugSymbols: '',
267
+ },
268
+ {
269
+ ...{
270
+ functionType: FunctionType.PUBLIC,
271
+ name: 'public_dispatch',
272
+ isOnlySelf: false,
273
+ isStatic: false,
274
+ isInitializer: false,
275
+ parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
276
+ returnTypes: [],
277
+ errorTypes: {
278
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
279
+ '5755400808989454547': {
280
+ error_kind: 'string',
281
+ string: 'Function get_update_delay can only be called statically',
282
+ },
283
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
284
+ '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
285
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
286
+ '13455385521185560676': {
287
+ error_kind: 'string',
288
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
289
+ },
290
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
291
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
292
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
293
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
294
+ },
295
+ },
296
+ bytecode: Buffer.from([]),
297
+ debugSymbols: '',
298
+ },
299
+ {
300
+ ...{
301
+ functionType: FunctionType.UTILITY,
302
+ name: 'sync_private_state',
303
+ isOnlySelf: false,
304
+ isStatic: false,
305
+ isInitializer: false,
306
+ parameters: [],
307
+ returnTypes: [],
308
+ errorTypes: {
309
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
310
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
311
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
312
+ '2967937905572420042': {
313
+ error_kind: 'fmtstring',
314
+ length: 61,
315
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
316
+ },
317
+ '3330370348214585450': {
318
+ error_kind: 'fmtstring',
319
+ length: 48,
320
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
321
+ },
322
+ '3670003311596808700': {
323
+ error_kind: 'fmtstring',
324
+ length: 77,
325
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
326
+ },
327
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
328
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
329
+ '9791669845391776238': {
330
+ error_kind: 'string',
331
+ string: '0 has a square root; you cannot claim it is not square',
332
+ },
333
+ '9885968605480832328': {
334
+ error_kind: 'string',
335
+ string: 'Attempted to read past the length of a CapsuleArray',
336
+ },
337
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
338
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
339
+ '11021520179822076911': {
340
+ error_kind: 'string',
341
+ string: 'Attempted to delete past the length of a CapsuleArray',
342
+ },
343
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
344
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
345
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
346
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
347
+ '13557316507370296400': {
348
+ error_kind: 'fmtstring',
349
+ length: 130,
350
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
351
+ },
352
+ '14938672389828944159': {
353
+ error_kind: 'fmtstring',
354
+ length: 146,
355
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
356
+ },
357
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
358
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
359
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
360
+ '17531474008201752295': {
361
+ error_kind: 'fmtstring',
362
+ length: 133,
363
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
364
+ },
365
+ },
366
+ },
367
+ bytecode: Buffer.from([]),
368
+ debugSymbols: '',
369
+ },
370
+ ],
371
+ nonDispatchPublicFunctions: [
372
+ {
373
+ functionType: FunctionType.PUBLIC,
374
+ name: 'get_update_delay',
375
+ isOnlySelf: false,
376
+ isStatic: true,
377
+ isInitializer: false,
378
+ parameters: [],
379
+ returnTypes: [{ kind: 'integer', sign: 'unsigned', width: 64 }],
380
+ errorTypes: {
381
+ '5755400808989454547': {
382
+ error_kind: 'string',
383
+ string: 'Function get_update_delay can only be called statically',
384
+ },
385
+ '13455385521185560676': {
386
+ error_kind: 'string',
387
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
388
+ },
389
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
390
+ },
391
+ },
392
+ {
393
+ functionType: FunctionType.PUBLIC,
394
+ name: 'set_update_delay',
395
+ isOnlySelf: false,
396
+ isStatic: false,
397
+ isInitializer: false,
398
+ parameters: [
399
+ { name: 'new_update_delay', type: { kind: 'integer', sign: 'unsigned', width: 64 }, visibility: 'private' },
400
+ ],
401
+ returnTypes: [],
402
+ errorTypes: {
403
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
404
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
405
+ '13455385521185560676': {
406
+ error_kind: 'string',
407
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
408
+ },
409
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
410
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
411
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
412
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
413
+ },
414
+ },
415
+ {
416
+ functionType: FunctionType.PUBLIC,
417
+ name: 'update',
418
+ isOnlySelf: false,
419
+ isStatic: false,
420
+ isInitializer: false,
421
+ parameters: [
422
+ {
423
+ name: 'new_contract_class_id',
424
+ type: {
425
+ kind: 'struct',
426
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
427
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId',
428
+ },
429
+ visibility: 'private',
430
+ },
431
+ ],
432
+ returnTypes: [],
433
+ errorTypes: {
434
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
435
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
436
+ '13455385521185560676': {
437
+ error_kind: 'string',
438
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
439
+ },
440
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
441
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
442
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
443
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
444
+ },
445
+ },
446
+ ],
447
+ outputs: { structs: {}, globals: {} },
448
+ storageLayout: {},
449
+ fileMap: {},
450
+ };
451
+
452
+ export class ContractInstanceRegistryContract extends ContractBase {
453
+ private constructor(wallet: Wallet) {
454
+ super(ProtocolContractAddress.ContractInstanceRegistry, ContractInstanceRegistryContractArtifact, wallet);
455
+ }
456
+
457
+ public static at(wallet: Wallet): ContractInstanceRegistryContract {
458
+ return new ContractInstanceRegistryContract(wallet);
459
+ }
460
+
461
+ declare public methods: {
462
+ /** get_update_delay() */
463
+ get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
464
+
465
+ /** process_message(message_ciphertext: struct, message_context: struct) */
466
+ process_message: ((
467
+ message_ciphertext: FieldLike[],
468
+ message_context: {
469
+ tx_hash: FieldLike;
470
+ unique_note_hashes_in_tx: FieldLike[];
471
+ first_nullifier_in_tx: FieldLike;
472
+ recipient: AztecAddressLike;
473
+ },
474
+ ) => ContractFunctionInteraction) &
475
+ Pick<ContractMethod, 'selector'>;
476
+
477
+ /** public_dispatch(selector: field) */
478
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
479
+
480
+ /** publish_for_public_execution(salt: field, contract_class_id: struct, initialization_hash: field, public_keys: struct, universal_deploy: boolean) */
481
+ publish_for_public_execution: ((
482
+ salt: FieldLike,
483
+ contract_class_id: WrappedFieldLike,
484
+ initialization_hash: FieldLike,
485
+ public_keys: PublicKeys,
486
+ universal_deploy: boolean,
487
+ ) => ContractFunctionInteraction) &
488
+ Pick<ContractMethod, 'selector'>;
489
+
490
+ /** set_update_delay(new_update_delay: integer) */
491
+ set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
492
+ Pick<ContractMethod, 'selector'>;
493
+
494
+ /** sync_private_state() */
495
+ sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
496
+
497
+ /** update(new_contract_class_id: struct) */
498
+ update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
499
+ Pick<ContractMethod, 'selector'>;
500
+ };
501
+ }