Skip to content

WhiteBlackGoose/deposit-smart-contract

Repository files navigation

Borrowing System

Deployment Tests

That's a smart contract PoC on hardhat.

Run node locally

cd contract
npx hardhat node

Add account to MetaMask

  1. Open MetaMask
  2. Click on the network dropdown
    1. URL: http://localhost:8545
    2. Chain ID: 31337
    3. Currency Symbol: ETH
  3. Click on the account icon
  4. Click on Import Account
  5. Paste the private key from the terminal where you started the node

Deploy contract locally

cd contract
npx hardhat ignition deploy --reset ./ignition/modules/deploy.ts --network localhost

Interact with the app

Either start the frontend locally:

cd gui
npm run dev

or go Live App.

Connect your wallet and paste the ID of your smart contract in the field at the bottom.