RocketChat / RocketChat/Rocket.Chat

Token Controlled Access Phase 2

Open
#8,153 0 comments 4 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

feat: integration / plugin sponsored
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Create the following commands to support TCA channels

1 - /tokens and /inventory should privately print the users combined token balances within the chat (only they can see it)

2 - /tokenpass - registers your login email address and sends you an email verification if you are not registered. If you are registered it tells you your Tokenpass username and the number of token types you have associated with your account.

3 - /tokenpass-add-address [address] allows a user to add a new token pocket. This is a multi-step process, once the initial command and address are sent, the API will return and the chat should privately show a verification phrase which needs to be signed, or a unique cryptocurrency address which can have any amount sent to it by the new pocket. If using pay-to-verify, once payment is detected the chat can print another message indicating the process is complete. If signing, proceed to 4

4 - /tokenpass-verify-address [address] [signed message] If signing, the user copies the signing phrase into their local wallet, signs the message with the address they are verifying, and then pastes the signed message into the chat as part of a /verifyaddress command described here.

5 /lend [token] [amount] [receiving username] [days (or forever] - this should use the lend portion of the tokenpass API

Other Improvements:

Show Access Token art between the Star and the channel name

Allow "Pay with Markets" scripts to be properly rendered for purchase within the chat using the same tech as the Video Call button
image

http://apidocs.tokenly.com/markets/#token-markets-api
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.