Skip to content

Commit b02ea63

Browse files
authored
chore: upgrade aztec to 4.3.0 (#144)
1 parent a183cea commit b02ea63

11 files changed

Lines changed: 373 additions & 361 deletions

File tree

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
secrets: inherit
1414

1515
benchmark:
16-
uses: defi-wonderland/aztec-benchmark/.github/workflows/pr-benchmark.yml@4.2.0
16+
uses: defi-wonderland/aztec-benchmark/.github/workflows/pr-benchmark.yml@4.3.0
1717
permissions:
1818
contents: read
1919
pull-requests: write

.github/workflows/update-baseline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717
baseline:
18-
uses: defi-wonderland/aztec-benchmark/.github/workflows/update-baseline.yml@4.2.0
18+
uses: defi-wonderland/aztec-benchmark/.github/workflows/update-baseline.yml@4.3.0
1919
permissions:
2020
contents: read
2121
actions: write

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
nargo fmt
1+
aztec-nargo fmt
22
yarn lint-staged

docs/private-product-requirements.md

Lines changed: 77 additions & 69 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aztec-fee-payment",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"private": true,
55
"repository": "https://github.com/defi-wonderland/aztec-fee-payment.git",
66
"author": "Wonderland",
@@ -46,20 +46,20 @@
4646
"*.{js,ts}": "prettier --write -u"
4747
},
4848
"devDependencies": {
49-
"@aztec/accounts": "4.2.0",
50-
"@aztec/aztec.js": "4.2.0",
51-
"@aztec/constants": "4.2.0",
52-
"@aztec/entrypoints": "4.2.0",
53-
"@aztec/ethereum": "4.2.0",
54-
"@aztec/foundation": "4.2.0",
55-
"@aztec/noir-contracts.js": "4.2.0",
56-
"@aztec/protocol-contracts": "4.2.0",
57-
"@aztec/pxe": "4.2.0",
58-
"@aztec/stdlib": "4.2.0",
59-
"@aztec/wallets": "4.2.0",
49+
"@aztec/accounts": "4.3.0",
50+
"@aztec/aztec.js": "4.3.0",
51+
"@aztec/constants": "4.3.0",
52+
"@aztec/entrypoints": "4.3.0",
53+
"@aztec/ethereum": "4.3.0",
54+
"@aztec/foundation": "4.3.0",
55+
"@aztec/noir-contracts.js": "4.3.0",
56+
"@aztec/protocol-contracts": "4.3.0",
57+
"@aztec/pxe": "4.3.0",
58+
"@aztec/stdlib": "4.3.0",
59+
"@aztec/wallets": "4.3.0",
6060
"@commitlint/cli": "20.5.0",
6161
"@commitlint/config-conventional": "20.5.0",
62-
"@defi-wonderland/aztec-benchmark": "4.2.0",
62+
"@defi-wonderland/aztec-benchmark": "4.3.0",
6363
"@types/jest": "30.0.0",
6464
"@types/mocha": "10.0.10",
6565
"@types/node": "25.6.0",
@@ -72,7 +72,7 @@
7272
"vitest": "4.1.4"
7373
},
7474
"config": {
75-
"aztecVersion": "4.2.0"
75+
"aztecVersion": "4.3.0"
7676
},
7777
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
7878
"engines": {

src/nr/counter_contract/Nargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ compiler_version = ">=1.0.0"
55
authors = [""]
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0", directory = "noir-projects/aztec-nr/aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0", directory = "noir-projects/aztec-nr/aztec" }

src/nr/fpc_lib/Nargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ compiler_version = ">=1.0.0"
55
authors = [""]
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0", directory = "noir-projects/aztec-nr/aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0", directory = "noir-projects/aztec-nr/aztec" }

src/nr/private_contract/Nargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ compiler_version = ">=1.0.0"
55
authors = [""]
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0", directory = "noir-projects/aztec-nr/aztec" }
9-
balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0", directory = "noir-projects/aztec-nr/balance-set" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0", directory = "noir-projects/aztec-nr/aztec" }
9+
balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0", directory = "noir-projects/aztec-nr/balance-set" }
1010
keccak256 = { tag = "v0.1.3", git = "https://github.com/noir-lang/keccak256" }
1111
fpc_lib = { path = "../fpc_lib" }

src/ts/test/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export async function warpL1Time(
327327

328328
// Warp with all block production paused to prevent races.
329329
await cc.execWithPausedAnvil(async () => {
330-
const before = await cc.timestamp();
330+
const before = await cc.lastBlockTimestamp();
331331
await cc.setNextBlockTimestamp(before + seconds);
332332
await cc.evmMine();
333333
});

src/ts/utils/deploy.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Fr } from "@aztec/aztec.js/fields";
22
import { Wallet } from "@aztec/aztec.js/wallet";
3-
import { AztecAddress } from "@aztec/stdlib/aztec-address";
43

54
import { PrivateFPCContract } from "../../artifacts/PrivateFPC.js";
65

@@ -11,11 +10,11 @@ import { PrivateFPCContract } from "../../artifacts/PrivateFPC.js";
1110
* The Aztec protocol allows interacting with such contracts immediately once registered —
1211
* no on-chain deployment transaction is required.
1312
*
14-
* The contract address is computed deterministically from its class hash and the provided salt,
15-
* with `deployer: AztecAddress.ZERO` so the deployer address is NOT mixed in. This means the same
16-
* salt always produces the same address regardless of who calls this function.
17-
* (`universalDeploy` is only available on `.send()` options; for `.register()` the equivalent
18-
* is setting `deployer` to `AztecAddress.ZERO`.)
13+
* The contract address is computed deterministically from its class hash and the provided salt.
14+
* `universalDeploy: true` zeroes the deployer in the address preimage, so the same salt always
15+
* produces the same address regardless of who calls this function. (Aztec 4.3 moved salt /
16+
* deployer / universalDeploy from per-call options into the `DeployMethod` instantiation
17+
* argument, and the `register()` method no longer accepts options.)
1918
*
2019
* @param wallet The wallet used to register the contract with the PXE
2120
* @param salt Salt used to derive the contract address
@@ -25,9 +24,8 @@ export async function registerPrivateContract(
2524
wallet: Wallet,
2625
salt: Fr,
2726
): Promise<PrivateFPCContract> {
28-
return PrivateFPCContract.deploy(wallet).register({
29-
contractAddressSalt: salt,
30-
skipInitialization: true,
31-
deployer: AztecAddress.ZERO,
32-
});
27+
return PrivateFPCContract.deploy(wallet, {
28+
salt,
29+
universalDeploy: true,
30+
}).register();
3331
}

0 commit comments

Comments
 (0)