-
Notifications
You must be signed in to change notification settings - Fork 94
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
dev: update Madara genesis loading #484
Conversation
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.
Some TODOs for me in this pr
@@ -1,6 +1,6 @@ | |||
# TODO: Use official madara image when https://github.com/keep-starknet-strange/madara/issues/982 is closed | |||
# FROM ghcr.io/keep-starknet-strange/madara:v0.1.0.experimental.3 as madara | |||
FROM fredtupas/madara as madara | |||
FROM fredtupas/madara-fixed as madara |
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.
TODO: will update pr to official image once this pr in Madara is merged keep-starknet-strange/madara#1018
|
||
# Download Madara genesis config to source path | ||
RUN svn export https://github.com/keep-starknet-strange/madara/trunk/configs ${MADARA_CONFIG_PATH} | ||
RUN svn export https://github.com/d-roak/madara/branches/feat/configs-index/configs/genesis-assets ${MADARA_GENESIS_ASSETS_PATH} |
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.
TODO: Update to Madara's main branch
@@ -8,6 +8,7 @@ export PROXY_ACCOUNT_CLASS_HASH=$(starkli class-hash ${MADARA_PATH}/cairo-contra | |||
--rpc-external \ | |||
--rpc-methods=unsafe \ | |||
--rpc-cors=all \ | |||
--disable-madara-configs \ |
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.
Since we're copying all the genesis assets into the local Madara path, we need to add this flag to use them
7f4040c
to
8a47a42
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #484 +/- ##
===========================================
+ Coverage 23.17% 72.38% +49.21%
===========================================
Files 9 44 +35
Lines 1247 3998 +2751
===========================================
+ Hits 289 2894 +2605
- Misses 958 1104 +146
☔ View full report in Codecov by Sentry. |
crates/hive-utils/scripts/start.sh
Outdated
@@ -8,6 +8,7 @@ export PROXY_ACCOUNT_CLASS_HASH=$(starkli class-hash ${MADARA_PATH}/cairo-contra | |||
--rpc-external \ | |||
--rpc-methods=unsafe \ |
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.
u can remove --rpc-external
and --rpc-methods=unsafe
because they will be enabled when u set the --dev
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.
Gotcha, thanks will remove this!
crates/hive-utils/scripts/start.sh
Outdated
@@ -8,6 +8,7 @@ export PROXY_ACCOUNT_CLASS_HASH=$(starkli class-hash ${MADARA_PATH}/cairo-contra | |||
--rpc-external \ | |||
--rpc-methods=unsafe \ | |||
--rpc-cors=all \ | |||
--disable-madara-configs \ | |||
--tmp \ |
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.
why are u setting a tmp path for the db? since it's a docker container, u can just let it go to the default madara-path
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.
Forgot to remove this, had to add this flag before in the fork because it was initializing but not including the Kakarot contracts for some reason and it worked when we added it
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.
Thanks for the comments @d-roak !
crates/hive-utils/scripts/start.sh
Outdated
@@ -8,6 +8,7 @@ export PROXY_ACCOUNT_CLASS_HASH=$(starkli class-hash ${MADARA_PATH}/cairo-contra | |||
--rpc-external \ | |||
--rpc-methods=unsafe \ |
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.
Gotcha, thanks will remove this!
crates/hive-utils/scripts/start.sh
Outdated
@@ -8,6 +8,7 @@ export PROXY_ACCOUNT_CLASS_HASH=$(starkli class-hash ${MADARA_PATH}/cairo-contra | |||
--rpc-external \ | |||
--rpc-methods=unsafe \ | |||
--rpc-cors=all \ | |||
--disable-madara-configs \ | |||
--tmp \ |
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.
Forgot to remove this, had to add this flag before in the fork because it was initializing but not including the Kakarot contracts for some reason and it worked when we added it
hey, what's the blocker for moving this into ready for review? |
…official-madara-hive
Ah I was waiting for this pr to be merged but actually I think we can have this ready for review 🙂 I just pulled the latest commits from Oak's pr and tested it locally and confirming it's still working, moving it to ready |
That PR is going to take a big refactor soon. Be careful while using it |
@d-roak so you suggest that we don't merge yet? |
Can I get the context for this refactor, to have more clarity on our steps |
Sry for the delay! @ClementWalter U can merge it, but instead of fixing the branch, you should fix a specific commit within the branch. Once it's merge on main, I can help you refactor whatever is needed on your side @Eikix We are changing the way that we run/setup madara. So we are going to have: |
@ClementWalter is it ok to close this for you? I will make one high level issue to rework everything linked with dumping |
@greged93 lmk if you want me to review anything madara wise |
@d-roak we're doing a big clean of this repo, will rework the madara part later on and let you know if we need some help |
Time spent on this PR: 0.2
Depends on: keep-starknet-strange/madara#1018
Resolves: #477
Pull Request type
Please check the type of change your PR introduces:
What is the new behavior?
Uses the official Madara binary and update the genesis json to the latest format
Does this introduce a breaking change?
Added changes to
CHANGELOG.md