@aztec/aztec.js 0.0.1-commit.d3ec352c → 0.0.1-commit.d431d1c

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 (155) 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 +9 -10
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +21 -9
  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 +4 -3
  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 +6 -7
  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/block.d.ts +2 -2
  22. package/dest/api/block.d.ts.map +1 -1
  23. package/dest/api/block.js +1 -1
  24. package/dest/api/fields.d.ts +3 -2
  25. package/dest/api/fields.d.ts.map +1 -1
  26. package/dest/api/fields.js +2 -1
  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/wallet.d.ts +2 -2
  31. package/dest/api/wallet.d.ts.map +1 -1
  32. package/dest/api/wallet.js +1 -1
  33. package/dest/authorization/call_authorization_request.d.ts +23 -2
  34. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  35. package/dest/contract/batch_call.d.ts +1 -1
  36. package/dest/contract/batch_call.d.ts.map +1 -1
  37. package/dest/contract/batch_call.js +3 -1
  38. package/dest/contract/contract_base.d.ts +4 -1
  39. package/dest/contract/contract_base.d.ts.map +1 -1
  40. package/dest/contract/contract_function_interaction.d.ts +1 -1
  41. package/dest/contract/deploy_method.d.ts +2 -2
  42. package/dest/contract/deploy_method.d.ts.map +1 -1
  43. package/dest/contract/deploy_method.js +6 -5
  44. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  45. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  46. package/dest/contract/protocol_contracts/auth-registry.js +976 -0
  47. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
  48. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  49. package/dest/contract/protocol_contracts/contract-class-registry.js +797 -0
  50. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
  51. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  52. package/dest/contract/protocol_contracts/contract-instance-registry.js +871 -0
  53. package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
  54. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  55. package/dest/contract/protocol_contracts/fee-juice.js +840 -0
  56. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  57. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  58. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +576 -0
  59. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  60. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  61. package/dest/contract/protocol_contracts/public-checks.js +592 -0
  62. package/dest/contract/sent_tx.d.ts +2 -3
  63. package/dest/contract/sent_tx.d.ts.map +1 -1
  64. package/dest/contract/wait_for_proven.d.ts +2 -2
  65. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  66. package/dest/deployment/broadcast_function.js +4 -4
  67. package/dest/deployment/publish_class.js +3 -3
  68. package/dest/deployment/publish_instance.d.ts +2 -2
  69. package/dest/deployment/publish_instance.d.ts.map +1 -1
  70. package/dest/deployment/publish_instance.js +3 -3
  71. package/dest/ethereum/portal_manager.d.ts +9 -6
  72. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  73. package/dest/ethereum/portal_manager.js +17 -18
  74. package/dest/fee/fee_juice_payment_method_with_claim.js +1 -1
  75. package/dest/fee/private_fee_payment_method.js +1 -1
  76. package/dest/fee/public_fee_payment_method.js +1 -1
  77. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  78. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  79. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  80. package/dest/utils/abi_types.d.ts +2 -2
  81. package/dest/utils/abi_types.d.ts.map +1 -1
  82. package/dest/utils/authwit.d.ts +4 -2
  83. package/dest/utils/authwit.d.ts.map +1 -1
  84. package/dest/utils/authwit.js +4 -4
  85. package/dest/utils/cross_chain.d.ts +2 -2
  86. package/dest/utils/cross_chain.d.ts.map +1 -1
  87. package/dest/utils/fee_juice.js +1 -1
  88. package/dest/utils/field_compressed_string.js +1 -1
  89. package/dest/utils/pub_key.d.ts +2 -2
  90. package/dest/utils/pub_key.d.ts.map +1 -1
  91. package/dest/utils/pub_key.js +1 -1
  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 +6 -9
  96. package/dest/wallet/account_manager.d.ts.map +1 -1
  97. package/dest/wallet/account_manager.js +6 -12
  98. package/dest/wallet/deploy_account_method.d.ts +18 -4
  99. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  100. package/dest/wallet/deploy_account_method.js +8 -6
  101. package/dest/wallet/wallet.d.ts +242 -955
  102. package/dest/wallet/wallet.d.ts.map +1 -1
  103. package/dest/wallet/wallet.js +61 -88
  104. package/package.json +14 -12
  105. package/src/account/account.ts +34 -58
  106. package/src/account/account_contract.ts +7 -8
  107. package/src/account/account_with_secret_key.ts +34 -9
  108. package/src/account/index.ts +3 -2
  109. package/src/account/signerless_account.ts +14 -13
  110. package/src/api/account.ts +9 -3
  111. package/src/api/authorization.ts +1 -0
  112. package/src/api/block.ts +1 -1
  113. package/src/api/fields.ts +2 -1
  114. package/src/api/protocol.ts +7 -0
  115. package/src/api/wallet.ts +4 -2
  116. package/src/authorization/call_authorization_request.ts +1 -1
  117. package/src/contract/batch_call.ts +4 -2
  118. package/src/contract/deploy_method.ts +8 -7
  119. package/src/contract/protocol_contracts/auth-registry.ts +554 -0
  120. package/src/contract/protocol_contracts/contract-class-registry.ts +442 -0
  121. package/src/contract/protocol_contracts/contract-instance-registry.ts +502 -0
  122. package/src/contract/protocol_contracts/fee-juice.ts +466 -0
  123. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +338 -0
  124. package/src/contract/protocol_contracts/public-checks.ts +324 -0
  125. package/src/contract/sent_tx.ts +1 -2
  126. package/src/deployment/broadcast_function.ts +4 -4
  127. package/src/deployment/publish_class.ts +3 -3
  128. package/src/deployment/publish_instance.ts +3 -6
  129. package/src/ethereum/portal_manager.ts +20 -24
  130. package/src/fee/fee_juice_payment_method_with_claim.ts +1 -1
  131. package/src/fee/private_fee_payment_method.ts +1 -1
  132. package/src/fee/public_fee_payment_method.ts +1 -1
  133. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  134. package/src/utils/abi_types.ts +1 -1
  135. package/src/utils/authwit.ts +4 -4
  136. package/src/utils/cross_chain.ts +1 -1
  137. package/src/utils/fee_juice.ts +1 -1
  138. package/src/utils/field_compressed_string.ts +1 -1
  139. package/src/utils/pub_key.ts +2 -2
  140. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  141. package/src/wallet/account_manager.ts +6 -14
  142. package/src/wallet/deploy_account_method.ts +20 -11
  143. package/src/wallet/wallet.ts +162 -83
  144. package/dest/account/interface.d.ts +0 -19
  145. package/dest/account/interface.d.ts.map +0 -1
  146. package/dest/account/interface.js +0 -5
  147. package/dest/contract/protocol_contracts.d.ts +0 -9
  148. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  149. package/dest/contract/protocol_contracts.js +0 -26
  150. package/dest/contract/unsafe_contract.d.ts +0 -15
  151. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  152. package/dest/contract/unsafe_contract.js +0 -6
  153. package/src/account/interface.ts +0 -25
  154. package/src/contract/protocol_contracts.ts +0 -35
  155. package/src/contract/unsafe_contract.ts +0 -19
