@aztec/cli-wallet 3.0.0-nightly.20251022 → 3.0.0-nightly.20251024

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 (77) hide show
  1. package/dest/bin/index.js +5 -1
  2. package/dest/cmds/authorize_action.d.ts +3 -2
  3. package/dest/cmds/authorize_action.d.ts.map +1 -1
  4. package/dest/cmds/authorize_action.js +2 -1
  5. package/dest/cmds/bridge_fee_juice.d.ts +1 -1
  6. package/dest/cmds/bridge_fee_juice.d.ts.map +1 -1
  7. package/dest/cmds/bridge_fee_juice.js +2 -1
  8. package/dest/cmds/check_tx.d.ts +3 -2
  9. package/dest/cmds/check_tx.d.ts.map +1 -1
  10. package/dest/cmds/check_tx.js +1 -1
  11. package/dest/cmds/create_account.d.ts +2 -1
  12. package/dest/cmds/create_account.d.ts.map +1 -1
  13. package/dest/cmds/create_account.js +4 -5
  14. package/dest/cmds/create_authwit.d.ts +2 -2
  15. package/dest/cmds/create_authwit.d.ts.map +1 -1
  16. package/dest/cmds/create_authwit.js +1 -1
  17. package/dest/cmds/deploy.d.ts +3 -1
  18. package/dest/cmds/deploy.d.ts.map +1 -1
  19. package/dest/cmds/deploy.js +6 -5
  20. package/dest/cmds/deploy_account.d.ts +2 -1
  21. package/dest/cmds/deploy_account.d.ts.map +1 -1
  22. package/dest/cmds/deploy_account.js +4 -5
  23. package/dest/cmds/import_test_accounts.js +1 -1
  24. package/dest/cmds/index.d.ts.map +1 -1
  25. package/dest/cmds/index.js +11 -26
  26. package/dest/cmds/profile.d.ts +3 -1
  27. package/dest/cmds/profile.d.ts.map +1 -1
  28. package/dest/cmds/profile.js +1 -1
  29. package/dest/cmds/register_contract.d.ts +6 -2
  30. package/dest/cmds/register_contract.d.ts.map +1 -1
  31. package/dest/cmds/register_contract.js +3 -1
  32. package/dest/cmds/register_sender.d.ts +2 -1
  33. package/dest/cmds/register_sender.d.ts.map +1 -1
  34. package/dest/cmds/send.d.ts +4 -6
  35. package/dest/cmds/send.d.ts.map +1 -1
  36. package/dest/cmds/send.js +5 -15
  37. package/dest/cmds/simulate.d.ts +3 -1
  38. package/dest/cmds/simulate.d.ts.map +1 -1
  39. package/dest/cmds/simulate.js +1 -1
  40. package/dest/storage/wallet_db.d.ts +1 -11
  41. package/dest/storage/wallet_db.d.ts.map +1 -1
  42. package/dest/storage/wallet_db.js +1 -22
  43. package/dest/utils/authorizations.d.ts +2 -1
  44. package/dest/utils/authorizations.d.ts.map +1 -1
  45. package/dest/utils/authorizations.js +1 -1
  46. package/dest/utils/options/fees.d.ts +4 -1
  47. package/dest/utils/options/fees.d.ts.map +1 -1
  48. package/dest/utils/options/options.d.ts +2 -1
  49. package/dest/utils/options/options.d.ts.map +1 -1
  50. package/dest/utils/wallet.d.ts +5 -1
  51. package/dest/utils/wallet.d.ts.map +1 -1
  52. package/dest/utils/wallet.js +3 -1
  53. package/package.json +12 -12
  54. package/src/bin/index.ts +5 -1
  55. package/src/cmds/authorize_action.ts +4 -1
  56. package/src/cmds/bridge_fee_juice.ts +3 -1
  57. package/src/cmds/check_tx.ts +8 -10
  58. package/src/cmds/create_account.ts +6 -5
  59. package/src/cmds/create_authwit.ts +2 -1
  60. package/src/cmds/deploy.ts +11 -6
  61. package/src/cmds/deploy_account.ts +6 -5
  62. package/src/cmds/import_test_accounts.ts +1 -1
  63. package/src/cmds/index.ts +8 -45
  64. package/src/cmds/profile.ts +4 -1
  65. package/src/cmds/register_contract.ts +6 -8
  66. package/src/cmds/register_sender.ts +2 -1
  67. package/src/cmds/send.ts +7 -22
  68. package/src/cmds/simulate.ts +4 -1
  69. package/src/storage/wallet_db.ts +1 -29
  70. package/src/utils/authorizations.ts +3 -1
  71. package/src/utils/options/fees.ts +4 -1
  72. package/src/utils/options/options.ts +2 -1
  73. package/src/utils/wallet.ts +5 -10
  74. package/dest/cmds/cancel_tx.d.ts +0 -12
  75. package/dest/cmds/cancel_tx.d.ts.map +0 -1
  76. package/dest/cmds/cancel_tx.js +0 -37
  77. package/src/cmds/cancel_tx.ts +0 -73
package/dest/bin/index.js CHANGED
@@ -1,4 +1,7 @@
1
- import { Fr, ProtocolContractAddress, computeSecretHash, createAztecNodeClient, fileURLToPath } from '@aztec/aztec.js';
1
+ import { computeSecretHash } from '@aztec/aztec.js/crypto';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
+ import { createAztecNodeClient } from '@aztec/aztec.js/node';
4
+ import { ProtocolContractAddress } from '@aztec/aztec.js/protocol';
2
5
  import { LOCALHOST } from '@aztec/cli/cli-utils';
3
6
  import { createConsoleLogger, createLogger } from '@aztec/foundation/log';
4
7
  import { openStoreAt } from '@aztec/kv-store/lmdb-v2';
@@ -7,6 +10,7 @@ import { Argument, Command, Option } from 'commander';
7
10
  import { mkdirSync } from 'fs';
8
11
  import { homedir } from 'os';
9
12
  import { dirname, join, resolve } from 'path';
13
+ import { fileURLToPath } from 'url';
10
14
  import { injectCommands } from '../cmds/index.js';
11
15
  import { Aliases, WalletDB } from '../storage/wallet_db.js';
12
16
  import { CliWalletAndNodeWrapper } from '../utils/cli_wallet_and_node_wrapper.js';
@@ -1,4 +1,5 @@
1
- import { type AztecAddress, type Wallet } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { Wallet } from '@aztec/aztec.js/wallet';
2
3
  import type { LogFn } from '@aztec/foundation/log';
3
- export declare function authorizeAction(wallet: Wallet, from: AztecAddress, functionName: string, caller: AztecAddress, functionArgsIn: any[], contractArtifactPath: string, contractAddress: AztecAddress, log: LogFn): Promise<import("@aztec/aztec.js").FieldsOf<import("@aztec/aztec.js").TxReceipt>>;
4
+ export declare function authorizeAction(wallet: Wallet, from: AztecAddress, functionName: string, caller: AztecAddress, functionArgsIn: any[], contractArtifactPath: string, contractAddress: AztecAddress, log: LogFn): Promise<import("@aztec/foundation/types").FieldsOf<import("@aztec/aztec.js/tx").TxReceipt>>;
4
5
  //# sourceMappingURL=authorize_action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authorize_action.d.ts","sourceRoot":"","sources":["../../src/cmds/authorize_action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAiD,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEhH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,GAAG,EAAE,KAAK,oFA6BX"}
