@aztec/test-wallet 3.0.0-nightly.20251109 → 3.0.0-nightly.20251111
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.
|
@@ -96,7 +96,7 @@ export declare abstract class BaseTestWallet extends BaseWallet {
|
|
|
96
96
|
* @param messageHashOrIntent - The action to authorize/revoke
|
|
97
97
|
* @param authorized - Whether the action can be performed or not
|
|
98
98
|
*/
|
|
99
|
-
setPublicAuthWit(from: AztecAddress, messageHashOrIntent: Fr |
|
|
99
|
+
setPublicAuthWit(from: AztecAddress, messageHashOrIntent: Fr | IntentInnerHash | CallIntent | ContractFunctionInteractionCallIntent, authorized: boolean): Promise<SetPublicAuthwitContractInteraction>;
|
|
100
100
|
/**
|
|
101
101
|
* Creates and returns an authwit according the the rules
|
|
102
102
|
* of the provided account. This authwit can be verified
|
|
@@ -104,7 +104,7 @@ export declare abstract class BaseTestWallet extends BaseWallet {
|
|
|
104
104
|
* @param from - The address authorizing the action
|
|
105
105
|
* @param messageHashOrIntent - The action to authorize
|
|
106
106
|
*/
|
|
107
|
-
createAuthWit(from: AztecAddress, messageHashOrIntent: Fr |
|
|
107
|
+
createAuthWit(from: AztecAddress, messageHashOrIntent: Fr | IntentInnerHash | CallIntent | ContractFunctionInteractionCallIntent): Promise<AuthWitness>;
|
|
108
108
|
abstract getFakeAccountDataFor(address: AztecAddress): Promise<{
|
|
109
109
|
account: Account;
|
|
110
110
|
instance: ContractInstanceWithAddress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test_wallet.d.ts","sourceRoot":"","sources":["../../src/wallet/test_wallet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACL,KAAK,UAAU,EACf,KAAK,qCAAqC,EAC1C,KAAK,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,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAY3E;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAIpD;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/test-wallet",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/test-wallet",
|
|
4
|
-
"version": "3.0.0-nightly.
|
|
4
|
+
"version": "3.0.0-nightly.20251111",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./client/bundle": "./dest/bundle.js",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
66
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
67
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
68
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
69
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
70
|
-
"@aztec/pxe": "3.0.0-nightly.
|
|
71
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
65
|
+
"@aztec/accounts": "3.0.0-nightly.20251111",
|
|
66
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251111",
|
|
67
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251111",
|
|
68
|
+
"@aztec/foundation": "3.0.0-nightly.20251111",
|
|
69
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251111",
|
|
70
|
+
"@aztec/pxe": "3.0.0-nightly.20251111",
|
|
71
|
+
"@aztec/stdlib": "3.0.0-nightly.20251111"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@jest/globals": "^30.0.0",
|
|
@@ -162,7 +162,7 @@ export abstract class BaseTestWallet extends BaseWallet {
|
|
|
162
162
|
*/
|
|
163
163
|
public setPublicAuthWit(
|
|
164
164
|
from: AztecAddress,
|
|
165
|
-
messageHashOrIntent: Fr |
|
|
165
|
+
messageHashOrIntent: Fr | IntentInnerHash | CallIntent | ContractFunctionInteractionCallIntent,
|
|
166
166
|
authorized: boolean,
|
|
167
167
|
): Promise<SetPublicAuthwitContractInteraction> {
|
|
168
168
|
return SetPublicAuthwitContractInteraction.create(this, from, messageHashOrIntent, authorized);
|
|
@@ -177,7 +177,7 @@ export abstract class BaseTestWallet extends BaseWallet {
|
|
|
177
177
|
*/
|
|
178
178
|
public override async createAuthWit(
|
|
179
179
|
from: AztecAddress,
|
|
180
|
-
messageHashOrIntent: Fr |
|
|
180
|
+
messageHashOrIntent: Fr | IntentInnerHash | CallIntent | ContractFunctionInteractionCallIntent,
|
|
181
181
|
): Promise<AuthWitness> {
|
|
182
182
|
const account = await this.getAccountFromAddress(from);
|
|
183
183
|
const chainInfo = await this.getChainInfo();
|