Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Fix circular dependency (#70)
Browse files Browse the repository at this point in the history
## Changes

- Fix circular dependency between index and WalletConnect.ts files.
  • Loading branch information
DOBEN authored Apr 23, 2024
2 parents e514901 + af25ea4 commit 1aa4c38
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 105 deletions.
4 changes: 4 additions & 0 deletions packages/wallet-connectors/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Fixed

- Fixed circular dependency between `index` and `WalletConnect` files.

### Added

- `WalletConnect`: `signMessage` now supports passing binary message including schema to the wallet.
Expand Down
77 changes: 8 additions & 69 deletions packages/wallet-connectors/src/WalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { WalletConnectModal, WalletConnectModalConfig } from '@walletconnect/mod
import { MobileWallet } from '@walletconnect/modal-core';
import SignClient from '@walletconnect/sign-client';
import { ISignClient, ProposalTypes, SessionTypes, SignClientTypes } from '@walletconnect/types';
import { CONCORDIUM_WALLET_CONNECT_PROJECT_ID, MAINNET, TESTNET } from '.';
import {
Network,
Schema,
Expand All @@ -36,10 +35,16 @@ import {
WalletConnectionDelegate,
WalletConnector,
} from './WalletConnection';
import {
CONCORDIUM_WALLET_CONNECT_PROJECT_ID,
DEFAULT_MOBILE_WALLETS,
FULL_WALLET_CONNECT_NAMESPACE_CONFIG, // eslint-disable-next-line @typescript-eslint/no-unused-vars
MAINNET, // eslint-disable-next-line @typescript-eslint/no-unused-vars
TESTNET, // The eslint rule is disabled because the constants MAINNET/TESTNET are used as `@linkcode` in this file.
WALLET_CONNECT_SESSION_NAMESPACE,
} from './constants';
import { UnreachableCaseError } from './error';

const WALLET_CONNECT_SESSION_NAMESPACE = 'ccd';

/**
* Describes the possible methods to invoke
*/
Expand All @@ -65,63 +70,6 @@ export type WalletConnectModalMobileWallet = MobileWallet & {
iconUrl?: string;
};

/**
* Concordium mainnet wallet for mobile described as {@linkcode WalletConnectModalMobileWallet}
*/
export const CONCORDIUM_WALLET_MAINNET = {
id: 'ConcordiumMainet',
name: 'Concordium Wallet',
links: {
native: 'concordiumwallet://',
},
iconUrl:
'data:image/webp;base64,UklGRhYJAABXRUJQVlA4WAoAAAAIAAAA9QAA9QAAVlA4IJAIAADwNwCdASr2APYAPpVKmUejIqEU2wQoNAlE9Ld+Pizr+LYWxZS/TBwLdH/K6W0R2gHuBnEX9aexL/V+gdjmAc/GkRS1VumIAPqd6Bfuvmh9edZ2MnaC/rbgdjbmZmZmZmZmZmZmZmZmZmbIZmTyXTucuirhRPGoAfpkGImqqt/3YwASWFmyG/bP9A39oE5zptUrEnIUEPxyb10xsoP3VDW/cPDwzQGMQhPiKDZ/AXJqcA+3qvnRGhVvjzWO38+JZONxLAMSQln7oacp/aGkTP2CI7U//o7VM3pR4MfkbVoOIXAsGwxsynfeCnsnsY8iVDG7KHQosBfI/xrvmdCADpYcI6NG6Jd3sQqZzsYKzIvGarc+4jFmxKnQEkcpfIZUXieXjQT64aW7tr6Vcy+BC7BftL5EN7fDuWTcCh9xPy5oX3jpEyxNGPwoCbL5y2fMA05eDBANchp+zkopFSdgf5a+S6wS5+W5s8tpOsnBgTnAcI9q0uOTEwCjYSa10TYoZpDhXAih5wReIWxxtS51BN4r9t/r+3XAjLG6TB2p8JLlG360tlj26fz2nHbnIgAAAAKIzOg/60pkb+lEZnQV5b5WU7TjXD68QwAA/vS/wEnP/oMKreuAAAAA/WfNc36Y3zMAAAAA2UAO1xjKXsqNaC5HPIM3yNL+BQ8hQt+wxmwpHDKIc3UouEzyT2lywAHIsI8P/5fMoHSq1d5n+dlw8xmDXlr7XrHtkc25rz2ueWwnEYFwfKQaJgoR1kCrRAABtudYDWl5aMRIA2UlZ0bSWrzjlb/mgBql8N3jfgtVK4F3OI2JOw+DqPiRdEjGz8i0AvNomL3KcwP3L7zRmfp2HGZv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AADEuNzIuMC0yM0otTkFRQkZIMlE3Tk9OQU80QldBN1pHQ05WTUkuMC4yLTkA',
} satisfies WalletConnectModalMobileWallet;

/**
* Concordium testnet wallet for mobile described as {@linkcode WalletConnectModalMobileWallet}
*/
export const CONCORDIUM_WALLET_TESTNET = {
id: 'ConcordiumTestnet',
name: 'Concordium Wallet (Testnet)',
links: {
native: 'concordiumwallettest://',
},
iconUrl:
'data:image/webp;base64,UklGRhYJAABXRUJQVlA4WAoAAAAIAAAA9QAA9QAAVlA4IJAIAADwNwCdASr2APYAPpVKmUejIqEU2wQoNAlE9Ld+Pizr+LYWxZS/TBwLdH/K6W0R2gHuBnEX9aexL/V+gdjmAc/GkRS1VumIAPqd6Bfuvmh9edZ2MnaC/rbgdjbmZmZmZmZmZmZmZmZmZmbIZmTyXTucuirhRPGoAfpkGImqqt/3YwASWFmyG/bP9A39oE5zptUrEnIUEPxyb10xsoP3VDW/cPDwzQGMQhPiKDZ/AXJqcA+3qvnRGhVvjzWO38+JZONxLAMSQln7oacp/aGkTP2CI7U//o7VM3pR4MfkbVoOIXAsGwxsynfeCnsnsY8iVDG7KHQosBfI/xrvmdCADpYcI6NG6Jd3sQqZzsYKzIvGarc+4jFmxKnQEkcpfIZUXieXjQT64aW7tr6Vcy+BC7BftL5EN7fDuWTcCh9xPy5oX3jpEyxNGPwoCbL5y2fMA05eDBANchp+zkopFSdgf5a+S6wS5+W5s8tpOsnBgTnAcI9q0uOTEwCjYSa10TYoZpDhXAih5wReIWxxtS51BN4r9t/r+3XAjLG6TB2p8JLlG360tlj26fz2nHbnIgAAAAKIzOg/60pkb+lEZnQV5b5WU7TjXD68QwAA/vS/wEnP/oMKreuAAAAA/WfNc36Y3zMAAAAA2UAO1xjKXsqNaC5HPIM3yNL+BQ8hQt+wxmwpHDKIc3UouEzyT2lywAHIsI8P/5fMoHSq1d5n+dlw8xmDXlr7XrHtkc25rz2ueWwnEYFwfKQaJgoR1kCrRAABtudYDWl5aMRIA2UlZ0bSWr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AAASUkqAAgAAAABAGmHBAABAAAAGgAAAAAAAAABAIaSBwAyAAAALAAAAAAAAABBU0NJSQAAADEuNzIuMC0yM0otTkFRQkZIMlE3Tk9OQU80QldBN1pHQ05WTUkuMC4yLTkA',
} satisfies WalletConnectModalMobileWallet;

/**
* CryptoX mainnet wallet for mobile described as {@linkcode WalletConnectModalMobileWallet}
*/
export const CRYPTO_X_WALLET_MAINNET = {
id: 'CryptoXMainnet',
name: 'CryptoX Wallet',
links: {
native: 'cryptox://',
},
iconUrl:
'data:image/webp;base64,UklGRq4IAABXRUJQVlA4WAoAAAAIAAAA9QAA9QAAVlA4ICgIAAAQOgCdASr2APYAPpVKoEkjIqOSyUxoPAlE9LdwtsRcx/9gEtbFXvJX9o7XP8ry3Exkinwu7z+AF+K/03dWQAfVX0QplKp3QA8Pf6o8/X1n7B/RmGuEjujA2X94H9Ils4eF/eB/TLc1bMOYHponzYnW45tSVbKO4s6aWDbnZBN8etJtH6RwKvug93bxlxPcj46z4/joqBPQeDnhb/V5/qjNeRkPPUHB7yb9N5wUCGnBATC8NnVBCY+A6kfon3gc6wFKZLzZe74G3EGkWnsvHeB+1vbOAXnGDl2WrZY184H2KkfqjNeSoAyzI9bkAKXW8RdUglOxcqDgkw2HdFoFe1gf39eUH2ZcHmWqaEEC5Q4zwqksQgadEONzedgasd2q0UCiLbZiPyuLP79FTWFSDveMUrcgA7Rk2bV+ifeCn8NvX8QVPVu6YRhgPGc+umJoz3u0zP7+c1OXBPhgbX9Xs70D70p/2A/7P91eHdkPWNYB+LpPGMmfeH6LmrWyE+uv8ABHOCEyupPOX1P3GtTGrNUmeP1QaaxV3wb27lEhZ5AVG94m9djgcCF6RwIyAKmE4Frmzhdf7AUkxK3hSpwU9eCp4ddjWvHxA1JH6p6zh4X5DR+qes4eF/eBGAD+/GOOD0ClKcAAAqRdPxubKr/L584gM2R1GGUPwp6dQs3fqadFiNS0+UXHk48GXr/0CA1vPw94tlA/jDnPSJDk6HOAAsSyiUDWyNi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U0U1UFhCVDRQNkdFLjAuMi01AA==',
} satisfies WalletConnectModalMobileWallet;

/**
* CryptoX testnet wallet for mobile described as {@linkcode WalletConnectModalMobileWallet}
*/
export const CRYPTO_X_WALLET_TESTNET = {
id: 'CryptoXTestnet',
name: 'CryptoX Wallet (Testnet)',
links: {
native: 'cryptoXStage://',
},
iconUrl:
'data:image/webp;base64,UklGRq4IAABXRUJQVlA4WAoAAAAIAAAA9QAA9QAAVlA4ICgIAAAQOgCdASr2APYAPpVKoEkjIqOSyUxoPAlE9LdwtsRcx/9gEtbFXvJX9o7XP8ry3Exkinwu7z+AF+K/03dWQAfVX0QplKp3QA8Pf6o8/X1n7B/RmGuEjujA2X94H9Ils4eF/eB/TLc1bMOYHponzYnW45tSVbKO4s6aWDbnZBN8etJtH6RwKvug93bxlxPcj46z4/joqBPQeDnhb/V5/qjNeRkPPUHB7yb9N5wUCGnBATC8NnVBCY+A6kfon3gc6wFKZLzZe74G3EGkWnsvHeB+1vbOAXnGDl2WrZY184H2KkfqjNeSoAyzI9bkAKXW8RdUglOxcqDgkw2HdFoFe1gf39eUH2ZcHmWqaEEC5Q4zwqksQgadEONzedgasd2q0UCiLbZiPyuLP79FTWFSDveMUrcgA7Rk2bV+ifeCn8NvX8QVPVu6YRhgPGc+umJoz3u0zP7+c1OXBPhgbX9Xs70D70p/2A/7P91eHdkPWNYB+LpPGMmfeH6LmrWyE+uv8ABHOCEyupPOX1P3GtTGrNUmeP1QaaxV3wb27lEhZ5AVG94m9djgcCF6RwIyAKmE4Frmzhdf7AUkxK3hSpwU9eCp4ddjWvHxA1JH6p6zh4X5DR+qes4eF/eBGAD+/GOOD0ClKcAAAqRdPxubKr/L584gM2R1GGUPwp6dQs3fqadFiNS0+UXHk48GXr/0CA1vPw94tlA/jDnPSJDk6HOAAsSyiUDWyNiAZjhMzhwR1ihKcRvC6+5pZKddwGBppAqmkWV7DxF3fBR9A5Eu/M2jHwlFef+hNvWyPtYroh/q+C/WB6QfX+YxIQAjlZ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UM_WALLET_TESTNET, CRYPTO_X_WALLET_TESTNET],
[MAINNET.name]: [CONCORDIUM_WALLET_MAINNET, CRYPTO_X_WALLET_MAINNET],
};

/**
* Creates a {@linkcode WalletConnectModalConfig}.
*
Expand Down Expand Up @@ -495,15 +443,6 @@ export type WalletConnectNamespaceConfig = {
events: WalletConnectEvent[];
};

export const FULL_WALLET_CONNECT_NAMESPACE_CONFIG: WalletConnectNamespaceConfig = {
methods: [
WalletConnectMethod.SignMessage,
WalletConnectMethod.SignAndSendTransaction,
WalletConnectMethod.RequestVerifiablePresentation,
],
events: [WalletConnectEvent.AccountsChanged, WalletConnectEvent.ChainChanged],
};

/**
* Implementation of {@link WalletConnector} for WalletConnect v2.
*
Expand Down
Loading

0 comments on commit 1aa4c38

Please sign in to comment.