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

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 (261) 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 +19 -13
  25. package/dest/api/contract.d.ts.map +1 -1
  26. package/dest/api/contract.js +17 -11
  27. package/dest/api/crypto.d.ts +1 -1
  28. package/dest/api/deployment.d.ts +1 -2
  29. package/dest/api/deployment.d.ts.map +1 -1
  30. package/dest/api/deployment.js +0 -1
  31. package/dest/api/eth_address.d.ts +1 -1
  32. package/dest/api/ethereum.d.ts +1 -1
  33. package/dest/api/events.d.ts +10 -6
  34. package/dest/api/events.d.ts.map +1 -1
  35. package/dest/api/events.js +30 -20
  36. package/dest/api/fee.d.ts +1 -1
  37. package/dest/api/fee_testing.d.ts +1 -1
  38. package/dest/api/fields.d.ts +4 -2
  39. package/dest/api/fields.d.ts.map +1 -1
  40. package/dest/api/fields.js +3 -1
  41. package/dest/api/keys.d.ts +2 -2
  42. package/dest/api/keys.js +1 -1
  43. package/dest/api/log.d.ts +1 -1
  44. package/dest/api/messaging.d.ts +1 -1
  45. package/dest/api/node.d.ts +8 -4
  46. package/dest/api/node.d.ts.map +1 -1
  47. package/dest/api/node.js +7 -3
  48. package/dest/api/note.d.ts +2 -2
  49. package/dest/api/note.d.ts.map +1 -1
  50. package/dest/api/note.js +1 -1
  51. package/dest/api/protocol.d.ts +7 -1
  52. package/dest/api/protocol.d.ts.map +1 -1
  53. package/dest/api/protocol.js +6 -0
  54. package/dest/api/trees.d.ts +1 -1
  55. package/dest/api/tx.d.ts +2 -2
  56. package/dest/api/tx.d.ts.map +1 -1
  57. package/dest/api/tx.js +1 -1
  58. package/dest/api/utils.d.ts +1 -1
  59. package/dest/api/wallet.d.ts +3 -3
  60. package/dest/api/wallet.d.ts.map +1 -1
  61. package/dest/api/wallet.js +2 -2
  62. package/dest/authorization/call_authorization_request.d.ts +2 -2
  63. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  64. package/dest/contract/base_contract_interaction.d.ts +8 -11
  65. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  66. package/dest/contract/base_contract_interaction.js +5 -17
  67. package/dest/contract/batch_call.d.ts +8 -9
  68. package/dest/contract/batch_call.d.ts.map +1 -1
  69. package/dest/contract/batch_call.js +59 -36
  70. package/dest/contract/checker.d.ts +1 -1
  71. package/dest/contract/contract.d.ts +2 -2
  72. package/dest/contract/contract.d.ts.map +1 -1
  73. package/dest/contract/contract.js +4 -5
  74. package/dest/contract/contract_base.d.ts +6 -10
  75. package/dest/contract/contract_base.d.ts.map +1 -1
  76. package/dest/contract/contract_base.js +5 -12
  77. package/dest/contract/contract_function_interaction.d.ts +5 -14
  78. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  79. package/dest/contract/contract_function_interaction.js +18 -12
  80. package/dest/contract/deploy_method.d.ts +85 -24
  81. package/dest/contract/deploy_method.d.ts.map +1 -1
  82. package/dest/contract/deploy_method.js +71 -36
  83. package/dest/contract/get_gas_limits.d.ts +1 -1
  84. package/dest/contract/get_gas_limits.js +3 -3
  85. package/dest/contract/interaction_options.d.ts +51 -7
  86. package/dest/contract/interaction_options.d.ts.map +1 -1
  87. package/dest/contract/interaction_options.js +12 -11
  88. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  89. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  90. package/dest/contract/protocol_contracts/auth-registry.js +1005 -0
  91. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  92. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  93. package/dest/contract/protocol_contracts/contract-class-registry.js +139 -0
  94. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  95. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  96. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  97. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  98. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  99. package/dest/contract/protocol_contracts/fee-juice.js +434 -0
  100. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  101. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  102. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +601 -0
  103. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  104. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  105. package/dest/contract/protocol_contracts/public-checks.js +609 -0
  106. package/dest/contract/wait_for_proven.d.ts +2 -2
  107. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  108. package/dest/contract/wait_for_proven.js +1 -1
  109. package/dest/contract/wait_opts.d.ts +16 -0
  110. package/dest/contract/wait_opts.d.ts.map +1 -0
  111. package/dest/contract/wait_opts.js +5 -0
  112. package/dest/deployment/contract_deployer.d.ts +1 -1
  113. package/dest/deployment/contract_deployer.d.ts.map +1 -1
  114. package/dest/deployment/contract_deployer.js +1 -1
  115. package/dest/deployment/publish_class.d.ts +1 -1
  116. package/dest/deployment/publish_class.js +3 -3
  117. package/dest/deployment/publish_instance.d.ts +2 -2
  118. package/dest/deployment/publish_instance.d.ts.map +1 -1
  119. package/dest/deployment/publish_instance.js +3 -3
  120. package/dest/ethereum/portal_manager.d.ts +7 -6
  121. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  122. package/dest/ethereum/portal_manager.js +48 -22
  123. package/dest/fee/fee_juice_payment_method_with_claim.d.ts +2 -2
  124. package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +1 -1
  125. package/dest/fee/fee_juice_payment_method_with_claim.js +9 -9
  126. package/dest/fee/fee_payment_method.d.ts +2 -2
  127. package/dest/fee/fee_payment_method.d.ts.map +1 -1
  128. package/dest/fee/private_fee_payment_method.d.ts +2 -2
  129. package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
  130. package/dest/fee/private_fee_payment_method.js +14 -14
  131. package/dest/fee/public_fee_payment_method.d.ts +2 -2
  132. package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
  133. package/dest/fee/public_fee_payment_method.js +14 -14
  134. package/dest/fee/sponsored_fee_payment.d.ts +2 -2
  135. package/dest/fee/sponsored_fee_payment.d.ts.map +1 -1
  136. package/dest/fee/sponsored_fee_payment.js +5 -5
  137. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  138. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  139. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  140. package/dest/utils/abi_types.d.ts +2 -2
  141. package/dest/utils/abi_types.d.ts.map +1 -1
  142. package/dest/utils/authwit.d.ts +14 -12
  143. package/dest/utils/authwit.d.ts.map +1 -1
  144. package/dest/utils/authwit.js +27 -20
  145. package/dest/utils/cross_chain.d.ts +2 -2
  146. package/dest/utils/cross_chain.d.ts.map +1 -1
  147. package/dest/utils/fee_juice.d.ts +2 -2
  148. package/dest/utils/fee_juice.js +2 -2
  149. package/dest/utils/field_compressed_string.d.ts +1 -1
  150. package/dest/utils/field_compressed_string.d.ts.map +1 -1
  151. package/dest/utils/field_compressed_string.js +1 -1
  152. package/dest/utils/node.d.ts +13 -2
  153. package/dest/utils/node.d.ts.map +1 -1
  154. package/dest/utils/node.js +46 -0
  155. package/dest/utils/pub_key.d.ts +2 -2
  156. package/dest/utils/pub_key.d.ts.map +1 -1
  157. package/dest/utils/pub_key.js +1 -1
  158. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +6 -9
  159. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  160. package/dest/wallet/account_entrypoint_meta_payment_method.js +29 -44
  161. package/dest/wallet/account_manager.d.ts +3 -9
  162. package/dest/wallet/account_manager.d.ts.map +1 -1
  163. package/dest/wallet/account_manager.js +6 -12
  164. package/dest/wallet/capabilities.d.ts +452 -0
  165. package/dest/wallet/capabilities.d.ts.map +1 -0
  166. package/dest/wallet/capabilities.js +3 -0
  167. package/dest/wallet/deploy_account_method.d.ts +49 -10
  168. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  169. package/dest/wallet/deploy_account_method.js +35 -7
  170. package/dest/wallet/index.d.ts +2 -2
  171. package/dest/wallet/index.d.ts.map +1 -1
  172. package/dest/wallet/index.js +1 -1
  173. package/dest/wallet/wallet.d.ts +1853 -1533
  174. package/dest/wallet/wallet.d.ts.map +1 -1
  175. package/dest/wallet/wallet.js +223 -124
  176. package/package.json +27 -15
  177. package/src/account/account.ts +35 -60
  178. package/src/account/account_contract.ts +7 -8
  179. package/src/account/account_with_secret_key.ts +34 -9
  180. package/src/account/index.ts +3 -2
  181. package/src/account/signerless_account.ts +15 -15
  182. package/src/api/account.ts +10 -3
  183. package/src/api/authorization.ts +1 -0
  184. package/src/api/contract.ts +26 -10
  185. package/src/api/deployment.ts +0 -1
  186. package/src/api/events.ts +35 -27
  187. package/src/api/fields.ts +3 -1
  188. package/src/api/keys.ts +2 -2
  189. package/src/api/node.ts +7 -3
  190. package/src/api/note.ts +1 -1
  191. package/src/api/protocol.ts +7 -0
  192. package/src/api/tx.ts +4 -0
  193. package/src/api/wallet.ts +52 -9
  194. package/src/authorization/call_authorization_request.ts +1 -1
  195. package/src/contract/base_contract_interaction.ts +27 -16
  196. package/src/contract/batch_call.ts +62 -48
  197. package/src/contract/contract.ts +7 -5
  198. package/src/contract/contract_base.ts +5 -15
  199. package/src/contract/contract_function_interaction.ts +26 -17
  200. package/src/contract/deploy_method.ts +175 -47
  201. package/src/contract/get_gas_limits.ts +3 -3
  202. package/src/contract/interaction_options.ts +59 -13
  203. package/src/contract/protocol_contracts/auth-registry.ts +553 -0
  204. package/src/contract/protocol_contracts/contract-class-registry.ts +99 -0
  205. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  206. package/src/contract/protocol_contracts/fee-juice.ts +266 -0
  207. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +336 -0
  208. package/src/contract/protocol_contracts/public-checks.ts +320 -0
  209. package/src/contract/wait_for_proven.ts +1 -1
  210. package/src/contract/wait_opts.ts +21 -0
  211. package/src/deployment/contract_deployer.ts +3 -2
  212. package/src/deployment/publish_class.ts +3 -3
  213. package/src/deployment/publish_instance.ts +3 -6
  214. package/src/ethereum/portal_manager.ts +65 -34
  215. package/src/fee/fee_juice_payment_method_with_claim.ts +9 -7
  216. package/src/fee/fee_payment_method.ts +1 -1
  217. package/src/fee/private_fee_payment_method.ts +12 -10
  218. package/src/fee/public_fee_payment_method.ts +13 -11
  219. package/src/fee/sponsored_fee_payment.ts +6 -4
  220. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  221. package/src/utils/abi_types.ts +1 -1
  222. package/src/utils/authwit.ts +40 -22
  223. package/src/utils/cross_chain.ts +1 -1
  224. package/src/utils/fee_juice.ts +2 -2
  225. package/src/utils/field_compressed_string.ts +1 -1
  226. package/src/utils/node.ts +62 -0
  227. package/src/utils/pub_key.ts +2 -2
  228. package/src/wallet/account_entrypoint_meta_payment_method.ts +29 -60
  229. package/src/wallet/account_manager.ts +7 -15
  230. package/src/wallet/capabilities.ts +500 -0
  231. package/src/wallet/deploy_account_method.ts +78 -16
  232. package/src/wallet/index.ts +1 -1
  233. package/src/wallet/wallet.ts +387 -166
  234. package/dest/account/interface.d.ts +0 -19
  235. package/dest/account/interface.d.ts.map +0 -1
  236. package/dest/account/interface.js +0 -5
  237. package/dest/contract/deploy_sent_tx.d.ts +0 -43
  238. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  239. package/dest/contract/deploy_sent_tx.js +0 -40
  240. package/dest/contract/protocol_contracts.d.ts +0 -9
  241. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  242. package/dest/contract/protocol_contracts.js +0 -26
  243. package/dest/contract/sent_tx.d.ts +0 -51
  244. package/dest/contract/sent_tx.d.ts.map +0 -1
  245. package/dest/contract/sent_tx.js +0 -90
  246. package/dest/contract/unsafe_contract.d.ts +0 -15
  247. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  248. package/dest/contract/unsafe_contract.js +0 -6
  249. package/dest/deployment/broadcast_function.d.ts +0 -24
  250. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  251. package/dest/deployment/broadcast_function.js +0 -74
  252. package/dest/wallet/base_wallet.d.ts +0 -91
  253. package/dest/wallet/base_wallet.d.ts.map +0 -1
  254. package/dest/wallet/base_wallet.js +0 -238
  255. package/src/account/interface.ts +0 -25
  256. package/src/contract/deploy_sent_tx.ts +0 -68
  257. package/src/contract/protocol_contracts.ts +0 -35
  258. package/src/contract/sent_tx.ts +0 -130
  259. package/src/contract/unsafe_contract.ts +0 -19
  260. package/src/deployment/broadcast_function.ts +0 -148
  261. package/src/wallet/base_wallet.ts +0 -350
