@aztec/aztec.js 0.73.0 → 0.75.0-commit.c03ba01a2a4122e43e90d5133ba017e54b90e9d2

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 (250) hide show
  1. package/README.md +1 -1
  2. package/dest/account/contract.js +5 -3
  3. package/dest/account/index.js +8 -2
  4. package/dest/account/interface.js +4 -3
  5. package/dest/account/wallet.js +3 -2
  6. package/dest/account_manager/deploy_account_method.js +22 -25
  7. package/dest/account_manager/deploy_account_sent_tx.js +16 -17
  8. package/dest/account_manager/index.js +67 -78
  9. package/dest/api/abi.js +0 -1
  10. package/dest/api/account.js +0 -1
  11. package/dest/api/addresses.js +0 -1
  12. package/dest/api/cheat_codes.js +25 -0
  13. package/dest/api/deployment.js +0 -1
  14. package/dest/api/entrypoint.js +0 -1
  15. package/dest/api/eth_address.js +0 -1
  16. package/dest/api/ethereum/anvil_test_watcher.js +113 -0
  17. package/dest/api/ethereum/chain_monitor.js +69 -0
  18. package/dest/api/ethereum/cheat_codes.js +142 -0
  19. package/dest/api/ethereum/index.js +6 -0
  20. package/dest/api/ethereum/l1_contracts.js +13 -0
  21. package/dest/api/ethereum/portal_manager.js +284 -0
  22. package/dest/api/fee.js +0 -1
  23. package/dest/api/fields.js +0 -1
  24. package/dest/api/interfaces/pxe.js +1 -2
  25. package/dest/api/log.js +1 -0
  26. package/dest/api/log_id.js +0 -1
  27. package/dest/api/tx_hash.js +0 -1
  28. package/dest/api/wallet.js +1 -2
  29. package/dest/contract/base_contract_interaction.js +75 -52
  30. package/dest/contract/batch_call.js +57 -39
  31. package/dest/contract/checker.js +29 -20
  32. package/dest/contract/contract.js +22 -27
  33. package/dest/contract/contract_base.js +21 -30
  34. package/dest/contract/contract_function_interaction.js +48 -48
  35. package/dest/contract/deploy_method.js +99 -84
  36. package/dest/contract/deploy_proven_tx.js +8 -11
  37. package/dest/contract/deploy_sent_tx.js +19 -22
  38. package/dest/contract/get_gas_limits.js +2 -4
  39. package/dest/contract/index.js +4 -6
  40. package/dest/contract/proven_tx.js +7 -10
  41. package/dest/contract/sent_tx.js +32 -34
  42. package/dest/contract/unsafe_contract.js +2 -10
  43. package/dest/deployment/broadcast_function.js +28 -26
  44. package/dest/deployment/contract_deployer.js +15 -14
  45. package/dest/deployment/deploy_instance.js +1 -3
  46. package/dest/deployment/index.js +0 -1
  47. package/dest/deployment/protocol_contracts.js +2 -5
  48. package/dest/deployment/register_class.js +8 -8
  49. package/dest/entrypoint/default_entrypoint.js +8 -5
  50. package/dest/entrypoint/default_multi_call_entrypoint.js +66 -23
  51. package/dest/entrypoint/entrypoint.js +0 -1
  52. package/dest/entrypoint/payload.js +73 -82
  53. package/dest/fee/fee_juice_payment_method.js +3 -4
  54. package/dest/fee/fee_juice_payment_method_with_claim.js +11 -14
  55. package/dest/fee/fee_payment_method.js +3 -2
  56. package/dest/fee/no_fee_payment_method.js +2 -4
  57. package/dest/fee/private_fee_payment_method.js +36 -34
  58. package/dest/fee/public_fee_payment_method.js +34 -31
  59. package/dest/index.js +8 -9
  60. package/dest/rpc_clients/index.js +0 -1
  61. package/dest/rpc_clients/node/index.js +30 -16
  62. package/dest/rpc_clients/pxe_client.js +5 -3
  63. package/dest/utils/abi_types.js +1 -2
  64. package/dest/utils/authwit.js +15 -15
  65. package/dest/utils/aztec_cheatcodes.js +62 -0
  66. package/dest/utils/field_compressed_string.js +2 -4
  67. package/dest/utils/index.js +5 -12
  68. package/dest/utils/node.js +4 -5
  69. package/dest/utils/pub_key.js +1 -3
  70. package/dest/utils/pxe.js +3 -5
  71. package/dest/wallet/account_wallet.js +118 -81
  72. package/dest/wallet/account_wallet_with_private_key.js +9 -15
  73. package/dest/wallet/base_wallet.js +7 -5
  74. package/dest/wallet/index.js +2 -4
  75. package/dest/wallet/signerless_wallet.js +4 -6
  76. package/package.json +14 -17
  77. package/src/api/account.ts +7 -1
  78. package/src/api/cheat_codes.ts +35 -0
  79. package/src/{utils → api/ethereum}/anvil_test_watcher.ts +2 -1
  80. package/src/{utils → api/ethereum}/cheat_codes.ts +6 -109
  81. package/src/api/ethereum/index.ts +15 -0
  82. package/src/{utils → api/ethereum}/l1_contracts.ts +1 -1
  83. package/src/{utils → api/ethereum}/portal_manager.ts +4 -9
  84. package/src/api/interfaces/pxe.ts +1 -1
  85. package/src/api/log.ts +1 -0
  86. package/src/api/wallet.ts +1 -1
  87. package/src/contract/contract_function_interaction.ts +1 -1
  88. package/src/contract/index.ts +2 -2
  89. package/src/entrypoint/default_multi_call_entrypoint.ts +2 -1
  90. package/src/entrypoint/entrypoint.ts +1 -1
  91. package/src/fee/fee_juice_payment_method_with_claim.ts +1 -1
  92. package/src/index.ts +7 -35
  93. package/src/utils/aztec_cheatcodes.ts +75 -0
  94. package/src/utils/index.ts +19 -11
  95. package/src/utils/node.ts +2 -0
  96. package/src/wallet/index.ts +1 -1
  97. package/dest/account/contract.d.ts +0 -33
  98. package/dest/account/contract.d.ts.map +0 -1
  99. package/dest/account/index.d.ts +0 -15
  100. package/dest/account/index.d.ts.map +0 -1
  101. package/dest/account/interface.d.ts +0 -30
  102. package/dest/account/interface.d.ts.map +0 -1
  103. package/dest/account/wallet.d.ts +0 -10
  104. package/dest/account/wallet.d.ts.map +0 -1
  105. package/dest/account_manager/deploy_account_method.d.ts +0 -15
  106. package/dest/account_manager/deploy_account_method.d.ts.map +0 -1
  107. package/dest/account_manager/deploy_account_sent_tx.d.ts +0 -29
  108. package/dest/account_manager/deploy_account_sent_tx.d.ts.map +0 -1
  109. package/dest/account_manager/index.d.ts +0 -99
  110. package/dest/account_manager/index.d.ts.map +0 -1
  111. package/dest/api/abi.d.ts +0 -4
  112. package/dest/api/abi.d.ts.map +0 -1
  113. package/dest/api/account.d.ts +0 -4
  114. package/dest/api/account.d.ts.map +0 -1
  115. package/dest/api/addresses.d.ts +0 -3
  116. package/dest/api/addresses.d.ts.map +0 -1
  117. package/dest/api/deployment.d.ts +0 -4
  118. package/dest/api/deployment.d.ts.map +0 -1
  119. package/dest/api/entrypoint.d.ts +0 -2
  120. package/dest/api/entrypoint.d.ts.map +0 -1
  121. package/dest/api/eth_address.d.ts +0 -2
  122. package/dest/api/eth_address.d.ts.map +0 -1
  123. package/dest/api/ethereum.d.ts +0 -3
  124. package/dest/api/ethereum.d.ts.map +0 -1
  125. package/dest/api/ethereum.js +0 -3
  126. package/dest/api/fee.d.ts +0 -7
  127. package/dest/api/fee.d.ts.map +0 -1
  128. package/dest/api/fields.d.ts +0 -2
  129. package/dest/api/fields.d.ts.map +0 -1
  130. package/dest/api/interfaces/pxe.d.ts +0 -2
  131. package/dest/api/interfaces/pxe.d.ts.map +0 -1
  132. package/dest/api/log_id.d.ts +0 -2
  133. package/dest/api/log_id.d.ts.map +0 -1
  134. package/dest/api/tx_hash.d.ts +0 -2
  135. package/dest/api/tx_hash.d.ts.map +0 -1
  136. package/dest/api/wallet.d.ts +0 -2
  137. package/dest/api/wallet.d.ts.map +0 -1
  138. package/dest/barretenberg-threads.wasm.gz +0 -0
  139. package/dest/barretenberg.wasm.gz +0 -0
  140. package/dest/contract/base_contract_interaction.d.ts +0 -82
  141. package/dest/contract/base_contract_interaction.d.ts.map +0 -1
  142. package/dest/contract/batch_call.d.ts +0 -27
  143. package/dest/contract/batch_call.d.ts.map +0 -1
  144. package/dest/contract/checker.d.ts +0 -11
  145. package/dest/contract/checker.d.ts.map +0 -1
  146. package/dest/contract/contract.d.ts +0 -41
  147. package/dest/contract/contract.d.ts.map +0 -1
  148. package/dest/contract/contract_base.d.ts +0 -61
  149. package/dest/contract/contract_base.d.ts.map +0 -1
  150. package/dest/contract/contract_function_interaction.d.ts +0 -67
  151. package/dest/contract/contract_function_interaction.d.ts.map +0 -1
  152. package/dest/contract/deploy_method.d.ts +0 -110
  153. package/dest/contract/deploy_method.d.ts.map +0 -1
  154. package/dest/contract/deploy_proven_tx.d.ts +0 -19
  155. package/dest/contract/deploy_proven_tx.d.ts.map +0 -1
  156. package/dest/contract/deploy_sent_tx.d.ts +0 -43
  157. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  158. package/dest/contract/get_gas_limits.d.ts +0 -18
  159. package/dest/contract/get_gas_limits.d.ts.map +0 -1
  160. package/dest/contract/index.d.ts +0 -45
  161. package/dest/contract/index.d.ts.map +0 -1
  162. package/dest/contract/proven_tx.d.ts +0 -16
  163. package/dest/contract/proven_tx.d.ts.map +0 -1
  164. package/dest/contract/sent_tx.d.ts +0 -60
  165. package/dest/contract/sent_tx.d.ts.map +0 -1
  166. package/dest/contract/unsafe_contract.d.ts +0 -15
  167. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  168. package/dest/deployment/broadcast_function.d.ts +0 -24
  169. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  170. package/dest/deployment/contract_deployer.d.ts +0 -27
  171. package/dest/deployment/contract_deployer.d.ts.map +0 -1
  172. package/dest/deployment/deploy_instance.d.ts +0 -10
  173. package/dest/deployment/deploy_instance.d.ts.map +0 -1
  174. package/dest/deployment/index.d.ts +0 -2
  175. package/dest/deployment/index.d.ts.map +0 -1
  176. package/dest/deployment/protocol_contracts.d.ts +0 -7
  177. package/dest/deployment/protocol_contracts.d.ts.map +0 -1
  178. package/dest/deployment/register_class.d.ts +0 -6
  179. package/dest/deployment/register_class.d.ts.map +0 -1
  180. package/dest/entrypoint/default_entrypoint.d.ts +0 -12
  181. package/dest/entrypoint/default_entrypoint.d.ts.map +0 -1
  182. package/dest/entrypoint/default_multi_call_entrypoint.d.ts +0 -15
  183. package/dest/entrypoint/default_multi_call_entrypoint.d.ts.map +0 -1
  184. package/dest/entrypoint/entrypoint.d.ts +0 -31
  185. package/dest/entrypoint/entrypoint.d.ts.map +0 -1
  186. package/dest/entrypoint/payload.d.ts +0 -125
  187. package/dest/entrypoint/payload.d.ts.map +0 -1
  188. package/dest/fee/fee_juice_payment_method.d.ts +0 -14
  189. package/dest/fee/fee_juice_payment_method.d.ts.map +0 -1
  190. package/dest/fee/fee_juice_payment_method_with_claim.d.ts +0 -17
  191. package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +0 -1
  192. package/dest/fee/fee_payment_method.d.ts +0 -22
  193. package/dest/fee/fee_payment_method.d.ts.map +0 -1
  194. package/dest/fee/no_fee_payment_method.d.ts +0 -13
  195. package/dest/fee/no_fee_payment_method.d.ts.map +0 -1
  196. package/dest/fee/private_fee_payment_method.d.ts +0 -51
  197. package/dest/fee/private_fee_payment_method.d.ts.map +0 -1
  198. package/dest/fee/public_fee_payment_method.d.ts +0 -41
  199. package/dest/fee/public_fee_payment_method.d.ts.map +0 -1
  200. package/dest/index.d.ts +0 -51
  201. package/dest/index.d.ts.map +0 -1
  202. package/dest/main.js +0 -2
  203. package/dest/main.js.LICENSE.txt +0 -25
  204. package/dest/rpc_clients/index.d.ts +0 -3
  205. package/dest/rpc_clients/index.d.ts.map +0 -1
  206. package/dest/rpc_clients/node/index.d.ts +0 -11
  207. package/dest/rpc_clients/node/index.d.ts.map +0 -1
  208. package/dest/rpc_clients/pxe_client.d.ts +0 -9
  209. package/dest/rpc_clients/pxe_client.d.ts.map +0 -1
  210. package/dest/utils/abi_types.d.ts +0 -26
  211. package/dest/utils/abi_types.d.ts.map +0 -1
  212. package/dest/utils/anvil_test_watcher.d.ts +0 -28
  213. package/dest/utils/anvil_test_watcher.d.ts.map +0 -1
  214. package/dest/utils/anvil_test_watcher.js +0 -108
  215. package/dest/utils/authwit.d.ts +0 -59
  216. package/dest/utils/authwit.d.ts.map +0 -1
  217. package/dest/utils/chain_monitor.d.ts +0 -21
  218. package/dest/utils/chain_monitor.d.ts.map +0 -1
  219. package/dest/utils/chain_monitor.js +0 -58
  220. package/dest/utils/cheat_codes.d.ts +0 -137
  221. package/dest/utils/cheat_codes.d.ts.map +0 -1
  222. package/dest/utils/cheat_codes.js +0 -225
  223. package/dest/utils/field_compressed_string.d.ts +0 -17
  224. package/dest/utils/field_compressed_string.d.ts.map +0 -1
  225. package/dest/utils/index.d.ts +0 -12
  226. package/dest/utils/index.d.ts.map +0 -1
  227. package/dest/utils/l1_contracts.d.ts +0 -3
  228. package/dest/utils/l1_contracts.d.ts.map +0 -1
  229. package/dest/utils/l1_contracts.js +0 -15
  230. package/dest/utils/node.d.ts +0 -4
  231. package/dest/utils/node.d.ts.map +0 -1
  232. package/dest/utils/portal_manager.d.ts +0 -130
  233. package/dest/utils/portal_manager.d.ts.map +0 -1
  234. package/dest/utils/portal_manager.js +0 -265
  235. package/dest/utils/pub_key.d.ts +0 -8
  236. package/dest/utils/pub_key.d.ts.map +0 -1
  237. package/dest/utils/pxe.d.ts +0 -4
  238. package/dest/utils/pxe.d.ts.map +0 -1
  239. package/dest/wallet/account_wallet.d.ts +0 -73
  240. package/dest/wallet/account_wallet.d.ts.map +0 -1
  241. package/dest/wallet/account_wallet_with_private_key.d.ts +0 -26
  242. package/dest/wallet/account_wallet_with_private_key.d.ts.map +0 -1
  243. package/dest/wallet/base_wallet.d.ts +0 -64
  244. package/dest/wallet/base_wallet.d.ts.map +0 -1
  245. package/dest/wallet/index.d.ts +0 -17
  246. package/dest/wallet/index.d.ts.map +0 -1
  247. package/dest/wallet/signerless_wallet.d.ts +0 -22
  248. package/dest/wallet/signerless_wallet.d.ts.map +0 -1
  249. package/src/api/ethereum.ts +0 -2
  250. /package/src/{utils → api/ethereum}/chain_monitor.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"broadcast_function.d.ts","sourceRoot":"","sources":["../../src/deployment/broadcast_function.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAgC,MAAM,uBAAuB,CAAC;AAI9G,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,2BAA2B,CAAC,CA8CtC;AAED;;;;;;;;GAQG;AACH,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,2BAA2B,CAAC,CAuCtC"}
