-
Notifications
You must be signed in to change notification settings - Fork 66
Test: staking scripts for UI mocks #650
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
Merged
Merged
Conversation
This file contains hidden or 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
f950375
to
e3b6248
Compare
f8b1430
to
0fb6479
Compare
d4e380c
to
cb1fc7b
Compare
66157fb
to
1ec797e
Compare
cb1fc7b
to
8fb5069
Compare
842f8b0
to
3f4ec6f
Compare
Closed
mixplore
approved these changes
Jan 30, 2023
6d1656a
to
0e113a3
Compare
1fdd9c9
to
b711445
Compare
b711445
to
027e0a0
Compare
…veAllocations() return 0
02243ad
to
0b0d48f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Context
Scripts required for UI mocks.
Closes #664
Depends on #639
Changes proposed in this pull request
Reimplementing existing scripts so deposits and buy covers work well.
Test plan
You can run locally:
ABI_DIR=../frontend-react/src/constants/abis CONFIG_FILE=../frontend-react/config/local.json node scripts/deploy/start.js
Then:
HARDHAT_NETWORK=localhost CONFIG_FILE=$PWD/../frontend-react/config/local.json node scripts/mocks/fund.js 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
HARDHAT_NETWORK=localhost CONFIG_FILE=$PWD/../frontend-react/config/local.json node scripts/mocks/createStakingPools.js
HARDHAT_NETWORK=localhost CONFIG_FILE=$PWD/../frontend-react/config/local.json STAKER=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 node scripts/mocks/depositToStakingPools.js
HARDHAT_NETWORK=localhost CONFIG_FILE=$PWD/../frontend-react/config/local.json BUYER=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 node scripts/mocks/buyV2Covers.js
Checklist
Review
When reviewing a PR, please indicate intention in comments using the following emojis: