UNPKG

o1js

Version:

TypeScript framework for zk-SNARKs and zkApps

14 lines (10 loc) 413 B
/** * This file exists to avoid an import cycle between code that just needs access * to a smart contract base class, and the code that implements `SmartContract`. */ import type { SmartContract } from './zkapp.js'; export { isSmartContract, SmartContractBase }; class SmartContractBase {} function isSmartContract(object: unknown): object is SmartContract { return object instanceof SmartContractBase; }