git clone [email protected]:chainorders/concordium-rwa.git
git submodule update --init --recursive
yarn
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 deployyarn run deploy:contracts
-
test
yarn run test:contracts
-
format :
rustup install nightly-2022-06-09 yarn run format:contracts
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
-
setup
- Make sure the frontend clients are generated using the above step
- Frontend needs running instances of both the API's and the connection details for both are available in the env file
- The Frontend also needs a running Concordium Node and the connection details are available in the env file
- The Frontend also needs Module References of the deployed contracts and can be updated in the Contract files available at
-
run
yarn run:frontend