Challenge service will get submitted proof from contract and then verify. If have any invalid proof, challenger will call challenge to contract and get reward
git clone https://github.com/johnyupnode/simple-ai.git
cd farcaster-challenge
pnpm install
pnpm build
pnpm startcp .env.example .envAfter that, you need to fill in the environment variables in the .env file
NETWORK- Network of blockchain that you want to connect toRPC_URL- RPC URL of blockchain that you want to connect toPRIVATE_KEY- Private key of the account that you want to use to interact with the contractWALLET_VERIFIER_ADDRESS- Address of the Optimistic verifer contract. That use to query event submit proof and call challengeMAX_BEHIND_BLOCKS- The maximum number of blocks that the service can be behind the current block