@aztec/aztec.js 0.0.1-commit.b655e406 → 0.0.1-commit.bf2612ae

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