Skip to main content

Smart Contracts Overview

PolicyKit’s on-chain layer consists of Solidity contracts built with Foundry. These contracts store policy configurations, evaluate on-chain rules, and verify off-chain attestations. The contracts are published as @policy-kit/contracts on npm, so you can import them directly in your own Solidity projects:

Contract Architecture

Core Contracts

Rule Evaluators

Libraries

Deployment

Contracts are deployed using Foundry’s deployment scripts:

Development

Build

Test

Gas Report