Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mayurdhamgunde/cryto-dtoken
https://github.com/mayurdhamgunde/cryto-dtoken
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mayurdhamgunde/cryto-dtoken
- Owner: Mayurdhamgunde
- Created: 2024-04-25T18:23:50.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-04-25T21:22:26.000Z (8 months ago)
- Last Synced: 2024-04-26T19:40:44.511Z (8 months ago)
- Language: JavaScript
- Size: 441 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# πͺCrypto-DToken
Crypto DToken, is a crypto token built on the Internet Computer (IC) where user can get free tokens and transfer them with their friends using their principal ID like a bank.
The Frontend is implemented using React.js, Material Ui and Backend using DFINITY's Motoko language.
The user can claim free 10000 tokens, but just for once. Then the ability to see the balance of the tokens, as well as transfering the amount of tokens from wallet to another wallet.
***The page design is inspired from the old operating system interface design.***
# To Deploy
1. Find out your principal id:
```
dfx identity get-principal
```2. Replace the in main.mo with the principal you got from step 1.
```
let owner : Principal = Principal.fromText("");
```3. Open up a new terminal in this VSCode project and deploy the token canister:
```
dfx deploy
```4. Start the frontend:
```
npm start
```5. Set the canister id to a local variable:
```
CANISTER_PUBLIC_KEY="principal \"$( \dfx canister id token )\""
```6. Transfer half a billion tokens to the canister Principal ID:
```
dfx canister call token transfer "($CANISTER_PUBLIC_KEY, 500_000_000)"
```7. Claim the tokens from the faucet on the frontend website.
8. Get token canister id:
```
dfx canister id token
```