@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,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;
@@ -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"}
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,7 +0,0 @@
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
@@ -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>;
@@ -1,133 +0,0 @@
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
- @font-face {
56
- font-family: Manrope;
57
- src: url('../assets/fonts/ManropeLight.ttf') format('truetype');
58
- font-weight: 300;
59
- font-style: normal;
60
- }
61
-
62
- @font-face {
63
- font-family: Manrope;
64
- src: url('../assets/fonts/Manrope.ttf') format('truetype');
65
- font-weight: 400;
66
- font-style: normal;
67
- }
68
-
69
- @font-face {
70
- font-family: Manrope;
71
- src: url('../assets/fonts/ManropeMedium.ttf') format('truetype');
72
- font-weight: 500;
73
- font-style: normal;
74
- }
75
-
76
- @font-face {
77
- font-family: Manrope;
78
- src: url('../assets/fonts/ManropeSemibold.ttf') format('truetype');
79
- font-weight: 600;
80
- font-style: normal;
81
- }
82
-
83
- @font-face {
84
- font-family: Manrope;
85
- src: url('../assets/fonts/ManropeBold.ttf') format('truetype');
86
- font-weight: 700;
87
- font-style: normal;
88
- }
89
-
90
- @font-face {
91
- font-family: Manrope;
92
- src: url('../assets/fonts/ManropeExtraBold.ttf') format('truetype');
93
- font-weight: 800;
94
- font-style: normal;
95
- }
96
-
97
- .gap-2 {
98
- gap: 2px;
99
- }
100
-
101
- .gap-4 {
102
- gap: 4px;
103
- }
104
-
105
- .gap-6 {
106
- gap: 6px;
107
- }
108
-
109
- .gap-8 {
110
- gap: 8px;
111
- }
112
-
113
- .gap-10 {
114
- gap: 10px;
115
- }
116
-
117
- .gap-12 {
118
- gap: 12px;
119
- }
120
-
121
- .gap-14 {
122
- gap: 14px;
123
- }
124
-
125
- .gap-16 {
126
- gap: 16px;
127
- }
128
-
129
- .pd-tb-10{
130
- padding: 10px 0;
131
- }
132
- `;
133
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EjD,CAAC"}
@@ -1,2 +0,0 @@
1
- export type Locals = 'zh-CN' | 'en' | 'zh' | 'en-US';
2
- export type Theme = 'darkMode' | 'lightMode';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=configType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configType.js","sourceRoot":"","sources":["../../../src/types/configType.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- export declare enum ErrorCode {
2
- UserReject = 4001
3
- }
4
- export interface ErrorMessage {
5
- code: ErrorCode;
6
- message: string;
7
- }
@@ -1,5 +0,0 @@
1
- export var ErrorCode;
2
- (function (ErrorCode) {
3
- ErrorCode[ErrorCode["UserReject"] = 4001] = "UserReject";
4
- })(ErrorCode || (ErrorCode = {}));
5
- //# sourceMappingURL=error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/types/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAEX;AAFD,WAAY,SAAS;IACpB,wDAAiB,CAAA;AAClB,CAAC,EAFW,SAAS,KAAT,SAAS,QAEpB"}
@@ -1,23 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=slotsType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slotsType.js","sourceRoot":"","sources":["../../../src/types/slotsType.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type StoreSet<T extends object> = (partial: T | Partial<T> | ((state: T) => T | Partial<T>), replace?: boolean | undefined) => void;
2
- export type StoreGet<T extends object> = () => T;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/types/store.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const formatAddress: (address: string) => string;
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- export declare function generateRandomAvatar(): {
2
- text: "🐵" | "🐶" | "🐺" | "🦊" | "🦝" | "🐱" | "🦁" | "🐯" | "🐮" | "🐷" | "🐗" | "🦒" | "🐭" | "🐹" | "🐰" | "🐻" | "🐨" | "🐼" | "🐸";
3
- bg: string;
4
- };
@@ -1,32 +0,0 @@
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
@@ -1 +0,0 @@
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
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallets/GelWallet/index.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
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;
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}