Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

DepositReceiveHooks

DepositReceiveHooks<Context> = { readonly [Name in DepositName]?: (context: Context & { delivery: ReceivedDeposit<Name> }) => undefined | “decline” }

A receiving declaration’s hooks, one per kind it takes, by the kind’s name: each applies a deposit into the record, inside its own transaction, and answers "decline" to send it back. A hook cannot wait: one that returns a promise counts as a throw.

Type Parameter Default type
Context DepositContext