@web3jskit/walletkit 0.1.5 → 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.
Files changed (170) hide show
  1. package/package.json +2 -2
  2. package/dist/package.json +0 -46
  3. package/dist/src/assets/svg/dataBase.d.ts +0 -4
  4. package/dist/src/assets/svg/dataBase.js +0 -5
  5. package/dist/src/assets/svg/dataBase.js.map +0 -1
  6. package/dist/src/assets/svg/metaMaskWallet.d.ts +0 -1
  7. package/dist/src/assets/svg/metaMaskWallet.js +0 -35
  8. package/dist/src/assets/svg/metaMaskWallet.js.map +0 -1
  9. package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +0 -1
  10. package/dist/src/components/ConnectButton/ConnectedInfo.js +0 -13
  11. package/dist/src/components/ConnectButton/ConnectedInfo.js.map +0 -1
  12. package/dist/src/components/ConnectButton/index.d.ts +0 -8
  13. package/dist/src/components/ConnectButton/index.js +0 -16
  14. package/dist/src/components/ConnectButton/index.js.map +0 -1
  15. package/dist/src/components/Connecting/index.d.ts +0 -6
  16. package/dist/src/components/Connecting/index.js +0 -11
  17. package/dist/src/components/Connecting/index.js.map +0 -1
  18. package/dist/src/components/Connecting/style.d.ts +0 -2
  19. package/dist/src/components/Connecting/style.js +0 -52
  20. package/dist/src/components/Connecting/style.js.map +0 -1
  21. package/dist/src/components/GetWallet/index.d.ts +0 -7
  22. package/dist/src/components/GetWallet/index.js +0 -21
  23. package/dist/src/components/GetWallet/index.js.map +0 -1
  24. package/dist/src/components/GetWallet/style.d.ts +0 -2
  25. package/dist/src/components/GetWallet/style.js +0 -117
  26. package/dist/src/components/GetWallet/style.js.map +0 -1
  27. package/dist/src/components/Header/ModalHeader.d.ts +0 -8
  28. package/dist/src/components/Header/ModalHeader.js +0 -9
  29. package/dist/src/components/Header/ModalHeader.js.map +0 -1
  30. package/dist/src/components/Header/style.d.ts +0 -2
  31. package/dist/src/components/Header/style.js +0 -74
  32. package/dist/src/components/Header/style.js.map +0 -1
  33. package/dist/src/components/Icon/index.d.ts +0 -23
  34. package/dist/src/components/Icon/index.js +0 -48
  35. package/dist/src/components/Icon/index.js.map +0 -1
  36. package/dist/src/components/Introduce/index.d.ts +0 -6
  37. package/dist/src/components/Introduce/index.js +0 -11
  38. package/dist/src/components/Introduce/index.js.map +0 -1
  39. package/dist/src/components/Introduce/style.d.ts +0 -2
  40. package/dist/src/components/Introduce/style.js +0 -97
  41. package/dist/src/components/Introduce/style.js.map +0 -1
  42. package/dist/src/components/Modal/ConnectModal.d.ts +0 -7
  43. package/dist/src/components/Modal/ConnectModal.js +0 -121
  44. package/dist/src/components/Modal/ConnectModal.js.map +0 -1
  45. package/dist/src/components/Modal/WalletInfoModal.d.ts +0 -1
  46. package/dist/src/components/Modal/WalletInfoModal.js +0 -46
  47. package/dist/src/components/Modal/WalletInfoModal.js.map +0 -1
  48. package/dist/src/components/Modal/index.d.ts +0 -13
  49. package/dist/src/components/Modal/index.js +0 -52
  50. package/dist/src/components/Modal/index.js.map +0 -1
  51. package/dist/src/components/Modal/style.d.ts +0 -5
  52. package/dist/src/components/Modal/style.js +0 -187
  53. package/dist/src/components/Modal/style.js.map +0 -1
  54. package/dist/src/components/SVGs/backArrowSvg.d.ts +0 -2
  55. package/dist/src/components/SVGs/backArrowSvg.js +0 -4
  56. package/dist/src/components/SVGs/backArrowSvg.js.map +0 -1
  57. package/dist/src/components/SVGs/closeSvg.d.ts +0 -2
  58. package/dist/src/components/SVGs/closeSvg.js +0 -4
  59. package/dist/src/components/SVGs/closeSvg.js.map +0 -1
  60. package/dist/src/components/SVGs/copiedSvg.d.ts +0 -2
  61. package/dist/src/components/SVGs/copiedSvg.js +0 -4
  62. package/dist/src/components/SVGs/copiedSvg.js.map +0 -1
  63. package/dist/src/components/SVGs/copySvg.d.ts +0 -2
  64. package/dist/src/components/SVGs/copySvg.js +0 -4
  65. package/dist/src/components/SVGs/copySvg.js.map +0 -1
  66. package/dist/src/components/SVGs/exitSvg.d.ts +0 -2
  67. package/dist/src/components/SVGs/exitSvg.js +0 -4
  68. package/dist/src/components/SVGs/exitSvg.js.map +0 -1
  69. package/dist/src/components/SVGs/metamaskQrCode.d.ts +0 -2
  70. package/dist/src/components/SVGs/metamaskQrCode.js +0 -4
  71. package/dist/src/components/SVGs/metamaskQrCode.js.map +0 -1
  72. package/dist/src/components/SVGs/spinSvg.d.ts +0 -4
  73. package/dist/src/components/SVGs/spinSvg.js +0 -4
  74. package/dist/src/components/SVGs/spinSvg.js.map +0 -1
  75. package/dist/src/components/SVGs/vectorSvg.d.ts +0 -2
  76. package/dist/src/components/SVGs/vectorSvg.js +0 -4
  77. package/dist/src/components/SVGs/vectorSvg.js.map +0 -1
  78. package/dist/src/components/Text/index.d.ts +0 -18
  79. package/dist/src/components/Text/index.js +0 -32
  80. package/dist/src/components/Text/index.js.map +0 -1
  81. package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +0 -12
  82. package/dist/src/components/WalletKitProvider/ChainProvider.js +0 -59
  83. package/dist/src/components/WalletKitProvider/ChainProvider.js.map +0 -1
  84. package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +0 -13
  85. package/dist/src/components/WalletKitProvider/I18nProvider.js +0 -42
  86. package/dist/src/components/WalletKitProvider/I18nProvider.js.map +0 -1
  87. package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +0 -8
  88. package/dist/src/components/WalletKitProvider/ThemeProvider.js +0 -13
  89. package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +0 -1
  90. package/dist/src/components/WalletKitProvider/index.d.ts +0 -16
  91. package/dist/src/components/WalletKitProvider/index.js +0 -14
  92. package/dist/src/components/WalletKitProvider/index.js.map +0 -1
  93. package/dist/src/components/WalletList/index.d.ts +0 -8
  94. package/dist/src/components/WalletList/index.js +0 -15
  95. package/dist/src/components/WalletList/index.js.map +0 -1
  96. package/dist/src/components/WalletList/style.d.ts +0 -2
  97. package/dist/src/components/WalletList/style.js +0 -102
  98. package/dist/src/components/WalletList/style.js.map +0 -1
  99. package/dist/src/components/WalletTriggerButton/index.d.ts +0 -12
  100. package/dist/src/components/WalletTriggerButton/index.js +0 -32
  101. package/dist/src/components/WalletTriggerButton/index.js.map +0 -1
  102. package/dist/src/components/WalletTriggerButton/style.d.ts +0 -2
  103. package/dist/src/components/WalletTriggerButton/style.js +0 -63
  104. package/dist/src/components/WalletTriggerButton/style.js.map +0 -1
  105. package/dist/src/errors/index.d.ts +0 -2
  106. package/dist/src/errors/index.js +0 -6
  107. package/dist/src/errors/index.js.map +0 -1
  108. package/dist/src/hooks/useWalletKit.d.ts +0 -73
  109. package/dist/src/hooks/useWalletKit.js +0 -38
  110. package/dist/src/hooks/useWalletKit.js.map +0 -1
  111. package/dist/src/index.d.ts +0 -8
  112. package/dist/src/index.js +0 -9
  113. package/dist/src/index.js.map +0 -1
  114. package/dist/src/locals/i18n.d.ts +0 -2
  115. package/dist/src/locals/i18n.js +0 -17
  116. package/dist/src/locals/i18n.js.map +0 -1
  117. package/dist/src/locals/languages/en.json +0 -30
  118. package/dist/src/locals/languages/zh.json +0 -30
  119. package/dist/src/locals/resources.d.ts +0 -66
  120. package/dist/src/locals/resources.js +0 -11
  121. package/dist/src/locals/resources.js.map +0 -1
  122. package/dist/src/modals/connectModal/index.d.ts +0 -0
  123. package/dist/src/modals/connectModal/index.js +0 -2
  124. package/dist/src/modals/connectModal/index.js.map +0 -1
  125. package/dist/src/stores/SlotsWalletStore.d.ts +0 -18
  126. package/dist/src/stores/SlotsWalletStore.js +0 -33
  127. package/dist/src/stores/SlotsWalletStore.js.map +0 -1
  128. package/dist/src/stores/index.d.ts +0 -27
  129. package/dist/src/stores/index.js +0 -25
  130. package/dist/src/stores/index.js.map +0 -1
  131. package/dist/src/stores/modalStore.d.ts +0 -17
  132. package/dist/src/stores/modalStore.js +0 -41
  133. package/dist/src/stores/modalStore.js.map +0 -1
  134. package/dist/src/styled/index.d.ts +0 -17
  135. package/dist/src/styled/index.js +0 -76
  136. package/dist/src/styled/index.js.map +0 -1
  137. package/dist/src/test/getwalletprovider.test.d.ts +0 -1
  138. package/dist/src/test/getwalletprovider.test.js +0 -10
  139. package/dist/src/test/getwalletprovider.test.js.map +0 -1
  140. package/dist/src/test/setup.d.ts +0 -1
  141. package/dist/src/test/setup.js +0 -7
  142. package/dist/src/test/setup.js.map +0 -1
  143. package/dist/src/theme/index.d.ts +0 -53
  144. package/dist/src/theme/index.js +0 -133
  145. package/dist/src/theme/index.js.map +0 -1
  146. package/dist/src/types/configType.d.ts +0 -2
  147. package/dist/src/types/configType.js +0 -2
  148. package/dist/src/types/configType.js.map +0 -1
  149. package/dist/src/types/error.d.ts +0 -7
  150. package/dist/src/types/error.js +0 -5
  151. package/dist/src/types/error.js.map +0 -1
  152. package/dist/src/types/slotsType.d.ts +0 -23
  153. package/dist/src/types/slotsType.js +0 -2
  154. package/dist/src/types/slotsType.js.map +0 -1
  155. package/dist/src/types/store.d.ts +0 -2
  156. package/dist/src/types/store.js +0 -2
  157. package/dist/src/types/store.js.map +0 -1
  158. package/dist/src/utils/formatter.d.ts +0 -1
  159. package/dist/src/utils/formatter.js +0 -6
  160. package/dist/src/utils/formatter.js.map +0 -1
  161. package/dist/src/utils/generateAvatar.d.ts +0 -4
  162. package/dist/src/utils/generateAvatar.js +0 -32
  163. package/dist/src/utils/generateAvatar.js.map +0 -1
  164. package/dist/src/wallets/GelWallet/index.d.ts +0 -0
  165. package/dist/src/wallets/GelWallet/index.js +0 -2
  166. package/dist/src/wallets/GelWallet/index.js.map +0 -1
  167. package/dist/src/wallets/SlotsWallets/index.d.ts +0 -3
  168. package/dist/src/wallets/SlotsWallets/index.js +0 -26
  169. package/dist/src/wallets/SlotsWallets/index.js.map +0 -1
  170. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1,102 +0,0 @@
