4/22/2024 - devlog
This week we show the lifecycle of a motion with an example where we create a payout for another user.
Michi (molp)
This week I wanted to give an overview of how the different features we implemented over the course of the last weeks work together. In the example below, we want to transfer some funds from the government to a player.
The top bar indicates that we are in the context of the government of Umbra. That means that we are acting as an elected member of parliament. First of all we create a new motion in the MOTS
command for the payout. Members of parliament always have to use motions to act and cannot transfer funds (for example) directly.
After the motion is created we add it to our layout and add a new payout component. If you have drafted custom contracts this might look familiar. After selecting the payout component an overlay appears and lets us enter the necessary details: The recipient, the currency and of course the amount that will be transferred.
To be able to vote on the motion we have to hit the 'start voting' button next. After the voting phase has started we will not be able to change the motion at all. The 'votes' section now shows a list of all members parliament (currently only one) and the available voting options. We vote YES so that the motion can pass. Even though the voting phase usually lasts 24 hours, the motion is passed immediately once all members cast their vote.
Once the motion is passed a new contract is created that contains a single condition for the payout. If the recipient accepts/closes that contract, a member of parliament will have to click the fulfill button on the condition to finalize the payout.
As always: we'd love to hear what you think: join us on Discord or the forums!
Happy trading!