-
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.
feat: update auction in agoricNames, test that the boardId changed (#…
…9970) closes: #9963 ## Description The upgrade of auctions neglected to replace the agoricNames binding for the auction instance. This fixes that and tests that the boardId is different before and after the coreEval. ### Security Considerations scary that we got that far through validation without noticing that the auction hadn't been updated in agoricNames. ### Scaling Considerations None. ### Documentation Considerations None.
- Loading branch information
Showing
6 changed files
with
96 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# we have an eval.sh so we can run prepare.sh before the rest | ||
|
||
echo "[$PROPOSAL] Running prepare.sh" | ||
./prepare.sh | ||
|
||
echo "[$PROPOSAL] Running proposal declared in package.json" | ||
# copy to run in the proposal package so the dependencies can be resolved | ||
cp /usr/src/upgrade-test-scripts/eval_submission.js . | ||
./eval_submission.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
14 changes: 14 additions & 0 deletions
14
a3p-integration/proposals/a:vaults-auctions/saveAuctionInstance.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,14 @@ | ||
#!/usr/bin/env node | ||
|
||
import { writeFile } from 'fs/promises'; | ||
import { getAuctionInstance } from './agd-tools.js'; | ||
|
||
const { env } = process; | ||
|
||
const oldAuctionInstance = await getAuctionInstance(); | ||
console.log('old auction instance ', oldAuctionInstance, env.HOME); | ||
|
||
await writeFile( | ||
`${env.HOME}/.agoric/previousInstance.json`, | ||
oldAuctionInstance, | ||
); |
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