mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-02-06 11:44:16 +00:00
[deployment] use new configuration struct
This commit is contained in:
parent
334da1144d
commit
70d8967f26
@ -1,22 +1,19 @@
|
|||||||
async function deployMarketplace({ deployments, getNamedAccounts }) {
|
async function deployMarketplace({ deployments, getNamedAccounts }) {
|
||||||
const token = await deployments.get("TestToken")
|
const token = await deployments.get("TestToken")
|
||||||
const proofPeriod = 10
|
const configuration = {
|
||||||
const proofTimeout = 5
|
collateral: {
|
||||||
const proofDowntime = 64
|
initialAmount: 100,
|
||||||
const collateralAmount = 100
|
minimumAmount: 40,
|
||||||
const slashMisses = 3
|
slashCriterion: 3,
|
||||||
const slashPercentage = 10
|
slashPercentage: 10,
|
||||||
const minCollateralThreshold = 40
|
},
|
||||||
const args = [
|
proofs: {
|
||||||
token.address,
|
period: 10,
|
||||||
collateralAmount,
|
timeout: 5,
|
||||||
minCollateralThreshold,
|
downtime: 64,
|
||||||
slashMisses,
|
},
|
||||||
slashPercentage,
|
}
|
||||||
proofPeriod,
|
const args = [token.address, configuration]
|
||||||
proofTimeout,
|
|
||||||
proofDowntime,
|
|
||||||
]
|
|
||||||
const { deployer } = await getNamedAccounts()
|
const { deployer } = await getNamedAccounts()
|
||||||
await deployments.deploy("Marketplace", { args, from: deployer })
|
await deployments.deploy("Marketplace", { args, from: deployer })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user