StaticdaoConverts a DAO fee owner-cap object view into its public SDK shape.
The object response returned by the Sui object API.
The capability ID and its associated DAO fee pool ID.
StaticpoolConverts a raw pool deposit event into a public PoolDepositEvent.
The raw deposit event from the indexer.
The normalized deposit event with smallest-unit bigint amounts.
StaticpoolConverts a Sui object view for Pool<L> into a PoolObject.
The caster derives the LP coin type from the object's generic type, decodes
optional coin-decimal bytes, converts on-chain numeric strings to bigint,
and pairs every parallel vector by coin type. Balances remain in smallest
units while normalizedBalance retains the AMM math scale.
The object view returned by a Sui object API.
The normalized pool object used by Pool and CmmmCalculations.
StaticpoolExtracts the created pool object ID from a raw pool-create event.
The raw pool-create event.
The newly created pool object ID.
StaticpoolConverts a raw pool swap event into a public PoolTradeEvent.
Coin amounts are converted to bigint in smallest units, and shortened
on-chain type strings receive their leading zeroes.
The raw swap event from the indexer.
The normalized swap event.
StaticpoolConverts a raw pool withdrawal event into a public PoolWithdrawEvent.
The raw withdrawal event from the indexer.
The normalized withdrawal event with smallest-unit bigint amounts.
Converts raw pool objects and events into the SDK's public pool shapes.