@web3jskit/walletkit 0.1.4 → 0.1.6
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 +131 -152
- package/package.json +2 -2
- package/dist/package.json +0 -46
- package/dist/src/assets/svg/dataBase.d.ts +0 -4
- package/dist/src/assets/svg/dataBase.js +0 -5
- package/dist/src/assets/svg/dataBase.js.map +0 -1
- package/dist/src/assets/svg/metaMaskWallet.d.ts +0 -1
- package/dist/src/assets/svg/metaMaskWallet.js +0 -35
- package/dist/src/assets/svg/metaMaskWallet.js.map +0 -1
- package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +0 -1
- package/dist/src/components/ConnectButton/ConnectedInfo.js +0 -13
- package/dist/src/components/ConnectButton/ConnectedInfo.js.map +0 -1
- package/dist/src/components/ConnectButton/index.d.ts +0 -8
- package/dist/src/components/ConnectButton/index.js +0 -16
- package/dist/src/components/ConnectButton/index.js.map +0 -1
- package/dist/src/components/Connecting/index.d.ts +0 -6
- package/dist/src/components/Connecting/index.js +0 -11
- package/dist/src/components/Connecting/index.js.map +0 -1
- package/dist/src/components/Connecting/style.d.ts +0 -2
- package/dist/src/components/Connecting/style.js +0 -52
- package/dist/src/components/Connecting/style.js.map +0 -1
- package/dist/src/components/GetWallet/index.d.ts +0 -7
- package/dist/src/components/GetWallet/index.js +0 -21
- package/dist/src/components/GetWallet/index.js.map +0 -1
- package/dist/src/components/GetWallet/style.d.ts +0 -2
- package/dist/src/components/GetWallet/style.js +0 -117
- package/dist/src/components/GetWallet/style.js.map +0 -1
- package/dist/src/components/Header/ModalHeader.d.ts +0 -8
- package/dist/src/components/Header/ModalHeader.js +0 -9
- package/dist/src/components/Header/ModalHeader.js.map +0 -1
- package/dist/src/components/Header/style.d.ts +0 -2
- package/dist/src/components/Header/style.js +0 -73
- package/dist/src/components/Header/style.js.map +0 -1
- package/dist/src/components/Icon/index.d.ts +0 -23
- package/dist/src/components/Icon/index.js +0 -48
- package/dist/src/components/Icon/index.js.map +0 -1
- package/dist/src/components/Introduce/index.d.ts +0 -6
- package/dist/src/components/Introduce/index.js +0 -10
- package/dist/src/components/Introduce/index.js.map +0 -1
- package/dist/src/components/Introduce/style.d.ts +0 -2
- package/dist/src/components/Introduce/style.js +0 -72
- package/dist/src/components/Introduce/style.js.map +0 -1
- package/dist/src/components/Modal/ConnectModal.d.ts +0 -7
- package/dist/src/components/Modal/ConnectModal.js +0 -114
- package/dist/src/components/Modal/ConnectModal.js.map +0 -1
- package/dist/src/components/Modal/WalletInfoModal.d.ts +0 -1
- package/dist/src/components/Modal/WalletInfoModal.js +0 -46
- package/dist/src/components/Modal/WalletInfoModal.js.map +0 -1
- package/dist/src/components/Modal/index.d.ts +0 -13
- package/dist/src/components/Modal/index.js +0 -52
- package/dist/src/components/Modal/index.js.map +0 -1
- package/dist/src/components/Modal/style.d.ts +0 -5
- package/dist/src/components/Modal/style.js +0 -186
- package/dist/src/components/Modal/style.js.map +0 -1
- package/dist/src/components/SVGs/backArrowSvg.d.ts +0 -2
- package/dist/src/components/SVGs/backArrowSvg.js +0 -4
- package/dist/src/components/SVGs/backArrowSvg.js.map +0 -1
- package/dist/src/components/SVGs/closeSvg.d.ts +0 -2
- package/dist/src/components/SVGs/closeSvg.js +0 -4
- package/dist/src/components/SVGs/closeSvg.js.map +0 -1
- package/dist/src/components/SVGs/copiedSvg.d.ts +0 -2
- package/dist/src/components/SVGs/copiedSvg.js +0 -4
- package/dist/src/components/SVGs/copiedSvg.js.map +0 -1
- package/dist/src/components/SVGs/copySvg.d.ts +0 -2
- package/dist/src/components/SVGs/copySvg.js +0 -4
- package/dist/src/components/SVGs/copySvg.js.map +0 -1
- package/dist/src/components/SVGs/exitSvg.d.ts +0 -2
- package/dist/src/components/SVGs/exitSvg.js +0 -4
- package/dist/src/components/SVGs/exitSvg.js.map +0 -1
- package/dist/src/components/SVGs/metamaskQrCode.d.ts +0 -2
- package/dist/src/components/SVGs/metamaskQrCode.js +0 -4
- package/dist/src/components/SVGs/metamaskQrCode.js.map +0 -1
- package/dist/src/components/SVGs/spinSvg.d.ts +0 -4
- package/dist/src/components/SVGs/spinSvg.js +0 -4
- package/dist/src/components/SVGs/spinSvg.js.map +0 -1
- package/dist/src/components/Text/index.d.ts +0 -18
- package/dist/src/components/Text/index.js +0 -32
- package/dist/src/components/Text/index.js.map +0 -1
- package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +0 -12
- package/dist/src/components/WalletKitProvider/ChainProvider.js +0 -56
- package/dist/src/components/WalletKitProvider/ChainProvider.js.map +0 -1
- package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +0 -13
- package/dist/src/components/WalletKitProvider/I18nProvider.js +0 -42
- package/dist/src/components/WalletKitProvider/I18nProvider.js.map +0 -1
- package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +0 -8
- package/dist/src/components/WalletKitProvider/ThemeProvider.js +0 -13
- package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +0 -1
- package/dist/src/components/WalletKitProvider/index.d.ts +0 -16
- package/dist/src/components/WalletKitProvider/index.js +0 -14
- package/dist/src/components/WalletKitProvider/index.js.map +0 -1
- package/dist/src/components/WalletList/index.d.ts +0 -8
- package/dist/src/components/WalletList/index.js +0 -16
- package/dist/src/components/WalletList/index.js.map +0 -1
- package/dist/src/components/WalletList/style.d.ts +0 -2
- package/dist/src/components/WalletList/style.js +0 -102
- package/dist/src/components/WalletList/style.js.map +0 -1
- package/dist/src/components/WalletTriggerButton/index.d.ts +0 -11
- package/dist/src/components/WalletTriggerButton/index.js +0 -28
- package/dist/src/components/WalletTriggerButton/index.js.map +0 -1
- package/dist/src/components/WalletTriggerButton/style.d.ts +0 -2
- package/dist/src/components/WalletTriggerButton/style.js +0 -52
- package/dist/src/components/WalletTriggerButton/style.js.map +0 -1
- package/dist/src/errors/index.d.ts +0 -2
- package/dist/src/errors/index.js +0 -6
- package/dist/src/errors/index.js.map +0 -1
- package/dist/src/hooks/useWalletKit.d.ts +0 -70
- package/dist/src/hooks/useWalletKit.js +0 -38
- package/dist/src/hooks/useWalletKit.js.map +0 -1
- package/dist/src/index.d.ts +0 -8
- package/dist/src/index.js +0 -9
- package/dist/src/index.js.map +0 -1
- package/dist/src/locals/i18n.d.ts +0 -2
- package/dist/src/locals/i18n.js +0 -17
- package/dist/src/locals/i18n.js.map +0 -1
- package/dist/src/locals/languages/en.json +0 -30
- package/dist/src/locals/languages/zh.json +0 -30
- package/dist/src/locals/resources.d.ts +0 -66
- package/dist/src/locals/resources.js +0 -11
- package/dist/src/locals/resources.js.map +0 -1
- package/dist/src/modals/connectModal/index.d.ts +0 -0
- package/dist/src/modals/connectModal/index.js +0 -2
- package/dist/src/modals/connectModal/index.js.map +0 -1
- package/dist/src/stores/SlotsWalletStore.d.ts +0 -18
- package/dist/src/stores/SlotsWalletStore.js +0 -33
- package/dist/src/stores/SlotsWalletStore.js.map +0 -1
- package/dist/src/stores/index.d.ts +0 -27
- package/dist/src/stores/index.js +0 -25
- package/dist/src/stores/index.js.map +0 -1
- package/dist/src/stores/modalStore.d.ts +0 -17
- package/dist/src/stores/modalStore.js +0 -41
- package/dist/src/stores/modalStore.js.map +0 -1
- package/dist/src/styled/index.d.ts +0 -17
- package/dist/src/styled/index.js +0 -76
- package/dist/src/styled/index.js.map +0 -1
- package/dist/src/test/getwalletprovider.test.d.ts +0 -1
- package/dist/src/test/getwalletprovider.test.js +0 -10
- package/dist/src/test/getwalletprovider.test.js.map +0 -1
- package/dist/src/test/setup.d.ts +0 -1
- package/dist/src/test/setup.js +0 -7
- package/dist/src/test/setup.js.map +0 -1
- package/dist/src/theme/index.d.ts +0 -53
- package/dist/src/theme/index.js +0 -92
- package/dist/src/theme/index.js.map +0 -1
- package/dist/src/types/configType.d.ts +0 -2
- package/dist/src/types/configType.js +0 -2
- package/dist/src/types/configType.js.map +0 -1
- package/dist/src/types/error.d.ts +0 -7
- package/dist/src/types/error.js +0 -5
- package/dist/src/types/error.js.map +0 -1
- package/dist/src/types/slotsType.d.ts +0 -23
- package/dist/src/types/slotsType.js +0 -2
- package/dist/src/types/slotsType.js.map +0 -1
- package/dist/src/types/store.d.ts +0 -2
- package/dist/src/types/store.js +0 -2
- package/dist/src/types/store.js.map +0 -1
- package/dist/src/utils/formatter.d.ts +0 -1
- package/dist/src/utils/formatter.js +0 -6
- package/dist/src/utils/formatter.js.map +0 -1
- package/dist/src/utils/generateAvatar.d.ts +0 -4
- package/dist/src/utils/generateAvatar.js +0 -32
- package/dist/src/utils/generateAvatar.js.map +0 -1
- package/dist/src/wallets/GelWallet/index.d.ts +0 -0
- package/dist/src/wallets/GelWallet/index.js +0 -2
- package/dist/src/wallets/GelWallet/index.js.map +0 -1
- package/dist/src/wallets/SlotsWallets/index.d.ts +0 -3
- package/dist/src/wallets/SlotsWallets/index.js +0 -26
- package/dist/src/wallets/SlotsWallets/index.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
package/dist/src/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { SupportWallet, SupportedNetworks } from '@web3jskit/wallethelper';
|
|
2
|
-
export * from './components/WalletKitProvider';
|
|
3
|
-
export * from './components/ConnectButton';
|
|
4
|
-
export * from './types/configType';
|
|
5
|
-
export * from './types/slotsType';
|
|
6
|
-
export { createSlots } from './wallets/SlotsWallets/index';
|
|
7
|
-
export { WalletSlotTriggerButton } from './components/WalletTriggerButton/index';
|
|
8
|
-
export { useWalletKit, getWalletKit } from './hooks/useWalletKit';
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/src/locals/i18n.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import i18n from 'i18next';
|
|
2
|
-
import { initReactI18next } from 'react-i18next';
|
|
3
|
-
import { resources } from './resources';
|
|
4
|
-
i18n.use(initReactI18next).init({
|
|
5
|
-
resources,
|
|
6
|
-
react: {
|
|
7
|
-
useSuspense: true
|
|
8
|
-
},
|
|
9
|
-
fallbackLng: 'en',
|
|
10
|
-
preload: ['zh-CN', 'en', 'zh', 'en-US'],
|
|
11
|
-
keySeparator: false,
|
|
12
|
-
interpolation: {
|
|
13
|
-
escapeValue: false
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export default i18n;
|
|
17
|
-
//# sourceMappingURL=i18n.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/locals/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;IAC/B,SAAS;IACT,KAAK,EAAE;QACN,WAAW,EAAE,IAAI;KACjB;IACD,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC;IACvC,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE;QACd,WAAW,EAAE,KAAK;KAClB;CACD,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "wallet",
|
|
3
|
-
"connectWallet": "Connect Wallet",
|
|
4
|
-
"introduceQuestion": "What is a wallet?",
|
|
5
|
-
"introduceAnswer": "Your Digital Asset Home",
|
|
6
|
-
"introduceDetail": "Wallets are used to send, receive, store, and display digital assets such as Ethereum and NFTs.",
|
|
7
|
-
"getWallet": "Get Wallet",
|
|
8
|
-
"learnMore": "Learn More",
|
|
9
|
-
"getWalletTitle": "Get a wallet",
|
|
10
|
-
"getWalletTips": "Mobile Wallet and Expansion,",
|
|
11
|
-
"getWalletQuestion": "Isn't that what you're looking for?",
|
|
12
|
-
"getWalletAnswer": "Select a wallet on the left to start using different wallet providers.",
|
|
13
|
-
"forChrome": "for Chrome",
|
|
14
|
-
"chromeDescription": "Access your wallet directly from your favorite web browser.",
|
|
15
|
-
"addToChrome": "Add to Chrome",
|
|
16
|
-
"forMobile": "for Mobile",
|
|
17
|
-
"mobileDescription": "Explore the world of Ethereum with a mobile wallet.",
|
|
18
|
-
"getMobileApp": "Get the App",
|
|
19
|
-
"getAppTip": "Scan with your phone to download for iOS or Android",
|
|
20
|
-
"get": "Get",
|
|
21
|
-
"continue": "Continue",
|
|
22
|
-
"opening": "Opening",
|
|
23
|
-
"confirmConnection": "Confirm connection in extension",
|
|
24
|
-
"copyAddress": "Copy Address",
|
|
25
|
-
"copied": "Copied!",
|
|
26
|
-
"disConnect": "Disconnect",
|
|
27
|
-
"installed": "Installed",
|
|
28
|
-
"run": "Run",
|
|
29
|
-
"more": "More"
|
|
30
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "钱包",
|
|
3
|
-
"connectWallet": "连接钱包",
|
|
4
|
-
"introduceQuestion": "什么是钱包?",
|
|
5
|
-
"introduceAnswer": "您的数字资产之家",
|
|
6
|
-
"introduceDetail": "钱包用于发送、接收、存储和展示数字资产,例如以太坊和 NFT。",
|
|
7
|
-
"getWallet": "获取钱包",
|
|
8
|
-
"learnMore": "了解更多",
|
|
9
|
-
"getWalletTitle": "获取钱包",
|
|
10
|
-
"getWalletTips": "移动钱包和扩展程序",
|
|
11
|
-
"getWalletQuestion": "不是你要找的吗?",
|
|
12
|
-
"getWalletAnswer": "在左侧选择一个钱包以开始使用不同的钱包提供商。",
|
|
13
|
-
"forChrome": "为 Chrome",
|
|
14
|
-
"chromeDescription": "从您最喜欢的网络浏览器直接访问您的钱包。",
|
|
15
|
-
"addToChrome": "添加到 Chrome",
|
|
16
|
-
"forMobile": "用于移动",
|
|
17
|
-
"mobileDescription": "使用移动钱包探索以太坊的世界。",
|
|
18
|
-
"getMobileApp": "获取应用",
|
|
19
|
-
"getAppTip": "用手机扫描下载 iOS 或 Android",
|
|
20
|
-
"get": "获取",
|
|
21
|
-
"continue": "继续",
|
|
22
|
-
"opening": "打开",
|
|
23
|
-
"confirmConnection": "在扩展程序中确认连接",
|
|
24
|
-
"copyAddress": "复制地址",
|
|
25
|
-
"copied": "已复制!",
|
|
26
|
-
"disConnect": "断开连接",
|
|
27
|
-
"installed": "已安装",
|
|
28
|
-
"run": "流行",
|
|
29
|
-
"more": "更多"
|
|
30
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export declare const resources: {
|
|
2
|
-
en: {
|
|
3
|
-
translation: {
|
|
4
|
-
title: string;
|
|
5
|
-
connectWallet: string;
|
|
6
|
-
introduceQuestion: string;
|
|
7
|
-
introduceAnswer: string;
|
|
8
|
-
introduceDetail: string;
|
|
9
|
-
getWallet: string;
|
|
10
|
-
learnMore: string;
|
|
11
|
-
getWalletTitle: string;
|
|
12
|
-
getWalletTips: string;
|
|
13
|
-
getWalletQuestion: string;
|
|
14
|
-
getWalletAnswer: string;
|
|
15
|
-
forChrome: string;
|
|
16
|
-
chromeDescription: string;
|
|
17
|
-
addToChrome: string;
|
|
18
|
-
forMobile: string;
|
|
19
|
-
mobileDescription: string;
|
|
20
|
-
getMobileApp: string;
|
|
21
|
-
getAppTip: string;
|
|
22
|
-
get: string;
|
|
23
|
-
continue: string;
|
|
24
|
-
opening: string;
|
|
25
|
-
confirmConnection: string;
|
|
26
|
-
copyAddress: string;
|
|
27
|
-
copied: string;
|
|
28
|
-
disConnect: string;
|
|
29
|
-
installed: string;
|
|
30
|
-
run: string;
|
|
31
|
-
more: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
zh: {
|
|
35
|
-
translation: {
|
|
36
|
-
title: string;
|
|
37
|
-
connectWallet: string;
|
|
38
|
-
introduceQuestion: string;
|
|
39
|
-
introduceAnswer: string;
|
|
40
|
-
introduceDetail: string;
|
|
41
|
-
getWallet: string;
|
|
42
|
-
learnMore: string;
|
|
43
|
-
getWalletTitle: string;
|
|
44
|
-
getWalletTips: string;
|
|
45
|
-
getWalletQuestion: string;
|
|
46
|
-
getWalletAnswer: string;
|
|
47
|
-
forChrome: string;
|
|
48
|
-
chromeDescription: string;
|
|
49
|
-
addToChrome: string;
|
|
50
|
-
forMobile: string;
|
|
51
|
-
mobileDescription: string;
|
|
52
|
-
getMobileApp: string;
|
|
53
|
-
getAppTip: string;
|
|
54
|
-
get: string;
|
|
55
|
-
continue: string;
|
|
56
|
-
opening: string;
|
|
57
|
-
confirmConnection: string;
|
|
58
|
-
copyAddress: string;
|
|
59
|
-
copied: string;
|
|
60
|
-
disConnect: string;
|
|
61
|
-
installed: string;
|
|
62
|
-
run: string;
|
|
63
|
-
more: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/locals/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrC,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,EAAE,EAAE;QACH,WAAW,EAAE,EAAE;KACf;IACD,EAAE,EAAE;QACH,WAAW,EAAE,EAAE;KACf;CACD,CAAC"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modals/connectModal/index.tsx"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ISlotsConnector } from '../types/slotsType';
|
|
2
|
-
export interface ISlotsWallets {
|
|
3
|
-
walletConnectors: {
|
|
4
|
-
[key: string]: ISlotsConnector;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
declare const useSlotsWalletStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<ISlotsWallets>, "persist"> & {
|
|
8
|
-
persist: {
|
|
9
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<ISlotsWallets, unknown>>) => void;
|
|
10
|
-
clearStorage: () => void;
|
|
11
|
-
rehydrate: () => Promise<void> | void;
|
|
12
|
-
hasHydrated: () => boolean;
|
|
13
|
-
onHydrate: (fn: (state: ISlotsWallets) => void) => () => void;
|
|
14
|
-
onFinishHydration: (fn: (state: ISlotsWallets) => void) => () => void;
|
|
15
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<ISlotsWallets, unknown>>;
|
|
16
|
-
};
|
|
17
|
-
}>;
|
|
18
|
-
export default useSlotsWalletStore;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
3
|
-
const useSlotsWalletStore = create(persist((set, get) => ({
|
|
4
|
-
walletConnectors: {},
|
|
5
|
-
addConnector({ walletName, walletIcon, connector, uuid, connectorNamespace }) {
|
|
6
|
-
return set(state => {
|
|
7
|
-
return {
|
|
8
|
-
walletConnectors: {
|
|
9
|
-
...state.walletConnectors,
|
|
10
|
-
[uuid]: { walletName, walletIcon, connector, uuid, connectorNamespace }
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
removeConnector(uuid) {
|
|
16
|
-
return set(state => {
|
|
17
|
-
if (get().walletConnectors[uuid]) {
|
|
18
|
-
return {
|
|
19
|
-
walletConnectors: Object.fromEntries(Object.entries(state.walletConnectors).filter(([k]) => k !== uuid))
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
return { walletConnectors: { ...state.walletConnectors } };
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
clearConnectors() {
|
|
26
|
-
return set(() => ({ walletConnectors: {} }));
|
|
27
|
-
}
|
|
28
|
-
}), {
|
|
29
|
-
name: 'WALLET_KIT_SLOTS',
|
|
30
|
-
storage: createJSONStorage(() => localStorage)
|
|
31
|
-
}));
|
|
32
|
-
export default useSlotsWalletStore;
|
|
33
|
-
//# sourceMappingURL=SlotsWalletStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlotsWalletStore.js","sourceRoot":"","sources":["../../../src/stores/SlotsWalletStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAShE,MAAM,mBAAmB,GAAG,MAAM,CACjC,OAAO,CACN,CAAC,GAAG,EAAE,GAAwB,EAAE,EAAE,CAAC,CAAC;IACnC,gBAAgB,EAAE,EAAE;IACpB,YAAY,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAmB;QAC5F,OAAO,GAAG,CAAC,KAAK,CAAC,EAAE;YAClB,OAAO;gBACN,gBAAgB,EAAE;oBACjB,GAAG,KAAK,CAAC,gBAAgB;oBACzB,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE;iBACvE;aACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,eAAe,CAAC,IAAY;QAC3B,OAAO,GAAG,CAAC,KAAK,CAAC,EAAE;YAClB,IAAI,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClC,OAAO;oBACN,gBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;iBACxG,CAAC;YACH,CAAC;YACD,OAAO,EAAE,gBAAgB,EAAE,EAAE,GAAG,KAAK,CAAC,gBAAgB,EAAE,EAAE,CAAC;QAC5D,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,eAAe;QACd,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;CACD,CAAC,EACF;IACC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;CAC9C,CACD,CACD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Locals, Theme } from '../types/configType';
|
|
2
|
-
type Avatar = {
|
|
3
|
-
text: string;
|
|
4
|
-
bg: string;
|
|
5
|
-
};
|
|
6
|
-
export interface WalletKitState {
|
|
7
|
-
chains: Array<any>;
|
|
8
|
-
setChains: (chains: Array<any>) => void;
|
|
9
|
-
language: Locals;
|
|
10
|
-
setLanguage: (language: Locals) => void;
|
|
11
|
-
theme: Theme;
|
|
12
|
-
toggleTheme: () => void;
|
|
13
|
-
avatar: Avatar | null;
|
|
14
|
-
setAvatar: (avatar: Avatar) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const walletKitStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<WalletKitState>, "persist"> & {
|
|
17
|
-
persist: {
|
|
18
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<WalletKitState, unknown>>) => void;
|
|
19
|
-
clearStorage: () => void;
|
|
20
|
-
rehydrate: () => Promise<void> | void;
|
|
21
|
-
hasHydrated: () => boolean;
|
|
22
|
-
onHydrate: (fn: (state: WalletKitState) => void) => () => void;
|
|
23
|
-
onFinishHydration: (fn: (state: WalletKitState) => void) => () => void;
|
|
24
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<WalletKitState, unknown>>;
|
|
25
|
-
};
|
|
26
|
-
}>;
|
|
27
|
-
export {};
|
package/dist/src/stores/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
3
|
-
export const walletKitStore = create()(persist((set, get) => ({
|
|
4
|
-
chains: [],
|
|
5
|
-
setChains(chains) {
|
|
6
|
-
return set(() => ({ chains }));
|
|
7
|
-
},
|
|
8
|
-
language: 'en',
|
|
9
|
-
setLanguage(language) {
|
|
10
|
-
return set(() => ({ language }));
|
|
11
|
-
},
|
|
12
|
-
theme: 'lightMode',
|
|
13
|
-
toggleTheme() {
|
|
14
|
-
const { theme } = get();
|
|
15
|
-
return set(() => ({ theme: theme === 'darkMode' ? 'lightMode' : 'darkMode' }));
|
|
16
|
-
},
|
|
17
|
-
avatar: null,
|
|
18
|
-
setAvatar(avatar) {
|
|
19
|
-
return set(() => ({ avatar }));
|
|
20
|
-
}
|
|
21
|
-
}), {
|
|
22
|
-
name: 'WALLET_KIT_STORE',
|
|
23
|
-
storage: createJSONStorage(() => localStorage)
|
|
24
|
-
}));
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAsBhE,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,EAAkB,CACrD,OAAO,CACN,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IACd,MAAM,EAAE,EAAE;IACV,SAAS,CAAC,MAAkB;QAC3B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,QAAQ,EAAE,IAAI;IACd,WAAW,CAAC,QAAgB;QAC3B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,EAAE,WAAW;IAClB,WAAW;QACV,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,EAAE,CAAC;QACxB,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAChF,CAAC;IAED,MAAM,EAAE,IAAI;IACZ,SAAS,CAAC,MAAc;QACvB,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;CACD,CAAC,EACF;IACC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,iBAAiB,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;CAC9C,CACD,CACD,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { StoreSet, StoreGet } from '../types/store';
|
|
2
|
-
interface ConnectModalData {
|
|
3
|
-
onError: (error: any) => void;
|
|
4
|
-
onConnect: (address: string) => void;
|
|
5
|
-
}
|
|
6
|
-
declare class ModalStore {
|
|
7
|
-
private readonly set;
|
|
8
|
-
private readonly get;
|
|
9
|
-
constructor(set: StoreSet<ModalStore>, get: StoreGet<ModalStore>);
|
|
10
|
-
connectModalData?: ConnectModalData;
|
|
11
|
-
isShowWalletInfoModal: boolean;
|
|
12
|
-
readonly connect: () => Promise<unknown>;
|
|
13
|
-
readonly showWalletInfoModal: () => void;
|
|
14
|
-
readonly closeWalletInfoModal: () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const useModalStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ModalStore>>;
|
|
17
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
class ModalStore {
|
|
3
|
-
constructor(set, get) {
|
|
4
|
-
this.set = set;
|
|
5
|
-
this.get = get;
|
|
6
|
-
this.isShowWalletInfoModal = false;
|
|
7
|
-
this.connect = () => {
|
|
8
|
-
return new Promise((resolve, reject) => {
|
|
9
|
-
const close = () => {
|
|
10
|
-
this.set({
|
|
11
|
-
connectModalData: undefined
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
this.set({
|
|
15
|
-
connectModalData: {
|
|
16
|
-
onError: (error) => {
|
|
17
|
-
close();
|
|
18
|
-
reject(error);
|
|
19
|
-
},
|
|
20
|
-
onConnect: (address) => {
|
|
21
|
-
close();
|
|
22
|
-
resolve(address);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
this.showWalletInfoModal = () => {
|
|
29
|
-
this.set({
|
|
30
|
-
isShowWalletInfoModal: true
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
this.closeWalletInfoModal = () => {
|
|
34
|
-
this.set({
|
|
35
|
-
isShowWalletInfoModal: false
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export const useModalStore = create((set, get) => new ModalStore(set, get));
|
|
41
|
-
//# sourceMappingURL=modalStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modalStore.js","sourceRoot":"","sources":["../../../src/stores/modalStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AASjC,MAAM,UAAU;IACf,YACkB,GAAyB,EAEzB,GAAyB;QAFzB,QAAG,GAAH,GAAG,CAAsB;QAEzB,QAAG,GAAH,GAAG,CAAsB;QAG3C,0BAAqB,GAAY,KAAK,CAAC;QAE9B,YAAO,GAAG,GAAG,EAAE;YAGvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACtC,MAAM,KAAK,GAAG,GAAG,EAAE;oBAClB,IAAI,CAAC,GAAG,CAAC;wBACR,gBAAgB,EAAE,SAAS;qBAC3B,CAAC,CAAC;gBACJ,CAAC,CAAC;gBACF,IAAI,CAAC,GAAG,CAAC;oBACR,gBAAgB,EAAE;wBACjB,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE;4BACvB,KAAK,EAAE,CAAC;4BACR,MAAM,CAAC,KAAK,CAAC,CAAC;wBACf,CAAC;wBACD,SAAS,EAAE,CAAC,OAAe,EAAE,EAAE;4BAC9B,KAAK,EAAE,CAAC;4BACR,OAAO,CAAC,OAAO,CAAC,CAAC;wBAClB,CAAC;qBACD;iBACD,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC;QACO,wBAAmB,GAAG,GAAG,EAAE;YACnC,IAAI,CAAC,GAAG,CAAC;gBACR,qBAAqB,EAAE,IAAI;aAC3B,CAAC,CAAC;QACJ,CAAC,CAAC;QACO,yBAAoB,GAAG,GAAG,EAAE;YACpC,IAAI,CAAC,GAAG,CAAC;gBACR,qBAAqB,EAAE,KAAK;aAC5B,CAAC,CAAC;QACJ,CAAC,CAAC;IApCC,CAAC;CAqCJ;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAa,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const FlexBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const FlexCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const FlexAICenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const FlexJCCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
export declare const FlexJCSpaceBetween: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
-
export declare const FlexJCEnd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
-
export declare const FlexJCStart: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
-
export declare const FlexWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
-
export declare const FlexCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
-
export declare const FlexColAIEnd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
-
export declare const FlexColJCEnd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
-
export declare const FlexCenterCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
-
export declare const FlexJCCenterCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
-
export declare const FlexJCSBCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
-
export declare const FlexJCSBCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
-
export declare const FlexAICenterCol: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
-
export declare const SlotWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/dist/src/styled/index.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { styled } from 'styled-components';
|
|
2
|
-
export const FlexBox = styled.div `
|
|
3
|
-
display: flex;
|
|
4
|
-
position: relative;
|
|
5
|
-
`;
|
|
6
|
-
export const FlexCenter = styled.div `
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
`;
|
|
11
|
-
export const FlexAICenter = styled.div `
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
`;
|
|
15
|
-
export const FlexJCCenter = styled.div `
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
`;
|
|
19
|
-
export const FlexJCSpaceBetween = styled.div `
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
`;
|
|
23
|
-
export const FlexJCEnd = styled.div `
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: flex-end;
|
|
26
|
-
`;
|
|
27
|
-
export const FlexJCStart = styled.div `
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: flex-start;
|
|
30
|
-
`;
|
|
31
|
-
export const FlexWrap = styled.div `
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-wrap: wrap;
|
|
34
|
-
`;
|
|
35
|
-
export const FlexCol = styled.div `
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
`;
|
|
39
|
-
export const FlexColAIEnd = styled.div `
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
align-items: end;
|
|
43
|
-
`;
|
|
44
|
-
export const FlexColJCEnd = styled.div `
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
justify-content: end;
|
|
48
|
-
`;
|
|
49
|
-
export const FlexCenterCol = styled.div `
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: column;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
`;
|
|
55
|
-
export const FlexJCCenterCol = styled.div `
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
`;
|
|
60
|
-
export const FlexJCSBCol = styled.div `
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
justify-content: space-between;
|
|
64
|
-
`;
|
|
65
|
-
export const FlexJCSBCenter = styled.div `
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: space-between;
|
|
69
|
-
`;
|
|
70
|
-
export const FlexAICenterCol = styled.div `
|
|
71
|
-
display: flex;
|
|
72
|
-
flex-direction: column;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
`;
|
|
75
|
-
export const SlotWrapper = styled.div ``;
|
|
76
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGhC,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAInC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGrC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGrC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG3C,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGlC,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGpC,CAAC;AACF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGjC,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGhC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIrC,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIrC,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKtC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIpC,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIvC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { describe, it } from 'vitest';
|
|
2
|
-
describe('getInjectedProvider', () => {
|
|
3
|
-
it('metamask provider', () => {
|
|
4
|
-
console.log('connector');
|
|
5
|
-
});
|
|
6
|
-
it('getInjectedConnector', () => {
|
|
7
|
-
console.log('connector');
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=getwalletprovider.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getwalletprovider.test.js","sourceRoot":"","sources":["../../../src/test/getwalletprovider.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACtC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC5B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC/B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/dist/src/test/setup.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
package/dist/src/test/setup.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/test/setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,SAAS,CAAC,GAAG,EAAE;IACd,OAAO,EAAE,CAAC;AACX,CAAC,CAAC,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const themeStyle: {
|
|
2
|
-
darkMode: {
|
|
3
|
-
textColor: string;
|
|
4
|
-
textColor1: string;
|
|
5
|
-
textColor2: string;
|
|
6
|
-
textColor3: string;
|
|
7
|
-
textColor4: string;
|
|
8
|
-
textColor5: string;
|
|
9
|
-
buttonBg: string;
|
|
10
|
-
buttonColor: string;
|
|
11
|
-
modalBg: string;
|
|
12
|
-
modalSideBg: string;
|
|
13
|
-
itemActiveBg: string;
|
|
14
|
-
itemHoverBg: string;
|
|
15
|
-
blue: string;
|
|
16
|
-
gray: string;
|
|
17
|
-
borderColor: string;
|
|
18
|
-
backArrowColor: string;
|
|
19
|
-
closeBtnBg: string;
|
|
20
|
-
closeBtnColor: string;
|
|
21
|
-
closeBtnHoverBg: string;
|
|
22
|
-
infoBtnBg: string;
|
|
23
|
-
infoBtnHoverBg: string;
|
|
24
|
-
cardBg: string;
|
|
25
|
-
spinColor: string;
|
|
26
|
-
};
|
|
27
|
-
lightMode: {
|
|
28
|
-
textColor: string;
|
|
29
|
-
textColor1: string;
|
|
30
|
-
textColor2: string;
|
|
31
|
-
textColor3: string;
|
|
32
|
-
textColor4: string;
|
|
33
|
-
textColor5: string;
|
|
34
|
-
buttonBg: string;
|
|
35
|
-
buttonColor: string;
|
|
36
|
-
modalBg: string;
|
|
37
|
-
modalSideBg: string;
|
|
38
|
-
itemActiveBg: string;
|
|
39
|
-
itemHoverBg: string;
|
|
40
|
-
blue: string;
|
|
41
|
-
gray: string;
|
|
42
|
-
borderColor: string;
|
|
43
|
-
backArrowColor: string;
|
|
44
|
-
closeBtnBg: string;
|
|
45
|
-
closeBtnColor: string;
|
|
46
|
-
closeBtnHoverBg: string;
|
|
47
|
-
infoBtnBg: string;
|
|
48
|
-
infoBtnHoverBg: string;
|
|
49
|
-
cardBg: string;
|
|
50
|
-
spinColor: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const ThemedGlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|