-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: enhance rosetta support #11609
Conversation
This reverts commit ea433e7.
Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]>
@marbar3778 sorry to ping you. could you please review again? |
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.
LGTM. I don't know why we need both EnableDefaultSuggestedFee
and DefaultSuggestDenom
as we can get the denom from the former?
Would be nice to have someone familiar with rosetta take a look at this too. Maybe @fdymylja.
@fdymylja |
variables and configs for fee suggestion have been renamed. |
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
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.
utACK
This PR looks good @Vritra4. Would you mind resolving conflicts so we can get this merged? |
Codecov Report
@@ Coverage Diff @@
## main #11609 +/- ##
==========================================
- Coverage 66.04% 65.99% -0.06%
==========================================
Files 669 669
Lines 70618 70681 +63
==========================================
+ Hits 46643 46645 +2
- Misses 21305 21367 +62
+ Partials 2670 2669 -1
|
hey @alexanderbez @tac0turtle, could backport this to release/v0.45.x? We are on v0.45 and need the fix to pass reconciliation. Thanks! |
I took a look over the PR and I don't see why not. We also don't really consider Rosetta under any SDK semver guarantees (I really think it should be in its own repo). So we can backport this next week 👍 |
Great thx! yes, put it in a separate repo totally makes sense. btw, #11857 seems related when backport |
* fee suggestion for construction/metadata * rename module * change default gas_limit for fee suggestion * add rosetta items in template * type fix for default-suggest-denom * add default values * add suggestion-related config * force set to success for balance operations * enable offline mode * Revert "rename module" This reverts commit ea433e7. * increase defaultNodeTimeout for rosetta for huge genesis * use DefaultGasLimit as DefaultSuggestGas * use default gas limit as default gas suggest for rosetta * add enable-default-fee-suggest for rosetta * update config template * prevent bad gateway due to huge genesis * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]> * add price flag for rosetta standalone * fix rosetta data/block when block identifier is unset * add checking mismatched index/hash * bump rosetta-sdk-go to v0.7.7 * bump dependency * add changelog * Apply suggestions from code review * Apply suggestions from code review * make gas_prices and gas_limit optional * Apply suggestions from code review * add changelog * revive overwritten by cherrypick * revive overwritten by cherry-pick * rename local variable * rename variables and configs * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <[email protected]> * break validation into two if cases * fix config toml template Co-authored-by: yys <[email protected]> Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]>
* fee suggestion for construction/metadata * rename module * change default gas_limit for fee suggestion * add rosetta items in template * type fix for default-suggest-denom * add default values * add suggestion-related config * force set to success for balance operations * enable offline mode * Revert "rename module" This reverts commit ea433e7. * increase defaultNodeTimeout for rosetta for huge genesis * use DefaultGasLimit as DefaultSuggestGas * use default gas limit as default gas suggest for rosetta * add enable-default-fee-suggest for rosetta * update config template * prevent bad gateway due to huge genesis * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]> * add price flag for rosetta standalone * fix rosetta data/block when block identifier is unset * add checking mismatched index/hash * bump rosetta-sdk-go to v0.7.7 * bump dependency * add changelog * Apply suggestions from code review * Apply suggestions from code review * make gas_prices and gas_limit optional * Apply suggestions from code review * add changelog * revive overwritten by cherrypick * revive overwritten by cherry-pick * rename local variable * rename variables and configs * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <[email protected]> * break validation into two if cases * fix config toml template Co-authored-by: yys <[email protected]> Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]>
* fee suggestion for construction/metadata * rename module * change default gas_limit for fee suggestion * add rosetta items in template * type fix for default-suggest-denom * add default values * add suggestion-related config * force set to success for balance operations * enable offline mode * Revert "rename module" This reverts commit ea433e7. * increase defaultNodeTimeout for rosetta for huge genesis * use DefaultGasLimit as DefaultSuggestGas * use default gas limit as default gas suggest for rosetta * add enable-default-fee-suggest for rosetta * update config template * prevent bad gateway due to huge genesis * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]> * add price flag for rosetta standalone * fix rosetta data/block when block identifier is unset * add checking mismatched index/hash * bump rosetta-sdk-go to v0.7.7 * bump dependency * add changelog * Apply suggestions from code review * Apply suggestions from code review * make gas_prices and gas_limit optional * Apply suggestions from code review * add changelog * revive overwritten by cherrypick * revive overwritten by cherry-pick * rename local variable * rename variables and configs * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <[email protected]> * break validation into two if cases * fix config toml template Co-authored-by: yys <[email protected]> Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Anil Kumar Kammari <[email protected]>
feat/fix to enhance rosetta support
Description
followup of #10766, #11590
Closes: #10618
we did integration test with coinbase so this PR includes all of our fixes and features requested from coinbase.
features:
/construction/metadata
/construction/metadata
fixes:
/block
returns with nil pointer address when a request has both of index and hashchangelog and suggestions from #11590 applied.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change