@web3jskit/walletkit 0.0.1

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 (209) hide show
  1. package/README.md +1 -0
  2. package/dist/package.json +42 -0
  3. package/dist/src/assets/svg/dataBase.d.ts +6 -0
  4. package/dist/src/assets/svg/dataBase.js +7 -0
  5. package/dist/src/assets/svg/dataBase.js.map +1 -0
  6. package/dist/src/assets/svg/metaMaskWallet.d.ts +1 -0
  7. package/dist/src/assets/svg/metaMaskWallet.js +35 -0
  8. package/dist/src/assets/svg/metaMaskWallet.js.map +1 -0
  9. package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +1 -0
  10. package/dist/src/components/ConnectButton/ConnectedInfo.js +12 -0
  11. package/dist/src/components/ConnectButton/ConnectedInfo.js.map +1 -0
  12. package/dist/src/components/ConnectButton/index.d.ts +8 -0
  13. package/dist/src/components/ConnectButton/index.js +15 -0
  14. package/dist/src/components/ConnectButton/index.js.map +1 -0
  15. package/dist/src/components/Connecting/index.d.ts +5 -0
  16. package/dist/src/components/Connecting/index.js +10 -0
  17. package/dist/src/components/Connecting/index.js.map +1 -0
  18. package/dist/src/components/Connecting/style.d.ts +2 -0
  19. package/dist/src/components/Connecting/style.js +52 -0
  20. package/dist/src/components/Connecting/style.js.map +1 -0
  21. package/dist/src/components/GetWallet/index.d.ts +6 -0
  22. package/dist/src/components/GetWallet/index.js +38 -0
  23. package/dist/src/components/GetWallet/index.js.map +1 -0
  24. package/dist/src/components/GetWallet/style.d.ts +2 -0
  25. package/dist/src/components/GetWallet/style.js +115 -0
  26. package/dist/src/components/GetWallet/style.js.map +1 -0
  27. package/dist/src/components/Header/ModalHeader.d.ts +7 -0
  28. package/dist/src/components/Header/ModalHeader.js +10 -0
  29. package/dist/src/components/Header/ModalHeader.js.map +1 -0
  30. package/dist/src/components/Header/style.d.ts +2 -0
  31. package/dist/src/components/Header/style.js +73 -0
  32. package/dist/src/components/Header/style.js.map +1 -0
  33. package/dist/src/components/Icon/index.d.ts +23 -0
  34. package/dist/src/components/Icon/index.js +47 -0
  35. package/dist/src/components/Icon/index.js.map +1 -0
  36. package/dist/src/components/Introduce/index.d.ts +5 -0
  37. package/dist/src/components/Introduce/index.js +9 -0
  38. package/dist/src/components/Introduce/index.js.map +1 -0
  39. package/dist/src/components/Introduce/style.d.ts +2 -0
  40. package/dist/src/components/Introduce/style.js +72 -0
  41. package/dist/src/components/Introduce/style.js.map +1 -0
  42. package/dist/src/components/Modal/ConnectModal.d.ts +8 -0
  43. package/dist/src/components/Modal/ConnectModal.js +82 -0
  44. package/dist/src/components/Modal/ConnectModal.js.map +1 -0
  45. package/dist/src/components/Modal/WalletInfoModal.d.ts +5 -0
  46. package/dist/src/components/Modal/WalletInfoModal.js +40 -0
  47. package/dist/src/components/Modal/WalletInfoModal.js.map +1 -0
  48. package/dist/src/components/Modal/index.d.ts +12 -0
  49. package/dist/src/components/Modal/index.js +53 -0
  50. package/dist/src/components/Modal/index.js.map +1 -0
  51. package/dist/src/components/Modal/style.d.ts +5 -0
  52. package/dist/src/components/Modal/style.js +156 -0
  53. package/dist/src/components/Modal/style.js.map +1 -0
  54. package/dist/src/components/SVGs/backArrowSvg.d.ts +2 -0
  55. package/dist/src/components/SVGs/backArrowSvg.js +4 -0
  56. package/dist/src/components/SVGs/backArrowSvg.js.map +1 -0
  57. package/dist/src/components/SVGs/closeSvg.d.ts +2 -0
  58. package/dist/src/components/SVGs/closeSvg.js +4 -0
  59. package/dist/src/components/SVGs/closeSvg.js.map +1 -0
  60. package/dist/src/components/SVGs/copiedSvg.d.ts +2 -0
  61. package/dist/src/components/SVGs/copiedSvg.js +4 -0
  62. package/dist/src/components/SVGs/copiedSvg.js.map +1 -0
  63. package/dist/src/components/SVGs/copySvg.d.ts +2 -0
  64. package/dist/src/components/SVGs/copySvg.js +4 -0
  65. package/dist/src/components/SVGs/copySvg.js.map +1 -0
  66. package/dist/src/components/SVGs/exitSvg.d.ts +2 -0
  67. package/dist/src/components/SVGs/exitSvg.js +4 -0
  68. package/dist/src/components/SVGs/exitSvg.js.map +1 -0
  69. package/dist/src/components/SVGs/metamaskQrCode.d.ts +2 -0
  70. package/dist/src/components/SVGs/metamaskQrCode.js +4 -0
  71. package/dist/src/components/SVGs/metamaskQrCode.js.map +1 -0
  72. package/dist/src/components/SVGs/spinSvg.d.ts +4 -0
  73. package/dist/src/components/SVGs/spinSvg.js +4 -0
  74. package/dist/src/components/SVGs/spinSvg.js.map +1 -0
  75. package/dist/src/components/Text/index.d.ts +18 -0
  76. package/dist/src/components/Text/index.js +23 -0
  77. package/dist/src/components/Text/index.js.map +1 -0
  78. package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +9 -0
  79. package/dist/src/components/WalletKitProvider/ChainProvider.js +21 -0
  80. package/dist/src/components/WalletKitProvider/ChainProvider.js.map +1 -0
  81. package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +13 -0
  82. package/dist/src/components/WalletKitProvider/I18nProvider.js +41 -0
  83. package/dist/src/components/WalletKitProvider/I18nProvider.js.map +1 -0
  84. package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +8 -0
  85. package/dist/src/components/WalletKitProvider/ThemeProvider.js +12 -0
  86. package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +1 -0
  87. package/dist/src/components/WalletKitProvider/index.d.ts +11 -0
  88. package/dist/src/components/WalletKitProvider/index.js +14 -0
  89. package/dist/src/components/WalletKitProvider/index.js.map +1 -0
  90. package/dist/src/components/WalletList/index.d.ts +7 -0
  91. package/dist/src/components/WalletList/index.js +9 -0
  92. package/dist/src/components/WalletList/index.js.map +1 -0
  93. package/dist/src/components/WalletList/style.d.ts +2 -0
  94. package/dist/src/components/WalletList/style.js +101 -0
  95. package/dist/src/components/WalletList/style.js.map +1 -0
  96. package/dist/src/components/WalletTriggerButton/index.d.ts +10 -0
  97. package/dist/src/components/WalletTriggerButton/index.js +27 -0
  98. package/dist/src/components/WalletTriggerButton/index.js.map +1 -0
  99. package/dist/src/components/WalletTriggerButton/style.d.ts +2 -0
  100. package/dist/src/components/WalletTriggerButton/style.js +50 -0
  101. package/dist/src/components/WalletTriggerButton/style.js.map +1 -0
  102. package/dist/src/hooks/useWalletKit.d.ts +6 -0
  103. package/dist/src/hooks/useWalletKit.js +20 -0
  104. package/dist/src/hooks/useWalletKit.js.map +1 -0
  105. package/dist/src/index.d.ts +8 -0
  106. package/dist/src/index.js +9 -0
  107. package/dist/src/index.js.map +1 -0
  108. package/dist/src/locals/i18n.d.ts +2 -0
  109. package/dist/src/locals/i18n.js +17 -0
  110. package/dist/src/locals/i18n.js.map +1 -0
  111. package/dist/src/locals/languages/en.json +27 -0
  112. package/dist/src/locals/languages/zh.json +27 -0
  113. package/dist/src/locals/resources.d.ts +60 -0
  114. package/dist/src/locals/resources.js +11 -0
  115. package/dist/src/locals/resources.js.map +1 -0
  116. package/dist/src/stores/SlotsWalletStore.d.ts +18 -0
  117. package/dist/src/stores/SlotsWalletStore.js +33 -0
  118. package/dist/src/stores/SlotsWalletStore.js.map +1 -0
  119. package/dist/src/stores/index.d.ts +34 -0
  120. package/dist/src/stores/index.js +41 -0
  121. package/dist/src/stores/index.js.map +1 -0
  122. package/dist/src/styled/index.d.ts +17 -0
  123. package/dist/src/styled/index.js +76 -0
  124. package/dist/src/styled/index.js.map +1 -0
  125. package/dist/src/test/getwalletprovider.test.d.ts +1 -0
  126. package/dist/src/test/getwalletprovider.test.js +10 -0
  127. package/dist/src/test/getwalletprovider.test.js.map +1 -0
  128. package/dist/src/test/setup.d.ts +1 -0
  129. package/dist/src/test/setup.js +7 -0
  130. package/dist/src/test/setup.js.map +1 -0
  131. package/dist/src/theme/index.d.ts +53 -0
  132. package/dist/src/theme/index.js +92 -0
  133. package/dist/src/theme/index.js.map +1 -0
  134. package/dist/src/types/configType.d.ts +2 -0
  135. package/dist/src/types/configType.js +2 -0
  136. package/dist/src/types/configType.js.map +1 -0
  137. package/dist/src/types/slotsType.d.ts +23 -0
  138. package/dist/src/types/slotsType.js +2 -0
  139. package/dist/src/types/slotsType.js.map +1 -0
  140. package/dist/src/utils/formatter.d.ts +1 -0
  141. package/dist/src/utils/formatter.js +6 -0
  142. package/dist/src/utils/formatter.js.map +1 -0
  143. package/dist/src/utils/generateAvatar.d.ts +4 -0
  144. package/dist/src/utils/generateAvatar.js +32 -0
  145. package/dist/src/utils/generateAvatar.js.map +1 -0
  146. package/dist/src/wallets/GelWallet/index.d.ts +0 -0
  147. package/dist/src/wallets/GelWallet/index.js +2 -0
  148. package/dist/src/wallets/GelWallet/index.js.map +1 -0
  149. package/dist/src/wallets/SlotsWallets/index.d.ts +3 -0
  150. package/dist/src/wallets/SlotsWallets/index.js +26 -0
  151. package/dist/src/wallets/SlotsWallets/index.js.map +1 -0
  152. package/dist/tsconfig.build.tsbuildinfo +1 -0
  153. package/package.json +42 -0
  154. package/src/assets/svg/dataBase.ts +17 -0
  155. package/src/assets/svg/metaMaskWallet.ts +35 -0
  156. package/src/components/ConnectButton/ConnectedInfo.tsx +17 -0
  157. package/src/components/ConnectButton/index.tsx +41 -0
  158. package/src/components/Connecting/index.tsx +26 -0
  159. package/src/components/Connecting/style.ts +53 -0
  160. package/src/components/GetWallet/index.tsx +88 -0
  161. package/src/components/GetWallet/style.ts +116 -0
  162. package/src/components/Header/ModalHeader.tsx +24 -0
  163. package/src/components/Header/style.ts +74 -0
  164. package/src/components/Icon/index.tsx +120 -0
  165. package/src/components/Introduce/index.tsx +30 -0
  166. package/src/components/Introduce/style.ts +73 -0
  167. package/src/components/Modal/ConnectModal.tsx +131 -0
  168. package/src/components/Modal/WalletInfoModal.tsx +82 -0
  169. package/src/components/Modal/index.tsx +80 -0
  170. package/src/components/Modal/style.ts +160 -0
  171. package/src/components/SVGs/backArrowSvg.tsx +10 -0
  172. package/src/components/SVGs/closeSvg.tsx +11 -0
  173. package/src/components/SVGs/copiedSvg.tsx +11 -0
  174. package/src/components/SVGs/copySvg.tsx +11 -0
  175. package/src/components/SVGs/exitSvg.tsx +11 -0
  176. package/src/components/SVGs/metamaskQrCode.tsx +393 -0
  177. package/src/components/SVGs/spinSvg.tsx +10 -0
  178. package/src/components/Text/index.tsx +59 -0
  179. package/src/components/WalletKitProvider/ChainProvider.tsx +34 -0
  180. package/src/components/WalletKitProvider/I18nProvider.tsx +52 -0
  181. package/src/components/WalletKitProvider/ThemeProvider.tsx +16 -0
  182. package/src/components/WalletKitProvider/index.tsx +40 -0
  183. package/src/components/WalletList/index.tsx +35 -0
  184. package/src/components/WalletList/style.ts +101 -0
  185. package/src/components/WalletTriggerButton/index.tsx +50 -0
  186. package/src/components/WalletTriggerButton/style.ts +51 -0
  187. package/src/default.d.ts +18 -0
  188. package/src/hooks/useWalletKit.ts +38 -0
  189. package/src/index.ts +8 -0
  190. package/src/locals/i18n.ts +19 -0
  191. package/src/locals/languages/en.json +27 -0
  192. package/src/locals/languages/zh.json +27 -0
  193. package/src/locals/resources.ts +11 -0
  194. package/src/stores/SlotsWalletStore.ts +48 -0
  195. package/src/stores/index.ts +74 -0
  196. package/src/styled/index.ts +79 -0
  197. package/src/test/getwalletprovider.test.ts +9 -0
  198. package/src/test/setup.ts +7 -0
  199. package/src/theme/index.ts +93 -0
  200. package/src/theme/styled.d.ts +30 -0
  201. package/src/types/configType.ts +2 -0
  202. package/src/types/slotsType.ts +23 -0
  203. package/src/utils/formatter.ts +4 -0
  204. package/src/utils/generateAvatar.ts +35 -0
  205. package/src/wallets/GelWallet/index.ts +0 -0
  206. package/src/wallets/SlotsWallets/index.ts +30 -0
  207. package/tsconfig.build.json +4 -0
  208. package/tsconfig.json +55 -0
  209. package/vitest.config.ts +10 -0
