Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4255 +/- ##
=========================================
+ Coverage 54.62% 54.83% +0.2%
=========================================
Files 260 272 +12
Lines 16538 17020 +482
=========================================
+ Hits 9034 9333 +299
- Misses 6858 7001 +143
- Partials 646 686 +40 |
alexanderbez
suggested changes
May 2, 2019
Contributor
alexanderbez
left a comment
There was a problem hiding this comment.
Good job @fedekunze! I left some initial feedback. I'm also still a bit confused as to the "AC" of this PR. I thought the supply keeper would be the module keeping track of all sorts of supplies (ie. the staking keeper will not store bonded/unbonded supply internally)?
Contributor
|
Looks like this PR isn't complete. Should we close @fedekunze ? |
golangcibot
reviewed
May 5, 2019
Co-Authored-By: fedekunze <31522760+fedekunze@users.noreply.github.com>
golangcibot
reviewed
May 5, 2019
…mos-sdk into fedekunze/3972-supply
sabau
approved these changes
Jun 28, 2019
Contributor
Author
|
I forgot to add the |
Closed
alexanderbez
suggested changes
Jun 28, 2019
Contributor
alexanderbez
left a comment
There was a problem hiding this comment.
ACK -- just a few more points of nitpicking.
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Contributor
…mos-sdk into fedekunze/3972-supply
This was referenced Jun 28, 2019
5 tasks
1 task
larry0x
pushed a commit
to larry0x/cosmos-sdk
that referenced
this pull request
May 22, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #3972
closes #3628
closes #4472
Full Spec: #4599
This PR creates a new
x/supplymodule that passively keeps track of the total supply of the network. It introduces the concept of aModuleAccount, which is a module/pool that holds or mint coins. TheModuleAccountaddress is created from the hash of a root string (akaModuleAccount.Name).Additionally, the supply
Keeperhas bank functionalities to transfer coins from and to anModuleAccountusing only its name.With respect to breaking changes, this PR gets rid of all the pools of coins from store and replaces each of them with a
ModuleAccount. The pools added/affected by this change are:FeeCollectionKeeperreplaced for a fee collectorBaseAccount(to avoid import cycles)Poolwas replaced for aNotBonded(held in staking as opposed to before) andBondedModuleAccountdepositandburnaddresses: for agovModuleAccountModuleAccountwhich controls the flow of coins into (from the fee collector acc) and out of the module store (to withdraw addresses).ModuleMinterAccountthat is allowed to mint coins before redistributing them to the fee collector account.TODOs:
x/stakingTargeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/)Added a relevant changelog entry:
clog add [section] [stanza] [message]rereviewed
Files changedin the github PR explorerFor Admin Use: