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