tendermint / spn

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

Add a `claim` mission: send a request for a chain launch #974

Closed lumtis closed 1 year ago

lumtis commented 1 year ago

Add a custom claim mission to claim airdrop which is sending a request for a chain launch.

The reason for having this action as a claiming mission is that it is an action not targeted to specific actor (eg: builder) but anyone can send a request for a chain launch, this makes sense to have this as a claiming action to let user doing this and encouraging collaborative chain launch.

We should have a clean solution to implement this custom claim mission: not directly calling CompleteMission in the message (which is a dirty solution that would work) but defining a hook placeholder in launch for sending request, adding a custom hook in app.go that complete the mission upon sending the request

The reason to add this now is that this custom claim mission can be used as a showcase for the claim module guide on how to define a custom claim mission outside of the standard ones (staking, voting)