@@ -1,27 +0,0 @@
1
- import { PublicKeys } from '@aztec/circuits.js';
2
- import { type ContractArtifact } from '@aztec/foundation/abi';
3
- import { type Wallet } from '../account/wallet.js';
4
- import { Contract } from '../contract/contract.js';
5
- import { DeployMethod } from '../contract/deploy_method.js';
6
- /**
7
- * A class for deploying contract.
8
- * @remarks Keeping this around even though we have Aztec.nr contract types because it can be useful for non-TS users.
9
- */
10
- export declare class ContractDeployer {
11
- private artifact;
12
- private wallet;
13
- private publicKeys?;
14
- private constructorName?;
15
- constructor(artifact: ContractArtifact, wallet: Wallet, publicKeys?: PublicKeys | undefined, constructorName?: string | undefined);
16
- /**
17
- * Deploy a contract using the provided ABI and constructor arguments.
18
- * This function creates a new DeployMethod instance that can be used to send deployment transactions
19
- * and query deployment status. The method accepts any number of constructor arguments, which will
20
- * be passed to the contract's constructor during deployment.
21
- *
22
- * @param args - The constructor arguments for the contract being deployed.
23
- * @returns A DeployMethod instance configured with the ABI, PXE, and constructor arguments.
24
- */
25
- deploy(...args: any[]): DeployMethod<Contract>;
26
- }
27
- //# sourceMappingURL=contract_deployer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contract_deployer.d.ts","sourceRoot":"","sources":["../../src/deployment/contract_deployer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D;;;GAGG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU,CAAC;IACnB,OAAO,CAAC,eAAe,CAAC;gBAHhB,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,wBAAY,EACvB,eAAe,CAAC,oBAAQ;IAGlC;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;CAW7B"}
@@ -1,10 +0,0 @@
1
- import { type ContractInstanceWithAddress } from '@aztec/circuits.js';
2
- import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
3
- import { type Wallet } from '../wallet/index.js';
4
- /**
5
- * Sets up a call to the canonical deployer contract to publicly deploy a contract instance.
6
- * @param wallet - The wallet to use for the deployment.
7
- * @param instance - The instance to deploy.
8
- */
9
- export declare function deployInstance(wallet: Wallet, instance: ContractInstanceWithAddress): Promise<ContractFunctionInteraction>;
10
- //# sourceMappingURL=deploy_instance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deploy_instance.d.ts","sourceRoot":"","sources":["../../src/deployment/deploy_instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,2BAA2B,GACpC,OAAO,CAAC,2BAA2B,CAAC,CAgBtC"}
@@ -1,2 +0,0 @@
1
- export * from './contract_deployer.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -1,7 +0,0 @@
1
- import { UnsafeContract } from '../contract/unsafe_contract.js';
2
- import { type Wallet } from '../wallet/index.js';
3
- /** Returns a Contract wrapper for the class registerer. */
4
- export declare function getRegistererContract(wallet: Wallet): Promise<UnsafeContract>;
5
- /** Returns a Contract wrapper for the instance deployer. */
6
- export declare function getDeployerContract(wallet: Wallet): Promise<UnsafeContract>;
7
- //# sourceMappingURL=protocol_contracts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protocol_contracts.d.ts","sourceRoot":"","sources":["../../src/deployment/protocol_contracts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,2DAA2D;AAC3D,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,2BAGzD;AAED,4DAA4D;AAC5D,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,2BAGvD"}
@@ -1,6 +0,0 @@
1
- import { type ContractArtifact } from '@aztec/foundation/abi';
2
- import { type ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
3
- import { type Wallet } from '../wallet/index.js';
4
- /** Sets up a call to register a contract class given its artifact. */
5
- export declare function registerContractClass(wallet: Wallet, artifact: ContractArtifact, emitPublicBytecode?: boolean): Promise<ContractFunctionInteraction>;
6
- //# sourceMappingURL=register_class.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register_class.d.ts","sourceRoot":"","sources":["../../src/deployment/register_class.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AASjD,sEAAsE;AACtE,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,gBAAgB,EAC1B,kBAAkB,UAA4B,GAC7C,OAAO,CAAC,2BAA2B,CAAC,CAOtC"}
@@ -1,12 +0,0 @@
1
- import { TxExecutionRequest } from '@aztec/circuit-types';
2
- import { type EntrypointInterface, type ExecutionRequestInit } from './entrypoint.js';
3
- /**
4
- * Default implementation of the entrypoint interface. It calls a function on a contract directly
5
- */
6
- export declare class DefaultEntrypoint implements EntrypointInterface {
7
- private chainId;
8
- private protocolVersion;
9
- constructor(chainId: number, protocolVersion: number);
10
- createTxExecutionRequest(exec: ExecutionRequestInit): Promise<TxExecutionRequest>;
11
- }
12
- //# sourceMappingURL=default_entrypoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../../src/entrypoint/default_entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAIxE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEtF;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAC/C,OAAO,CAAC,OAAO;IAAU,OAAO,CAAC,eAAe;gBAAxC,OAAO,EAAE,MAAM,EAAU,eAAe,EAAE,MAAM;IAE9D,wBAAwB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA0BxF"}
@@ -1,15 +0,0 @@
1
- import { type EntrypointInterface, type ExecutionRequestInit } from '@aztec/aztec.js/entrypoint';
2
- import { TxExecutionRequest } from '@aztec/circuit-types';
3
- import { type AztecAddress } from '@aztec/circuits.js';
4
- /**
5
- * Implementation for an entrypoint interface that can execute multiple function calls in a single transaction
6
- */
7
- export declare class DefaultMultiCallEntrypoint implements EntrypointInterface {
8
- private chainId;
9
- private version;
10
- private address;
11
- constructor(chainId: number, version: number, address?: AztecAddress);
12
- createTxExecutionRequest(executions: ExecutionRequestInit): Promise<TxExecutionRequest>;
13
- private getEntrypointAbi;
14
- }
15
- //# sourceMappingURL=default_multi_call_entrypoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default_multi_call_entrypoint.d.ts","sourceRoot":"","sources":["../../src/entrypoint/default_multi_call_entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACpH,OAAO,EAAgB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,oBAAoB,CAAC;AAIlE;;GAEG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAElE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAFP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAA0D;IAGvE,wBAAwB,CAAC,UAAU,EAAE,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAkB7F,OAAO,CAAC,gBAAgB;CAwDzB"}
@@ -1,31 +0,0 @@
1
- import { type AuthWitness, type FunctionCall, type HashedValues, type TxExecutionRequest } from '@aztec/circuit-types';
2
- import { type Fr } from '@aztec/circuits.js';
3
- import { EntrypointPayload, type FeeOptions, computeCombinedPayloadHash } from './payload.js';
4
- export { EntrypointPayload, FeeOptions, computeCombinedPayloadHash };
5
- export { DefaultEntrypoint } from './default_entrypoint.js';
6
- export { DefaultMultiCallEntrypoint } from './default_multi_call_entrypoint.js';
7
- /** Encodes the calls to be done in a transaction. */
8
- export type ExecutionRequestInit = {
9
- /** The function calls to be executed. */
10
- calls: FunctionCall[];
11
- /** Any transient auth witnesses needed for this execution */
12
- authWitnesses?: AuthWitness[];
13
- /** Any transient hashed arguments for this execution */
14
- hashedArguments?: HashedValues[];
15
- /** How the fee is going to be payed */
16
- fee: FeeOptions;
17
- /** An optional nonce. Used to repeat a previous tx with a higher fee so that the first one is cancelled */
18
- nonce?: Fr;
19
- /** Whether the transaction can be cancelled. If true, an extra nullifier will be emitted: H(nonce, GENERATOR_INDEX__TX_NULLIFIER) */
20
- cancellable?: boolean;
21
- };
22
- /** Creates transaction execution requests out of a set of function calls. */
23
- export interface EntrypointInterface {
24
- /**
25
- * Generates an execution request out of set of function calls.
26
- * @param execution - The execution intents to be run.
27
- * @returns The authenticated transaction execution request.
28
- */
29
- createTxExecutionRequest(execution: ExecutionRequestInit): Promise<TxExecutionRequest>;
30
- }
31
- //# sourceMappingURL=entrypoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../src/entrypoint/entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACvH,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE9F,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,0BAA0B,EAAE,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,qDAAqD;AACrD,MAAM,MAAM,oBAAoB,GAAG;IACjC,yCAAyC;IACzC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,wDAAwD;IACxD,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;IACjC,uCAAuC;IACvC,GAAG,EAAE,UAAU,CAAC;IAChB,2GAA2G;IAC3G,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,qIAAqI;IACrI,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,wBAAwB,CAAC,SAAS,EAAE,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACxF"}
@@ -1,125 +0,0 @@
1
- import { FunctionCall, HashedValues } from '@aztec/circuit-types';
2
- import { type AztecAddress, Fr, type GasSettings } from '@aztec/circuits.js';
3
- import { type Tuple } from '@aztec/foundation/serialize';
4
- import { type FieldsOf } from '@aztec/foundation/types';
5
- import { type FeePaymentMethod } from '../fee/fee_payment_method.js';
6
- /**
7
- * Fee payment options for a transaction.
8
- */
9
- export type FeeOptions = {
10
- /** The fee payment method to use */
11
- paymentMethod: FeePaymentMethod;
12
- /** The gas settings */
13
- gasSettings: GasSettings;
14
- };
15
- /** Fee options as set by a user. */
16
- export type UserFeeOptions = {
17
- /** The fee payment method to use */
18
- paymentMethod?: FeePaymentMethod;
19
- /** The gas settings */
20
- gasSettings?: Partial<FieldsOf<GasSettings>>;
21
- /** Percentage to pad the base fee by, if empty, defaults to 0.5 */
22
- baseFeePadding?: number;
23
- /** Whether to run an initial simulation of the tx with high gas limit to figure out actual gas settings. */
24
- estimateGas?: boolean;
25
- /** Percentage to pad the estimated gas limits by, if empty, defaults to 0.1. Only relevant if estimateGas is set. */
26
- estimatedGasPadding?: number;
27
- };
28
- /** Encoded function call for account contract entrypoint */
29
- type EncodedFunctionCall = {
30
- /** Arguments hash for the call */
31
- args_hash: Fr;
32
- /** Selector of the function to call */
33
- function_selector: Fr;
34
- /** Address of the contract to call */
35
- target_address: Fr;
36
- /** Whether the function is public or private */
37
- is_public: boolean;
38
- /** Whether the function can alter state */
39
- is_static: boolean;
40
- };
41
- /** Assembles an entrypoint payload */
42
- export declare abstract class EntrypointPayload {
43
- private functionCalls;
44
- private _hashedArguments;
45
- private generatorIndex;
46
- private _nonce;
47
- protected constructor(functionCalls: EncodedFunctionCall[], _hashedArguments: HashedValues[], generatorIndex: number, _nonce: Fr);
48
- protected static create(functionCalls: FunctionCall[]): Promise<{
49
- encodedFunctionCalls: {
50
- args_hash: Fr;
51
- function_selector: Fr;
52
- target_address: Fr;
53
- is_public: boolean;
54
- is_static: boolean;
55
- }[];
56
- hashedArguments: HashedValues[];
57
- }>;
58
- /**
59
- * The function calls to execute. This uses snake_case naming so that it is compatible with Noir encoding
60
- * @internal
61
- */
62
- get function_calls(): EncodedFunctionCall[];
63
- /**
64
- * The nonce
65
- * @internal
66
- */
67
- get nonce(): Fr;
68
- /**
69
- * The hashed arguments for the function calls
70
- */
71
- get hashedArguments(): HashedValues[];
72
- /**
73
- * Serializes the payload to an array of fields
74
- * @returns The fields of the payload
75
- */
76
- abstract toFields(): Fr[];
77
- /**
78
- * Hashes the payload
79
- * @returns The hash of the payload
80
- */
81
- hash(): Promise<Fr>;
82
- /** Serializes the function calls to an array of fields. */
83
- protected functionCallsToFields(): Fr[];
84
- /**
85
- * Creates an execution payload for a dapp from a set of function calls
86
- * @param functionCalls - The function calls to execute
87
- * @returns The execution payload
88
- */
89
- static fromFunctionCalls(functionCalls: FunctionCall[]): Promise<AppEntrypointPayload>;
90
- /**
91
- * Creates an execution payload for the app-portion of a transaction from a set of function calls
92
- * @param functionCalls - The function calls to execute
93
- * @param nonce - The nonce for the payload, used to emit a nullifier identifying the call
94
- * @returns The execution payload
95
- */
96
- static fromAppExecution(functionCalls: FunctionCall[] | Tuple<FunctionCall, 4>, nonce?: Fr): Promise<AppEntrypointPayload>;
97
- /**
98
- * Creates an execution payload to pay the fee for a transaction
99
- * @param sender - The address sending this payload
100
- * @param feeOpts - The fee payment options
101
- * @returns The execution payload
102
- */
103
- static fromFeeOptions(sender: AztecAddress, feeOpts?: FeeOptions): Promise<FeeEntrypointPayload>;
104
- }
105
- /** Entrypoint payload for app phase execution. */
106
- declare class AppEntrypointPayload extends EntrypointPayload {
107
- toFields(): Fr[];
108
- }
109
- /** Entrypoint payload for fee payment to be run during setup phase. */
110
- declare class FeeEntrypointPayload extends EntrypointPayload {
111
- #private;
112
- constructor(functionCalls: EncodedFunctionCall[], hashedArguments: HashedValues[], generatorIndex: number, nonce: Fr, isFeePayer: boolean);
113
- toFields(): Fr[];
114
- /** Whether the sender should be appointed as fee payer. */
115
- get is_fee_payer(): boolean;
116
- }
117
- /**
118
- * Computes a hash of a combined payload.
119
- * @param appPayload - An app payload.
120
- * @param feePayload - A fee payload.
121
- * @returns A hash of a combined payload.
122
- */
123
- export declare function computeCombinedPayloadHash(appPayload: AppEntrypointPayload, feePayload: FeeEntrypointPayload): Promise<Fr>;
124
- export {};
125
- //# sourceMappingURL=payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/entrypoint/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAAE,EAAE,EAAE,KAAK,WAAW,EAAkB,MAAM,oBAAoB,CAAC;AAI7F,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,oCAAoC;IACpC,aAAa,EAAE,gBAAgB,CAAC;IAChC,uBAAuB;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG;IAC3B,oCAAoC;IACpC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7C,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qHAAqH;IACrH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AASF,4DAA4D;AAC5D,KAAK,mBAAmB,GAAG;IACzB,kCAAkC;IAClC,SAAS,EAAE,EAAE,CAAC;IACd,uCAAuC;IACvC,iBAAiB,EAAE,EAAE,CAAC;IACtB,sCAAsC;IACtC,cAAc,EAAE,EAAE,CAAC;IACnB,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAGF,sCAAsC;AACtC,8BAAsB,iBAAiB;IAEnC,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,MAAM;IAJhB,SAAS,aACC,aAAa,EAAE,mBAAmB,EAAE,EACpC,gBAAgB,EAAE,YAAY,EAAE,EAChC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,EAAE;qBAGG,MAAM,CAAC,aAAa,EAAE,YAAY,EAAE;;;;;;;;;;IAuB3D;;;OAGG;IACH,IAAI,cAAc,0BAEjB;IAGD;;;OAGG;IACH,IAAI,KAAK,OAER;IAED;;OAEG;IACH,IAAI,eAAe,mBAElB;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAQ,IAAI,EAAE,EAAE;IAEzB;;;OAGG;IACH,IAAI;IAIJ,2DAA2D;IAC3D,SAAS,CAAC,qBAAqB;IAU/B;;;;OAIG;WACU,iBAAiB,CAAC,aAAa,EAAE,YAAY,EAAE;IAK5D;;;;;OAKG;WACU,gBAAgB,CAAC,aAAa,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,KAAc;IASzG;;;;;OAKG;WACU,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,UAAU;CAcvE;AAED,kDAAkD;AAClD,cAAM,oBAAqB,SAAQ,iBAAiB;IACzC,QAAQ,IAAI,EAAE,EAAE;CAG1B;AAED,uEAAuE;AACvE,cAAM,oBAAqB,SAAQ,iBAAiB;;gBAIhD,aAAa,EAAE,mBAAmB,EAAE,EACpC,eAAe,EAAE,YAAY,EAAE,EAC/B,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,EAAE,EACT,UAAU,EAAE,OAAO;IAMZ,QAAQ,IAAI,EAAE,EAAE;IAKzB,2DAA2D;IAC3D,IAAI,YAAY,YAEf;CAEF;AAED;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC9C,UAAU,EAAE,oBAAoB,EAChC,UAAU,EAAE,oBAAoB,GAC/B,OAAO,CAAC,EAAE,CAAC,CAKb"}
@@ -1,14 +0,0 @@
1
- import { type FunctionCall } from '@aztec/circuit-types';
2
- import { type AztecAddress } from '@aztec/circuits.js';
3
- import { type FeePaymentMethod } from './fee_payment_method.js';
4
- /**
5
- * Pay fee directly in the Fee Juice.
6
- */
7
- export declare class FeeJuicePaymentMethod implements FeePaymentMethod {
8
- protected sender: AztecAddress;
9
- constructor(sender: AztecAddress);
10
- getAsset(): Promise<AztecAddress>;
11
- getFunctionCalls(): Promise<FunctionCall[]>;
12
- getFeePayer(): Promise<AztecAddress>;
13
- }
14
- //# sourceMappingURL=fee_juice_payment_method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fee_juice_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/fee_juice_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,qBAAa,qBAAsB,YAAW,gBAAgB;IAChD,SAAS,CAAC,MAAM,EAAE,YAAY;gBAApB,MAAM,EAAE,YAAY;IAE1C,QAAQ;IAIR,gBAAgB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAI3C,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;CAGrC"}
@@ -1,17 +0,0 @@
1
- import { type FunctionCall } from '@aztec/circuit-types';
2
- import { type AztecAddress } from '@aztec/circuits.js';
3
- import { type L2AmountClaim } from '../utils/portal_manager.js';
4
- import { FeeJuicePaymentMethod } from './fee_juice_payment_method.js';
5
- /**
6
- * Pay fee directly with Fee Juice claimed on the same tx.
7
- */
8
- export declare class FeeJuicePaymentMethodWithClaim extends FeeJuicePaymentMethod {
9
- private claim;
10
- constructor(sender: AztecAddress, claim: Pick<L2AmountClaim, 'claimAmount' | 'claimSecret' | 'messageLeafIndex'>);
11
- /**
12
- * Creates a function call to pay the fee in Fee Juice.
13
- * @returns A function call
14
- */
15
- getFunctionCalls(): Promise<FunctionCall[]>;
16
- }
17
- //# sourceMappingURL=fee_juice_payment_method_with_claim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fee_juice_payment_method_with_claim.d.ts","sourceRoot":"","sources":["../../src/fee/fee_juice_payment_method_with_claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,oBAAoB,CAAC;AAK7E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,qBAAqB;IAGrE,OAAO,CAAC,KAAK;gBADb,MAAM,EAAE,YAAY,EACZ,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAKxF;;;OAGG;IACY,gBAAgB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;CAuB3D"}
@@ -1,22 +0,0 @@
1
- import { type FunctionCall } from '@aztec/circuit-types';
2
- import { type GasSettings } from '@aztec/circuits.js';
3
- import { type AztecAddress } from '@aztec/foundation/aztec-address';
4
- /**
5
- * Holds information about how the fee for a transaction is to be paid.
6
- */
7
- export interface FeePaymentMethod {
8
- /** The asset used to pay the fee. */
9
- getAsset(): Promise<AztecAddress>;
10
- /**
11
- * Creates a function call to pay the fee in the given asset.
12
- * @param gasSettings - The gas limits and max fees.
13
- * @returns The function call to pay the fee.
14
- */
15
- getFunctionCalls(gasSettings: GasSettings): Promise<FunctionCall[]>;
16
- /**
17
- * The expected fee payer for this tx.
18
- * @param gasSettings - The gas limits and max fees.
19
- */
20
- getFeePayer(gasSettings: GasSettings): Promise<AztecAddress>;
21
- }
22
- //# sourceMappingURL=fee_payment_method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/fee_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACpE;;;OAGG;IACH,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAC9D"}
@@ -1,13 +0,0 @@
1
- import { type FunctionCall } from '@aztec/circuit-types';
2
- import { AztecAddress } from '@aztec/circuits.js';
3
- import { type FeePaymentMethod } from './fee_payment_method.js';
4
- /**
5
- * Does not pay fees. Will work until we enforce fee payment for all txs.
6
- */
7
- export declare class NoFeePaymentMethod implements FeePaymentMethod {
8
- constructor();
9
- getAsset(): Promise<AztecAddress>;
10
- getFunctionCalls(): Promise<FunctionCall[]>;
11
- getFeePayer(): Promise<AztecAddress>;
12
- }
13
- //# sourceMappingURL=no_fee_payment_method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"no_fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/no_fee_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;;IAGzD,QAAQ;IAIR,gBAAgB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAI3C,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;CAGrC"}
@@ -1,51 +0,0 @@
1
- import { type FunctionCall } from '@aztec/circuit-types';
2
- import { type GasSettings } from '@aztec/circuits.js';
3
- import { type AztecAddress } from '@aztec/foundation/aztec-address';
4
- import { type Wallet } from '../account/wallet.js';
5
- import { type FeePaymentMethod } from './fee_payment_method.js';
6
- /**
7
- * Holds information about how the fee for a transaction is to be paid.
8
- */
9
- export declare class PrivateFeePaymentMethod implements FeePaymentMethod {
10
- /**
11
- * Address which will hold the fee payment.
12
- */
13
- private paymentContract;
14
- /**
15
- * An auth witness provider to authorize fee payments
16
- */
17
- private wallet;
18
- /**
19
- * If true, the max fee will be set to 1.
20
- * TODO(#7694): Remove this param once the lacking feature in TXE is implemented.
21
- */
22
- private setMaxFeeToOne;
23
- private assetPromise;
24
- constructor(
25
- /**
26
- * Address which will hold the fee payment.
27
- */
28
- paymentContract: AztecAddress,
29
- /**
30
- * An auth witness provider to authorize fee payments
31
- */
32
- wallet: Wallet,
33
- /**
34
- * If true, the max fee will be set to 1.
35
- * TODO(#7694): Remove this param once the lacking feature in TXE is implemented.
36
- */
37
- setMaxFeeToOne?: boolean);
38
- /**
39
- * The asset used to pay the fee.
40
- * @returns The asset used to pay the fee.
41
- */
42
- getAsset(): Promise<AztecAddress>;
43
- getFeePayer(): Promise<AztecAddress>;
44
- /**
45
- * Creates a function call to pay the fee in the given asset.
46
- * @param gasSettings - The gas settings.
47
- * @returns The function call to pay the fee.
48
- */
49
- getFunctionCalls(gasSettings: GasSettings): Promise<FunctionCall[]>;
50
- }
51
- //# sourceMappingURL=private_fee_payment_method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"private_fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/private_fee_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAI5D;;OAEG;IACH,OAAO,CAAC,eAAe;IAEvB;;OAEG;IACH,OAAO,CAAC,MAAM;IAEd;;;OAGG;IACH,OAAO,CAAC,cAAc;IAjBxB,OAAO,CAAC,YAAY,CAAsC;;IAGxD;;OAEG;IACK,eAAe,EAAE,YAAY;IAErC;;OAEG;IACK,MAAM,EAAE,MAAM;IAEtB;;;OAGG;IACK,cAAc,UAAQ;IAGhC;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC;IAuCjC,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;IAIpC;;;;OAIG;IACG,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CA+B1E"}
@@ -1,41 +0,0 @@
1
- import { type FunctionCall } from '@aztec/circuit-types';
2
- import { type GasSettings } from '@aztec/circuits.js';
3
- import { type AztecAddress } from '@aztec/foundation/aztec-address';
4
- import { type AccountWallet } from '../wallet/account_wallet.js';
5
- import { type FeePaymentMethod } from './fee_payment_method.js';
6
- /**
7
- * Holds information about how the fee for a transaction is to be paid.
8
- */
9
- export declare class PublicFeePaymentMethod implements FeePaymentMethod {
10
- /**
11
- * Address which will hold the fee payment.
12
- */
13
- protected paymentContract: AztecAddress;
14
- /**
15
- * An auth witness provider to authorize fee payments
16
- */
17
- protected wallet: AccountWallet;
18
- private assetPromise;
19
- constructor(
20
- /**
21
- * Address which will hold the fee payment.
22
- */
23
- paymentContract: AztecAddress,
24
- /**
25
- * An auth witness provider to authorize fee payments
26
- */
27
- wallet: AccountWallet);
28
- /**
29
- * The asset used to pay the fee.
30
- * @returns The asset used to pay the fee.
31
- */
32
- getAsset(): Promise<AztecAddress>;
33
- getFeePayer(): Promise<AztecAddress>;
34
- /**
35
- * Creates a function call to pay the fee in the given asset.
36
- * @param gasSettings - The gas settings.
37
- * @returns The function call to pay the fee.
38
- */
39
- getFunctionCalls(gasSettings: GasSettings): Promise<FunctionCall[]>;
40
- }
41
- //# sourceMappingURL=public_fee_payment_method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public_fee_payment_method.d.ts","sourceRoot":"","sources":["../../src/fee/public_fee_payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAIpE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAI3D;;OAEG;IACH,SAAS,CAAC,eAAe,EAAE,YAAY;IACvC;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,aAAa;IAVjC,OAAO,CAAC,YAAY,CAAsC;;IAGxD;;OAEG;IACO,eAAe,EAAE,YAAY;IACvC;;OAEG;IACO,MAAM,EAAE,aAAa;IAGjC;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC;IAuCjC,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;IAIpC;;;;OAIG;IACG,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAiC1E"}
package/dest/index.d.ts DELETED
@@ -1,51 +0,0 @@
1
- /**
2
- * This is our public api.
3
- * Do NOT "export * from ..." here.
4
- * Everything here should be explicit, to ensure we can clearly see everything we're exposing to the world.
5
- * If it's exposed, people will use it, and then we can't remove/change the api without breaking client code.
6
- * At the time of writing we overexpose things that should only be internal.
7
- *
8
- * TODO: Review and narrow scope of public api.
9
- * We should also consider exposing subsections of the api via package.json exports, like we do with foundation.
10
- * This can allow consumers to import much smaller parts of the library to incur less overhead.
11
- * It will also allow web bundlers do perform intelligent chunking of bundles etc.
12
- * Some work as been done on this within the api folder, providing the alternative import style of e.g.:
13
- * ```typescript
14
- * import { TxHash } from '@aztec.js/tx_hash'
15
- * import { type ContractArtifact, type FunctionArtifact, FunctionSelector } from '@aztec/aztec.js/abi';
16
- * import { AztecAddress } from '@aztec/aztec.js/addresses';
17
- * import { EthAddress } from '@aztec/aztec.js/eth_address';
18
- * ```
19
- *
20
- * TODO: Ultimately reimplement this mega exporter by mega exporting a granular api (then deprecate it).
21
- */
22
- export { ContractDeployer } from './deployment/index.js';
23
- export { AnvilTestWatcher, CheatCodes, L1FeeJuicePortalManager, L1ToL2TokenPortalManager, L1TokenManager, L1TokenPortalManager, computeAuthWitMessageHash, computeInnerAuthWitHash, computeInnerAuthWitHashFromAction, generateClaimSecret, generatePublicKey, readFieldCompressedString, waitForPXE, waitForNode, type AztecAddressLike, type EthAddressLike, type EventSelectorLike, type FieldLike, type FunctionSelectorLike, type L2AmountClaim, type L2AmountClaimWithRecipient, type L2Claim, type U128Like, type WrappedFieldLike, type IntentAction, } from './utils/index.js';
24
- export { NoteSelector } from '@aztec/foundation/abi';
25
- export { createCompatibleClient, createPXEClient } from './rpc_clients/index.js';
26
- export { type AuthWitnessProvider } from './account/index.js';
27
- export { type AccountContract } from './account/index.js';
28
- export { AccountManager, type DeployAccountOptions } from './account_manager/index.js';
29
- export { AccountWallet, AccountWalletWithSecretKey, SignerlessWallet, type Wallet } from './wallet/index.js';
30
- export { ContractClassWithId, ContractInstanceWithAddress, EthAddress, Fq, Fr, GlobalVariables, GrumpkinScalar, INITIAL_L2_BLOCK_NUM, NodeInfo, Point, PublicKeys, getContractClassFromArtifact, getContractInstanceFromDeployParams, } from '@aztec/circuits.js';
31
- export { computeSecretHash } from '@aztec/circuits.js/hash';
32
- export { computeAppNullifierSecretKey, deriveKeys, deriveMasterIncomingViewingSecretKey, deriveMasterNullifierSecretKey, } from '@aztec/circuits.js/keys';
33
- export { Grumpkin, Schnorr } from '@aztec/circuits.js/barretenberg';
34
- export { AuthWitness, Body, Comparator, ContractClass2BlockL2Logs, EncryptedLogPayload, EpochProofQuote, EpochProofQuotePayload, EventMetadata, EventType, ExtendedNote, FunctionCall, L1Actor, L1EventPayload, L1NotePayload, L1ToL2Message, L2Actor, L2Block, LogId, MerkleTreeId, Note, HashedValues, SiblingPath, Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, UnencryptedL2Log, UniqueNote, createAztecNodeClient, getTimestampRangeForEpoch, merkleTreeIds, mockEpochProofQuote, mockTx, type AztecNode, type LogFilter, type PXE, type PartialAddress, type PublicKey, } from '@aztec/circuit-types';
35
- export { decodeFromAbi, encodeArguments, type AbiType } from '@aztec/foundation/abi';
36
- export { toBigIntBE } from '@aztec/foundation/bigint-buffer';
37
- export { sha256 } from '@aztec/foundation/crypto';
38
- export { makeFetch } from '@aztec/foundation/json-rpc/client';
39
- export { createLogger, type Logger } from '@aztec/foundation/log';
40
- export { retry, retryUntil } from '@aztec/foundation/retry';
41
- export { to2Fields, toBigInt } from '@aztec/foundation/serialize';
42
- export { sleep } from '@aztec/foundation/sleep';
43
- export { elapsed } from '@aztec/foundation/timer';
44
- export { type FieldsOf } from '@aztec/foundation/types';
45
- export { fileURLToPath } from '@aztec/foundation/url';
46
- export * from './api/abi.js';
47
- export * from './api/fee.js';
48
- export * from './api/addresses.js';
49
- export * from './api/ethereum.js';
50
- export * from './contract/index.js';
51
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}