@@ -0,0 +1,502 @@
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
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
279
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
280
+ '5755400808989454547': {
281
+ error_kind: 'string',
282
+ string: 'Function get_update_delay can only be called statically',
283
+ },
284
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
285
+ '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
286
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
287
+ '13455385521185560676': {
288
+ error_kind: 'string',
289
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
290
+ },
291
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
292
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
293
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
294
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
295
+ },
296
+ },
297
+ bytecode: Buffer.from([]),
298
+ debugSymbols: '',
299
+ },
300
+ {
301
+ ...{
302
+ functionType: FunctionType.UTILITY,
303
+ name: 'sync_private_state',
304
+ isOnlySelf: false,
305
+ isStatic: false,
306
+ isInitializer: false,
307
+ parameters: [],
308
+ returnTypes: [],
309
+ errorTypes: {
310
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
311
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
312
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
313
+ '2967937905572420042': {
314
+ error_kind: 'fmtstring',
315
+ length: 61,
316
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
317
+ },
318
+ '3330370348214585450': {
319
+ error_kind: 'fmtstring',
320
+ length: 48,
321
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
322
+ },
323
+ '3670003311596808700': {
324
+ error_kind: 'fmtstring',
325
+ length: 77,
326
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
327
+ },
328
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
329
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
330
+ '9791669845391776238': {
331
+ error_kind: 'string',
332
+ string: '0 has a square root; you cannot claim it is not square',
333
+ },
334
+ '9885968605480832328': {
335
+ error_kind: 'string',
336
+ string: 'Attempted to read past the length of a CapsuleArray',
337
+ },
338
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
339
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
340
+ '11021520179822076911': {
341
+ error_kind: 'string',
342
+ string: 'Attempted to delete past the length of a CapsuleArray',
343
+ },
344
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
345
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
346
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
347
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
348
+ '13557316507370296400': {
349
+ error_kind: 'fmtstring',
350
+ length: 130,
351
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
352
+ },
353
+ '14938672389828944159': {
354
+ error_kind: 'fmtstring',
355
+ length: 146,
356
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
357
+ },
358
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
359
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
360
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
361
+ '17531474008201752295': {
362
+ error_kind: 'fmtstring',
363
+ length: 133,
364
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
365
+ },
366
+ },
367
+ },
368
+ bytecode: Buffer.from([]),
369
+ debugSymbols: '',
370
+ },
371
+ ],
372
+ nonDispatchPublicFunctions: [
373
+ {
374
+ functionType: FunctionType.PUBLIC,
375
+ name: 'get_update_delay',
376
+ isOnlySelf: false,
377
+ isStatic: true,
378
+ isInitializer: false,
379
+ parameters: [],
380
+ returnTypes: [{ kind: 'integer', sign: 'unsigned', width: 64 }],
381
+ errorTypes: {
382
+ '5755400808989454547': {
383
+ error_kind: 'string',
384
+ string: 'Function get_update_delay can only be called statically',
385
+ },
386
+ '13455385521185560676': {
387
+ error_kind: 'string',
388
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
389
+ },
390
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
391
+ },
392
+ },
393
+ {
394
+ functionType: FunctionType.PUBLIC,
395
+ name: 'set_update_delay',
396
+ isOnlySelf: false,
397
+ isStatic: false,
398
+ isInitializer: false,
399
+ parameters: [
400
+ { name: 'new_update_delay', type: { kind: 'integer', sign: 'unsigned', width: 64 }, visibility: 'private' },
401
+ ],
402
+ returnTypes: [],
403
+ errorTypes: {
404
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
405
+ '6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
406
+ '13455385521185560676': {
407
+ error_kind: 'string',
408
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
409
+ },
410
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
411
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
412
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
413
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
414
+ },
415
+ },
416
+ {
417
+ functionType: FunctionType.PUBLIC,
418
+ name: 'update',
419
+ isOnlySelf: false,
420
+ isStatic: false,
421
+ isInitializer: false,
422
+ parameters: [
423
+ {
424
+ name: 'new_contract_class_id',
425
+ type: {
426
+ kind: 'struct',
427
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
428
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId',
429
+ },
430
+ visibility: 'private',
431
+ },
432
+ ],
433
+ returnTypes: [],
434
+ errorTypes: {
435
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
436
+ '12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
437
+ '13455385521185560676': {
438
+ error_kind: 'string',
439
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
440
+ },
441
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
442
+ '15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
443
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
444
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
445
+ },
446
+ },
447
+ ],
448
+ outputs: { structs: {}, globals: {} },
449
+ storageLayout: {},
450
+ fileMap: {},
451
+ };
452
+
453
+ export class ContractInstanceRegistryContract extends ContractBase {
454
+ private constructor(wallet: Wallet) {
455
+ super(ProtocolContractAddress.ContractInstanceRegistry, ContractInstanceRegistryContractArtifact, wallet);
456
+ }
457
+
458
+ public static at(wallet: Wallet): ContractInstanceRegistryContract {
459
+ return new ContractInstanceRegistryContract(wallet);
460
+ }
461
+
462
+ declare public methods: {
463
+ /** get_update_delay() */
464
+ get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
465
+
466
+ /** process_message(message_ciphertext: struct, message_context: struct) */
467
+ process_message: ((
468
+ message_ciphertext: FieldLike[],
469
+ message_context: {
470
+ tx_hash: FieldLike;
471
+ unique_note_hashes_in_tx: FieldLike[];
472
+ first_nullifier_in_tx: FieldLike;
473
+ recipient: AztecAddressLike;
474
+ },
475
+ ) => ContractFunctionInteraction) &
476
+ Pick<ContractMethod, 'selector'>;
477
+
478
+ /** public_dispatch(selector: field) */
479
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
480
+
481
+ /** publish_for_public_execution(salt: field, contract_class_id: struct, initialization_hash: field, public_keys: struct, universal_deploy: boolean) */
482
+ publish_for_public_execution: ((
483
+ salt: FieldLike,
484
+ contract_class_id: WrappedFieldLike,
485
+ initialization_hash: FieldLike,
486
+ public_keys: PublicKeys,
487
+ universal_deploy: boolean,
488
+ ) => ContractFunctionInteraction) &
489
+ Pick<ContractMethod, 'selector'>;
490
+
491
+ /** set_update_delay(new_update_delay: integer) */
492
+ set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
493
+ Pick<ContractMethod, 'selector'>;
494
+
495
+ /** sync_private_state() */
496
+ sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
497
+
498
+ /** update(new_contract_class_id: struct) */
499
+ update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
500
+ Pick<ContractMethod, 'selector'>;
501
+ };
502
+ }