pub enum Read<'a> {
Show 17 variants
Book(&'a Book),
Trades(&'a [Trade]),
Candles(&'a [Candle]),
Mids {
dex: &'a str,
mids: &'a Mids,
},
Perps(&'a MetaAndAssetCtxs),
Dex {
dex: &'a str,
read: &'a MetaAndAssetCtxs,
},
Dexes(&'a Dexes),
Spot(&'a SpotMetaAndAssetCtxs),
SpotMeta(&'a SpotMeta),
Clearinghouse {
user: Address,
dex: &'a str,
state: &'a ClearinghouseState,
},
SpotState {
user: Address,
state: &'a SpotState,
},
Mode {
user: Address,
mode: &'a Abstraction,
},
Orders {
user: Address,
dex: &'a str,
orders: &'a [FrontendOrder],
},
Fills {
user: Address,
fills: &'a [Fill],
},
MoreFills {
user: Address,
fills: &'a [Fill],
},
Fundings {
user: Address,
fundings: &'a [UserFunding],
},
Ledger {
user: Address,
rows: &'a [LedgerUpdate],
},
}Expand description
A typed /info answer for the store to fold.
Variants§
Book(&'a Book)
l2Book, ungrouped.
Trades(&'a [Trade])
recentTrades, newest first.
Candles(&'a [Candle])
candleSnapshot, oldest first: what the socket already sent of the same candles stays.
Mids
allMids of one perp dex, "" the first.
Perps(&'a MetaAndAssetCtxs)
metaAndAssetCtxs: the first dex’s universe, collateral and contexts.
Dex
metaAndAssetCtxs with a HIP-3 dex.
Dexes(&'a Dexes)
perpDexs with allPerpMetas: every dex’s universe and collateral.
Spot(&'a SpotMetaAndAssetCtxs)
spotMetaAndAssetCtxs.
SpotMeta(&'a SpotMeta)
spotMeta: the tokens and pairs that price spot balances.
Clearinghouse
clearinghouseState of one dex, at the account’s own address.
SpotState
spotClearinghouseState.
Mode
userAbstraction.
Orders
frontendOpenOrders of one dex.
Fills
userFills: the latest, newest first, which replace what is held.
MoreFills
userFillsByTime: a window, oldest first, added to what is held.
Fundings
userFunding: a window, oldest first, added to what is held.
Ledger
userNonFundingLedgerUpdates: a window, oldest first, added to what is held, in the
socket’s row type.