Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: introduce codespace into x/collection,token (#849)
* 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