@web3jskit/walletkit 0.5.2 → 0.6.0
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/README.md +1 -4
- package/README.zh.md +1 -4
- package/dist/assets/fonts/manrope-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/manrope-latin.woff2 +0 -0
- package/dist/assets/fonts/manrope-vietnamese.woff2 +0 -0
- package/dist/base.css +65 -0
- package/dist/btcConnector-BDtO-SY1.js +1 -0
- package/dist/{btcConnector-D9c29Oxw.mjs → btcConnector-CcZ3Vta3.mjs} +4 -3
- package/dist/{btcConnector-CDgcyxQ3.mjs → btcConnector-DMgc1GYB.mjs} +16 -15
- package/dist/btcConnector-DfFAwTZX.js +1 -0
- package/dist/components/ConnectModal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +3 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/WalletItem/index.d.ts +3 -0
- package/dist/components/WalletItem/index.d.ts.map +1 -1
- package/dist/components/WalletKitProvider/ChainProvider.d.ts +1 -2
- package/dist/components/WalletKitProvider/ChainProvider.d.ts.map +1 -1
- package/dist/components/WalletKitProvider/connectorInitialization.d.ts +12 -0
- package/dist/components/WalletKitProvider/connectorInitialization.d.ts.map +1 -0
- package/dist/components/WalletKitProvider/index.d.ts +1 -1
- package/dist/components/WalletKitProvider/index.d.ts.map +1 -1
- package/dist/config/iconDatabase.d.ts +0 -1
- package/dist/config/iconDatabase.d.ts.map +1 -1
- package/dist/config/walletConfig.d.ts +0 -1
- package/dist/config/walletConfig.d.ts.map +1 -1
- package/dist/core/connectors/Bitget_Wallet/tronConnector.d.ts +13 -0
- package/dist/core/connectors/Bitget_Wallet/tronConnector.d.ts.map +1 -0
- package/dist/core/connectors/_sol/discoverWallets.d.ts +4 -0
- package/dist/core/connectors/_sol/discoverWallets.d.ts.map +1 -0
- package/dist/core/connectors/_sol/discoveredSolConnector.d.ts +12 -0
- package/dist/core/connectors/_sol/discoveredSolConnector.d.ts.map +1 -0
- package/dist/core/connectors/_sol/wrapStandardSolWallet.d.ts +15 -0
- package/dist/core/connectors/_sol/wrapStandardSolWallet.d.ts.map +1 -0
- package/dist/core/connectors/_tron/discoverWallets.d.ts +6 -0
- package/dist/core/connectors/_tron/discoverWallets.d.ts.map +1 -0
- package/dist/core/connectors/_tron/discoveredTronConnector.d.ts +13 -0
- package/dist/core/connectors/_tron/discoveredTronConnector.d.ts.map +1 -0
- package/dist/core/connectors/_tron/tronConnector.d.ts.map +1 -1
- package/dist/core/connectors/_tron/wrapTip6963TronProvider.d.ts +2 -0
- package/dist/core/connectors/_tron/wrapTip6963TronProvider.d.ts.map +1 -0
- package/dist/core/connectors/connectorLoader.d.ts +3 -0
- package/dist/core/connectors/connectorLoader.d.ts.map +1 -0
- package/dist/core/connectors/createConnectors.d.ts +5 -1
- package/dist/core/connectors/createConnectors.d.ts.map +1 -1
- package/dist/core/connectors/publicConnectorApi.d.ts +7 -0
- package/dist/core/connectors/publicConnectorApi.d.ts.map +1 -0
- package/dist/core/utils/sortConnectModalWallets.d.ts +14 -0
- package/dist/core/utils/sortConnectModalWallets.d.ts.map +1 -0
- package/dist/core/utils/util.d.ts +7 -0
- package/dist/core/utils/util.d.ts.map +1 -1
- package/dist/core/utils/walletName.d.ts +5 -0
- package/dist/core/utils/walletName.d.ts.map +1 -0
- package/dist/createConnectors-C9LH3IR3.mjs +1400 -0
- package/dist/createConnectors-CJ8mKxGL.js +4 -0
- package/dist/createConnectors-Cv_QLnqK.js +71 -0
- package/dist/createConnectors-motkSfb8.mjs +700 -0
- package/dist/{deepLinkConnector-BV1AtJUd.mjs → deepLinkConnector-BXnwTb3R.mjs} +1 -1
- package/dist/{deepLinkConnector-D2bdmDbP.mjs → deepLinkConnector-BYTD1fC1.mjs} +1 -1
- package/dist/deepLinkConnector-BdJyNgRZ.js +1 -0
- package/dist/{deepLinkConnector-De3WEuvS.mjs → deepLinkConnector-Bu6KKcGy.mjs} +1 -1
- package/dist/deepLinkConnector-Bw-eQd5I.js +1 -0
- package/dist/{deepLinkConnector-Cl2lfNcv.mjs → deepLinkConnector-C2hzBr3K.mjs} +1 -1
- package/dist/deepLinkConnector-CAwqVe4F.js +1 -0
- package/dist/deepLinkConnector-CuHi9EXY.js +1 -0
- package/dist/deepLinkConnector-Cvnq6T2g.js +1 -0
- package/dist/deepLinkConnector-DIFgHqiu.js +1 -0
- package/dist/deepLinkConnector-DNwi0QPz.js +1 -0
- package/dist/{deepLinkConnector-Cp3wn9oq.mjs → deepLinkConnector-DZhNx2B3.mjs} +1 -1
- package/dist/{deepLinkConnector-ClxWpKnx.mjs → deepLinkConnector-DjjZRYdu.mjs} +1 -1
- package/dist/{deepLinkConnector-Cy9w-E2m.mjs → deepLinkConnector-DkxVqLoI.mjs} +6 -5
- package/dist/hooks/useWalletKit.d.ts +0 -2
- package/dist/hooks/useWalletKit.d.ts.map +1 -1
- package/dist/index-AJZEVNvC.js +44 -0
- package/dist/index-B2ReClHJ.js +1 -0
- package/dist/index-CwrzsL2T.mjs +6179 -0
- package/dist/index-D5CDP-Ja.mjs +79 -0
- package/dist/index-DBdIuPfj.js +3 -0
- package/dist/index-DcNXEbdu.mjs +94 -0
- package/dist/index-Dh0IhC3B.mjs +168 -0
- package/dist/index-Dqp1KqTh.js +1 -0
- package/dist/index-Ds_3MsPA.js +1 -0
- package/dist/index-bCuJkrSE.mjs +152 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +19 -20
- package/dist/index.js +1 -1
- package/dist/index.umd.js +12765 -55583
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/silentConnect-CZY4_0a5.js +1 -0
- package/dist/silentConnect-ScWCxMaM.mjs +11 -0
- package/dist/stores/helperStore.d.ts +0 -2
- package/dist/stores/helperStore.d.ts.map +1 -1
- package/dist/style.css +90 -87
- package/dist/tronConnector-Bx-nhNWr.mjs +14 -0
- package/dist/tronConnector-CXH3d_my.js +1 -0
- package/dist/tronConnector-DGnNuwqC.js +1 -0
- package/dist/tronConnector-P87k0GEa.mjs +21 -0
- package/dist/walletName-BwayBopz.mjs +8 -0
- package/dist/walletName-mwS8Jhxj.js +1 -0
- package/package.json +11 -4
- package/dist/btcConnector-Ca_Ne7hH.js +0 -1
- package/dist/btcConnector-PnjTRzcQ.js +0 -1
- package/dist/core/connectors/Bitget_Wallet/solConnector.d.ts +0 -13
- package/dist/core/connectors/Bitget_Wallet/solConnector.d.ts.map +0 -1
- package/dist/core/connectors/GelWallet/evmConnector.d.ts +0 -27
- package/dist/core/connectors/GelWallet/evmConnector.d.ts.map +0 -1
- package/dist/core/connectors/GelWallet/solConnector.d.ts +0 -15
- package/dist/core/connectors/GelWallet/solConnector.d.ts.map +0 -1
- package/dist/core/connectors/GelWallet/tronConnector.d.ts +0 -8
- package/dist/core/connectors/GelWallet/tronConnector.d.ts.map +0 -1
- package/dist/core/connectors/OKX_Wallet/solConnector.d.ts +0 -12
- package/dist/core/connectors/OKX_Wallet/solConnector.d.ts.map +0 -1
- package/dist/core/connectors/Phantom/solConnector.d.ts +0 -12
- package/dist/core/connectors/Phantom/solConnector.d.ts.map +0 -1
- package/dist/core/connectors/TronLink/tronConnector.d.ts +0 -13
- package/dist/core/connectors/TronLink/tronConnector.d.ts.map +0 -1
- package/dist/core/connectors/_gelwallet/gelWalletConnector.d.ts +0 -26
- package/dist/core/connectors/_gelwallet/gelWalletConnector.d.ts.map +0 -1
- package/dist/dapp.es-BPGP9PnL.mjs +0 -15917
- package/dist/dapp.es-sLnregcu.js +0 -103
- package/dist/deepLinkConnector-2xq1YA07.js +0 -1
- package/dist/deepLinkConnector-B_fjG32i.js +0 -1
- package/dist/deepLinkConnector-BjV3gwrJ.js +0 -1
- package/dist/deepLinkConnector-BrFUCtcT.js +0 -1
- package/dist/deepLinkConnector-COLT9UtB.js +0 -1
- package/dist/deepLinkConnector-DvpJaC8p.js +0 -1
- package/dist/deepLinkConnector-Dypz-oTG.js +0 -1
- package/dist/evmConnector-CDZHCMDp.mjs +0 -163
- package/dist/evmConnector-CsLHlVqx.js +0 -1
- package/dist/gelWalletConnector-D-BogX91.mjs +0 -76
- package/dist/gelWalletConnector-DmGJoazT.js +0 -1
- package/dist/index-9qmfDVzH-C-zsxX98.mjs +0 -25638
- package/dist/index-9qmfDVzH-C6VVZD9P.js +0 -28
- package/dist/index-B3LF1VeP-58KzZv6u.js +0 -1
- package/dist/index-B3LF1VeP-IR-fSZI0.mjs +0 -120
- package/dist/index-BZdLbTeL.js +0 -138
- package/dist/index-CCHY2zSF-OxZZmzOg.mjs +0 -45
- package/dist/index-CCHY2zSF-ocS_tvXl.js +0 -1
- package/dist/index-CqeMS3Gf-C4g86ca5.js +0 -1
- package/dist/index-CqeMS3Gf-DXS8RsUh.mjs +0 -67
- package/dist/index-DGMGsMkJ-BTPPfxmS.js +0 -1
- package/dist/index-DGMGsMkJ-CHecRdpD.mjs +0 -27
- package/dist/index-Dm84KVCU.mjs +0 -9267
- package/dist/index-yUF_S07V-Cm9-qVkc.js +0 -1
- package/dist/index-yUF_S07V-DHeRsyE0.mjs +0 -48
- package/dist/solConnector-2sU1qHsq.mjs +0 -11
- package/dist/solConnector-BEPYycHF.js +0 -1
- package/dist/solConnector-CVS5qwwy.js +0 -1
- package/dist/solConnector-CWIPltdg.mjs +0 -11
- package/dist/solConnector-CXejjI9x.mjs +0 -41
- package/dist/solConnector-CnQAb35I.mjs +0 -11
- package/dist/solConnector-DU5bMwKt.js +0 -1
- package/dist/solConnector-xJ3YPYMj.js +0 -1
- package/dist/tronConnector-CUnp7Df4.js +0 -1
- package/dist/tronConnector-CaEipTWV.mjs +0 -21
- package/dist/tronConnector-CpIX5IxL.mjs +0 -13
- package/dist/tronConnector-DMLqqMae.mjs +0 -35
- package/dist/tronConnector-DesDymhW.js +0 -1
- package/dist/tronConnector-tU0iwxHV.js +0 -1
package/dist/index2.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_119qo_1{display:flex;flex-direction:column;align-items:center;text-align:center}._container_119qo_1 ._avatarBox_119qo_7{margin-top:-28px;font-size:41px}._container_119qo_1 ._avatarBox_119qo_7 ._avatar_119qo_7{width:74px;height:74px;line-height:74px;border-radius:50%;-webkit-user-select:none;user-select:none;cursor:pointer}._container_119qo_1 ._accountInfo_119qo_19{margin-top:12px;color:var(--walletkit-text-color)}._container_119qo_1 ._accountInfo_119qo_19 ._address_119qo_23{font-size:18px;font-weight:800;line-height:24px}._container_119qo_1 ._accountInfo_119qo_19 ._tokenAmount_119qo_28{font-size:14px;font-weight:600;line-height:18px;color:var(--walletkit-text-color-secondary)}._container_119qo_1 ._btnGroup_119qo_34{display:flex;gap:8px;margin-top:16px;width:100%;justify-content:center;padding:0 16px 16px;box-sizing:border-box}._container_119qo_1 ._btnGroup_119qo_34 ._button_119qo_43{padding:8px;color:var(--walletkit-text-color);width:100%;display:flex;flex-direction:column;align-items:center;cursor:pointer;border-radius:12px;background-color:var(--walletkit-background-color-light)}._container_119qo_1 ._btnGroup_119qo_34 ._button_119qo_43:hover{background-color:var(--walletkit-background-color-list)}._container_119qo_1 ._btnGroup_119qo_34 ._btnIcon_119qo_57{height:18px}._container_119qo_1 ._btnGroup_119qo_34 ._btnText_119qo_60{font-size:13px;font-weight:600;line-height:18px}@media(max-width:768px){._container_119qo_1 ._avatarBox_119qo_7{margin-top:-4px;font-size:45px}._container_119qo_1 ._avatarBox_119qo_7 ._avatar_119qo_7{width:82px;height:82px;line-height:82px}._container_119qo_1 ._accountInfo_119qo_19{margin-top:16px}._container_119qo_1 ._accountInfo_119qo_19 ._address_119qo_23{font-size:20px}._container_119qo_1 ._accountInfo_119qo_19 ._tokenAmount_119qo_28{font-size:16px;line-height:20px}}
|
package/dist/index3.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._backdrop_1y3tp_1{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--walletkit-modal-background-color);-webkit-backdrop-filter:var(--walletkit-modal-background-filter);backdrop-filter:var(--walletkit-modal-background-filter);display:flex;align-items:center;justify-content:center;z-index:1000}._modal_1y3tp_14{background:var(--walletkit-background-color);border-radius:24px;box-shadow:0 40px 80px #0000000d;border:8px solid var(--walletkit-background-color);max-width:500px;width:100%;max-height:min(80vh,calc(100% - 24px));overflow:hidden;position:relative;transition:all .3s ease-in-out;padding:0 12px 12px;display:flex;flex-direction:column}@supports (height: 100dvh){._modal_1y3tp_14{max-height:min(80dvh,calc(100% - 24px))}}@media(max-width:500px){._backdrop_1y3tp_1{align-items:flex-end;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}._modal_1y3tp_14{max-width:100%;border-radius:24px 24px 0 0;border-width:4px;max-height:calc(100% - env(safe-area-inset-top,0px));padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))}._compact_1y3tp_47{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}}@supports (height: 100dvh){@media(max-width:500px){._modal_1y3tp_14{max-height:calc(100dvh - env(safe-area-inset-top,0px))}}}._header_132o6_1{display:flex;align-items:center;justify-content:space-between;padding:32px 12px}._header_132o6_1 ._title_132o6_7{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:32px;font-weight:700;color:var(--walletkit-text-color);margin:0;line-height:1;transition:color .3s ease-in-out}._modal_132o6_16._connecting_132o6_16 ._header_132o6_1 ._title_132o6_7{color:#09131f}._header_132o6_1 ._close_132o6_19{cursor:pointer;display:flex;align-items:center;justify-content:center;width:40px;height:40px;transition:all .2s;color:var(--walletkit-text-color);transform-origin:50% 50%;background-color:var(--walletkit-background-color-light);z-index:1;border-radius:20px;border:2px solid #fff;background:linear-gradient(264deg,#ffffff80 3.24%,#fffc 96.39%);box-shadow:0 0 40px 20px #00000008}._header_132o6_1 ._close_132o6_19:hover{background-color:var(--walletkit-background-color-light);transform:rotate(180deg);transition:all .2s}._header_132o6_1 ._close_132o6_19:focus-visible{outline:2px solid var(--walletkit-primary-color);outline-offset:2px}._header_132o6_1 ._close_132o6_19 ._icon_132o6_45{font-size:24px;color:var(--walletkit-text-color);font-weight:300;transform:rotate(45deg);line-height:1}[data-theme=dark] ._close_132o6_19{border:2px solid rgba(255,255,255,.05);background:linear-gradient(264deg,#ffffff0d 3.24%,#ffffff14 96.39%);box-shadow:0 20px 40px #0000000d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@media(max-width:500px){._header_132o6_1{padding:12px 12px 20px}._header_132o6_1 ._title_132o6_7{font-size:24px}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-AJZEVNvC.js"),c=require("./createConnectors-Cv_QLnqK.js"),a=async(e,o)=>{const t=(await c.createConnector(n.ChainType.EVM)).find(r=>r.name.replace(" ","_")===e);if(!t)throw new Error(`Connector not found for wallet: ${e}`);n.walletHelperStore.getState().setCurrentNetwork(o),t.connect()};exports.default=a;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as r, w as c } from "./index-CwrzsL2T.mjs";
|
|
2
|
+
import { c as a } from "./createConnectors-motkSfb8.mjs";
|
|
3
|
+
const C = async (e, n) => {
|
|
4
|
+
const t = (await a(r.EVM)).find((o) => o.name.replace(" ", "_") === e);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error(`Connector not found for wallet: ${e}`);
|
|
7
|
+
c.getState().setCurrentNetwork(n), t.connect();
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
C as default
|
|
11
|
+
};
|
|
@@ -74,8 +74,6 @@ export interface WalletHelperState {
|
|
|
74
74
|
publicKey?: string;
|
|
75
75
|
}>;
|
|
76
76
|
}) => Promise<any>;
|
|
77
|
-
useTestWallet: boolean;
|
|
78
|
-
setUseTestWallet: (useTestWallet: boolean) => void;
|
|
79
77
|
}
|
|
80
78
|
export declare const walletHelperStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<WalletHelperState>, "persist"> & {
|
|
81
79
|
persist: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helperStore.d.ts","sourceRoot":"","sources":["../../src/stores/helperStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"helperStore.d.ts","sourceRoot":"","sources":["../../src/stores/helperStore.ts"],"names":[],"mappings":"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"}
|
package/dist/style.css
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.
|
|
1
|
+
._modalContent_1q71y_1 {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
}
|
|
5
|
-
.
|
|
5
|
+
._body_1q71y_5 {
|
|
6
6
|
max-height: min(380px, calc(100vh - 220px));
|
|
7
7
|
overflow: auto;
|
|
8
8
|
padding: 0 12px;
|
|
9
9
|
margin: 0 -12px;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
._body_1q71y_5 ._section_1q71y_11 {
|
|
12
12
|
margin-bottom: 24px;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
._body_1q71y_5 ._section_1q71y_11:last-child {
|
|
15
15
|
margin-bottom: 0;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
._body_1q71y_5 ._section_1q71y_11 ._title_1q71y_17 {
|
|
18
18
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
19
19
|
font-size: 16px;
|
|
20
20
|
font-weight: 400;
|
|
@@ -22,41 +22,44 @@
|
|
|
22
22
|
margin: 0 0 12px 0;
|
|
23
23
|
padding: 0 12px;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25 {
|
|
26
26
|
display: grid;
|
|
27
27
|
grid-template-columns: 1fr 1fr;
|
|
28
28
|
gap: 8px;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25 > :only-child {
|
|
31
|
+
grid-column: 1 / -1;
|
|
32
|
+
}
|
|
33
|
+
._body_1q71y_5::-webkit-scrollbar {
|
|
31
34
|
width: 6px;
|
|
32
35
|
}
|
|
33
|
-
.
|
|
36
|
+
._body_1q71y_5::-webkit-scrollbar-thumb {
|
|
34
37
|
height: 6px;
|
|
35
38
|
border-radius: 10px;
|
|
36
39
|
background: rgba(0, 0, 0, 0.1);
|
|
37
40
|
}
|
|
38
|
-
.
|
|
41
|
+
._body_1q71y_5::-webkit-scrollbar-track {
|
|
39
42
|
width: 6px;
|
|
40
43
|
margin: 0 2px;
|
|
41
44
|
background-color: transparent;
|
|
42
45
|
}
|
|
43
46
|
@supports (height: 100dvh) {
|
|
44
|
-
.
|
|
47
|
+
._body_1q71y_5 {
|
|
45
48
|
max-height: min(380px, calc(100dvh - 220px));
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
|
-
.
|
|
51
|
+
._footer_1q71y_51 {
|
|
49
52
|
margin-top: 32px;
|
|
50
53
|
text-align: center;
|
|
51
54
|
}
|
|
52
|
-
.
|
|
55
|
+
._footer_1q71y_51 ._poweredBy_1q71y_55 {
|
|
53
56
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
54
57
|
font-size: 16px;
|
|
55
58
|
font-weight: 500;
|
|
56
59
|
color: #94969b;
|
|
57
60
|
margin: 0;
|
|
58
61
|
}
|
|
59
|
-
.
|
|
62
|
+
._connecting_1q71y_62 {
|
|
60
63
|
flex: 1;
|
|
61
64
|
display: flex;
|
|
62
65
|
flex-direction: column;
|
|
@@ -64,17 +67,17 @@
|
|
|
64
67
|
align-items: center;
|
|
65
68
|
padding: 34px 0;
|
|
66
69
|
}
|
|
67
|
-
.
|
|
70
|
+
._connecting_1q71y_62 ._content_1q71y_70 {
|
|
68
71
|
display: flex;
|
|
69
72
|
flex-direction: column;
|
|
70
73
|
align-items: center;
|
|
71
74
|
gap: 32px;
|
|
72
75
|
text-align: center;
|
|
73
76
|
}
|
|
74
|
-
.
|
|
77
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 {
|
|
75
78
|
position: relative;
|
|
76
79
|
}
|
|
77
|
-
.
|
|
80
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80 {
|
|
78
81
|
width: 128px;
|
|
79
82
|
height: 128px;
|
|
80
83
|
border-radius: 16px;
|
|
@@ -87,17 +90,17 @@
|
|
|
87
90
|
position: relative;
|
|
88
91
|
overflow: hidden;
|
|
89
92
|
}
|
|
90
|
-
.
|
|
93
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80 img {
|
|
91
94
|
width: 48px;
|
|
92
95
|
height: 48px;
|
|
93
96
|
border-radius: 8px;
|
|
94
97
|
}
|
|
95
|
-
.
|
|
98
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 {
|
|
96
99
|
display: flex;
|
|
97
100
|
flex-direction: column;
|
|
98
101
|
gap: 12px;
|
|
99
102
|
}
|
|
100
|
-
.
|
|
103
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._title_1q71y_17 {
|
|
101
104
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
102
105
|
font-size: 20px;
|
|
103
106
|
font-weight: 500;
|
|
@@ -105,7 +108,7 @@
|
|
|
105
108
|
margin: 0;
|
|
106
109
|
line-height: 1.2;
|
|
107
110
|
}
|
|
108
|
-
.
|
|
111
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._subtitle_1q71y_111 {
|
|
109
112
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
110
113
|
font-size: 14px;
|
|
111
114
|
font-weight: 400;
|
|
@@ -113,7 +116,7 @@
|
|
|
113
116
|
margin: 0;
|
|
114
117
|
line-height: 1.2;
|
|
115
118
|
}
|
|
116
|
-
.
|
|
119
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._spinner_1q71y_119 {
|
|
117
120
|
width: 46px;
|
|
118
121
|
height: 46px;
|
|
119
122
|
position: relative;
|
|
@@ -121,13 +124,13 @@
|
|
|
121
124
|
align-items: center;
|
|
122
125
|
justify-content: center;
|
|
123
126
|
}
|
|
124
|
-
.
|
|
127
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._spinner_1q71y_119 ._inner_1q71y_127 {
|
|
125
128
|
color: var(--walletkit-text-color);
|
|
126
129
|
width: 46px;
|
|
127
130
|
height: 46px;
|
|
128
|
-
animation:
|
|
131
|
+
animation: _spin_1q71y_119 1s linear infinite;
|
|
129
132
|
}
|
|
130
|
-
@keyframes
|
|
133
|
+
@keyframes _spin_1q71y_119 {
|
|
131
134
|
0% {
|
|
132
135
|
transform: rotate(0deg);
|
|
133
136
|
}
|
|
@@ -136,40 +139,40 @@
|
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
@media (max-width: 500px) {
|
|
139
|
-
.
|
|
142
|
+
._body_1q71y_5 {
|
|
140
143
|
max-height: min(400px, calc(100vh - 170px));
|
|
141
144
|
padding: 0 8px 0 18px;
|
|
142
145
|
margin: 0 -8px;
|
|
143
146
|
}
|
|
144
|
-
.
|
|
147
|
+
._body_1q71y_5 ._section_1q71y_11 {
|
|
145
148
|
margin-bottom: 20px;
|
|
146
149
|
}
|
|
147
|
-
.
|
|
150
|
+
._body_1q71y_5 ._section_1q71y_11 ._title_1q71y_17 {
|
|
148
151
|
font-size: 14px;
|
|
149
152
|
}
|
|
150
|
-
.
|
|
153
|
+
._body_1q71y_5 ._section_1q71y_11 ._walletGrid_1q71y_25 {
|
|
151
154
|
grid-template-columns: 1fr;
|
|
152
155
|
}
|
|
153
|
-
.
|
|
156
|
+
._footer_1q71y_51 ._poweredBy_1q71y_55 {
|
|
154
157
|
font-size: 12px;
|
|
155
158
|
}
|
|
156
|
-
.
|
|
159
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._walletIcon_1q71y_77 ._iconContainer_1q71y_80 {
|
|
157
160
|
width: 96px;
|
|
158
161
|
height: 96px;
|
|
159
162
|
font-size: 36px;
|
|
160
163
|
}
|
|
161
|
-
.
|
|
164
|
+
._connecting_1q71y_62 ._content_1q71y_70 ._status_1q71y_98 ._title_1q71y_17 {
|
|
162
165
|
font-size: 18px;
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
@supports (height: 100dvh) {
|
|
166
169
|
@media (max-width: 500px) {
|
|
167
|
-
.
|
|
170
|
+
._body_1q71y_5 {
|
|
168
171
|
max-height: min(400px, calc(100dvh - 170px));
|
|
169
172
|
}
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
|
-
.
|
|
175
|
+
._backdrop_1y3tp_1 {
|
|
173
176
|
position: fixed;
|
|
174
177
|
top: 0;
|
|
175
178
|
left: 0;
|
|
@@ -182,7 +185,7 @@
|
|
|
182
185
|
justify-content: center;
|
|
183
186
|
z-index: 1000;
|
|
184
187
|
}
|
|
185
|
-
.
|
|
188
|
+
._modal_1y3tp_14 {
|
|
186
189
|
background: var(--walletkit-background-color);
|
|
187
190
|
border-radius: 24px;
|
|
188
191
|
box-shadow: 0px 40px 80px 0px rgba(0, 0, 0, 0.05);
|
|
@@ -198,27 +201,30 @@
|
|
|
198
201
|
flex-direction: column;
|
|
199
202
|
}
|
|
200
203
|
@supports (height: 100dvh) {
|
|
201
|
-
.
|
|
204
|
+
._modal_1y3tp_14 {
|
|
202
205
|
max-height: min(80dvh, calc(100% - 24px));
|
|
203
206
|
}
|
|
204
207
|
}
|
|
205
208
|
@media (max-width: 500px) {
|
|
206
|
-
.
|
|
209
|
+
._backdrop_1y3tp_1 {
|
|
207
210
|
align-items: flex-end;
|
|
208
211
|
padding-top: env(safe-area-inset-top, 0px);
|
|
209
212
|
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
210
213
|
}
|
|
211
|
-
.
|
|
214
|
+
._modal_1y3tp_14 {
|
|
212
215
|
max-width: 100%;
|
|
213
216
|
border-radius: 24px 24px 0 0;
|
|
214
217
|
border-width: 4px;
|
|
215
218
|
max-height: calc(100% - env(safe-area-inset-top, 0px));
|
|
216
219
|
padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
|
|
217
220
|
}
|
|
221
|
+
._compact_1y3tp_47 {
|
|
222
|
+
padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
|
|
223
|
+
}
|
|
218
224
|
}
|
|
219
225
|
@supports (height: 100dvh) {
|
|
220
226
|
@media (max-width: 500px) {
|
|
221
|
-
.
|
|
227
|
+
._modal_1y3tp_14 {
|
|
222
228
|
max-height: calc(100dvh - env(safe-area-inset-top, 0px));
|
|
223
229
|
}
|
|
224
230
|
}
|
|
@@ -288,7 +294,7 @@
|
|
|
288
294
|
font-size: 24px;
|
|
289
295
|
}
|
|
290
296
|
}
|
|
291
|
-
.
|
|
297
|
+
._walletItem_6bfi0_1 {
|
|
292
298
|
background: var(--walletkit-background-color-list);
|
|
293
299
|
border-radius: 8px;
|
|
294
300
|
padding: 16px;
|
|
@@ -300,16 +306,16 @@
|
|
|
300
306
|
align-items: center;
|
|
301
307
|
justify-content: space-between;
|
|
302
308
|
}
|
|
303
|
-
.
|
|
309
|
+
._walletItem_6bfi0_1:hover {
|
|
304
310
|
transform: translateY(-1px);
|
|
305
311
|
}
|
|
306
|
-
.
|
|
312
|
+
._walletItem_6bfi0_1 ._content_6bfi0_16 {
|
|
307
313
|
display: flex;
|
|
308
314
|
align-items: center;
|
|
309
315
|
gap: 8px;
|
|
310
316
|
flex: 1;
|
|
311
317
|
}
|
|
312
|
-
.
|
|
318
|
+
._walletItem_6bfi0_1 ._content_6bfi0_16 ._icon_6bfi0_22 {
|
|
313
319
|
width: 32px;
|
|
314
320
|
height: 32px;
|
|
315
321
|
border-radius: 8px;
|
|
@@ -321,18 +327,18 @@
|
|
|
321
327
|
color: white;
|
|
322
328
|
flex-shrink: 0;
|
|
323
329
|
}
|
|
324
|
-
.
|
|
330
|
+
._walletItem_6bfi0_1 ._content_6bfi0_16 ._icon_6bfi0_22 img {
|
|
325
331
|
max-width: 100%;
|
|
326
332
|
max-height: 100%;
|
|
327
333
|
}
|
|
328
|
-
.
|
|
334
|
+
._walletItem_6bfi0_1 ._content_6bfi0_16 ._name_6bfi0_38 {
|
|
329
335
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
330
336
|
font-size: 16px;
|
|
331
337
|
font-weight: 500;
|
|
332
338
|
color: var(--walletkit-text-color);
|
|
333
339
|
line-height: 1.5;
|
|
334
340
|
}
|
|
335
|
-
.
|
|
341
|
+
._walletItem_6bfi0_1 ._badge_6bfi0_45 {
|
|
336
342
|
position: absolute;
|
|
337
343
|
top: -4px;
|
|
338
344
|
right: -4px;
|
|
@@ -345,66 +351,63 @@
|
|
|
345
351
|
white-space: nowrap;
|
|
346
352
|
border: 1px solid;
|
|
347
353
|
}
|
|
348
|
-
.
|
|
354
|
+
._walletItem_6bfi0_1 ._badge_6bfi0_45._installed_6bfi0_58 {
|
|
349
355
|
background: var(--walletkit-background-color-light);
|
|
350
356
|
color: var(--walletkit-text-color);
|
|
351
357
|
border-color: var(--walletkit-border-color-light);
|
|
352
358
|
}
|
|
353
|
-
.
|
|
359
|
+
._walletItem_6bfi0_1 ._badge_6bfi0_45._recent_6bfi0_63 {
|
|
354
360
|
background: #b3ecf9;
|
|
355
361
|
color: #105681;
|
|
356
362
|
border-color: #88ddf4;
|
|
357
363
|
}
|
|
358
|
-
.
|
|
364
|
+
._walletItem_6bfi0_1._disabled_6bfi0_68 {
|
|
359
365
|
opacity: 0.5;
|
|
360
366
|
pointer-events: none;
|
|
361
367
|
}
|
|
368
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72 {
|
|
369
|
+
cursor: default;
|
|
370
|
+
pointer-events: none;
|
|
371
|
+
}
|
|
372
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72:hover {
|
|
373
|
+
transform: none;
|
|
374
|
+
}
|
|
375
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72 ._icon_6bfi0_22,
|
|
376
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72 ._name_6bfi0_38,
|
|
377
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72 ._badge_6bfi0_45 {
|
|
378
|
+
background-color: var(--walletkit-border-color);
|
|
379
|
+
animation: _walletItemPulse_6bfi0_1 1.2s ease-in-out infinite;
|
|
380
|
+
}
|
|
381
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72 ._name_6bfi0_38 {
|
|
382
|
+
display: inline-block;
|
|
383
|
+
width: 88px;
|
|
384
|
+
height: 16px;
|
|
385
|
+
border-radius: 4px;
|
|
386
|
+
}
|
|
387
|
+
._walletItem_6bfi0_1._skeleton_6bfi0_72 ._badge_6bfi0_45 {
|
|
388
|
+
width: 64px;
|
|
389
|
+
height: 22px;
|
|
390
|
+
border-color: transparent;
|
|
391
|
+
background: var(--walletkit-border-color);
|
|
392
|
+
}
|
|
393
|
+
@keyframes _walletItemPulse_6bfi0_1 {
|
|
394
|
+
0%,
|
|
395
|
+
100% {
|
|
396
|
+
opacity: 0.38;
|
|
397
|
+
}
|
|
398
|
+
50% {
|
|
399
|
+
opacity: 0.72;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
362
402
|
@media (max-width: 500px) {
|
|
363
|
-
.
|
|
403
|
+
._walletItem_6bfi0_1 {
|
|
364
404
|
padding: 16px 12px;
|
|
365
405
|
}
|
|
366
|
-
.
|
|
406
|
+
._walletItem_6bfi0_1 ._content_6bfi0_16 ._icon_6bfi0_22 {
|
|
367
407
|
width: 40px;
|
|
368
408
|
height: 40px;
|
|
369
409
|
}
|
|
370
410
|
}
|
|
371
|
-
:root,
|
|
372
|
-
:root[data-theme="light"] {
|
|
373
|
-
--walletkit-primary-color: #1890ff;
|
|
374
|
-
--walletkit-success-color: #52c41a;
|
|
375
|
-
--walletkit-warning-color: #faad14;
|
|
376
|
-
--walletkit-error-color: #f5222d;
|
|
377
|
-
--walletkit-text-color: rgba(0, 0, 0, 0.88);
|
|
378
|
-
--walletkit-text-color-secondary: rgba(0, 0, 0, 0.65);
|
|
379
|
-
--walletkit-text-color-disabled: rgba(0, 0, 0, 0.25);
|
|
380
|
-
--walletkit-border-color: #d9d9d9;
|
|
381
|
-
--walletkit-border-color-light: #f0f0f0;
|
|
382
|
-
--walletkit-background-color: #ffffff;
|
|
383
|
-
--walletkit-background-color-light: #fafafa;
|
|
384
|
-
--walletkit-border-radius: 6px;
|
|
385
|
-
--walletkit-font-family: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
|
|
386
|
-
--walletkit-background-color-list: rgba(0, 0, 0, 0.03);
|
|
387
|
-
--walletkit-modal-background-color: rgba(255, 255, 255, 0.1);
|
|
388
|
-
--walletkit-modal-background-filter: blur(25px);
|
|
389
|
-
}
|
|
390
|
-
:root[data-theme="dark"] {
|
|
391
|
-
--walletkit-primary-color: #1890ff;
|
|
392
|
-
--walletkit-success-color: #73d13d;
|
|
393
|
-
--walletkit-warning-color: #ffc53d;
|
|
394
|
-
--walletkit-error-color: #ff4d4f;
|
|
395
|
-
--walletkit-text-color: rgba(255, 255, 255, 0.88);
|
|
396
|
-
--walletkit-text-color-secondary: rgba(255, 255, 255, 0.65);
|
|
397
|
-
--walletkit-text-color-disabled: rgba(255, 255, 255, 0.25);
|
|
398
|
-
--walletkit-border-color: #434343;
|
|
399
|
-
--walletkit-border-color-light: #303030;
|
|
400
|
-
--walletkit-background-color: #141414;
|
|
401
|
-
--walletkit-background-color-light: #1f1f1f;
|
|
402
|
-
--walletkit-border-radius: 6px;
|
|
403
|
-
--walletkit-font-family: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
|
|
404
|
-
--walletkit-background-color-list: rgba(255, 255, 255, 0.03);
|
|
405
|
-
--walletkit-modal-background-color: rgba(0, 0, 0, 0.8);
|
|
406
|
-
--walletkit-modal-background-filter: blur(5px);
|
|
407
|
-
}
|
|
408
411
|
._container_119qo_1 {
|
|
409
412
|
display: flex;
|
|
410
413
|
flex-direction: column;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { a as t } from "./index-CwrzsL2T.mjs";
|
|
2
|
+
import { T as c } from "./createConnectors-motkSfb8.mjs";
|
|
3
|
+
var s = /* @__PURE__ */ ((o) => (o.mainnet = "0x2b6653dc", o.nile = "0xcd8690dc", o.shasta = "0x94a9059e", o))(s || {});
|
|
4
|
+
class d extends c {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
var n, r;
|
|
7
|
+
const a = (n = window.okxwallet) == null ? void 0 : n.tronLink;
|
|
8
|
+
super(e, (r = window.okxwallet) == null ? void 0 : r.tronLink), this.connectorType = a ? t.Installed : t.More;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ChainIds,
|
|
13
|
+
d as default
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-AJZEVNvC.js"),i=require("./createConnectors-Cv_QLnqK.js"),c=()=>{if(typeof window>"u")return null;const e=window.bitkeep,r=(e==null?void 0:e.tronLink)??(e==null?void 0:e.tron)??null;return r?r.tronWeb||!(e!=null&&e.tronWeb)?r:new Proxy(r,{get(n,t,u){return t==="tronWeb"?e.tronWeb:Reflect.get(n,t,u)}}):null};class s extends i.TronConnector{constructor(r){const n=c();super(r,n),this.connectorType=n?o.ConnectorType.Installed:o.ConnectorType.More}}exports.default=s;exports.getBitgetTronProvider=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-AJZEVNvC.js"),s=require("./createConnectors-Cv_QLnqK.js");var t=(e=>(e.mainnet="0x2b6653dc",e.nile="0xcd8690dc",e.shasta="0x94a9059e",e))(t||{});class a extends s.TronConnector{constructor(c){var n,o;const i=(n=window.okxwallet)==null?void 0:n.tronLink;super(c,(o=window.okxwallet)==null?void 0:o.tronLink),this.connectorType=i?r.ConnectorType.Installed:r.ConnectorType.More}}exports.ChainIds=t;exports.default=a;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { a as e } from "./index-CwrzsL2T.mjs";
|
|
2
|
+
import { T as u } from "./createConnectors-motkSfb8.mjs";
|
|
3
|
+
const c = () => {
|
|
4
|
+
if (typeof window > "u") return null;
|
|
5
|
+
const r = window.bitkeep, n = (r == null ? void 0 : r.tronLink) ?? (r == null ? void 0 : r.tron) ?? null;
|
|
6
|
+
return n ? n.tronWeb || !(r != null && r.tronWeb) ? n : new Proxy(n, {
|
|
7
|
+
get(o, t, s) {
|
|
8
|
+
return t === "tronWeb" ? r.tronWeb : Reflect.get(o, t, s);
|
|
9
|
+
}
|
|
10
|
+
}) : null;
|
|
11
|
+
};
|
|
12
|
+
class d extends u {
|
|
13
|
+
constructor(n) {
|
|
14
|
+
const o = c();
|
|
15
|
+
super(n, o), this.connectorType = o ? e.Installed : e.More;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
d as default,
|
|
20
|
+
c as getBitgetTronProvider
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=e=>(e??"").replace(/[_\s-]/g,"").toLowerCase(),r=(e,o)=>{const a=new Set(o.map(t).filter(Boolean));return e.filter(l=>!a.has(t(l.name)))};exports.catalogNotDiscovered=r;exports.normalizeWalletKey=t;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web3jskit/walletkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A React component library for wallet functionality",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"**/*.less",
|
|
10
10
|
"**/*.css",
|
|
11
|
-
"./dist/style.css"
|
|
11
|
+
"./dist/style.css",
|
|
12
|
+
"./dist/base.css"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|
|
@@ -17,6 +18,8 @@
|
|
|
17
18
|
"require": "./dist/index.js"
|
|
18
19
|
},
|
|
19
20
|
"./umd": "./dist/index.umd.js",
|
|
21
|
+
"./dist/base.css": "./dist/base.css",
|
|
22
|
+
"./base.css": "./dist/base.css",
|
|
20
23
|
"./dist/style.css": "./dist/style.css",
|
|
21
24
|
"./style.css": "./dist/style.css"
|
|
22
25
|
},
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
],
|
|
28
31
|
"scripts": {
|
|
29
32
|
"dev": "vite",
|
|
30
|
-
"build": "vite build",
|
|
33
|
+
"build": "vite build && node scripts/build-styles.js",
|
|
31
34
|
"build:umd": "vite build --config vite.umd.config.ts",
|
|
32
35
|
"build:umd:min": "WALLETKIT_UMD_MINIFY=1 vite build --config vite.umd.config.ts",
|
|
33
36
|
"build:all": "npm run build && npm run build:umd",
|
|
@@ -51,11 +54,13 @@
|
|
|
51
54
|
"devDependencies": {
|
|
52
55
|
"@react-spring/web": "^9.7.1",
|
|
53
56
|
"@rollup/plugin-terser": "^0.4.4",
|
|
57
|
+
"@solana/wallet-standard-features": "^1.5.0",
|
|
54
58
|
"@tanstack/react-query": "^5.0.0",
|
|
55
|
-
"@web3jskit/dapp": "latest",
|
|
56
59
|
"@types/react": "^19.1.0",
|
|
57
60
|
"@types/react-dom": "^19.0.0",
|
|
58
61
|
"@vitejs/plugin-react": "^4.2.1",
|
|
62
|
+
"@wallet-standard/app": "^1.1.1",
|
|
63
|
+
"@wallet-standard/features": "^1.1.1",
|
|
59
64
|
"abitype": "1.0.6",
|
|
60
65
|
"bignumber.js": "^9.1.1",
|
|
61
66
|
"bs58": "^5.0.0",
|
|
@@ -68,6 +73,7 @@
|
|
|
68
73
|
"i18next": "^22.4.13",
|
|
69
74
|
"i18next-browser-languagedetector": "^7.0.1",
|
|
70
75
|
"i18next-xhr-backend": "^3.2.2",
|
|
76
|
+
"jsdom": "^25.0.1",
|
|
71
77
|
"less": "^4.2.0",
|
|
72
78
|
"lit": "^3.2.1",
|
|
73
79
|
"mipd": "0.0.7",
|
|
@@ -84,6 +90,7 @@
|
|
|
84
90
|
"viem": "^2.0.5",
|
|
85
91
|
"vite": "^5.0.10",
|
|
86
92
|
"vite-plugin-dts": "^3.7.0",
|
|
93
|
+
"vitest": "^2.1.9",
|
|
87
94
|
"zustand": "^4.3.9"
|
|
88
95
|
},
|
|
89
96
|
"keywords": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BZdLbTeL.js");class v extends r.BaseConnector{constructor(h){var i,a;const g=(i=window.phantom)==null?void 0:i.bitcoin;super(h,g),this.addEventListener=async()=>{(await this.getProvider()).on("accountsChanged",s=>{var n;const e=(n=s[0])==null?void 0:n.address;e?this.connectSuccess(e):this.disconnect()})},this.removeEventListener=async()=>{(await this.getProvider()).off("accountsChanged",()=>{})},this.connect=async()=>{const t=await this.getProvider();try{this.beforeConnecting();const e=(await t.requestAccounts())[0].address;return this.connectSuccess(e),this.addEventListener(),e}catch(s){throw this.connectError(),s}},this.disconnect=async()=>{this.resetStatus(),this.removeEventListener()},this.getAccounts=async()=>(await(await this.getProvider()).requestAccounts())[0],this.signMessage=async()=>{const t=new TextEncoder().encode("hello world"),s=await this.getAccounts().catch(()=>{}),e=s==null?void 0:s.address,{signature:n}=await this.getProvider().signMessage(e,t);return n},this.getPublicKey=async()=>{const t=await this.getAccounts().catch(()=>{});return console.log("accounts",t),t.publicKey},this.signAndBroadcastPsbt=async(t,s)=>{console.log(t);const e=await this.getProvider();console.log("provider",e);const n=o=>Uint8Array.from(o.match(/.{1,2}/g).map(u=>parseInt(u,16))),c=await this.getAccounts().catch(()=>{}),d=c==null?void 0:c.address;console.log("address",d);try{const o=await e.signPSBT(n(t),{inputsToSign:[{address:d,signingIndexes:[0,1,3],sigHash:0}]});console.log("签名成功:",o)}catch(o){throw console.error("签名失败:",o),new Error("Broadcast method not supported by Phantom provider")}},this.__onAccountsChanged=()=>{},this.__onChainChanged=()=>{},this.__onConnect=()=>{},this.reconnection=async()=>{},this.__onDisconnect=()=>{},this.connectorType=(a=window.phantom)!=null&&a.bitcoin?r.ConnectorType.Installed:r.ConnectorType.More}}exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-BZdLbTeL.js");class d extends i.BaseConnector{constructor(a){const r=window.bitkeep.unisat;super(a,r),this.addEventListener=async()=>{(await this.getProvider()).on("accountsChanged",t=>{const e=t[0];e?this.connectSuccess(e):this.disconnect()})},this.removeEventListener=async()=>{(await this.getProvider()).removeListener("accountsChanged",()=>{})},this.connect=async()=>{const s=await this.getProvider();try{this.beforeConnecting();const t=await s.requestAccounts();console.log("accounts",t);const e=t[0];return this.connectSuccess(e),this.addEventListener(),e}catch(t){throw this.connectError(),t}},this.disconnect=async()=>{this.resetStatus(),this.removeEventListener()},this.getAccounts=async()=>(await(await this.getProvider()).getAccounts())[0],this.signPsbt=async(s,t)=>await(await this.getProvider()).signPsbt(s,t),this.pushPsbt=async s=>await(await this.getProvider()).pushPsbt(s),this.signMessage=async(s,t)=>await(await this.getProvider()).signMessage(s,t),this.sendBitcoin=async(s,t,e)=>{const o=await this.getProvider();console.log("provider",o),console.log("toAddress, satoshis, options",s,t,e);try{let n=await o.sendBitcoin(s,t);return console.log(n),n}catch(n){console.error(n)}},this.signAndBroadcastPsbt=async(s,t)=>{const e=await this.getProvider();console.log("provider",e);const o=await this.getAccounts().catch(()=>{});console.log("address",o);const n={autoFinalize:!0,...t||{}};console.log("signOptions",n),!n.toSignInputs&&o&&(n.toSignInputs=[{index:0,address:o}]);const c=await e.signPsbt(s,n);return console.log("signed PsbtHex",c),await e.pushPsbt(c)},this.__onAccountsChanged=()=>{},this.__onChainChanged=()=>{},this.__onConnect=()=>{},this.reconnection=async()=>{},this.__onDisconnect=()=>{},this.connectorType=r?i.ConnectorType.Installed:i.ConnectorType.More}}exports.default=d;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WalletInfo } from '../../types/connector';
|
|
2
|
-
import { SolConnector } from '../_sol/solConnector';
|
|
3
|
-
|
|
4
|
-
declare global {
|
|
5
|
-
interface Window {
|
|
6
|
-
bitkeep: any;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export default class BitgetSolConnector extends SolConnector {
|
|
10
|
-
constructor(info: WalletInfo);
|
|
11
|
-
sendTransaction: (transaction: any, options?: any) => Promise<any>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=solConnector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solConnector.d.ts","sourceRoot":"","sources":["../../../../src/core/connectors/Bitget_Wallet/solConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,OAAO,EAAE,GAAG,CAAC;KACb;CACD;AAED,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;gBAC/C,IAAI,EAAE,UAAU;IAYnB,eAAe,GAAU,aAAa,GAAG,EAAE,UAAS,GAAQ,kBAGnE;CACF"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { GelWalletConnector } from '../_gelwallet/gelWalletConnector';
|
|
2
|
-
import { WalletInfo, IContractOptions } from '../../types/connector';
|
|
3
|
-
|
|
4
|
-
export default class GelWalletEvmConnector extends GelWalletConnector {
|
|
5
|
-
constructor(info: WalletInfo);
|
|
6
|
-
getChainId: () => Promise<number>;
|
|
7
|
-
connect: (chainId?: string) => Promise<string>;
|
|
8
|
-
reconnection: () => Promise<void>;
|
|
9
|
-
disconnect: () => Promise<void>;
|
|
10
|
-
signMessage: (message: string) => Promise<string>;
|
|
11
|
-
signTransaction: (tx: any) => Promise<string>;
|
|
12
|
-
sendTransaction: (tx: any) => Promise<string>;
|
|
13
|
-
multipleRequests: (requests: {
|
|
14
|
-
method: string;
|
|
15
|
-
params?: string[];
|
|
16
|
-
}[]) => Promise<any[]>;
|
|
17
|
-
waitForTransactionReceipt: (hash: string, timeout?: number) => Promise<any>;
|
|
18
|
-
readContract: (params: IContractOptions) => Promise<unknown>;
|
|
19
|
-
writeContract: (params: IContractOptions) => Promise<any>;
|
|
20
|
-
multicall: (params: IContractOptions[], option: {
|
|
21
|
-
multicallAddress: string;
|
|
22
|
-
multicallAbi: any;
|
|
23
|
-
rpcUrl: string;
|
|
24
|
-
}) => Promise<any[] | Response>;
|
|
25
|
-
switchNetwork: (chainId: number) => Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=evmConnector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evmConnector.d.ts","sourceRoot":"","sources":["../../../../src/core/connectors/GelWallet/evmConnector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM/E,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,kBAAkB;gBACxD,IAAI,EAAE,UAAU;IAI5B,UAAU,wBAIR;IAEF,OAAO,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC,CAsBjD;IACF,YAAY,sBAkBV;IACF,UAAU,sBAER;IAGF,WAAW,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC,CAOpD;IACF,eAAe,GAAU,IAAI,GAAG,KAAG,OAAO,CAAC,MAAM,CAAC,CAahD;IACF,eAAe,GAAU,IAAI,GAAG,KAAG,OAAO,CAAC,MAAM,CAAC,CAOhD;IACF,gBAAgB,GAAU,UAAU;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,KAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAO1F;IAEF,yBAAyB,GAAU,MAAM,MAAM,EAAE,gBAAe,kBAsB9D;IAEF,YAAY,GAAU,QAAQ,gBAAgB,sBAyC5C;IAEF,aAAa,GAAU,QAAQ,gBAAgB,kBAwB7C;IAEF,SAAS,GACR,QAAQ,gBAAgB,EAAE,EAC1B,QAAQ;QACP,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,EAAE,GAAG,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KACf,+BAgBA;IAKF,aAAa,GAAU,SAAS,MAAM,mBA4BpC;CACF"}
|