@onekeyfe/inpage-providers-hub 2.0.0 → 2.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.
- package/dist/cjs/connectButtonHack/universal/config.js +421 -160
- package/dist/cjs/connectButtonHack/universal/findIconAndName.js +26 -26
- package/dist/cjs/connectButtonHack/universal/imgUtils.js +11 -14
- package/dist/cjs/connectButtonHack/universal/index.js +1 -1
- package/dist/cjs/connectButtonHack/universal/shadowRoot.js +2 -2
- package/dist/cjs/connectButtonHack/universal/textUtils.js +9 -1
- package/dist/connectButtonHack/universal/config.js +424 -163
- package/dist/connectButtonHack/universal/findIconAndName.d.ts +2 -2
- package/dist/connectButtonHack/universal/findIconAndName.js +24 -24
- package/dist/connectButtonHack/universal/imgUtils.d.ts +2 -1
- package/dist/connectButtonHack/universal/imgUtils.js +9 -13
- package/dist/connectButtonHack/universal/index.js +2 -2
- package/dist/connectButtonHack/universal/shadowRoot.js +4 -4
- package/dist/connectButtonHack/universal/textUtils.d.ts +2 -0
- package/dist/connectButtonHack/universal/textUtils.js +6 -0
- package/package.json +21 -20
|
@@ -60,7 +60,7 @@ exports.basicWalletInfo = {
|
|
|
60
60
|
[consts_1.WALLET_NAMES.keplr]: {
|
|
61
61
|
updatedIcon: consts_1.WALLET_CONNECT_INFO.keplr.icon,
|
|
62
62
|
updatedName: consts_1.WALLET_CONNECT_INFO.keplr.text,
|
|
63
|
-
name: /^(Keplr|Keplr Mobile)$/i,
|
|
63
|
+
name: /^(Keplr|Keplr Mobile|Keplr Wallet)$/i,
|
|
64
64
|
},
|
|
65
65
|
[consts_1.WALLET_NAMES.polkadot]: {
|
|
66
66
|
updatedIcon: consts_1.WALLET_CONNECT_INFO.polkadot.icon,
|
|
@@ -118,10 +118,10 @@ exports.sitesConfig = [
|
|
|
118
118
|
walletsForProvider: {
|
|
119
119
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
120
120
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
121
|
-
return (0, findIconAndName_1.
|
|
121
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.button-option.MetaMask > svg', 'auto-search-text', name);
|
|
122
122
|
} }),
|
|
123
123
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
124
|
-
return (0, findIconAndName_1.
|
|
124
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.button-option.WalletConnect > svg', 'auto-search-text', name);
|
|
125
125
|
} }),
|
|
126
126
|
],
|
|
127
127
|
},
|
|
@@ -230,7 +230,7 @@ exports.sitesConfig = [
|
|
|
230
230
|
walletsForProvider: {
|
|
231
231
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
232
232
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
233
|
-
return (0, findIconAndName_1.
|
|
233
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.bg-connect button[type="button"] img[src*="connect-walletConnect.svg"]', 'auto-search-text', name);
|
|
234
234
|
} }),
|
|
235
235
|
],
|
|
236
236
|
},
|
|
@@ -299,7 +299,7 @@ exports.sitesConfig = [
|
|
|
299
299
|
urls: ['01.xyz'],
|
|
300
300
|
testPath: [':text("Connect")', ':text("Continue")'],
|
|
301
301
|
skip: {
|
|
302
|
-
mobile: true,
|
|
302
|
+
mobile: true,
|
|
303
303
|
},
|
|
304
304
|
walletsForProvider: {
|
|
305
305
|
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
@@ -324,10 +324,10 @@ exports.sitesConfig = [
|
|
|
324
324
|
walletsForProvider: {
|
|
325
325
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
326
326
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
327
|
-
return (0, findIconAndName_1.
|
|
327
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.MuiPaper-root.MuiPaper-elevation a img[src*="icon-metamask"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name);
|
|
328
328
|
} }),
|
|
329
329
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
330
|
-
return (0, findIconAndName_1.
|
|
330
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.MuiPaper-root.MuiPaper-elevation a img[src*="icon-walletconnect"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name);
|
|
331
331
|
} }),
|
|
332
332
|
],
|
|
333
333
|
},
|
|
@@ -342,7 +342,7 @@ exports.sitesConfig = [
|
|
|
342
342
|
],
|
|
343
343
|
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
344
344
|
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
345
|
-
return (0, findIconAndName_1.
|
|
345
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.MuiStack-root button img[alt="Unisat"]', (icon) => { var _a, _b; return (_b = (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement; }, name);
|
|
346
346
|
} }),
|
|
347
347
|
],
|
|
348
348
|
},
|
|
@@ -488,7 +488,7 @@ exports.sitesConfig = [
|
|
|
488
488
|
],
|
|
489
489
|
[cross_inpage_provider_types_1.IInjectedProviderNames.polkadot]: [
|
|
490
490
|
Object.assign(Object.assign({}, exports.basicWalletInfo['polkadot']), { findIconAndName: ({ name }) => {
|
|
491
|
-
return (0, findIconAndName_1.
|
|
491
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('.relative.rounded-2xl.text-default img[alt="Polkadotjs Logo"]', (icon) => icon.parentElement, name);
|
|
492
492
|
} }),
|
|
493
493
|
],
|
|
494
494
|
},
|
|
@@ -590,12 +590,12 @@ exports.sitesConfig = [
|
|
|
590
590
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
591
591
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.chakra-modal__content-container', 'Connect Wallet');
|
|
592
592
|
return (modal &&
|
|
593
|
-
(0, findIconAndName_1.
|
|
593
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name, modal));
|
|
594
594
|
} }),
|
|
595
595
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
596
596
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.chakra-modal__content-container', 'Connect Wallet');
|
|
597
597
|
return (modal &&
|
|
598
|
-
(0, findIconAndName_1.
|
|
598
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name, modal));
|
|
599
599
|
} }),
|
|
600
600
|
],
|
|
601
601
|
[cross_inpage_provider_types_1.IInjectedProviderNames.polkadot]: [
|
|
@@ -610,7 +610,7 @@ exports.sitesConfig = [
|
|
|
610
610
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
611
611
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('[data-testid="connectModal"]', 'Connect Your Wallet');
|
|
612
612
|
return (modal &&
|
|
613
|
-
(0, findIconAndName_1.
|
|
613
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('svg[aria-label="metamask-icon"]', 'auto-search-text', name, modal));
|
|
614
614
|
} }),
|
|
615
615
|
],
|
|
616
616
|
},
|
|
@@ -654,26 +654,15 @@ exports.sitesConfig = [
|
|
|
654
654
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
655
655
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[data-testid="modal-container"]', 'Connect Wallet');
|
|
656
656
|
return (modal &&
|
|
657
|
-
(0, findIconAndName_1.
|
|
658
|
-
},
|
|
659
|
-
afterUpdate(text, imgNode) {
|
|
660
|
-
imgNode.style.height = 'auto';
|
|
657
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="assets/metamask"]', 'auto-search-text', name, modal));
|
|
661
658
|
} }),
|
|
662
659
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
663
|
-
var _a;
|
|
664
660
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[data-testid="modal-container"]', 'Connect Wallet');
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
icon && {
|
|
671
|
-
iconNode: icon,
|
|
672
|
-
textNode: text,
|
|
673
|
-
});
|
|
674
|
-
},
|
|
675
|
-
afterUpdate(text, imgNode) {
|
|
676
|
-
imgNode.style.height = 'auto';
|
|
661
|
+
return (modal &&
|
|
662
|
+
(0, findIconAndName_1.findIconAndNameByName)(modal, name, 'auto-search-icon', {
|
|
663
|
+
text: [],
|
|
664
|
+
icon: [imgUtils_1.isWalletIconLessEqualThan],
|
|
665
|
+
}));
|
|
677
666
|
} }),
|
|
678
667
|
],
|
|
679
668
|
},
|
|
@@ -732,7 +721,7 @@ exports.sitesConfig = [
|
|
|
732
721
|
});
|
|
733
722
|
} }),
|
|
734
723
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
735
|
-
return (0, findIconAndName_1.
|
|
724
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('div.connectWalletModel img[src*="walletconnect"]', (e) => { var _a; return (_a = e.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name);
|
|
736
725
|
} }),
|
|
737
726
|
],
|
|
738
727
|
},
|
|
@@ -761,7 +750,7 @@ exports.sitesConfig = [
|
|
|
761
750
|
walletsForProvider: {
|
|
762
751
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
763
752
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
764
|
-
return (0, findIconAndName_1.
|
|
753
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('[id*="popover-body"] img[src*="metamask.svg"][alt="wallet logo"]', 'auto-search-text', wallet.name);
|
|
765
754
|
} }),
|
|
766
755
|
],
|
|
767
756
|
},
|
|
@@ -802,7 +791,7 @@ exports.sitesConfig = [
|
|
|
802
791
|
walletsForProvider: {
|
|
803
792
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
804
793
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
805
|
-
return (0, findIconAndName_1.
|
|
794
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)(() => {
|
|
806
795
|
var _a;
|
|
807
796
|
return (_a = Array.from(document.querySelectorAll('section[id*="popover-content"] img[src*="Metamask.png"]')).filter((e) => (0, utils_1.isVisible)(e))) === null || _a === void 0 ? void 0 : _a[0];
|
|
808
797
|
}, 'auto-search-text', wallet.name);
|
|
@@ -818,12 +807,12 @@ exports.sitesConfig = [
|
|
|
818
807
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
819
808
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[id*="headlessui-dialog-panel"]', 'Connect a wallet');
|
|
820
809
|
return (modal &&
|
|
821
|
-
(0, findIconAndName_1.
|
|
810
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"]', 'auto-search-text', wallet.name, modal));
|
|
822
811
|
} }),
|
|
823
812
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
824
813
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[id*="headlessui-dialog-panel"]', 'Connect a wallet');
|
|
825
814
|
return (modal &&
|
|
826
|
-
(0, findIconAndName_1.
|
|
815
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="walletconnect"]', 'auto-search-text', wallet.name, modal));
|
|
827
816
|
} }),
|
|
828
817
|
],
|
|
829
818
|
},
|
|
@@ -843,13 +832,12 @@ exports.sitesConfig = [
|
|
|
843
832
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
844
833
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
845
834
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#rlogin-connect-modal', 'Connect your wallet');
|
|
846
|
-
return (modal &&
|
|
847
|
-
(0, findIconAndName_1.findIconAndNameDirectly)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
835
|
+
return (modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
848
836
|
} }),
|
|
849
837
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
850
838
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#rlogin-connect-modal', 'Connect your wallet');
|
|
851
839
|
return (modal &&
|
|
852
|
-
(0, findIconAndName_1.
|
|
840
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
853
841
|
} }),
|
|
854
842
|
],
|
|
855
843
|
},
|
|
@@ -873,12 +861,12 @@ exports.sitesConfig = [
|
|
|
873
861
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
874
862
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.mantine-Modal-content', 'Connect Wallet');
|
|
875
863
|
return (modal &&
|
|
876
|
-
(0, findIconAndName_1.
|
|
864
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, wallet.name, modal));
|
|
877
865
|
} }),
|
|
878
866
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
879
867
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.mantine-Modal-content', 'Connect Wallet');
|
|
880
868
|
return (modal &&
|
|
881
|
-
(0, findIconAndName_1.
|
|
869
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="walletConnect"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, wallet.name, modal));
|
|
882
870
|
} }),
|
|
883
871
|
],
|
|
884
872
|
},
|
|
@@ -904,12 +892,12 @@ exports.sitesConfig = [
|
|
|
904
892
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
905
893
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Select a wallet');
|
|
906
894
|
return (modal &&
|
|
907
|
-
(0, findIconAndName_1.
|
|
895
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"]', 'auto-search-text', wallet.name, modal));
|
|
908
896
|
} }),
|
|
909
897
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
910
898
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Select a wallet');
|
|
911
899
|
return (modal &&
|
|
912
|
-
(0, findIconAndName_1.
|
|
900
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-connect.svg"]', 'auto-search-text', name, modal));
|
|
913
901
|
} }),
|
|
914
902
|
],
|
|
915
903
|
},
|
|
@@ -922,12 +910,12 @@ exports.sitesConfig = [
|
|
|
922
910
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
923
911
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.chakra-modal__content-container', 'Select a wallet');
|
|
924
912
|
return (modal &&
|
|
925
|
-
(0, findIconAndName_1.
|
|
913
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
926
914
|
} }),
|
|
927
915
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
928
916
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.chakra-modal__content-container', 'Select a wallet');
|
|
929
917
|
return (modal &&
|
|
930
|
-
(0, findIconAndName_1.
|
|
918
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
931
919
|
} }),
|
|
932
920
|
],
|
|
933
921
|
},
|
|
@@ -1005,12 +993,12 @@ exports.sitesConfig = [
|
|
|
1005
993
|
walletsForProvider: {
|
|
1006
994
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1007
995
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1008
|
-
return (0, findIconAndName_1.
|
|
996
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="Metamask"]', 'auto-search-text', name);
|
|
1009
997
|
} }),
|
|
1010
998
|
],
|
|
1011
999
|
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
1012
1000
|
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { findIconAndName({ name }) {
|
|
1013
|
-
return (0, findIconAndName_1.
|
|
1001
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="keplr"][alt="Keplr"]', 'auto-search-text', name);
|
|
1014
1002
|
} }),
|
|
1015
1003
|
],
|
|
1016
1004
|
},
|
|
@@ -1036,10 +1024,10 @@ exports.sitesConfig = [
|
|
|
1036
1024
|
walletsForProvider: {
|
|
1037
1025
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1038
1026
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1039
|
-
return (0, findIconAndName_1.
|
|
1027
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Metamask Logo"][title="Metamask"]', 'auto-search-text', name);
|
|
1040
1028
|
} }),
|
|
1041
1029
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1042
|
-
return (0, findIconAndName_1.
|
|
1030
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect Logo"][title="WalletConnect"]', 'auto-search-text', name);
|
|
1043
1031
|
} }),
|
|
1044
1032
|
],
|
|
1045
1033
|
},
|
|
@@ -1060,7 +1048,7 @@ exports.sitesConfig = [
|
|
|
1060
1048
|
},
|
|
1061
1049
|
{
|
|
1062
1050
|
urls: ['app.wagmi.com'],
|
|
1063
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1051
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1064
1052
|
walletsForProvider: {
|
|
1065
1053
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1066
1054
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#wallet-dropdown-scroll-wrapper' }),
|
|
@@ -1078,7 +1066,7 @@ exports.sitesConfig = [
|
|
|
1078
1066
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1079
1067
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root', 'Connect your Wallet');
|
|
1080
1068
|
return (modal &&
|
|
1081
|
-
(0, findIconAndName_1.
|
|
1069
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.svg"][alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1082
1070
|
} }),
|
|
1083
1071
|
],
|
|
1084
1072
|
},
|
|
@@ -1108,7 +1096,7 @@ exports.sitesConfig = [
|
|
|
1108
1096
|
},
|
|
1109
1097
|
{
|
|
1110
1098
|
urls: ['rosswap.com'],
|
|
1111
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1099
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1112
1100
|
skip: {
|
|
1113
1101
|
mobile: true, //no connect wallet modal
|
|
1114
1102
|
},
|
|
@@ -1121,7 +1109,7 @@ exports.sitesConfig = [
|
|
|
1121
1109
|
},
|
|
1122
1110
|
{
|
|
1123
1111
|
urls: ['maiadao.io'],
|
|
1124
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1112
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1125
1113
|
skip: {
|
|
1126
1114
|
mobile: true, //no connect wallet modal
|
|
1127
1115
|
},
|
|
@@ -1154,58 +1142,10 @@ exports.sitesConfig = [
|
|
|
1154
1142
|
},
|
|
1155
1143
|
{
|
|
1156
1144
|
urls: ['www.staderlabs.com'],
|
|
1157
|
-
skip: {
|
|
1158
|
-
mobile: true, //tmp skip for lack walletconnet
|
|
1159
|
-
},
|
|
1160
1145
|
testUrls: ['www.staderlabs.com/eth/stake/'],
|
|
1161
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1146
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1162
1147
|
walletsForProvider: {
|
|
1163
|
-
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1164
|
-
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1165
|
-
const modal = (0, utils_1.getConnectWalletModalByTitle)('.chakra-modal__content-container', 'Select wallet') ||
|
|
1166
|
-
(0, utils_1.getConnectWalletModalByTitle)('#__CONNECTKIT__', 'Connect Wallet');
|
|
1167
|
-
if (!modal) {
|
|
1168
|
-
return null;
|
|
1169
|
-
}
|
|
1170
|
-
return ((0, findIconAndName_1.findIconAndNameByParent)(modal, name, {
|
|
1171
|
-
text: [],
|
|
1172
|
-
icon: [],
|
|
1173
|
-
}) ||
|
|
1174
|
-
(0, findIconAndName_1.findIconAndNameDirectly)('img[src*="media/mm"][alt="metaMask Logo"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1175
|
-
},
|
|
1176
|
-
afterUpdate(text, icon) {
|
|
1177
|
-
var _a;
|
|
1178
|
-
const parent = (_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
1179
|
-
(0, textUtils_1.makeTextWrap)(text.parentElement);
|
|
1180
|
-
const imgContainer = parent === null || parent === void 0 ? void 0 : parent.firstChild;
|
|
1181
|
-
if (parent && imgContainer) {
|
|
1182
|
-
imgContainer.style.display = 'flex';
|
|
1183
|
-
imgContainer.style.alignItems = 'center';
|
|
1184
|
-
imgContainer.style.borderRadius = '0';
|
|
1185
|
-
imgContainer.style.flexShrink = '0';
|
|
1186
|
-
}
|
|
1187
|
-
} }),
|
|
1188
|
-
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1189
|
-
const modal = (0, utils_1.getConnectWalletModalByTitle)('.chakra-modal__content-container', 'Select wallet') ||
|
|
1190
|
-
(0, utils_1.getConnectWalletModalByTitle)('#__CONNECTKIT__', 'Connect Wallet');
|
|
1191
|
-
if (!modal) {
|
|
1192
|
-
return null;
|
|
1193
|
-
}
|
|
1194
|
-
return (0, findIconAndName_1.findIconAndNameDirectly)('img[alt="walletConnect Logo"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5);
|
|
1195
|
-
},
|
|
1196
|
-
afterUpdate(text, icon) {
|
|
1197
|
-
var _a;
|
|
1198
|
-
const parent = (_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
1199
|
-
(0, textUtils_1.makeTextWrap)(text.parentElement);
|
|
1200
|
-
const imgContainer = parent === null || parent === void 0 ? void 0 : parent.firstChild;
|
|
1201
|
-
if (parent && imgContainer) {
|
|
1202
|
-
imgContainer.style.display = 'flex';
|
|
1203
|
-
imgContainer.style.alignItems = 'center';
|
|
1204
|
-
imgContainer.style.borderRadius = '0';
|
|
1205
|
-
imgContainer.style.flexShrink = '0';
|
|
1206
|
-
}
|
|
1207
|
-
}, skip: { mobile: true } }),
|
|
1208
|
-
],
|
|
1148
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
1209
1149
|
},
|
|
1210
1150
|
},
|
|
1211
1151
|
{
|
|
@@ -1214,7 +1154,7 @@ exports.sitesConfig = [
|
|
|
1214
1154
|
testUrls: ['stake.solblaze.org/app'],
|
|
1215
1155
|
walletsForProvider: {
|
|
1216
1156
|
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
1217
|
-
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: '#connect_modal', afterUpdate(text
|
|
1157
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: '#connect_modal', afterUpdate(text) {
|
|
1218
1158
|
var _a;
|
|
1219
1159
|
if ((_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) {
|
|
1220
1160
|
text.parentElement.parentElement.style.whiteSpace = 'noWrap';
|
|
@@ -1226,7 +1166,6 @@ exports.sitesConfig = [
|
|
|
1226
1166
|
},
|
|
1227
1167
|
{
|
|
1228
1168
|
urls: ['buzz.bsquared.network'],
|
|
1229
|
-
skip: true,
|
|
1230
1169
|
walletsForProvider: {
|
|
1231
1170
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1232
1171
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('.modalContent', 'Connect Wallet') }),
|
|
@@ -1235,7 +1174,7 @@ exports.sitesConfig = [
|
|
|
1235
1174
|
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
1236
1175
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('.modalContent', 'Connect Wallet');
|
|
1237
1176
|
return (modal &&
|
|
1238
|
-
(0, findIconAndName_1.
|
|
1177
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="layout/unisat.png"]', 'auto-search-text', name));
|
|
1239
1178
|
} }),
|
|
1240
1179
|
],
|
|
1241
1180
|
},
|
|
@@ -1301,7 +1240,7 @@ exports.sitesConfig = [
|
|
|
1301
1240
|
//mobile version is redirected to app-mobile.ariesmarkets.xyz. check next item
|
|
1302
1241
|
urls: ['app.ariesmarkets.xyz'],
|
|
1303
1242
|
testUrls: ['app.ariesmarkets.xyz/lending'],
|
|
1304
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1243
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1305
1244
|
walletsForProvider: {
|
|
1306
1245
|
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
1307
1246
|
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.mantine-Paper-root', 'Select Wallet') }),
|
|
@@ -1310,7 +1249,7 @@ exports.sitesConfig = [
|
|
|
1310
1249
|
},
|
|
1311
1250
|
{
|
|
1312
1251
|
urls: ['app-mobile.ariesmarkets.xyz'],
|
|
1313
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1252
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1314
1253
|
walletsForProvider: {
|
|
1315
1254
|
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
1316
1255
|
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
@@ -1362,7 +1301,7 @@ exports.sitesConfig = [
|
|
|
1362
1301
|
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { findIconAndName({ name }) {
|
|
1363
1302
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.dialog-connect-wallet', 'Connect wallet');
|
|
1364
1303
|
return (modal &&
|
|
1365
|
-
(0, findIconAndName_1.
|
|
1304
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="nami.svg"][alt="Nami"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 6));
|
|
1366
1305
|
} }),
|
|
1367
1306
|
],
|
|
1368
1307
|
},
|
|
@@ -1377,12 +1316,12 @@ exports.sitesConfig = [
|
|
|
1377
1316
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1378
1317
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root', 'Connect Wallet');
|
|
1379
1318
|
return (modal &&
|
|
1380
|
-
(0, findIconAndName_1.
|
|
1319
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallets/metamask.png"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1381
1320
|
} }),
|
|
1382
1321
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1383
1322
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root', 'Connect Wallet');
|
|
1384
1323
|
return (modal &&
|
|
1385
|
-
(0, findIconAndName_1.
|
|
1324
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallets/walletconnect.png"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1386
1325
|
} }),
|
|
1387
1326
|
],
|
|
1388
1327
|
},
|
|
@@ -1407,7 +1346,7 @@ exports.sitesConfig = [
|
|
|
1407
1346
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.inside', 'Connect Wallet') ||
|
|
1408
1347
|
(0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Start by connecting with one');
|
|
1409
1348
|
return (modal &&
|
|
1410
|
-
(0, findIconAndName_1.
|
|
1349
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.png"]', 'auto-search-text', name, modal));
|
|
1411
1350
|
} }),
|
|
1412
1351
|
],
|
|
1413
1352
|
},
|
|
@@ -1425,12 +1364,12 @@ exports.sitesConfig = [
|
|
|
1425
1364
|
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
1426
1365
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.p-dialog', 'Connect a Wallet');
|
|
1427
1366
|
return (modal &&
|
|
1428
|
-
(0, findIconAndName_1.
|
|
1367
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Petra Wallet"]', 'auto-search-text', name, modal));
|
|
1429
1368
|
} }),
|
|
1430
1369
|
Object.assign(Object.assign({}, exports.basicWalletInfo['martian']), { findIconAndName({ name }) {
|
|
1431
1370
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.p-dialog', 'Connect a Wallet');
|
|
1432
1371
|
return (modal &&
|
|
1433
|
-
(0, findIconAndName_1.
|
|
1372
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Martian Wallet"]', 'auto-search-text', name, modal));
|
|
1434
1373
|
} }),
|
|
1435
1374
|
],
|
|
1436
1375
|
},
|
|
@@ -1474,7 +1413,7 @@ exports.sitesConfig = [
|
|
|
1474
1413
|
}
|
|
1475
1414
|
const parent = shadowRoot.querySelector('div.wallet-list__container');
|
|
1476
1415
|
return (parent &&
|
|
1477
|
-
(0, findIconAndName_1.
|
|
1416
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[data-testid="wallet-icon-metamask"]', 'auto-search-text', name, parent));
|
|
1478
1417
|
} }),
|
|
1479
1418
|
],
|
|
1480
1419
|
},
|
|
@@ -1490,7 +1429,7 @@ exports.sitesConfig = [
|
|
|
1490
1429
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1491
1430
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet');
|
|
1492
1431
|
return (modal &&
|
|
1493
|
-
(0, findIconAndName_1.
|
|
1432
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.svg"][alt="MetaMask icon"]', 'auto-search-text', name, modal));
|
|
1494
1433
|
} }),
|
|
1495
1434
|
],
|
|
1496
1435
|
},
|
|
@@ -1502,7 +1441,7 @@ exports.sitesConfig = [
|
|
|
1502
1441
|
Object.assign(Object.assign({}, exports.basicWalletInfo['polkadot']), { findIconAndName() {
|
|
1503
1442
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1504
1443
|
return (modal &&
|
|
1505
|
-
(0, findIconAndName_1.
|
|
1444
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Polkadotjs Logo"]', 'auto-search-text', /^Polkadot/, modal));
|
|
1506
1445
|
} }),
|
|
1507
1446
|
],
|
|
1508
1447
|
},
|
|
@@ -1574,7 +1513,7 @@ exports.sitesConfig = [
|
|
|
1574
1513
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1575
1514
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1576
1515
|
return (modal &&
|
|
1577
|
-
(0, findIconAndName_1.
|
|
1516
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.svg"][alt="Metamask"]', 'auto-search-text', name, modal));
|
|
1578
1517
|
},
|
|
1579
1518
|
afterUpdate(textNode, icon) {
|
|
1580
1519
|
icon.style.marginRight = '12px';
|
|
@@ -1584,7 +1523,7 @@ exports.sitesConfig = [
|
|
|
1584
1523
|
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { findIconAndName({ name }) {
|
|
1585
1524
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1586
1525
|
return (modal &&
|
|
1587
|
-
(0, findIconAndName_1.
|
|
1526
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="keplr.svg"][alt="Keplr"]', 'auto-search-text', name, modal));
|
|
1588
1527
|
},
|
|
1589
1528
|
afterUpdate(textNode, icon) {
|
|
1590
1529
|
icon.style.marginRight = '12px';
|
|
@@ -1607,12 +1546,12 @@ exports.sitesConfig = [
|
|
|
1607
1546
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
1608
1547
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div[role="dialog"]', 'Choose Network');
|
|
1609
1548
|
return (modal &&
|
|
1610
|
-
(0, findIconAndName_1.
|
|
1549
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="MetaMask logo"]', 'auto-search-text', wallet.name, modal));
|
|
1611
1550
|
} }),
|
|
1612
1551
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
1613
1552
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div[role="dialog"]', 'Choose Network');
|
|
1614
1553
|
return (modal &&
|
|
1615
|
-
(0, findIconAndName_1.
|
|
1554
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet_connect"][alt="WalletConnect logo"]', 'auto-search-text', wallet.name, modal));
|
|
1616
1555
|
} }),
|
|
1617
1556
|
],
|
|
1618
1557
|
},
|
|
@@ -1645,8 +1584,7 @@ exports.sitesConfig = [
|
|
|
1645
1584
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1646
1585
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1647
1586
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('.chakra-portal div.chakra-modal__content-container', 'Please select your wallet:');
|
|
1648
|
-
return (modal &&
|
|
1649
|
-
(0, findIconAndName_1.findIconAndNameDirectly)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1587
|
+
return (modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1650
1588
|
} }),
|
|
1651
1589
|
],
|
|
1652
1590
|
},
|
|
@@ -1663,12 +1601,12 @@ exports.sitesConfig = [
|
|
|
1663
1601
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1664
1602
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.connect-options', 'Select Wallet');
|
|
1665
1603
|
return (modal &&
|
|
1666
|
-
(0, findIconAndName_1.
|
|
1604
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.logo[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1667
1605
|
} }),
|
|
1668
1606
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1669
1607
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.connect-options', 'Select Wallet');
|
|
1670
1608
|
return (modal &&
|
|
1671
|
-
(0, findIconAndName_1.
|
|
1609
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.logo[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
1672
1610
|
} }),
|
|
1673
1611
|
],
|
|
1674
1612
|
},
|
|
@@ -1683,7 +1621,7 @@ exports.sitesConfig = [
|
|
|
1683
1621
|
.filter(Boolean);
|
|
1684
1622
|
const modal = modals === null || modals === void 0 ? void 0 : modals[modals.length - 1];
|
|
1685
1623
|
return modal
|
|
1686
|
-
? (0, findIconAndName_1.
|
|
1624
|
+
? (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-MetaMask"]', 'auto-search-text', name, modal)
|
|
1687
1625
|
: null;
|
|
1688
1626
|
} }),
|
|
1689
1627
|
],
|
|
@@ -1701,7 +1639,7 @@ exports.sitesConfig = [
|
|
|
1701
1639
|
desktop: ['.proceed-cta-checkbox input', 'button:text("Proceed")', ':text("Connect Wallet")'],
|
|
1702
1640
|
},
|
|
1703
1641
|
skip: { mobile: true },
|
|
1704
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1642
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1705
1643
|
walletsForProvider: {
|
|
1706
1644
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1707
1645
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.modal-connect-wallet', 'Connect Wallet') }),
|
|
@@ -1760,13 +1698,13 @@ exports.sitesConfig = [
|
|
|
1760
1698
|
findIconAndName({ name }) {
|
|
1761
1699
|
const modal = document.querySelector('div[role="presentation"].MuiModal-root');
|
|
1762
1700
|
return modal
|
|
1763
|
-
? (0, findIconAndName_1.
|
|
1701
|
+
? (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/1.eb7cbbcbf"]', 'auto-search-text', name, modal)
|
|
1764
1702
|
: null;
|
|
1765
1703
|
} }),
|
|
1766
1704
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1767
1705
|
const modal = document.querySelector('div[role="presentation"].MuiModal-root');
|
|
1768
1706
|
return modal
|
|
1769
|
-
? (0, findIconAndName_1.
|
|
1707
|
+
? (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/2.cb9826961cbcd25676"]', 'auto-search-text', name, modal)
|
|
1770
1708
|
: null;
|
|
1771
1709
|
} }),
|
|
1772
1710
|
],
|
|
@@ -1877,7 +1815,7 @@ exports.sitesConfig = [
|
|
|
1877
1815
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1878
1816
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.chakra-modal__content[role="dialog"]', 'Connect to a wallet');
|
|
1879
1817
|
return (modal &&
|
|
1880
|
-
(0, findIconAndName_1.
|
|
1818
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask-icon"][alt="Icon"]', 'auto-search-text', name, modal));
|
|
1881
1819
|
},
|
|
1882
1820
|
afterUpdate(textNode, iconNode) {
|
|
1883
1821
|
iconNode.style.aspectRatio = '1';
|
|
@@ -1886,7 +1824,7 @@ exports.sitesConfig = [
|
|
|
1886
1824
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1887
1825
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.chakra-modal__content[role="dialog"]', 'Connect to a wallet');
|
|
1888
1826
|
return (modal &&
|
|
1889
|
-
(0, findIconAndName_1.
|
|
1827
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-connect-icon"][alt="Icon"]', 'auto-search-text', name, modal));
|
|
1890
1828
|
},
|
|
1891
1829
|
afterUpdate(textNode, iconNode) {
|
|
1892
1830
|
iconNode.style.aspectRatio = '1';
|
|
@@ -1950,44 +1888,24 @@ exports.sitesConfig = [
|
|
|
1950
1888
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
1951
1889
|
},
|
|
1952
1890
|
},
|
|
1953
|
-
// {
|
|
1954
|
-
// urls: ['app.wombat.exchange'],
|
|
1955
|
-
// testPath: [':text("Click here to")', ':text("Accept")', ':text("Connect Wallet")'],
|
|
1956
|
-
// walletsForProvider: {
|
|
1957
|
-
// [IInjectedProviderNames.ethereum]: [
|
|
1958
|
-
// {
|
|
1959
|
-
// ...basicWalletInfo['metamask'],
|
|
1960
|
-
// container: '#select-wallet-MetaMask',
|
|
1961
|
-
// },
|
|
1962
|
-
// {
|
|
1963
|
-
// ...basicWalletInfo['walletconnect'],
|
|
1964
|
-
// container: '[id="select-wallet-Wallet Connect"]',
|
|
1965
|
-
// },
|
|
1966
|
-
// ],
|
|
1967
|
-
// },
|
|
1968
|
-
// },
|
|
1969
1891
|
{
|
|
1970
1892
|
urls: ['hmx.org'],
|
|
1971
1893
|
testUrls: ['hmx.org/blast/trade/eth-usd'],
|
|
1972
1894
|
testPath: {
|
|
1973
|
-
desktop: [
|
|
1974
|
-
|
|
1975
|
-
':text("Accept & Continue")',
|
|
1976
|
-
':text("Connect Wallet")',
|
|
1977
|
-
],
|
|
1978
|
-
mobile: [':text("Continue on a ")', ':text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1895
|
+
desktop: ['button:has-text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1896
|
+
mobile: ['button:has-text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1979
1897
|
},
|
|
1980
1898
|
walletsForProvider: {
|
|
1981
1899
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1982
1900
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
1983
1901
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1984
1902
|
return (modal &&
|
|
1985
|
-
(0, findIconAndName_1.
|
|
1903
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
1986
1904
|
} }),
|
|
1987
1905
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
1988
1906
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1989
1907
|
return (modal &&
|
|
1990
|
-
(0, findIconAndName_1.
|
|
1908
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-connect"][alt="Wallet Connect"]', 'auto-search-text', wallet.name, modal));
|
|
1991
1909
|
} }),
|
|
1992
1910
|
],
|
|
1993
1911
|
},
|
|
@@ -2008,7 +1926,7 @@ exports.sitesConfig = [
|
|
|
2008
1926
|
},
|
|
2009
1927
|
{
|
|
2010
1928
|
urls: ['app.vesper.finance'],
|
|
2011
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1929
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2012
1930
|
walletsForProvider: {
|
|
2013
1931
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2014
1932
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.fixed div.rounded-lg', 'Connect Wallet') }),
|
|
@@ -2026,7 +1944,7 @@ exports.sitesConfig = [
|
|
|
2026
1944
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
2027
1945
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
2028
1946
|
return (modal &&
|
|
2029
|
-
(0, findIconAndName_1.
|
|
1947
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
2030
1948
|
} }),
|
|
2031
1949
|
],
|
|
2032
1950
|
},
|
|
@@ -2049,17 +1967,20 @@ exports.sitesConfig = [
|
|
|
2049
1967
|
skip: { mobile: true },
|
|
2050
1968
|
walletsForProvider: {
|
|
2051
1969
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2052
|
-
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode
|
|
2053
|
-
textNode.parentElement && (textNode.parentElement
|
|
1970
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode) {
|
|
1971
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignCenter)(textNode.parentElement);
|
|
2054
1972
|
} }),
|
|
2055
1973
|
],
|
|
2056
1974
|
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
2057
|
-
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet to continue')
|
|
1975
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode) {
|
|
1976
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignCenter)(textNode.parentElement);
|
|
1977
|
+
} }),
|
|
2058
1978
|
],
|
|
2059
1979
|
},
|
|
2060
1980
|
},
|
|
2061
1981
|
{
|
|
2062
1982
|
urls: ['stake.anvm.io'],
|
|
1983
|
+
skip: { mobile: true },
|
|
2063
1984
|
testPath: {
|
|
2064
1985
|
desktop: [':text("Connect Wallet")', ':nth-match(button.rounded-full:text("Connect"),2)'],
|
|
2065
1986
|
'mobile': [
|
|
@@ -2105,7 +2026,7 @@ exports.sitesConfig = [
|
|
|
2105
2026
|
{
|
|
2106
2027
|
urls: ['app.reflexer.finance'],
|
|
2107
2028
|
skip: { mobile: true },
|
|
2108
|
-
constraintMap: { icon: [imgUtils_1.
|
|
2029
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2109
2030
|
walletsForProvider: {
|
|
2110
2031
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2111
2032
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#connect-METAMASK' }),
|
|
@@ -2127,9 +2048,349 @@ exports.sitesConfig = [
|
|
|
2127
2048
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2128
2049
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Connect Wallet');
|
|
2129
2050
|
return (modal &&
|
|
2130
|
-
(0, findIconAndName_1.
|
|
2051
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/metamask"]', 'auto-search-text', name, modal));
|
|
2052
|
+
} }),
|
|
2053
|
+
],
|
|
2054
|
+
},
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
urls: ['app.hydration.net'],
|
|
2058
|
+
walletsForProvider: {
|
|
2059
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2060
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2061
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"][data-state="open"]', 'Connect wallet');
|
|
2062
|
+
return (modal &&
|
|
2063
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="assets/MetaMask"][alt="MetaMask Logo"]', 'auto-search-text', name, modal));
|
|
2064
|
+
} }),
|
|
2065
|
+
],
|
|
2066
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.polkadot]: [
|
|
2067
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['polkadot']), { findIconAndName({ name }) {
|
|
2068
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"][data-state="open"]', 'Connect wallet');
|
|
2069
|
+
return (modal &&
|
|
2070
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Polkadotjs Logo"]', 'auto-search-text', name, modal));
|
|
2071
|
+
} }),
|
|
2072
|
+
],
|
|
2073
|
+
},
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
urls: ['app.slingshot.finance'],
|
|
2077
|
+
walletsForProvider: {
|
|
2078
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2079
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2080
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root>div', 'Connect Wallet');
|
|
2081
|
+
return (modal &&
|
|
2082
|
+
(0, findIconAndName_1.findIconAndNameByName)(modal, name, (text) => {
|
|
2083
|
+
var _a, _b, _c;
|
|
2084
|
+
return (_c = (_b = (_a = text === null || text === void 0 ? void 0 : text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement) === null || _c === void 0 ? void 0 : _c.querySelector('div svg[height="38"]');
|
|
2085
|
+
}));
|
|
2086
|
+
},
|
|
2087
|
+
afterUpdate(textNode) {
|
|
2088
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignLeft)(textNode.parentElement);
|
|
2089
|
+
} }),
|
|
2090
|
+
],
|
|
2091
|
+
},
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
urls: ['phux.io'],
|
|
2095
|
+
testPath: ['button:text("Accept")', ':text("Connect Wallet")'],
|
|
2096
|
+
walletsForProvider: {
|
|
2097
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2098
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.bal-modal', 'Connect to a wallet') }),
|
|
2099
|
+
],
|
|
2100
|
+
},
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
urls: ['app.metronome.io'],
|
|
2104
|
+
testPath: ['button:text("Switch to")', ':text("Connect Wallet")'],
|
|
2105
|
+
constraintMap: { text: [], 'icon': [imgUtils_1.isWalletIconLessEqualThan] },
|
|
2106
|
+
walletsForProvider: {
|
|
2107
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2108
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.fixed', 'Connect Wallet') }),
|
|
2109
|
+
],
|
|
2110
|
+
},
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
urls: ['nftx.io'],
|
|
2114
|
+
walletsForProvider: {
|
|
2115
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit],
|
|
2116
|
+
},
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
urls: ['app.marsprotocol.io'],
|
|
2120
|
+
testPath: [':text("Connect Wallet")', 'button:has-text("Agree")'],
|
|
2121
|
+
walletsForProvider: {
|
|
2122
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
2123
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { name: /^Keplr Wallet$/, findIconAndName({ name }) {
|
|
2124
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('main > div.relative', 'Connect your wallet');
|
|
2125
|
+
return (modal &&
|
|
2126
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="keplr"][alt="Keplr Wallet"]', 'auto-search-text', name, modal));
|
|
2127
|
+
} }),
|
|
2128
|
+
],
|
|
2129
|
+
},
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
urls: ['farm.acala.network'],
|
|
2133
|
+
walletsForProvider: {
|
|
2134
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2135
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div.relative[id*="headlessui-dialog"]', 'Connect your wallet'), afterUpdate(textNode) {
|
|
2136
|
+
textNode.parentElement && (0, textUtils_1.makeTextWrap)(textNode.parentElement);
|
|
2137
|
+
} }),
|
|
2138
|
+
],
|
|
2139
|
+
},
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
urls: ['baklava.space'],
|
|
2143
|
+
testUrls: ['baklava.space/vaults/'],
|
|
2144
|
+
walletsForProvider: {
|
|
2145
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2146
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: 'div[role="dialog"][data-reach-dialog-content]' }),
|
|
2147
|
+
],
|
|
2148
|
+
},
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
urls: ['app.lenfi.io'],
|
|
2152
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2153
|
+
walletsForProvider: {
|
|
2154
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cardano]: [
|
|
2155
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { container: () => {
|
|
2156
|
+
return (0, utils_1.getConnectWalletModalByTitle)('.ReactModalPortal [role="dialog"]', 'Connect wallet');
|
|
2157
|
+
} }),
|
|
2158
|
+
],
|
|
2159
|
+
},
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
urls: ['oyster.synfutures.com'],
|
|
2163
|
+
testPath: {
|
|
2164
|
+
desktop: ['button:text("I Agree")', ':text("Connect Wallet")'],
|
|
2165
|
+
mobile: ['button:text("I Agree")', 'button.wallet-connect-btn-mobile'],
|
|
2166
|
+
},
|
|
2167
|
+
walletsForProvider: {
|
|
2168
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2169
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)(':is(div[role="dialog"].user-wallet-modal,div.ant-drawer.user-wallet-drawer)', 'Connect Wallet') }),
|
|
2170
|
+
],
|
|
2171
|
+
},
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
urls: ['app.liqee.io'],
|
|
2175
|
+
walletsForProvider: {
|
|
2176
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2177
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2178
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="media/wallet-MetaMask"]', 'auto-search-text', name, document.body, { 'icon': [imgUtils_1.isWalletIconLessEqualThan, utils_1.isClickable], 'text': [utils_1.isClickable] }, 2);
|
|
2179
|
+
} }),
|
|
2180
|
+
],
|
|
2181
|
+
},
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
urls: ['app.strike.org'],
|
|
2185
|
+
testPath: {
|
|
2186
|
+
desktop: [':text("Connect")', 'div.button:has-text("Continue")'],
|
|
2187
|
+
mobile: ['div.sc-ecaExY', ':text("Connect")', 'div.button:has-text("Continue")'],
|
|
2188
|
+
},
|
|
2189
|
+
walletsForProvider: {
|
|
2190
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2191
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2192
|
+
const metamaskBtn = document.querySelector('div.ant-modal.connect-modal .metamask-connect-btn');
|
|
2193
|
+
return (metamaskBtn &&
|
|
2194
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="metamask"]', 'auto-search-text', name, metamaskBtn));
|
|
2195
|
+
} }),
|
|
2196
|
+
],
|
|
2197
|
+
},
|
|
2198
|
+
},
|
|
2199
|
+
// {
|
|
2200
|
+
// urls: ['muesliswap.com'],
|
|
2201
|
+
// constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2202
|
+
// walletsForProvider: {
|
|
2203
|
+
// [IInjectedProviderNames.cardano]: [
|
|
2204
|
+
// {
|
|
2205
|
+
// ...basicWalletInfo['nami'],
|
|
2206
|
+
// container: () => {
|
|
2207
|
+
// return getConnectWalletModalByTitle(
|
|
2208
|
+
// '.ReactModalPortal [role="dialog"]',
|
|
2209
|
+
// 'Connect wallet',
|
|
2210
|
+
// );
|
|
2211
|
+
// },
|
|
2212
|
+
// },
|
|
2213
|
+
// ],
|
|
2214
|
+
// },
|
|
2215
|
+
// }
|
|
2216
|
+
{
|
|
2217
|
+
urls: ['dapp.cian.app'],
|
|
2218
|
+
testPath: [':text("Cancel")', ':text("Connect")'],
|
|
2219
|
+
walletsForProvider: {
|
|
2220
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2221
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2222
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].ant-modal', 'Connect Wallet');
|
|
2223
|
+
return (modal &&
|
|
2224
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/metamask"]', 'auto-search-text', name, modal));
|
|
2225
|
+
} }),
|
|
2226
|
+
],
|
|
2227
|
+
},
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
urls: ['app.ib.xyz'],
|
|
2231
|
+
testPath: [':text("Cancel")', ':text("Connect")'],
|
|
2232
|
+
walletsForProvider: {
|
|
2233
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2234
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2235
|
+
return (0, shadowRoot_1.findIconAndNameInShadowRoot)('onboard-v2', container, name);
|
|
2236
|
+
} }),
|
|
2237
|
+
],
|
|
2238
|
+
},
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
urls: ['app.aptin.io'],
|
|
2242
|
+
walletsForProvider: {
|
|
2243
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
2244
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.MuiPaper-root.aptin-dialog', 'Connect a wallet') }),
|
|
2245
|
+
],
|
|
2246
|
+
},
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
urls: ['juicebox.money'],
|
|
2250
|
+
testPath: {
|
|
2251
|
+
desktop: [':text("Connect")', 'button:has-text("I Agree")'],
|
|
2252
|
+
mobile: ['nav [role="button"]', ':text("Connect")', 'button:has-text("I Agree")'],
|
|
2253
|
+
},
|
|
2254
|
+
walletsForProvider: {
|
|
2255
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2256
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2257
|
+
return (0, shadowRoot_1.findIconAndNameInShadowRoot)('onboard-v2', container, name);
|
|
2258
|
+
} }),
|
|
2259
|
+
],
|
|
2260
|
+
},
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
urls: ['merlinswap.org'],
|
|
2264
|
+
walletsForProvider: {
|
|
2265
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2266
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2267
|
+
var _a, _b;
|
|
2268
|
+
const textNodes = utilsDomNodes_1.default.findTextNode('#root', /^Connect Wallet$/, 'all');
|
|
2269
|
+
const text = textNodes === null || textNodes === void 0 ? void 0 : textNodes.find((e) => { var _a, _b; return !!((_b = (_a = e.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.querySelector('img[src*="lightCloseButton.svg"]')); });
|
|
2270
|
+
const modal = (_b = (_a = text === null || text === void 0 ? void 0 : text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
2271
|
+
console.log('==>text', text, '==>modal', modal, 'textNodes', textNodes);
|
|
2272
|
+
return ((modal &&
|
|
2273
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.chakra-image[src*="wallet/metamask.png"]', 'auto-search-text', name, modal)) ||
|
|
2274
|
+
null);
|
|
2275
|
+
} }),
|
|
2276
|
+
],
|
|
2277
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
2278
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
2279
|
+
var _a, _b;
|
|
2280
|
+
const textNodes = utilsDomNodes_1.default.findTextNode('#root', /^Connect Wallet$/, 'all');
|
|
2281
|
+
const text = textNodes === null || textNodes === void 0 ? void 0 : textNodes.find((e) => { var _a, _b; return !!((_b = (_a = e.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.querySelector('img[src*="lightCloseButton.svg"]')); });
|
|
2282
|
+
const modal = (_b = (_a = text === null || text === void 0 ? void 0 : text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
2283
|
+
return ((modal &&
|
|
2284
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.chakra-image[src*="wallet/unisat.png"]', 'auto-search-text', name, modal)) ||
|
|
2285
|
+
null);
|
|
2286
|
+
} }),
|
|
2287
|
+
],
|
|
2288
|
+
},
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
urls: ['testnet.zkbase.app'],
|
|
2292
|
+
walletsForProvider: {
|
|
2293
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
2294
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.modal-panel.w-full', 'Connect Wallet') }),
|
|
2295
|
+
],
|
|
2296
|
+
},
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
urls: ['veno.finance'],
|
|
2300
|
+
walletsForProvider: {
|
|
2301
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2302
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName: ({ container, name }) => {
|
|
2303
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('section[role="dialog"].chakra-modal__content', 'Connect wallet');
|
|
2304
|
+
return (modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
2305
|
+
} }),
|
|
2306
|
+
],
|
|
2307
|
+
},
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
urls: ['www.tarot.to'],
|
|
2311
|
+
testPath: {
|
|
2312
|
+
'desktop': ['button:has-text("Accept")', ':text("Connect Wallet")'],
|
|
2313
|
+
mobile: ['button:has-text("Accept")', 'nav button.inline-flex', ':text("Connect")'],
|
|
2314
|
+
},
|
|
2315
|
+
walletsForProvider: {
|
|
2316
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2317
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2318
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].fixed.z-tarotModal', 'Connect Wallet');
|
|
2319
|
+
} }),
|
|
2320
|
+
],
|
|
2321
|
+
},
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
urls: ['myfil.pages.dev'],
|
|
2325
|
+
walletsForProvider: {
|
|
2326
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2327
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2328
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].ant-modal-wrap', 'Connect Wallet');
|
|
2329
|
+
} }),
|
|
2330
|
+
],
|
|
2331
|
+
},
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
urls: ['app.term.finance'],
|
|
2335
|
+
skip: true,
|
|
2336
|
+
walletsForProvider: {
|
|
2337
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2338
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2339
|
+
return (0, utils_1.getConnectWalletModalByTitle)('section[role="dialog"].chakra-modal__content', 'Connect Wallet');
|
|
2340
|
+
} }),
|
|
2341
|
+
],
|
|
2342
|
+
},
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
urls: ['app.ribbon.finance'],
|
|
2346
|
+
// testPath: { desktop: [":text('Connect Wallet')", ':text(Ethereum)'] },
|
|
2347
|
+
skip: true,
|
|
2348
|
+
walletsForProvider: {
|
|
2349
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2350
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2351
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].modal', 'CONNECT WALLET');
|
|
2352
|
+
} }),
|
|
2353
|
+
],
|
|
2354
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
2355
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => {
|
|
2356
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].modal', 'CONNECT WALLET');
|
|
2357
|
+
} }),
|
|
2358
|
+
],
|
|
2359
|
+
},
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
urls: ['app.pstake.finance'],
|
|
2363
|
+
skip: true,
|
|
2364
|
+
testUrls: ['app.pstake.finance/cosmos'],
|
|
2365
|
+
walletsForProvider: {
|
|
2366
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
2367
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { container: () => {
|
|
2368
|
+
return (0, utils_1.getConnectWalletModalByTitle)('.modal.wallets-modal', 'Connect wallet');
|
|
2131
2369
|
} }),
|
|
2132
2370
|
],
|
|
2133
2371
|
},
|
|
2134
2372
|
},
|
|
2373
|
+
{
|
|
2374
|
+
urls: ['solo.top'],
|
|
2375
|
+
skip: { mobile: true },
|
|
2376
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2377
|
+
walletsForProvider: {
|
|
2378
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2379
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#connect-METAMASK' }),
|
|
2380
|
+
],
|
|
2381
|
+
},
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
urls: ['keep3r.network'],
|
|
2385
|
+
only: true,
|
|
2386
|
+
testPath: {
|
|
2387
|
+
desktop: [':text("Connect wallet")'],
|
|
2388
|
+
mobile: ['button.fixed.flex'],
|
|
2389
|
+
},
|
|
2390
|
+
walletsForProvider: {
|
|
2391
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2392
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.yearn--modal' }),
|
|
2393
|
+
],
|
|
2394
|
+
},
|
|
2395
|
+
},
|
|
2135
2396
|
];
|