-
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
fix: --recover to get mnemonic from file #137
Merged
Merged
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a000996
fix: --recover to get mnemonic from file
dckc 200e1ac
fix: update mnemonics so they're all different
LuqiPan 358a1ff
test: add sanity test for upgrade-8 to check addresses are expected
LuqiPan 7759b1f
chore: make constants actually constants now that we know the addresses
LuqiPan a7f6157
test: update keys.test.js to test environment variables are set corre…
LuqiPan a32c163
test: update use.sh script to run yarn ava on test.js files
LuqiPan 5a2e4a1
chore: undo my modification to use.sh in upgrade-9
LuqiPan fa050f3
chore: add ava as a dev dependency in package.json of upgrade-8
LuqiPan 3e191c6
chore: run yarn ava keys.test.js in upgrade-8/test.sh
LuqiPan 7426f2a
chore: change the name of the test file to addresses.test.js
LuqiPan 50a41ca
test: ask yarn to ignore node version with YARN_IGNORE_NODE
LuqiPan accb98d
chore: run synthetic-chain doctor which adds .yarnrc.yml file
LuqiPan 8263c8f
chore: add `@agoric/synthetic-chain` as dependency to package.json
LuqiPan a983c00
chore: add `agops` yarn script and update import path
LuqiPan 46b6f9b
chore: update import path for upgrade-9/sanity.test.js
LuqiPan dc82ee5
chore: enable YARN_IGNORE_NODE flag for upgrade-9/test.sh too
LuqiPan c8147f8
chore: add set -e to upgrade-9/test.sh
LuqiPan 7c2cde2
chore: add `@agoric/synthetic-chain` as dev dependency
LuqiPan e7bf1ca
debug: remove set -e from upgrade-9/test.sh for now
LuqiPan 22bcc8f
chore: use the local version of @agoric/synthetic-chain
LuqiPan 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
2 changes: 1 addition & 1 deletion
2
packages/synthetic-chain/public/upgrade-test-scripts/keys_for_test_only/gov3.key
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 |
---|---|---|
@@ -1 +1 @@ | ||
spike siege world rather ordinary upper napkin voice brush oppose junior route trim crush expire angry seminar anchor panther piano image pepper chest alone | ||
tackle hen gap lady bike explain erode midnight marriage wide upset culture model select dial trial swim wood step scan intact what card symptom |
2 changes: 1 addition & 1 deletion
2
packages/synthetic-chain/public/upgrade-test-scripts/keys_for_test_only/validator.key
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 |
---|---|---|
@@ -1 +1 @@ | ||
spike siege world rather ordinary upper napkin voice brush oppose junior route trim crush expire angry seminar anchor panther piano image pepper chest alone | ||
soap hub stick bomb dish index wing shield cruel board siren force glory assault rotate busy area topple resource okay clown wedding hint unhappy |
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,30 @@ | ||
/** @file adapted from upgrade-9's sanity test, ensure addresses are what we expected */ | ||
import test from 'ava'; | ||
|
||
import { | ||
GOV1ADDR, | ||
GOV2ADDR, | ||
GOV3ADDR, | ||
USER1ADDR, | ||
VALIDATORADDR, | ||
} from '@agoric/synthetic-chain/src/lib/constants.js'; | ||
|
||
test('gov1 address', async t => { | ||
t.is(process.env.GOV1ADDR, GOV1ADDR); | ||
}); | ||
|
||
test('gov2 address', async t => { | ||
t.is(process.env.GOV2ADDR, GOV2ADDR); | ||
}); | ||
|
||
test('gov3 address', async t => { | ||
t.is(process.env.GOV3ADDR, GOV3ADDR); | ||
}); | ||
|
||
test('user1 address', async t => { | ||
t.is(process.env.USER1ADDR, USER1ADDR); | ||
}); | ||
|
||
test('validator address', async t => { | ||
t.is(process.env.VALIDATORADDR, VALIDATORADDR); | ||
}); |
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
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.
is this just debugging? tests don't belong in
use.sh
. the ones here are tech debtThere 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.
Yeah I noticed
keys.test.js
was not run and found an example of running it inuse.sh
I've since moved it to
test.sh