Skip to content

vlayer-xyz/deploy-risc0-example

Repository files navigation

RISC Zero Mock Verifier Deployment

Deploy the RiscZeroMockVerifier contract to Sepolia or any EVM-compatible chain.

Prerequisites

  • Node.js 18+ and npm/pnpm
  • Foundry (forge) for compiling the contract artifact
  • RPC endpoint for your target chain (e.g. Sepolia Infura/Alchemy URL)
  • A funded deployer private key for that chain

Install dependencies

npm install

Build the verifier artifact

forge build --contracts lib/risc0-ethereum/contracts/src/test/RiscZeroMockVerifier.sol

Configure environment

Create a .env with the following:

RPC_URL=https://sepolia.infura.io/v3/<your-project-id>
PRIVATE_KEY=0xabc...   # funded deployer

Deploy to Sepolia

npx ts-node deploy.ts

Deploy to any chain

  • Swap --rpc-url (or RPC_URL) for the target chain’s endpoint.
  • Use a private key funded on that network.
  • Adjust --gas-price if the chain does not support EIP-1559 or if you want to force a specific price.

Script options

  • --rpc-url / RPC_URL / ETH_RPC_URL
  • --private-key / PRIVATE_KEY / DEPLOYER_KEY
  • --selector / SELECTOR (defaults to 0x00000000)
  • --artifact-path / ARTIFACT_PATH
  • --gas-price / GAS_PRICE (gwei)
  • --confirmations / CONFIRMATIONS (integer, defaults to 1)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published