Smart Contract for zkabe system
This project uses hardhat as the framework to deploy the contracts and have some different configuration to local and different networks.
The testnet we are using is arbitrum sepolia
, which is a Layer 2 using Optimism Rollup of Ethereum Sepolia testnet.
- deploying on local node on hardhat:
npm run deploy:local
- deploying on arbitrum sepolia:
- first,
cp .env.example .env
- fill in
ALCHEMY_API_KEY
andMETAMASK_PRIVATE_KEY
npm run deploy:arbsepolia
- first,
npm run test
result woul be like:
> test
> hardhat test ./test/*.test.ts
Deploy Contracts
✔ should deploy the contract with valid address (558ms)
1 passing (559ms)
npm run format