-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: stATOM, KREAd proposal tests #3
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
91ea324
WIP: port 8177-mcs-by-ref branch
dckc a14bec2
chore: punt on MN2= volume
dckc 158d7dd
chore: agops-bin, gov-cmd not needed
dckc b6bb47e
chore: run KREAd, stATOM tests as well
dckc 6ceba04
test(Open Vaults): accomodate extra vault
dckc 81a8b4c
test(add-collateral): postpone price feed test (WIP)
dckc 7fd4841
chore: use separate accounts for installing bundles
dckc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Upgrade 11 | ||
|
||
1. upgrade-handler | ||
2. 11wf with walletFactory | ||
3. 11kr with kreadKit | ||
|
||
# Testing 11kr - WIP | ||
|
||
*Note: MN2= volume vs. fetching from github releases is in flux.* | ||
|
||
Related: https://github.com/agoric-labs/KREAd/releases/tag/gryo-rc0 | ||
|
||
It has to be built with these specific addresses, using this one really long command: | ||
```sh | ||
KREAD_COMMITTEE_ADDRESSES='{"krgov1": "agoric1890064p6j3xhzzdf8daknd6kpvhw766ds8flgw", "krgov2": "agoric1vqm5x5sj4lxmj2kem7x92tuhaum0k2yzyj6mgu"}' \ | ||
KREAD_COMMITTEE_NAME=kread-gov \ | ||
KREAD_ROYALTY_ADDRESS=agoric1yjc8llu3fugm7tgqye4rd5n92l9x2dhe30dazp \ | ||
KREAD_PLATFORM_ADDRESS=agoric1enwuyn2hzyyvt39x87tk9rhlkpqtyv9haj7mgs \ | ||
make clean build-proposals | ||
``` | ||
|
||
Build the images if you haven't lately, | ||
```sh | ||
make build | ||
``` | ||
|
||
|
||
Then with MN2 set to the repo you build the above from: | ||
```sh | ||
TARGET=agoric-upgrade-11 MN2=/opt/agoric/KREAd/ make run | ||
``` | ||
|
||
That will run: | ||
```sh | ||
docker run --rm -it -p 26656:26656 -p 26657:26657 -p 1317:1317 -v "${PWD}:/workspace" -v "${MN2}:/mn2" -e "DEBUG=SwingSet:ls,SwingSet:vat" -e "DEST=1" -e "TMUX_USE_CC=0" \ | ||
--entrypoint /usr/src/agoric-sdk/upgrade-test-scripts/start_to_to.sh \ | ||
agoric/upgrade-test:agoric-upgrade-11 | ||
``` | ||
|
||
Then in a new shell do the following. | ||
(TODO integrate these into the layers) | ||
```sh | ||
# Replace its `upgrade-test-scripts` with a symlink: | ||
rm -rf upgrade-test-scripts | ||
ln -s /workspace/upgrade-test-scripts | ||
|
||
# Patch agoric-cli - WIP - outdated??? | ||
cp upgrade-test-scripts/agoric-upgrade-11/gov-cmd packages/agoric-cli/src/commands/gov.js | ||
cp upgrade-test-scripts/agoric-upgrade-11/agops-bin packages/agoric-cli/src/bin-agops.js | ||
## this should be docker-u11 | ||
agops --version | ||
|
||
# patch agd so it doesn't try to rebuild | ||
#sed --in-place=.backup '93,$ d' /usr/src/agoric-sdk/bin/agd | ||
#- find `$BUILD_ONLY || exec 1>&2` (line 94?) | ||
#- put this in above it: `${NO_BUILD:-false} && exit 0` | ||
vi /usr/src/agoric-sdk/bin/agd | ||
|
||
|
||
# Run the test using the `/mn2` that `make run` mounted: | ||
cd /usr/src/agoric-sdk/upgrade-test-scripts | ||
|
||
NO_BUILD=true \ | ||
MN2_PROPOSAL_INFO=/mn2/agoric/dist/ \ | ||
MN2_INSTANCE=kread \ | ||
yarn ava /usr/src/agoric-sdk/upgrade-test-scripts/agoric-upgrade-11/mn2-start.test.js | ||
``` | ||
|
||
Test governance | ||
TODO put into JS | ||
```sh | ||
# should have two invitations in balances | ||
agoric wallet show --keyring-backend=test --from krgov1 | ||
|
||
agops gov committee --name kreadCommittee --send-from krgov1 | ||
agops gov charter --name kreadCommitteeCharter --send-from krgov1 | ||
|
||
# now should have two used invitations | ||
agoric wallet show --keyring-backend=test --from krgov1 | ||
|
||
# propose to pause offers | ||
agops gov proposePauseOffers --instance kread --send-from krgov1 --substring foo | ||
|
||
# verify it's there | ||
agd query vstorage data published.committees.kread-gov.latestQuestion | ||
|
||
agops gov vote --instance kreadCommittee --pathname kread-gov --forPosition 0 --send-from krgov1 | ||
|
||
# after a minute the chain output should report the question resolving in the affirmative | ||
agd query vstorage data published.committees.kread-gov.latestOutcome | ||
# TODO a way to read capdata out of vstorage | ||
# this should say "win" for the strings you specified | ||
agd query vstorage data --output json published.committees.kread-gov.latestOutcome | jq -r .value | jq -r .values[0] | jq | ||
``` |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MN2= is vestigial