Skip to content
docs

SwapActivityOptions

Defined in: protocol-swap2-core/src/activity.ts:120

Labels a swap module passes when describing its own transactions in the activity feed.

optional counterparty?: string

Defined in: protocol-swap2-core/src/activity.ts:134

Override the counterparty (default: the contract called).


optional inSuffix?: string

Defined in: protocol-swap2-core/src/activity.ts:138

Suffix for a one-legged inbound item, e.g. “via CCTP” → “Received USDC via CCTP”.


kind: ActivityKind | "auto"

Defined in: protocol-swap2-core/src/activity.ts:130

What the transaction is. swap / bridge get the automatic title (“Swapped A → B”, “Bridged A”, “Received A”); auto picks swap when both legs netted on this chain and bridge otherwise.


optional outVerb?: string

Defined in: protocol-swap2-core/src/activity.ts:136

Verb for a one-legged outbound item (default “Bridged”).


protocol: string

Defined in: protocol-swap2-core/src/activity.ts:122

Registry module name (module.json → name).


optional subtitle?: string

Defined in: protocol-swap2-core/src/activity.ts:124

Venue label for the subtitle, e.g. “LI.FI”, “Uniswap v3 · Base”.


optional title?: string

Defined in: protocol-swap2-core/src/activity.ts:132

Override the computed title.