@@ -0,0 +1,76 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ import '@testing-library/jest-dom';
2
+ import { cleanup } from '@testing-library/react';
3
+ import { afterEach } from 'vitest';
4
+ afterEach(() => {
5
+ cleanup();
6
+ });
7
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,53 @@
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>;
@@ -0,0 +1,92 @@
1
+ import { createGlobalStyle } from 'styled-components';
2
+ export const themeStyle = {
3
+ darkMode: {
4
+ textColor: '#ffffff',
5
+ textColor1: '#757575 ',
6
+ textColor2: '#ffffff',
7
+ textColor3: '#5c5c5c',
8
+ textColor4: '#ffffff',
9
+ textColor5: '#858585',
10
+ buttonBg: '#ffffff',
11
+ buttonColor: '#000000',
12
+ modalBg: '#191919',
13
+ modalSideBg: '#171717',
14
+ itemActiveBg: 'rgba(255, 255, 255, 0.20)',
15
+ itemHoverBg: 'rgba(255, 255, 255, 0.10)',
16
+ blue: '#00a6ff',
17
+ gray: '#acacac',
18
+ borderColor: '#2a2a2a',
19
+ backArrowColor: '#fbfbfb',
20
+ closeBtnBg: 'rgba(146, 146, 146, .2)',
21
+ closeBtnColor: '#ffffff',
22
+ closeBtnHoverBg: 'rgba(146, 146, 146, .4)',
23
+ infoBtnBg: 'rgba(224, 232, 255, 0.1)',
24
+ infoBtnHoverBg: 'rgba(224, 232, 255, 0.2)',
25
+ cardBg: 'linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F',
26
+ spinColor: '#ffffff'
27
+ },
28
+ lightMode: {
29
+ textColor: '#000000',
30
+ textColor1: '#757575',
31
+ textColor2: '#444444',
32
+ textColor3: '#a8a8a8',
33
+ textColor4: '#111111',
34
+ textColor5: '#858585',
35
+ buttonBg: '#000000',
36
+ buttonColor: '#ffffff',
37
+ modalBg: '#ffffff',
38
+ modalSideBg: '#f9f9f9',
39
+ itemActiveBg: 'rgba(0, 0, 0, 0.20)',
40
+ itemHoverBg: 'rgba(0, 0, 0, 0.10)',
41
+ blue: '#00a6ff',
42
+ gray: '#acacac',
43
+ borderColor: '#f0f0f0',
44
+ backArrowColor: '#161617',
45
+ closeBtnBg: 'rgba(146, 146, 146, .3)',
46
+ closeBtnColor: '#ffffff',
47
+ closeBtnHoverBg: 'rgba(146, 146, 146, .5)',
48
+ infoBtnBg: 'rgba(0, 0, 0, 0.05)',
49
+ infoBtnHoverBg: 'rgba(0, 0, 0, 0.1)',
50
+ cardBg: 'linear-gradient(126deg,rgba(200, 200, 200, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%),#f5f5f5',
51
+ spinColor: '#6a6a6a'
52
+ }
53
+ };
54
+ export const ThemedGlobalStyle = createGlobalStyle `
55
+
56
+ .gap-2 {
57
+ gap: 2px;
58
+ }
59
+
60
+ .gap-4 {
61
+ gap: 4px;
62
+ }
63
+
64
+ .gap-6 {
65
+ gap: 6px;
66
+ }
67
+
68
+ .gap-8 {
69
+ gap: 8px;
70
+ }
71
+
72
+ .gap-10 {
73
+ gap: 10px;
74
+ }
75
+
76
+ .gap-12 {
77
+ gap: 12px;
78
+ }
79
+
80
+ .gap-14 {
81
+ gap: 14px;
82
+ }
83
+
84
+ .gap-16 {
85
+ gap: 16px;
86
+ }
87
+
88
+ .pd-tb-10{
89
+ padding: 10px 0;
90
+ }
91
+ `;
92
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,QAAQ,EAAE;QACT,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,2BAA2B;QACzC,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;QACtB,cAAc,EAAE,SAAS;QACzB,UAAU,EAAE,yBAAyB;QACrC,aAAa,EAAE,SAAS;QACxB,eAAe,EAAE,yBAAyB;QAC1C,SAAS,EAAE,0BAA0B;QACrC,cAAc,EAAE,0BAA0B;QAC1C,MAAM,EAAE,2FAA2F;QACnG,SAAS,EAAE,SAAS;KACpB;IACD,SAAS,EAAE;QACV,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,qBAAqB;QACnC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;QACtB,cAAc,EAAE,SAAS;QACzB,UAAU,EAAE,yBAAyB;QACrC,aAAa,EAAE,SAAS;QACxB,eAAe,EAAE,yBAAyB;QAC1C,SAAS,EAAE,qBAAqB;QAChC,cAAc,EAAE,oBAAoB;QACpC,MAAM,EAAE,+FAA+F;QACvG,SAAS,EAAE,SAAS;KACpB;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCjD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type Locals = 'zh-CN' | 'en' | 'zh' | 'en-US';
2
+ export type Theme = 'darkMode' | 'lightMode';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=configType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configType.js","sourceRoot":"","sources":["../../../src/types/configType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export interface EIP6963ProviderInfo {
2
+ uuid: string;
3
+ name: string;
4
+ icon: string;
5
+ rdns: string;
6
+ }
7
+ export interface ISlots {
8
+ EIP6963ProviderInfo?: EIP6963ProviderInfo;
9
+ isEIP6963Provider?: boolean;
10
+ injected?: boolean;
11
+ provider: any;
12
+ namespace: string;
13
+ }
14
+ export interface ICreateSlots {
15
+ slots?: Array<ISlots>;
16
+ }
17
+ export interface ISlotsConnector {
18
+ uuid: string;
19
+ walletName: string;
20
+ walletIcon: string;
21
+ connector?: any;
22
+ connectorNamespace?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=slotsType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slotsType.js","sourceRoot":"","sources":["../../../src/types/slotsType.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const formatAddress: (address: string) => string;
@@ -0,0 +1,6 @@
1
+ export const formatAddress = (address) => {
2
+ if (!address)
3
+ return '';
4
+ return `${address.slice(0, 4)}...${address.slice(-4)}`;
5
+ };
6
+ //# sourceMappingURL=formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../src/utils/formatter.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAE,EAAE;IAChD,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACxD,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function generateRandomAvatar(): {
2
+ text: "🐵" | "🐶" | "🐺" | "🦊" | "🦝" | "🐱" | "🦁" | "🐯" | "🐮" | "🐷" | "🐗" | "🦒" | "🐭" | "🐹" | "🐰" | "🐻" | "🐨" | "🐼" | "🐸";
3
+ bg: string;
4
+ };
@@ -0,0 +1,32 @@
1
+ export function generateRandomAvatar() {
2
+ const animalColors = {
3
+ '🐵': '#8B4513',
4
+ '🐶': '#A0522D',
5
+ '🐺': '#696969',
6
+ '🦊': '#FF8C00',
7
+ '🦝': '#808080',
8
+ '🐱': '#FAFAD2',
9
+ '🦁': '#FFA500',
10
+ '🐯': '#FF8C00',
11
+ '🐮': '#8B4513',
12
+ '🐷': '#FF8CBC',
13
+ '🐗': '#8B4513',
14
+ '🦒': '#FFD700',
15
+ '🐭': '#D3D3D3',
16
+ '🐹': '#DEB887',
17
+ '🐰': '#FFF5EE',
18
+ '🐻': '#8B4513',
19
+ '🐨': '#A9A9A9',
20
+ '🐼': '#FFFFFF',
21
+ '🐸': '#7CFC00'
22
+ };
23
+ const keys = Object.keys(animalColors);
24
+ const randomIndex = Math.floor(Math.random() * keys.length);
25
+ const text = keys[randomIndex];
26
+ if (!text) {
27
+ throw new Error('Unexpected undefined value from keys[randomIndex]');
28
+ }
29
+ const bg = animalColors[text];
30
+ return { text, bg };
31
+ }
32
+ //# sourceMappingURL=generateAvatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateAvatar.js","sourceRoot":"","sources":["../../../src/utils/generateAvatar.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,oBAAoB;IACnC,MAAM,YAAY,GAAG;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;KACf,CAAC;IAEF,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAkC,CAAC;IACxE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAE/B,IAAI,CAAC,IAAI,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAE9B,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACrB,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallets/GelWallet/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { EIP6963ProviderInfo, ICreateSlots } from '../../types/slotsType';
2
+ export declare function announceProvider(info: EIP6963ProviderInfo, provider: any): void;
3
+ export declare function createSlots({ slots }: ICreateSlots): any;
@@ -0,0 +1,26 @@
1
+ export function announceProvider(info, provider) {
2
+ window['ethereum'] = provider;
3
+ try {
4
+ window.dispatchEvent(new CustomEvent('eip6963:announceProvider', {
5
+ detail: Object.freeze({ info, provider })
6
+ }));
7
+ window.dispatchEvent(new Event('eip6963:requestProvider'));
8
+ }
9
+ catch (e) {
10
+ console.error(e);
11
+ }
12
+ }
13
+ export function createSlots({ slots }) {
14
+ if (slots && slots?.length) {
15
+ const providers = {};
16
+ slots?.map((slot) => {
17
+ if (slot?.isEIP6963Provider && slot?.EIP6963ProviderInfo && !slot?.injected) {
18
+ announceProvider(slot.EIP6963ProviderInfo, slot.provider);
19
+ }
20
+ providers[slot.namespace] = slot.provider;
21
+ });
22
+ return providers;
23
+ }
24
+ return;
25
+ }
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallets/SlotsWallets/index.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAC,IAAyB,EAAE,QAAa;IACvE,MAAc,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;IACvC,IAAI,CAAC;QACJ,MAAM,CAAC,aAAa,CACnB,IAAI,WAAW,CAAC,0BAA0B,EAAE;YAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SACzC,CAAC,CACF,CAAC;QACF,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC5D,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAgB;IAClD,IAAI,KAAK,IAAI,KAAK,EAAE,MAAM,EAAE,CAAC;QAC5B,MAAM,SAAS,GAAQ,EAAE,CAAC;QAE1B,KAAK,EAAE,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE;YAC3B,IAAI,IAAI,EAAE,iBAAiB,IAAI,IAAI,EAAE,mBAAmB,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC;gBAC7E,gBAAgB,CAAC,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC3D,CAAC;YACD,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC3C,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,OAAO;AACR,CAAC"}