Skip to content

Developer preview. Local source scans, read-only QIE checks, reports, CLI, and CI.

Documentation

Build, scan, seal, verify.

Everything shipped in Phases 1 and 2: the readiness model, integrity checks, read-only on-chain reconnaissance, QIE network configuration, local storage behavior, and the boundary between what is live and what is planned.

Phase 2 docsRun a scan

01 · Overview

What ChainReady is

A QIE-native preflight layer for Solidity source and deployed contracts. Source review becomes a scored, sealed, verifiable report; address scans read public chain data without a wallet.

ChainReady Phase 1 is a client-side static analyzer with a local workspace. Paste a Solidity file, choose QIE Mainnet or Testnet, and receive a weighted readiness score, category breakdown, and line-level findings. The report is sealed with SHA-256 and can be verified later without the original source.

Phase 2 adds a separate, read-only on-chain scan. Enter a deployed contract address to check runtime bytecode, explorer verification, ABI availability, deployment evidence, ERC-20 metadata, EIP-1967 proxy slots, owner authority, official token metadata, and RPC health. On-chain scans do not produce a numeric safety score and never mix with source-report results.

Static review

26 source rules across security, access, deployment, upgradeability, and code quality.

Sealed evidence

Canonical SHA-256 fingerprint over the report and a separate source hash.

Local workspace

Local projects remain in localStorage. Configured Phase 4 adds optional wallet-owned Supabase projects and saved release reports.

On-chain scan

Read-only bytecode, verification, proxy, owner, and token checks by address.

Not a security audit

The analyzer is heuristic and does not compile, execute, or symbolically evaluate contracts. A high score is not permission to skip tests or human review.

02 · Quickstart

From source to sealed report

No install, account, or wallet is required for a scan.

  1. 01

    Open the scanner

    Go to /scan, paste Solidity, or open a .sol file. Use the sample contract if you want to see the workflow first.

  2. 02

    Choose the target network

    Select QIE Mainnet (1990) or QIE Testnet (1983). The choice is recorded in the report but does not deploy anything.

  3. 03

    Analyze

    The browser evaluates the source, computes the score, and builds the report. Comments are stripped before matching.

  4. 04

    Review findings

    Filter by needs review, all, passed, or notes. Each finding includes severity, status, evidence, and a next step.

  5. 05

    Seal and save

    Download the JSON or save it to a local project. The report hash is computed over the canonical report.

  6. 06

    Verify later

    Use /verify or “Verify this report” to recompute the fingerprint and score from the file.

03 · Scoring

How the readiness score is computed

A weighted category score with explicit caps for high-impact signals.

CategoryWeight
Security35%
Access control20%
Deployment safety20%
Upgradeability10%
Code quality15%

Per-check scoring

  • Pass = full check weight.
  • Warn = half check weight.
  • Fail = zero.
  • Info checks are excluded from category scores.
  • Categories with no applicable checks are N/A and excluded.

Score caps

  • Any non-passing critical check caps the score at 39.
  • Any failing high-severity check caps the score at 64.
  • The cap is applied after the weighted score.
ScoreGrade
85–100Low risk
70–84Review
50–69At risk
0–49Blocked

04 · Readiness rules

The 26 Phase 1 checks

Rules are heuristic. Comments are stripped first, but string literals and formatting can still affect matches.

CheckSeverity
Embedded secretscritical
tx.origin authorizationhigh
Destructive opcodehigh
Delegatecall surfacehigh
External call reentrancyhigh
Low-level call handlingmedium
Inline assemblymedium
Signature recovery checksmedium
On-chain randomnesshigh
Timestamp-dependent logiclow
Gas-limited transferslow
Privileged function accesshigh
Administrative eventslow
SPDX licenselow
Compiler pragmahigh
Floating pragmalow
Modern compiler baselinemedium
Debug importshigh
Initializer protectionhigh
Implementation lockmedium
Unchecked arithmeticinfo
Revert styleinfo
Hardcoded addressesinfo
Emergency stopinfo
Deployment initializerinfo
Open implementation notesinfo

Rules can be skipped when they do not apply to a source. The report always lists the checks that were actually evaluated.

05 · On-chain scan

Read-only checks by contract address

Twelve checks run against public QIE RPC and explorer data. Unavailable evidence is Unknown, never a pass.

The on-chain scan is separate from the source analyzer. It sends only the selected network and the public contract address to ChainReady's server, which reads QIE RPC and the official Blockscout API. It never asks for a wallet, signature, or transaction.

