import { RelayerTypes } from "@walletconnect/types" ; import { RELAY_JSONRPC } from "@walletconnect/relay-api" ; export const RELAYER_DEFAULT_PROTOCOL = "waku" ; export function getRelayProtocolName ( opts ? ) { return opts ?. relay || { protocol : RELAYER_DEFAULT_PROTOCOL } ; } export function getRelayProtocolApi ( protocol ) { const jsonrpc = RELAY_JSONRPC [ protocol ] ; if ( typeof jsonrpc === "undefined" ) { throw new Error ( `Relay Protocol not supported: ${ protocol }` ) ; } return jsonrpc ; }