@aztec/end-to-end 1.0.0-nightly.20250716 → 1.0.0-nightly.20250718
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/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +1 -2
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +2 -4
- package/dest/sample-dapp/index.js +1 -2
- package/package.json +35 -35
- package/src/bench/utils.ts +1 -2
- package/src/fixtures/token_utils.ts +2 -4
- package/src/guides/up_quick_start.sh +1 -1
- package/src/sample-dapp/index.mjs +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/bench/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAa,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAExF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,KAAK,UAAU,EAA2C,MAAM,mBAAmB,CAAC;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAA4C,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAKxH,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAS,MAAM,sBAAsB,CAAC;AAEtF;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG;IAC5B,6BAA6B,CAAC,OAAO,EAAE,CAAC,WAAW,GAAG,YAAY,CAAC,EAAE,CAAC;IACtE,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;;;;GAwBF;AAED,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACr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ACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA6DF;;;;;;;;GAQG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,oBAAoB,EAC9B,kBAAkB,GAAE,OAAe,GAClC,OAAO,CAAC,MAAM,EAAE,CAAC,CAMnB;AAED,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,QAAQ,iBAI3F;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAiBvG"}
|
package/dest/bench/utils.js
CHANGED
|
@@ -91,14 +91,13 @@ function getMetricValues(points) {
|
|
|
91
91
|
* @returns A BatchCall instance.
|
|
92
92
|
*/ function makeCall(index, context, contract, heavyPublicCompute) {
|
|
93
93
|
const owner = context.wallet.getAddress();
|
|
94
|
-
const sender = owner;
|
|
95
94
|
if (heavyPublicCompute) {
|
|
96
95
|
return new BatchCall(context.wallet, [
|
|
97
96
|
contract.methods.sha256_hash_2048(randomBytesAsBigInts(2048))
|
|
98
97
|
]);
|
|
99
98
|
} else {
|
|
100
99
|
return new BatchCall(context.wallet, [
|
|
101
|
-
contract.methods.create_note(owner,
|
|
100
|
+
contract.methods.create_note(owner, index + 1),
|
|
102
101
|
contract.methods.increment_balance(owner, index + 1)
|
|
103
102
|
]);
|
|
104
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token_utils.d.ts","sourceRoot":"","sources":["../../src/fixtures/token_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAa,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,wBAAsB,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,0BAcjG;AAED,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"token_utils.d.ts","sourceRoot":"","sources":["../../src/fixtures/token_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAa,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,wBAAsB,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,0BAcjG;AAED,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,MAAM,iBAIf;AAGD,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,iBAOf;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,MAAM,CAAC,CAWjB"}
|
|
@@ -13,8 +13,7 @@ export async function deployToken(adminWallet, initialAdminBalance, logger) {
|
|
|
13
13
|
}
|
|
14
14
|
export async function mintTokensToPrivate(token, minterWallet, recipient, amount) {
|
|
15
15
|
const tokenAsMinter = await TokenContract.at(token.address, minterWallet);
|
|
16
|
-
|
|
17
|
-
await tokenAsMinter.methods.mint_to_private(from, recipient, amount).send().wait();
|
|
16
|
+
await tokenAsMinter.methods.mint_to_private(recipient, amount).send().wait();
|
|
18
17
|
}
|
|
19
18
|
// docs:end:token_utils
|
|
20
19
|
export async function expectTokenBalance(wallet, token, owner, expectedBalance, logger) {
|
|
@@ -32,8 +31,7 @@ export async function mintNotes(sender, recipient, asset, noteAmounts) {
|
|
|
32
31
|
const notesPerIteration = 4;
|
|
33
32
|
for(let mintedNotes = 0; mintedNotes < noteAmounts.length; mintedNotes += notesPerIteration){
|
|
34
33
|
const toMint = noteAmounts.slice(mintedNotes, mintedNotes + notesPerIteration);
|
|
35
|
-
const
|
|
36
|
-
const actions = toMint.map((amt)=>asset.methods.mint_to_private(from, recipient, amt));
|
|
34
|
+
const actions = toMint.map((amt)=>asset.methods.mint_to_private(recipient, amt));
|
|
37
35
|
await new BatchCall(sender, actions).send().wait();
|
|
38
36
|
}
|
|
39
37
|
return noteAmounts.reduce((prev, curr)=>prev + curr, 0n);
|
|
@@ -30,8 +30,7 @@ async function mintPrivateFunds(pxe) {
|
|
|
30
30
|
await showPrivateBalances(pxe);
|
|
31
31
|
// We mint tokens to the owner
|
|
32
32
|
const mintAmount = 20n;
|
|
33
|
-
|
|
34
|
-
await token.methods.mint_to_private(from, ownerWallet.getAddress(), mintAmount).send().wait();
|
|
33
|
+
await token.methods.mint_to_private(ownerWallet.getAddress(), mintAmount).send().wait();
|
|
35
34
|
await showPrivateBalances(pxe);
|
|
36
35
|
}
|
|
37
36
|
// docs:end:mintPrivateFunds
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/end-to-end",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250718",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -25,40 +25,40 @@
|
|
|
25
25
|
"formatting": "run -T prettier --check ./src && run -T eslint ./src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
29
|
-
"@aztec/archiver": "1.0.0-nightly.
|
|
30
|
-
"@aztec/aztec": "1.0.0-nightly.
|
|
31
|
-
"@aztec/aztec-node": "1.0.0-nightly.
|
|
32
|
-
"@aztec/aztec.js": "1.0.0-nightly.
|
|
33
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
34
|
-
"@aztec/blob-lib": "1.0.0-nightly.
|
|
35
|
-
"@aztec/blob-sink": "1.0.0-nightly.
|
|
36
|
-
"@aztec/bot": "1.0.0-nightly.
|
|
37
|
-
"@aztec/cli": "1.0.0-nightly.
|
|
38
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
39
|
-
"@aztec/entrypoints": "1.0.0-nightly.
|
|
40
|
-
"@aztec/epoch-cache": "1.0.0-nightly.
|
|
41
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
42
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
43
|
-
"@aztec/kv-store": "1.0.0-nightly.
|
|
44
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
45
|
-
"@aztec/merkle-tree": "1.0.0-nightly.
|
|
46
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
47
|
-
"@aztec/noir-noirc_abi": "1.0.0-nightly.
|
|
48
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
49
|
-
"@aztec/noir-test-contracts.js": "1.0.0-nightly.
|
|
50
|
-
"@aztec/p2p": "1.0.0-nightly.
|
|
51
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
52
|
-
"@aztec/prover-client": "1.0.0-nightly.
|
|
53
|
-
"@aztec/prover-node": "1.0.0-nightly.
|
|
54
|
-
"@aztec/pxe": "1.0.0-nightly.
|
|
55
|
-
"@aztec/sequencer-client": "1.0.0-nightly.
|
|
56
|
-
"@aztec/simulator": "1.0.0-nightly.
|
|
57
|
-
"@aztec/slasher": "1.0.0-nightly.
|
|
58
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
59
|
-
"@aztec/telemetry-client": "1.0.0-nightly.
|
|
60
|
-
"@aztec/validator-client": "1.0.0-nightly.
|
|
61
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
28
|
+
"@aztec/accounts": "1.0.0-nightly.20250718",
|
|
29
|
+
"@aztec/archiver": "1.0.0-nightly.20250718",
|
|
30
|
+
"@aztec/aztec": "1.0.0-nightly.20250718",
|
|
31
|
+
"@aztec/aztec-node": "1.0.0-nightly.20250718",
|
|
32
|
+
"@aztec/aztec.js": "1.0.0-nightly.20250718",
|
|
33
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250718",
|
|
34
|
+
"@aztec/blob-lib": "1.0.0-nightly.20250718",
|
|
35
|
+
"@aztec/blob-sink": "1.0.0-nightly.20250718",
|
|
36
|
+
"@aztec/bot": "1.0.0-nightly.20250718",
|
|
37
|
+
"@aztec/cli": "1.0.0-nightly.20250718",
|
|
38
|
+
"@aztec/constants": "1.0.0-nightly.20250718",
|
|
39
|
+
"@aztec/entrypoints": "1.0.0-nightly.20250718",
|
|
40
|
+
"@aztec/epoch-cache": "1.0.0-nightly.20250718",
|
|
41
|
+
"@aztec/ethereum": "1.0.0-nightly.20250718",
|
|
42
|
+
"@aztec/foundation": "1.0.0-nightly.20250718",
|
|
43
|
+
"@aztec/kv-store": "1.0.0-nightly.20250718",
|
|
44
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250718",
|
|
45
|
+
"@aztec/merkle-tree": "1.0.0-nightly.20250718",
|
|
46
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250718",
|
|
47
|
+
"@aztec/noir-noirc_abi": "1.0.0-nightly.20250718",
|
|
48
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250718",
|
|
49
|
+
"@aztec/noir-test-contracts.js": "1.0.0-nightly.20250718",
|
|
50
|
+
"@aztec/p2p": "1.0.0-nightly.20250718",
|
|
51
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250718",
|
|
52
|
+
"@aztec/prover-client": "1.0.0-nightly.20250718",
|
|
53
|
+
"@aztec/prover-node": "1.0.0-nightly.20250718",
|
|
54
|
+
"@aztec/pxe": "1.0.0-nightly.20250718",
|
|
55
|
+
"@aztec/sequencer-client": "1.0.0-nightly.20250718",
|
|
56
|
+
"@aztec/simulator": "1.0.0-nightly.20250718",
|
|
57
|
+
"@aztec/slasher": "1.0.0-nightly.20250718",
|
|
58
|
+
"@aztec/stdlib": "1.0.0-nightly.20250718",
|
|
59
|
+
"@aztec/telemetry-client": "1.0.0-nightly.20250718",
|
|
60
|
+
"@aztec/validator-client": "1.0.0-nightly.20250718",
|
|
61
|
+
"@aztec/world-state": "1.0.0-nightly.20250718",
|
|
62
62
|
"@iarna/toml": "^2.2.5",
|
|
63
63
|
"@jest/globals": "^30.0.0",
|
|
64
64
|
"@noble/curves": "^1.0.0",
|
package/src/bench/utils.ts
CHANGED
|
@@ -110,12 +110,11 @@ function makeCall(
|
|
|
110
110
|
heavyPublicCompute: boolean,
|
|
111
111
|
) {
|
|
112
112
|
const owner = context.wallet.getAddress();
|
|
113
|
-
const sender = owner;
|
|
114
113
|
if (heavyPublicCompute) {
|
|
115
114
|
return new BatchCall(context.wallet, [contract.methods.sha256_hash_2048(randomBytesAsBigInts(2048))]);
|
|
116
115
|
} else {
|
|
117
116
|
return new BatchCall(context.wallet, [
|
|
118
|
-
contract.methods.create_note(owner,
|
|
117
|
+
contract.methods.create_note(owner, index + 1),
|
|
119
118
|
contract.methods.increment_balance(owner, index + 1),
|
|
120
119
|
]);
|
|
121
120
|
}
|
|
@@ -26,8 +26,7 @@ export async function mintTokensToPrivate(
|
|
|
26
26
|
amount: bigint,
|
|
27
27
|
) {
|
|
28
28
|
const tokenAsMinter = await TokenContract.at(token.address, minterWallet);
|
|
29
|
-
|
|
30
|
-
await tokenAsMinter.methods.mint_to_private(from, recipient, amount).send().wait();
|
|
29
|
+
await tokenAsMinter.methods.mint_to_private(recipient, amount).send().wait();
|
|
31
30
|
}
|
|
32
31
|
// docs:end:token_utils
|
|
33
32
|
|
|
@@ -56,8 +55,7 @@ export async function mintNotes(
|
|
|
56
55
|
const notesPerIteration = 4;
|
|
57
56
|
for (let mintedNotes = 0; mintedNotes < noteAmounts.length; mintedNotes += notesPerIteration) {
|
|
58
57
|
const toMint = noteAmounts.slice(mintedNotes, mintedNotes + notesPerIteration);
|
|
59
|
-
const
|
|
60
|
-
const actions = toMint.map(amt => asset.methods.mint_to_private(from, recipient, amt));
|
|
58
|
+
const actions = toMint.map(amt => asset.methods.mint_to_private(recipient, amt));
|
|
61
59
|
await new BatchCall(sender, actions).send().wait();
|
|
62
60
|
}
|
|
63
61
|
|
|
@@ -31,7 +31,7 @@ echo "Deployed contract at $TOKEN_ADDRESS"
|
|
|
31
31
|
|
|
32
32
|
# docs:start:mint-private
|
|
33
33
|
MINT_AMOUNT=69
|
|
34
|
-
aztec-wallet send mint_to_private -ca last --args accounts:
|
|
34
|
+
aztec-wallet send mint_to_private -ca last --args accounts:alice $MINT_AMOUNT -f test0
|
|
35
35
|
# docs:end:mint-private
|
|
36
36
|
|
|
37
37
|
# docs:start:get-balance
|
|
@@ -40,8 +40,7 @@ async function mintPrivateFunds(pxe) {
|
|
|
40
40
|
|
|
41
41
|
// We mint tokens to the owner
|
|
42
42
|
const mintAmount = 20n;
|
|
43
|
-
|
|
44
|
-
await token.methods.mint_to_private(from, ownerWallet.getAddress(), mintAmount).send().wait();
|
|
43
|
+
await token.methods.mint_to_private(ownerWallet.getAddress(), mintAmount).send().wait();
|
|
45
44
|
|
|
46
45
|
await showPrivateBalances(pxe);
|
|
47
46
|
}
|