Sigil documentation

System Contracts

Sigil uses WASM system contracts as the policy gate for core chain features while preserving deterministic native execution for state mutation.

Launch system contracts

The canonical system-contract registry contains service DIDs and ABI definitions for parameters, validators, staking, governance, treasury, compute, DEX, labor, Lumen, and Crucible. A registry entry does not establish that every corresponding transaction is accepted on a particular network.

A transaction that touches one of these domains must pass the activated system-contract gate before the native executor mutates state. Policy authorization and deterministic state mutation remain distinct responsibilities.

ItemDetails
sigil.system.parametersProtocol parameter authority.
sigil.system.validator_registryValidator registration and operator state.
sigil.system.stakingSelf-bond, delegation accounting, and rotation policy.
sigil.system.governanceProposal, vote, execution, and activation-height policy.
sigil.system.treasuryTreasury-controlled protocol allocations.
sigil.system.computeProvider, job, escrow, proof, and challenge gates.
sigil.system.dexPool, swap, liquidity, and DEX asset policy.
sigil.system.laborJob, bid, contract, milestone, escrow, and dispute policy.

Activation and direct transaction boundaries

The ABI below is the canonical registry interface. Each action still depends on its runtime, authority, policy, and native dispatch. Direct treasury actions, some governance execution variants, and several identity lifecycle variants remain gated; the existence of a service DID does not override those boundaries.

Sigil System Parameters

Service DID: did:oas:sigil:service:system-parameters. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
schedule_parameter_changegovernance · key, value, activation_height
read_parameterview · key

Sigil Validator Registry

Service DID: did:oas:sigil:service:system-validator-registry. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
register_validatorstate · operator_did, consensus_public_key, network_public_key, mode, region
update_validatorstate · operator_did, metadata
exit_validatorstate · operator_did

Sigil Staking

Service DID: did:oas:sigil:service:system-staking. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
stakestate · validator_did, amount, mode
unstakestate · validator_did, amount
delegatestate · delegator_did, validator_did, amount
undelegatestate · delegator_did, validator_did, shares
claim_rewardsstate · recipient_did, validator_did

Sigil Governance

Service DID: did:oas:sigil:service:system-governance. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
proposestate · proposal_type, payload, activation_height
votestate · proposal_id, choice, weight_source
executestate · proposal_id

Sigil Treasury

Service DID: did:oas:sigil:service:system-treasury. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
authorize_transfergovernance · recipient, amount, memo
read_budgetview · budget_id

Sigil Compute Marketplace

Service DID: did:oas:sigil:service:system-compute. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
register_providerstate · provider_did, stake_amount, supported_models, pricing, verification_tiers, provider_pubkey
update_providerstate · provider_did, pricing, supported_models, verification_tiers, provider_pubkey
fund_escrowstate · org_did, amount, mandate_id, budget_limit
withdraw_escrowstate · org_did, amount
settle_receiptstate · receipt
open_challengestate · receipt_id, challenger_did, evidence, deposit
resolve_challengestate · challenge_id, resolution
finalize_maca_epochstate · epoch_id, finalizer_did, quorum_threshold_override

Sigil DEX

Service DID: did:oas:sigil:service:system-dex. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
create_poolstate · sender_did, asset_a, asset_b, amount_a_desired, amount_b_desired, fee_bps, min_lp_shares, expiration_height
add_liquiditystate · sender_did, pool_id, amount_a_desired, amount_b_desired, amount_a_min, amount_b_min, min_lp_shares, expiration_height
remove_liquiditystate · sender_did, pool_id, lp_shares, amount_a_min, amount_b_min, recipient_did, expiration_height
swap_exact_instate · sender_did, pool_id, asset_in, amount_in, min_amount_out, recipient_did, expiration_height
swap_exact_outstate · sender_did, pool_id, asset_out, amount_out, max_amount_in, recipient_did, expiration_height

Sigil Labor Marketplace

Service DID: did:oas:sigil:service:system-labor. Runtime: anvil-wasm. Interface version: 1.0.0.

ItemDetails
post_jobstate · sender_did, job_id, poster_did, budget_token_id, budget_amount, milestone_total, deadline_epoch
cancel_jobstate · sender_did, job_id
submit_bidstate · sender_did, bid_id, job_id, bidder_did, proposed_price, proposed_token_id, estimated_duration_seconds
withdraw_bidstate · sender_did, bid_id
accept_bidstate · sender_did, bid_id, job_id
create_contractstate · sender_did, contract_id, job_id, bid_id, employer_did, worker_did, token_id, total_amount, escrow_account_did, milestone_count
fund_escrowstate · sender_did, contract_id, funding_treasury_did, amount
open_offerstate · sender_did, offer_id, sponsor_did, token_id, total_funding, per_claim_payout_cap, claim_bond, spam_fee, max_claims, claim_window_start_block, claim_window_end_block, verification_mode
submit_claimstate · sender_did, claim_id, offer_id, claimant_did, requested_payout, evidence_count
attest_claimstate · sender_did, attestation_id, claim_id, offer_id, attester_did, verdict
cancel_offerstate · sender_did, offer_id, sponsor_did
submit_deliverablestate · sender_did, contract_id, milestone_index, deliverable_id, payload_hash, submitted_by_did
attest_milestonestate · sender_did, contract_id, milestone_index, attester_did, verdict
release_milestonestate · sender_did, contract_id, milestone_index
raise_disputestate · sender_did, dispute_id, contract_id, raiser_did, evidence_count
resolve_disputestate · sender_did, dispute_id, resolver_did, resolution_kind
submit_reviewstate · sender_did, review_id, contract_id, reviewer_did, subject_did, score

Sigil Lumen Inference Attestation

Service DID: did:oas:sigil:service:system-lumen. Runtime: anvil-wasm. Interface version: 0.1.0.

ItemDetails
verify_lumen_attestationview · job_id, model_id, prompt_hash, output_hash, seed, precision, polynomial_digest, provider_pubkey, provider_signature
settle_lumen_receiptstate · receipt_id, job_id, provider_did, lumen_attestation

Sigil Crucible Training Coordination

Service DID: did:oas:sigil:service:system-crucible. Runtime: anvil-wasm. Interface version: 0.1.0.

ItemDetails
train_openstate · coordinator_did, run_id, reward_token_id, reward_pool, policy_version, verifier_mode
rollout_batch_commitstate · run_id, batch_id, artifact_cid, policy_version, verifier_mode
reward_batch_atteststate · run_id, batch_id, attestation_id, verifier_did
weights_publishstate · run_id, model_root, artifact_cid, publisher_did
train_slashstate · run_id, slash_id, offender_did, evidence_cid
train_closestate · run_id, reason

On this page