-
Notifications
You must be signed in to change notification settings - Fork 5
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 chain cli #90
Open
Andrei-Dolgolev
wants to merge
16
commits into
main
Choose a base branch
from
add-chain-type-cli
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add chain cli #90
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
Add cli for generate new chain.
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.
Merge moonstreamdb-v3 to seer.
Add chain cli.
Chain cli work as chain specific so command run only for 1 chain.
Request RPC node for feel chain info structure:
By requesting
eth_getBlock
andeth_chainID
.parameters:
--output
Dump chain info to file.Each Optional flag decide what will be generated as output:
--definitions
Generate Protobf definitions file for chain(depend on if chain detect L2 fields in RPC response will ad extra field.
Create files:
seer/blockchain/<chain_name_lower>
Template: seer/blockchain/common/evm_proto_template.proto.tmpl
--interfaces
same asseer blockchain generate -n $BLOCKCHAIN --side-chain
but side chain dected from RPCrequired: Proto definitions must exits in blockchain folder for that chain name
Create files:
seer/blockchain/<chain_name_lower>
--models
generate databases modelsseer/moonstreamdb-v3/moonstreamdbv3
--migrations
create igration files with alembic revisiom --autogenerate -m 'add-<chain_name_lower>'seer/moonstreamdb-v3/moonstreamdbv3
--deploy
Generate deploy scriptsseer/deploy
--subscription
Generate subscription resource.
Command examples: