Skip to main content

OmniaPoolAllocationContext

@totemsdk/omnia-pool


@totemsdk/omnia-pool / OmniaPoolAllocationContext

Interface: OmniaPoolAllocationContext

Properties

factory?

optional factory?: FactoryExecutionPort

Execute channel factory operations.


leaseProvider?

optional leaseProvider?: WotsLeaseProvider

WOTS lease provider used for per-signing key reservations.


loadChannel?

optional loadChannel?: (channelId) => Promise<OmniaChannel>

Materialize a live Omnia channel from its id. Default impl reads a stored channel snapshot via recoverChannel(deserializeChannelSnapshot(snapshot)) — see createChannelLoader. The allocation/withdrawal path calls loadChannel(position.omniaChannelId) instead of requiring the caller to inject the live object.

Parameters

channelId

string

Returns

Promise<OmniaChannel>


omnia?

optional omnia?: OmniaExecutionPort

Execute direct Omnia channel operations.


router?

optional router?: RouterExecutionPort

Execute router channel graph operations.


saveChannelSnapshot?

optional saveChannelSnapshot?: (channel) => void | Promise<void>

Persist a channel snapshot after create/update/close so it can be reloaded later.

Parameters

channel

OmniaChannel

Returns

void | Promise<void>


signer?

optional signer?: PoolSigner

Lease-backed signer aligned with Omnia's ChannelSigner (WOTS + signing indices).


splice?

optional splice?: SpliceExecutionPort

Execute splice operations.


vtxo?

optional vtxo?: VtxoExecutionPort

Execute VTXO pool operations.