Skip to content

Joon2000/MyMiniRollup

Repository files navigation

Rollup Project

  1. set env file for hardhat and server (./.env)

    SEPOLIA_RPC_URL =
    PRIVATE_KEY =
    ALICE_ADDRESS =
    BOB_ADDRESS =
    ADMIN_ADDRESS =
    ADMIN_PRIVATE_KEY =
    

    Private key is for hardhat deployment

  2. set env file for client (./off-chain/client/.env)

    # Token Address is an arbitrary address
    REACT_APP_SEPOLIA_RPC_URL =
    REACT_APP_TOKEN_ADDRESS =
    REACT_APP_ALICE_ADDRESS =
    REACT_APP_BOB_ADDRESS =
    REACT_APP_ADMIN_ADDRESS =
    
  3. Deploy contract

    npx hardhat ignition deploy ignition/modules/Rollup.ts --network sepolia

    If there is an error, just compile the contract for abi file and deploy it through remix and manually put the contract address in server's index.ts file

  4. Start client and server

    npm start

    in the root
    Or start them each with

    npm start

    in respective root folder (./off-chain/client, ./off-chain/server)

  5. Create blocks

    After every 3 transactions a block is submitted to the sepolia network
    

To do List

  1. UI/UX -> after fetching data login available, admin page (current block number, searching block data < current number)
  2. Challengeing logic
  3. state storing logic
  4. 다른 네트워크일때 sepolia로 바꿔달라고

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published