Closed chrlschwb closed 1 year ago
Revised plan for the token transfer feature
four commands:
/register address
will connect a joystream wallet do the discord tag
/deposit seed amount
will transfer tokens from the connected wallet to a predefined Joystream account that will act as a pool for all discord users, and increase this user's "token" value in db.
/get_balance
will return the user's "token" value in db
/send tagId amount
will decrease the sender's "token" value in db and increase the recipient's value by amount.
/withdraw amount
will check if the user has an equal or larger value of "token" than "amount" and decrease the db value, while transfering tokens from the pool to the user's connected wallet.
see this instead https://github.com/Joystream/discord-bot/issues/6
https://pioneerapp.xyz/#/forum/thread/316
The current discord bot already couples the discord ID to a certain membership. So this new feature requires to call the tokenSend extrinsic.
The parameters should be like this.
/send discordId amount rationale privatekey