Skip to content

@armada/sdk / index / isCrossChainUnshield

Function: isCrossChainUnshield() ​

isCrossChainUnshield(boundParams, yieldAdapterAddress): boolean

Defined in: src/tx/preflight.ts:208

Whether a plan is a cross-chain (CCTP) unshield, from what its proof commits: an adapt binding (adaptParams non-zero) to anything but the yield adapter. The single classification preflight uses — it doesn't depend on the caller having passed the decoded binding. With yieldAdapterAddress unset, a yield call counts as cross-chain (configure pool.wrappers.yieldAdapter to tell them apart).

Parameters ​

boundParams ​

Pick<DecodedBoundParams, "adaptContract" | "adaptParams">

yieldAdapterAddress ​

string | undefined

Returns ​

boolean