import { Internal } from './Internal'; export class WalletConnect { private readonly internal: Internal; constructor(internal: Internal) { this.internal = internal; } async connectOpensea(collectionName?: string): Promise { await this.connect( 'OpenSea', collectionName ? 'https://opensea.io/collection/' + collectionName : 'https://opensea.io' ); } private async connect(name: string, url: string) { await this.internal.openWalletConnect(name, url); } }