Check
AddressValid, non-zero EVM address before any network call.
Networketh_chainId matches the selected QIE chain.
Bytecodeeth_getCode returns deployed runtime bytecode.
Bytecode hashkeccak256 of runtime bytecode, compared with the explorer when available.
VerificationExplorer source-verification status and compiler metadata.
ABIPublished ABI availability and callable function count.
DeploymentCreation transaction, block, deployer, and created-contract link.
ERC-20name(), symbol(), decimals(), and totalSupply() reads plus explorer metadata.
ProxyEIP-1967 implementation, beacon, and admin slots plus explorer proxy metadata.
Privileged functionsOwner/admin getters and ABI functions such as mint, pause, or upgrade.
Official tokenQUSDC and WQIE mainnet address and metadata matching.
RPCFallback probing, latest block, gas price, and endpoint evidence.

Pass

The check completed and the expected condition was observed.

Warn

The check completed but needs a human decision.

Fail

The check completed and a required condition was not met.

Unknown

Data was unavailable or incomplete. Never treated as a pass.

Not applicable

The check does not apply, for example ERC-20 metadata on an EOA.

No numeric safety score

On-chain results use status counts and an evidence-completeness verdict. ChainReady does not convert public metadata into a safety score or audit claim. A proxy can be valid and still unsafe; verified source can still contain bugs.

Bounded requests

Each scan has a 25-second deadline, a 20-request budget, response-size caps, short-lived caching, and a per-client rate limit. RPC fallbacks are tried in documented order, and the endpoint that answered is shown in the result.

06 · Report integrity

What sealing proves — and what it does not

Integrity is verifiable offline. Authenticity is not part of Phase 1.

Source fingerprint

SHA-256 over normalized source: BOM removed and CRLF/CR converted to LF. The source itself is never included in the report.

Report fingerprint

SHA-256 over a canonical JSON form with sorted keys, excluding the reportHash field. Any field change invalidates it.

Verification

The verifier checks the schema, fingerprint, source hash format, timestamp, analyzer metadata, and recomputes the score and categories.

Authenticity scope

A passing check does not prove who created the report. A configured Release Passport proves only that a wallet published the matching commitment.

Verify offline

Download the JSON and use /verify. The check runs entirely in the browser and does not upload the report.

07 · QIE networks

Network configuration

Both QIE networks are first-class in the app, wallet flow, and documentation.

NetworkChain ID

QIE Mainnet

0x7c6

1990

QIE Testnet

0x7bf

1983

Native currency is QIE with 18 decimals. Testnet has a public faucet at qie.digital/faucet. Environment variables can override the default RPC URLs.

hardhat.config.ts
import { HardhatUserConfig } from "hardhat/config";import "@nomicfoundation/hardhat-ethers";import "@nomicfoundation/hardhat-chai-matchers";const config: HardhatUserConfig = {  solidity: {    version: "0.8.24",    settings: { optimizer: { enabled: true, runs: 200 } },  },  paths: {    sources: "./contracts",    tests: "./test",    cache: "./.hardhat/cache",    artifacts: "./.hardhat/artifacts",  },};export default config;

The Phase 1 config has no deployer keys

ChainReady compiles and tests the registry scaffold locally with an in-memory Hardhat network. It does not configure QIE deployment accounts. When Phase 4 adds deployment, read a dedicated testnet key from the environment and keep it out of source control; prefer a hardware wallet or keystore for mainnet.

08 · Local workspace

Where projects and reports live

Public scanning remains local-first and account-free; authenticated persistence is optional and configuration-gated.

Storage behavior

  • Key: chainready.workspace.v1 in localStorage.
  • Up to 20 sealed reports per project.
  • Reports are validated against the v1.0 schema on load.
  • Source code is never stored in the workspace.
  • Clearing browser data deletes local projects.

Not in Phase 1

  • No automatic local-to-cloud migration or cross-wallet sharing.
  • Team roles or shared workspaces.
  • Server-side report storage.
  • Cross-device history.
  • Billing or plan enforcement.

Export before you clear

Download important reports as JSON. A downloaded report can be verified without the workspace or the original source.

09 · API

Network and on-chain endpoints

Public scan routes remain unauthenticated. Phase 4 account routes require a server-verified wallet session and never accept source code, private keys, or wallet credentials.

GET /api/network/status

Optional query: ?network=mainnet or ?network=testnet. Probes documented RPC fallbacks and the explorer stats API. Responses are no-store and request-time only.

