-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: sim replace frontend rpc calls with genlayerjs #600
feat: sim replace frontend rpc calls with genlayerjs #600
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #600 +/- ##
==========================================
- Coverage 19.45% 18.74% -0.71%
==========================================
Files 129 129
Lines 9968 9907 -61
Branches 317 307 -10
==========================================
- Hits 1939 1857 -82
- Misses 7944 7965 +21
Partials 85 85 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@cristiam86 any hint on how to use leaderonly functionality with GenLayer JS? |
sure, to use it in GenLayerJS, it should be implemented there :D |
…ayerjs # Conflicts: # frontend/src/components/Simulator/ContractInfo.vue # frontend/src/hooks/index.ts # frontend/src/hooks/useSetupStores.ts # frontend/src/stores/transactions.ts # frontend/test/unit/stores/transactions.test.ts
…ayerjs # Conflicts: # frontend/src/hooks/index.ts
Regarding the leaderOnly feature, I've been trying to implement it in genlayer-js, without success until now. If I dare ask, how important is that feature? Won't it have to be removed once we hook the studio to the real chain? @cristiam86 |
Let's take a look together whenever you can :) This is going to be available permanently in the localnet. Of course, it won't be available in the testnet or mainnet. |
Note that if we want to support the leaderOnly param in this PR, we need to merge the feature in genlayer-js then update the dependency here. @cristiam86 |
…ayerjs # Conflicts: # frontend/src/hooks/useContractQueries.ts
Oh, sure, sorry, my bad. |
Sorry, I don't understand the question... Current abi has types in frontend/src/types/index.ts then these types are used in frontend/src/components/Simulator/ConstructorParameters.vue and frontend/src/components/Simulator/ContractMethodItem.vue |
Ok, then we simply need to update the ContractSchema type in genlayer-js to match the one in the studio. |
Created an issue on the genlayer-js side, will take care of 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.
Great work, but we need to merge this one first: yeagerai/genlayer-js#35 and update the leader_only parameter here.
Went ahead and merged but turns out we forgot a couple - fixed here: #6 please review @cristiam86 As soon as it's released in 0.4.6 I'll bump the version here again! |
Quality Gate failedFailed conditions |
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.
leader only was updated on both sides
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.
leader only ok
🎉 This PR is included in version 0.27.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes #580
What
Why
Testing done
Decisions made
Checks
User facing release notes