@web3jskit/walletkit 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +46 -0
- package/dist/src/assets/svg/dataBase.d.ts +4 -0
- package/dist/src/assets/svg/dataBase.js +5 -0
- package/dist/src/assets/svg/dataBase.js.map +1 -0
- package/dist/src/assets/svg/metaMaskWallet.d.ts +1 -0
- package/dist/src/assets/svg/metaMaskWallet.js +35 -0
- package/dist/src/assets/svg/metaMaskWallet.js.map +1 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +1 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.js +13 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.js.map +1 -0
- package/dist/src/components/ConnectButton/index.d.ts +8 -0
- package/dist/src/components/ConnectButton/index.js +16 -0
- package/dist/src/components/ConnectButton/index.js.map +1 -0
- package/dist/src/components/Connecting/index.d.ts +6 -0
- package/dist/src/components/Connecting/index.js +11 -0
- package/dist/src/components/Connecting/index.js.map +1 -0
- package/dist/src/components/Connecting/style.d.ts +2 -0
- package/dist/src/components/Connecting/style.js +52 -0
- package/dist/src/components/Connecting/style.js.map +1 -0
- package/dist/src/components/GetWallet/index.d.ts +7 -0
- package/dist/src/components/GetWallet/index.js +21 -0
- package/dist/src/components/GetWallet/index.js.map +1 -0
- package/dist/src/components/GetWallet/style.d.ts +2 -0
- package/dist/src/components/GetWallet/style.js +117 -0
- package/dist/src/components/GetWallet/style.js.map +1 -0
- package/dist/src/components/Header/ModalHeader.d.ts +8 -0
- package/dist/src/components/Header/ModalHeader.js +9 -0
- package/dist/src/components/Header/ModalHeader.js.map +1 -0
- package/dist/src/components/Header/style.d.ts +2 -0
- package/dist/src/components/Header/style.js +74 -0
- package/dist/src/components/Header/style.js.map +1 -0
- package/dist/src/components/Icon/index.d.ts +23 -0
- package/dist/src/components/Icon/index.js +48 -0
- package/dist/src/components/Icon/index.js.map +1 -0
- package/dist/src/components/Introduce/index.d.ts +6 -0
- package/dist/src/components/Introduce/index.js +11 -0
- package/dist/src/components/Introduce/index.js.map +1 -0
- package/dist/src/components/Introduce/style.d.ts +2 -0
- package/dist/src/components/Introduce/style.js +97 -0
- package/dist/src/components/Introduce/style.js.map +1 -0
- package/dist/src/components/Modal/ConnectModal.d.ts +7 -0
- package/dist/src/components/Modal/ConnectModal.js +121 -0
- package/dist/src/components/Modal/ConnectModal.js.map +1 -0
- package/dist/src/components/Modal/WalletInfoModal.d.ts +1 -0
- package/dist/src/components/Modal/WalletInfoModal.js +46 -0
- package/dist/src/components/Modal/WalletInfoModal.js.map +1 -0
- package/dist/src/components/Modal/index.d.ts +13 -0
- package/dist/src/components/Modal/index.js +52 -0
- package/dist/src/components/Modal/index.js.map +1 -0
- package/dist/src/components/Modal/style.d.ts +5 -0
- package/dist/src/components/Modal/style.js +187 -0
- package/dist/src/components/Modal/style.js.map +1 -0
- package/dist/src/components/SVGs/backArrowSvg.d.ts +2 -0
- package/dist/src/components/SVGs/backArrowSvg.js +4 -0
- package/dist/src/components/SVGs/backArrowSvg.js.map +1 -0
- package/dist/src/components/SVGs/closeSvg.d.ts +2 -0
- package/dist/src/components/SVGs/closeSvg.js +4 -0
- package/dist/src/components/SVGs/closeSvg.js.map +1 -0
- package/dist/src/components/SVGs/copiedSvg.d.ts +2 -0
- package/dist/src/components/SVGs/copiedSvg.js +4 -0
- package/dist/src/components/SVGs/copiedSvg.js.map +1 -0
- package/dist/src/components/SVGs/copySvg.d.ts +2 -0
- package/dist/src/components/SVGs/copySvg.js +4 -0
- package/dist/src/components/SVGs/copySvg.js.map +1 -0
- package/dist/src/components/SVGs/exitSvg.d.ts +2 -0
- package/dist/src/components/SVGs/exitSvg.js +4 -0
- package/dist/src/components/SVGs/exitSvg.js.map +1 -0
- package/dist/src/components/SVGs/spinSvg.d.ts +4 -0
- package/dist/src/components/SVGs/spinSvg.js +4 -0
- package/dist/src/components/SVGs/spinSvg.js.map +1 -0
- package/dist/src/components/SVGs/vectorSvg.d.ts +2 -0
- package/dist/src/components/SVGs/vectorSvg.js +4 -0
- package/dist/src/components/SVGs/vectorSvg.js.map +1 -0
- package/dist/src/components/Text/index.d.ts +18 -0
- package/dist/src/components/Text/index.js +32 -0
- package/dist/src/components/Text/index.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +12 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js +59 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +13 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.js +42 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +8 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js +13 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/index.d.ts +16 -0
- package/dist/src/components/WalletKitProvider/index.js +14 -0
- package/dist/src/components/WalletKitProvider/index.js.map +1 -0
- package/dist/src/components/WalletList/index.d.ts +8 -0
- package/dist/src/components/WalletList/index.js +15 -0
- package/dist/src/components/WalletList/index.js.map +1 -0
- package/dist/src/components/WalletList/style.d.ts +2 -0
- package/dist/src/components/WalletList/style.js +102 -0
- package/dist/src/components/WalletList/style.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/index.d.ts +12 -0
- package/dist/src/components/WalletTriggerButton/index.js +32 -0
- package/dist/src/components/WalletTriggerButton/index.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/style.d.ts +2 -0
- package/dist/src/components/WalletTriggerButton/style.js +63 -0
- package/dist/src/components/WalletTriggerButton/style.js.map +1 -0
- package/dist/src/errors/index.d.ts +2 -0
- package/dist/src/errors/index.js +6 -0
- package/dist/src/errors/index.js.map +1 -0
- package/dist/src/hooks/useWalletKit.d.ts +73 -0
- package/dist/src/hooks/useWalletKit.js +38 -0
- package/dist/src/hooks/useWalletKit.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/locals/i18n.d.ts +2 -0
- package/dist/src/locals/i18n.js +17 -0
- package/dist/src/locals/i18n.js.map +1 -0
- package/dist/src/locals/languages/en.json +30 -0
- package/dist/src/locals/languages/zh.json +30 -0
- package/dist/src/locals/resources.d.ts +66 -0
- package/dist/src/locals/resources.js +11 -0
- package/dist/src/locals/resources.js.map +1 -0
- package/dist/src/modals/connectModal/index.d.ts +0 -0
- package/dist/src/modals/connectModal/index.js +2 -0
- package/dist/src/modals/connectModal/index.js.map +1 -0
- package/dist/src/stores/SlotsWalletStore.d.ts +18 -0
- package/dist/src/stores/SlotsWalletStore.js +33 -0
- package/dist/src/stores/SlotsWalletStore.js.map +1 -0
- package/dist/src/stores/index.d.ts +27 -0
- package/dist/src/stores/index.js +25 -0
- package/dist/src/stores/index.js.map +1 -0
- package/dist/src/stores/modalStore.d.ts +17 -0
- package/dist/src/stores/modalStore.js +41 -0
- package/dist/src/stores/modalStore.js.map +1 -0
- package/dist/src/styled/index.d.ts +17 -0
- package/dist/src/styled/index.js +76 -0
- package/dist/src/styled/index.js.map +1 -0
- package/dist/src/test/getwalletprovider.test.d.ts +1 -0
- package/dist/src/test/getwalletprovider.test.js +10 -0
- package/dist/src/test/getwalletprovider.test.js.map +1 -0
- package/dist/src/test/setup.d.ts +1 -0
- package/dist/src/test/setup.js +7 -0
- package/dist/src/test/setup.js.map +1 -0
- package/dist/src/theme/index.d.ts +53 -0
- package/dist/src/theme/index.js +133 -0
- package/dist/src/theme/index.js.map +1 -0
- package/dist/src/types/configType.d.ts +2 -0
- package/dist/src/types/configType.js +2 -0
- package/dist/src/types/configType.js.map +1 -0
- package/dist/src/types/error.d.ts +7 -0
- package/dist/src/types/error.js +5 -0
- package/dist/src/types/error.js.map +1 -0
- package/dist/src/types/slotsType.d.ts +23 -0
- package/dist/src/types/slotsType.js +2 -0
- package/dist/src/types/slotsType.js.map +1 -0
- package/dist/src/types/store.d.ts +2 -0
- package/dist/src/types/store.js +2 -0
- package/dist/src/types/store.js.map +1 -0
- package/dist/src/utils/formatter.d.ts +1 -0
- package/dist/src/utils/formatter.js +6 -0
- package/dist/src/utils/formatter.js.map +1 -0
- package/dist/src/utils/generateAvatar.d.ts +4 -0
- package/dist/src/utils/generateAvatar.js +32 -0
- package/dist/src/utils/generateAvatar.js.map +1 -0
- package/dist/src/wallets/GelWallet/index.d.ts +0 -0
- package/dist/src/wallets/GelWallet/index.js +2 -0
- package/dist/src/wallets/GelWallet/index.js.map +1 -0
- package/dist/src/wallets/SlotsWallets/index.d.ts +3 -0
- package/dist/src/wallets/SlotsWallets/index.js +26 -0
- package/dist/src/wallets/SlotsWallets/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +1 -1
|
@@ -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,133 @@
|
|
|
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
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configType.js","sourceRoot":"","sources":["../../../src/types/configType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"slotsType.js","sourceRoot":"","sources":["../../../src/types/slotsType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/types/store.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatAddress: (address: string) => string;
|
|
@@ -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,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallets/GelWallet/index.ts"],"names":[],"mappings":""}
|
|
@@ -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"}
|