Package Logo
liquidity_party
liquidity_party@v0.1.0
Total Downloads
1
Published
16 hours ago
Network
mainnet mainnet
Publisher
User Avatar timolson

Readme

Liquidity Party Substreams

Substreams package that indexes Liquidity Party LMSR-backed multi-asset pools on Ethereum mainnet and outputs per-pool TVL and APY metrics.

Outputs

map_pool_metrics (BlockMetrics)

Emitted on every block that has pool activity. Each PoolMetrics entry contains:

Field Description
balances[] Current token balances in raw token units (one per pool token)
fees_24h[] LP fees earned in the last ~24h per token
apy_bps[] Per-token APY in basis points
quote_tvl TVL in token[0] units: balance[0] × num_tokens
quote_fees_24h 24h fees converted to token[0] using pool-internal pricing
quote_apr_bps Simple annualized APR in bps (365.24 days/year)
quote_apy_bps Compound APY in bps with daily compounding (365.24 days/year)

All quote-adjusted values use the pool's own internal price (balance[0] / balance[n]), since every pool maintains equally-valued inventory and uses a stablecoin as token[0].

Usage

# Build WASM
make build

# Create .spkg bundle
make pack

# Stream against mainnet (requires SUBSTREAMS_API_TOKEN)
make run

# Publish to Substreams.dev registry
make publish

Factory

PartyPlanner deployed at 0x7692e502FB8cE1c13A97DbBE380Be05A545ee0a9 (block 24535806).

Documentation

Modules

Maps icon
Maps

map
map_pools_created

cda9398b83206304f66d8edcb73eb1ec19b445d0
map map_pools_created (
paramsstring
blocksf.ethereum.type.v2.Block
)  -> liquidity.party.v1.BlockPoolEvents
Default param : factory_address=7692e502fb8ce1c13a97dbbe380be05a545ee0a9
substreams gui liquidity-party@v0.1.0 map_pools_created

map
map_pool_events

cf0fae0ba84b258c51b8f1237dcf40c757a10602
substreams gui liquidity-party@v0.1.0 map_pool_events

map
map_pool_metrics

59ff9e12d8ed14469c252a0bcc8dddf11c375243
substreams gui liquidity-party@v0.1.0 map_pool_metrics
Stores icon
Stores

store
store_pools

f105cd03ad21d31162f1188d3e0436224cb0d494
substreams gui liquidity-party@v0.1.0 store_pools

store
store_killed_pools

e86d0feb5935c5d0b41865f4a14cfc3a0cb3b34c
store <set,int64> store_killed_pools (
)
substreams gui liquidity-party@v0.1.0 store_killed_pools

store
store_balances

18d494f5d052fb663ec27838f610eb712dad8ce5
store <add,bigint> store_balances (
)
substreams gui liquidity-party@v0.1.0 store_balances

store
store_cumulative_fees

a3f8459b7f9d80b89ed4882be03e96690916a582
store <add,bigint> store_cumulative_fees (
)
substreams gui liquidity-party@v0.1.0 store_cumulative_fees

store
store_fee_snapshots

48e28c8a6467ca32b1b4e7041d8ebeafa5ae471b
store <set_if_not_exists,bigint> store_fee_snapshots (
store_cumulative_feesDELTAS<add,bigint>
)
substreams gui liquidity-party@v0.1.0 store_fee_snapshots
Protobuf

Protobuf Docs Explorer

liquidity.party.v1