2022-02-09 13:17:23 +00:00
|
|
|
module.exports = async ({ deployments, getNamedAccounts }) => {
|
|
|
|
const token = await deployments.get("TestToken")
|
2022-02-15 16:54:19 +00:00
|
|
|
const collateralAmount = 100
|
2021-11-16 12:54:38 +00:00
|
|
|
const slashMisses = 3
|
|
|
|
const slashPercentage = 10
|
2022-02-15 16:54:19 +00:00
|
|
|
const args = [token.address, collateralAmount, slashMisses, slashPercentage]
|
2021-11-16 12:54:38 +00:00
|
|
|
const { deployer } = await getNamedAccounts()
|
2022-02-09 13:17:23 +00:00
|
|
|
await deployments.deploy("Storage", { args, from: deployer })
|
2021-11-16 12:54:38 +00:00
|
|
|
}
|
|
|
|
|
2022-02-09 13:17:23 +00:00
|
|
|
module.exports.tags = ["Storage"]
|
|
|
|
module.exports.dependencies = ["TestToken"]
|