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

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 +866 -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 +495 -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,784 @@
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 ContractClassRegistryContractArtifact = {
5
+ name: 'ContractClassRegistry',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PRIVATE,
10
+ name: 'broadcast_private_function',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'contract_class_id',
17
+ type: {
18
+ kind: 'struct',
19
+ fields: [
20
+ {
21
+ name: 'inner',
22
+ type: {
23
+ kind: 'field'
24
+ }
25
+ }
26
+ ],
27
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
28
+ },
29
+ visibility: 'private'
30
+ },
31
+ {
32
+ name: 'artifact_metadata_hash',
33
+ type: {
34
+ kind: 'field'
35
+ },
36
+ visibility: 'private'
37
+ },
38
+ {
39
+ name: 'utility_functions_artifact_tree_root',
40
+ type: {
41
+ kind: 'field'
42
+ },
43
+ visibility: 'private'
44
+ },
45
+ {
46
+ name: 'private_function_tree_sibling_path',
47
+ type: {
48
+ kind: 'array',
49
+ length: 7,
50
+ type: {
51
+ kind: 'field'
52
+ }
53
+ },
54
+ visibility: 'private'
55
+ },
56
+ {
57
+ name: 'private_function_tree_leaf_index',
58
+ type: {
59
+ kind: 'field'
60
+ },
61
+ visibility: 'private'
62
+ },
63
+ {
64
+ name: 'artifact_function_tree_sibling_path',
65
+ type: {
66
+ kind: 'array',
67
+ length: 7,
68
+ type: {
69
+ kind: 'field'
70
+ }
71
+ },
72
+ visibility: 'private'
73
+ },
74
+ {
75
+ name: 'artifact_function_tree_leaf_index',
76
+ type: {
77
+ kind: 'field'
78
+ },
79
+ visibility: 'private'
80
+ },
81
+ {
82
+ name: 'function_data',
83
+ type: {
84
+ kind: 'struct',
85
+ fields: [
86
+ {
87
+ name: 'selector',
88
+ type: {
89
+ kind: 'struct',
90
+ fields: [
91
+ {
92
+ name: 'inner',
93
+ type: {
94
+ kind: 'integer',
95
+ sign: 'unsigned',
96
+ width: 32
97
+ }
98
+ }
99
+ ],
100
+ path: 'aztec::protocol_types::abis::function_selector::FunctionSelector'
101
+ }
102
+ },
103
+ {
104
+ name: 'metadata_hash',
105
+ type: {
106
+ kind: 'field'
107
+ }
108
+ },
109
+ {
110
+ name: 'vk_hash',
111
+ type: {
112
+ kind: 'field'
113
+ }
114
+ }
115
+ ],
116
+ path: 'events::private_function_broadcasted::InnerPrivateFunction'
117
+ },
118
+ visibility: 'private'
119
+ }
120
+ ],
121
+ returnTypes: [],
122
+ errorTypes: {
123
+ '1998584279744703196': {
124
+ error_kind: 'string',
125
+ string: 'attempt to subtract with overflow'
126
+ },
127
+ '2754040237334517471': {
128
+ error_kind: 'fmtstring',
129
+ length: 92,
130
+ item_types: []
131
+ },
132
+ '14990209321349310352': {
133
+ error_kind: 'string',
134
+ string: 'attempt to add with overflow'
135
+ },
136
+ '15764276373176857197': {
137
+ error_kind: 'string',
138
+ string: 'Stack too deep'
139
+ },
140
+ '16431471497789672479': {
141
+ error_kind: 'string',
142
+ string: 'Index out of bounds'
143
+ }
144
+ }
145
+ },
146
+ bytecode: Buffer.from([]),
147
+ debugSymbols: ''
148
+ },
149
+ {
150
+ ...{
151
+ functionType: FunctionType.PRIVATE,
152
+ name: 'broadcast_utility_function',
153
+ isOnlySelf: false,
154
+ isStatic: false,
155
+ isInitializer: false,
156
+ parameters: [
157
+ {
158
+ name: 'contract_class_id',
159
+ type: {
160
+ kind: 'struct',
161
+ fields: [
162
+ {
163
+ name: 'inner',
164
+ type: {
165
+ kind: 'field'
166
+ }
167
+ }
168
+ ],
169
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
170
+ },
171
+ visibility: 'private'
172
+ },
173
+ {
174
+ name: 'artifact_metadata_hash',
175
+ type: {
176
+ kind: 'field'
177
+ },
178
+ visibility: 'private'
179
+ },
180
+ {
181
+ name: 'private_functions_artifact_tree_root',
182
+ type: {
183
+ kind: 'field'
184
+ },
185
+ visibility: 'private'
186
+ },
187
+ {
188
+ name: 'artifact_function_tree_sibling_path',
189
+ type: {
190
+ kind: 'array',
191
+ length: 7,
192
+ type: {
193
+ kind: 'field'
194
+ }
195
+ },
196
+ visibility: 'private'
197
+ },
198
+ {
199
+ name: 'artifact_function_tree_leaf_index',
200
+ type: {
201
+ kind: 'field'
202
+ },
203
+ visibility: 'private'
204
+ },
205
+ {
206
+ name: 'function_data',
207
+ type: {
208
+ kind: 'struct',
209
+ fields: [
210
+ {
211
+ name: 'selector',
212
+ type: {
213
+ kind: 'struct',
214
+ fields: [
215
+ {
216
+ name: 'inner',
217
+ type: {
218
+ kind: 'integer',
219
+ sign: 'unsigned',
220
+ width: 32
221
+ }
222
+ }
223
+ ],
224
+ path: 'aztec::protocol_types::abis::function_selector::FunctionSelector'
225
+ }
226
+ },
227
+ {
228
+ name: 'metadata_hash',
229
+ type: {
230
+ kind: 'field'
231
+ }
232
+ }
233
+ ],
234
+ path: 'events::utility_function_broadcasted::InnerUtilityFunction'
235
+ },
236
+ visibility: 'private'
237
+ }
238
+ ],
239
+ returnTypes: [],
240
+ errorTypes: {
241
+ '1998584279744703196': {
242
+ error_kind: 'string',
243
+ string: 'attempt to subtract with overflow'
244
+ },
245
+ '2754040237334517471': {
246
+ error_kind: 'fmtstring',
247
+ length: 92,
248
+ item_types: []
249
+ },
250
+ '14990209321349310352': {
251
+ error_kind: 'string',
252
+ string: 'attempt to add with overflow'
253
+ },
254
+ '15764276373176857197': {
255
+ error_kind: 'string',
256
+ string: 'Stack too deep'
257
+ },
258
+ '16431471497789672479': {
259
+ error_kind: 'string',
260
+ string: 'Index out of bounds'
261
+ }
262
+ }
263
+ },
264
+ bytecode: Buffer.from([]),
265
+ debugSymbols: ''
266
+ },
267
+ {
268
+ ...{
269
+ functionType: FunctionType.PRIVATE,
270
+ name: 'publish',
271
+ isOnlySelf: false,
272
+ isStatic: false,
273
+ isInitializer: false,
274
+ parameters: [
275
+ {
276
+ name: 'artifact_hash',
277
+ type: {
278
+ kind: 'field'
279
+ },
280
+ visibility: 'private'
281
+ },
282
+ {
283
+ name: 'private_functions_root',
284
+ type: {
285
+ kind: 'field'
286
+ },
287
+ visibility: 'private'
288
+ },
289
+ {
290
+ name: 'public_bytecode_commitment',
291
+ type: {
292
+ kind: 'field'
293
+ },
294
+ visibility: 'private'
295
+ }
296
+ ],
297
+ returnTypes: [],
298
+ errorTypes: {
299
+ '361444214588792908': {
300
+ error_kind: 'string',
301
+ string: 'attempt to multiply with overflow'
302
+ },
303
+ '922421554006670918': {
304
+ error_kind: 'string',
305
+ string: 'num_items is greater than MAX_ITEMS'
306
+ },
307
+ '1998584279744703196': {
308
+ error_kind: 'string',
309
+ string: 'attempt to subtract with overflow'
310
+ },
311
+ '2754040237334517471': {
312
+ error_kind: 'fmtstring',
313
+ length: 92,
314
+ item_types: []
315
+ },
316
+ '10965409165809799877': {
317
+ error_kind: 'string',
318
+ string: 'Given in_len to absorb is larger than the input array len'
319
+ },
320
+ '14990209321349310352': {
321
+ error_kind: 'string',
322
+ string: 'attempt to add with overflow'
323
+ },
324
+ '15669273164684982983': {
325
+ error_kind: 'string',
326
+ string: 'num_permutations is greater than MAX_PERMUTATIONS'
327
+ },
328
+ '15764276373176857197': {
329
+ error_kind: 'string',
330
+ string: 'Stack too deep'
331
+ },
332
+ '16431471497789672479': {
333
+ error_kind: 'string',
334
+ string: 'Index out of bounds'
335
+ },
336
+ '16450579948625159707': {
337
+ error_kind: 'string',
338
+ string: 'Sponge must be in cache_size=1'
339
+ }
340
+ }
341
+ },
342
+ bytecode: Buffer.from([]),
343
+ debugSymbols: ''
344
+ },
345
+ {
346
+ ...{
347
+ functionType: FunctionType.UTILITY,
348
+ name: 'process_message',
349
+ isOnlySelf: false,
350
+ isStatic: false,
351
+ isInitializer: false,
352
+ parameters: [
353
+ {
354
+ name: 'message_ciphertext',
355
+ type: {
356
+ kind: 'struct',
357
+ fields: [
358
+ {
359
+ name: 'storage',
360
+ type: {
361
+ kind: 'array',
362
+ length: 17,
363
+ type: {
364
+ kind: 'field'
365
+ }
366
+ }
367
+ },
368
+ {
369
+ name: 'len',
370
+ type: {
371
+ kind: 'integer',
372
+ sign: 'unsigned',
373
+ width: 32
374
+ }
375
+ }
376
+ ],
377
+ path: 'std::collections::bounded_vec::BoundedVec'
378
+ },
379
+ visibility: 'private'
380
+ },
381
+ {
382
+ name: 'message_context',
383
+ type: {
384
+ kind: 'struct',
385
+ fields: [
386
+ {
387
+ name: 'tx_hash',
388
+ type: {
389
+ kind: 'field'
390
+ }
391
+ },
392
+ {
393
+ name: 'unique_note_hashes_in_tx',
394
+ type: {
395
+ kind: 'struct',
396
+ fields: [
397
+ {
398
+ name: 'storage',
399
+ type: {
400
+ kind: 'array',
401
+ length: 64,
402
+ type: {
403
+ kind: 'field'
404
+ }
405
+ }
406
+ },
407
+ {
408
+ name: 'len',
409
+ type: {
410
+ kind: 'integer',
411
+ sign: 'unsigned',
412
+ width: 32
413
+ }
414
+ }
415
+ ],
416
+ path: 'std::collections::bounded_vec::BoundedVec'
417
+ }
418
+ },
419
+ {
420
+ name: 'first_nullifier_in_tx',
421
+ type: {
422
+ kind: 'field'
423
+ }
424
+ },
425
+ {
426
+ name: 'recipient',
427
+ type: {
428
+ kind: 'struct',
429
+ fields: [
430
+ {
431
+ name: 'inner',
432
+ type: {
433
+ kind: 'field'
434
+ }
435
+ }
436
+ ],
437
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
438
+ }
439
+ }
440
+ ],
441
+ path: 'aztec::messages::processing::message_context::MessageContext'
442
+ },
443
+ visibility: 'private'
444
+ }
445
+ ],
446
+ returnTypes: [],
447
+ errorTypes: {
448
+ '361444214588792908': {
449
+ error_kind: 'string',
450
+ string: 'attempt to multiply with overflow'
451
+ },
452
+ '992401946138144806': {
453
+ error_kind: 'string',
454
+ string: 'Attempted to read past end of BoundedVec'
455
+ },
456
+ '1998584279744703196': {
457
+ error_kind: 'string',
458
+ string: 'attempt to subtract with overflow'
459
+ },
460
+ '2967937905572420042': {
461
+ error_kind: 'fmtstring',
462
+ length: 61,
463
+ item_types: [
464
+ {
465
+ kind: 'field'
466
+ },
467
+ {
468
+ kind: 'field'
469
+ }
470
+ ]
471
+ },
472
+ '3330370348214585450': {
473
+ error_kind: 'fmtstring',
474
+ length: 48,
475
+ item_types: [
476
+ {
477
+ kind: 'field'
478
+ },
479
+ {
480
+ kind: 'field'
481
+ }
482
+ ]
483
+ },
484
+ '3670003311596808700': {
485
+ error_kind: 'fmtstring',
486
+ length: 77,
487
+ item_types: [
488
+ {
489
+ kind: 'integer',
490
+ sign: 'unsigned',
491
+ width: 32
492
+ }
493
+ ]
494
+ },
495
+ '4261968856572588300': {
496
+ error_kind: 'string',
497
+ string: 'Value does not fit in field'
498
+ },
499
+ '4440399188109668273': {
500
+ error_kind: 'string',
501
+ string: 'Input length must be a multiple of 32'
502
+ },
503
+ '9791669845391776238': {
504
+ error_kind: 'string',
505
+ string: '0 has a square root; you cannot claim it is not square'
506
+ },
507
+ '10135509984888824963': {
508
+ error_kind: 'fmtstring',
509
+ length: 58,
510
+ item_types: [
511
+ {
512
+ kind: 'field'
513
+ }
514
+ ]
515
+ },
516
+ '10791800398362570014': {
517
+ error_kind: 'string',
518
+ string: 'extend_from_bounded_vec out of bounds'
519
+ },
520
+ '11692359521570349358': {
521
+ error_kind: 'fmtstring',
522
+ length: 40,
523
+ item_types: []
524
+ },
525
+ '12469291177396340830': {
526
+ error_kind: 'string',
527
+ string: 'call to assert_max_bit_size'
528
+ },
529
+ '12913276134398371456': {
530
+ error_kind: 'string',
531
+ string: 'push out of bounds'
532
+ },
533
+ '13557316507370296400': {
534
+ error_kind: 'fmtstring',
535
+ length: 130,
536
+ item_types: [
537
+ {
538
+ kind: 'integer',
539
+ sign: 'unsigned',
540
+ width: 32
541
+ }
542
+ ]
543
+ },
544
+ '14938672389828944159': {
545
+ error_kind: 'fmtstring',
546
+ length: 146,
547
+ item_types: [
548
+ {
549
+ kind: 'integer',
550
+ sign: 'unsigned',
551
+ width: 32
552
+ }
553
+ ]
554
+ },
555
+ '14990209321349310352': {
556
+ error_kind: 'string',
557
+ string: 'attempt to add with overflow'
558
+ },
559
+ '15764276373176857197': {
560
+ error_kind: 'string',
561
+ string: 'Stack too deep'
562
+ },
563
+ '16431471497789672479': {
564
+ error_kind: 'string',
565
+ string: 'Index out of bounds'
566
+ },
567
+ '17531474008201752295': {
568
+ error_kind: 'fmtstring',
569
+ length: 133,
570
+ item_types: [
571
+ {
572
+ kind: 'integer',
573
+ sign: 'unsigned',
574
+ width: 32
575
+ }
576
+ ]
577
+ }
578
+ }
579
+ },
580
+ bytecode: Buffer.from([]),
581
+ debugSymbols: ''
582
+ },
583
+ {
584
+ ...{
585
+ functionType: FunctionType.UTILITY,
586
+ name: 'sync_state',
587
+ isOnlySelf: false,
588
+ isStatic: false,
589
+ isInitializer: false,
590
+ parameters: [],
591
+ returnTypes: [],
592
+ errorTypes: {
593
+ '361444214588792908': {
594
+ error_kind: 'string',
595
+ string: 'attempt to multiply with overflow'
596
+ },
597
+ '992401946138144806': {
598
+ error_kind: 'string',
599
+ string: 'Attempted to read past end of BoundedVec'
600
+ },
601
+ '1998584279744703196': {
602
+ error_kind: 'string',
603
+ string: 'attempt to subtract with overflow'
604
+ },
605
+ '2967937905572420042': {
606
+ error_kind: 'fmtstring',
607
+ length: 61,
608
+ item_types: [
609
+ {
610
+ kind: 'field'
611
+ },
612
+ {
613
+ kind: 'field'
614
+ }
615
+ ]
616
+ },
617
+ '3330370348214585450': {
618
+ error_kind: 'fmtstring',
619
+ length: 48,
620
+ item_types: [
621
+ {
622
+ kind: 'field'
623
+ },
624
+ {
625
+ kind: 'field'
626
+ }
627
+ ]
628
+ },
629
+ '3670003311596808700': {
630
+ error_kind: 'fmtstring',
631
+ length: 77,
632
+ item_types: [
633
+ {
634
+ kind: 'integer',
635
+ sign: 'unsigned',
636
+ width: 32
637
+ }
638
+ ]
639
+ },
640
+ '4261968856572588300': {
641
+ error_kind: 'string',
642
+ string: 'Value does not fit in field'
643
+ },
644
+ '4440399188109668273': {
645
+ error_kind: 'string',
646
+ string: 'Input length must be a multiple of 32'
647
+ },
648
+ '9791669845391776238': {
649
+ error_kind: 'string',
650
+ string: '0 has a square root; you cannot claim it is not square'
651
+ },
652
+ '9885968605480832328': {
653
+ error_kind: 'string',
654
+ string: 'Attempted to read past the length of a CapsuleArray'
655
+ },
656
+ '10135509984888824963': {
657
+ error_kind: 'fmtstring',
658
+ length: 58,
659
+ item_types: [
660
+ {
661
+ kind: 'field'
662
+ }
663
+ ]
664
+ },
665
+ '10791800398362570014': {
666
+ error_kind: 'string',
667
+ string: 'extend_from_bounded_vec out of bounds'
668
+ },
669
+ '11021520179822076911': {
670
+ error_kind: 'string',
671
+ string: 'Attempted to delete past the length of a CapsuleArray'
672
+ },
673
+ '11692359521570349358': {
674
+ error_kind: 'fmtstring',
675
+ length: 40,
676
+ item_types: []
677
+ },
678
+ '12327971061804302172': {
679
+ error_kind: 'fmtstring',
680
+ length: 98,
681
+ item_types: []
682
+ },
683
+ '12469291177396340830': {
684
+ error_kind: 'string',
685
+ string: 'call to assert_max_bit_size'
686
+ },
687
+ '12913276134398371456': {
688
+ error_kind: 'string',
689
+ string: 'push out of bounds'
690
+ },
691
+ '13557316507370296400': {
692
+ error_kind: 'fmtstring',
693
+ length: 130,
694
+ item_types: [
695
+ {
696
+ kind: 'integer',
697
+ sign: 'unsigned',
698
+ width: 32
699
+ }
700
+ ]
701
+ },
702
+ '14938672389828944159': {
703
+ error_kind: 'fmtstring',
704
+ length: 146,
705
+ item_types: [
706
+ {
707
+ kind: 'integer',
708
+ sign: 'unsigned',
709
+ width: 32
710
+ }
711
+ ]
712
+ },
713
+ '14990209321349310352': {
714
+ error_kind: 'string',
715
+ string: 'attempt to add with overflow'
716
+ },
717
+ '15764276373176857197': {
718
+ error_kind: 'string',
719
+ string: 'Stack too deep'
720
+ },
721
+ '16431471497789672479': {
722
+ error_kind: 'string',
723
+ string: 'Index out of bounds'
724
+ },
725
+ '17531474008201752295': {
726
+ error_kind: 'fmtstring',
727
+ length: 133,
728
+ item_types: [
729
+ {
730
+ kind: 'integer',
731
+ sign: 'unsigned',
732
+ width: 32
733
+ }
734
+ ]
735
+ }
736
+ }
737
+ },
738
+ bytecode: Buffer.from([]),
739
+ debugSymbols: ''
740
+ },
741
+ {
742
+ ...{
743
+ functionType: FunctionType.PUBLIC,
744
+ name: 'public_dispatch',
745
+ isOnlySelf: false,
746
+ isStatic: false,
747
+ isInitializer: false,
748
+ parameters: [
749
+ {
750
+ name: 'selector',
751
+ type: {
752
+ kind: 'field'
753
+ },
754
+ visibility: 'private'
755
+ }
756
+ ],
757
+ returnTypes: [],
758
+ errorTypes: {
759
+ '1335198680857977525': {
760
+ error_kind: 'string',
761
+ string: 'No public functions'
762
+ }
763
+ }
764
+ },
765
+ bytecode: Buffer.from([]),
766
+ debugSymbols: ''
767
+ }
768
+ ],
769
+ nonDispatchPublicFunctions: [],
770
+ outputs: {
771
+ structs: {},
772
+ globals: {}
773
+ },
774
+ storageLayout: {},
775
+ fileMap: {}
776
+ };
777
+ export class ContractClassRegistryContract extends ContractBase {
778
+ constructor(wallet){
779
+ super(ProtocolContractAddress.ContractClassRegistry, ContractClassRegistryContractArtifact, wallet);
780
+ }
781
+ static at(wallet) {
782
+ return new ContractClassRegistryContract(wallet);
783
+ }
784
+ }