Skip to content

Commit

Permalink
feat: Migrate token module from line/link (#416)
Browse files Browse the repository at this point in the history
* docs: Update CHANGELOG

* feat: define x/token protos

* feat: add token module

* feat: implement x/token query client

* feat: implement x/token tx client

* feat: implement x/token keeper

* feat: implement class keeper

* feat: implement x/token query server

* feat: implement x/token msg server

* feat: implement x/token genesis

* fix: add an option to supply querier

* feat: add grants and approvers to genesis

* fix: run test and fix bugs

* feat: implement x/token genesis

* fix: fix query and msg servers

* fix: support mintable flag

* test: add x/token cli tests

* test: add x/token genesis unit test

* test: add x/token keeper genesis unit test

* test: add x/token keeper test

* test: add tests for the msg validation

* test: add tests for x/token query cli

* test: add tests for x/token tx cli

* feat: add queries related to grant and approve

* fix: lint

* feat: emit events

* Revert "docs: Update CHANGELOG"

This reverts commit 94f7b53.

* docs: update CHANGELOG

* fix: fix bugs on the unit tests

* fix: fix the typo on a variable

* fix: resolve the conflict on swagger gen

* fix: lint

* build: undo fix

* fix: provide more fees and make explicit conformation

* Update x/token/class/keeper/id.go

* Update x/token/class/keys.go

* Update x/token/client/cli/query.go

* Update x/token/client/testutil/suite.go

* Update x/token/client/testutil/suite.go

* Update x/token/client/testutil/suite.go

* Update x/token/expected_keepers.go

* Update x/token/msgs.go

* fix: lint

* test: increase code coverage of genesis

* test: increase code coverage of x/token keeper

* fix: check id conflict on issue

* test: fix tests on handler

* fix: do not allow grant on already granted address

* fix: validate class ids

* test: add more tests on x/token servers

* docs: add comments on x/token proto

* test: add test on class id check

* fix: validate class ids in genesis

* refactor: move validation logics into a separate file

* test: add test cases into x/token keeper query

* test: fix test prep

* test: fix test prep

* test: add more test cases

* test: fix x/token client tests

* Update CHANGELOG.md

* test: fix the race

* Update x/token/class/validation.go
  • Loading branch information
0Tech authored Feb 24, 2022
1 parent be378c8 commit 4bb7b33
Show file tree
Hide file tree
Showing 55 changed files with 23,297 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (cosmos-sdk) [\#437](https://github.com/line/lbm-sdk/pull/437) dump up to cosmos-sdk v0.42.11
* [changelog of cosmos-sdk v0.42.11](https://github.com/cosmos/cosmos-sdk/blob/v0.42.11/CHANGELOG.md)
* (feat) [\#434](https://github.com/line/lbm-sdk/pull/434) Revert signature mechanism using `sig_block_height`
* (x/token) [\#416](https://github.com/line/lbm-sdk/pull/416) Migrate token module from line/link

### Improvements

Expand Down
8 changes: 8 additions & 0 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,13 @@
}
}
},
{
"url": "./tmp-swagger-gen/lbm/token/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "TokenParams"
}
}
},
]
}
8 changes: 5 additions & 3 deletions client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit 4bb7b33

Please sign in to comment.