SwapActivityOptions
Defined in: protocol-swap2-core/src/activity.ts:120
Labels a swap module passes when describing its own transactions in the activity feed.
Properties
Section titled “Properties”counterparty?
Section titled “counterparty?”
optionalcounterparty?:string
Defined in: protocol-swap2-core/src/activity.ts:134
Override the counterparty (default: the contract called).
inSuffix?
Section titled “inSuffix?”
optionalinSuffix?: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.
outVerb?
Section titled “outVerb?”
optionaloutVerb?:string
Defined in: protocol-swap2-core/src/activity.ts:136
Verb for a one-legged outbound item (default “Bridged”).
protocol
Section titled “protocol”protocol:
string
Defined in: protocol-swap2-core/src/activity.ts:122
Registry module name (module.json → name).
subtitle?
Section titled “subtitle?”
optionalsubtitle?:string
Defined in: protocol-swap2-core/src/activity.ts:124
Venue label for the subtitle, e.g. “LI.FI”, “Uniswap v3 · Base”.
title?
Section titled “title?”
optionaltitle?:string
Defined in: protocol-swap2-core/src/activity.ts:132
Override the computed title.