Comments (2)
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.
from discord-bot.
see this instead #6
from discord-bot.
Related Issues (16)
- Joystream Notification Bot HOT 3
- Role bot review - August 3, 2023 HOT 1
- Add new Tags to the Discord Role Bot
- Feature: Add `candidates` role HOT 1
- `Openings` bot
- NFTs: Market activity bot
- Role bot: add `DAO` role (all workers + leads + council) HOT 1
- Role bot: Add leads to `worker` roles
- role bot: prevent constant updating of already assigned roles
- role bot: not assigning role due to bug
- Role bot requirements HOT 5
- Tip bot requirements HOT 2
- Discord Bots: Lets try again HOT 4
- HR bot HOT 1
- Election Stats Bot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-bot.