Skip to content

Commit

Permalink
fix!: introduce codespace into x/collection,token (#849)
Browse files Browse the repository at this point in the history
* Import contract codespace

* Import token codespace

* Import collection codespace

* Revisit x/token Issue

* Import link codespace

* Revisit x/token GrantPermission & RevokePermission

* Revisit x/token Mint

* Revisit x/token Burn & OperatorBurn

* Revisit x/token Modify

* Revisit x/token Send & TransferFrom

* Revisit x/token RevokeOperator & Approve

* Revisit x/collection GrantPermission & RevokePermission

* Revisit x/collection CreateContract

* Revisit x/collection IssueFT & IssueNFT

* Revisit x/collection MintFT & MintNFT

* Revisit x/collection BurnFT, BurnFTFrom, BurnNFT & BurnNFTFrom

* Revisit x/collection Modify

* Revisit x/collection transfer endpoints

TransferFT, TransferFTFrom, TransferNFT & TransferNFTFrom

* Revisit x/collection Approve & Disapprove

* Revisit x/collection Attach, Detach, AttachFrom & DetachFrom

* Refactor x/token error codes

* Refactor x/collection error codes

* Add tests on x/collection messages

* Remove link codespace

* Add tests on x/collection keeper

* Support grpc error on x/collection queries

* Add tests on x/collection queries

* Update code number

* Fix error messages on InvalidDecimals

* Update x/collection errors

* Add tests on x/collection msg server

* Update x/token errors

* Add tests on x/token messages

* Remove unused logic in test

* Add tests on x/token keeper

* Add tests on x/token msg server

* Add tests on x/token grpc query

* Use Run() in the tests

* Use simple errors on x/token

* Use simple errors on x/collection

* Check operator and holder is different

* Revert "Use simple errors on x/collection"

This reverts commit 11f8334.

* Revert "Use simple errors on x/token"

This reverts commit 788093b.

* Revert "Update x/token errors"

This reverts commit 7a2ce69.

* Revert "Update x/collection errors"

This reverts commit 6e6973d.

* Revert "Update code number"

This reverts commit c9e9c66.

* Revert "Add tests on x/token grpc query"

This reverts commit ff41d66.

* Revert "Add tests on x/collection queries"

This reverts commit f9a3824.

* Revert "Support grpc error on x/collection queries"

This reverts commit 9b39a26.

* Revert "Remove link codespace"

This reverts commit a24e5ee.

* Rework on x/collection tests after reverts

* Rework on x/token tests after reverts

* Import contract codespace

* Apply link and contract codespace to x/token

* Apply link and contract codespace to x/collection

* Revert "Refactor x/collection error codes"

This reverts commit befb034.

* Revert "Refactor x/token error codes"

This reverts commit 47d1e38.

* Apply legacy errors into x/collection keeper

* Mind contract errors

* Apply legacy errors to x/token errors

* Fix integrated tests

* Shift token codespace error codes

* Shift link codespace error codes

* Expose class keeper

* Lint

* Expose ValidateLegacyContract()

* Add test for ErrTokenNotExist

* Add amount validation

* Update addCoins() return type

* Change to panic because the path is unreachable

* Add not a child case into Detach test

* Remove error conditions in proto

* Loosen the validation as daphne does

* Lint

* Update CHANGELOG.md

* Remove commented out errors

* Add a warning comment

* Revert bug fix

* Do the revert in right way

* Remove the magic number

* Leave a comment on error check
  • Loading branch information
0Tech authored Jan 20, 2023
1 parent 8fb9744 commit 1deccf3
Show file tree
Hide file tree
Showing 49 changed files with 2,420 additions and 3,264 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (client) [\#817](https://github.com/line/lbm-sdk/pull/817) remove support for composite (BLS) type

* (x/foundation) [#834](https://github.com/line/lbm-sdk/pull/834) Apply foundation audit
* (x/collection,token) [#849](https://github.com/line/lbm-sdk/pull/849) Introduce codespace into x/collection,token

### Removed
* [\#853](https://github.com/line/lbm-sdk/pull/853) remove useless stub BeginBlock, EndBlock methods from modules below
Expand Down
9 changes: 4 additions & 5 deletions client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit 1deccf3

Please sign in to comment.