x/distribution: CLI & Module Tweaks (#6684)

* init commit

* cleanup methods

* fix
This commit is contained in:
Alexander Bezobchuk
2020-07-10 19:59:26 +00:00
committed by GitHub
parent 400c3cb08e
commit e1476c1f9d
9 changed files with 175 additions and 125 deletions
+1 -3
View File
@@ -23,6 +23,7 @@ x/{module}
│   └── exported.go
├── keeper
│   ├── invariants.go
│   ├── genesis.go
│   ├── keeper.go
│   ├── ...
│   └── querier.go
@@ -46,7 +47,6 @@ x/{module}
│   ├── params.go
│   └── proposals.go
├── abci.go
├── genesis.go
├── handler.go
├── ...
└── module.go
@@ -64,8 +64,6 @@ to the contract's implementing module and this is where `exported/` comes into p
Types defined here allow for `expected_keepers.go` in other modules to define
contracts that use single canonical types. This pattern allows for code to remain
DRY and also alleviates import cycle chaos.
- `genesis.go`: The module's genesis related business logic (e.g. `InitGenesis`).
Note, genesis types are defined in `internal/types`.
- `handler.go`: The module's message handlers.
- `keeper/`: The module's keeper implementation along with any auxiliary
implementations such as the querier and invariants.