Finschia / finschia-sdk

A framework for building blockchains based Finschia Mainnet that is forked from cosmos-sdk
Apache License 2.0
62 stars 29 forks source link

feat: fswap module's basic functionality(MsgSwap, MsgSwapAll, Query, Proposal) #1345

Closed 170210 closed 2 months ago

170210 commented 2 months ago

Description

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 39.53488% with 260 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (pjdp1@8d79d25). Click here to learn what that means.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345/graphs/tree.svg?width=650&height=150&src=pr&token=m16qfzIPO7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia)](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) ```diff @@ Coverage Diff @@ ## pjdp1 #1345 +/- ## ======================================== Coverage ? 69.97% ======================================== Files ? 663 Lines ? 55444 Branches ? 0 ======================================== Hits ? 38797 Misses ? 14415 Partials ? 2232 ``` | [Files](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) | Coverage Δ | | |---|---|---| | [simapp/app.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=simapp%2Fapp.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-c2ltYXBwL2FwcC5nbw==) | `80.06% <100.00%> (ø)` | | | [x/fswap/keeper/calc.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Fkeeper%2Fcalc.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC9rZWVwZXIvY2FsYy5nbw==) | `100.00% <100.00%> (ø)` | | | [x/fswap/keeper/keys.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Fkeeper%2Fkeys.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC9rZWVwZXIva2V5cy5nbw==) | `100.00% <100.00%> (ø)` | | | [x/fswap/handler.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Fhandler.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC9oYW5kbGVyLmdv) | `77.77% <77.77%> (ø)` | | | [x/fswap/module\_simulation.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Fmodule_simulation.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC9tb2R1bGVfc2ltdWxhdGlvbi5nbw==) | `9.09% <0.00%> (ø)` | | | [x/fswap/types/config.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Ftypes%2Fconfig.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC90eXBlcy9jb25maWcuZ28=) | `0.00% <0.00%> (ø)` | | | [x/fswap/types/codec.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Ftypes%2Fcodec.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC90eXBlcy9jb2RlYy5nbw==) | `41.17% <43.75%> (ø)` | | | [x/fswap/keeper/msg\_server.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Fkeeper%2Fmsg_server.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC9rZWVwZXIvbXNnX3NlcnZlci5nbw==) | `60.00% <60.00%> (ø)` | | | [x/fswap/types/genesis.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Ftypes%2Fgenesis.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC90eXBlcy9nZW5lc2lzLmdv) | `36.84% <31.25%> (ø)` | | | [x/fswap/types/proposal.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree&filepath=x%2Ffswap%2Ftypes%2Fproposal.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mc3dhcC90eXBlcy9wcm9wb3NhbC5nbw==) | `11.76% <11.76%> (ø)` | | | ... and [6 more](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1345?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) | |
jaeseung-bae commented 2 months ago

Please review the current state.

I'm currently working on the below. WIP: