tendermint / spn

A blockchain to launch blockchains.
Other
112 stars 41 forks source link

feat: add request creation airdrop mission #1004

Closed lumtis closed 1 year ago

lumtis commented 1 year ago

Add an airdrop mission triggering when a new request is created/sent

This is an actual mission as sending request is part of the wide usage of the protocol and this serve as an example on how to create a custom airdrop mission outside of regular modules

Add a mock for launch hooks for hook call assertion

codecov[bot] commented 1 year ago

Codecov Report

Merging #1004 (0954948) into main (2e94cf4) will decrease coverage by 0.02%. The diff coverage is 58.62%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/tendermint/spn/pull/1004/graphs/tree.svg?width=650&height=150&src=pr&token=GMSSU7SM3A&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint)](https://codecov.io/gh/tendermint/spn/pull/1004?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint) ```diff @@ Coverage Diff @@ ## main #1004 +/- ## ========================================== - Coverage 71.44% 71.43% -0.02% ========================================== Files 215 218 +3 Lines 9446 9475 +29 ========================================== + Hits 6749 6768 +19 - Misses 2524 2535 +11 + Partials 173 172 -1 ``` | [Impacted Files](https://codecov.io/gh/tendermint/spn/pull/1004?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint) | Coverage Δ | | |---|---|---| | [x/launch/types/hooks.go](https://codecov.io/gh/tendermint/spn/pull/1004?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gvdHlwZXMvaG9va3MuZ28=) | `16.66% <16.66%> (ø)` | | | [pkg/airdrop/airdrop\_missions.go](https://codecov.io/gh/tendermint/spn/pull/1004?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-cGtnL2FpcmRyb3AvYWlyZHJvcF9taXNzaW9ucy5nbw==) | `50.00% <50.00%> (ø)` | | | [x/launch/keeper/hooks.go](https://codecov.io/gh/tendermint/spn/pull/1004?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gva2VlcGVyL2hvb2tzLmdv) | `100.00% <100.00%> (ø)` | | | [x/launch/keeper/msg\_send\_request.go](https://codecov.io/gh/tendermint/spn/pull/1004?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint#diff-eC9sYXVuY2gva2VlcGVyL21zZ19zZW5kX3JlcXVlc3QuZ28=) | `95.16% <100.00%> (+0.24%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://codecov.io/gh/tendermint/spn/pull/1004/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tendermint)