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

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