@aztec/cli-wallet 6.0.0-nightly.20260802 → 6.0.0-nightly.20260804
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CallAuthorizationRequest } from '@aztec/aztec.js/authorization';
|
|
2
|
-
import {
|
|
2
|
+
import { decodeEachFromAbi, getFunctionArtifact } from '@aztec/stdlib/abi';
|
|
3
3
|
import { format } from 'util';
|
|
4
4
|
export async function printAuthorizations(offchainEffects, artifactRetriever, log) {
|
|
5
5
|
log(format('\nAuthorizations requested by the tx:\n'));
|
|
@@ -14,7 +14,7 @@ export async function printAuthorizations(offchainEffects, artifactRetriever, lo
|
|
|
14
14
|
log(format(' ', `${callAuthorizationRequest.functionSelector.toString()}(\n${callAuthorizationRequest.args.map((arg)=>` ${arg.toString()}`).join(',\n')}\n )`));
|
|
15
15
|
} else {
|
|
16
16
|
const functionAbi = await getFunctionArtifact(artifact, callAuthorizationRequest.functionSelector);
|
|
17
|
-
const callData =
|
|
17
|
+
const callData = decodeEachFromAbi(functionAbi.parameters.map((param)=>param.type), callAuthorizationRequest.args);
|
|
18
18
|
const parameters = functionAbi.parameters.map((param, i)=>({
|
|
19
19
|
name: param.name,
|
|
20
20
|
value: callData[i]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli-wallet",
|
|
3
|
-
"version": "6.0.0-nightly.
|
|
3
|
+
"version": "6.0.0-nightly.20260804",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/cmds/index.js",
|
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/accounts": "6.0.0-nightly.
|
|
71
|
-
"@aztec/aztec.js": "6.0.0-nightly.
|
|
72
|
-
"@aztec/bb.js": "6.0.0-nightly.
|
|
73
|
-
"@aztec/cli": "6.0.0-nightly.
|
|
74
|
-
"@aztec/entrypoints": "6.0.0-nightly.
|
|
75
|
-
"@aztec/ethereum": "6.0.0-nightly.
|
|
76
|
-
"@aztec/foundation": "6.0.0-nightly.
|
|
77
|
-
"@aztec/kv-store": "6.0.0-nightly.
|
|
78
|
-
"@aztec/noir-contracts.js": "6.0.0-nightly.
|
|
79
|
-
"@aztec/noir-noirc_abi": "6.0.0-nightly.
|
|
80
|
-
"@aztec/pxe": "6.0.0-nightly.
|
|
81
|
-
"@aztec/standard-contracts": "6.0.0-nightly.
|
|
82
|
-
"@aztec/stdlib": "6.0.0-nightly.
|
|
83
|
-
"@aztec/wallet-sdk": "6.0.0-nightly.
|
|
70
|
+
"@aztec/accounts": "6.0.0-nightly.20260804",
|
|
71
|
+
"@aztec/aztec.js": "6.0.0-nightly.20260804",
|
|
72
|
+
"@aztec/bb.js": "6.0.0-nightly.20260804",
|
|
73
|
+
"@aztec/cli": "6.0.0-nightly.20260804",
|
|
74
|
+
"@aztec/entrypoints": "6.0.0-nightly.20260804",
|
|
75
|
+
"@aztec/ethereum": "6.0.0-nightly.20260804",
|
|
76
|
+
"@aztec/foundation": "6.0.0-nightly.20260804",
|
|
77
|
+
"@aztec/kv-store": "6.0.0-nightly.20260804",
|
|
78
|
+
"@aztec/noir-contracts.js": "6.0.0-nightly.20260804",
|
|
79
|
+
"@aztec/noir-noirc_abi": "6.0.0-nightly.20260804",
|
|
80
|
+
"@aztec/pxe": "6.0.0-nightly.20260804",
|
|
81
|
+
"@aztec/standard-contracts": "6.0.0-nightly.20260804",
|
|
82
|
+
"@aztec/stdlib": "6.0.0-nightly.20260804",
|
|
83
|
+
"@aztec/wallet-sdk": "6.0.0-nightly.20260804",
|
|
84
84
|
"commander": "^12.1.0",
|
|
85
85
|
"inquirer": "^10.1.8",
|
|
86
86
|
"source-map-support": "^0.5.21",
|
|
@@ -2,7 +2,7 @@ import type { ContractArtifact } from '@aztec/aztec.js/abi';
|
|
|
2
2
|
import type { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
3
3
|
import { CallAuthorizationRequest } from '@aztec/aztec.js/authorization';
|
|
4
4
|
import type { LogFn } from '@aztec/foundation/log';
|
|
5
|
-
import {
|
|
5
|
+
import { decodeEachFromAbi, getFunctionArtifact } from '@aztec/stdlib/abi';
|
|
6
6
|
import type { OffchainEffect } from '@aztec/stdlib/tx';
|
|
7
7
|
|
|
8
8
|
import { format } from 'util';
|
|
@@ -31,10 +31,10 @@ export async function printAuthorizations(
|
|
|
31
31
|
);
|
|
32
32
|
} else {
|
|
33
33
|
const functionAbi = await getFunctionArtifact(artifact, callAuthorizationRequest.functionSelector);
|
|
34
|
-
const callData =
|
|
34
|
+
const callData = decodeEachFromAbi(
|
|
35
35
|
functionAbi.parameters.map(param => param.type),
|
|
36
36
|
callAuthorizationRequest.args,
|
|
37
|
-
)
|
|
37
|
+
);
|
|
38
38
|
const parameters = functionAbi.parameters.map((param, i) => ({ name: param.name, value: callData[i] }));
|
|
39
39
|
log(format(' -', `Call authorization. Inner hash: ${callAuthorizationRequest.innerHash.toString()}`));
|
|
40
40
|
log(format(' ', `Contract: ${artifact.name}@${callAuthorizationEffect.contractAddress}`));
|