OpenGate
GitHub
Circuit-gated staking on X Layer

Rewards decided
by hardware

Stake OpenGate transistors and earn OKB. A 40-gate NAND circuit taped out on X Layer decides your multiplier. No admin can bend the rule: changing it means taping out a new circuit behind a 2-day timelock.

See the circuit
X LAYERTAPEOUTIGNIXOKX.AI
Reward pool–
Emission–
Period ends–
Transistors minted–
Policy circuit–

OpenGate turns a taped-out circuit into the vault's rulebook. Every stake, poke and claim asks the chain's eval() what your tier is. Anyone can read the netlist and replay it.

Your tier

–/7
–
Connect a wallet to see your tier, or view any wallet below.

Stake

In wallet
–
Staked
–
Staked since
–

Partial unstakes restart your stake age. Unstaking never depends on the circuit, so it always works.

Rewards

– OKB

Mint transistors

–

Add to the reward pool

Anyone can add OKB. It's paid to stakers over the current reward period.

How the tier is computed

Input0123
Stake size (2 bits)<100≥100≥1,000≥10,000
Stake age (2 bits)<1 day≥1 day≥7 days≥30 days
Builder (1 bit)own a circuit taped out on OpenGate
IGNIX holder (1 bit)hold ≥ 100,000 IGNIX

tier = min(7, size + age + builder + ignix) · reward weight = staked × (1 + 0.25 × tier), from 1.00× to 2.75×.

TierLogic v1 · 40 NAND gates

This is the exact netlist taped out on X Layer. Toggle the inputs to watch signals propagate; lit wires carry a 1. Then ask the chain: the app calls the circuit's eval() on X Layer and compares it with the browser simulation.

Browser: tier –
X Layer eval(): tier –

Circuit Copilot

Describe the logic as expressions and Copilot compiles it to NAND gates in your browser, then checks the result on every possible input before you can tape it out. Use it to write a new reward policy for the vault, or any circuit at all. Prefer plain English? The CLI asks Claude to write the spec: node copilot/cli.mjs "a 2-bit comparator".

Expression cheat sheet

+ - * (minus stops at 0) · & | ^ ~ · == != < <= > >= · ! && || · c ? a : b · << >> by a constant · min() max() bit(x,i) popcount(). Inputs are packed in order, least-significant bit first. At most 16 input bits.

Result

Compile a spec to see its gates, cost and truth table.

Tape out a circuit on OpenGate

Paste a design from Circuit Copilot (out/<name>.json) or a raw netlist. The app mints the NAND transistors you're missing, tapes the circuit out, and you become a builder, which adds +1 to your tier.

–

One-time setup

Run these four steps once from the creator wallet. Each one is a transaction you sign in your wallet; nothing else holds keys. When it's done, copy the config into web/config.js.

  1. 1 · Create the OpenGate processor

    –

  2. 2 · Tape out TierLogic v1

    Mints the 40 NAND transistors the circuit needs, then tapes it out (0.0013 OKB fee).

  3. 3 · Deploy the vault

    –

  4. 4 · Fund rewards

Creator earnings

Every transistor minted on OpenGate pays its price to the creator, including the ones you mint yourself. Withdraw to recycle that OKB.

– OKB

Config

–