@@ -0,0 +1,15 @@
1
+ import type { FieldLike } from '../../utils/abi_types.js';
2
+ import type { Wallet } from '../../wallet/wallet.js';
3
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
4
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
5
+ export declare class ContractClassRegistryContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): ContractClassRegistryContract;
8
+ methods: {
9
+ /** public_dispatch(selector: field) */
10
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
11
+ /** publish(artifact_hash: field, private_functions_root: field, public_bytecode_commitment: field) */
12
+ publish: ((artifact_hash: FieldLike, private_functions_root: FieldLike, public_bytecode_commitment: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
13
+ };
14
+ }
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3QtY2xhc3MtcmVnaXN0cnkuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdC9wcm90b2NvbF9jb250cmFjdHMvY29udHJhY3QtY2xhc3MtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsT0FBTyxLQUFLLEVBR1YsU0FBUyxFQUdWLE1BQU0sMEJBQTBCLENBQUM7QUFDbEMsT0FBTyxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDckQsT0FBTyxFQUFFLFlBQVksRUFBRSxLQUFLLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3hFLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBNkRsRixxQkFBYSw2QkFBOEIsU0FBUSxZQUFZO0lBQzdELE9BQU8sZUFFTjtJQUVELE9BQWMsRUFBRSxDQUFDLE1BQU0sRUFBRSxNQUFNLEdBQUcsNkJBQTZCLENBRTlEO0lBRWMsT0FBTyxFQUFFO1FBQ3RCLHVDQUF1QztRQUN2QyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxTQUFTLEtBQUssMkJBQTJCLENBQUMsR0FBRyxJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRTNHLHNHQUFzRztRQUN0RyxPQUFPLEVBQUUsQ0FBQyxDQUNSLGFBQWEsRUFBRSxTQUFTLEVBQ3hCLHNCQUFzQixFQUFFLFNBQVMsRUFDakMsMEJBQTBCLEVBQUUsU0FBUyxLQUNsQywyQkFBMkIsQ0FBQyxHQUMvQixJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0tBQ3BDLENBQUM7Q0FDSCJ9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-class-registry.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/contract-class-registry.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAGV,SAAS,EAGV,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AA6DlF,qBAAa,6BAA8B,SAAQ,YAAY;IAC7D,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,6BAA6B,CAE9D;IAEc,OAAO,EAAE;QACtB,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAE3G,sGAAsG;QACtG,OAAO,EAAE,CAAC,CACR,aAAa,EAAE,SAAS,EACxB,sBAAsB,EAAE,SAAS,EACjC,0BAA0B,EAAE,SAAS,KAClC,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACpC,CAAC;CACH"}
@@ -0,0 +1,139 @@
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: 'publish',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'artifact_hash',
17
+ type: {
18
+ kind: 'field'
19
+ },
20
+ visibility: 'private'
21
+ },
22
+ {
23
+ name: 'private_functions_root',
24
+ type: {
25
+ kind: 'field'
26
+ },
27
+ visibility: 'private'
28
+ },
29
+ {
30
+ name: 'public_bytecode_commitment',
31
+ type: {
32
+ kind: 'field'
33
+ },
34
+ visibility: 'private'
35
+ }
36
+ ],
37
+ returnTypes: [],
38
+ errorTypes: {
39
+ '361444214588792908': {
40
+ error_kind: 'string',
41
+ string: 'attempt to multiply with overflow'
42
+ },
43
+ '922421554006670918': {
44
+ error_kind: 'string',
45
+ string: 'num_items is greater than MAX_ITEMS'
46
+ },
47
+ '1998584279744703196': {
48
+ error_kind: 'string',
49
+ string: 'attempt to subtract with overflow'
50
+ },
51
+ '9475115977882098926': {
52
+ error_kind: 'string',
53
+ string: 'Extra bytes in the last field of the bytecode'
54
+ },
55
+ '10965409165809799877': {
56
+ error_kind: 'string',
57
+ string: 'Given in_len to absorb is larger than the input array len'
58
+ },
59
+ '12469291177396340830': {
60
+ error_kind: 'string',
61
+ string: 'call to assert_max_bit_size'
62
+ },
63
+ '14990209321349310352': {
64
+ error_kind: 'string',
65
+ string: 'attempt to add with overflow'
66
+ },
67
+ '15669273164684982983': {
68
+ error_kind: 'string',
69
+ string: 'num_permutations is greater than MAX_PERMUTATIONS'
70
+ },
71
+ '15764276373176857197': {
72
+ error_kind: 'string',
73
+ string: 'Stack too deep'
74
+ },
75
+ '15835548349546956319': {
76
+ error_kind: 'string',
77
+ string: 'Field failed to decompose into specified 32 limbs'
78
+ },
79
+ '16431471497789672479': {
80
+ error_kind: 'string',
81
+ string: 'Index out of bounds'
82
+ },
83
+ '16450579948625159707': {
84
+ error_kind: 'string',
85
+ string: 'Sponge must be in cache_size=1'
86
+ },
87
+ '17655676068928457687': {
88
+ error_kind: 'string',
89
+ string: 'Reader did not read all data'
90
+ }
91
+ }
92
+ },
93
+ bytecode: Buffer.from([]),
94
+ debugSymbols: ''
95
+ },
96
+ {
97
+ ...{
98
+ functionType: FunctionType.PUBLIC,
99
+ name: 'public_dispatch',
100
+ isOnlySelf: false,
101
+ isStatic: false,
102
+ isInitializer: false,
103
+ parameters: [
104
+ {
105
+ name: 'selector',
106
+ type: {
107
+ kind: 'field'
108
+ },
109
+ visibility: 'private'
110
+ }
111
+ ],
112
+ returnTypes: [],
113
+ errorTypes: {
114
+ '1335198680857977525': {
115
+ error_kind: 'string',
116
+ string: 'No public functions'
117
+ }
118
+ }
119
+ },
120
+ bytecode: Buffer.from([]),
121
+ debugSymbols: ''
122
+ }
123
+ ],
124
+ nonDispatchPublicFunctions: [],
125
+ outputs: {
126
+ structs: {},
127
+ globals: {}
128
+ },
129
+ storageLayout: {},
130
+ fileMap: {}
131
+ };
132
+ export class ContractClassRegistryContract extends ContractBase {
133
+ constructor(wallet){
134
+ super(ProtocolContractAddress.ContractClassRegistry, ContractClassRegistryContractArtifact, wallet);
135
+ }
136
+ static at(wallet) {
137
+ return new ContractClassRegistryContract(wallet);
138
+ }
139
+ }
@@ -0,0 +1,22 @@
1
+ import { PublicKeys } from '../../api/keys.js';
2
+ import type { FieldLike, WrappedFieldLike } from '../../utils/abi_types.js';
3
+ import type { Wallet } from '../../wallet/wallet.js';
4
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
5
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
6
+ export declare class ContractInstanceRegistryContract extends ContractBase {
7
+ private constructor();
8
+ static at(wallet: Wallet): ContractInstanceRegistryContract;
9
+ methods: {
10
+ /** get_update_delay() */
11
+ get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
12
+ /** public_dispatch(selector: field) */
13
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
14
+ /** publish_for_public_execution(salt: field, contract_class_id: struct, initialization_hash: field, public_keys: struct, universal_deploy: boolean) */
15
+ publish_for_public_execution: ((salt: FieldLike, contract_class_id: WrappedFieldLike, initialization_hash: FieldLike, public_keys: PublicKeys, universal_deploy: boolean) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
16
+ /** set_update_delay(new_update_delay: integer) */
17
+ set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
18
+ /** update(new_contract_class_id: struct) */
19
+ update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
20
+ };
21
+ }
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3QtaW5zdGFuY2UtcmVnaXN0cnkuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdC9wcm90b2NvbF9jb250cmFjdHMvY29udHJhY3QtaW5zdGFuY2UtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQy9DLE9BQU8sS0FBSyxFQUdWLFNBQVMsRUFFVCxnQkFBZ0IsRUFDakIsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsWUFBWSxFQUFFLEtBQUssY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUEyUGxGLHFCQUFhLGdDQUFpQyxTQUFRLFlBQVk7SUFDaEUsT0FBTyxlQUVOO0lBRUQsT0FBYyxFQUFFLENBQUMsTUFBTSxFQUFFLE1BQU0sR0FBRyxnQ0FBZ0MsQ0FFakU7SUFFYyxPQUFPLEVBQUU7UUFDdEIseUJBQXlCO1FBQ3pCLGdCQUFnQixFQUFFLENBQUMsTUFBTSwyQkFBMkIsQ0FBQyxHQUFHLElBQUksQ0FBQyxjQUFjLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFekYsdUNBQXVDO1FBQ3ZDLGVBQWUsRUFBRSxDQUFDLENBQUMsUUFBUSxFQUFFLFNBQVMsS0FBSywyQkFBMkIsQ0FBQyxHQUFHLElBQUksQ0FBQyxjQUFjLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFM0csdUpBQXVKO1FBQ3ZKLDRCQUE0QixFQUFFLENBQUMsQ0FDN0IsSUFBSSxFQUFFLFNBQVMsRUFDZixpQkFBaUIsRUFBRSxnQkFBZ0IsRUFDbkMsbUJBQW1CLEVBQUUsU0FBUyxFQUM5QixXQUFXLEVBQUUsVUFBVSxFQUN2QixnQkFBZ0IsRUFBRSxPQUFPLEtBQ3RCLDJCQUEyQixDQUFDLEdBQy9CLElBQUksQ0FBQyxjQUFjLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFbkMsa0RBQWtEO1FBQ2xELGdCQUFnQixFQUFFLENBQUMsQ0FBQyxnQkFBZ0IsRUFBRSxNQUFNLEdBQUcsTUFBTSxLQUFLLDJCQUEyQixDQUFDLEdBQ3BGLElBQUksQ0FBQyxjQUFjLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFbkMsNENBQTRDO1FBQzVDLE1BQU0sRUFBRSxDQUFDLENBQUMscUJBQXFCLEVBQUUsZ0JBQWdCLEtBQUssMkJBQTJCLENBQUMsR0FDaEYsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztLQUNwQyxDQUFDO0NBQ0gifQ==
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-instance-registry.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/contract-instance-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAGV,SAAS,EAET,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AA2PlF,qBAAa,gCAAiC,SAAQ,YAAY;IAChE,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,gCAAgC,CAEjE;IAEc,OAAO,EAAE;QACtB,yBAAyB;QACzB,gBAAgB,EAAE,CAAC,MAAM,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEzF,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAE3G,uJAAuJ;QACvJ,4BAA4B,EAAE,CAAC,CAC7B,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,gBAAgB,EACnC,mBAAmB,EAAE,SAAS,EAC9B,WAAW,EAAE,UAAU,EACvB,gBAAgB,EAAE,OAAO,KACtB,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,kDAAkD;QAClD,gBAAgB,EAAE,CAAC,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,KAAK,2BAA2B,CAAC,GACpF,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,4CAA4C;QAC5C,MAAM,EAAE,CAAC,CAAC,qBAAqB,EAAE,gBAAgB,KAAK,2BAA2B,CAAC,GAChF,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACpC,CAAC;CACH"}
@@ -0,0 +1,465 @@
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.PUBLIC,
10
+ name: 'public_dispatch',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'selector',
17
+ type: {
18
+ kind: 'field'
19
+ },
20
+ visibility: 'private'
21
+ }
22
+ ],
23
+ returnTypes: [],
24
+ errorTypes: {
25
+ '361444214588792908': {
26
+ error_kind: 'string',
27
+ string: 'attempt to multiply with overflow'
28
+ },
29
+ '1998584279744703196': {
30
+ error_kind: 'string',
31
+ string: 'attempt to subtract with overflow'
32
+ },
33
+ '5755400808989454547': {
34
+ error_kind: 'string',
35
+ string: 'Function get_update_delay can only be called statically'
36
+ },
37
+ '6804164082532189961': {
38
+ error_kind: 'string',
39
+ string: 'New update delay is too low'
40
+ },
41
+ '12511970388699677811': {
42
+ error_kind: 'fmtstring',
43
+ length: 27,
44
+ item_types: [
45
+ {
46
+ kind: 'field'
47
+ }
48
+ ]
49
+ },
50
+ '12579274401768182412': {
51
+ error_kind: 'string',
52
+ string: 'New contract class is not registered'
53
+ },
54
+ '13455385521185560676': {
55
+ error_kind: 'string',
56
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
57
+ },
58
+ '14990209321349310352': {
59
+ error_kind: 'string',
60
+ string: 'attempt to add with overflow'
61
+ },
62
+ '15353471697975175405': {
63
+ error_kind: 'string',
64
+ string: 'msg.sender is not deployed'
65
+ },
66
+ '15764276373176857197': {
67
+ error_kind: 'string',
68
+ string: 'Stack too deep'
69
+ },
70
+ '16431471497789672479': {
71
+ error_kind: 'string',
72
+ string: 'Index out of bounds'
73
+ }
74
+ }
75
+ },
76
+ bytecode: Buffer.from([]),
77
+ debugSymbols: ''
78
+ },
79
+ {
80
+ ...{
81
+ functionType: FunctionType.PRIVATE,
82
+ name: 'publish_for_public_execution',
83
+ isOnlySelf: false,
84
+ isStatic: false,
85
+ isInitializer: false,
86
+ parameters: [
87
+ {
88
+ name: 'salt',
89
+ type: {
90
+ kind: 'field'
91
+ },
92
+ visibility: 'private'
93
+ },
94
+ {
95
+ name: 'contract_class_id',
96
+ type: {
97
+ kind: 'struct',
98
+ fields: [
99
+ {
100
+ name: 'inner',
101
+ type: {
102
+ kind: 'field'
103
+ }
104
+ }
105
+ ],
106
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
107
+ },
108
+ visibility: 'private'
109
+ },
110
+ {
111
+ name: 'initialization_hash',
112
+ type: {
113
+ kind: 'field'
114
+ },
115
+ visibility: 'private'
116
+ },
117
+ {
118
+ name: 'public_keys',
119
+ type: {
120
+ kind: 'struct',
121
+ fields: [
122
+ {
123
+ name: 'npk_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::NpkM'
156
+ }
157
+ },
158
+ {
159
+ name: 'ivpk_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::IvpkM'
192
+ }
193
+ },
194
+ {
195
+ name: 'ovpk_m',
196
+ type: {
197
+ kind: 'struct',
198
+ fields: [
199
+ {
200
+ name: 'inner',
201
+ type: {
202
+ kind: 'struct',
203
+ fields: [
204
+ {
205
+ name: 'x',
206
+ type: {
207
+ kind: 'field'
208
+ }
209
+ },
210
+ {
211
+ name: 'y',
212
+ type: {
213
+ kind: 'field'
214
+ }
215
+ },
216
+ {
217
+ name: 'is_infinite',
218
+ type: {
219
+ kind: 'boolean'
220
+ }
221
+ }
222
+ ],
223
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint'
224
+ }
225
+ }
226
+ ],
227
+ path: 'aztec::protocol_types::public_keys::OvpkM'
228
+ }
229
+ },
230
+ {
231
+ name: 'tpk_m',
232
+ type: {
233
+ kind: 'struct',
234
+ fields: [
235
+ {
236
+ name: 'inner',
237
+ type: {
238
+ kind: 'struct',
239
+ fields: [
240
+ {
241
+ name: 'x',
242
+ type: {
243
+ kind: 'field'
244
+ }
245
+ },
246
+ {
247
+ name: 'y',
248
+ type: {
249
+ kind: 'field'
250
+ }
251
+ },
252
+ {
253
+ name: 'is_infinite',
254
+ type: {
255
+ kind: 'boolean'
256
+ }
257
+ }
258
+ ],
259
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint'
260
+ }
261
+ }
262
+ ],
263
+ path: 'aztec::protocol_types::public_keys::TpkM'
264
+ }
265
+ }
266
+ ],
267
+ path: 'aztec::protocol_types::public_keys::PublicKeys'
268
+ },
269
+ visibility: 'private'
270
+ },
271
+ {
272
+ name: 'universal_deploy',
273
+ type: {
274
+ kind: 'boolean'
275
+ },
276
+ visibility: 'private'
277
+ }
278
+ ],
279
+ returnTypes: [],
280
+ errorTypes: {
281
+ '718532354304118388': {
282
+ error_kind: 'string',
283
+ string: 'Point not on curve'
284
+ },
285
+ '4135474769840782447': {
286
+ error_kind: 'string',
287
+ string: 'Point at infinity should have canonical representation (0 0)'
288
+ },
289
+ '12469291177396340830': {
290
+ error_kind: 'string',
291
+ string: 'call to assert_max_bit_size'
292
+ },
293
+ '14990209321349310352': {
294
+ error_kind: 'string',
295
+ string: 'attempt to add with overflow'
296
+ },
297
+ '15764276373176857197': {
298
+ error_kind: 'string',
299
+ string: 'Stack too deep'
300
+ }
301
+ }
302
+ },
303
+ bytecode: Buffer.from([]),
304
+ debugSymbols: ''
305
+ }
306
+ ],
307
+ nonDispatchPublicFunctions: [
308
+ {
309
+ functionType: FunctionType.PUBLIC,
310
+ name: 'get_update_delay',
311
+ isOnlySelf: false,
312
+ isStatic: true,
313
+ isInitializer: false,
314
+ parameters: [],
315
+ returnTypes: [
316
+ {
317
+ kind: 'integer',
318
+ sign: 'unsigned',
319
+ width: 64
320
+ }
321
+ ],
322
+ errorTypes: {
323
+ '5755400808989454547': {
324
+ error_kind: 'string',
325
+ string: 'Function get_update_delay can only be called statically'
326
+ },
327
+ '13455385521185560676': {
328
+ error_kind: 'string',
329
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
330
+ },
331
+ '15764276373176857197': {
332
+ error_kind: 'string',
333
+ string: 'Stack too deep'
334
+ }
335
+ }
336
+ },
337
+ {
338
+ functionType: FunctionType.PUBLIC,
339
+ name: 'set_update_delay',
340
+ isOnlySelf: false,
341
+ isStatic: false,
342
+ isInitializer: false,
343
+ parameters: [
344
+ {
345
+ name: 'new_update_delay',
346
+ type: {
347
+ kind: 'integer',
348
+ sign: 'unsigned',
349
+ width: 64
350
+ },
351
+ visibility: 'private'
352
+ }
353
+ ],
354
+ returnTypes: [],
355
+ errorTypes: {
356
+ '361444214588792908': {
357
+ error_kind: 'string',
358
+ string: 'attempt to multiply with overflow'
359
+ },
360
+ '1998584279744703196': {
361
+ error_kind: 'string',
362
+ string: 'attempt to subtract with overflow'
363
+ },
364
+ '6804164082532189961': {
365
+ error_kind: 'string',
366
+ string: 'New update delay is too low'
367
+ },
368
+ '13455385521185560676': {
369
+ error_kind: 'string',
370
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
371
+ },
372
+ '14990209321349310352': {
373
+ error_kind: 'string',
374
+ string: 'attempt to add with overflow'
375
+ },
376
+ '15353471697975175405': {
377
+ error_kind: 'string',
378
+ string: 'msg.sender is not deployed'
379
+ },
380
+ '15764276373176857197': {
381
+ error_kind: 'string',
382
+ string: 'Stack too deep'
383
+ },
384
+ '16431471497789672479': {
385
+ error_kind: 'string',
386
+ string: 'Index out of bounds'
387
+ }
388
+ }
389
+ },
390
+ {
391
+ functionType: FunctionType.PUBLIC,
392
+ name: 'update',
393
+ isOnlySelf: false,
394
+ isStatic: false,
395
+ isInitializer: false,
396
+ parameters: [
397
+ {
398
+ name: 'new_contract_class_id',
399
+ type: {
400
+ kind: 'struct',
401
+ fields: [
402
+ {
403
+ name: 'inner',
404
+ type: {
405
+ kind: 'field'
406
+ }
407
+ }
408
+ ],
409
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
410
+ },
411
+ visibility: 'private'
412
+ }
413
+ ],
414
+ returnTypes: [],
415
+ errorTypes: {
416
+ '361444214588792908': {
417
+ error_kind: 'string',
418
+ string: 'attempt to multiply with overflow'
419
+ },
420
+ '1998584279744703196': {
421
+ error_kind: 'string',
422
+ string: 'attempt to subtract with overflow'
423
+ },
424
+ '12579274401768182412': {
425
+ error_kind: 'string',
426
+ string: 'New contract class is not registered'
427
+ },
428
+ '13455385521185560676': {
429
+ error_kind: 'string',
430
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
431
+ },
432
+ '14990209321349310352': {
433
+ error_kind: 'string',
434
+ string: 'attempt to add with overflow'
435
+ },
436
+ '15353471697975175405': {
437
+ error_kind: 'string',
438
+ string: 'msg.sender is not deployed'
439
+ },
440
+ '15764276373176857197': {
441
+ error_kind: 'string',
442
+ string: 'Stack too deep'
443
+ },
444
+ '16431471497789672479': {
445
+ error_kind: 'string',
446
+ string: 'Index out of bounds'
447
+ }
448
+ }
449
+ }
450
+ ],
451
+ outputs: {
452
+ structs: {},
453
+ globals: {}
454
+ },
455
+ storageLayout: {},
456
+ fileMap: {}
457
+ };
458
+ export class ContractInstanceRegistryContract extends ContractBase {
459
+ constructor(wallet){
460
+ super(ProtocolContractAddress.ContractInstanceRegistry, ContractInstanceRegistryContractArtifact, wallet);
461
+ }
462
+ static at(wallet) {
463
+ return new ContractInstanceRegistryContract(wallet);
464
+ }
465
+ }