Skip to content
docs

BridgeProtocol

Defined in: protocols/bridge.ts:45

Base class for bridge-only modules.

TConfig extends BridgeProtocolConfig = BridgeProtocolConfig

new BridgeProtocol<TConfig>(account, config?): BridgeProtocol<TConfig>

Defined in: protocols/bridge.ts:49

IWalletAccountReadOnly | IWalletAccount

TConfig = ...

BridgeProtocol<TConfig>

ProtocolBase.constructor

protected readonly _account: IWalletAccountReadOnly | IWalletAccount

Defined in: protocols/base.ts:8

ProtocolBase._account


protected readonly _config: TConfig

Defined in: protocols/base.ts:9

ProtocolBase._config

bridge(_options): Promise<BridgeResult>

Defined in: protocols/bridge.ts:52

Sign and broadcast a bridge transfer.

BridgeOptions

Promise<BridgeResult>

IBridgeProtocol.bridge


describeActivity(_tx, _ctx): ActivityItem | null

Defined in: protocols/base.ts:24

Recognize one of this protocol’s own transactions in an address’s history and describe it for the wallet’s activity feed (“Supplied 100 USDC · Aave v3”). Return null when the transaction is not this protocol’s: the kit then asks the next module and finally falls back to send / receive / approve / contract call. Must be pure and synchronous: no network, no account state. The conformance suite feeds every module its recorded fixtures through this method.

ChainTx

DescribeActivityContext

ActivityItem | null

ProtocolBase.describeActivity


quoteBridge(_options): Promise<BridgeQuote>

Defined in: protocols/bridge.ts:53

Fees of a bridge transfer; nothing is signed.

BridgeOptions

Promise<BridgeQuote>

IBridgeProtocol.quoteBridge


protected requireSigningAccount(methodName): IWalletAccount

Defined in: protocols/base.ts:29

The account, narrowed to a signing one, or a ReadOnlyAccountError naming the caller.

string

IWalletAccount

ProtocolBase.requireSigningAccount