Standalone EVM contract call challenge extracted from plebbit-js, packaged with independent dependencies.
- Runtime peer dependency is currently
@plebbit/plebbit-js. - This package is expected to migrate to
@pkc/pkc-jssoon.
- Node.js
>=22 - ESM-only environment
npm install @bitsocial/evm-contract-challengeimport Plebbit from "@plebbit/plebbit-js";
import { evmContractChallenge } from "@bitsocial/evm-contract-challenge";
Plebbit.challenges["evm-contract-call"] = evmContractChallenge;chainTicker: Chain key used fromplebbit.chainProviders(example:eth)address: Contract address to callabi: JSON string of the contract method ABIcondition: Comparison expression (=,>,<) against call result, e.g.>1000error: Custom error string returned when condition check fails
npm run typecheck
npm run build
npm test