@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
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./krakenWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const krakenWallet = (): WalletConfig => ({
|
|
3
|
+
export const krakenWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "kraken",
|
|
6
5
|
name: "Kraken Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/krakenWallet.svg`,
|
|
9
8
|
iconBackground: "#FFD8EA",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
ios: "https://apps.apple.com/us/app/kraken-wallet/id1626327149",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./kresusWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const kresusWallet = (): WalletConfig => ({
|
|
3
|
+
export const kresusWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "kresus-wallet",
|
|
6
5
|
name: "Kresus Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/kresusWallet.svg`,
|
|
9
8
|
iconBackground: "#fff",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
android: "https://play.google.com/store/apps/details?id=com.kresus.superapp",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { isAndroid } from "../../../utils/isMobile";
|
|
2
2
|
import type { WalletConfig } from "../../Wallet";
|
|
3
|
-
import icon from "./ledgerWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const ledgerWallet = (): WalletConfig => ({
|
|
4
|
+
export const ledgerWallet = (baseUrl: string): WalletConfig => ({
|
|
6
5
|
id: "ledger",
|
|
7
6
|
iconBackground: "#000",
|
|
8
7
|
iconAccent: "#000",
|
|
9
8
|
name: "Ledger",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/ledgerWallet.svg`,
|
|
11
10
|
namespace: "",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
android: "https://play.google.com/store/apps/details?id=com.ledger.live",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./magicEden.svg";
|
|
3
2
|
|
|
4
|
-
export const magicEdenWallet = (): WalletConfig => {
|
|
3
|
+
export const magicEdenWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "magicEden",
|
|
7
6
|
name: "Magic Eden Wallet",
|
|
@@ -13,7 +12,7 @@ export const magicEdenWallet = (): WalletConfig => {
|
|
|
13
12
|
// namespace: "magicEden.aptos",
|
|
14
13
|
// },
|
|
15
14
|
rdns: "io.magiceden.wallet",
|
|
16
|
-
icon
|
|
15
|
+
icon: `${baseUrl}/magicEden.svg`,
|
|
17
16
|
iconBackground: "#36114D",
|
|
18
17
|
downloadUrls: {
|
|
19
18
|
chrome: "https://chromewebstore.google.com/detail/magic-eden-wallet/mkpegjkblkkefacfnmkajcjmabijhclg",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./mathWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const mathWallet = (): WalletConfig => {
|
|
3
|
+
export const mathWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
//https://doc.mathwallet.org/en/aptos/
|
|
6
5
|
// const isSupportSolana = window?.solana && window?.solana?.isMathWallet;
|
|
7
6
|
// const isSupportAptos = window?.aptos && window?.aptos?.isMathWallet;
|
|
@@ -12,7 +11,7 @@ export const mathWallet = (): WalletConfig => {
|
|
|
12
11
|
namespace: "",
|
|
13
12
|
flag: "isMathWallet",
|
|
14
13
|
rdns: "com.mathwallet",
|
|
15
|
-
icon
|
|
14
|
+
icon: `${baseUrl}/mathWallet.svg`,
|
|
16
15
|
iconBackground: "#fff",
|
|
17
16
|
downloadUrls: {
|
|
18
17
|
android: "https://play.google.com/store/apps/details?id=com.mathwallet",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isAndroid, isIOS } from "../../../utils/isMobile";
|
|
2
2
|
import type { WalletConfig } from "../../Wallet";
|
|
3
|
-
import icon from "./metaMaskWallet.svg";
|
|
4
3
|
|
|
5
4
|
type WindowProvider = any;
|
|
6
5
|
|
|
@@ -58,7 +57,7 @@ export function isMetaMask(ethereum?: WindowProvider["ethereum"]): boolean {
|
|
|
58
57
|
return true;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
|
-
export const metaMaskWallet = (): WalletConfig => {
|
|
60
|
+
export const metaMaskWallet = (baseUrl: string): WalletConfig => {
|
|
62
61
|
// Custom logic to explicitly detect MetaMask
|
|
63
62
|
// Whereas hasInjectedProvider only checks for impersonated `isMetaMask`
|
|
64
63
|
// We need this because MetaMask SDK hangs on impersonated wallets
|
|
@@ -70,7 +69,7 @@ export const metaMaskWallet = (): WalletConfig => {
|
|
|
70
69
|
name: "MetaMask",
|
|
71
70
|
namespace: "ethereum",
|
|
72
71
|
rdns: "io.metamask",
|
|
73
|
-
icon
|
|
72
|
+
icon: `${baseUrl}/metaMaskWallet.svg`,
|
|
74
73
|
iconAccent: "#f6851a",
|
|
75
74
|
iconBackground: "#fff",
|
|
76
75
|
installed: isMetaMaskInjected ? isMetaMaskInjected : undefined,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./mydogeWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const mydogeWallet = (): WalletConfig => {
|
|
3
|
+
export const mydogeWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "mydoge",
|
|
7
6
|
name: "MyDoge",
|
|
@@ -10,7 +9,10 @@ export const mydogeWallet = (): WalletConfig => {
|
|
|
10
9
|
solana: {
|
|
11
10
|
namespace: "mydoge.solana",
|
|
12
11
|
},
|
|
13
|
-
|
|
12
|
+
dogecoin: {
|
|
13
|
+
namespace: "mydoge.doge",
|
|
14
|
+
},
|
|
15
|
+
icon: `${baseUrl}/mydogeWallet.svg`,
|
|
14
16
|
iconBackground: "#fff",
|
|
15
17
|
downloadUrls: {
|
|
16
18
|
chrome: "https://chromewebstore.google.com/detail/mydoge-dogecoin-wallet/mljponncmhdlacmjbophphkbgcgjdnff",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./nestWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const nestWallet = (): WalletConfig => ({
|
|
3
|
+
export const nestWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "nest",
|
|
6
5
|
name: "Nest",
|
|
7
6
|
namespace: "",
|
|
8
7
|
flag: "isNestWallet",
|
|
9
8
|
rdns: "xyz.nestwallet",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/nestWallet.svg`,
|
|
11
10
|
iconBackground: "#fff0",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
browserExtension: "https://nestwallet.xyz",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./novaWallet.svg";
|
|
3
2
|
|
|
4
3
|
function isNovaWallet(ethereum?: any): boolean {
|
|
5
4
|
if (ethereum?.isNovaWallet) return true;
|
|
@@ -9,13 +8,13 @@ function isNovaWallet(ethereum?: any): boolean {
|
|
|
9
8
|
|
|
10
9
|
const isNovaWalletInjected = typeof window !== "undefined" ? isNovaWallet(window.ethereum) : false;
|
|
11
10
|
|
|
12
|
-
export const novaWallet = (): WalletConfig => {
|
|
11
|
+
export const novaWallet = (baseUrl: string): WalletConfig => {
|
|
13
12
|
return {
|
|
14
13
|
id: "nova",
|
|
15
14
|
name: "Nova Wallet",
|
|
16
15
|
namespace: "",
|
|
17
16
|
rdns: "io.novawallet",
|
|
18
|
-
icon
|
|
17
|
+
icon: `${baseUrl}/novaWallet.svg`,
|
|
19
18
|
iconBackground: "#fff",
|
|
20
19
|
installed: isNovaWalletInjected,
|
|
21
20
|
downloadUrls: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./oktoWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const oktoWallet = (): WalletConfig => ({
|
|
4
|
+
export const oktoWallet = (baseUrl: string): WalletConfig => ({
|
|
6
5
|
id: "Okto",
|
|
7
6
|
name: "Okto",
|
|
8
7
|
namespace: "",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/oktoWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
android: "https://play.google.com/store/apps/details?id=im.okto.contractwalletclient",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { isAndroid } from "../../../utils/isMobile";
|
|
2
2
|
import type { WalletConfig } from "../../Wallet";
|
|
3
|
-
import icon from "./okxWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const okxWallet = (): WalletConfig => {
|
|
4
|
+
export const okxWallet = (baseUrl: string): WalletConfig => {
|
|
6
5
|
return {
|
|
7
6
|
id: "okx",
|
|
8
7
|
name: "OKX Wallet",
|
|
@@ -14,7 +13,7 @@ export const okxWallet = (): WalletConfig => {
|
|
|
14
13
|
namespace: "okxwallet.aptos",
|
|
15
14
|
},
|
|
16
15
|
rdns: "com.okex.wallet",
|
|
17
|
-
icon
|
|
16
|
+
icon: `${baseUrl}/okxWallet.svg`,
|
|
18
17
|
iconAccent: "#000",
|
|
19
18
|
iconBackground: "#000",
|
|
20
19
|
downloadUrls: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./omniWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const omniWallet = (): WalletConfig => ({
|
|
4
|
+
export const omniWallet = (baseUrl: string): WalletConfig => ({
|
|
6
5
|
id: "omni",
|
|
7
6
|
name: "Omni",
|
|
8
7
|
namespace: "",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/omniWallet.svg`,
|
|
10
9
|
iconBackground: "#000",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
android: "https://play.google.com/store/apps/details?id=fi.steakwallet.app",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./oneInchWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const oneInchWallet = (): WalletConfig => ({
|
|
3
|
+
export const oneInchWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "1inch",
|
|
6
5
|
name: "1inch Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/oneInchWallet.svg`,
|
|
9
8
|
iconBackground: "#fff",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
android: "https://play.google.com/store/apps/details?id=io.oneinch.android",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./oneKeyWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const oneKeyWallet = (): WalletConfig => {
|
|
3
|
+
export const oneKeyWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "onekey",
|
|
7
6
|
name: "OneKey",
|
|
@@ -9,7 +8,7 @@ export const oneKeyWallet = (): WalletConfig => {
|
|
|
9
8
|
rdns: "so.onekey.app.wallet",
|
|
10
9
|
iconAccent: "#00B812",
|
|
11
10
|
iconBackground: "#fff",
|
|
12
|
-
icon
|
|
11
|
+
icon: `${baseUrl}/oneKeyWallet.svg`,
|
|
13
12
|
downloadUrls: {
|
|
14
13
|
android: "https://play.google.com/store/apps/details?id=so.onekey.app.wallet",
|
|
15
14
|
browserExtension: "https://www.onekey.so/download/",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./paraSwapWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const paraSwapWallet = (): WalletConfig => ({
|
|
3
|
+
export const paraSwapWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "paraswap",
|
|
6
5
|
name: "ParaSwap Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/paraSwapWallet.svg`,
|
|
9
8
|
iconBackground: "#578CFC",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
ios: "https://apps.apple.com/us/app/paraswap-multichain-wallet/id1584610690",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./petraWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const petraWallet = (): WalletConfig => {
|
|
3
|
+
export const petraWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "petra",
|
|
7
6
|
name: "Petra",
|
|
@@ -9,7 +8,7 @@ export const petraWallet = (): WalletConfig => {
|
|
|
9
8
|
namespace: "aptos",
|
|
10
9
|
},
|
|
11
10
|
rdns: "app.petra",
|
|
12
|
-
icon
|
|
11
|
+
icon: `${baseUrl}/petraWallet.svg`,
|
|
13
12
|
iconBackground: "#0C0D10",
|
|
14
13
|
downloadUrls: {
|
|
15
14
|
android: "https://play.google.com/store/apps/details?id=com.aptoslabs.petra.wallet",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./phantomWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const phantomWallet = (): WalletConfig => {
|
|
3
|
+
export const phantomWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "phantom",
|
|
7
6
|
name: "Phantom",
|
|
@@ -13,7 +12,7 @@ export const phantomWallet = (): WalletConfig => {
|
|
|
13
12
|
// namespace: "phantom.aptos",
|
|
14
13
|
// },
|
|
15
14
|
rdns: "app.phantom",
|
|
16
|
-
icon
|
|
15
|
+
icon: `${baseUrl}/phantomWallet.svg`,
|
|
17
16
|
iconBackground: "#9A8AEE",
|
|
18
17
|
downloadUrls: {
|
|
19
18
|
android: "https://play.google.com/store/apps/details?id=app.phantom",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./rabbyWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const rabbyWallet = (): WalletConfig => ({
|
|
3
|
+
export const rabbyWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "rabby",
|
|
6
5
|
name: "Rabby Wallet",
|
|
7
6
|
namespace: "",
|
|
8
7
|
flag: "isRabby",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/rabbyWallet.svg`,
|
|
10
9
|
rdns: "io.rabby",
|
|
11
10
|
iconBackground: "#8697FF",
|
|
12
11
|
downloadUrls: {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid, isIOS } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./rainbowWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const rainbowWallet = (): WalletConfig => {
|
|
4
|
+
export const rainbowWallet = (baseUrl: string): WalletConfig => {
|
|
6
5
|
return {
|
|
7
6
|
id: "rainbow",
|
|
8
7
|
name: "Rainbow",
|
|
9
8
|
namespace: "",
|
|
10
9
|
flag: "isRainbow",
|
|
11
10
|
rdns: "me.rainbow",
|
|
12
|
-
icon
|
|
11
|
+
icon: `${baseUrl}/rainbowWallet.svg`,
|
|
13
12
|
iconBackground: "#0c2f78",
|
|
14
13
|
downloadUrls: {
|
|
15
14
|
android:
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./ramperWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const ramperWallet = (): WalletConfig => {
|
|
3
|
+
export const ramperWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "ramper",
|
|
7
6
|
name: "Ramper Wallet",
|
|
8
7
|
namespace: "ramper2.provider",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/ramperWallet.svg`,
|
|
10
9
|
iconAccent: "#CDA349",
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./readyWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const readyWallet = (): WalletConfig => ({
|
|
3
|
+
export const readyWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "ready",
|
|
6
5
|
name: "Ready",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/readyWallet.svg`,
|
|
9
8
|
iconBackground: "#fff",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
android: "https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./roninWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const roninWallet = (): WalletConfig => {
|
|
3
|
+
export const roninWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "ronin",
|
|
7
6
|
name: "Ronin Wallet",
|
|
8
7
|
namespace: "ronin.provider",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/roninWallet.svg`,
|
|
10
9
|
iconBackground: "#ffffff",
|
|
11
10
|
rdns: "com.roninchain.wallet",
|
|
12
11
|
downloadUrls: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./safeWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const safeWallet = (): WalletConfig => ({
|
|
3
|
+
export const safeWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "safe",
|
|
6
5
|
name: "Safe",
|
|
7
6
|
namespace: "",
|
|
8
7
|
iconAccent: "#12ff80",
|
|
9
8
|
iconBackground: "#fff",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/safeWallet.svg`,
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
// We're opting not to provide a download prompt if the application is not
|
|
13
12
|
// already running as a Safe App within the context of the Safe browser,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./safeheronWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const safeheronWallet = (): WalletConfig => ({
|
|
3
|
+
export const safeheronWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "safeheron",
|
|
6
5
|
name: "Safeheron",
|
|
7
6
|
namespace: "safeheron",
|
|
8
7
|
flag: "isSafeheron",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/safeheronWallet.svg`,
|
|
10
9
|
iconBackground: "#fff",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
chrome: "https://chrome.google.com/webstore/detail/safeheron/aiaghdjafpiofpainifbgfgjfpclngoh",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./safepalWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const safepalWallet = (): WalletConfig => {
|
|
3
|
+
export const safepalWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "safepal",
|
|
7
6
|
name: "SafePal Wallet",
|
|
8
7
|
namespace: "safepalProvider",
|
|
9
8
|
flag: "isSafePal",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/safepalWallet.svg`,
|
|
11
10
|
iconAccent: "#3375BB",
|
|
12
11
|
iconBackground: "#fff",
|
|
13
12
|
downloadUrls: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./seifWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const seifWallet = (): WalletConfig => {
|
|
3
|
+
export const seifWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "seif",
|
|
7
6
|
name: "Seif",
|
|
8
7
|
namespace: "__seif",
|
|
9
8
|
rdns: "com.passkeywallet.seif",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/seifWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
chrome: "https://chromewebstore.google.com/detail/seif/albakdmmdafeafbehmcpoejenbeojejl",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./solflareWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const solflareWallet = (): WalletConfig => {
|
|
3
|
+
export const solflareWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "solflare-wallet",
|
|
7
6
|
name: "SolflareWallet",
|
|
@@ -10,7 +9,7 @@ export const solflareWallet = (): WalletConfig => {
|
|
|
10
9
|
namespace: "solflare",
|
|
11
10
|
},
|
|
12
11
|
rdns: "app.solflare",
|
|
13
|
-
icon
|
|
12
|
+
icon: `${baseUrl}/solflareWallet.svg`,
|
|
14
13
|
iconBackground: "#fff",
|
|
15
14
|
downloadUrls: {
|
|
16
15
|
android: "https://play.google.com/store/apps/details?id=com.solflare.wallet",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./subWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const subWallet = (): WalletConfig => {
|
|
3
|
+
export const subWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "subwallet",
|
|
7
6
|
name: "SubWallet",
|
|
8
7
|
namespace: "SubWallet",
|
|
9
8
|
rdns: "app.subwallet",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/subWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
browserExtension: "https://www.subwallet.app/download",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./tahoWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const tahoWallet = (): WalletConfig => {
|
|
3
|
+
export const tahoWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "taho",
|
|
7
6
|
name: "Taho",
|
|
8
7
|
namespace: "tally",
|
|
9
8
|
flag: "isTally",
|
|
10
9
|
iconBackground: "#d08d57",
|
|
11
|
-
icon
|
|
10
|
+
icon: `${baseUrl}/tahoWallet.svg`,
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
chrome: "https://chrome.google.com/webstore/detail/taho/eajafomhmkipbjmfmhebemolkcicgfmd",
|
|
14
13
|
browserExtension: "https://taho.xyz",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./talismanWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const talismanWallet = (): WalletConfig => ({
|
|
3
|
+
export const talismanWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "talisman",
|
|
6
5
|
name: "Talisman",
|
|
7
6
|
namespace: "talismanEth",
|
|
8
7
|
flag: "isTalisman",
|
|
9
8
|
rdns: "xyz.talisman",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/talismanWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
chrome: "https://chrome.google.com/webstore/detail/talisman-polkadot-wallet/fijngjgcjhjmmpcmkeiomlglpeiijkld",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./tokenPocketWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const tokenPocketWallet = (): WalletConfig => {
|
|
3
|
+
export const tokenPocketWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "tokenPocket",
|
|
7
6
|
name: "TokenPocket",
|
|
@@ -10,7 +9,7 @@ export const tokenPocketWallet = (): WalletConfig => {
|
|
|
10
9
|
namespace: "tokenpocket.solana",
|
|
11
10
|
},
|
|
12
11
|
rdns: "pro.tokenpocket",
|
|
13
|
-
icon
|
|
12
|
+
icon: `${baseUrl}/tokenPocketWallet.svg`,
|
|
14
13
|
iconBackground: "#2980FE",
|
|
15
14
|
downloadUrls: {
|
|
16
15
|
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./tokenaryWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const tokenaryWallet = (): WalletConfig => ({
|
|
3
|
+
export const tokenaryWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "tokenary",
|
|
6
5
|
name: "Tokenary",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/tokenaryWallet.svg`,
|
|
9
8
|
iconBackground: "#ffffff",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
ios: "https://tokenary.io/get",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./trezorWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const trezorWallet = (): WalletConfig => {
|
|
3
|
+
export const trezorWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "trezor-wallet",
|
|
7
6
|
name: "TrezorWallet",
|
|
8
7
|
namespace: "",
|
|
9
8
|
rdns: "app.trezor",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/trezorWallet.svg`,
|
|
11
10
|
iconBackground: "#fff",
|
|
12
11
|
downloadUrls: {
|
|
13
12
|
android: "https://play.google.com/store/apps/details?id=com.trezor.trezor",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./trustWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const trustWallet = (): WalletConfig => {
|
|
3
|
+
export const trustWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "trust",
|
|
7
6
|
name: "Trust Wallet",
|
|
8
7
|
namespace: "trustwallet",
|
|
9
8
|
flag: "isTrustWallet",
|
|
10
9
|
rdns: "com.trustwallet.app",
|
|
11
|
-
icon
|
|
10
|
+
icon: `${baseUrl}/trustWallet.svg`,
|
|
12
11
|
iconAccent: "#3375BB",
|
|
13
12
|
iconBackground: "#fff",
|
|
14
13
|
downloadUrls: {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./uniswapWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const uniswapWallet = (): WalletConfig => ({
|
|
3
|
+
export const uniswapWallet = (baseUrl: string): WalletConfig => ({
|
|
5
4
|
id: "uniswap",
|
|
6
5
|
name: "Uniswap Wallet",
|
|
7
6
|
namespace: "",
|
|
8
|
-
icon
|
|
7
|
+
icon: `${baseUrl}/uniswapWallet.svg`,
|
|
9
8
|
iconBackground: "#FFD8EA",
|
|
10
9
|
downloadUrls: {
|
|
11
10
|
ios: "https://apps.apple.com/app/apple-store/id6443944476",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
|
-
import icon from "./universalProfilesWallet.svg";
|
|
3
2
|
|
|
4
|
-
export const universalProfilesWallet = (): WalletConfig => {
|
|
3
|
+
export const universalProfilesWallet = (baseUrl: string): WalletConfig => {
|
|
5
4
|
return {
|
|
6
5
|
id: "universal-profiles",
|
|
7
6
|
name: "Universal Profiles",
|
|
8
7
|
namespace: "lukso",
|
|
9
8
|
rdns: "io.universaleverything.universalprofiles",
|
|
10
|
-
icon
|
|
9
|
+
icon: `${baseUrl}/universalProfilesWallet.svg`,
|
|
11
10
|
iconAccent: "#6e77a9",
|
|
12
11
|
iconBackground: "#6e77a9",
|
|
13
12
|
downloadUrls: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { WalletConfig } from "../../Wallet";
|
|
2
2
|
import { isAndroid } from "../../../utils/isMobile";
|
|
3
|
-
import icon from "./valoraWallet.svg";
|
|
4
3
|
|
|
5
|
-
export const valoraWallet = (): WalletConfig => ({
|
|
4
|
+
export const valoraWallet = (baseUrl: string): WalletConfig => ({
|
|
6
5
|
id: "valora",
|
|
7
6
|
name: "Valora",
|
|
8
7
|
namespace: "",
|
|
9
|
-
icon
|
|
8
|
+
icon: `${baseUrl}/valoraWallet.svg`,
|
|
10
9
|
iconBackground: "#FFFFFF",
|
|
11
10
|
downloadUrls: {
|
|
12
11
|
ios: "https://apps.apple.com/app/id1520414263?mt=8",
|