@dogeos/dogeos-sdk 1.0.6-beta.3 → 2.0.0-beta.4
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/components/AccountModal/AccountModal.d.ts +1 -1
- package/dist/components/AccountModal/AccountModal.d.ts.map +1 -1
- package/dist/components/ConnectModal/socialLoginTypeSL.d.ts +1 -1
- package/dist/components/ConnectModal/socialLoginTypeSL.d.ts.map +1 -1
- package/dist/index.js +14 -14
- package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-23BTDHWT.js +68 -0
- package/dist/wallets/walletConnectors/chunk-3RV2PDNU.js +90 -0
- package/dist/wallets/walletConnectors/chunk-5AA45G6G.js +68 -0
- package/dist/wallets/walletConnectors/chunk-5Z7ZXXRR.js +98 -0
- package/dist/wallets/walletConnectors/chunk-BH3DH43L.js +92 -0
- package/dist/wallets/walletConnectors/chunk-C77FT77Y.js +93 -0
- package/dist/wallets/walletConnectors/chunk-DSSAT3NI.js +99 -0
- package/dist/wallets/walletConnectors/chunk-EU6OLW4A.js +95 -0
- package/dist/wallets/walletConnectors/chunk-FWKF7LPD.js +107 -0
- package/dist/wallets/walletConnectors/chunk-HKLLWUHG.js +63 -0
- package/dist/wallets/walletConnectors/chunk-IQZBD6M4.js +63 -0
- package/dist/wallets/walletConnectors/chunk-JY4IF5AQ.js +84 -0
- package/dist/wallets/walletConnectors/chunk-LKBXEGOJ.js +92 -0
- package/dist/wallets/walletConnectors/chunk-MD4POIVS.js +93 -0
- package/dist/wallets/walletConnectors/chunk-NBPDTYTT.js +93 -0
- package/dist/wallets/walletConnectors/chunk-OP7MZATO.js +100 -0
- package/dist/wallets/walletConnectors/chunk-PE2OUMNV.js +91 -0
- package/dist/wallets/walletConnectors/chunk-PTIPKDP7.js +143 -0
- package/dist/wallets/walletConnectors/chunk-RQLI2RTW.js +105 -0
- package/dist/wallets/walletConnectors/chunk-U37MS2YB.js +88 -0
- package/dist/wallets/walletConnectors/chunk-VFRUWZVT.js +62 -0
- package/dist/wallets/walletConnectors/chunk-XAQXLPKN.js +90 -0
- package/dist/wallets/walletConnectors/chunk-XVUM5YFT.js +93 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +32 -32
- package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountModal.d.ts","sourceRoot":"","sources":["../../../src/components/AccountModal/AccountModal.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountModal.d.ts","sourceRoot":"","sources":["../../../src/components/AccountModal/AccountModal.tsx"],"names":[],"mappings":"AAKA,OAAO,0CAA0C,CAAC;AAElD,OAAO,KAAwE,MAAM,OAAO,CAAC;AAmB7F,OAAO,oBAAoB,CAAC;AAC5B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAUD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,iBAAiB,4BAuThE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoginType } from "@tomo-inc/social-wallet-sdk/types";
|
|
1
|
+
import type { LoginType } from "@tomo-inc/social-wallet-sdk-doge/types";
|
|
2
2
|
export declare function readSocialLoginType(): string | null;
|
|
3
3
|
export declare function writeSocialLoginType(type: LoginType | "" | "email"): void;
|
|
4
4
|
export declare function readWalletLoginType(): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socialLoginTypeSL.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectModal/socialLoginTypeSL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"socialLoginTypeSL.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectModal/socialLoginTypeSL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AAKxE,wBAAgB,mBAAmB,kBAElC;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,SAAS,GAAG,EAAE,GAAG,OAAO,QAElE;AAED,wBAAgB,mBAAmB,kBAElC;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,QAEhD"}
|
package/dist/index.js
CHANGED
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
safeWallet,
|
|
16
16
|
walletConnectWallet
|
|
17
17
|
} from "./chunk-ZUNVBVVT.js";
|
|
18
|
-
import {
|
|
19
|
-
darkTheme
|
|
20
|
-
} from "./chunk-4QQWBTY6.js";
|
|
21
18
|
import {
|
|
22
19
|
lightTheme
|
|
23
20
|
} from "./chunk-GTSOSA32.js";
|
|
21
|
+
import {
|
|
22
|
+
darkTheme
|
|
23
|
+
} from "./chunk-4QQWBTY6.js";
|
|
24
24
|
import {
|
|
25
25
|
midnightTheme
|
|
26
26
|
} from "./chunk-ADRE6DLX.js";
|
|
@@ -147,9 +147,9 @@ function useConnectionStatus() {
|
|
|
147
147
|
|
|
148
148
|
// src/components/AccountModal/AccountModal.tsx
|
|
149
149
|
import { WebWalletInvokeType as WebWalletInvokeType2 } from "@tomo-inc/shared-type";
|
|
150
|
-
import { TomoTokenList } from "@tomo-inc/token-list";
|
|
151
|
-
import "@tomo-inc/token-list/dist/style.css";
|
|
152
|
-
import { ConnectedModal, Theme } from "@tomo-inc/uikit-lite";
|
|
150
|
+
import { TomoTokenList } from "@tomo-inc/token-list-doge";
|
|
151
|
+
import "@tomo-inc/token-list-doge/dist/style.css";
|
|
152
|
+
import { ConnectedModal, Theme } from "@tomo-inc/uikit-lite-doge";
|
|
153
153
|
import React28, { useCallback as useCallback5, useContext as useContext8, useEffect as useEffect12, useMemo as useMemo11, useRef as useRef3, useState as useState10 } from "react";
|
|
154
154
|
import { useAccount as useAccount8, useChainId as useChainId2, useDisconnect } from "wagmi";
|
|
155
155
|
|
|
@@ -284,7 +284,7 @@ var getAddressByChainId = (userInfo, chainId) => {
|
|
|
284
284
|
|
|
285
285
|
// src/components/ActionModal/ActionModal.tsx
|
|
286
286
|
import { WebWalletInvokeType } from "@tomo-inc/shared-type";
|
|
287
|
-
import { Popup } from "@tomo-inc/uikit-lite";
|
|
287
|
+
import { Popup } from "@tomo-inc/uikit-lite-doge";
|
|
288
288
|
import React3, { forwardRef, useCallback, useEffect as useEffect2, useImperativeHandle, useRef } from "react";
|
|
289
289
|
import { useAccount as useAccount3 } from "wagmi";
|
|
290
290
|
|
|
@@ -471,7 +471,7 @@ function makeTomoWalletFn({
|
|
|
471
471
|
...walletDetails.rkDetails,
|
|
472
472
|
getProvider: async () => {
|
|
473
473
|
if (provider || typeof window === "undefined") return provider;
|
|
474
|
-
const socialSdk = await import("@tomo-inc/social-wallet-sdk");
|
|
474
|
+
const socialSdk = await import("@tomo-inc/social-wallet-sdk-doge");
|
|
475
475
|
const { TomoSDK, EthereumProvider } = socialSdk;
|
|
476
476
|
const supportedEvmChainIds = supportedEvmChains.map((chain) => chain.id);
|
|
477
477
|
const tomoSDK = new TomoSDK({
|
|
@@ -616,7 +616,7 @@ var ActionModal_default = ActionModal;
|
|
|
616
616
|
|
|
617
617
|
// src/components/AllChainsAddressModal/AllChainsAddressModal.tsx
|
|
618
618
|
import React7, { useMemo as useMemo3 } from "react";
|
|
619
|
-
import { Popup as Popup2, TCopy } from "@tomo-inc/uikit-lite";
|
|
619
|
+
import { Popup as Popup2, TCopy } from "@tomo-inc/uikit-lite-doge";
|
|
620
620
|
|
|
621
621
|
// src/components/Box/Box.ts
|
|
622
622
|
import clsx2 from "clsx";
|
|
@@ -996,7 +996,7 @@ function writeWalletLoginType(type) {
|
|
|
996
996
|
}
|
|
997
997
|
|
|
998
998
|
// src/components/FaucetModal/FaucetModal.tsx
|
|
999
|
-
import { Popup as Popup3 } from "@tomo-inc/uikit-lite";
|
|
999
|
+
import { Popup as Popup3 } from "@tomo-inc/uikit-lite-doge";
|
|
1000
1000
|
import { useEffect as useEffect5 } from "react";
|
|
1001
1001
|
import { useAccount as useAccount4 } from "wagmi";
|
|
1002
1002
|
|
|
@@ -1920,7 +1920,7 @@ function setRainbowKitVersion({ version }) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
function useFingerprint() {
|
|
1922
1922
|
const fingerprint = useCallback2(() => {
|
|
1923
|
-
setRainbowKitVersion({ version: "
|
|
1923
|
+
setRainbowKitVersion({ version: "2.0.0-beta.4" });
|
|
1924
1924
|
}, []);
|
|
1925
1925
|
useEffect9(() => {
|
|
1926
1926
|
fingerprint();
|
|
@@ -2786,7 +2786,7 @@ function AccountModal({ onClose, open }) {
|
|
|
2786
2786
|
// src/components/ChainModal/ChainModal.tsx
|
|
2787
2787
|
import React29, { useMemo as useMemo12, useContext as useContext9 } from "react";
|
|
2788
2788
|
import { useAccount as useAccount9 } from "wagmi";
|
|
2789
|
-
import { NetworkPopup, Theme as Theme2 } from "@tomo-inc/uikit-lite";
|
|
2789
|
+
import { NetworkPopup, Theme as Theme2 } from "@tomo-inc/uikit-lite-doge";
|
|
2790
2790
|
function ChainModal({ onClose, open }) {
|
|
2791
2791
|
const { chainId } = useAccount9();
|
|
2792
2792
|
const theme = useContext9(ThemeTypeContext);
|
|
@@ -2933,8 +2933,8 @@ function DialogContent({
|
|
|
2933
2933
|
}
|
|
2934
2934
|
|
|
2935
2935
|
// src/components/ConnectModal/TomoConnectModal.tsx
|
|
2936
|
-
import { BASE_RELAY_PROD_URL } from "@tomo-inc/social-wallet-sdk";
|
|
2937
|
-
import { HeaderBackIcon, LoadingPage, Popup as Popup4, PopupHeader, Theme as Theme3 } from "@tomo-inc/uikit-lite";
|
|
2936
|
+
import { BASE_RELAY_PROD_URL } from "@tomo-inc/social-wallet-sdk-doge";
|
|
2937
|
+
import { HeaderBackIcon, LoadingPage, Popup as Popup4, PopupHeader, Theme as Theme3 } from "@tomo-inc/uikit-lite-doge";
|
|
2938
2938
|
import React56, { useContext as useContext13, useEffect as useEffect21, useMemo as useMemo14, useRef as useRef7, useState as useState18 } from "react";
|
|
2939
2939
|
import { useAccount as useAccount10 } from "wagmi";
|
|
2940
2940
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5AA45G6G.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-75A5A7MH.js";
|
|
7
6
|
import "../chunk-PJCRXY6L.js";
|
|
7
|
+
import "../chunk-75A5A7MH.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5Z7ZXXRR.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-75A5A7MH.js";
|
|
7
6
|
import "../chunk-PJCRXY6L.js";
|
|
7
|
+
import "../chunk-75A5A7MH.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid,
|
|
4
|
+
isIOS
|
|
5
|
+
} from "./chunk-RETKWSKD.js";
|
|
6
|
+
import {
|
|
7
|
+
getInjectedConnector,
|
|
8
|
+
hasInjectedProvider
|
|
9
|
+
} from "./chunk-PJCRXY6L.js";
|
|
10
|
+
import {
|
|
11
|
+
getWalletConnectConnector
|
|
12
|
+
} from "./chunk-75A5A7MH.js";
|
|
13
|
+
|
|
14
|
+
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
15
|
+
var rainbowWallet = ({ projectId, walletConnectParameters }) => {
|
|
16
|
+
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
17
|
+
const shouldUseWalletConnect = !isRainbowInjected;
|
|
18
|
+
const getUri = (uri) => {
|
|
19
|
+
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
id: "rainbow",
|
|
23
|
+
name: "Rainbow",
|
|
24
|
+
rdns: "me.rainbow",
|
|
25
|
+
iconUrl: async () => (await import("./rainbowWallet-2SR6TVBF.js")).default,
|
|
26
|
+
iconBackground: "#0c2f78",
|
|
27
|
+
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
30
|
+
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
31
|
+
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
32
|
+
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
33
|
+
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
34
|
+
},
|
|
35
|
+
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
36
|
+
qrCode: shouldUseWalletConnect ? {
|
|
37
|
+
getUri,
|
|
38
|
+
instructions: {
|
|
39
|
+
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
40
|
+
steps: [
|
|
41
|
+
{
|
|
42
|
+
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
43
|
+
step: "install",
|
|
44
|
+
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
48
|
+
step: "create",
|
|
49
|
+
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
53
|
+
step: "scan",
|
|
54
|
+
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
} : void 0,
|
|
59
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
60
|
+
projectId,
|
|
61
|
+
walletConnectParameters
|
|
62
|
+
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
rainbowWallet
|
|
68
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-75A5A7MH.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/kaiaWallet/kaiaWallet.ts
|
|
11
|
+
var kaiaWallet = ({ projectId, walletConnectParameters }) => {
|
|
12
|
+
const isKaiaWalletInjected = hasInjectedProvider({
|
|
13
|
+
namespace: "klaytn"
|
|
14
|
+
});
|
|
15
|
+
const shouldUseWalletConnect = !isKaiaWalletInjected;
|
|
16
|
+
const getUri = (uri) => {
|
|
17
|
+
return `kaikas://walletconnect?uri=${encodeURIComponent(uri)}`;
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
id: "kaia",
|
|
21
|
+
name: "Kaia Wallet",
|
|
22
|
+
iconUrl: async () => (await import("./kaiaWallet-5K6WZ3AH.js")).default,
|
|
23
|
+
installed: isKaiaWalletInjected || void 0,
|
|
24
|
+
iconBackground: "#fff",
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
chrome: "https://chromewebstore.google.com/detail/kaia-wallet/jblndlipeogpafnldhgmapagcccfchpi",
|
|
27
|
+
browserExtension: "https://app.kaiawallet.io",
|
|
28
|
+
qrCode: "https://app.kaiawallet.io",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/kaia-wallet/id6502896387",
|
|
30
|
+
android: "https://play.google.com/store/apps/details?id=io.klutch.wallet",
|
|
31
|
+
mobile: "https://app.kaiawallet.io"
|
|
32
|
+
},
|
|
33
|
+
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
34
|
+
qrCode: shouldUseWalletConnect ? {
|
|
35
|
+
getUri: (uri) => uri,
|
|
36
|
+
instructions: {
|
|
37
|
+
learnMoreUrl: "https://kaiawallet.io",
|
|
38
|
+
steps: [
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.kaia.qr_code.step1.description",
|
|
41
|
+
step: "install",
|
|
42
|
+
title: "wallet_connectors.kaia.qr_code.step1.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.kaia.qr_code.step2.description",
|
|
46
|
+
step: "create",
|
|
47
|
+
title: "wallet_connectors.kaia.qr_code.step2.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.kaia.qr_code.step3.description",
|
|
51
|
+
step: "refresh",
|
|
52
|
+
title: "wallet_connectors.kaia.qr_code.step3.title"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
} : void 0,
|
|
57
|
+
extension: {
|
|
58
|
+
instructions: {
|
|
59
|
+
learnMoreUrl: "https://kaiawallet.io",
|
|
60
|
+
steps: [
|
|
61
|
+
{
|
|
62
|
+
description: "wallet_connectors.kaia.extension.step1.description",
|
|
63
|
+
step: "install",
|
|
64
|
+
title: "wallet_connectors.kaia.extension.step1.title"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.kaia.extension.step2.description",
|
|
68
|
+
step: "create",
|
|
69
|
+
title: "wallet_connectors.kaia.extension.step2.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.kaia.extension.step3.description",
|
|
73
|
+
step: "refresh",
|
|
74
|
+
title: "wallet_connectors.kaia.extension.step3.title"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
80
|
+
projectId,
|
|
81
|
+
walletConnectParameters
|
|
82
|
+
}) : getInjectedConnector({
|
|
83
|
+
namespace: "klaytn"
|
|
84
|
+
})
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
kaiaWallet
|
|
90
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid
|
|
4
|
+
} from "./chunk-RETKWSKD.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-PJCRXY6L.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-75A5A7MH.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
14
|
+
var bifrostWallet = ({ projectId, walletConnectParameters }) => {
|
|
15
|
+
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
16
|
+
const shouldUseWalletConnect = !isBifrostInjected;
|
|
17
|
+
const getUri = (uri) => {
|
|
18
|
+
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
id: "bifrostWallet",
|
|
22
|
+
name: "Bifrost Wallet",
|
|
23
|
+
iconUrl: async () => (await import("./bifrostWallet-ORF3DABG.js")).default,
|
|
24
|
+
iconBackground: "#fff",
|
|
25
|
+
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
26
|
+
downloadUrls: {
|
|
27
|
+
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
28
|
+
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
29
|
+
qrCode: "https://bifrostwallet.com/#download-app"
|
|
30
|
+
},
|
|
31
|
+
mobile: {
|
|
32
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
33
|
+
},
|
|
34
|
+
qrCode: shouldUseWalletConnect ? {
|
|
35
|
+
getUri: (uri) => uri,
|
|
36
|
+
instructions: {
|
|
37
|
+
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
38
|
+
steps: [
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
41
|
+
step: "install",
|
|
42
|
+
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
46
|
+
step: "create",
|
|
47
|
+
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
51
|
+
step: "scan",
|
|
52
|
+
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
} : void 0,
|
|
57
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
58
|
+
projectId,
|
|
59
|
+
walletConnectParameters
|
|
60
|
+
}) : getInjectedConnector({
|
|
61
|
+
flag: "isBifrost"
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
bifrostWallet
|
|
68
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid
|
|
4
|
+
} from "./chunk-RETKWSKD.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-PJCRXY6L.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-75A5A7MH.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
14
|
+
var bitgetWallet = ({ projectId, walletConnectParameters }) => {
|
|
15
|
+
const isBitKeepInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "bitkeep.ethereum",
|
|
17
|
+
flag: "isBitKeep"
|
|
18
|
+
});
|
|
19
|
+
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "bitget",
|
|
22
|
+
name: "Bitget Wallet",
|
|
23
|
+
rdns: "com.bitget.web3",
|
|
24
|
+
iconUrl: async () => (await import("./bitgetWallet-CLYTW54T.js")).default,
|
|
25
|
+
iconAccent: "#f6851a",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
30
|
+
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
31
|
+
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
32
|
+
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
33
|
+
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
34
|
+
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
35
|
+
},
|
|
36
|
+
extension: {
|
|
37
|
+
instructions: {
|
|
38
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.bitget.extension.step1.description",
|
|
42
|
+
step: "install",
|
|
43
|
+
title: "wallet_connectors.bitget.extension.step1.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.bitget.extension.step2.description",
|
|
47
|
+
step: "create",
|
|
48
|
+
title: "wallet_connectors.bitget.extension.step2.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.bitget.extension.step3.description",
|
|
52
|
+
step: "refresh",
|
|
53
|
+
title: "wallet_connectors.bitget.extension.step3.description"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
mobile: {
|
|
59
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
60
|
+
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
61
|
+
} : void 0
|
|
62
|
+
},
|
|
63
|
+
qrCode: shouldUseWalletConnect ? {
|
|
64
|
+
getUri: (uri) => uri,
|
|
65
|
+
instructions: {
|
|
66
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
67
|
+
steps: [
|
|
68
|
+
{
|
|
69
|
+
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
70
|
+
step: "install",
|
|
71
|
+
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
75
|
+
step: "create",
|
|
76
|
+
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
80
|
+
step: "scan",
|
|
81
|
+
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
} : void 0,
|
|
86
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
87
|
+
projectId,
|
|
88
|
+
walletConnectParameters
|
|
89
|
+
}) : getInjectedConnector({
|
|
90
|
+
namespace: "bitkeep.ethereum",
|
|
91
|
+
flag: "isBitKeep"
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
bitgetWallet
|
|
98
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-PJCRXY6L.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-75A5A7MH.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/coreWallet/coreWallet.ts
|
|
11
|
+
var coreWallet = ({ projectId, walletConnectParameters }) => {
|
|
12
|
+
const isCoreInjected = hasInjectedProvider({
|
|
13
|
+
namespace: "avalanche",
|
|
14
|
+
flag: "isAvalanche"
|
|
15
|
+
});
|
|
16
|
+
const shouldUseWalletConnect = !isCoreInjected;
|
|
17
|
+
return {
|
|
18
|
+
id: "core",
|
|
19
|
+
name: "Core",
|
|
20
|
+
rdns: "app.core.extension",
|
|
21
|
+
iconUrl: async () => (await import("./coreWallet-52SXITOT.js")).default,
|
|
22
|
+
iconBackground: "#1A1A1C",
|
|
23
|
+
installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
|
|
26
|
+
ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
|
|
27
|
+
mobile: "https://core.app/?downloadCoreMobile=1",
|
|
28
|
+
qrCode: "https://core.app/?downloadCoreMobile=1",
|
|
29
|
+
chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
|
|
30
|
+
browserExtension: "https://extension.core.app/"
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
34
|
+
},
|
|
35
|
+
qrCode: shouldUseWalletConnect ? {
|
|
36
|
+
getUri: (uri) => uri,
|
|
37
|
+
instructions: {
|
|
38
|
+
learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.core.qr_code.step1.description",
|
|
42
|
+
step: "install",
|
|
43
|
+
title: "wallet_connectors.core.qr_code.step1.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.core.qr_code.step2.description",
|
|
47
|
+
step: "create",
|
|
48
|
+
title: "wallet_connectors.core.qr_code.step2.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.core.qr_code.step3.description",
|
|
52
|
+
step: "scan",
|
|
53
|
+
title: "wallet_connectors.core.qr_code.step3.title"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
} : void 0,
|
|
58
|
+
extension: {
|
|
59
|
+
instructions: {
|
|
60
|
+
learnMoreUrl: "https://extension.core.app/",
|
|
61
|
+
steps: [
|
|
62
|
+
{
|
|
63
|
+
description: "wallet_connectors.core.extension.step1.description",
|
|
64
|
+
step: "install",
|
|
65
|
+
title: "wallet_connectors.core.extension.step1.title"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
description: "wallet_connectors.core.extension.step2.description",
|
|
69
|
+
step: "create",
|
|
70
|
+
title: "wallet_connectors.core.extension.step2.title"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.core.extension.step3.description",
|
|
74
|
+
step: "refresh",
|
|
75
|
+
title: "wallet_connectors.core.extension.step3.title"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
81
|
+
projectId,
|
|
82
|
+
walletConnectParameters
|
|
83
|
+
}) : getInjectedConnector({
|
|
84
|
+
namespace: "avalanche",
|
|
85
|
+
flag: "isAvalanche"
|
|
86
|
+
})
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
coreWallet
|
|
92
|
+
};
|