Package-level declarations

Types

Link copied to clipboard
object Caip

The CAIP identifiers WalletConnect speaks, and the one place Canton party ids are reconciled with them.

Link copied to clipboard
class CantonWalletConnect(handler: DappRequestHandler, networkId: String)

The wallet side of the WalletConnect transport for CIP-0103.

Link copied to clipboard
data class WcRequest(val topic: String, val requestId: Long, val chainId: String, val method: String, val params: JsonElement? = null, val expiresAt: Instant? = null)

One inbound WalletConnect session_request, normalised.

Link copied to clipboard
sealed interface WcResponse

The adapter's answer to a WcRequest — exactly one of success or error.

Link copied to clipboard
data class WcSessionNamespaces(val chains: List<String>, val accounts: List<String>, val methods: List<String>, val events: List<String>)

The namespaces a session is approved with: the chain(s), the CAIP-10 accounts shared, the methods answered, and the events emitted. A Reown delegate turns this into the Wallet.Params.SessionApprove namespaces.