Skip to content

🪙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.

Notifications You must be signed in to change notification settings

Mayurdhamgunde/Cryto-DToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪙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.


GIF


GIF

To Deploy

  1. Find out your principal id:
dfx identity get-principal
  1. Replace the in main.mo with the principal you got from step 1.
  let owner : Principal = Principal.fromText("<REPLACE WITH YOUR PRINCIPAL>");
  1. Open up a new terminal in this VSCode project and deploy the token canister:
dfx deploy
  1. Start the frontend:
npm start
  1. Set the canister id to a local variable:
CANISTER_PUBLIC_KEY="principal \"$( \dfx canister id token )\""
  1. Transfer half a billion tokens to the canister Principal ID:
dfx canister call token transfer "($CANISTER_PUBLIC_KEY, 500_000_000)"
  1. Claim the tokens from the faucet on the frontend website.

  2. Get token canister id:

dfx canister id token

About

🪙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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published