Skip to content

Commit

Permalink
Merge pull request #30 from neptune-mutual-blue/fix/tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
binpmxstn committed Apr 7, 2022
2 parents 8836e82 + ef0d388 commit 16f78a3
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
9 changes: 8 additions & 1 deletion test/specs/cx-token-factory/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ const deployDependencies = async () => {
StoreKeyUtil: storeKeyUtil.address
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const routineInvokerLibV1 = await deployer.deployWithLibraries(cache, 'RoutineInvokerLibV1', {
CoverUtilV1: coverUtilV1.address,
ProtoUtilV1: protoUtilV1.address,
PriceLibV1: priceLibV1.address,
RegistryLibV1: registryLibV1.address,
StrategyLibV1: strategyLibV1.address,
StoreKeyUtil: storeKeyUtil.address
Expand Down Expand Up @@ -125,7 +131,8 @@ const deployDependencies = async () => {
helper.percentage(5), // Claim: Reporter Commission: 5%
helper.percentage(0.5), // Flash Loan Fee: 0.5%
helper.percentage(2.5), // Flash Loan Protocol Fee: 2.5%
1 * DAYS // cooldown period
1 * DAYS, // cooldown period,
1 * DAYS // state and liquidity update interval
]
)

Expand Down
14 changes: 8 additions & 6 deletions test/specs/lifecycle/cover-provision/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ const deployDependencies = async () => {
StoreKeyUtil: storeKeyUtil.address
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const routineInvokerLibV1 = await deployer.deployWithLibraries(cache, 'RoutineInvokerLibV1', {
CoverUtilV1: coverUtilV1.address,
PriceLibV1: priceLibV1.address,
ProtoUtilV1: protoUtilV1.address,
RegistryLibV1: registryLibV1.address,
StrategyLibV1: strategyLibV1.address,
Expand All @@ -77,11 +83,6 @@ const deployDependencies = async () => {
const baseLibV1 = await deployer.deployWithLibraries(cache, 'BaseLibV1', {
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const coverLibV1 = await deployer.deployWithLibraries(cache, 'CoverLibV1', {
AccessControlLibV1: accessControlLibV1.address,
CoverUtilV1: coverUtilV1.address,
Expand Down Expand Up @@ -136,7 +137,8 @@ const deployDependencies = async () => {
helper.percentage(5), // Claim: Reporter Commission: 5%
helper.percentage(0.5), // Flash Loan Fee: 0.5%
helper.percentage(2.5), // Flash Loan Protocol Fee: 2.5%
1 * DAYS // cooldown period
1 * DAYS, // cooldown period,
1 * DAYS // state and liquidity update interval
]
)

Expand Down
14 changes: 8 additions & 6 deletions test/specs/lifecycle/cover-reassurance/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ const deployDependencies = async () => {
StoreKeyUtil: storeKeyUtil.address
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const routineInvokerLibV1 = await deployer.deployWithLibraries(cache, 'RoutineInvokerLibV1', {
CoverUtilV1: coverUtilV1.address,
PriceLibV1: priceLibV1.address,
ProtoUtilV1: protoUtilV1.address,
RegistryLibV1: registryLibV1.address,
StrategyLibV1: strategyLibV1.address,
Expand All @@ -77,11 +83,6 @@ const deployDependencies = async () => {
const baseLibV1 = await deployer.deployWithLibraries(cache, 'BaseLibV1', {
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const coverLibV1 = await deployer.deployWithLibraries(cache, 'CoverLibV1', {
AccessControlLibV1: accessControlLibV1.address,
CoverUtilV1: coverUtilV1.address,
Expand Down Expand Up @@ -136,7 +137,8 @@ const deployDependencies = async () => {
helper.percentage(5), // Claim: Reporter Commission: 5%
helper.percentage(0.5), // Flash Loan Fee: 0.5%
helper.percentage(2.5), // Flash Loan Protocol Fee: 2.5%
1 * DAYS // cooldown period
1 * DAYS, // cooldown period,
1 * DAYS // state and liquidity update interval
]
)

Expand Down
14 changes: 8 additions & 6 deletions test/specs/lifecycle/cover-stake/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ const deployDependencies = async () => {
StoreKeyUtil: storeKeyUtil.address
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const routineInvokerLibV1 = await deployer.deployWithLibraries(cache, 'RoutineInvokerLibV1', {
CoverUtilV1: coverUtilV1.address,
PriceLibV1: priceLibV1.address,
ProtoUtilV1: protoUtilV1.address,
RegistryLibV1: registryLibV1.address,
StrategyLibV1: strategyLibV1.address,
Expand All @@ -77,11 +83,6 @@ const deployDependencies = async () => {
const baseLibV1 = await deployer.deployWithLibraries(cache, 'BaseLibV1', {
})

const priceLibV1 = await deployer.deployWithLibraries(cache, 'PriceLibV1', {
ProtoUtilV1: protoUtilV1.address,
StoreKeyUtil: storeKeyUtil.address
})

const coverLibV1 = await deployer.deployWithLibraries(cache, 'CoverLibV1', {
AccessControlLibV1: accessControlLibV1.address,
CoverUtilV1: coverUtilV1.address,
Expand Down Expand Up @@ -136,7 +137,8 @@ const deployDependencies = async () => {
helper.percentage(5), // Claim: Reporter Commission: 5%
helper.percentage(0.5), // Flash Loan Fee: 0.5%
helper.percentage(2.5), // Flash Loan Protocol Fee: 2.5%
1 * DAYS // cooldown period
1 * DAYS, // cooldown period,
1 * DAYS // state and liquidity update interval
]
)

Expand Down

0 comments on commit 16f78a3

Please sign in to comment.