Skip to content

Commit 7a8aefe

Browse files
0xfornaxkanewallmann
authored andcommitted
Fix opts.genesisBlockTimestamp and private network details
1 parent c5b359d commit 7a8aefe

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

scripts/deploy.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,28 @@ const chainOpts = {
5656
mintDRPL: true,
5757
setDefaults: true,
5858
},
59+
'private': {
60+
deployer: {
61+
depositAddress: '0x00000000219ab540356cBB839Cbe05303d7705Fa',
62+
rocketTokenRPLFixedSupply: null,
63+
genesisBlockTimestamp: 1761825733n,
64+
secondsPerSlot: 12n,
65+
slotsPerHistoricalRoot: 8192n,
66+
beaconRootsHistoryBufferLength: 8191n,
67+
beaconRoots: '0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02',
68+
genesisValidatorRoot: '0xec9caf9aad26d20776fbd9e03b61dee7e7bd155a32d1593d43c47df730c40f14',
69+
forkSlots: [
70+
0n, // Altair
71+
0n, // Bellatrix
72+
0n, // Capella
73+
0n, // Deneb
74+
0n, // Electra
75+
],
76+
},
77+
deployStorageHelper: true,
78+
mintDRPL: true,
79+
setDefaults: true,
80+
},
5981
'hardhat': {
6082
deployer: { logging: false },
6183
deployStorageHelper: false,

test/_helpers/deployer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class RocketPoolDeployer {
154154
this.contractPlan['rocketMinipoolDelegate'].constructorArgs = [];
155155
this.contractPlan['rocketNodeDistributorDelegate'].constructorArgs = [];
156156
this.contractPlan['rocketMinipoolBase'].constructorArgs = [];
157-
this.contractPlan['beaconStateVerifier'].constructorArgs = () => [this.rocketStorageInstance.target, opts.slotsPerHistoricalRoot, opts.forkSlots, opts.beaconRoots, opts.genesisTime, opts.genesisValidatorRoot];
157+
this.contractPlan['beaconStateVerifier'].constructorArgs = () => [this.rocketStorageInstance.target, opts.slotsPerHistoricalRoot, opts.forkSlots, opts.beaconRoots, opts.genesisBlockTimestamp, opts.genesisValidatorRoot];
158158
this.contractPlan['rocketMegapoolDelegate'].constructorArgs = () => [this.rocketStorageInstance.target];
159159

160160
// Setup deployment

0 commit comments

Comments
 (0)