@tomo-inc/wallet-adaptor-base 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +302 -426
- package/dist/index.d.cts +85 -73
- package/dist/index.d.ts +85 -73
- package/dist/index.js +302 -427
- package/package.json +2 -2
- package/src/index.ts +12 -2
- package/src/type.ts +3 -2
- package/src/wallet-api/balance.ts +9 -0
- package/src/wallet-api/connect.ts +21 -0
- package/src/wallet-api/sign-in.ts +4 -0
- package/src/wallet-api/sign-message.ts +11 -2
- package/src/wallets/Wallet.ts +5 -0
- package/src/wallets/default/abWallet/abWallet.ts +19 -0
- package/src/wallets/default/backpackWallet/backpackWallet.ts +2 -3
- package/src/wallets/default/berasigWallet/berasigWallet.ts +2 -3
- package/src/wallets/default/binanceWallet/binanceWallet.ts +2 -3
- package/src/wallets/default/bitgetWallet/bitgetWallet.ts +2 -3
- package/src/wallets/default/bitskiWallet/bitskiWallet.ts +2 -3
- package/src/wallets/default/bitverseWallet/bitverseWallet.ts +2 -3
- package/src/wallets/default/bloomWallet/bloomWallet.ts +2 -3
- package/src/wallets/default/braveWallet/braveWallet.ts +2 -3
- package/src/wallets/default/bybitWallet/bybitWallet.ts +2 -3
- package/src/wallets/default/clvWallet/clvWallet.ts +2 -3
- package/src/wallets/default/coin98Wallet/coin98Wallet.ts +2 -3
- package/src/wallets/default/coinbaseWallet/coinbaseWallet.ts +2 -3
- package/src/wallets/default/compassWallet/compassWallet.ts +2 -3
- package/src/wallets/default/coreWallet/coreWallet.ts +2 -3
- package/src/wallets/default/ctrlWallet/ctrlWallet.ts +2 -3
- package/src/wallets/default/dawnWallet/dawnWallet.ts +2 -3
- package/src/wallets/default/desigWallet/desigWallet.ts +2 -3
- package/src/wallets/default/enkryptWallet/enkryptWallet.ts +2 -3
- package/src/wallets/default/foxWallet/foxWallet.ts +2 -3
- package/src/wallets/default/frameWallet/frameWallet.ts +2 -3
- package/src/wallets/default/gateWallet/gateWallet.ts +2 -3
- package/src/wallets/default/imTokenWallet/imTokenWallet.ts +2 -3
- package/src/wallets/default/injectedWallet/injectedWallet.ts +2 -3
- package/src/wallets/default/iopayWallet/iopayWallet.ts +2 -3
- package/src/wallets/default/kaiaWallet/kaiaWallet.ts +2 -3
- package/src/wallets/default/kaikasWallet/kaikasWallet.ts +2 -3
- package/src/wallets/default/krakenWallet/krakenWallet.ts +2 -3
- package/src/wallets/default/kresusWallet/kresusWallet.ts +2 -3
- package/src/wallets/default/ledgerWallet/ledgerWallet.ts +2 -3
- package/src/wallets/default/magicEdenWallet/magicEdenWallet.ts +2 -3
- package/src/wallets/default/mathWallet/mathWallet.ts +2 -3
- package/src/wallets/default/metaMaskWallet/metaMaskWallet.ts +2 -3
- package/src/wallets/default/myDogeWallet/mydogeWallet.ts +5 -3
- package/src/wallets/default/nestWallet/nestWallet.ts +2 -3
- package/src/wallets/default/novaWallet/novaWallet.ts +2 -3
- package/src/wallets/default/oktoWallet/oktoWallet.ts +2 -3
- package/src/wallets/default/okxWallet/okxWallet.ts +2 -3
- package/src/wallets/default/omniWallet/omniWallet.ts +2 -3
- package/src/wallets/default/oneInchWallet/oneInchWallet.ts +2 -3
- package/src/wallets/default/oneKeyWallet/oneKeyWallet.ts +2 -3
- package/src/wallets/default/paraSwapWallet/paraswapWallet.ts +2 -3
- package/src/wallets/default/petraWallet/petraWallet.ts +2 -3
- package/src/wallets/default/phantomWallet/phantomWallet.ts +2 -3
- package/src/wallets/default/rabbyWallet/rabbyWallet.ts +2 -3
- package/src/wallets/default/rainbowWallet/rainbowWallet.ts +2 -3
- package/src/wallets/default/ramperWallet/ramperWallet.ts +2 -3
- package/src/wallets/default/readyWallet/readyWallet.ts +2 -3
- package/src/wallets/default/roninWallet/roninWallet.ts +2 -3
- package/src/wallets/default/safeWallet/safeWallet.ts +2 -3
- package/src/wallets/default/safeheronWallet/safeheronWallet.ts +2 -3
- package/src/wallets/default/safepalWallet/safepalWallet.ts +2 -3
- package/src/wallets/default/seifWallet/seifWallet.ts +2 -3
- package/src/wallets/default/solflareWallet/solflareWallet.ts +2 -3
- package/src/wallets/default/subWallet/subWallet.ts +2 -3
- package/src/wallets/default/tahoWallet/tahoWallet.ts +2 -3
- package/src/wallets/default/talismanWallet/talismanWallet.ts +2 -3
- package/src/wallets/default/tokenPocketWallet/tokenPocketWallet.ts +2 -3
- package/src/wallets/default/tokenaryWallet/tokenaryWallet.ts +2 -3
- package/src/wallets/default/trezorWallet/trezorWallet.ts +2 -3
- package/src/wallets/default/trustWallet/trustWallet.ts +2 -3
- package/src/wallets/default/uniswapWallet/uniswapWallet.ts +2 -3
- package/src/wallets/default/universalProfilesWallet/universalProfilesWallet.ts +2 -3
- package/src/wallets/default/valoraWallet/valoraWallet.ts +2 -3
- package/src/wallets/default/walletConnectWallet/walletConnectWallet.ts +2 -3
- package/src/wallets/default/wigwamWallet/wigwamWallet.ts +2 -3
- package/src/wallets/default/xPortalWallet/xPortalWallet.ts +2 -3
- package/src/wallets/default/zealWallet/zealWallet.ts +2 -3
- package/src/wallets/default/zerionWallet/zerionWallet.ts +2 -3
- package/src/wallets/default/zilPayWallet/zilPayWallet.ts +2 -3
- package/src/wallets/defaultConnectors.ts +80 -69
- package/src/wallets/detector.ts +16 -1
- package/src/wallets/index.ts +2 -0
- package/src/wallets/wallet-walletconnect.ts +2 -2
- package/src/wallets/default/backpackWallet/backpackWallet.svg +0 -1
- package/src/wallets/default/berasigWallet/berasigWallet.svg +0 -1
- package/src/wallets/default/binanceWallet/binanceWallet.svg +0 -1
- package/src/wallets/default/bitgetWallet/bitgetWallet.svg +0 -4
- package/src/wallets/default/bitskiWallet/bitskiWallet.svg +0 -1
- package/src/wallets/default/bitverseWallet/bitverseWallet.svg +0 -1
- package/src/wallets/default/bloomWallet/bloomWallet.svg +0 -1
- package/src/wallets/default/braveWallet/braveWallet.svg +0 -1
- package/src/wallets/default/bybitWallet/bybitWallet.svg +0 -1
- package/src/wallets/default/clvWallet/clvWallet.svg +0 -1
- package/src/wallets/default/coin98Wallet/coin98Wallet.svg +0 -1
- package/src/wallets/default/coinbaseWallet/coinbaseWallet.svg +0 -4
- package/src/wallets/default/compassWallet/compassWallet.svg +0 -1
- package/src/wallets/default/coreWallet/coreWallet.svg +0 -7
- package/src/wallets/default/ctrlWallet/ctrlWallet.svg +0 -13
- package/src/wallets/default/dawnWallet/dawnWallet.svg +0 -23
- package/src/wallets/default/desigWallet/desigWallet.svg +0 -1
- package/src/wallets/default/enkryptWallet/enkryptWallet.svg +0 -10
- package/src/wallets/default/foxWallet/foxWallet.svg +0 -6
- package/src/wallets/default/frameWallet/frameWallet.svg +0 -1
- package/src/wallets/default/gateWallet/gateWallet.svg +0 -1
- package/src/wallets/default/imTokenWallet/imTokenWallet.svg +0 -10
- package/src/wallets/default/injectedWallet/injectedWallet.svg +0 -1
- package/src/wallets/default/iopayWallet/iopayWallet.svg +0 -1
- package/src/wallets/default/kaiaWallet/kaiaWallet.svg +0 -16
- package/src/wallets/default/kaikasWallet/kaikasWallet.svg +0 -1
- package/src/wallets/default/krakenWallet/krakenWallet.svg +0 -1
- package/src/wallets/default/kresusWallet/kresusWallet.svg +0 -1
- package/src/wallets/default/ledgerWallet/ledgerWallet.svg +0 -1
- package/src/wallets/default/magicEdenWallet/magicEden.svg +0 -1
- package/src/wallets/default/mathWallet/mathWallet.svg +0 -9
- package/src/wallets/default/metaMaskWallet/metaMaskWallet.svg +0 -32
- package/src/wallets/default/myDogeWallet/mydogeWallet.svg +0 -190
- package/src/wallets/default/nestWallet/nestWallet.svg +0 -1
- package/src/wallets/default/novaWallet/novaWallet.svg +0 -19
- package/src/wallets/default/oktoWallet/oktoWallet.svg +0 -1
- package/src/wallets/default/okxWallet/okxWallet.svg +0 -1
- package/src/wallets/default/omniWallet/omniWallet.svg +0 -5
- package/src/wallets/default/oneInchWallet/oneInchWallet.svg +0 -30
- package/src/wallets/default/oneKeyWallet/oneKeyWallet.svg +0 -1
- package/src/wallets/default/paraSwapWallet/paraSwapWallet.svg +0 -1
- package/src/wallets/default/petraWallet/petraWallet.svg +0 -5
- package/src/wallets/default/phantomWallet/phantomWallet.svg +0 -1
- package/src/wallets/default/rabbyWallet/rabbyWallet.svg +0 -1
- package/src/wallets/default/rainbowWallet/rainbowWallet.svg +0 -54
- package/src/wallets/default/ramperWallet/ramperWallet.svg +0 -1
- package/src/wallets/default/readyWallet/readyWallet.svg +0 -4
- package/src/wallets/default/roninWallet/roninWallet.svg +0 -1
- package/src/wallets/default/safeWallet/safeWallet.svg +0 -6
- package/src/wallets/default/safeheronWallet/safeheronWallet.svg +0 -1
- package/src/wallets/default/safepalWallet/safepalWallet.svg +0 -1
- package/src/wallets/default/seifWallet/seifWallet.svg +0 -12
- package/src/wallets/default/solflareWallet/solflareWallet.svg +0 -11
- package/src/wallets/default/subWallet/subWallet.svg +0 -1
- package/src/wallets/default/tahoWallet/tahoWallet.svg +0 -1
- package/src/wallets/default/talismanWallet/talismanWallet.svg +0 -1
- package/src/wallets/default/tokenPocketWallet/tokenPocketWallet.svg +0 -1
- package/src/wallets/default/tokenaryWallet/tokenaryWallet.svg +0 -1
- package/src/wallets/default/trezorWallet/trezorWallet.svg +0 -7
- package/src/wallets/default/trustWallet/trustWallet.svg +0 -1
- package/src/wallets/default/uniswapWallet/uniswapWallet.svg +0 -1
- package/src/wallets/default/universalProfilesWallet/universalProfilesWallet.svg +0 -15
- package/src/wallets/default/valoraWallet/valoraWallet.svg +0 -1
- package/src/wallets/default/walletConnectWallet/walletConnectWallet.svg +0 -4
- package/src/wallets/default/wigwamWallet/wigwamWallet.svg +0 -9
- package/src/wallets/default/xPortalWallet/xPortalWallet.svg +0 -6
- package/src/wallets/default/zealWallet/zealWallet.svg +0 -1
- package/src/wallets/default/zerionWallet/zerionWallet.svg +0 -1
- package/src/wallets/default/zilPayWallet/zilPayWallet.svg +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomo-inc/wallet-adaptor-base",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"author": "tomo.inc",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@solana/web3.js": "^1.98.0",
|
|
23
23
|
"@wallet-standard/core": "^1.1.0",
|
|
24
24
|
"viem": "2.21.54",
|
|
25
|
-
"@tomo-inc/wallet-connect-protocol": "0.0.
|
|
25
|
+
"@tomo-inc/wallet-connect-protocol": "0.0.9"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^20.0.0",
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptorChainType, Connector, WalletConnectorType } from "./type";
|
|
2
2
|
import { isMobile } from "./utils/isMobile";
|
|
3
3
|
import { uniqueConnectors } from "./utils/utils";
|
|
4
|
-
import { defaultConnectors } from "./wallets/defaultConnectors";
|
|
4
|
+
import { defaultConnectors, getDefaultConnectors } from "./wallets/defaultConnectors";
|
|
5
5
|
import { connectorDector, supportedWalletConfigTypes, walletConfigAdapter } from "./wallets/detector";
|
|
6
6
|
import { WagmiWalletConfig, WalletConfig } from "./wallets/Wallet";
|
|
7
7
|
import { eip6963Wallets } from "./wallets/wallet-eip6963";
|
|
@@ -11,6 +11,8 @@ export * from "./type";
|
|
|
11
11
|
export { setWalletConnectConfig };
|
|
12
12
|
export type { WalletConfig };
|
|
13
13
|
|
|
14
|
+
const walletBaseUrl = "https://embedded-wallet.tomo.inc";
|
|
15
|
+
|
|
14
16
|
//wallets list
|
|
15
17
|
export const TomoDefaultConnectors = defaultConnectors
|
|
16
18
|
.filter((wallet) => wallet?.info?.links?.chrome_install !== undefined)
|
|
@@ -20,10 +22,16 @@ export async function loadConnectors({
|
|
|
20
22
|
chainType = "all",
|
|
21
23
|
recommonedConnectors,
|
|
22
24
|
connectorTypes = [],
|
|
25
|
+
options = {
|
|
26
|
+
baseUrl: walletBaseUrl,
|
|
27
|
+
},
|
|
23
28
|
}: {
|
|
24
29
|
chainType?: AdaptorChainType;
|
|
25
30
|
recommonedConnectors?: (WalletConfig | WagmiWalletConfig)[];
|
|
26
31
|
connectorTypes?: WalletConnectorType[];
|
|
32
|
+
options?: {
|
|
33
|
+
baseUrl?: string;
|
|
34
|
+
};
|
|
27
35
|
}): Promise<{
|
|
28
36
|
all: Connector[];
|
|
29
37
|
recommoned: Connector[];
|
|
@@ -37,7 +45,7 @@ export async function loadConnectors({
|
|
|
37
45
|
};
|
|
38
46
|
|
|
39
47
|
// WalletConnect wallets from WalletConnect Cloud Explorer API
|
|
40
|
-
const wcWallets = await walletConnectWallets();
|
|
48
|
+
const wcWallets = await walletConnectWallets(options.baseUrl!);
|
|
41
49
|
|
|
42
50
|
let recommonedConnectorsDetected: Connector[] = [];
|
|
43
51
|
if (recommonedWalletConfigs.length > 0) {
|
|
@@ -54,6 +62,8 @@ export async function loadConnectors({
|
|
|
54
62
|
});
|
|
55
63
|
}
|
|
56
64
|
|
|
65
|
+
const defaultConnectors = getDefaultConnectors(options.baseUrl!);
|
|
66
|
+
|
|
57
67
|
const connectorsFromConfig = uniqueConnectors([...recommonedConnectorsDetected, ...defaultConnectors]);
|
|
58
68
|
|
|
59
69
|
// Include WalletConnect wallets along with other detected wallets
|
package/src/type.ts
CHANGED
|
@@ -15,9 +15,9 @@ export enum ProviderChainType {
|
|
|
15
15
|
|
|
16
16
|
export type WalletConnectorType = "wagmi" | "tomo";
|
|
17
17
|
|
|
18
|
-
export type AdaptorChainType = "all" | "evm" | "solana" | "aptos";
|
|
18
|
+
export type AdaptorChainType = "all" | "evm" | "solana" | "aptos" | "dogecoin";
|
|
19
19
|
|
|
20
|
-
export const SupportedChainTypes = ["evm", "solana", "aptos"];
|
|
20
|
+
export const SupportedChainTypes = ["evm", "solana", "aptos", "dogecoin"];
|
|
21
21
|
|
|
22
22
|
export interface WalletInfo {
|
|
23
23
|
uuid: string;
|
|
@@ -66,6 +66,7 @@ export interface Connector {
|
|
|
66
66
|
evm?: ConnectorProvider;
|
|
67
67
|
solana?: ConnectorProvider;
|
|
68
68
|
aptos?: ConnectorProvider;
|
|
69
|
+
dogecoin?: ConnectorProvider;
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
|
|
@@ -94,5 +94,14 @@ export const getBalance = async (
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
if (chainType === "dogecoin") {
|
|
98
|
+
const res: { balance: number } = await provider.getBalance();
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
total: Number(res?.balance || "0") || 0,
|
|
102
|
+
tokenInfo,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
97
106
|
throw new Error(`getBalance not supported in ${chainType}`);
|
|
98
107
|
};
|
|
@@ -85,6 +85,19 @@ export const connect = async (
|
|
|
85
85
|
// }
|
|
86
86
|
network = "mainnet";
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
if (chainType === "dogecoin") {
|
|
90
|
+
if (provider?.connect) {
|
|
91
|
+
const res = await provider.connect();
|
|
92
|
+
address = res?.address || "";
|
|
93
|
+
} else if (provider?.requestAccounts) {
|
|
94
|
+
const accounts = await provider.requestAccounts();
|
|
95
|
+
address = accounts?.[0] || "";
|
|
96
|
+
} else {
|
|
97
|
+
throw new Error("connect not supported in dogecoin");
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
88
101
|
console.log("connect res:", chainType, provider, { address, chainId, network });
|
|
89
102
|
return { address, chainId, network };
|
|
90
103
|
};
|
|
@@ -122,6 +135,14 @@ export const disconnect = async (walletOptions: WalletOptions): Promise<boolean>
|
|
|
122
135
|
return true;
|
|
123
136
|
}
|
|
124
137
|
}
|
|
138
|
+
|
|
139
|
+
if (chainType === "dogecoin") {
|
|
140
|
+
if (provider?.disconnect) {
|
|
141
|
+
await provider.disconnect();
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
125
146
|
return false;
|
|
126
147
|
};
|
|
127
148
|
|
|
@@ -16,11 +16,11 @@ const params = {
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
export const signMessage = async (
|
|
19
|
-
data: { message: string; nonce
|
|
19
|
+
data: { message: string; nonce?: string; type?: string },
|
|
20
20
|
walletOptions: WalletOptions & { isInstalled?: boolean },
|
|
21
21
|
): Promise<string> => {
|
|
22
22
|
const { chainType, account, provider, walletInfo, isInstalled } = walletOptions;
|
|
23
|
-
const { message, nonce } = data;
|
|
23
|
+
const { message, nonce, type = "" } = data;
|
|
24
24
|
const isMobileDevice = isMobile();
|
|
25
25
|
const isWalletConnect = walletInfo?.uuid === "walletConnect";
|
|
26
26
|
|
|
@@ -114,6 +114,15 @@ export const signMessage = async (
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
if (chainType === "dogecoin") {
|
|
118
|
+
try {
|
|
119
|
+
const res = await provider.requestSignedMessage({ message, type });
|
|
120
|
+
return res?.signedMessage || "";
|
|
121
|
+
} catch (error) {
|
|
122
|
+
throw error as Error;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
117
126
|
throw new Error(`signMessage not supported in ${chainType}`);
|
|
118
127
|
};
|
|
119
128
|
|
package/src/wallets/Wallet.ts
CHANGED
|
@@ -12,10 +12,15 @@ export type WalletConfig = {
|
|
|
12
12
|
namespace?: string;
|
|
13
13
|
flag?: string;
|
|
14
14
|
};
|
|
15
|
+
dogecoin?: {
|
|
16
|
+
namespace?: string;
|
|
17
|
+
flag?: string;
|
|
18
|
+
};
|
|
15
19
|
icon: string;
|
|
16
20
|
iconAccent?: string;
|
|
17
21
|
iconBackground: string;
|
|
18
22
|
installed?: boolean;
|
|
23
|
+
mobileUserAgent?: string;
|
|
19
24
|
deeplink?: string;
|
|
20
25
|
downloadUrls?: {
|
|
21
26
|
android?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WalletConfig } from "../../Wallet";
|
|
2
|
+
|
|
3
|
+
export const abWallet = (baseUrl: string): WalletConfig => {
|
|
4
|
+
return {
|
|
5
|
+
id: "abwallet",
|
|
6
|
+
name: "ABWallet",
|
|
7
|
+
namespace: "abwallet.ethereum",
|
|
8
|
+
rdns: "org.ab",
|
|
9
|
+
icon: `${baseUrl}/abWallet.svg`,
|
|
10
|
+
iconBackground: "#2b6be3",
|
|
11
|
+
mobileUserAgent: "ABWallet",
|
|
12
|
+
downloadUrls: {
|
|
13
|
+
android: "https://play.google.com/store/apps/details?id=org.ab.abwallet.android.release",
|
|
14
|
+
ios: "https://apps.apple.com/us/app/ab-wallet/id6745787849",
|
|
15
|
+
mobile: "https://www.ab.org/zh/abwallet/",
|
|
16
|
+
qrCode: "https://www.ab.org/zh/abwallet/",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./backpackWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const backpackWallet = (): WalletConfig => {
|
|
3
|
+
export const backpackWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "backpack",
|
|
7
6
|
name: "Backpack",
|
|
8
7
|
namespace: "backpack.ethereum",
|
|
9
8
|
rdns: "app.backpack.mobile",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/backpackWallet.svg`,
|
|
11
10
|
iconBackground: "#0C0D10",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
android: "https://play.google.com/store/apps/details?id=app.backpack.mobile",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./berasigWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const berasigWallet = (): WalletConfig => {
|
|
3
|
+
export const berasigWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "berasig",
|
|
7
6
|
name: "BeraSig",
|
|
8
7
|
namespace: "berasig.ethereum",
|
|
9
8
|
rdns: "app.berasig",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/berasigWallet.svg`,
|
|
11
10
|
iconBackground: "#ffffff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
android: "https://play.google.com/store/apps/details?id=io.berasig.ios",
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { isAndroid } from "../../../utils/isMobile";
|
|
2
2
|
import type { WalletConfig } from "../../Wallet";
|
|
3
|
-
import icon from "./binanceWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const binanceWallet = (): WalletConfig => {
|
|
4
|
+
export const binanceWallet = (baseUrl: string): WalletConfig => {
|
|
6
5
|
return {
|
|
7
6
|
id: "binance",
|
|
8
7
|
name: "Binance Wallet",
|
|
9
8
|
namespace: "binancew3w.isExtension",
|
|
10
9
|
flag: "isBinance",
|
|
11
10
|
rdns: "com.binance.wallet",
|
|
12
|
-
icon
|
|
11
|
+
icon: `${baseUrl}/binanceWallet.svg`,
|
|
13
12
|
iconBackground: "#000000",
|
|
14
13
|
downloadUrls: {
|
|
15
14
|
android: "https://play.google.com/store/apps/details?id=com.binance.dev",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./bitgetWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const bitgetWallet = (): WalletConfig => {
|
|
4
|
+
export const bitgetWallet = (baseUrl: string): WalletConfig => {
|
|
6
5
|
return {
|
|
7
6
|
id: "bitget",
|
|
8
7
|
name: "Bitget Wallet",
|
|
@@ -14,7 +13,7 @@ export const bitgetWallet = (): WalletConfig => {
|
|
|
14
13
|
namespace: "bitkeep.aptos",
|
|
15
14
|
},
|
|
16
15
|
rdns: "com.bitget.web3",
|
|
17
|
-
icon
|
|
16
|
+
icon: `${baseUrl}/bitgetWallet.svg`,
|
|
18
17
|
iconAccent: "#f6851a",
|
|
19
18
|
iconBackground: "#fff",
|
|
20
19
|
downloadUrls: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./bitskiWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const bitskiWallet = (): WalletConfig => ({
|
|
3
|
+
export const bitskiWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "bitski",
|
|
6
5
|
name: "Bitski",
|
|
7
6
|
namespace: "",
|
|
8
7
|
flag: "isBitski",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/bitskiWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
chrome: "https://chrome.google.com/webstore/detail/bitski/feejiigddaafeojfddjjlmfkabimkell",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./bitverseWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const bitverseWallet = (): WalletConfig => ({
|
|
3
|
+
export const bitverseWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "bitverse",
|
|
6
5
|
name: "Bitverse Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/bitverseWallet.svg`,
|
|
9
8
|
iconBackground: "#171728",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
android: "https://play.google.com/store/apps/details?id=com.bitverse.app&pli=1",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./bloomWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const bloomWallet = (): WalletConfig => ({
|
|
3
|
+
export const bloomWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "bloom",
|
|
6
5
|
name: "Bloom Wallet",
|
|
7
6
|
iconBackground: "#000",
|
|
8
7
|
iconAccent: "#000",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/bloomWallet.svg`,
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
desktop: "https://bloomwallet.io/",
|
|
12
11
|
},
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./braveWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const braveWallet = (): WalletConfig => ({
|
|
3
|
+
export const braveWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "brave",
|
|
6
5
|
name: "Brave Wallet",
|
|
7
6
|
namespace: "",
|
|
8
7
|
flag: "isBraveWallet",
|
|
9
8
|
rdns: "com.brave.wallet",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/braveWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
// We're opting not to provide a download prompt if Brave isn't the current
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./bybitWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const bybitWallet = (): WalletConfig => {
|
|
3
|
+
export const bybitWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "bybit",
|
|
7
6
|
name: "Bybit Wallet",
|
|
8
7
|
namespace: "bybitWallet",
|
|
9
8
|
rdns: "com.bybit",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/bybitWallet.svg`,
|
|
11
10
|
iconBackground: "#000000",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./clvWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const clvWallet = (): WalletConfig => {
|
|
3
|
+
export const clvWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "clv",
|
|
7
6
|
name: "CLV",
|
|
8
7
|
namespace: "clover",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/clvWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
iconAccent: "#BDFDE2",
|
|
12
11
|
downloadUrls: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./coin98Wallet.svg";
|
|
3
2
|
|
|
4
|
-
export const coin98Wallet = (): WalletConfig => {
|
|
3
|
+
export const coin98Wallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "coin98",
|
|
7
6
|
name: "Coin98 Wallet",
|
|
8
7
|
namespace: "coin98.provider",
|
|
9
8
|
flag: "isCoin98",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/coin98Wallet.svg`,
|
|
11
10
|
iconAccent: "#CDA349",
|
|
12
11
|
iconBackground: "#fff",
|
|
13
12
|
rdns: "com.coin98",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./coinbaseWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const coinbaseWallet = (): WalletConfig => {
|
|
3
|
+
export const coinbaseWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "coinbase",
|
|
7
6
|
name: "Coinbase Wallet",
|
|
8
7
|
namespace: "",
|
|
9
8
|
flag: "isCoinbaseWallet",
|
|
10
9
|
rdns: "com.coinbase.wallet",
|
|
11
|
-
icon
|
|
10
|
+
icon: `${baseUrl}/coinbaseWallet.svg`,
|
|
12
11
|
iconAccent: "#2c5ff6",
|
|
13
12
|
iconBackground: "#2c5ff6",
|
|
14
13
|
downloadUrls: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./compassWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const compassWallet = (): WalletConfig => {
|
|
3
|
+
export const compassWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "compass",
|
|
7
6
|
name: "Compass Wallet",
|
|
8
7
|
namespace: "compassEvm",
|
|
9
8
|
rdns: "io.leapwallet.CompassWallet",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/compassWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
chrome: "https://chromewebstore.google.com/detail/compass-wallet-for-sei/anokgmphncpekkhclmingpimjmcooifb",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./coreWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const coreWallet = (): WalletConfig => {
|
|
3
|
+
export const coreWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "core",
|
|
7
6
|
name: "Core",
|
|
8
7
|
namespace: "avalanche",
|
|
9
8
|
flag: "isAvalanche",
|
|
10
9
|
rdns: "app.core.extension",
|
|
11
|
-
icon
|
|
10
|
+
icon: `${baseUrl}/coreWallet.svg`,
|
|
12
11
|
iconBackground: "#1A1A1C",
|
|
13
12
|
downloadUrls: {
|
|
14
13
|
android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./ctrlWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const ctrlWallet = (): WalletConfig => {
|
|
3
|
+
export const ctrlWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "ctrl",
|
|
7
6
|
name: "CTRL Wallet",
|
|
8
7
|
namespace: "ctrl.ethereum",
|
|
9
8
|
rdns: "xyz.ctrl",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/ctrlWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
chrome: "https://chromewebstore.google.com/detail/ctrl-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./dawnWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const dawnWallet = (): WalletConfig => ({
|
|
3
|
+
export const dawnWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "dawn",
|
|
6
5
|
name: "Dawn",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/dawnWallet.svg`,
|
|
9
8
|
iconBackground: "#000000",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
ios: "https://apps.apple.com/us/app/dawn-ethereum-wallet/id1673143782",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./desigWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const desigWallet = (): WalletConfig => {
|
|
3
|
+
export const desigWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "desig",
|
|
7
6
|
name: "Desig Wallet",
|
|
8
7
|
namespace: "desig.ethereum",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/desigWallet.svg`,
|
|
10
9
|
iconBackground: "#ffffff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
android: "https://play.google.com/store/apps/details?id=io.desig.app",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./enkryptWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const enkryptWallet = (): WalletConfig => {
|
|
3
|
+
export const enkryptWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "enkrypt",
|
|
7
6
|
name: "Enkrypt Wallet",
|
|
8
7
|
namespace: "enkrypt.providers.ethereum",
|
|
9
8
|
rdns: "com.enkrypt",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/enkryptWallet.svg`,
|
|
11
10
|
iconBackground: "#FFFFFF",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
qrCode: "https://www.enkrypt.com",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./foxWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const foxWallet = (): WalletConfig => {
|
|
3
|
+
export const foxWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "foxwallet",
|
|
7
6
|
name: "FoxWallet",
|
|
8
7
|
namespace: "foxwallet.ethereum",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/foxWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./frameWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const frameWallet = (): WalletConfig => ({
|
|
3
|
+
export const frameWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "frame",
|
|
6
5
|
name: "Frame",
|
|
7
6
|
namespace: "",
|
|
8
7
|
flag: "isFrame",
|
|
9
8
|
rdns: "sh.frame",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/frameWallet.svg`,
|
|
11
10
|
iconBackground: "#121C20",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
browserExtension: "https://frame.sh/",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./gateWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const gateWallet = (): WalletConfig => {
|
|
4
|
+
export const gateWallet = (baseUrl: string): WalletConfig => {
|
|
6
5
|
return {
|
|
7
6
|
id: "gate",
|
|
8
7
|
name: "Gate Wallet",
|
|
9
8
|
namespace: "gatewallet",
|
|
10
9
|
rdns: "io.gate.wallet",
|
|
11
|
-
icon
|
|
10
|
+
icon: `${baseUrl}/gateWallet.svg`,
|
|
12
11
|
iconAccent: "#fff",
|
|
13
12
|
iconBackground: "#fff",
|
|
14
13
|
downloadUrls: {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./imTokenWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const imTokenWallet = (): WalletConfig => ({
|
|
3
|
+
export const imTokenWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "imToken",
|
|
6
5
|
name: "imToken",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/imTokenWallet.svg`,
|
|
9
8
|
iconBackground: "#098de6",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
android: "https://play.google.com/store/apps/details?id=im.token.app",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./injectedWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const injectedWallet = (): WalletConfig => ({
|
|
3
|
+
export const injectedWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "injected",
|
|
6
5
|
name: "Browser Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/injectedWallet.svg`,
|
|
9
8
|
iconBackground: "#fff",
|
|
10
9
|
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./iopayWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const iopayWallet = (): WalletConfig => ({
|
|
4
|
+
export const iopayWallet = (baseUrl: string): WalletConfig => ({
|
|
6
5
|
id: "iopay",
|
|
7
6
|
name: "ioPay Wallet",
|
|
8
7
|
namespace: "",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/iopayWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
android: "https://play.google.com/store/apps/details?id=io.iotex.iopay.gp&pli=1",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./kaiaWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const kaiaWallet = (): WalletConfig => {
|
|
3
|
+
export const kaiaWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "kaia",
|
|
7
6
|
name: "Kaia Wallet",
|
|
8
7
|
namespace: "klaytn",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/kaiaWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
chrome: "https://chromewebstore.google.com/detail/kaia-wallet/jblndlipeogpafnldhgmapagcccfchpi",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./kaikasWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const kaikasWallet = (): WalletConfig => {
|
|
3
|
+
export const kaikasWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "kaikas",
|
|
7
6
|
name: "Kaikas Wallet",
|
|
8
7
|
namespace: "klaytn",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/kaikasWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
chrome: "https://chromewebstore.google.com/detail/kaikas/jblndlipeogpafnldhgmapagcccfchpi",
|