Skip to content
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

Oracle params improvement #547

Merged
merged 36 commits into from
Jul 12, 2021
Merged

Oracle params improvement #547

merged 36 commits into from
Jul 12, 2021

Conversation

dadamu
Copy link
Contributor

@dadamu dadamu commented Jul 8, 2021

Description

This PR is the implementation of #537. It moves oracle params to on-chain store, instead of hard coded.
Closes #537

Checklist

  • Targeted PR against correct branch.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit tests.
  • Wrote integration tests (simulation & CLI).
  • Updated the documentation.
  • Added an entry to the CHANGELOG.md file.
  • Re-reviewed Files changed in the Github PR explorer.

@codecov
Copy link

codecov bot commented Jul 8, 2021

Codecov Report

Merging #547 (8e6a99c) into master (5378bac) will increase coverage by 0.15%.
The diff coverage is 89.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #547      +/-   ##
==========================================
+ Coverage   82.69%   82.84%   +0.15%     
==========================================
  Files          91       91              
  Lines        5431     5468      +37     
==========================================
+ Hits         4491     4530      +39     
+ Misses        738      736       -2     
  Partials      202      202              
Impacted Files Coverage Δ
x/profiles/types/models_params.go 85.59% <86.66%> (+3.54%) ⬆️
x/profiles/keeper/relay_app_links.go 95.38% <100.00%> (+0.07%) ⬆️
app/app.go 82.26% <0.00%> (+1.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5378bac...8e6a99c. Read the comment docs.

@dadamu dadamu marked this pull request as ready for review July 9, 2021 06:43
@dadamu dadamu requested review from RiccardoM and leobragaz July 9, 2021 06:47
x/profiles/types/models_params.go Outdated Show resolved Hide resolved
x/oracle/types/constants.go Outdated Show resolved Hide resolved
@dadamu dadamu requested a review from RiccardoM July 12, 2021 07:00
Copy link
Contributor

@RiccardoM RiccardoM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invalid oracle params return no error should be invalid oracle params return error

Copy link
Contributor

@RiccardoM RiccardoM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add the oracle params validation inside the ValidateGenesis function

@dadamu
Copy link
Contributor Author

dadamu commented Jul 12, 2021

@RiccardoM Oracle params validation is in the Params.Validate() function which is also called by ValidateGenesis function.

x/profiles/types/models_params.go Outdated Show resolved Hide resolved
x/profiles/types/models_params.go Show resolved Hide resolved
x/profiles/types/models_params.go Show resolved Hide resolved
x/profiles/simulation/utils.go Outdated Show resolved Hide resolved
proto/desmos/profiles/v1beta1/models_params.proto Outdated Show resolved Hide resolved
RiccardoM and others added 5 commits July 12, 2021 10:20
…le-params-improvement

� Conflicts:
�	CHANGELOG.md
�	proto/desmos/profiles/v1beta1/models_params.proto
�	x/profiles/keeper/genesis_test.go
�	x/profiles/keeper/keeper_params_test.go
�	x/profiles/legacy/v0160/store.go
�	x/profiles/types/genesis_test.go
�	x/profiles/types/models_params.go
�	x/profiles/types/models_params.pb.go
�	x/profiles/types/models_params_test.go
Signed-off-by: Riccardo Montagnin <[email protected]>
Signed-off-by: Riccardo Montagnin <[email protected]>
@RiccardoM RiccardoM merged commit a549ef7 into master Jul 12, 2021
@RiccardoM RiccardoM deleted the paul/oracle-params-improvement branch July 12, 2021 09:13
RiccardoM pushed a commit that referenced this pull request Jul 12, 2021
See PR #547

(cherry picked from commit a549ef7)
Signed-off-by: Riccardo Montagnin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make oracle-related data on-chain parameters
2 participants