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

audit(erc20): Changes from api audit #544

Merged
merged 12 commits into from
May 3, 2022
Merged

Conversation

danburck
Copy link
Contributor

@danburck danburck commented May 2, 2022

Description

This PR adds improvements from performing an API audit on the x/erc20 module:

  • remove updateTokenPairERC20Proposal functionality
  • rename relay to conversion
  • add erc20-specific gov cli commands to spec
  • move evm helper functions
  • small spec fixes

Note that this change is API breaking due to the endpoint renaming.

@linear
Copy link

linear bot commented May 2, 2022

@codecov
Copy link

codecov bot commented May 2, 2022

Codecov Report

Merging #544 (82724c7) into main (80ff1a8) will increase coverage by 0.07%.
The diff coverage is 60.52%.

❗ Current head 82724c7 differs from pull request most recent head 933306a. Consider uploading reports for the commit 933306a to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #544      +/-   ##
==========================================
+ Coverage   81.56%   81.64%   +0.07%     
==========================================
  Files         115      115              
  Lines        6375     6275     -100     
==========================================
- Hits         5200     5123      -77     
+ Misses       1018      997      -21     
+ Partials      157      155       -2     
Impacted Files Coverage Δ
app/app.go 84.67% <ø> (ø)
x/erc20/keeper/grpc_query.go 76.92% <ø> (ø)
x/erc20/proposal_handler.go 1.88% <0.00%> (+0.43%) ⬆️
x/erc20/types/codec.go 0.00% <0.00%> (ø)
x/erc20/keeper/evm.go 68.26% <35.71%> (-5.07%) ⬇️
x/erc20/keeper/mint.go 88.46% <100.00%> (ø)
x/erc20/keeper/msg_server.go 77.89% <100.00%> (+1.97%) ⬆️
x/erc20/keeper/proposals.go 86.00% <100.00%> (-1.09%) ⬇️
x/erc20/types/proposal.go 90.90% <100.00%> (-1.95%) ⬇️

@danburck danburck changed the title ENG 217 erc20 api audit audit(erc20): Changes from api audit May 2, 2022
@danburck danburck marked this pull request as ready for review May 2, 2022 15:18
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! Great work 🚀 Can you add a changelog entry? 🙏

@danburck danburck enabled auto-merge (squash) May 2, 2022 18:24
@danburck danburck merged commit 4da7c8d into main May 3, 2022
@danburck danburck deleted the ENG-217-erc20-api-audit branch May 3, 2022 06:43
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.

None yet

3 participants