1
+ {"version":3,"file":"authorize_action.d.ts","sourceRoot":"","sources":["../../src/cmds/authorize_action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,GAAG,EAAE,KAAK,+FA6BX"}
@@ -1,4 +1,5 @@
1
- import { Contract, SetPublicAuthwitContractInteraction } from '@aztec/aztec.js';
1
+ import { SetPublicAuthwitContractInteraction } from '@aztec/aztec.js/authorization';
2
+ import { Contract } from '@aztec/aztec.js/contracts';
2
3
  import { prepTx } from '@aztec/cli/utils';
3
4
  import { DEFAULT_TX_TIMEOUT_S } from '../utils/cli_wallet_and_node_wrapper.js';
4
5
  export async function authorizeAction(wallet, from, functionName, caller, functionArgsIn, contractArtifactPath, contractAddress, log) {
@@ -1,4 +1,4 @@
1
- import { type AztecNode } from '@aztec/aztec.js';
1
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
2
  import { Fr } from '@aztec/foundation/fields';
3
3
  import type { LogFn, Logger } from '@aztec/foundation/log';
4
4
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
@@ -1 +1 @@
1
- {"version":3,"file":"bridge_fee_juice.d.ts","sourceRoot":"","sources":["../../src/cmds/bridge_fee_juice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAoD,MAAM,iBAAiB,CAAC;AAGnG,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,EACb,QAAQ,oBAAS,EACjB,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,kCAmEpB"}
1
+ {"version":3,"file":"bridge_fee_juice.d.ts","sourceRoot":"","sources":["../../src/cmds/bridge_fee_juice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,EACb,QAAQ,oBAAS,EACjB,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,kCAmEpB"}
@@ -1,4 +1,5 @@
1
- import { L1FeeJuicePortalManager, ProtocolContractAddress } from '@aztec/aztec.js';
1
+ import { L1FeeJuicePortalManager } from '@aztec/aztec.js/ethereum';
2
+ import { ProtocolContractAddress } from '@aztec/aztec.js/protocol';
2
3
  import { prettyPrintJSON } from '@aztec/cli/utils';
3
4
  import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
4
5
  import { Fr } from '@aztec/foundation/fields';
@@ -1,5 +1,6 @@
1
- import { type AztecNode, type TxHash } from '@aztec/aztec.js';
1
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
+ import type { TxHash } from '@aztec/aztec.js/tx';
2
3
  import type { LogFn } from '@aztec/foundation/log';
3
4
  import type { CLIWallet } from '../utils/wallet.js';
4
- export declare function checkTx(wallet: CLIWallet, aztecNode: AztecNode, txHash: TxHash, statusOnly: boolean, log: LogFn): Promise<import("@aztec/aztec.js").TxStatus | undefined>;
5
+ export declare function checkTx(wallet: CLIWallet, aztecNode: AztecNode, txHash: TxHash, statusOnly: boolean, log: LogFn): Promise<import("@aztec/aztec.js/tx").TxStatus | undefined>;
5
6
  //# sourceMappingURL=check_tx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check_tx.d.ts","sourceRoot":"","sources":["../../src/cmds/check_tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAKd,KAAK,MAAM,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,OAAO,CAC3B,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,KAAK,2DAQX"}
1
+ {"version":3,"file":"check_tx.d.ts","sourceRoot":"","sources":["../../src/cmds/check_tx.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,OAAO,CAC3B,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,OAAO,EACnB,GAAG,EAAE,KAAK,8DAQX"}
@@ -1,4 +1,4 @@
1
- import { ProtocolContractAddress } from '@aztec/aztec.js';
1
+ import { ProtocolContractAddress } from '@aztec/aztec.js/protocol';
2
2
  import { siloNullifier } from '@aztec/stdlib/hash';
3
3
  export async function checkTx(wallet, aztecNode, txHash, statusOnly, log) {
4
4
  if (statusOnly) {
@@ -1,4 +1,5 @@
1
- import { AztecAddress, type AztecNode } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
3
  import { Fr } from '@aztec/foundation/fields';
3
4
  import type { LogFn, Logger } from '@aztec/foundation/log';
4
5
  import { CLIFeeArgs } from '../utils/options/fees.js';
@@ -1 +1 @@
1
- {"version":3,"file":"create_account.d.ts","sourceRoot":"","sources":["../../src/cmds/create_account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAA6B,MAAM,iBAAiB,CAAC;AAE1F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEjE,wBAAsB,aAAa,CACjC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,GAAG,SAAS,EACzB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,YAAY,EAAE,OAAO,EACrB,kBAAkB,EAAE,OAAO,EAC3B,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,OAAO,EACtB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,KAAK;;;;;GAkHX"}
1
+ {"version":3,"file":"create_account.d.ts","sourceRoot":"","sources":["../../src/cmds/create_account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEjE,wBAAsB,aAAa,CACjC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,GAAG,SAAS,EACzB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,YAAY,EAAE,OAAO,EACrB,kBAAkB,EAAE,OAAO,EAC3B,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,OAAO,EACtB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,KAAK;;;;;GAiHX"}
@@ -1,4 +1,4 @@
1
- import { AztecAddress } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
2
  import { prettyPrintJSON } from '@aztec/cli/cli-utils';
3
3
  import { Fr } from '@aztec/foundation/fields';
4
4
  import { DEFAULT_TX_TIMEOUT_S } from '../utils/cli_wallet_and_node_wrapper.js';
@@ -46,7 +46,7 @@ export async function createAccount(wallet, aztecNode, accountType, secretKey, p
46
46
  }
47
47
  };
48
48
  const deployMethod = await account.getDeployMethod();
49
- const { estimatedGas } = await deployMethod.simulate({
49
+ const { estimatedGas, stats } = await deployMethod.simulate({
50
50
  ...deployAccountOpts,
51
51
  fee: {
52
52
  ...deployAccountOpts.fee,
@@ -67,7 +67,7 @@ export async function createAccount(wallet, aztecNode, accountType, secretKey, p
67
67
  };
68
68
  }
69
69
  } else {
70
- const provenTx = await deployMethod.prove({
70
+ tx = deployMethod.send({
71
71
  ...deployAccountOpts,
72
72
  fee: deployAccountOpts.fee ? {
73
73
  ...deployAccountOpts.fee,
@@ -75,9 +75,8 @@ export async function createAccount(wallet, aztecNode, accountType, secretKey, p
75
75
  } : undefined
76
76
  });
77
77
  if (verbose) {
78
- printProfileResult(provenTx.stats, log);
78
+ printProfileResult(stats, log);
79
79
  }
80
- tx = provenTx.send();
81
80
  const txHash = await tx.getTxHash();
82
81
  debugLogger.debug(`Account contract tx sent with hash ${txHash.toString()}`);
83
82
  out.txHash = txHash;
@@ -1,5 +1,5 @@
1
- import { type AztecAddress } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
2
  import type { LogFn } from '@aztec/foundation/log';
3
3
  import type { CLIWallet } from '../utils/wallet.js';
4
- export declare function createAuthwit(wallet: CLIWallet, from: AztecAddress, functionName: string, caller: AztecAddress, functionArgsIn: any[], contractArtifactPath: string, contractAddress: AztecAddress, log: LogFn): Promise<import("@aztec/aztec.js").AuthWitness>;
4
+ export declare function createAuthwit(wallet: CLIWallet, from: AztecAddress, functionName: string, caller: AztecAddress, functionArgsIn: any[], contractArtifactPath: string, contractAddress: AztecAddress, log: LogFn): Promise<import("@aztec/stdlib/auth-witness").AuthWitness>;
5
5
  //# sourceMappingURL=create_authwit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_authwit.d.ts","sourceRoot":"","sources":["../../src/cmds/create_authwit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,aAAa,CACjC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,GAAG,EAAE,KAAK,kDAuBX"}
1
+ {"version":3,"file":"create_authwit.d.ts","sourceRoot":"","sources":["../../src/cmds/create_authwit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,aAAa,CACjC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,GAAG,EAAE,KAAK,6DAuBX"}
@@ -1,4 +1,4 @@
1
- import { Contract } from '@aztec/aztec.js';
1
+ import { Contract } from '@aztec/aztec.js/contracts';
2
2
  import { prepTx } from '@aztec/cli/utils';
3
3
  export async function createAuthwit(wallet, from, functionName, caller, functionArgsIn, contractArtifactPath, contractAddress, log) {
4
4
  const { functionArgs, contractArtifact, isPrivate } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
@@ -1,4 +1,6 @@
1
- import { AztecAddress, type AztecNode, Fr } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
4
  import type { LogFn, Logger } from '@aztec/foundation/log';
3
5
  import { PublicKeys } from '@aztec/stdlib/keys';
4
6
  import { CLIFeeArgs } from '../utils/options/fees.js';
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/cmds/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAwC,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAEzG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,UAAU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,EACtB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,GAAG,EAAE,EACd,IAAI,EAAE,EAAE,GAAG,SAAS,EACpB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,uBAAuB,EAAE,OAAO,EAChC,oBAAoB,EAAE,OAAO,EAC7B,kBAAkB,EAAE,OAAO,GAAG,SAAS,EACvC,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,YAAuB,EACtC,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,KAAK,qCAgGX"}
@@ -1,4 +1,6 @@
1
- import { AztecAddress, ContractDeployer, Fr } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { ContractDeployer } from '@aztec/aztec.js/deployment';
3
+ import { Fr } from '@aztec/aztec.js/fields';
2
4
  import { encodeArgs, getContractArtifact, prettyPrintJSON } from '@aztec/cli/utils';
3
5
  import { getAllFunctionAbis, getInitializer } from '@aztec/stdlib/abi';
4
6
  import { PublicKeys } from '@aztec/stdlib/keys';
@@ -35,7 +37,7 @@ export async function deploy(wallet, node, deployer, artifactPath, json, publicK
35
37
  skipInitialization,
36
38
  skipInstancePublication
37
39
  };
38
- const { estimatedGas } = await deploy1.simulate({
40
+ const { estimatedGas, stats } = await deploy1.simulate({
39
41
  ...deployOpts,
40
42
  fee: {
41
43
  ...deployOpts.fee,
@@ -56,11 +58,10 @@ export async function deploy(wallet, node, deployer, artifactPath, json, publicK
56
58
  };
57
59
  }
58
60
  } else {
59
- const provenTx = await deploy1.prove(deployOpts);
61
+ const tx = deploy1.send(deployOpts);
60
62
  if (verbose) {
61
- printProfileResult(provenTx.stats, log);
63
+ printProfileResult(stats, log);
62
64
  }
63
- const tx = provenTx.send();
64
65
  const txHash = await tx.getTxHash();
65
66
  debugLogger.debug(`Deploy tx sent with hash ${txHash.toString()}`);
66
67
  out.hash = txHash;
@@ -1,4 +1,5 @@
1
- import { AztecAddress, type AztecNode } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
3
  import type { LogFn, Logger } from '@aztec/foundation/log';
3
4
  import type { CLIFeeArgs } from '../utils/options/fees.js';
4
5
  import type { CLIWallet } from '../utils/wallet.js';
@@ -1 +1 @@
1
- {"version":3,"file":"deploy_account.d.ts","sourceRoot":"","sources":["../../src/cmds/deploy_account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAA6B,MAAM,iBAAiB,CAAC;AAE1F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,aAAa,CACjC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,aAAa,EAAE,OAAO,EACtB,YAAY,EAAE,OAAO,EACrB,kBAAkB,EAAE,OAAO,EAC3B,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,KAAK,iBAiGX"}
1
+ {"version":3,"file":"deploy_account.d.ts","sourceRoot":"","sources":["../../src/cmds/deploy_account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,aAAa,CACjC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,aAAa,EAAE,OAAO,EACtB,YAAY,EAAE,OAAO,EACrB,kBAAkB,EAAE,OAAO,EAC3B,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,KAAK,iBAgGX"}
@@ -1,4 +1,4 @@
1
- import { AztecAddress } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
2
  import { prettyPrintJSON } from '@aztec/cli/cli-utils';
3
3
  import { DEFAULT_TX_TIMEOUT_S } from '../utils/cli_wallet_and_node_wrapper.js';
4
4
  import { printProfileResult } from '../utils/profiling.js';
@@ -37,7 +37,7 @@ export async function deployAccount(wallet, aztecNode, address, wait, deployer,
37
37
  }
38
38
  };
39
39
  const deployMethod = await account.getDeployMethod();
40
- const { estimatedGas } = await deployMethod.simulate({
40
+ const { estimatedGas, stats } = await deployMethod.simulate({
41
41
  ...deployAccountOpts,
42
42
  fee: {
43
43
  ...deployAccountOpts.fee,
@@ -58,7 +58,7 @@ export async function deployAccount(wallet, aztecNode, address, wait, deployer,
58
58
  };
59
59
  }
60
60
  } else {
61
- const provenTx = await deployMethod.prove({
61
+ tx = deployMethod.send({
62
62
  ...deployAccountOpts,
63
63
  fee: deployAccountOpts.fee ? {
64
64
  ...deployAccountOpts.fee,
@@ -66,9 +66,8 @@ export async function deployAccount(wallet, aztecNode, address, wait, deployer,
66
66
  } : undefined
67
67
  });
68
68
  if (verbose) {
69
- printProfileResult(provenTx.stats, log);
69
+ printProfileResult(stats, log);
70
70
  }
71
- tx = provenTx.send();
72
71
  const txHash = await tx.getTxHash();
73
72
  debugLogger.debug(`Account contract tx sent with hash ${txHash.toString()}`);
74
73
  out.txHash = txHash;
@@ -1,5 +1,5 @@
1
1
  import { getInitialTestAccountsData } from '@aztec/accounts/testing';
2
- import { Fr } from '@aztec/aztec.js';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
3
  import { prettyPrintJSON } from '@aztec/cli/cli-utils';
4
4
  export async function importTestAccounts(wallet, db, json, log) {
5
5
  const testAccounts = await getInitialTestAccountsData();
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cmds/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAGjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AA2BvF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,uBAAuB,EAC7C,EAAE,EAAE,QAAQ,WAspBb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cmds/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAGjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAwBvF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,uBAAuB,EAC7C,EAAE,EAAE,QAAQ,WAonBb"}
@@ -1,10 +1,10 @@
1
1
  import { getIdentities } from '@aztec/accounts/utils';
2
- import { TxHash } from '@aztec/aztec.js/tx_hash';
2
+ import { TxHash } from '@aztec/aztec.js/tx';
3
3
  import { ETHEREUM_HOSTS, PRIVATE_KEY, addOptions, createSecretKeyOption, l1ChainIdOption, parseBigint, parseFieldFromHexString, parsePublicKey } from '@aztec/cli/utils';
4
- import { GasFees, GasSettings } from '@aztec/stdlib/gas';
4
+ import { randomBytes } from '@aztec/foundation/crypto';
5
5
  import { Option } from 'commander';
6
6
  import inquirer from 'inquirer';
7
- import { ARTIFACT_DESCRIPTION, CLIFeeArgs, aliasedAddressParser, aliasedSecretKeyParser, aliasedTxHashParser, artifactPathFromPromiseOrAlias, artifactPathParser, cleanupAuthWitnesses, createAccountOption, createAliasOption, createArgsOption, createArtifactOption, createAuthwitnessOption, createContractAddressOption, createDebugExecutionStepsDirOption, createTypeOption, createVerboseOption, getPaymentMethodOption, integerArgParser, parseGasFees, parsePaymentMethod } from '../utils/options/index.js';
7
+ import { ARTIFACT_DESCRIPTION, CLIFeeArgs, aliasedAddressParser, aliasedSecretKeyParser, aliasedTxHashParser, artifactPathFromPromiseOrAlias, artifactPathParser, cleanupAuthWitnesses, createAccountOption, createAliasOption, createArgsOption, createArtifactOption, createAuthwitnessOption, createContractAddressOption, createDebugExecutionStepsDirOption, createTypeOption, createVerboseOption, integerArgParser } from '../utils/options/index.js';
8
8
  // TODO: This function is only used in 1 place so we could just inline this
9
9
  export function injectCommands(program, log, debugLogger, walletAndNodeWrapper, db) {
10
10
  program.command('import-test-accounts').description('Import test accounts from pxe.').option('--json', 'Emit output as json').action(async (options)=>{
@@ -71,18 +71,18 @@ export function injectCommands(program, log, debugLogger, walletAndNodeWrapper,
71
71
  await db.storeContract(address, artifactPath, log, alias);
72
72
  }
73
73
  });
74
- const sendCommand = program.command('send').description('Calls a function on an Aztec contract.').argument('<functionName>', 'Name of function to execute').addOption(createArgsOption(false, db)).addOption(createArtifactOption(db)).addOption(createContractAddressOption(db)).addOption(createAliasOption('Alias for the transaction hash. Used for easy reference in subsequent commands.', !db)).addOption(createAuthwitnessOption('Authorization witness to use for the transaction. If using multiple, pass a comma separated string', !db, db)).addOption(createAccountOption('Alias or address of the account to send the transaction from', !db, db)).option('--no-wait', 'Print transaction hash without waiting for it to be mined').option('--no-cancel', 'Do not allow the transaction to be cancelled. This makes for cheaper transactions.').addOption(createVerboseOption());
74
+ const sendCommand = program.command('send').description('Calls a function on an Aztec contract.').argument('<functionName>', 'Name of function to execute').addOption(createArgsOption(false, db)).addOption(createArtifactOption(db)).addOption(createContractAddressOption(db)).addOption(createAliasOption('Alias for the transaction hash. Used for easy reference in subsequent commands.', !db)).addOption(createAuthwitnessOption('Authorization witness to use for the transaction. If using multiple, pass a comma separated string', !db, db)).addOption(createAccountOption('Alias or address of the account to send the transaction from', !db, db)).option('--no-wait', 'Print transaction hash without waiting for it to be mined').addOption(createVerboseOption());
75
75
  addOptions(sendCommand, CLIFeeArgs.getOptions()).action(async (functionName, _options, command)=>{
76
76
  const { send } = await import('./send.js');
77
77
  const options = command.optsWithGlobals();
78
- const { args, contractArtifact: artifactPathPromise, contractAddress, from: parsedFromAddress, wait, alias, cancel, authWitness: authWitnessArray, verbose } = options;
78
+ const { args, contractArtifact: artifactPathPromise, contractAddress, from: parsedFromAddress, wait, alias, authWitness: authWitnessArray, verbose } = options;
79
79
  const { wallet, node } = walletAndNodeWrapper;
80
80
  const artifactPath = await artifactPathFromPromiseOrAlias(artifactPathPromise, contractAddress, db);
81
81
  debugLogger.info(`Using wallet with address ${parsedFromAddress.toString()}`);
82
82
  const authWitnesses = cleanupAuthWitnesses(authWitnessArray);
83
- const sentTx = await send(wallet, node, parsedFromAddress, functionName, args, artifactPath, contractAddress, wait, cancel, CLIFeeArgs.parse(options, log, db), authWitnesses, verbose, log);
83
+ const sentTx = await send(wallet, node, parsedFromAddress, functionName, args, artifactPath, contractAddress, wait, alias, CLIFeeArgs.parse(options, log, db), authWitnesses, verbose, log);
84
84
  if (db && sentTx) {
85
- const txAlias = alias ? alias : `${functionName}-${sentTx.txNonce.toString().slice(-4)}`;
85
+ const txAlias = alias ? alias : `${functionName}-${randomBytes(16).toString()}`;
86
86
  await db.storeTx(sentTx, log, txAlias);
87
87
  }
88
88
  });
@@ -152,36 +152,21 @@ export function injectCommands(program, log, debugLogger, walletAndNodeWrapper,
152
152
  const dataRows = await Promise.all(aliases.slice(page * pageSize, pageSize * (1 + page)).map(async ({ key, value })=>({
153
153
  alias: key,
154
154
  txHash: value,
155
- cancellable: (await db.retrieveTxData(TxHash.fromString(value))).cancellable,
156
155
  status: await checkTx(wallet, node, TxHash.fromString(value), true, log)
157
156
  })));
158
157
  log(`Recent transactions:`);
159
158
  log('');
160
159
  log(`${'Alias'.padEnd(32, ' ')} | ${'TxHash'.padEnd(64, ' ')} | ${'Cancellable'.padEnd(12, ' ')} | Status`);
161
- log(''.padEnd(32 + 64 + 12 + 20, '-'));
162
- for (const { alias, txHash, status, cancellable } of dataRows){
163
- log(`${alias.padEnd(32, ' ')} | ${txHash} | ${cancellable.toString()?.padEnd(12, ' ')} | ${status}`);
164
- log(''.padEnd(32 + 64 + 12 + 20, '-'));
160
+ log(''.padEnd(32 + 64 + 20, '-'));
161
+ for (const { alias, txHash, status } of dataRows){
162
+ log(`${alias.padEnd(32, ' ')} | ${txHash} | ${status}`);
163
+ log(''.padEnd(32 + 64 + 20, '-'));
165
164
  }
166
165
  log(`Displaying ${Math.min(pageSize, aliases.length)} rows, page ${page + 1}/${totalPages}`);
167
166
  } else {
168
167
  log('Recent transactions are not available, please provide a specific transaction hash');
169
168
  }
170
169
  });
171
- program.command('cancel-tx').description('Cancels a pending tx by reusing its nonce with a higher fee and an empty payload').argument('<txHash>', 'A transaction hash to cancel.', (txHash)=>aliasedTxHashParser(txHash, db)).addOption(createAccountOption('Alias or address of the account to simulate from', !db, db)).addOption(getPaymentMethodOption().default('method=fee_juice')).option('-i --increased-fees <da=1,l2=1>', 'The amounts by which the fees are increased', (value)=>parseGasFees(value), new GasFees(1, 1)).option('--max-fees-per-gas <da=100,l2=100>', 'Maximum fees per gas unit for DA and L2 computation.', (value)=>parseGasFees(value)).action(async (txHash, options)=>{
172
- const { cancelTx } = await import('./cancel_tx.js');
173
- const { from: parsedFromAddress, payment, increasedFees, maxFeesPerGas } = options;
174
- const { wallet } = walletAndNodeWrapper;
175
- const txData = await db?.retrieveTxData(txHash);
176
- if (!txData) {
177
- throw new Error('Transaction data not found in the database, cannot reuse nonce');
178
- }
179
- const gasSettings = GasSettings.default({
180
- maxFeesPerGas
181
- });
182
- const paymentMethod = await parsePaymentMethod(payment, log, db)(wallet, parsedFromAddress, gasSettings);
183
- await cancelTx(wallet, parsedFromAddress, txData, paymentMethod, increasedFees, maxFeesPerGas, log);
184
- });
185
170
  program.command('register-sender').description("Registers a sender's address in the wallet, so the note synching process will look for notes sent by them").argument('[address]', 'The address of the sender to register', (address)=>aliasedAddressParser('accounts', address, db)).addOption(createAliasOption('Alias for the sender. Used for easy reference in subsequent commands.', !db)).action(async (address, options)=>{
186
171
  const { registerSender } = await import('./register_sender.js');
187
172
  const { alias } = options;
@@ -1,4 +1,6 @@
1
- import { AuthWitness, type AztecAddress, type AztecNode } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { AuthWitness } from '@aztec/aztec.js/authorization';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
4
  import type { LogFn } from '@aztec/foundation/log';
3
5
  import type { CLIFeeArgs } from '../utils/options/fees.js';
4
6
  import type { CLIWallet } from '../utils/wallet.js';
@@ -1 +1 @@
1
- {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/cmds/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAA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,aAAa,EAAE,WAAW,EAAE,EAC5B,GAAG,EAAE,KAAK,iBAqBX"}
@@ -1,4 +1,4 @@
1
- import { Contract } from '@aztec/aztec.js';
1
+ import { Contract } from '@aztec/aztec.js/contracts';
2
2
  import { prepTx } from '@aztec/cli/utils';
3
3
  import { serializePrivateExecutionSteps } from '@aztec/stdlib/kernel';
4
4
  import { promises as fs } from 'fs';
@@ -1,4 +1,8 @@
1
- import { type AztecAddress, type AztecNode, Fr, PublicKeys, type Wallet } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
+ import { PublicKeys } from '@aztec/aztec.js/keys';
4
+ import type { AztecNode } from '@aztec/aztec.js/node';
5
+ import type { Wallet } from '@aztec/aztec.js/wallet';
2
6
  import type { LogFn } from '@aztec/foundation/log';
3
- export declare function registerContract(wallet: Wallet, node: AztecNode, address: AztecAddress, artifactPath: string, log: LogFn, initializer?: string, publicKeys?: PublicKeys, rawArgs?: any[], salt?: Fr, deployer?: AztecAddress): Promise<import("@aztec/aztec.js").ContractInstanceWithAddress>;
7
+ export declare function registerContract(wallet: Wallet, node: AztecNode, address: AztecAddress, artifactPath: string, log: LogFn, initializer?: string, publicKeys?: PublicKeys, rawArgs?: any[], salt?: Fr, deployer?: AztecAddress): Promise<import("@aztec/aztec.js/contracts").ContractInstanceWithAddress>;
4
8
  //# sourceMappingURL=register_contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register_contract.d.ts","sourceRoot":"","sources":["../../src/cmds/register_contract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,EAAE,EACF,UAAU,EACV,KAAK,MAAM,EAEZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,KAAK,EACV,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,EACvB,OAAO,CAAC,EAAE,GAAG,EAAE,EACf,IAAI,CAAC,EAAE,EAAE,EACT,QAAQ,CAAC,EAAE,YAAY,kEAsBxB"}
1
+ {"version":3,"file":"register_contract.d.ts","sourceRoot":"","sources":["../../src/cmds/register_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,KAAK,EACV,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,UAAU,EACvB,OAAO,CAAC,EAAE,GAAG,EAAE,EACf,IAAI,CAAC,EAAE,EAAE,EACT,QAAQ,CAAC,EAAE,YAAY,4EAsBxB"}
@@ -1,4 +1,6 @@
1
- import { Fr, PublicKeys, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js';
1
+ import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
+ import { PublicKeys } from '@aztec/aztec.js/keys';
2
4
  import { getContractArtifact } from '@aztec/cli/cli-utils';
3
5
  import { getAllFunctionAbis, getInitializer } from '@aztec/stdlib/abi';
4
6
  export async function registerContract(wallet, node, address, artifactPath, log, initializer, publicKeys, rawArgs, salt, deployer) {
@@ -1,4 +1,5 @@
1
- import type { AztecAddress, Wallet } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { Wallet } from '@aztec/aztec.js/wallet';
2
3
  import type { LogFn } from '@aztec/foundation/log';
3
4
  export declare function registerSender(wallet: Wallet, address: AztecAddress, log: LogFn): Promise<void>;
4
5
  //# sourceMappingURL=register_sender.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register_sender.d.ts","sourceRoot":"","sources":["../../src/cmds/register_sender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,iBAGrF"}
1
+ {"version":3,"file":"register_sender.d.ts","sourceRoot":"","sources":["../../src/cmds/register_sender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,iBAGrF"}
@@ -1,12 +1,10 @@
1
- import { AuthWitness, type AztecAddress, type AztecNode, Fr } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { AuthWitness } from '@aztec/aztec.js/authorization';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
4
  import type { LogFn } from '@aztec/foundation/log';
3
- import { GasSettings } from '@aztec/stdlib/gas';
4
5
  import { CLIFeeArgs } from '../utils/options/fees.js';
5
6
  import type { CLIWallet } from '../utils/wallet.js';
6
7
  export declare function send(wallet: CLIWallet, node: AztecNode, from: AztecAddress, functionName: string, functionArgsIn: any[], contractArtifactPath: string, contractAddress: AztecAddress, wait: boolean, cancellable: boolean, feeOpts: CLIFeeArgs, authWitnesses: AuthWitness[], verbose: boolean, log: LogFn): Promise<{
7
- txHash: import("@aztec/aztec.js").TxHash;
8
- txNonce: Fr;
9
- cancellable: boolean;
10
- gasSettings: GasSettings;
8
+ txHash: import("@aztec/aztec.js/tx").TxHash;
11
9
  } | undefined>;
12
10
  //# sourceMappingURL=send.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/cmds/send.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EAEd,EAAE,EAEH,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,IAAI,CACxB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,UAAU,EACnB,aAAa,EAAE,WAAW,EAAE,EAC5B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,KAAK;;;;;eA4DX"}
1
+ {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/cmds/send.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,IAAI,CACxB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,UAAU,EACnB,aAAa,EAAE,WAAW,EAAE,EAC5B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,KAAK;;eAkDX"}
package/dest/cmds/send.js CHANGED
@@ -1,13 +1,11 @@
1
- import { Contract, Fr } from '@aztec/aztec.js';
1
+ import { Contract } from '@aztec/aztec.js/contracts';
2
2
  import { prepTx } from '@aztec/cli/utils';
3
- import { GasSettings } from '@aztec/stdlib/gas';
4
3
  import { DEFAULT_TX_TIMEOUT_S } from '../utils/cli_wallet_and_node_wrapper.js';
5
4
  import { printProfileResult } from '../utils/profiling.js';
6
5
  export async function send(wallet, node, from, functionName, functionArgsIn, contractArtifactPath, contractAddress, wait, cancellable, feeOpts, authWitnesses, verbose, log) {
7
6
  const { functionArgs, contractArtifact } = await prepTx(contractArtifactPath, functionName, functionArgsIn, log);
8
7
  const contract = await Contract.at(contractAddress, contractArtifact, wallet);
9
8
  const call = contract.methods[functionName](...functionArgs);
10
- const txNonce = Fr.random();
11
9
  const { paymentMethod, gasSettings } = await feeOpts.toUserFeeOptions(node, wallet, from);
12
10
  const sendOptions = {
13
11
  fee: {
@@ -17,7 +15,7 @@ export async function send(wallet, node, from, functionName, functionArgsIn, con
17
15
  from,
18
16
  authWitnesses
19
17
  };
20
- const { estimatedGas } = await call.simulate({
18
+ const { estimatedGas, stats } = await call.simulate({
21
19
  ...sendOptions,
22
20
  fee: {
23
21
  ...sendOptions.fee,
@@ -27,7 +25,7 @@ export async function send(wallet, node, from, functionName, functionArgsIn, con
27
25
  if (feeOpts.estimateOnly) {
28
26
  return;
29
27
  }
30
- const provenTx = await call.prove({
28
+ const tx = call.send({
31
29
  ...sendOptions,
32
30
  fee: {
33
31
  ...sendOptions.fee,
@@ -35,9 +33,8 @@ export async function send(wallet, node, from, functionName, functionArgsIn, con
35
33
  }
36
34
  });
37
35
  if (verbose) {
38
- printProfileResult(provenTx.stats, log);
36
+ printProfileResult(stats, log);
39
37
  }
40
- const tx = provenTx.send();
41
38
  const txHash = await tx.getTxHash();
42
39
  log(`\nTransaction hash: ${txHash.toString()}`);
43
40
  if (wait) {
@@ -57,14 +54,7 @@ export async function send(wallet, node, from, functionName, functionArgsIn, con
57
54
  } else {
58
55
  log('Transaction pending. Check status with check-tx');
59
56
  }
60
- const finalGasSettings = GasSettings.from({
61
- ...provenTx.data.constants.txContext.gasSettings,
62
- ...estimatedGas
63
- });
64
57
  return {
65
- txHash,
66
- txNonce,
67
- cancellable,
68
- gasSettings: finalGasSettings
58
+ txHash
69
59
  };
70
60
  }
@@ -1,4 +1,6 @@
1
- import { AuthWitness, type AztecAddress, type AztecNode } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { AuthWitness } from '@aztec/aztec.js/authorization';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
4
  import type { LogFn } from '@aztec/foundation/log';
3
5
  import type { CLIFeeArgs } from '../utils/options/fees.js';
4
6
  import type { CLIWallet } from '../utils/wallet.js';
@@ -1 +1 @@
1
- {"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../src/cmds/simulate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,iBAAiB,CAAC;AAE3F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,UAAU,EACnB,aAAa,EAAE,WAAW,EAAE,EAC5B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,KAAK,iBAgCX"}
1
+ {"version":3,"file":"simulate.d.ts","sourceRoot":"","sources":["../../src/cmds/simulate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,GAAG,EAAE,EACrB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,UAAU,EACnB,aAAa,EAAE,WAAW,EAAE,EAC5B,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,KAAK,iBAgCX"}
@@ -1,4 +1,4 @@
1
- import { Contract } from '@aztec/aztec.js';
1
+ import { Contract } from '@aztec/aztec.js/contracts';
2
2
  import { prepTx } from '@aztec/cli/utils';
3
3
  import { format } from 'util';
4
4
  import { printAuthorizations } from '../utils/authorizations.js';
@@ -3,7 +3,6 @@ import type { LogFn } from '@aztec/foundation/log';
3
3
  import type { AztecAsyncKVStore } from '@aztec/kv-store';
4
4
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
5
5
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
6
- import { GasSettings } from '@aztec/stdlib/gas';
7
6
  import type { TxHash } from '@aztec/stdlib/tx';
8
7
  import type { AccountType } from '../utils/wallet.js';
9
8
  export declare const Aliases: readonly ["accounts", "contracts", "artifacts", "secrets", "transactions", "authwits"];
@@ -31,18 +30,9 @@ export declare class WalletDB {
31
30
  storeSender(address: AztecAddress, alias: string, log: LogFn): Promise<void>;
32
31
  storeContract(address: AztecAddress, artifactPath: string, log: LogFn, alias?: string): Promise<void>;
33
32
  storeAuthwitness(authWit: AuthWitness, log: LogFn, alias?: string): Promise<void>;
34
- storeTx({ txHash, txNonce, cancellable, gasSettings, }: {
33
+ storeTx({ txHash }: {
35
34
  txHash: TxHash;
36
- txNonce: Fr;
37
- cancellable: boolean;
38
- gasSettings: GasSettings;
39
35
  }, log: LogFn, alias?: string): Promise<void>;
40
- retrieveTxData(txHash: TxHash): Promise<{
41
- txHash: TxHash;
42
- txNonce: Fr;
43
- cancellable: boolean;
44
- gasSettings: GasSettings;
45
- }>;
46
36
  tryRetrieveAlias(arg: string): string;
47
37
  retrieveAliasFromCache(arg: string): string;
48
38
  retrieveAlias(arg: string): Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file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