Skip to content

Latest commit

 

History

History
89 lines (64 loc) · 2.88 KB

README.md

File metadata and controls

89 lines (64 loc) · 2.88 KB

Real World Asset (RWA) for Concordium

Repository Setup

git clone [email protected]:chainorders/concordium-rwa.git
git submodule update --init --recursive
yarn

Contracts

Please find descriptions for all the available contracts here.

  • build

    yarn run build:contracts
  • deploy Edit the env file with the correct values. These values are used directly with concordium-client params to deploy

    yarn run deploy:contracts
  • test

    yarn run test:contracts
  • format :

    rustup install nightly-2022-06-09
    yarn run format:contracts

Backend

Backend consists of 2 separate API's one for Contracts and one for Verifier API's.

  • setup : Backend needs Module References of all the deployed contracts and can be updated in the env file

  • build

    yarn build:backend
  • Run Contracts API (Debug Mode) : Running API requires a running Concordium Node and a running Mongo DB Instance. The connection details for both are available in the env file. An instance of MongoDb can be started using the Docker Compose File

    docker compose up -d
    yarn run:backend:contracts-api
  • Run Verifier API (Debug Mode) : Running API requires a running Concordium Node and a running Mongo DB Instance. The connection details for both are available in the env file. An instance of MongoDb can be started using the Docker Compose File

    docker compose up -d
    yarn run:backend:verifier-api
  • Generate API Clients : The Clients will be generated at the locations Contracts API and Verifier API

    yarn generate:backend:client

Frontend