Code Monkey home page Code Monkey logo

doxadollar's Introduction

Doxa Dollar Project

This is the official repo of the Doxa dollar project, a cycles backed stable coin on the Internet Computer.

The project is still in the development stages, and all the progress will be documented here.

Testing

To run the project locally, ensure that the dfx is already installed on your machine;

  • Clone the repo locally.

    git clone https://github.com/DoxaFoundation/DoxaDollar
  • Deploy the USDx ledger canister.

    Follow the guide to set up the icrc ledger token. Remember to set the minter as the Principal ID of the Doxa_backend as this will be the one minting the tokens.

  • Deploy the Cycles backup canister

    dfx deploy Cycles_backup
  • Deploy the Doxa backend canister

      dfx deploy Doxa_backend
  • To mint USDx token, you need to call the mint function and attach some cycles that will be converted into USDx, and you need to specify the Principal ID that will receive the minted tokens

    dfx canister call Doxa_backend mint "utvbn-hhmsq-vxs5n-pg2kr-rhurv-jjeww-fiyhh-3exfb-tqjk7-lsk4b-3qe" --wallet bkyz2-fmaaa-aaaaa-qaaaq-cai --with-cycles 2000000000000

    You can now check the USDx balance of the Principal ID

    dfx canister call USDx icrc1_balance_of  '(record{
      owner = principal "utvbn-hhmsq-vxs5n-pg2kr-rhurv-jjeww-fiyhh-3exfb-tqjk7-lsk4b-3qe";
      subaccount=null;
    })'

doxadollar's People

Contributors

kizzafredrichkibalama avatar sam-thetutor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.