1
- import { styled } from 'styled-components';
2
- const WalletListContainer = styled.div `
3
- display: flex;
4
- flex-direction: column;
5
- font-family: Manrope;
6
- color: ${({ theme }) => theme.textColor1};
7
- height: 100%;
8
-
9
- .walletList {
10
- display: flex;
11
- flex-direction: column;
12
- padding: 10px 20px;
13
- gap: 20px;
14
- flex: 1;
15
- overflow: auto;
16
-
17
- .walletItem {
18
- display: flex;
19
- align-items: center;
20
- }
21
-
22
- img {
23
- width: 28px;
24
- height: 28px;
25
- flex-shrink: 0;
26
- margin-right: 10px;
27
- border-radius: 6px;
28
- }
29
-
30
- .name {
31
- font-size: 14px;
32
- font-weight: 700;
33
- line-height: 14px;
34
- color: ${({ theme }) => theme.textColor};
35
- }
36
-
37
- .description {
38
- margin-top: 10px;
39
- font-size: 12px;
40
- font-weight: 500;
41
- line-height: 14px;
42
- color: ${({ theme }) => theme.textColor3};
43
- }
44
-
45
- .button {
46
- display: inline-block;
47
- margin-left: auto;
48
- padding: 11px 16px;
49
- color: ${({ theme }) => theme.buttonColor};
50
- background: ${({ theme }) => theme.buttonBg};
51
- font-size: 14px;
52
- font-weight: 700;
53
- line-height: 14px;
54
- text-align: center;
55
- border-radius: 8px;
56
- box-sizing: border-box;
57
- cursor: pointer;
58
- height: 36px;
59
- }
60
- }
61
-
62
- .question {
63
- margin-left: 42px;
64
- margin-bottom: 10px;
65
- font-size: 16px;
66
- font-weight: 700;
67
- line-height: 16px;
68
- color: ${({ theme }) => theme.textColor4};
69
- }
70
-
71
- .answer {
72
- margin-left: 42px;
73
- margin-bottom: 47px;
74
- font-size: 16px;
75
- font-weight: 400;
76
- line-height: 16px;
77
- color: ${({ theme }) => theme.textColor4};
78
- }
79
-
80
- @media (max-width: 768px) {
81
- .walletList {
82
- padding: 10px 28px 0;
83
- min-height: 237px;
84
- max-height: 237px;
85
- overflow: auto;
86
-
87
- .button {
88
- font-size: 12px;
89
- }
90
- }
91
-
92
- .question {
93
- margin: 10px 25px;
94
- }
95
-
96
- .answer {
97
- margin: 0 25px 75px;
98
- }
99
- }
100
- `;
101
- export default WalletListContainer;
102
- //# sourceMappingURL=style.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/components/WalletList/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;UAI5B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA4B7B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;;;;;;;;YAQ9B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;YAO/B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;iBAC3B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;;;;;;;;;;;;;;;WAkBnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;;;WAS/B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAuBzC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { ISlotsConnector } from '../../types/slotsType';
3
- export interface IWalletTriggerButton {
4
- connector: any;
5
- onConnect: (address: string) => void;
6
- onGetWallet?: () => void;
7
- }
8
- export interface IWalletSlotTriggerButton {
9
- slotsConnector: ISlotsConnector;
10
- }
11
- export declare const WalletTriggerButton: React.FC<IWalletTriggerButton>;
12
- export declare const WalletSlotTriggerButton: React.FC<IWalletSlotTriggerButton>;
@@ -1,32 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React, { useMemo } from 'react';
4
- import Text from '../Text';
5
- import { FlexBox } from '../../styled';
6
- import Icon from '../Icon';
7
- import useSlotsWalletStore from '../../stores/SlotsWalletStore';
8
- import WalletItem from './style';
9
- import { useWalletKit } from '../../hooks/useWalletKit';
10
- import { ConnectorType } from '@web3jskit/wallethelper';
11
- export const WalletTriggerButton = ({ connector, onConnect, onGetWallet }) => {
12
- const { connectStatus, currentChainType, currentConnector, isConnecting } = useWalletKit();
13
- const disabled = useMemo(() => {
14
- return currentConnector?.chainType === currentChainType && connectStatus === 'connected';
15
- }, [connectStatus, currentConnector, currentChainType]);
16
- const handleConnect = async () => {
17
- if (connector?.connectorType === ConnectorType.More) {
18
- return onGetWallet?.();
19
- }
20
- if (disabled)
21
- return;
22
- const address = await connector.connect();
23
- typeof onConnect === 'function' && onConnect(address);
24
- };
25
- return (_jsx(WalletItem, { onClick: handleConnect, className: disabled ? 'disabled' : typeof isConnecting === 'object' && isConnecting.name === connector.name ? 'active' : '', children: _jsxs(FlexBox, { className: 'gap-10', children: [_jsx(Icon, { src: connector.icon || '' }), _jsx(Text, { text: connector.name?.replaceAll('_', ' ') || '', className: connector.connectorType === ConnectorType.Installed ? 'installed' : '' })] }) }));
26
- };
27
- export const WalletSlotTriggerButton = ({ slotsConnector }) => {
28
- const useAddConnector = useSlotsWalletStore((state) => state.addConnector);
29
- useAddConnector(slotsConnector);
30
- return (_jsx(WalletItem, { children: _jsxs(FlexBox, { className: 'gap-10', children: [_jsx(Icon, { src: slotsConnector.walletIcon }), _jsx(Text, { text: slotsConnector.walletName })] }) }));
31
- };
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/WalletTriggerButton/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAEhE,OAAO,UAAU,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAWxD,MAAM,CAAC,MAAM,mBAAmB,GAAmC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IAC5G,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC;IAC3F,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC7B,OAAO,gBAAgB,EAAE,SAAS,KAAK,gBAAgB,IAAI,aAAa,KAAK,WAAW,CAAC;IAC1F,CAAC,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACxD,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;QAChC,IAAI,SAAS,EAAE,aAAa,KAAK,aAAa,CAAC,IAAI,EAAE,CAAC;YACrD,OAAO,WAAW,EAAE,EAAE,CAAC;QACxB,CAAC;QACD,IAAI,QAAQ;YAAE,OAAO;QAErB,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;QAC1C,OAAO,SAAS,KAAK,UAAU,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC,CAAC;IACF,OAAO,CACN,KAAC,UAAU,IACV,OAAO,EAAE,aAAa,EACtB,SAAS,EACR,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,YAGjH,MAAC,OAAO,IAAC,SAAS,EAAE,QAAQ,aAC3B,KAAC,IAAI,IAAC,GAAG,EAAE,SAAS,CAAC,IAAI,IAAI,EAAE,GAAI,EACnC,KAAC,IAAI,IACJ,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,EAChD,SAAS,EAAE,SAAS,CAAC,aAAa,KAAK,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAChF,IACO,GACE,CACb,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAuC,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE;IACjG,MAAM,eAAe,GAAG,mBAAmB,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAChF,eAAe,CAAC,cAAc,CAAC,CAAC;IAChC,OAAO,CACN,KAAC,UAAU,cACV,MAAC,OAAO,IAAC,SAAS,EAAE,QAAQ,aAC3B,KAAC,IAAI,IAAC,GAAG,EAAE,cAAc,CAAC,UAAU,GAAI,EACxC,KAAC,IAAI,IAAC,IAAI,EAAE,cAAc,CAAC,UAAU,GAAI,IAChC,GACE,CACb,CAAC;AACH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const WalletItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- export default WalletItem;
@@ -1,63 +0,0 @@
1
- import { styled } from 'styled-components';
2
- const WalletItem = styled.div `
3
- display: flex;
4
- padding: 4px 14px;
5
- border-radius: 8px;
6
- cursor: pointer;
7
- flex-shrink: 0;
8
- box-sizing: border-box;
9
- user-select: none;
10
- margin: 0 -14px;
11
-
12
- img {
13
- width: 28px;
14
- height: 28px;
15
- border-radius: 6px;
16
- }
17
-
18
- &:hover {
19
- background: ${({ theme }) => theme.itemHoverBg};
20
- }
21
-
22
- &.active {
23
- background: ${({ theme }) => theme.itemActiveBg};
24
- }
25
-
26
- &.disabled {
27
- pointer-events: none;
28
- background: none;
29
- }
30
-
31
- @media (max-width: 768px) {
32
- width: 86px;
33
- padding: 4px 12px;
34
- justify-content: center;
35
- margin: 0;
36
-
37
- > div {
38
- box-sizing: border-box;
39
- flex-direction: column;
40
- align-items: center;
41
-
42
- img {
43
- width: 36px;
44
- height: 36px;
45
- }
46
-
47
- > div {
48
- line-height: 14px;
49
- text-align: center;
50
-
51
- span {
52
- font-size: 12px;
53
- }
54
- }
55
- }
56
-
57
- .installed span {
58
- color: ${({ theme }) => theme.blue};
59
- }
60
- }
61
- `;
62
- export default WalletItem;
63
- //# sourceMappingURL=style.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/components/WalletTriggerButton/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;gBAiBb,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;;gBAIhC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmCrC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI;;;CAGpC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type ErrorMessage } from '../types/error';
2
- export declare const UserRejectError: ErrorMessage;
@@ -1,6 +0,0 @@
1
- import { ErrorCode } from '../types/error';
2
- export const UserRejectError = {
3
- code: ErrorCode.UserReject,
4
- message: 'User reject'
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC5C,IAAI,EAAE,SAAS,CAAC,UAAU;IAC1B,OAAO,EAAE,aAAa;CACtB,CAAC"}
@@ -1,73 +0,0 @@
1
- import { type WalletHelperState } from '@web3jskit/wallethelper';
2
- import { type WalletKitState } from '../stores';
3
- import type { Connector } from '@web3jskit/wallethelper/dist/src/core/types/connector';
4
- type WalletKitStoreState = WalletHelperState & WalletKitState;
5
- type WalletKit = WalletKitStoreState & {
6
- connect: () => Promise<Connector>;
7
- showWalletInfo: () => void;
8
- closeWalletInfo: () => void;
9
- };
10
- export declare const useWalletKit: () => {
11
- connect: () => Promise<unknown>;
12
- showWalletInfo: () => void;
13
- closeWalletInfo: () => void;
14
- isConnecting: {
15
- icon: string;
16
- name: string;
17
- } | boolean;
18
- supportWallets: import("@web3jskit/wallethelper").SupportWallet[];
19
- setSupportWallets: (wallets: import("@web3jskit/wallethelper").SupportWallet[]) => void;
20
- connectors: Connector[];
21
- getConnectors: () => any[];
22
- currentConnector: Connector | null;
23
- currentConnectorName: string;
24
- getCurrentConnector: () => Connector | null;
25
- setCurrentConnector: (connector: Connector) => void;
26
- provider: any;
27
- getProvider: () => Promise<any>;
28
- setProvider: (provider: any) => void;
29
- currentChainType: import("@web3jskit/type").ChainType;
30
- getCurrentChainType: () => import("@web3jskit/type").ChainType;
31
- setChainType: (chainType: import("@web3jskit/type").ChainType) => void;
32
- currentNetworkId: number;
33
- currentNetwork: import("@web3jskit/wallethelper").NetworkInfo | null;
34
- getCurrentNetwork: () => import("@web3jskit/wallethelper").NetworkInfo | null;
35
- setCurrentNetwork: (network: import("@web3jskit/wallethelper").NetworkInfo) => void;
36
- connectStatus: import("@web3jskit/wallethelper").ConnectStatus;
37
- getConnectStatus: () => import("@web3jskit/wallethelper").ConnectStatus;
38
- setConnectStatus: (status: import("@web3jskit/wallethelper").ConnectStatus) => void;
39
- walletAddress: string;
40
- getWalletAddress: () => string;
41
- setWalletAddress: (address: string) => void;
42
- resetStatus: () => void;
43
- getConnectorProxy: () => any;
44
- disconnect: () => Promise<void>;
45
- signMessage: (message: string) => Promise<any>;
46
- signTransaction: (transaction: any) => Promise<any>;
47
- sendTransaction: (transaction: any) => Promise<any>;
48
- waitForTransactionReceipt: (hash: string, timeout?: number) => Promise<any>;
49
- readContract: (params: import("@web3jskit/wallethelper/dist/src/core/types/connector").IContractOptions) => Promise<any>;
50
- writeContract: (params: import("@web3jskit/wallethelper/dist/src/core/types/connector").IContractOptions) => Promise<any>;
51
- multipleRequest: (requests: {
52
- method: string;
53
- params?: any[];
54
- }[]) => Promise<any[]>;
55
- multicall: (requests: import("@web3jskit/wallethelper/dist/src/core/types/connector").IContractOptions[]) => Promise<any[]>;
56
- switchNetwork: (chainId: number) => Promise<any>;
57
- chains: Array<any>;
58
- setChains: (chains: Array<any>) => void;
59
- language: import("..").Locals;
60
- setLanguage: (language: import("..").Locals) => void;
61
- theme: import("..").Theme;
62
- toggleTheme: () => void;
63
- avatar: {
64
- text: string;
65
- bg: string;
66
- } | null;
67
- setAvatar: (avatar: {
68
- text: string;
69
- bg: string;
70
- }) => void;
71
- };
72
- export declare const getWalletKit: () => WalletKit;
73
- export {};
@@ -1,38 +0,0 @@
1
- import { walletHelperStore } from '@web3jskit/wallethelper';
2
- import { walletKitStore } from '../stores';
3
- import { useModalStore } from '../stores/modalStore';
4
- const enhancedWalletKit = (walletKit) => {
5
- const { connect, showWalletInfoModal, closeWalletInfoModal } = useModalStore.getState();
6
- const showWalletInfo = () => {
7
- if (walletKit.currentConnector) {
8
- showWalletInfoModal();
9
- }
10
- };
11
- const closeWalletInfo = () => {
12
- closeWalletInfoModal();
13
- };
14
- return {
15
- ...walletKit,
16
- connect,
17
- showWalletInfo,
18
- closeWalletInfo
19
- };
20
- };
21
- export const useWalletKit = () => {
22
- const walletHelperStates = walletHelperStore((states) => states);
23
- const walletKitStates = walletKitStore((states) => states);
24
- return enhancedWalletKit({
25
- ...walletHelperStates,
26
- ...walletKitStates
27
- });
28
- };
29
- export const getWalletKit = () => {
30
- const walletHelperStates = walletHelperStore.getState();
31
- const walletKitStates = walletKitStore.getState();
32
- const exportStates = enhancedWalletKit({
33
- ...walletHelperStates,
34
- ...walletKitStates
35
- });
36
- return exportStates;
37
- };
38
- //# sourceMappingURL=useWalletKit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWalletKit.js","sourceRoot":"","sources":["../../../src/hooks/useWalletKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAuB,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAWrD,MAAM,iBAAiB,GAAG,CAAC,SAA8B,EAAE,EAAE;IAC5D,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC;IACxF,MAAM,cAAc,GAAG,GAAG,EAAE;QAC3B,IAAI,SAAS,CAAC,gBAAgB,EAAE,CAAC;YAChC,mBAAmB,EAAE,CAAC;QACvB,CAAC;IACF,CAAC,CAAC;IACF,MAAM,eAAe,GAAG,GAAG,EAAE;QAC5B,oBAAoB,EAAE,CAAC;IACxB,CAAC,CAAC;IACF,OAAO;QACN,GAAG,SAAS;QACZ,OAAO;QACP,cAAc;QACd,eAAe;KACf,CAAC;AACH,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAEtE,MAAM,eAAe,GAAG,cAAc,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAEhE,OAAO,iBAAiB,CAAC;QACxB,GAAG,kBAAkB;QAErB,GAAG,eAAe;KACL,CAAC,CAAC;AACjB,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IACxD,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,EAAE,CAAC;IAElD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACtC,GAAG,kBAAkB;QACrB,GAAG,eAAe;KACL,CAAC,CAAC;IAEhB,OAAO,YAAyB,CAAC;AAClC,CAAC,CAAC"}
@@ -1,8 +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';
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
@@ -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"}
@@ -1,2 +0,0 @@
1
- import i18n from 'i18next';
2
- export default i18n;
@@ -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,11 +0,0 @@
1
- import en from './languages/en.json';
2
- import zh from './languages/zh.json';
3
- export const resources = {
4
- en: {
5
- translation: en
6
- },
7
- zh: {
8
- translation: zh
9
- }
10
- };
11
- //# sourceMappingURL=resources.js.map
@@ -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,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -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 {};