-
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
-
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 =
-
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
-
Start client and server
npm start
in the root
Or start them each withnpm start
in respective root folder (./off-chain/client, ./off-chain/server)
-
Create blocks
After every 3 transactions a block is submitted to the sepolia network
- UI/UX -> after fetching data login available, admin page (current block number, searching block data < current number)
- Challengeing logic
- state storing logic
- 다른 네트워크일때 sepolia로 바꿔달라고