Smart Contracts
On-chain architecture and deployed contract addresses.
Contract Addresses (Base Sepolia)
| Contract | Address |
|---|---|
| ISNADToken | 0x56d202C2E1C5a3D7538Ed6CAD674d4E07D83cbb4 |
| ISNADRegistry | 0x8340783A495BB4E5f2DF28eD3D3ABcD254aA1C93 |
| ISNADStaking | 0x2B5aF6cd0AF41B534aA117eECE7650dDE8B044bE |
| ISNADOracle | 0x4f1968413640bA2087Db65d4c37912d7CD598982 |
| ISNADRewardPool | 0xfD75A1BD5d3C09d692B1fb7ECEA613BA08961911 |
| TimelockController | 0x13B3418c78c309D0d141f6eF0A26D783809Bc1bA |
| ISNADGovernor | 0x67F139c13628DBB9aFac8377fb2DD57958B9C586 |
Architecture Overview
┌─────────────────────────────────────────────────────────────┐ │ ISNAD Protocol │ ├──────────────┬──────────────┬──────────────┬───────────────┤ │ ISNADToken │ ISNADRegistry│ ISNADStaking │ ISNADOracle │ │ (ERC20 + │ (inscribe │ (stake + │ (flag + │ │ votes) │ + metadata)│ attest) │ jury) │ ├──────────────┴──────────────┴──────────────┴───────────────┤ │ ISNADRewardPool │ ISNADGovernor │ │ (yield distribution) │ (DAO + timelock) │ └─────────────────────────┴──────────────────────────────────┘
Contract Descriptions
ISNADToken
ERC20 token with ERC20Votes extension for governance. Fixed max supply of 1B tokens. Includes MINTER_ROLE (reward pool) and BURNER_ROLE (staking contract for slashing).
ISNADRegistry
Stores resource inscriptions. Resources are identified by SHA-256 content hash. Supports single inscriptions and chunked uploads for large files.
ISNADStaking
Manages attestations. Auditors stake tokens with lock durations (30-90 days). Calculates trust scores with lock multipliers. Handles slashing on Oracle verdict.
ISNADOracle
Detection and jury system. Handles flags, jury selection, voting, and verdicts. Supermajority (67%) required. Appeals supported with 2x deposit.
ISNADRewardPool
Distributes yield to auditors based on stake amount and lock duration. Lock multipliers: 30d=1x, 60d=1.25x, 90d=1.5x, 180d=2x, 365d=3x.
ISNADGovernor + Timelock
OpenZeppelin Governor with 2-day timelock. 4% quorum, 100k $ISNAD proposal threshold. Controls protocol parameters and upgrades.
Source Code
All contracts are open source and verified on BaseScan:
github.com/counterspec/isnad/contracts