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: add role-based access control for bridge #1358

Closed tkxkd0159 closed 2 months ago

tkxkd0159 commented 2 months ago

Description

closes: #XXXX

Apply https://github.com/Finschia/finschia-sdk/pull/1350

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 69.53%. Comparing base (b73fabd) to head (3ea78b2). Report is 1 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358/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/1358?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) ```diff @@ Coverage Diff @@ ## main #1358 +/- ## ========================================== - Coverage 69.98% 69.53% -0.45% ========================================== Files 663 672 +9 Lines 55440 56103 +663 ========================================== + Hits 38799 39012 +213 - Misses 14408 14827 +419 - Partials 2233 2264 +31 ``` | [Files](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?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/1358?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/fbridge/types/codec.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Ftypes%2Fcodec.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL3R5cGVzL2NvZGVjLmdv) | `54.54% <50.00%> (ø)` | | | [x/fbridge/keeper/params.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Fkeeper%2Fparams.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL2tlZXBlci9wYXJhbXMuZ28=) | `83.33% <83.33%> (ø)` | | | [x/fbridge/types/msgs.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Ftypes%2Fmsgs.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL3R5cGVzL21zZ3MuZ28=) | `0.00% <0.00%> (ø)` | | | [x/fbridge/types/fbridge.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Ftypes%2Ffbridge.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL3R5cGVzL2ZicmlkZ2UuZ28=) | `0.00% <0.00%> (ø)` | | | [x/fbridge/types/params.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Ftypes%2Fparams.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL3R5cGVzL3BhcmFtcy5nbw==) | `42.42% <42.42%> (ø)` | | | [x/fbridge/keeper/keeper.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Fkeeper%2Fkeeper.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL2tlZXBlci9rZWVwZXIuZ28=) | `67.85% <70.00%> (+17.85%)` | :arrow_up: | | [x/fbridge/types/keys.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Ftypes%2Fkeys.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL3R5cGVzL2tleXMuZ28=) | `0.00% <0.00%> (ø)` | | | [x/fbridge/keeper/abci.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Fkeeper%2Fabci.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL2tlZXBlci9hYmNpLmdv) | `0.00% <0.00%> (ø)` | | | [x/fbridge/keeper/genesis.go](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree&filepath=x%2Ffbridge%2Fkeeper%2Fgenesis.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia#diff-eC9mYnJpZGdlL2tlZXBlci9nZW5lc2lzLmdv) | `10.34% <8.33%> (+10.34%)` | :arrow_up: | | ... and [4 more](https://app.codecov.io/gh/Finschia/finschia-sdk/pull/1358?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Finschia) | |