Skip to content

b1rdmania/compost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

153 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compost

Execution primitives for Hyperliquid HIP-3 and HIP-4, built in public.

compost.fi · @compostfi · grow@compost.fi


Live dashboards tracking HIP-3 builder market activity and HIP-4 outcome trading. A conditional trigger that fires perp orders when HIP-4 outcomes resolve. A working ERC4626 vault on HyperEVM testnet. All open source, all testnet.

What's here

WAR.MARKET — Winner, Hyperliquid London Hackathon @ Encode Club. One-click long/short baskets from narrative macro views, routed via Pear Protocol and settled on Hyperliquid. Live at war.market · Code at b1rdmania/WarGames.

Conditional Trigger — A HIP-4 binary market resolves → a signed perp order fires. Polls live testnet outcomes every 8 seconds via raw fetch (the @nktkas/hyperliquid SDK's schema validation rejects testnet data, so the info layer uses raw fetch; the exchange client handles EIP-712 order signing). Configure which outcomes to watch and what to do on resolution in scripts/trigger-config.json.

flowchart LR
    A([trigger-config.json]) --> B[trigger-monitor.js]
    B -->|poll every 8s| C[(HIP-4 Testnet)]
    C -->|YES ≥ 0.95| D[resolve YES]
    C -->|NO ≤ 0.05| E[resolve NO]
    C -->|pending| B
    D --> F[EIP-712 signed\nperp order]
    E --> F
    F --> G([HL Exchange])
Loading

HIP-3 Intelligence Board — Live dashboard pulling builder market data from the Hyperliquid API. Active deployers, volume, fee structures, market metadata.

HIP-4 Outcome Board — Live testnet board for HIP-4 binary prediction markets. YES/NO prices, settlement mechanics, how outcome trading sits alongside the perp book.

cHYPE Vault Demo — ERC4626 vault on HyperEVM testnet. Deposit vHYPE, receive cHYPE shares, pricePerShare accrues via synthetic APR. Contracts deployed and working; the capital formation concept behind it is parked until HIP-3 builder fee routing matures.

flowchart LR
    A([Deposit vHYPE]) --> B[CompostProofVault]
    B --> C([Mint cHYPE shares])
    B -->|synthetic APR| D[pricePerShare rises]
    D --> E([Withdraw vHYPE\nat higher rate])
Loading

HyperEVM vault

Deployed testnet contracts:

  • MockHype (vHYPE): 0xAdBc75586E2F5338F460410B87F7AFde0374Fc31
  • CompostProofVault (cHYPE): 0x89bBacDACA0D20CB48FA617b57CF6779979AEC4E

Repo structure

index.html              Landing page
hip3.html               HIP-3 live intelligence board
hip4.html               HIP-4 outcome board + explainer
trigger.html            Conditional trigger frontend
litepaper.html          cHYPE concept + vault demo
war.html                WAR.MARKET writeup
scripts/
  trigger-monitor.js    HIP-4 resolution → perp order monitor
  trigger-config.json   Trigger configuration
  list-outcomes.js      List live testnet HIP-4 outcomes
contracts/
  CompostProofVault.sol ERC4626-style vault
  MockHype.sol          vHYPE test token with faucet
assets/                 Design system, icons, nav

License

MIT

About

Execution primitives for Hyperliquid HIP-3 and HIP-4, built in public

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors