DIN-center / din-sc

1 stars 0 forks source link

Add cue definitions, refactor project config, and deployment scripts #27

Closed cds-amal closed 2 months ago

cds-amal commented 3 months ago

How to test

  1. Set up .env in the monorepo root with appropriate values
    export MNEMONIC=...
    export DIN_OWNER_PATH="m/44'/60'/0'/0/1"
    export INFURA=...
  2. Clean and build projects. Navigate to monorepo root
    rm -rf .nx
    pnpm install
    pnpm run build:all
  3. Start foundry's anvil chain in a new terminal from monorepo root
    source .env
    pnpm nx run din-sc:anvil
  4. Test and validate din-sc deployment in another terminal from monorepo root
    source .env
    pnpm nx run din-sc:deploy
    pnpm nx run din-sc:deploy:test:local
  5. Test that gas costs are calculable
    pnpm nx run din-sc:deploy:cost

Changes

General Improvements:

Project Configuration:

Makefile Adjustments:

Network Declarations with Cuelang:

Script Additions:

.gitignore:

.vscode: