@aztec/test-wallet 3.0.0-nightly.20251110 → 3.0.0-nightly.20251112
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/dest/bundle.d.ts +1 -1
- package/dest/bundle.d.ts.map +1 -1
- package/dest/bundle.js +1 -1
- package/dest/lazy.d.ts +1 -1
- package/dest/lazy.d.ts.map +1 -1
- package/dest/lazy.js +1 -1
- package/dest/server.d.ts +1 -1
- package/dest/server.d.ts.map +1 -1
- package/dest/server.js +1 -1
- package/dest/utils.d.ts +2 -2
- package/dest/utils.d.ts.map +1 -1
- package/dest/utils.js +2 -2
- package/dest/wallet/test_wallet.d.ts +2 -2
- package/dest/wallet/test_wallet.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/bundle.ts +1 -1
- package/src/lazy.ts +1 -1
- package/src/server.ts +1 -1
- package/src/utils.ts +2 -2
- package/src/wallet/test_wallet.ts +2 -2
package/dest/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { TestWallet } from './wallet/bundle.js';
|
|
2
2
|
export { type AccountData } from './wallet/test_wallet.js';
|
|
3
|
-
export { deployFundedSchnorrAccounts,
|
|
3
|
+
export { deployFundedSchnorrAccounts, registerInitialLocalNetworkAccountsInWallet, ProvenTx, proveInteraction, } from './utils.js';
|
|
4
4
|
//# sourceMappingURL=bundle.d.ts.map
|
package/dest/bundle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,2CAA2C,EAC3C,QAAQ,EACR,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/dest/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TestWallet } from './wallet/bundle.js';
|
|
2
|
-
export { deployFundedSchnorrAccounts,
|
|
2
|
+
export { deployFundedSchnorrAccounts, registerInitialLocalNetworkAccountsInWallet, ProvenTx, proveInteraction } from './utils.js';
|
package/dest/lazy.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { TestWallet } from './wallet/lazy.js';
|
|
2
2
|
export { type AccountData } from './wallet/test_wallet.js';
|
|
3
|
-
export { deployFundedSchnorrAccounts,
|
|
3
|
+
export { deployFundedSchnorrAccounts, registerInitialLocalNetworkAccountsInWallet, ProvenTx, proveInteraction, } from './utils.js';
|
|
4
4
|
//# sourceMappingURL=lazy.d.ts.map
|
package/dest/lazy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../src/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../src/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,2CAA2C,EAC3C,QAAQ,EACR,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/dest/lazy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TestWallet } from './wallet/lazy.js';
|
|
2
|
-
export { deployFundedSchnorrAccounts,
|
|
2
|
+
export { deployFundedSchnorrAccounts, registerInitialLocalNetworkAccountsInWallet, ProvenTx, proveInteraction } from './utils.js';
|
package/dest/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { TestWallet } from './wallet/server.js';
|
|
2
2
|
export { type AccountData } from './wallet/test_wallet.js';
|
|
3
|
-
export { deployFundedSchnorrAccounts,
|
|
3
|
+
export { deployFundedSchnorrAccounts, registerInitialLocalNetworkAccountsInWallet, ProvenTx, proveInteraction, } from './utils.js';
|
|
4
4
|
//# sourceMappingURL=server.d.ts.map
|
package/dest/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,2BAA2B,EAC3B,2CAA2C,EAC3C,QAAQ,EACR,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/dest/server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TestWallet } from './wallet/server.js';
|
|
2
|
-
export { deployFundedSchnorrAccounts,
|
|
2
|
+
export { deployFundedSchnorrAccounts, registerInitialLocalNetworkAccountsInWallet, ProvenTx, proveInteraction } from './utils.js';
|
package/dest/utils.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ import type { BaseTestWallet } from './wallet/test_wallet.js';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function deployFundedSchnorrAccounts(wallet: BaseTestWallet, aztecNode: AztecNode, accountsData: InitialAccountData[], waitOptions?: WaitOpts): Promise<import("@aztec/aztec.js/wallet").AccountManager[]>;
|
|
12
12
|
/**
|
|
13
|
-
* Registers the initial
|
|
13
|
+
* Registers the initial local network accounts in the wallet.
|
|
14
14
|
* @param wallet - Test wallet to use to register the accounts.
|
|
15
15
|
* @returns Addresses of the registered accounts.
|
|
16
16
|
*/
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function registerInitialLocalNetworkAccountsInWallet(wallet: BaseTestWallet): Promise<AztecAddress[]>;
|
|
18
18
|
/**
|
|
19
19
|
* A proven transaction that can be sent to the network. Returned by the `prove` method of the test wallet
|
|
20
20
|
*/
|
package/dest/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACL,2BAA2B,EAC3B,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,MAAM,EACN,KAAK,QAAQ,EAEd,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,kBAAkB,EAAE,EA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B,GAAG,YAAY,EACvD,OAAO,EAAE,sBAAsB,GAAG,aAAa,qBAShD"}
|
package/dest/utils.js
CHANGED
|
@@ -21,10 +21,10 @@ import { Tx } from '@aztec/stdlib/tx';
|
|
|
21
21
|
return accountManagers;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Registers the initial
|
|
24
|
+
* Registers the initial local network accounts in the wallet.
|
|
25
25
|
* @param wallet - Test wallet to use to register the accounts.
|
|
26
26
|
* @returns Addresses of the registered accounts.
|
|
27
|
-
*/ export async function
|
|
27
|
+
*/ export async function registerInitialLocalNetworkAccountsInWallet(wallet) {
|
|
28
28
|
const testAccounts = await getInitialTestAccountsData();
|
|
29
29
|
return Promise.all(testAccounts.map(async (account)=>{
|
|
30
30
|
return (await wallet.createSchnorrAccount(account.secret, account.salt, account.signingKey)).address;
|
|
@@ -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,eAAe,EACpB,mCAAmC,EAGpC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAA0B,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,EAAE,EAAE,EAAE,EAAkB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,EAAE,EAAE,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,EAAE,CAAC;IACT;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED;;;;GAIG;AACH,8BAAs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qCAAqC,GAC7F,OAAO,CAAC,WAAW,CAAC;IAOvB,QAAQ,CAAC,qBAAqB,CAC5B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,2BAA2B,CAAC;QAAC,QAAQ,EAAE,gBAAgB,CAAA;KAAE,CAAC;IAEpF,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA6BjH;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,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.20251112",
|
|
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.20251112",
|
|
66
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251112",
|
|
67
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251112",
|
|
68
|
+
"@aztec/foundation": "3.0.0-nightly.20251112",
|
|
69
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251112",
|
|
70
|
+
"@aztec/pxe": "3.0.0-nightly.20251112",
|
|
71
|
+
"@aztec/stdlib": "3.0.0-nightly.20251112"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@jest/globals": "^30.0.0",
|
package/src/bundle.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { TestWallet } from './wallet/bundle.js';
|
|
|
2
2
|
export { type AccountData } from './wallet/test_wallet.js';
|
|
3
3
|
export {
|
|
4
4
|
deployFundedSchnorrAccounts,
|
|
5
|
-
|
|
5
|
+
registerInitialLocalNetworkAccountsInWallet,
|
|
6
6
|
ProvenTx,
|
|
7
7
|
proveInteraction,
|
|
8
8
|
} from './utils.js';
|
package/src/lazy.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { TestWallet } from './wallet/lazy.js';
|
|
|
2
2
|
export { type AccountData } from './wallet/test_wallet.js';
|
|
3
3
|
export {
|
|
4
4
|
deployFundedSchnorrAccounts,
|
|
5
|
-
|
|
5
|
+
registerInitialLocalNetworkAccountsInWallet,
|
|
6
6
|
ProvenTx,
|
|
7
7
|
proveInteraction,
|
|
8
8
|
} from './utils.js';
|
package/src/server.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { TestWallet } from './wallet/server.js';
|
|
|
2
2
|
export { type AccountData } from './wallet/test_wallet.js';
|
|
3
3
|
export {
|
|
4
4
|
deployFundedSchnorrAccounts,
|
|
5
|
-
|
|
5
|
+
registerInitialLocalNetworkAccountsInWallet,
|
|
6
6
|
ProvenTx,
|
|
7
7
|
proveInteraction,
|
|
8
8
|
} from './utils.js';
|
package/src/utils.ts
CHANGED
|
@@ -43,11 +43,11 @@ export async function deployFundedSchnorrAccounts(
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Registers the initial
|
|
46
|
+
* Registers the initial local network accounts in the wallet.
|
|
47
47
|
* @param wallet - Test wallet to use to register the accounts.
|
|
48
48
|
* @returns Addresses of the registered accounts.
|
|
49
49
|
*/
|
|
50
|
-
export async function
|
|
50
|
+
export async function registerInitialLocalNetworkAccountsInWallet(wallet: BaseTestWallet): Promise<AztecAddress[]> {
|
|
51
51
|
const testAccounts = await getInitialTestAccountsData();
|
|
52
52
|
return Promise.all(
|
|
53
53
|
testAccounts.map(async account => {
|
|
@@ -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();
|