MIDSTATE IDE
Initializing WASM runtime...
MIDSTATE
βΆ Compile
π§ͺ Run Tests
β¬ Step
β‘ Run
β Layout
-- Load Project --
πΎ Save
οΌ New
Maker Vault (Stablecoin CDP)
Sovereign Stream (Pay Channel)
Constant Product AMM (X*Y=K)
Custom Tokens (Coloured Coins)
Bonding Curve AMM (Linear)
Dead Man's Switch
Atomic Swap (HTLC)
2-of-3 Multisig
Math & Logic
Trustless Escrow (Let/Macro)
ββββββββββ
Options Market: 1. AMM
Options Market: 2. Vault
Options Market: 3. Token
Options Market: 4. Stream
ββββββββββ
Advanced Staking Governance
Merkle Ledger
Merkle Whitelist
Size
β
SigOps
β
β compile to get address β
β¦
SOURCE EDITOR
Size
β
SigOps
β
P2SH
β
β
BYTECODE & DEPLOY
Raw Bytecode
Click Compile to generate bytecode...
CLI Deploy Instructions
1 Β· Fund Contract
midstate wallet send --to <P2SH>:<amount>
2 Β· Get Coin ID
midstate wallet list --full
3 Β· Spend Contract
midstate wallet spend-script --coin <ID> --bytecode <HEX> --inputs "<witness>" --to <dest>:<amt>
⬑
EMULATOR CONTEXT
Witness Stack (comma-separated hex, pushed LβR)
Block Height
Input Value (Sats)
This Address (32-byte hex β for OP_THIS_ADDRESS)
Input State (32-byte hex)
Tx Outputs (addr:value:state)
β
VM EMULATOR
Assembly
Awaiting compilation...
Stack
Stack Empty
Ready.
βΈ
TERMINAL LOG
Editor
Bytecode
Context
VM
Log
πΎ
SAVE PROJECT
Project Name
Cancel
Save