@aztec/aztec 0.0.1-commit.3e3d0c9cd → 0.0.1-commit.3fd054f6
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.
|
@@ -101,7 +101,7 @@ import { getAddress, getContract } from 'viem';
|
|
|
101
101
|
if (!this.dateProvider) {
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
const l1Time = await this.cheatcodes.
|
|
104
|
+
const l1Time = await this.cheatcodes.lastBlockTimestamp() * 1000;
|
|
105
105
|
const wallTime = this.dateProvider.now();
|
|
106
106
|
if (l1Time > wallTime) {
|
|
107
107
|
this.logger.warn(`L1 is ahead of wall time. Syncing wall time to L1 time`);
|
|
@@ -55,7 +55,7 @@ import { retryUntil } from '@aztec/foundation/retry';
|
|
|
55
55
|
* @param node - The Aztec node used to query if a new block has been mined.
|
|
56
56
|
* @param duration - The duration to advance time by (in seconds)
|
|
57
57
|
*/ async warpL2TimeAtLeastBy(sequencerClient, node, duration) {
|
|
58
|
-
const currentTimestamp = await this.eth.
|
|
58
|
+
const currentTimestamp = await this.eth.lastBlockTimestamp();
|
|
59
59
|
const targetTimestamp = BigInt(currentTimestamp) + BigInt(duration);
|
|
60
60
|
await this.warpL2TimeAtLeastTo(sequencerClient, node, targetTimestamp);
|
|
61
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.3fd054f6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -28,38 +28,38 @@
|
|
|
28
28
|
"../package.common.json"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aztec/accounts": "0.0.1-commit.
|
|
32
|
-
"@aztec/archiver": "0.0.1-commit.
|
|
33
|
-
"@aztec/aztec-node": "0.0.1-commit.
|
|
34
|
-
"@aztec/aztec.js": "0.0.1-commit.
|
|
35
|
-
"@aztec/bb-prover": "0.0.1-commit.
|
|
36
|
-
"@aztec/bb.js": "0.0.1-commit.
|
|
37
|
-
"@aztec/blob-client": "0.0.1-commit.
|
|
38
|
-
"@aztec/bot": "0.0.1-commit.
|
|
39
|
-
"@aztec/builder": "0.0.1-commit.
|
|
40
|
-
"@aztec/cli": "0.0.1-commit.
|
|
41
|
-
"@aztec/constants": "0.0.1-commit.
|
|
42
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
43
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
44
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
45
|
-
"@aztec/kv-store": "0.0.1-commit.
|
|
46
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
47
|
-
"@aztec/node-lib": "0.0.1-commit.
|
|
48
|
-
"@aztec/noir-contracts.js": "0.0.1-commit.
|
|
49
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
50
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
51
|
-
"@aztec/p2p-bootstrap": "0.0.1-commit.
|
|
52
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
53
|
-
"@aztec/prover-client": "0.0.1-commit.
|
|
54
|
-
"@aztec/prover-node": "0.0.1-commit.
|
|
55
|
-
"@aztec/pxe": "0.0.1-commit.
|
|
56
|
-
"@aztec/sequencer-client": "0.0.1-commit.
|
|
57
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
58
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
59
|
-
"@aztec/txe": "0.0.1-commit.
|
|
60
|
-
"@aztec/validator-ha-signer": "0.0.1-commit.
|
|
61
|
-
"@aztec/wallets": "0.0.1-commit.
|
|
62
|
-
"@aztec/world-state": "0.0.1-commit.
|
|
31
|
+
"@aztec/accounts": "0.0.1-commit.3fd054f6",
|
|
32
|
+
"@aztec/archiver": "0.0.1-commit.3fd054f6",
|
|
33
|
+
"@aztec/aztec-node": "0.0.1-commit.3fd054f6",
|
|
34
|
+
"@aztec/aztec.js": "0.0.1-commit.3fd054f6",
|
|
35
|
+
"@aztec/bb-prover": "0.0.1-commit.3fd054f6",
|
|
36
|
+
"@aztec/bb.js": "0.0.1-commit.3fd054f6",
|
|
37
|
+
"@aztec/blob-client": "0.0.1-commit.3fd054f6",
|
|
38
|
+
"@aztec/bot": "0.0.1-commit.3fd054f6",
|
|
39
|
+
"@aztec/builder": "0.0.1-commit.3fd054f6",
|
|
40
|
+
"@aztec/cli": "0.0.1-commit.3fd054f6",
|
|
41
|
+
"@aztec/constants": "0.0.1-commit.3fd054f6",
|
|
42
|
+
"@aztec/entrypoints": "0.0.1-commit.3fd054f6",
|
|
43
|
+
"@aztec/ethereum": "0.0.1-commit.3fd054f6",
|
|
44
|
+
"@aztec/foundation": "0.0.1-commit.3fd054f6",
|
|
45
|
+
"@aztec/kv-store": "0.0.1-commit.3fd054f6",
|
|
46
|
+
"@aztec/l1-artifacts": "0.0.1-commit.3fd054f6",
|
|
47
|
+
"@aztec/node-lib": "0.0.1-commit.3fd054f6",
|
|
48
|
+
"@aztec/noir-contracts.js": "0.0.1-commit.3fd054f6",
|
|
49
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.3fd054f6",
|
|
50
|
+
"@aztec/p2p": "0.0.1-commit.3fd054f6",
|
|
51
|
+
"@aztec/p2p-bootstrap": "0.0.1-commit.3fd054f6",
|
|
52
|
+
"@aztec/protocol-contracts": "0.0.1-commit.3fd054f6",
|
|
53
|
+
"@aztec/prover-client": "0.0.1-commit.3fd054f6",
|
|
54
|
+
"@aztec/prover-node": "0.0.1-commit.3fd054f6",
|
|
55
|
+
"@aztec/pxe": "0.0.1-commit.3fd054f6",
|
|
56
|
+
"@aztec/sequencer-client": "0.0.1-commit.3fd054f6",
|
|
57
|
+
"@aztec/stdlib": "0.0.1-commit.3fd054f6",
|
|
58
|
+
"@aztec/telemetry-client": "0.0.1-commit.3fd054f6",
|
|
59
|
+
"@aztec/txe": "0.0.1-commit.3fd054f6",
|
|
60
|
+
"@aztec/validator-ha-signer": "0.0.1-commit.3fd054f6",
|
|
61
|
+
"@aztec/wallets": "0.0.1-commit.3fd054f6",
|
|
62
|
+
"@aztec/world-state": "0.0.1-commit.3fd054f6",
|
|
63
63
|
"@iarna/toml": "^2.2.5",
|
|
64
64
|
"@types/chalk": "^2.2.0",
|
|
65
65
|
"abitype": "^0.8.11",
|
|
@@ -130,7 +130,7 @@ export class AnvilTestWatcher {
|
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
const l1Time = (await this.cheatcodes.
|
|
133
|
+
const l1Time = (await this.cheatcodes.lastBlockTimestamp()) * 1000;
|
|
134
134
|
const wallTime = this.dateProvider.now();
|
|
135
135
|
if (l1Time > wallTime) {
|
|
136
136
|
this.logger.warn(`L1 is ahead of wall time. Syncing wall time to L1 time`);
|
|
@@ -72,7 +72,7 @@ export class CheatCodes {
|
|
|
72
72
|
* @param duration - The duration to advance time by (in seconds)
|
|
73
73
|
*/
|
|
74
74
|
async warpL2TimeAtLeastBy(sequencerClient: SequencerClient, node: AztecNode, duration: bigint | number) {
|
|
75
|
-
const currentTimestamp = await this.eth.
|
|
75
|
+
const currentTimestamp = await this.eth.lastBlockTimestamp();
|
|
76
76
|
const targetTimestamp = BigInt(currentTimestamp) + BigInt(duration);
|
|
77
77
|
await this.warpL2TimeAtLeastTo(sequencerClient, node, targetTimestamp);
|
|
78
78
|
}
|