@aztec/ethereum 4.0.0-nightly.20260108 → 4.0.0-nightly.20260111
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/contracts/fee_asset_handler.d.ts +6 -5
- package/dest/contracts/fee_asset_handler.d.ts.map +1 -1
- package/dest/contracts/fee_asset_handler.js +9 -9
- package/dest/contracts/index.d.ts +2 -1
- package/dest/contracts/index.d.ts.map +1 -1
- package/dest/contracts/index.js +1 -0
- package/dest/contracts/outbox.d.ts +41 -0
- package/dest/contracts/outbox.d.ts.map +1 -0
- package/dest/contracts/outbox.js +86 -0
- package/dest/contracts/rollup.d.ts +4 -7
- package/dest/contracts/rollup.d.ts.map +1 -1
- package/dest/l1_artifacts.d.ts +233 -1031
- package/dest/l1_artifacts.d.ts.map +1 -1
- package/dest/test/rollup_cheat_codes.d.ts +2 -1
- package/dest/test/rollup_cheat_codes.d.ts.map +1 -1
- package/dest/test/rollup_cheat_codes.js +9 -1
- package/package.json +5 -5
- package/src/contracts/fee_asset_handler.ts +8 -7
- package/src/contracts/index.ts +1 -0
- package/src/contracts/outbox.ts +98 -0
- package/src/contracts/rollup.ts +3 -7
- package/src/test/rollup_cheat_codes.ts +10 -1
package/src/contracts/rollup.ts
CHANGED
|
@@ -60,13 +60,15 @@ export type L1RollupContractAddresses = Pick<
|
|
|
60
60
|
export type EpochProofPublicInputArgs = {
|
|
61
61
|
previousArchive: `0x${string}`;
|
|
62
62
|
endArchive: `0x${string}`;
|
|
63
|
+
outHash: `0x${string}`;
|
|
63
64
|
proverId: `0x${string}`;
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
export type ViemHeader = {
|
|
67
68
|
lastArchiveRoot: `0x${string}`;
|
|
68
69
|
blockHeadersHash: `0x${string}`;
|
|
69
|
-
|
|
70
|
+
blobsHash: `0x${string}`;
|
|
71
|
+
inHash: `0x${string}`;
|
|
70
72
|
slotNumber: bigint;
|
|
71
73
|
timestamp: bigint;
|
|
72
74
|
coinbase: `0x${string}`;
|
|
@@ -75,12 +77,6 @@ export type ViemHeader = {
|
|
|
75
77
|
totalManaUsed: bigint;
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
export type ViemContentCommitment = {
|
|
79
|
-
blobsHash: `0x${string}`;
|
|
80
|
-
inHash: `0x${string}`;
|
|
81
|
-
outHash: `0x${string}`;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
80
|
export type ViemGasFees = {
|
|
85
81
|
feePerDaGas: bigint;
|
|
86
82
|
feePerL2Gas: bigint;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RollupContract } from '@aztec/ethereum/contracts';
|
|
1
|
+
import { OutboxContract, RollupContract } from '@aztec/ethereum/contracts';
|
|
2
2
|
import type { L1ContractAddresses } from '@aztec/ethereum/l1-contract-addresses';
|
|
3
3
|
import type { ViemPublicClient } from '@aztec/ethereum/types';
|
|
4
4
|
import { CheckpointNumber, EpochNumber, SlotNumber } from '@aztec/foundation/branded-types';
|
|
@@ -250,6 +250,15 @@ export class RollupCheatCodes {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
+
public insertOutbox(epoch: EpochNumber, outHash: bigint) {
|
|
254
|
+
return this.ethCheatCodes.execWithPausedAnvil(async () => {
|
|
255
|
+
const outboxAddress = await this.rollup.read.getOutbox();
|
|
256
|
+
const epochRootSlot = OutboxContract.getEpochRootStorageSlot(epoch);
|
|
257
|
+
await this.ethCheatCodes.store(EthAddress.fromString(outboxAddress), epochRootSlot, outHash);
|
|
258
|
+
this.logger.warn(`Advanced outbox to epoch ${epoch} with out hash ${outHash}`);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
253
262
|
/**
|
|
254
263
|
* Executes an action impersonated as the owner of the Rollup contract.
|
|
255
264
|
* @param action - The action to execute
|