Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update dependency wiring for test deployments #3

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions deploy/DummyRollupManagerCreator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = async hre => {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDADummyManager', {
from: deployer,
args: [],
})
}

module.exports.tags = ['EigenDADummyManager']
module.exports.dependencies = []
19 changes: 9 additions & 10 deletions deploy/EigenDAServiceManagerStubCreator.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
module.exports = async hre => {
const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDAServiceManagerStub', { from: deployer, args: [] })
}

module.exports.tags = ['EigenDAServiceManagerStub', 'test']
module.exports.dependencies = []

const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDAServiceManagerStub', { from: deployer, args: [] })
}

module.exports.tags = ['EigenDAServiceManagerStub', 'test']
module.exports.dependencies = []
17 changes: 4 additions & 13 deletions deploy/SequencerInboxStubCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,7 @@ module.exports = async hre => {
futureSeconds: 10000,
}

const eigenDAServiceManager = await ethers.getContract('EigenDAServiceManagerStub')

// constructor(
// IBridge bridge_,
// address sequencer_,
// ISequencerInbox.MaxTimeVariation memory maxTimeVariation_,
// uint256 maxDataSize_,
// IReader4844 reader4844_,
// IEigenDAServiceManager eigenDAServiceManager_,
// bool isUsingFeeToken_
// )
const dummyManager = await ethers.getContract('EigenDADummyManager')

await deploy('SequencerInboxStub', {
from: deployer,
Expand All @@ -36,11 +26,12 @@ module.exports = async hre => {
maxTime,
117964,
reader4844.address,
eigenDAServiceManager.address,
dummyManager.address,
dummyManager.address,
false,
],
})
}

module.exports.tags = ['SequencerInboxStub', 'test']
module.exports.dependencies = ['BridgeStub', 'EigenDAServiceManagerStub']
module.exports.dependencies = ['BridgeStub', 'EigenDADummyManager']
2 changes: 1 addition & 1 deletion src/osp/OneStepProverHostIo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ contract OneStepProverHostIo is IOneStepProver {
} else if (inst.argumentData == 3) {
// The machine is asking for a EigenDA versioned hash preimage

require(proofType == 1, "UNKNOWN_PREIMAGE_PROOF");
require(proofType == 0, "UNKNOWN_PREIMAGE_PROOF");

bytes calldata kzgProof = proof[proofOffset:];

Expand Down
Loading