network-status.json
{  "checkedAt": "2026-11-23T12:00:00.000Z",  "networks": [    {      "id": "mainnet",      "name": "QIE Mainnet",      "expectedChainId": 1990,      "observedChainId": 1990,      "chainIdMatches": true,      "blockNumber": 1234567,      "gasPriceGwei": 1.25,      "latencyMs": 184,      "status": "operational",      "rpcUrl": "https://rpc1mainnet.qie.digital",      "activeRpcUrl": "https://rpc2mainnet.qie.digital",      "attemptedRpcs": [        {          "url": "https://rpc1mainnet.qie.digital",          "ok": false,          "chainId": null,          "latencyMs": 4500,          "error": "RPC did not respond within 5 seconds."        },        {          "url": "https://rpc2mainnet.qie.digital",          "ok": true,          "chainId": 1990,          "latencyMs": 812        }      ],      "explorer": {        "reachable": true,        "url": "https://mainnet.qie.digital",        "latencyMs": 320,        "totalBlocks": 11971658,        "totalTransactions": 551692      }    }  ]}

POST /api/contract/scan

Body: {"network":"mainnet","address":"0x…"}. JSON only, 2 KB body limit, 10 requests per minute per client, and a 20-request upstream budget per scan. Returns status counts, 12 checks, RPC evidence, limitations, and a disclaimer.

contract-scan.json
{  "kind": "onchain-readiness",  "schemaVersion": "1.0",  "network": "mainnet",  "chainId": 1990,  "address": "0x3F43DA82eC9A4f5285F10FaF1F26EcA7319E5DA5",  "verdict": "review",  "summary": {    "pass": 4,    "warn": 5,    "fail": 0,    "unknown": 0,    "not-applicable": 3  },  "checks": [    {      "id": "verification",      "status": "warn",      "summary": "The contract is verified, but the explorer marks the verification as partial."    }  ],  "requestBudget": { "used": 14, "limit": 20 },  "disclaimer": "Read-only on-chain reconnaissance only..."}

A successful health response means the public RPC answered at that moment. It is not an uptime SLA, validator health check, or finality guarantee. A successful scan means the listed checks completed against public data; it is not an audit. There is no public report API or attestation endpoint in Phase 2.

10 · Roadmap

Ten phases, explicit boundaries

Each phase is scoped so a preview is never mistaken for a shipped capability.

Phase 1Shipped

Foundation and static readiness

Landing, source scanner, sealed reports, local workspace, verification, QIE network health, docs, Hardhat registry scaffold.

Phase 2Shipped

On-chain reconnaissance

Read-only bytecode, verification, ABI, deployment, ERC-20, EIP-1967 proxy, owner, privileged-function, official-token, and RPC checks by address.

Phase 3Shipped

GitHub validation and release readiness

Public repository evidence, six-category scoring, reusable reports, JSON export, print, and rescan.

Phase 4Shipped

Wallet authentication and dashboard

QIE/EVM connection, expiring one-time signature authentication, optional Supabase projects, scan history, settings, and ownership isolation.

Phase 5Shipped

On-chain Release Passport

RFC 8785 report hashing, publisher-scoped registry commitments, explicit publish/update/revoke transactions, and independent QIE verification. Deployment remains configuration-gated.

Phase 6Shipped

Public passport verification

Portable passport identifiers, report-to-chain verification, opt-in public pages, genuine-publication directory, downloads, share links, and integrity-only badges. Hosting and registry access remain configuration-gated.

Phase 7Shipped

DriftGuard, CLI, and GitHub Actions

Manual deployment evidence comparison, exportable JSON, read-only scan/verify/compare/ci commands, deterministic exit policies, and an example keyless workflow.

Phase 8Planned

Policy gates

Approval workflows, deployment policies, and audit retention.

Phase 9Planned

Ecosystem integrations

Wallet, explorer, and deployment-tool integrations across QIE.

Phase 10Planned

Production hardening

Scale, observability, security review, and reliability work.

11 · Limitations

Read this before relying on a result

The Phase 2 boundary is part of the product, not fine print.

Source and on-chain results are separate. A clean source report does not validate deployed bytecode, and an on-chain scan does not compile or review source.
Static source review is heuristic. No compilation, execution, fuzzing, or symbolic analysis.
On-chain checks read public data at scan time. Contracts, proxy implementations, and explorer metadata can change later.
Unknown means the evidence was unavailable or incomplete. It is never a pass.
No security audit, guarantee, certification, or safety score. Every result is a prompt for human review.
Official token matching covers QUSDC and WQIE on QIE Mainnet only; it does not assess reserves, liquidity, or issuer trust.
No proof of report authorship. SHA-256 proves internal consistency; a matching active Release Passport proves wallet publication, not authorship or safety.
QIE network health depends on public RPC and explorer availability and is not an SLA.
Local workspace data can be lost if browser storage is cleared.