Governance and Projects are modules of the On-Chain Jurisdiction: DAO governance (Governor, Timelock, Registry, RepToken, reward epochs) and the trustless economy (project escrow, arbitration, appeals), with the satellites that connect a jurisdiction to Autonet. By Eight Rice.
Beta, on testnet (Etherlink Shadownet, chainId 127823). Addresses are in
docs/deployments.md, and the full specification is in
docs/.
Prerequisites: Node.js 18+.
npm install
npx hardhat compile
npx hardhat testDeploy scripts, network names and the local end-to-end harness are in
docs/deployments.md. The developer sections are
below.
A chapter of The On-Chain Jurisdiction, version 4 (November 2026). Its terms are defined in the paper's Glossary.
Governance is the only non-optional module. The description below follows the perspective of its stakeholders: first the founder who creates a jurisdiction, then a member who has just received REP. A user may be a human using the Werule app or an Agent calling the contracts directly. The contracts are agnostic in this respect.
…is a permissionless action. None of the factory contracts and/or tools charge any fees for deploying or operating a jurisdiction, nor does the framework reserve any decision power in the jurisdictions that are subsequently deployed. The only cost of starting a jurisdiction is the transaction (gas) fee applied by the blockchain. The founder works through a series of choices, and the last step deploys the suite of contracts to the chain.
The first choice is which modules to attach. Projects and Autonet are both optional and neither depends on the other. Even if skipped at origination, modules can be attached later by proposal.
Then it needs a name, and a symbol for its governance token. The token is non-transferable.
The founder then sets the governance parameters:
- Proposal threshold. The voting weight needed to submit a proposal. The default is set at 1 REP, so nearly any member can bring a question to a vote. Raising it cuts noise, and it also shuts out small holders.
- Quorum. The minimum share of all REP that must vote For or Abstain for a proposal to pass. The suggested value is 4%.
- Supermajority. The share of all REP that must vote For on a constitutional proposal. It must be above half, and the suggested value is two thirds.
- Voting delay. The wait between submitting a proposal and the start of voting. The suggested value is zero. A longer delay gives members time to see a proposal coming and move their delegation before voting weights are fixed.
- Voting period. How long voting stays open. The suggested value is seven days.
- Execution delay. The wait between a proposal passing and taking effect. It gives everyone notice of what is about to happen. The suggested value is one day.
The three durations add up to the length of a full proposal life cycle, which also sets the shortest possible Autonet epoch.
The founder then lists the initial members and how much REP each one holds, which is all the REP that exists at genesis. Any other settings go into the Registry at this point, among them the value index, which names the tokens the jurisdiction recognizes and the parity of each. Modules bring settings of their own, covered in the sections below.
The final step deploys the suite of contracts. Any of these parameters can be changed by passing a constitutional proposal (which needs supermajority approval).
Voting weight only counts once it has been delegated, either to the holder's own address or to someone else's. In werule.io those actions pertain to the buttons Claim Voting Power and Delegate Vote, in the Account tab of a DAO page. Founding members need to do this before any participation is possible, and so do members who earn REP in Projects. REP claimed through Autonet is the exception: it arrives already delegated to its holder, unless they have chosen a delegate.
Delegation is liquid. The REP stays with its holder, only the right to vote with it moves, and the holder can move it as often as they like, to whomever they choose. All of a holder's REP goes to one delegate, and it goes one hop only. A delegate can't pass received weight on to anyone else, so every member knows exactly who is voting with their REP. A member who wants to decide a particular question personally may claim their voting power before that proposal's voting window begins.
The healthy state of a DAO is high turnout. Having liquid and incentivized delegation creates the conditions for it. Members who can't allocate the time to study each proposal can delegate their voting weight rather than leave it idle. Delegates are compensated in proportion to the voting weight entrusted to them, which gives rise to competition among a new class of politicians. Since there are no fixed terms and any delegation can be withdrawn at will, these politicians must consistently demonstrate their alignment with their constituents, as well as their ability to watch over the consensus with vigilance.
Undelegated REP casts no vote, but it remains part of the total against which quorum and supermajority are measured. A jurisdiction may designate a default delegate by constitutional proposal, in which case new holders are delegated to it until they choose otherwise. The feature is disabled by default.
Members share in the jurisdiction's income through two reward pools, each with a budget set by the DAO. The passive income pool is claimed in proportion to REP balance, regardless of delegation. The delegate pool pays delegates in proportion to the voting weight they receive from others, provided it reaches a minimum share of all REP (a jurisdiction parameter, with a suggested value of 1%). Unclaimed funds remain in the treasury. A delegate who neglects the role loses delegators and, with them, the income.
Delegating to a second wallet of one's own and claiming from both pools is technically possible, and no on-chain rule prevents it. It is recommended that jurisdictions prohibit it in their code of conduct. Wallet ownership can't be proven on-chain, so enforcement rests on the DAO's judgment of the evidence, which remains practical since only delegates above the minimum share are paid. The penalty is the burning of the offender's REP by constitutional proposal. As in a parliament, such cases can be placed on an agenda, debated, and submitted together as a batch proposal.
A proposal is a set of contract calls, accompanied by a title and a description. Upon passing, those exact calls are executed atomically. No intermediary carries out the decision, and nothing other than what was voted on can be executed.
Any address holding a set minimum amount of voting power (proposal threshold) can submit a proposal, which then moves through the following stages:
- Pending. The voting delay. The proposer can still withdraw the proposal. It allows members the time to claim their voting power, should they have it delegated and intend to vote directly. When this period ends, a snapshot fixes the voting weight of every address with respect to this proposal. If there is no voting delay, the snapshot fires at the moment of proposal submission, since that’s when the voting window starts.
- Active. Members vote For, Against or Abstain using their weight at the snapshot. Changes in REP or delegation after that point have no effect on this proposal. From this point the proposal can no longer be withdrawn.
- Succeeded or Defeated. A proposal passes if For exceeds Against and quorum is met. Voting ends early once the outcome is decided: success when For holds more than half of all REP and meets quorum, defeat when Against holds half.
- Queued. Anyone can queue a successful proposal, which starts the execution delay.
- Executed. Once the delay has elapsed, anyone can execute the proposal. Queued proposals don't expire.
Werule.io provides a form for each common proposal type: treasury transfers, Registry edits, changes to the DAO configuration, minting and burning REP, reward epochs, and attaching or removing modules. Anything else can be submitted as a custom contract call, and multiple actions can be batched in a single proposal. Relationships between jurisdictions are theirs to define by the same means: one can, for instance, mint REP to the timelock of another, granting it a stake in its votes. Autonet's epoch anchors run on the same machinery as single-choice elections, covered in its section.
Most of these are ordinary proposals, decided as above. These include treasury spending, most Registry edits, service and platform fees, reward epochs, sanctions against a household, project vetoes and overruling an arbiter.
A proposal is constitutional if any of its actions affects what makes votes binding or who holds voting weight:
- Changes to voting parameters: proposal threshold, quorum, supermajority, voting delay, voting period.
- Any call to the timelock, including changes to the execution delay.
- Changes to who holds or can create REP: minting, burning, granting the right to mint or slash, designating a default delegate.
- Attaching or removing a module, since modules carry rights over REP.
- Eight Registry entries: the Autonet charter, the epoch rules, the REP rate, and the addresses of the five contracts every daemon reads at start (Substrate.sol, the REP token, ToolBond.sol, the governor and the timelock).
The contract determines this at submission, so a proposal can't avoid the classification. A constitutional proposal requires For votes from the supermajority of all REP at the snapshot, in addition to quorum. Anything other than For counts against it: Against, Abstain, absent members and undelegated REP. It passes as soon as it reaches the bar, and fails as soon as the bar is out of reach.
This is by design. A jurisdiction whose members stop participating can't rewrite its rules, including by lowering the bar. Those who remain can fork.
Projects is the jurisdiction's marketplace for work, and its civil justice. An author posts a project, backers fund it into escrow, and a contractor delivers the work. When the contractor declares the work done, each backer decides for their own share: a share nobody disputes is paid, and a disputed share goes to an arbiter if the contractor stands by the work. The jurisdiction stands above every project: it can veto a project and overrule an arbiter. Projects is the only way to crowdfund within a jurisdiction. From funding to the last payout, the funds move only by the rules of the project's contract, and no intermediary holds them.
The description below follows a project from its creation to its close. As in Governance, a user may be a human using the Werule app or an Agent calling the contracts directly.
Projects is an optional module, attached at genesis or later by proposal. Attaching it adds the Economy contract, which creates the projects and keeps the ledger that REP is claimed from, and EconomyRepClaim.sol, which mints that REP. Each project is a contract of its own, paid either in the chain's native currency or in one token. The installation takes the following parameters, shown with their default values:
- Platform fee. The share of every payout that goes to the treasury, between 1% and 50%. The default is 1%.
- Author fee. The share of the contractor's payouts that goes to the project's author, at most 25%. The default is 1%.
- Arbitration fee. The arbiter's fee, as a share of what is disputed, at most 25%. A backer deposits it to dispute their share, and the contractor matches it to contest. It is set at installation.
- Cooling-off period. How long backers can withdraw before the contractor can sign. The default is one day. It can never be shorter than a minimum fixed at installation.
- Dispute window. How long backers have to dispute their share after the contractor declares the work done. The default is seven days.
- Contest window. How long the contractor then has to contest the disputes. The default is three days.
- Project threshold. The REP an author needs to create a project. The default is zero.
- Appeal window. How long after a ruling the DAO can still overrule it. The default is seven days.
- Arbitration timeout. How long an arbiter has to rule before the backers who disputed can take back their shares. The default is 30 days.
- Immediate release cap. The largest share of a contribution that a backer can mark for immediate release, at most 50%. The default is 20%.
Every parameter can be changed later by ordinary proposal. A project copies the fees and the periods when its contractor and arbiter are named, and runs on that copy to its close. A change therefore applies to the projects whose parties are named after it, and never to money already committed under the old value. The immediate release cap is the exception: it applies to each contribution as it is made.
An author holding at least the project threshold of REP creates a project, with a name, a description and the hash of its terms, and names a contractor and an arbiter. The author can also name them later, which opens the project to funding first. When naming them, the author sets the project's maximum duration: how long after signing the contractor has to declare the work done.
Anyone can fund a project. A backer can mark part of each contribution, up to the immediate release cap, for immediate release: it is paid to the contractor at signing, as working capital. It pays no platform fee and earns no REP. The rest is locked in escrow. The split is how a backer prices their trust in the contractor.
Once the contractor and the arbiter are named, the cooling-off period starts. It is the backers' time to examine the contractor, the arbiter and the terms, the duration among them. Until the contract is signed, a backer can withdraw everything they contributed, the immediate share included. A backer who stays has accepted this contractor and this arbiter.
After the cooling-off period, the contractor signs the contract, and the work starts. The contractor puts nothing down. The immediate shares are paid out at signing and never come back, whatever happens afterwards.
A member who thinks a project should not go ahead proposes a veto. A veto proposal registered on the project during the cooling-off period holds the signing until the proposal is decided (a pending veto), so the jurisdiction always finishes its vote before the contractor can sign. The Werule indexer registers such proposals, and anyone else can register them as well.
When the work is delivered, the contractor declares it done, which opens the dispute window. During the window each backer decides for their own share, and for no one else's. A backer who is satisfied does nothing. A backer who is not disputes their share, and deposits the arbitration fee for it.
When the window closes, every share that nobody disputed is the contractor's, whatever happens to the disputed ones afterwards. If nothing was disputed, the project closes there.
There is no vote over the escrow, so no amount of money decides for anyone else's. A contractor who funds their own project from many addresses gains nothing by it: those addresses can only stay silent about their own shares.
The contractor can instead give up the project while the work is ongoing, which closes it and returns the locked funds to the backers. A contractor who declares nothing before the project's maximum duration ends is paid nothing, and the backers take their money back.
The contractor answers the disputes together. To contest them, the contractor matches the backers' deposits within the contest window, and the disputed shares go to the project's arbiter. A contractor who does not contest concedes: the backers who disputed get their shares and their deposits back, and the arbiter is never involved.
The arbiter rules on a split: a percentage of every disputed share goes to the contractor, and the rest goes back to its backer. The arbitration fee is divided the same way, so the side the ruling goes against pays it. If the ruling gives the contractor nothing, the contractor's deposit pays the whole fee and the backers get theirs back. If it gives the contractor everything, the backers' deposits pay it.
A ruling takes effect when the appeal window closes. Within the window, any member can appeal by proposing a different split to the DAO. A registered appeal holds the ruling until the proposal is decided, and if the proposal passes, the DAO's split replaces the arbiter's, even after the window has closed.
An arbiter who has not ruled by the end of the appeal window loses the exclusive right to rule. From then on the DAO can rule in the arbiter's place, and the arbitration fee goes to the treasury. If nobody rules before the arbitration timeout, the project closes: the backers who disputed take back their shares, and both sides take back their deposits.
The parties choose their arbiter by taking part in the project, and the DAO is their court of appeal. This is the jurisdiction's civil justice.
The contractor is more than an address. The backers chose this contractor, and a contractor who signs and delivers nothing, declares work that was not done, or leaves disputes unanswered loses that standing. The project records each of these outcomes on chain, and the DAO can act on them.
The DAO can veto any project until it closes. A veto closes the project and returns to the backers what the project still holds for them, less the platform fee, and a frivolous project therefore still costs its backers something. A project that has run its course by the clock (its duration ended, its ruling past appeal) has closed, whether or not anyone has made the call that records it, and a veto does nothing to it. Before signing, a veto returns the immediate shares as well. After signing, the immediate shares are the contractor's, and once the dispute window has closed, so are the shares nobody disputed. Deposits go back in full.
A veto proposal registered on the project during the dispute window holds the payout until the proposal is decided, the same way one registered during the cooling-off period holds the signing.
Every payout from the locked funds follows the same path. The platform fee goes to the treasury, the author fee goes to the author on the contractor's payouts only, and the rest goes to the payee. Refunds to backers pay no fee. The immediate shares paid at signing pay the author fee only.
The Economy contract keeps a ledger of what each member earned and spent in projects, per token. Earnings are the contractor's net payouts, the author's fees and the arbiter's net fee. Spending is what a backer locked, less what came back. The immediate shares are outside the ledger on both sides: they are paid before any work, so they earn nobody REP. A member claims REP against the ledger at the token's parity, multiplied by the REP rate: REP = value x parity x rate. A token without a parity earns no REP. The REP rate is a Registry entry that applies to every token, and since it decides how much voting power economic activity mints, it changes only by constitutional proposal. A new rate also applies to REP earned before it but not yet claimed.
Every payout that earns REP pays the platform fee, and the fee is therefore the least that REP costs. Funding one's own project to farm REP costs real money, and time: REP comes only from locked funds, which are paid when a dispute window has closed, and until then any member can propose a veto. REP claimed from Projects counts only once delegated (see Putting REP to use).
| Path | What |
|---|---|
contracts/ |
Governor (Dao.sol), JurisdictionTimelock, RepToken, Registry, Economy, EconomyRepClaim, project escrows (NativeProject, ERC20Project), Autonet satellites, CloneMaker |
contracts/factories/ |
JurisdictionFactory: every DAO core, as clones of implementations deployed once with the suite |
contracts/modules/ |
Module standard (ModuleSetup, ModuleRepo, ModuleCatalog, ModuleProcessor) and the economy, content court and Autonet setups |
modules/ |
Release and build metadata per module |
scripts/ |
Deploy and operational scripts; scripts/indexer-e2e/ is the local end-to-end harness |
test/ |
Hardhat test suite |
docs/ |
The specification (index) |
The chapter above is generated from the paper's source by
publish/publish.py
in the whitepaper repo: change it there, not here.
| Repo | What |
|---|---|
| node | Autonet: the daemon, the tool library, the services market and its contracts (Substrate, ServiceMarket, AnchorElection). |
| whitepaper | The paper's overview and glossary, the whole paper as one PDF, and its earlier versions. |
| werule-indexer | The indexer and publisher that werule reads. |
MIT