@aztec/cli-wallet 0.0.1-commit.b655e406 → 0.0.1-commit.b9865e97
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.
- package/README.md +2 -2
- package/dest/bin/index.d.ts +2 -1
- package/dest/bin/index.js +21 -11
- package/dest/cmds/authorize_action.d.ts +2 -2
- package/dest/cmds/authorize_action.d.ts.map +1 -1
- package/dest/cmds/authorize_action.js +5 -3
- package/dest/cmds/bridge_fee_juice.d.ts +2 -2
- package/dest/cmds/bridge_fee_juice.d.ts.map +1 -1
- package/dest/cmds/bridge_fee_juice.js +3 -2
- package/dest/cmds/check_tx.d.ts +1 -1
- package/dest/cmds/check_tx.d.ts.map +1 -1
- package/dest/cmds/check_tx.js +50 -21
- package/dest/cmds/create_account.d.ts +7 -5
- package/dest/cmds/create_account.d.ts.map +1 -1
- package/dest/cmds/create_account.js +43 -26
- package/dest/cmds/create_authwit.d.ts +1 -1
- package/dest/cmds/create_authwit.js +1 -1
- package/dest/cmds/deploy.d.ts +5 -4
- package/dest/cmds/deploy.d.ts.map +1 -1
- package/dest/cmds/deploy.js +64 -32
- package/dest/cmds/deploy_account.d.ts +4 -3
- package/dest/cmds/deploy_account.d.ts.map +1 -1
- package/dest/cmds/deploy_account.js +37 -20
- package/dest/cmds/get_fee_juice_balance.d.ts +5 -0
- package/dest/cmds/get_fee_juice_balance.d.ts.map +1 -0
- package/dest/cmds/get_fee_juice_balance.js +27 -0
- package/dest/cmds/import_test_accounts.d.ts +1 -1
- package/dest/cmds/index.d.ts +1 -1
- package/dest/cmds/index.d.ts.map +1 -1
- package/dest/cmds/index.js +33 -17
- package/dest/cmds/profile.d.ts +1 -1
- package/dest/cmds/profile.js +1 -1
- package/dest/cmds/register_contract.d.ts +1 -1
- package/dest/cmds/register_sender.d.ts +1 -1
- package/dest/cmds/send.d.ts +5 -4
- package/dest/cmds/send.d.ts.map +1 -1
- package/dest/cmds/send.js +33 -17
- package/dest/cmds/simulate.d.ts +1 -1
- package/dest/cmds/simulate.d.ts.map +1 -1
- package/dest/cmds/simulate.js +4 -4
- package/dest/storage/wallet_db.d.ts +10 -5
- package/dest/storage/wallet_db.d.ts.map +1 -1
- package/dest/storage/wallet_db.js +61 -32
- package/dest/utils/authorizations.d.ts +1 -1
- package/dest/utils/cli_wallet_and_node_wrapper.d.ts +1 -1
- package/dest/utils/cli_wallet_and_node_wrapper.d.ts.map +1 -1
- package/dest/utils/constants.d.ts +4 -0
- package/dest/utils/constants.d.ts.map +1 -0
- package/dest/utils/constants.js +7 -0
- package/dest/utils/ecdsa.d.ts +1 -1
- package/dest/utils/options/fees.d.ts +5 -3
- package/dest/utils/options/fees.d.ts.map +1 -1
- package/dest/utils/options/fees.js +34 -11
- package/dest/utils/options/index.d.ts +1 -1
- package/dest/utils/options/options.d.ts +1 -1
- package/dest/utils/options/options.js +1 -1
- package/dest/utils/profiling.d.ts +1 -1
- package/dest/utils/profiling.d.ts.map +1 -1
- package/dest/utils/profiling.js +9 -1
- package/dest/utils/wallet.d.ts +21 -12
- package/dest/utils/wallet.d.ts.map +1 -1
- package/dest/utils/wallet.js +135 -65
- package/package.json +19 -15
- package/src/bin/index.ts +19 -13
- package/src/cmds/authorize_action.ts +2 -2
- package/src/cmds/bridge_fee_juice.ts +3 -2
- package/src/cmds/check_tx.ts +55 -25
- package/src/cmds/create_account.ts +47 -26
- package/src/cmds/create_authwit.ts +1 -1
- package/src/cmds/deploy.ts +63 -36
- package/src/cmds/deploy_account.ts +38 -19
- package/src/cmds/get_fee_juice_balance.ts +37 -0
- package/src/cmds/index.ts +63 -9
- package/src/cmds/profile.ts +1 -1
- package/src/cmds/send.ts +33 -13
- package/src/cmds/simulate.ts +5 -8
- package/src/storage/wallet_db.ts +65 -38
- package/src/utils/cli_wallet_and_node_wrapper.ts +1 -1
- package/src/utils/constants.ts +4 -0
- package/src/utils/options/fees.ts +43 -12
- package/src/utils/options/options.ts +1 -1
- package/src/utils/profiling.ts +15 -1
- package/src/utils/wallet.ts +147 -81
package/dest/utils/wallet.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { type Account } from '@aztec/aztec.js/account';
|
|
2
2
|
import { type InteractionFeeOptions } from '@aztec/aztec.js/contracts';
|
|
3
3
|
import type { AztecNode } from '@aztec/aztec.js/node';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
4
|
+
import { AccountManager, type Aliased, type SimulateOptions } from '@aztec/aztec.js/wallet';
|
|
5
|
+
import { TxSimulationResultWithAppOffset } from '@aztec/aztec.js/wallet';
|
|
6
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
8
7
|
import type { LogFn } from '@aztec/foundation/log';
|
|
8
|
+
import type { NotesFilter } from '@aztec/pxe/client/lazy';
|
|
9
9
|
import type { PXEConfig } from '@aztec/pxe/config';
|
|
10
10
|
import type { PXE } from '@aztec/pxe/server';
|
|
11
11
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
12
|
-
import
|
|
13
|
-
import type { TxProvingResult
|
|
12
|
+
import { NoteDao } from '@aztec/stdlib/note';
|
|
13
|
+
import type { TxProvingResult } from '@aztec/stdlib/tx';
|
|
14
|
+
import { ExecutionPayload } from '@aztec/stdlib/tx';
|
|
15
|
+
import { BaseWallet, type SimulateViaEntrypointOptions } from '@aztec/wallet-sdk/base-wallet';
|
|
14
16
|
import type { WalletDB } from '../storage/wallet_db.js';
|
|
15
|
-
|
|
16
|
-
export type AccountType = (typeof AccountTypes)[number];
|
|
17
|
-
export declare const BASE_FEE_PADDING = 0.5;
|
|
17
|
+
import type { AccountType } from './constants.js';
|
|
18
18
|
export declare class CLIWallet extends BaseWallet {
|
|
19
19
|
private userLog;
|
|
20
20
|
private db?;
|
|
21
21
|
private accountCache;
|
|
22
|
+
private stubClassIds;
|
|
22
23
|
constructor(pxe: PXE, node: AztecNode, userLog: LogFn, db?: WalletDB | undefined);
|
|
23
24
|
static create(node: AztecNode, log: LogFn, db?: WalletDB, overridePXEConfig?: Partial<PXEConfig>): Promise<CLIWallet>;
|
|
25
|
+
private registerAuthRegistry;
|
|
26
|
+
private initStubClasses;
|
|
24
27
|
getAccounts(): Promise<Aliased<AztecAddress>[]>;
|
|
25
28
|
private createCancellationTxExecutionRequest;
|
|
26
29
|
proveCancellationTx(from: AztecAddress, txNonce: Fr, increasedFee: InteractionFeeOptions): Promise<TxProvingResult>;
|
|
@@ -28,8 +31,14 @@ export declare class CLIWallet extends BaseWallet {
|
|
|
28
31
|
private createAccount;
|
|
29
32
|
createOrRetrieveAccount(address?: AztecAddress, secretKey?: Fr, type?: AccountType, salt?: Fr, publicKey?: string): Promise<AccountManager>;
|
|
30
33
|
private getFakeAccountDataFor;
|
|
31
|
-
simulateTx(executionPayload: ExecutionPayload, opts: SimulateOptions): Promise<
|
|
34
|
+
simulateTx(executionPayload: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResultWithAppOffset>;
|
|
35
|
+
/**
|
|
36
|
+
* Uses a stub account for kernelless simulation, bypassing real account authorization.
|
|
37
|
+
* Uses DefaultEntrypoint directly for NO_FROM transactions.
|
|
38
|
+
*/
|
|
39
|
+
protected simulateViaEntrypoint(executionPayload: ExecutionPayload, opts: SimulateViaEntrypointOptions): Promise<TxSimulationResultWithAppOffset>;
|
|
32
40
|
getContracts(): Promise<AztecAddress[]>;
|
|
33
|
-
getNotes(filter: NotesFilter): Promise<
|
|
41
|
+
getNotes(filter: NotesFilter): Promise<NoteDao[]>;
|
|
42
|
+
getContractArtifact(id: Fr): Promise<import("@aztec/stdlib/abi").ContractArtifact | undefined>;
|
|
34
43
|
}
|
|
35
|
-
//# sourceMappingURL=
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FsbGV0LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbHMv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FQUFFLEVBQUUsRUFDZCxJQUFJLEdBQUUsV0FBdUIsRUFDN0IsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUNULFNBQVMsQ0FBQyxFQUFFLE1BQU0sR0FDakIsT0FBTyxDQUFDLGNBQWMsQ0FBQyxDQW1EekI7WUFRYSxxQkFBcUI7SUFvQnBCLFVBQVUsQ0FDdkIsZ0JBQWdCLEVBQUUsZ0JBQWdCLEVBQ2xDLElBQUksRUFBRSxlQUFlLEdBQ3BCLE9BQU8sQ0FBQywrQkFBK0IsQ0FBQyxDQWExQztJQUVEOzs7T0FHRztJQUNILFVBQXlCLHFCQUFxQixDQUM1QyxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFDbEMsSUFBSSxFQUFFLDRCQUE0QixHQUNqQyxPQUFPLENBQUMsK0JBQStCLENBQUMsQ0EyQzFDO0lBSUQsWUFBWSxJQUFJLE9BQU8sQ0FBQyxZQUFZLEVBQUUsQ0FBQyxDQUV0QztJQUlELFFBQVEsQ0FBQyxNQUFNLEVBQUUsV0FBVyxHQUFHLE9BQU8sQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUVoRDtJQUlELG1CQUFtQixDQUFDLEVBQUUsRUFBRSxFQUFFLHFFQUV6QjtDQUNGIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/utils/wallet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/utils/wallet.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,KAAK,qBAAqB,EAA8C,MAAM,2BAA2B,CAAC;AACnH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;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O,CAAC,YAAY,CAAC,EAAE,CAAC,CAQ7D;YAEa,oCAAoC;IA4B5C,mBAAmB,CACvB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,EAAE,EACX,YAAY,EAAE,qBAAqB,GAClC,OAAO,CAAC,eAAe,CAAC,CAG1B;IAEc,qBAAqB,CAAC,OAAO,EAAE,YAAY,oBAazD;YAEa,aAAa;IAWrB,uBAAuB,CAC3B,OAAO,CAAC,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,EAAE,EACd,IAAI,GAAE,WAAuB,EAC7B,IAAI,CAAC,EAAE,EAAE,EACT,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,CAmDzB;YAQa,qBAAqB;IAoBpB,UAAU,CACvB,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,+BAA+B,CAAC,CAa1C;IAED;;;OAGG;IACH,UAAyB,qBAAqB,CAC5C,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,4BAA4B,GACjC,OAAO,CAAC,+BAA+B,CAAC,CA2C1C;IAID,YAAY,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAEtC;IAID,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAEhD;IAID,mBAAmB,CAAC,EAAE,EAAE,EAAE,qEAEzB;CACF"}
|
package/dest/utils/wallet.js
CHANGED
|
@@ -1,65 +1,100 @@
|
|
|
1
1
|
import { EcdsaRAccountContract, EcdsaRSSHAccountContract } from '@aztec/accounts/ecdsa';
|
|
2
2
|
import { SchnorrAccountContract } from '@aztec/accounts/schnorr';
|
|
3
|
-
import {
|
|
3
|
+
import { StubEcdsaAccountContractArtifact, createStubEcdsaAccount } from '@aztec/accounts/stub/ecdsa';
|
|
4
|
+
import { StubSchnorrAccountContractArtifact, createStubSchnorrAccount } from '@aztec/accounts/stub/schnorr';
|
|
4
5
|
import { getIdentities } from '@aztec/accounts/utils';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { AccountManager
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { NO_FROM } from '@aztec/aztec.js/account';
|
|
7
|
+
import { getContractClassFromArtifact, getGasLimits } from '@aztec/aztec.js/contracts';
|
|
8
|
+
import { AccountManager } from '@aztec/aztec.js/wallet';
|
|
9
|
+
import { TxSimulationResultWithAppOffset } from '@aztec/aztec.js/wallet';
|
|
10
|
+
import { DefaultEntrypoint } from '@aztec/entrypoints/default';
|
|
11
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
10
12
|
import { createPXE, getPXEConfig } from '@aztec/pxe/server';
|
|
13
|
+
import { getStandardAuthRegistry } from '@aztec/standard-contracts/auth-registry';
|
|
11
14
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
12
15
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
16
|
+
import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
17
|
+
import { BaseWallet } from '@aztec/wallet-sdk/base-wallet';
|
|
13
18
|
import { extractECDSAPublicKeyFromBase64String } from './ecdsa.js';
|
|
14
19
|
import { printGasEstimates } from './options/fees.js';
|
|
15
|
-
export const AccountTypes = [
|
|
16
|
-
'schnorr',
|
|
17
|
-
'ecdsasecp256r1',
|
|
18
|
-
'ecdsasecp256r1ssh',
|
|
19
|
-
'ecdsasecp256k1'
|
|
20
|
-
];
|
|
21
|
-
export const BASE_FEE_PADDING = 0.5;
|
|
22
20
|
export class CLIWallet extends BaseWallet {
|
|
23
21
|
userLog;
|
|
24
22
|
db;
|
|
25
23
|
accountCache;
|
|
24
|
+
// Stub class ids, populated on wallet startup
|
|
25
|
+
// to avoid redundant work per simulation
|
|
26
|
+
stubClassIds;
|
|
26
27
|
constructor(pxe, node, userLog, db){
|
|
27
|
-
super(pxe, node), this.userLog = userLog, this.db = db, this.accountCache = new Map();
|
|
28
|
+
super(pxe, node), this.userLog = userLog, this.db = db, this.accountCache = new Map(), this.stubClassIds = new Map();
|
|
28
29
|
this.cancellableTransactions = true;
|
|
29
30
|
}
|
|
30
31
|
static async create(node, log, db, overridePXEConfig) {
|
|
31
32
|
const pxeConfig = Object.assign(getPXEConfig(), overridePXEConfig);
|
|
32
33
|
const pxe = await createPXE(node, pxeConfig);
|
|
33
|
-
|
|
34
|
+
const wallet = new CLIWallet(pxe, node, log, db);
|
|
35
|
+
await wallet.initStubClasses();
|
|
36
|
+
await wallet.registerAuthRegistry();
|
|
37
|
+
return wallet;
|
|
38
|
+
}
|
|
39
|
+
async registerAuthRegistry() {
|
|
40
|
+
const { instance, artifact } = await getStandardAuthRegistry();
|
|
41
|
+
await this.pxe.registerContract({
|
|
42
|
+
instance,
|
|
43
|
+
artifact
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Hashes and registers the stub class for every supported account type with PXE, populating
|
|
48
|
+
* stubClassIds. Called on wallet initialization.
|
|
49
|
+
*/ async initStubClasses() {
|
|
50
|
+
const { id: schnorrClassId } = await getContractClassFromArtifact(StubSchnorrAccountContractArtifact);
|
|
51
|
+
await this.pxe.registerContractClass(StubSchnorrAccountContractArtifact);
|
|
52
|
+
// ecdsa stubs share the same class id
|
|
53
|
+
const { id: ecdsaClassId } = await getContractClassFromArtifact(StubEcdsaAccountContractArtifact);
|
|
54
|
+
await this.pxe.registerContractClass(StubEcdsaAccountContractArtifact);
|
|
55
|
+
this.stubClassIds.set('schnorr', schnorrClassId);
|
|
56
|
+
this.stubClassIds.set('ecdsasecp256k1', ecdsaClassId);
|
|
57
|
+
this.stubClassIds.set('ecdsasecp256r1', ecdsaClassId);
|
|
58
|
+
this.stubClassIds.set('ecdsasecp256r1ssh', ecdsaClassId);
|
|
34
59
|
}
|
|
35
60
|
async getAccounts() {
|
|
36
61
|
const accounts = await this.db?.listAliases('accounts') ?? [];
|
|
37
|
-
return Promise.resolve(accounts.map(({ key, value })=>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
return Promise.resolve(accounts.map(({ key, value })=>{
|
|
63
|
+
const alias = key.includes(':') ? key.slice(key.indexOf(':') + 1) : key;
|
|
64
|
+
return {
|
|
65
|
+
alias,
|
|
66
|
+
item: AztecAddress.fromString(value)
|
|
67
|
+
};
|
|
68
|
+
}));
|
|
41
69
|
}
|
|
42
70
|
async createCancellationTxExecutionRequest(from, txNonce, increasedFee) {
|
|
43
|
-
const
|
|
71
|
+
const executionPayload = ExecutionPayload.empty();
|
|
72
|
+
const feeOptions = await this.completeFeeOptions({
|
|
73
|
+
from,
|
|
74
|
+
feePayer: executionPayload.feePayer,
|
|
75
|
+
gasSettings: increasedFee.gasSettings
|
|
76
|
+
});
|
|
44
77
|
const feeExecutionPayload = await feeOptions.walletFeePaymentMethod?.getExecutionPayload();
|
|
45
78
|
const fromAccount = await this.getAccountFromAddress(from);
|
|
79
|
+
const chainInfo = await this.getChainInfo();
|
|
46
80
|
const executionOptions = {
|
|
47
81
|
txNonce,
|
|
48
82
|
cancellable: this.cancellableTransactions,
|
|
83
|
+
// If from is an address, feeOptions include the way the account contract should handle the fee payment
|
|
49
84
|
feePaymentMethodOptions: feeOptions.accountFeePaymentMethodOptions
|
|
50
85
|
};
|
|
51
|
-
return await fromAccount.createTxExecutionRequest(feeExecutionPayload ??
|
|
86
|
+
return await fromAccount.createTxExecutionRequest(feeExecutionPayload ?? executionPayload, feeOptions.gasSettings, chainInfo, executionOptions);
|
|
52
87
|
}
|
|
53
88
|
async proveCancellationTx(from, txNonce, increasedFee) {
|
|
54
89
|
const cancellationTxRequest = await this.createCancellationTxExecutionRequest(from, txNonce, increasedFee);
|
|
55
|
-
return await this.pxe.proveTx(cancellationTxRequest
|
|
90
|
+
return await this.pxe.proveTx(cancellationTxRequest, {
|
|
91
|
+
scopes: this.scopesFrom(from),
|
|
92
|
+
senderForTags: from
|
|
93
|
+
});
|
|
56
94
|
}
|
|
57
95
|
async getAccountFromAddress(address) {
|
|
58
96
|
let account;
|
|
59
|
-
if (address.
|
|
60
|
-
const chainInfo = await this.getChainInfo();
|
|
61
|
-
account = new SignerlessAccount(chainInfo);
|
|
62
|
-
} else if (this.accountCache.has(address.toString())) {
|
|
97
|
+
if (this.accountCache.has(address.toString())) {
|
|
63
98
|
return this.accountCache.get(address.toString());
|
|
64
99
|
} else {
|
|
65
100
|
const accountManager = await this.createOrRetrieveAccount(address);
|
|
@@ -71,7 +106,9 @@ export class CLIWallet extends BaseWallet {
|
|
|
71
106
|
return account;
|
|
72
107
|
}
|
|
73
108
|
async createAccount(secret, salt, contract) {
|
|
74
|
-
const accountManager = await AccountManager.create(this, secret, contract,
|
|
109
|
+
const accountManager = await AccountManager.create(this, secret, contract, {
|
|
110
|
+
salt
|
|
111
|
+
});
|
|
75
112
|
const instance = accountManager.getInstance();
|
|
76
113
|
const artifact = await contract.getContractArtifact();
|
|
77
114
|
await this.registerContract(instance, artifact, secret);
|
|
@@ -123,62 +160,90 @@ export class CLIWallet extends BaseWallet {
|
|
|
123
160
|
}
|
|
124
161
|
return account;
|
|
125
162
|
}
|
|
126
|
-
|
|
127
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Creates a stub account that impersonates the given address, allowing kernelless simulations
|
|
165
|
+
* to bypass the account's authorization mechanisms via contract overrides.
|
|
166
|
+
* @param address - The address of the account to impersonate
|
|
167
|
+
* @returns The stub account, contract instance, and artifact for simulation
|
|
168
|
+
*/ async getFakeAccountDataFor(address) {
|
|
128
169
|
const originalAccount = await this.getAccountFromAddress(address);
|
|
129
170
|
const originalAddress = originalAccount.getCompleteAddress();
|
|
130
|
-
const
|
|
171
|
+
const contractInstance = await this.pxe.getContractInstance(originalAddress.address);
|
|
131
172
|
if (!contractInstance) {
|
|
132
173
|
throw new Error(`No contract instance found for address: ${originalAddress.address}`);
|
|
133
174
|
}
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
175
|
+
const { type } = await this.db.retrieveAccount(address);
|
|
176
|
+
const stubAccount = type === 'schnorr' ? createStubSchnorrAccount(originalAddress) : createStubEcdsaAccount(originalAddress);
|
|
177
|
+
const stubClassId = this.stubClassIds.get(type);
|
|
178
|
+
if (!stubClassId) {
|
|
179
|
+
throw new Error(`Stub class for account type '${type}' was not registered at wallet init. This is a bug — initStubClasses should cover every supported AccountType.`);
|
|
180
|
+
}
|
|
181
|
+
const instance = {
|
|
182
|
+
...contractInstance,
|
|
183
|
+
currentContractClassId: stubClassId
|
|
184
|
+
};
|
|
138
185
|
return {
|
|
139
186
|
account: stubAccount,
|
|
140
|
-
instance
|
|
141
|
-
artifact: StubAccountContractArtifact
|
|
187
|
+
instance
|
|
142
188
|
};
|
|
143
189
|
}
|
|
144
190
|
async simulateTx(executionPayload, opts) {
|
|
145
|
-
|
|
146
|
-
|
|
191
|
+
const simulationResults = await super.simulateTx(executionPayload, opts);
|
|
192
|
+
if (opts.fee?.estimateGas) {
|
|
193
|
+
const feeOptions = await this.completeFeeOptions({
|
|
194
|
+
from: opts.from,
|
|
195
|
+
feePayer: executionPayload.feePayer,
|
|
196
|
+
gasSettings: opts.fee?.gasSettings
|
|
197
|
+
});
|
|
198
|
+
const limits = getGasLimits(simulationResults, opts.fee?.estimatedGasPadding);
|
|
199
|
+
printGasEstimates(feeOptions, limits, this.userLog);
|
|
200
|
+
}
|
|
201
|
+
return simulationResults;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Uses a stub account for kernelless simulation, bypassing real account authorization.
|
|
205
|
+
* Uses DefaultEntrypoint directly for NO_FROM transactions.
|
|
206
|
+
*/ async simulateViaEntrypoint(executionPayload, opts) {
|
|
207
|
+
const { from, feeOptions, additionalScopes, sendMessagesAs } = opts;
|
|
208
|
+
const scopes = this.scopesFrom(from, additionalScopes);
|
|
147
209
|
const feeExecutionPayload = await feeOptions.walletFeePaymentMethod?.getExecutionPayload();
|
|
148
|
-
const executionOptions = {
|
|
149
|
-
txNonce: Fr.random(),
|
|
150
|
-
cancellable: this.cancellableTransactions,
|
|
151
|
-
feePaymentMethodOptions: feeOptions.accountFeePaymentMethodOptions
|
|
152
|
-
};
|
|
153
210
|
const finalExecutionPayload = feeExecutionPayload ? mergeExecutionPayloads([
|
|
154
211
|
feeExecutionPayload,
|
|
155
212
|
executionPayload
|
|
156
213
|
]) : executionPayload;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
if (
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
simulationResults = await this.pxe.simulateTx(txRequest, true, opts?.skipTxValidation, opts?.skipFeeEnforcement ?? true);
|
|
214
|
+
const chainInfo = await this.getChainInfo();
|
|
215
|
+
let overrides;
|
|
216
|
+
let txRequest;
|
|
217
|
+
if (from === NO_FROM) {
|
|
218
|
+
const entrypoint = new DefaultEntrypoint();
|
|
219
|
+
txRequest = await entrypoint.createTxExecutionRequest(finalExecutionPayload, feeOptions.gasSettings, chainInfo);
|
|
164
220
|
} else {
|
|
165
|
-
const { account
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
221
|
+
const { account, instance } = await this.getFakeAccountDataFor(from);
|
|
222
|
+
overrides = {
|
|
223
|
+
contracts: {
|
|
224
|
+
[from.toString()]: {
|
|
225
|
+
instance
|
|
226
|
+
}
|
|
171
227
|
}
|
|
172
228
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
229
|
+
const executionOptions = {
|
|
230
|
+
txNonce: Fr.random(),
|
|
231
|
+
cancellable: this.cancellableTransactions,
|
|
232
|
+
// If from is an address, feeOptions include the way the account contract should handle the fee payment
|
|
233
|
+
feePaymentMethodOptions: feeOptions.accountFeePaymentMethodOptions
|
|
234
|
+
};
|
|
235
|
+
txRequest = await account.createTxExecutionRequest(finalExecutionPayload, feeOptions.gasSettings, chainInfo, executionOptions);
|
|
180
236
|
}
|
|
181
|
-
|
|
237
|
+
const result = await this.pxe.simulateTx(txRequest, {
|
|
238
|
+
simulatePublic: true,
|
|
239
|
+
skipFeeEnforcement: true,
|
|
240
|
+
skipTxValidation: true,
|
|
241
|
+
overrides,
|
|
242
|
+
scopes,
|
|
243
|
+
senderForTags: this.senderForTagsFrom(from, sendMessagesAs)
|
|
244
|
+
});
|
|
245
|
+
const appCallOffset = await this.computeAppCallOffset(from, feeOptions);
|
|
246
|
+
return TxSimulationResultWithAppOffset.fromResultAndOffset(result, appCallOffset);
|
|
182
247
|
}
|
|
183
248
|
// Exposed because of the `aztec-wallet get-tx` command. It has been decided that it's fine to keep around because
|
|
184
249
|
// this is just a CLI wallet.
|
|
@@ -188,6 +253,11 @@ export class CLIWallet extends BaseWallet {
|
|
|
188
253
|
// Exposed because of the `aztec-wallet get-tx` command. It has been decided that it's fine to keep around because
|
|
189
254
|
// this is just a CLI wallet.
|
|
190
255
|
getNotes(filter) {
|
|
191
|
-
return this.pxe.getNotes(filter);
|
|
256
|
+
return this.pxe.debug.getNotes(filter);
|
|
257
|
+
}
|
|
258
|
+
// Exposed because of the `aztec-wallet get-tx` command. It has been decided that it's fine to keep around because
|
|
259
|
+
// this is just a CLI wallet.
|
|
260
|
+
getContractArtifact(id) {
|
|
261
|
+
return this.pxe.getContractArtifact(id);
|
|
192
262
|
}
|
|
193
263
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli-wallet",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.b9865e97",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/cmds/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"start": "node --no-warnings ./dest/bin",
|
|
21
21
|
"start:debug": "node --inspect=0.0.0.0:9221 --no-warnings ./dest/bin",
|
|
22
|
-
"dev": "LOG_LEVEL
|
|
23
|
-
"build": "yarn clean && tsc
|
|
24
|
-
"build:dev": "tsc
|
|
22
|
+
"dev": "LOG_LEVEL=\"debug; info: json-rpc, simulator\" node ./dest/bin",
|
|
23
|
+
"build": "yarn clean && ../scripts/tsc.sh",
|
|
24
|
+
"build:dev": "../scripts/tsc.sh --watch",
|
|
25
25
|
"clean": "rm -rf ./dest .tsbuildinfo",
|
|
26
26
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
27
27
|
},
|
|
@@ -67,17 +67,20 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/accounts": "0.0.1-commit.
|
|
71
|
-
"@aztec/aztec.js": "0.0.1-commit.
|
|
72
|
-
"@aztec/
|
|
73
|
-
"@aztec/
|
|
74
|
-
"@aztec/
|
|
75
|
-
"@aztec/
|
|
76
|
-
"@aztec/
|
|
77
|
-
"@aztec/
|
|
78
|
-
"@aztec/noir-
|
|
79
|
-
"@aztec/
|
|
80
|
-
"@aztec/
|
|
70
|
+
"@aztec/accounts": "0.0.1-commit.b9865e97",
|
|
71
|
+
"@aztec/aztec.js": "0.0.1-commit.b9865e97",
|
|
72
|
+
"@aztec/bb.js": "0.0.1-commit.b9865e97",
|
|
73
|
+
"@aztec/cli": "0.0.1-commit.b9865e97",
|
|
74
|
+
"@aztec/entrypoints": "0.0.1-commit.b9865e97",
|
|
75
|
+
"@aztec/ethereum": "0.0.1-commit.b9865e97",
|
|
76
|
+
"@aztec/foundation": "0.0.1-commit.b9865e97",
|
|
77
|
+
"@aztec/kv-store": "0.0.1-commit.b9865e97",
|
|
78
|
+
"@aztec/noir-contracts.js": "0.0.1-commit.b9865e97",
|
|
79
|
+
"@aztec/noir-noirc_abi": "0.0.1-commit.b9865e97",
|
|
80
|
+
"@aztec/pxe": "0.0.1-commit.b9865e97",
|
|
81
|
+
"@aztec/standard-contracts": "0.0.1-commit.b9865e97",
|
|
82
|
+
"@aztec/stdlib": "0.0.1-commit.b9865e97",
|
|
83
|
+
"@aztec/wallet-sdk": "0.0.1-commit.b9865e97",
|
|
81
84
|
"commander": "^12.1.0",
|
|
82
85
|
"inquirer": "^10.1.8",
|
|
83
86
|
"source-map-support": "^0.5.21",
|
|
@@ -88,6 +91,7 @@
|
|
|
88
91
|
"@types/jest": "^30.0.0",
|
|
89
92
|
"@types/node": "^22.15.17",
|
|
90
93
|
"@types/source-map-support": "^0.5.10",
|
|
94
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
91
95
|
"jest": "^30.0.0",
|
|
92
96
|
"jest-mock-extended": "^4.0.0",
|
|
93
97
|
"ts-jest": "^29.4.0",
|
package/src/bin/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import { computeSecretHash } from '@aztec/aztec.js/crypto';
|
|
2
3
|
import { Fr } from '@aztec/aztec.js/fields';
|
|
3
4
|
import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
4
5
|
import { ProtocolContractAddress } from '@aztec/aztec.js/protocol';
|
|
6
|
+
import { BackendType, Barretenberg } from '@aztec/bb.js';
|
|
5
7
|
import { LOCALHOST } from '@aztec/cli/cli-utils';
|
|
6
8
|
import { type LogFn, createConsoleLogger, createLogger } from '@aztec/foundation/log';
|
|
7
9
|
import { openStoreAt } from '@aztec/kv-store/lmdb-v2';
|
|
@@ -9,10 +11,8 @@ import type { PXEConfig } from '@aztec/pxe/config';
|
|
|
9
11
|
import { getPackageVersion } from '@aztec/stdlib/update-checker';
|
|
10
12
|
|
|
11
13
|
import { Argument, Command, Option } from 'commander';
|
|
12
|
-
import { mkdirSync } from 'fs';
|
|
13
14
|
import { homedir } from 'os';
|
|
14
|
-
import {
|
|
15
|
-
import { fileURLToPath } from 'url';
|
|
15
|
+
import { join } from 'path';
|
|
16
16
|
|
|
17
17
|
import { injectCommands } from '../cmds/index.js';
|
|
18
18
|
import { Aliases, WalletDB } from '../storage/wallet_db.js';
|
|
@@ -73,7 +73,7 @@ function injectInternalCommands(program: Command, log: LogFn, db: WalletDB) {
|
|
|
73
73
|
|
|
74
74
|
/** CLI wallet main entrypoint */
|
|
75
75
|
async function main() {
|
|
76
|
-
const walletVersion = getPackageVersion()
|
|
76
|
+
const walletVersion = getPackageVersion();
|
|
77
77
|
|
|
78
78
|
const db = WalletDB.getInstance();
|
|
79
79
|
const walletAndNodeWrapper = new CliWalletAndNodeWrapper();
|
|
@@ -95,22 +95,26 @@ async function main() {
|
|
|
95
95
|
.default(`http://${LOCALHOST}:8080`),
|
|
96
96
|
)
|
|
97
97
|
.hook('preSubcommand', async command => {
|
|
98
|
+
// Skip initialization if user is just requesting help
|
|
99
|
+
if (command.args.includes('--help') || command.args.includes('-h')) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
const { dataDir, nodeUrl, prover } = command.optsWithGlobals();
|
|
99
104
|
|
|
100
105
|
const proverEnabled = prover !== 'none';
|
|
101
106
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
switch (prover) {
|
|
108
|
+
case 'native':
|
|
109
|
+
await Barretenberg.initSingleton({ backend: BackendType.NativeUnixSocket });
|
|
110
|
+
break;
|
|
111
|
+
case 'wasm':
|
|
112
|
+
await Barretenberg.initSingleton({ backend: BackendType.Wasm });
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
109
115
|
|
|
110
116
|
const overridePXEConfig: Partial<PXEConfig> = {
|
|
111
117
|
proverEnabled,
|
|
112
|
-
bbBinaryPath: prover === 'native' ? bbBinaryPath : undefined,
|
|
113
|
-
bbWorkingDirectory: prover === 'native' ? bbWorkingDirectory : undefined,
|
|
114
118
|
dataDirectory: join(dataDir, 'pxe'),
|
|
115
119
|
};
|
|
116
120
|
|
|
@@ -142,6 +146,8 @@ async function main() {
|
|
|
142
146
|
injectCommands(program, userLog, debugLogger, walletAndNodeWrapper, db);
|
|
143
147
|
injectInternalCommands(program, userLog, db);
|
|
144
148
|
await program.parseAsync(process.argv);
|
|
149
|
+
|
|
150
|
+
await Barretenberg.destroySingleton();
|
|
145
151
|
}
|
|
146
152
|
|
|
147
153
|
main().catch(err => {
|
|
@@ -30,7 +30,7 @@ export async function authorizeAction(
|
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
const contract =
|
|
33
|
+
const contract = Contract.at(contractAddress, contractArtifact, wallet);
|
|
34
34
|
const action = contract.methods[functionName](...functionArgs);
|
|
35
35
|
|
|
36
36
|
const setAuthwitnessInteraction = await SetPublicAuthwitContractInteraction.create(
|
|
@@ -39,7 +39,7 @@ export async function authorizeAction(
|
|
|
39
39
|
{ caller, action },
|
|
40
40
|
true,
|
|
41
41
|
);
|
|
42
|
-
const witness = await setAuthwitnessInteraction.send(
|
|
42
|
+
const witness = await setAuthwitnessInteraction.send({ wait: { timeout: DEFAULT_TX_TIMEOUT_S } });
|
|
43
43
|
|
|
44
44
|
log(`Authorized action ${functionName} on contract ${contractAddress} for caller ${caller}`);
|
|
45
45
|
|
|
@@ -2,8 +2,9 @@ import { L1FeeJuicePortalManager } from '@aztec/aztec.js/ethereum';
|
|
|
2
2
|
import type { AztecNode } from '@aztec/aztec.js/node';
|
|
3
3
|
import { ProtocolContractAddress } from '@aztec/aztec.js/protocol';
|
|
4
4
|
import { prettyPrintJSON } from '@aztec/cli/utils';
|
|
5
|
-
import { createEthereumChain
|
|
6
|
-
import {
|
|
5
|
+
import { createEthereumChain } from '@aztec/ethereum/chain';
|
|
6
|
+
import { createExtendedL1Client } from '@aztec/ethereum/client';
|
|
7
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
7
8
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
8
9
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
9
10
|
import { getNonNullifiedL1ToL2MessageWitness } from '@aztec/stdlib/messaging';
|