codex-contracts-eth/deploy/storage.js

22 lines
577 B
JavaScript
Raw Normal View History

2022-02-09 13:17:23 +00:00
module.exports = async ({ deployments, getNamedAccounts }) => {
const token = await deployments.get("TestToken")
const proofPeriod = 10
const proofTimeout = 5
const collateralAmount = 100
const slashMisses = 3
const slashPercentage = 10
const args = [
token.address,
proofPeriod,
proofTimeout,
collateralAmount,
slashMisses,
slashPercentage,
]
const { deployer } = await getNamedAccounts()
2022-02-09 13:17:23 +00:00
await deployments.deploy("Storage", { args, from: deployer })
}
2022-02-09 13:17:23 +00:00
module.exports.tags = ["Storage"]
module.exports.dependencies = ["TestToken"]