Overview

The DAO uses Colony to pay contributors. Currently there is no automated way to know when a motion is created and staked, and Workstreams must manually monitor their Colony treasuries to ensure that no malicious motions pass.

https://xdai.colony.io/colony/shapeshift

https://blockscout.com/xdai/mainnet/address/0x725Cdb48F0Ea078E46e96b0B6cD2027B97b99B83/transactions

Specification

Using Typescript, create a Discord bot that posts a message to a channel whenever a new motion is staked in Colony. The message should include a link to the motion and whatever relevant information can be easily included (ie. motion creator, amount to be transferred, token to be transferred, domain the motion was created in). Ie. “@[MotionCreator] staked a motion in [Domain] to transfer [Amount] [Token]. [Motion URL]”

Acceptance Criteria

  1. An open source, MIT-licensed Typescript Colony bot is published to a public Github repo. It must compile in strict mode and pass @typescript-eslint/recommended.
  2. Whenever a motion is created and staked, the Colony bot posts a message to ShapeShift discord with a link to the motion
  3. Colony Bot is hosted using ShapeShift DAO’s existing infrastructure for bots (coordinate with @[email protected] and @MrNerdHair for this; we’ll fork your repo and maintain it under the shapeshift GitHub org).
  4. Stretch: The following info is included in the message:
    1. motion creator
    2. amount to be transferred
    3. token to be transferred
    4. domain the motion was created in
    5. Copy: “@[MotionCreator] staked a motion in [Domain] to transfer [Amount] [Token]. [Motion URL]”

Bounty

To apply for this bounty, please send a DM to @willyfox#1178 in Discord.