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

impr(inflation): Rename total supply endpoint #536

Merged
merged 18 commits into from
Apr 29, 2022

Conversation

danburck
Copy link
Contributor

@danburck danburck commented Apr 28, 2022

Description

This PR renames the endpoint /evmos/inflation/v1/total_supply to /evmos/inflation/v1/circulating_supply to avoid confusion with the totalSupply from the bank module. The circulating supply excludes the team vesting allocation in the first year.

Note that this is a state machine breaking change.

@linear
Copy link

linear bot commented Apr 28, 2022

ENG-207 Rename /evmos/inflation/v1/total_supply -> /evmos/inflation/v1/circulating_supply

This is a breaking change so we will need to inform partners that this will change.

This clarifies what the difference is between querying total supply on x/bank and this endpoint on x/inflation

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #536 (6274b4b) into main (110d182) will not change coverage.
The diff coverage is 90.90%.

❗ Current head 6274b4b differs from pull request most recent head 86a4ade. Consider uploading reports for the commit 86a4ade to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #536   +/-   ##
=======================================
  Coverage   81.56%   81.56%           
=======================================
  Files         115      115           
  Lines        6375     6375           
=======================================
  Hits         5200     5200           
  Misses       1018     1018           
  Partials      157      157           
Impacted Files Coverage Δ
x/inflation/keeper/inflation.go 82.60% <85.71%> (ø)
x/inflation/keeper/grpc_query.go 91.42% <100.00%> (ø)

@danburck danburck changed the title ENG 207 rename total supply impr(inflation): Rename total supply endpoint Apr 28, 2022
@danburck danburck changed the title impr(inflation): Rename total supply endpoint impr(inflation): Rename total supply endpoint Apr 28, 2022
@danburck danburck marked this pull request as ready for review April 28, 2022 16:57
Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

LGTM. Why are so many files being autogenerated?

CHANGELOG.md Outdated Show resolved Hide resolved
@danburck
Copy link
Contributor Author

LGTM. Why are so many files being autogenerated?

This happened when running make proto-gen

@github-actions github-actions bot removed the build label Apr 29, 2022
@fedekunze fedekunze enabled auto-merge (squash) April 29, 2022 09:12
CHANGELOG.md Outdated Show resolved Hide resolved
@fedekunze
Copy link
Contributor

This happened when running make proto-gen

what version of buf --version are you using?

@github-actions github-actions bot added the CI label Apr 29, 2022
@fedekunze fedekunze merged commit af86618 into main Apr 29, 2022
@fedekunze fedekunze deleted the ENG-207-rename-total-supply branch April 29, 2022 15:40
loredanacirstea added a commit to loredanacirstea/evmos that referenced this pull request May 6, 2022
* loredana/ENG-214-add-epoch-types: (40 commits)
  Update evmos v3 -> v4 after latest changes
  Add year and hour epochs
  Update evmos v3 -> v4 after latest changes
  uncomment check
  feat: Inbound / outbound peers & default seeds (evmos#541)
  upgrade: Update Evmos go.mod version `v3` -> `v4` (evmos#557)
  Add change log
  Add migration logic for epoch change
  Fix epochs unit tests
  Revert to ascending order
  Store epoch information by duration and by identifier
  audit(erc20): add types tests and update comments (evmos#550)
  [ENG-219] bump erc20 test coverage (evmos#546)
  audit(erc20): state machine audit (evmos#547)
  audit(erc20): Changes from api audit (evmos#544)
  imp: update default min-gas-prices (evmos#543)
  imp: use constants for epochs IDs (evmos#539)
  fix: upgrade client router key (evmos#537)
  impr(`inflation`): Rename total supply endpoint (evmos#536)
  fix: `buf protoc` was moved to `buf alpha protoc` (evmos#462)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants