-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
849 additions
and
953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 6 additions & 12 deletions
18
packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-10/actions.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-10/post.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
48 changes: 0 additions & 48 deletions
48
packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-11/actions.sh
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-11/actions.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import test from 'ava'; | ||
|
||
import { agoric, agops } from '../cliHelper.js'; | ||
import { GOV1ADDR } from '../constants.js'; | ||
import { openVault, adjustVault, closeVault } from '../econHelpers.js'; | ||
|
||
test.serial('Open Vaults', async t => { | ||
const currentVaults = await agops.vaults('list', '--from', GOV1ADDR); | ||
t.is(currentVaults.length, 2); | ||
|
||
await openVault(GOV1ADDR, 7, 11); | ||
await adjustVault(GOV1ADDR, 'vault3', { giveMinted: 1.5 }); | ||
await adjustVault(GOV1ADDR, 'vault3', { giveCollateral: 2.0 }); | ||
await closeVault(GOV1ADDR, 'vault3', 5.75); | ||
|
||
const vault3 = await agoric.follow( | ||
'-lF', | ||
':published.vaultFactory.managers.manager0.vaults.vault3', | ||
); | ||
t.is(vault3.vaultState, 'closed'); | ||
t.is(vault3.locked.value, '0'); | ||
t.is(vault3.debtSnapshot.debt.value, '0'); | ||
}); |
Oops, something went wrong.