For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contract Template Catalog

This page summarizes SatoshiNet smart contract templates, runtimes, and testnet entries. For more detailed protocol rules, see Smart Contract Protocol.

Current Status Matrix

Type
Status
Testnet Entry
Notes

Agent / Prediction Contract

Implemented / Testing

First public testnet validation scenario

Template Contract: AMM

Implemented / Testnet Iterating

PWA Tools -> Smart Contracts, Deploy AMM Pool

Smart contract template test capability, not market AMM

Template Contract: LimitOrder

Implemented / Testnet Iterating

PWA Tools -> Smart Contracts, Deploy Limit Order Module

Smart contract template test capability, not market limit order

Template Contract: Asset Exchange

Implemented / No Current Market Acceptance Entry

Source and E2E

Fixed-rule asset exchange; current PWA market acceptance excludes Exchange

Template Contract: Autopay

Implemented / Used by Node Services

Node config and E2E

Native template pays DKVS and other service fees by block height; not a normal user market action

EVM Runtime

Implemented / Testnet Iterating

Reuses Solidity / EVM ecosystem; invocation uses ABI calldata, and asset settlement still follows SatoshiNet UTXO model

EVM Sample: ConstantProductAMM

Implemented / Testing

PWA Tools -> Smart Contracts, EVM Sample Contracts

Solidity AMM standard sample, not market AMM

EVM Sample: LimitOrderBook

Implemented / Testing

PWA Tools -> Smart Contracts, EVM Sample Contracts

Solidity limit order standard sample, not market limit order

Template Documents Should Include

Each template contract should eventually include:

  1. Contract type and template name.

  2. Deployment parameters.

  3. Invocation interfaces.

  4. Input asset rules.

  5. Result TX output rules.

  6. Permission boundary.

  7. Fees and GAS.

  8. Explorer / Indexer verification method.

  9. Testnet contract address or example txid.

  10. Known limitations.

Current Priorities

  1. Prediction contract: complete user testing, deployer quickstart, and testnet evidence.

  2. AMM template contract: complete deployment, swap, add liquidity, remove liquidity, and verification flow.

  3. LimitOrder template contract: complete order creation, filling, cancellation, and Result TX verification flow.

  4. Autopay template contract: complete deployment, funding, per-block payment, close, and Result TX verification flow.

  5. EVM sample contracts: add testnet addresses, txids, calldata generation records, and Explorer evidence for ConstantProductAMM and LimitOrderBook.

  6. EVM Runtime: add RPC, Chain ID, example repo, Solidity deployment flow, estimate flow, and ABI calldata invocation flow.

Page Status: Maintained Catalog; use the matrix for each template's release status

Last updated

Was this helpful?