forked from dydxprotocol/v4-testnets
-
Notifications
You must be signed in to change notification settings - Fork 33
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
add genesis.json #39
Merged
Merged
add genesis.json #39
Conversation
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
2dpetkov
commented
Oct 18, 2023
To list address, bridged amount, self-delegate amount and moniker:
|
pswies
previously approved these changes
Oct 19, 2023
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.
👍
pswies
approved these changes
Oct 24, 2023
dydxoperationstrust
approved these changes
Oct 24, 2023
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.
The suggested
genesis.json
has been generated using v4-chain'sprotocol/scripts/genesis/prod_pregenesis.sh
script, applying the bridging transactions as well as calculating the bridging address balance.Steps to generate
cd protocol
git co tags/protocol/v1.0.0
make build
./build/dydxprotocold version
# TODO(GENESIS)
section inprotocol/scripts/genesis/prod_pregenesis.sh
with mainnet details, using the output ofscripts/bridge_events/bridge_events.go
(step 6)./scripts/genesis/prod_pregenesis.sh ./build/dydxprotocold
, the resultingpregenesis.json
file is at/tmp/prod-chain/.dydxprotocol/config/genesis.json
bank.balances
andauth.accounts
from the output ofscripts/bridge_events/bridge_events.go
(step 6) to.app_state.bank.balances
and.app_state.auth.accounts
inpregenesis.json
pregenesis.json
(dydx1zlefkpe3g0vvm9a4h0jf9000lmqutlh9jwjnsv
), to contain total supply, or 1 billion DYDX (that is 10^(18+9)adydx
), minus the sum of the bridged amounts - part of the output ofscripts/bridge_events/bridge_events.go
pregenesis.json
in the current repository's./dydx-mainnet-1
foldermake validate-dydx-mainnet-1-gentx
(Docker required); this produces./dydx-mainnet-1/genesis.new.json
which is the proposedgenesis.json
file