@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
|
@@ -9,11 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { IInjectedProviderNames } from '@onekeyfe/cross-inpage-provider-types';
|
|
11
11
|
import { WALLET_CONNECT_INFO, WALLET_NAMES } from '../consts';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { findIconAndNameByName, findIconAndNameByIcon } from './findIconAndName';
|
|
13
|
+
import { isWalletIconLessEqualThan, replaceIcon, } from './imgUtils';
|
|
14
14
|
import { findIconAndNameInShadowRoot } from './shadowRoot';
|
|
15
15
|
import { getConnectWalletModalByTitle, getMaxWithOfText, getWalletListByBtn, isClickable, isVisible, } from './utils';
|
|
16
|
-
import { findWalletTextByParent, makeTextEllipse, makeTextWrap, replaceText } from './textUtils';
|
|
16
|
+
import { findWalletTextByParent, makeTextAlignCenter, makeTextAlignLeft, makeTextEllipse, makeTextWrap, replaceText, } from './textUtils';
|
|
17
17
|
import domUtils from '../utils/utilsDomNodes';
|
|
18
18
|
export const basicWalletInfo = {
|
|
19
19
|
[WALLET_NAMES.metamask]: {
|
|
@@ -54,7 +54,7 @@ export const basicWalletInfo = {
|
|
|
54
54
|
[WALLET_NAMES.keplr]: {
|
|
55
55
|
updatedIcon: WALLET_CONNECT_INFO.keplr.icon,
|
|
56
56
|
updatedName: WALLET_CONNECT_INFO.keplr.text,
|
|
57
|
-
name: /^(Keplr|Keplr Mobile)$/i,
|
|
57
|
+
name: /^(Keplr|Keplr Mobile|Keplr Wallet)$/i,
|
|
58
58
|
},
|
|
59
59
|
[WALLET_NAMES.polkadot]: {
|
|
60
60
|
updatedIcon: WALLET_CONNECT_INFO.polkadot.icon,
|
|
@@ -112,10 +112,10 @@ export const sitesConfig = [
|
|
|
112
112
|
walletsForProvider: {
|
|
113
113
|
[IInjectedProviderNames.ethereum]: [
|
|
114
114
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
115
|
-
return
|
|
115
|
+
return findIconAndNameByIcon('.button-option.MetaMask > svg', 'auto-search-text', name);
|
|
116
116
|
} }),
|
|
117
117
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
118
|
-
return
|
|
118
|
+
return findIconAndNameByIcon('.button-option.WalletConnect > svg', 'auto-search-text', name);
|
|
119
119
|
} }),
|
|
120
120
|
],
|
|
121
121
|
},
|
|
@@ -224,7 +224,7 @@ export const sitesConfig = [
|
|
|
224
224
|
walletsForProvider: {
|
|
225
225
|
[IInjectedProviderNames.ethereum]: [
|
|
226
226
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
227
|
-
return
|
|
227
|
+
return findIconAndNameByIcon('.bg-connect button[type="button"] img[src*="connect-walletConnect.svg"]', 'auto-search-text', name);
|
|
228
228
|
} }),
|
|
229
229
|
],
|
|
230
230
|
},
|
|
@@ -293,7 +293,7 @@ export const sitesConfig = [
|
|
|
293
293
|
urls: ['01.xyz'],
|
|
294
294
|
testPath: [':text("Connect")', ':text("Continue")'],
|
|
295
295
|
skip: {
|
|
296
|
-
mobile: true,
|
|
296
|
+
mobile: true,
|
|
297
297
|
},
|
|
298
298
|
walletsForProvider: {
|
|
299
299
|
[IInjectedProviderNames.solana]: [
|
|
@@ -318,10 +318,10 @@ export const sitesConfig = [
|
|
|
318
318
|
walletsForProvider: {
|
|
319
319
|
[IInjectedProviderNames.ethereum]: [
|
|
320
320
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
321
|
-
return
|
|
321
|
+
return 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);
|
|
322
322
|
} }),
|
|
323
323
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
324
|
-
return
|
|
324
|
+
return 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);
|
|
325
325
|
} }),
|
|
326
326
|
],
|
|
327
327
|
},
|
|
@@ -336,7 +336,7 @@ export const sitesConfig = [
|
|
|
336
336
|
],
|
|
337
337
|
[IInjectedProviderNames.btc]: [
|
|
338
338
|
Object.assign(Object.assign({}, basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
339
|
-
return
|
|
339
|
+
return 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);
|
|
340
340
|
} }),
|
|
341
341
|
],
|
|
342
342
|
},
|
|
@@ -482,7 +482,7 @@ export const sitesConfig = [
|
|
|
482
482
|
],
|
|
483
483
|
[IInjectedProviderNames.polkadot]: [
|
|
484
484
|
Object.assign(Object.assign({}, basicWalletInfo['polkadot']), { findIconAndName: ({ name }) => {
|
|
485
|
-
return
|
|
485
|
+
return findIconAndNameByIcon('.relative.rounded-2xl.text-default img[alt="Polkadotjs Logo"]', (icon) => icon.parentElement, name);
|
|
486
486
|
} }),
|
|
487
487
|
],
|
|
488
488
|
},
|
|
@@ -584,12 +584,12 @@ export const sitesConfig = [
|
|
|
584
584
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
585
585
|
const modal = getConnectWalletModalByTitle('div.chakra-modal__content-container', 'Connect Wallet');
|
|
586
586
|
return (modal &&
|
|
587
|
-
|
|
587
|
+
findIconAndNameByIcon('img[alt="MetaMask"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name, modal));
|
|
588
588
|
} }),
|
|
589
589
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
590
590
|
const modal = getConnectWalletModalByTitle('div.chakra-modal__content-container', 'Connect Wallet');
|
|
591
591
|
return (modal &&
|
|
592
|
-
|
|
592
|
+
findIconAndNameByIcon('img[alt="WalletConnect"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name, modal));
|
|
593
593
|
} }),
|
|
594
594
|
],
|
|
595
595
|
[IInjectedProviderNames.polkadot]: [
|
|
@@ -604,7 +604,7 @@ export const sitesConfig = [
|
|
|
604
604
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
605
605
|
const modal = getConnectWalletModalByTitle('[data-testid="connectModal"]', 'Connect Your Wallet');
|
|
606
606
|
return (modal &&
|
|
607
|
-
|
|
607
|
+
findIconAndNameByIcon('svg[aria-label="metamask-icon"]', 'auto-search-text', name, modal));
|
|
608
608
|
} }),
|
|
609
609
|
],
|
|
610
610
|
},
|
|
@@ -648,26 +648,15 @@ export const sitesConfig = [
|
|
|
648
648
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
649
649
|
const modal = getConnectWalletModalByTitle('div[data-testid="modal-container"]', 'Connect Wallet');
|
|
650
650
|
return (modal &&
|
|
651
|
-
|
|
652
|
-
},
|
|
653
|
-
afterUpdate(text, imgNode) {
|
|
654
|
-
imgNode.style.height = 'auto';
|
|
651
|
+
findIconAndNameByIcon('img[src*="assets/metamask"]', 'auto-search-text', name, modal));
|
|
655
652
|
} }),
|
|
656
653
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
657
|
-
var _a;
|
|
658
654
|
const modal = getConnectWalletModalByTitle('div[data-testid="modal-container"]', 'Connect Wallet');
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
icon && {
|
|
665
|
-
iconNode: icon,
|
|
666
|
-
textNode: text,
|
|
667
|
-
});
|
|
668
|
-
},
|
|
669
|
-
afterUpdate(text, imgNode) {
|
|
670
|
-
imgNode.style.height = 'auto';
|
|
655
|
+
return (modal &&
|
|
656
|
+
findIconAndNameByName(modal, name, 'auto-search-icon', {
|
|
657
|
+
text: [],
|
|
658
|
+
icon: [isWalletIconLessEqualThan],
|
|
659
|
+
}));
|
|
671
660
|
} }),
|
|
672
661
|
],
|
|
673
662
|
},
|
|
@@ -726,7 +715,7 @@ export const sitesConfig = [
|
|
|
726
715
|
});
|
|
727
716
|
} }),
|
|
728
717
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
729
|
-
return
|
|
718
|
+
return findIconAndNameByIcon('div.connectWalletModel img[src*="walletconnect"]', (e) => { var _a; return (_a = e.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, name);
|
|
730
719
|
} }),
|
|
731
720
|
],
|
|
732
721
|
},
|
|
@@ -755,7 +744,7 @@ export const sitesConfig = [
|
|
|
755
744
|
walletsForProvider: {
|
|
756
745
|
[IInjectedProviderNames.ethereum]: [
|
|
757
746
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
758
|
-
return
|
|
747
|
+
return findIconAndNameByIcon('[id*="popover-body"] img[src*="metamask.svg"][alt="wallet logo"]', 'auto-search-text', wallet.name);
|
|
759
748
|
} }),
|
|
760
749
|
],
|
|
761
750
|
},
|
|
@@ -796,7 +785,7 @@ export const sitesConfig = [
|
|
|
796
785
|
walletsForProvider: {
|
|
797
786
|
[IInjectedProviderNames.ethereum]: [
|
|
798
787
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
799
|
-
return
|
|
788
|
+
return findIconAndNameByIcon(() => {
|
|
800
789
|
var _a;
|
|
801
790
|
return (_a = Array.from(document.querySelectorAll('section[id*="popover-content"] img[src*="Metamask.png"]')).filter((e) => isVisible(e))) === null || _a === void 0 ? void 0 : _a[0];
|
|
802
791
|
}, 'auto-search-text', wallet.name);
|
|
@@ -812,12 +801,12 @@ export const sitesConfig = [
|
|
|
812
801
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
813
802
|
const modal = getConnectWalletModalByTitle('div[id*="headlessui-dialog-panel"]', 'Connect a wallet');
|
|
814
803
|
return (modal &&
|
|
815
|
-
|
|
804
|
+
findIconAndNameByIcon('img[src*="metamask"]', 'auto-search-text', wallet.name, modal));
|
|
816
805
|
} }),
|
|
817
806
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
818
807
|
const modal = getConnectWalletModalByTitle('div[id*="headlessui-dialog-panel"]', 'Connect a wallet');
|
|
819
808
|
return (modal &&
|
|
820
|
-
|
|
809
|
+
findIconAndNameByIcon('img[src*="walletconnect"]', 'auto-search-text', wallet.name, modal));
|
|
821
810
|
} }),
|
|
822
811
|
],
|
|
823
812
|
},
|
|
@@ -837,13 +826,12 @@ export const sitesConfig = [
|
|
|
837
826
|
[IInjectedProviderNames.ethereum]: [
|
|
838
827
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
839
828
|
const modal = getConnectWalletModalByTitle('#rlogin-connect-modal', 'Connect your wallet');
|
|
840
|
-
return (modal &&
|
|
841
|
-
findIconAndNameDirectly('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
829
|
+
return (modal && findIconAndNameByIcon('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
842
830
|
} }),
|
|
843
831
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
844
832
|
const modal = getConnectWalletModalByTitle('#rlogin-connect-modal', 'Connect your wallet');
|
|
845
833
|
return (modal &&
|
|
846
|
-
|
|
834
|
+
findIconAndNameByIcon('img[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
847
835
|
} }),
|
|
848
836
|
],
|
|
849
837
|
},
|
|
@@ -867,12 +855,12 @@ export const sitesConfig = [
|
|
|
867
855
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
868
856
|
const modal = getConnectWalletModalByTitle('section.mantine-Modal-content', 'Connect Wallet');
|
|
869
857
|
return (modal &&
|
|
870
|
-
|
|
858
|
+
findIconAndNameByIcon('img[src*="metamask"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, wallet.name, modal));
|
|
871
859
|
} }),
|
|
872
860
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
873
861
|
const modal = getConnectWalletModalByTitle('section.mantine-Modal-content', 'Connect Wallet');
|
|
874
862
|
return (modal &&
|
|
875
|
-
|
|
863
|
+
findIconAndNameByIcon('img[src*="walletConnect"]', (icon) => { var _a; return (_a = icon.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement; }, wallet.name, modal));
|
|
876
864
|
} }),
|
|
877
865
|
],
|
|
878
866
|
},
|
|
@@ -898,12 +886,12 @@ export const sitesConfig = [
|
|
|
898
886
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
899
887
|
const modal = getConnectWalletModalByTitle('div.ant-modal-content', 'Select a wallet');
|
|
900
888
|
return (modal &&
|
|
901
|
-
|
|
889
|
+
findIconAndNameByIcon('img[src*="metamask"]', 'auto-search-text', wallet.name, modal));
|
|
902
890
|
} }),
|
|
903
891
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
904
892
|
const modal = getConnectWalletModalByTitle('div.ant-modal-content', 'Select a wallet');
|
|
905
893
|
return (modal &&
|
|
906
|
-
|
|
894
|
+
findIconAndNameByIcon('img[src*="wallet-connect.svg"]', 'auto-search-text', name, modal));
|
|
907
895
|
} }),
|
|
908
896
|
],
|
|
909
897
|
},
|
|
@@ -916,12 +904,12 @@ export const sitesConfig = [
|
|
|
916
904
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
917
905
|
const modal = getConnectWalletModalByTitle('div.chakra-modal__content-container', 'Select a wallet');
|
|
918
906
|
return (modal &&
|
|
919
|
-
|
|
907
|
+
findIconAndNameByIcon('img[alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
920
908
|
} }),
|
|
921
909
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
922
910
|
const modal = getConnectWalletModalByTitle('div.chakra-modal__content-container', 'Select a wallet');
|
|
923
911
|
return (modal &&
|
|
924
|
-
|
|
912
|
+
findIconAndNameByIcon('img[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
925
913
|
} }),
|
|
926
914
|
],
|
|
927
915
|
},
|
|
@@ -999,12 +987,12 @@ export const sitesConfig = [
|
|
|
999
987
|
walletsForProvider: {
|
|
1000
988
|
[IInjectedProviderNames.ethereum]: [
|
|
1001
989
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1002
|
-
return
|
|
990
|
+
return findIconAndNameByIcon('img[src*="metamask"][alt="Metamask"]', 'auto-search-text', name);
|
|
1003
991
|
} }),
|
|
1004
992
|
],
|
|
1005
993
|
[IInjectedProviderNames.cosmos]: [
|
|
1006
994
|
Object.assign(Object.assign({}, basicWalletInfo['keplr']), { findIconAndName({ name }) {
|
|
1007
|
-
return
|
|
995
|
+
return findIconAndNameByIcon('img[src*="keplr"][alt="Keplr"]', 'auto-search-text', name);
|
|
1008
996
|
} }),
|
|
1009
997
|
],
|
|
1010
998
|
},
|
|
@@ -1030,10 +1018,10 @@ export const sitesConfig = [
|
|
|
1030
1018
|
walletsForProvider: {
|
|
1031
1019
|
[IInjectedProviderNames.ethereum]: [
|
|
1032
1020
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1033
|
-
return
|
|
1021
|
+
return findIconAndNameByIcon('img[alt="Metamask Logo"][title="Metamask"]', 'auto-search-text', name);
|
|
1034
1022
|
} }),
|
|
1035
1023
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1036
|
-
return
|
|
1024
|
+
return findIconAndNameByIcon('img[alt="WalletConnect Logo"][title="WalletConnect"]', 'auto-search-text', name);
|
|
1037
1025
|
} }),
|
|
1038
1026
|
],
|
|
1039
1027
|
},
|
|
@@ -1054,7 +1042,7 @@ export const sitesConfig = [
|
|
|
1054
1042
|
},
|
|
1055
1043
|
{
|
|
1056
1044
|
urls: ['app.wagmi.com'],
|
|
1057
|
-
constraintMap: { icon: [
|
|
1045
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1058
1046
|
walletsForProvider: {
|
|
1059
1047
|
[IInjectedProviderNames.ethereum]: [
|
|
1060
1048
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: '#wallet-dropdown-scroll-wrapper' }),
|
|
@@ -1072,7 +1060,7 @@ export const sitesConfig = [
|
|
|
1072
1060
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1073
1061
|
const modal = getConnectWalletModalByTitle('#headlessui-portal-root', 'Connect your Wallet');
|
|
1074
1062
|
return (modal &&
|
|
1075
|
-
|
|
1063
|
+
findIconAndNameByIcon('img[src*="metamask.svg"][alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1076
1064
|
} }),
|
|
1077
1065
|
],
|
|
1078
1066
|
},
|
|
@@ -1102,7 +1090,7 @@ export const sitesConfig = [
|
|
|
1102
1090
|
},
|
|
1103
1091
|
{
|
|
1104
1092
|
urls: ['rosswap.com'],
|
|
1105
|
-
constraintMap: { icon: [
|
|
1093
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1106
1094
|
skip: {
|
|
1107
1095
|
mobile: true, //no connect wallet modal
|
|
1108
1096
|
},
|
|
@@ -1115,7 +1103,7 @@ export const sitesConfig = [
|
|
|
1115
1103
|
},
|
|
1116
1104
|
{
|
|
1117
1105
|
urls: ['maiadao.io'],
|
|
1118
|
-
constraintMap: { icon: [
|
|
1106
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1119
1107
|
skip: {
|
|
1120
1108
|
mobile: true, //no connect wallet modal
|
|
1121
1109
|
},
|
|
@@ -1148,58 +1136,10 @@ export const sitesConfig = [
|
|
|
1148
1136
|
},
|
|
1149
1137
|
{
|
|
1150
1138
|
urls: ['www.staderlabs.com'],
|
|
1151
|
-
skip: {
|
|
1152
|
-
mobile: true, //tmp skip for lack walletconnet
|
|
1153
|
-
},
|
|
1154
1139
|
testUrls: ['www.staderlabs.com/eth/stake/'],
|
|
1155
|
-
constraintMap: { icon: [
|
|
1140
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1156
1141
|
walletsForProvider: {
|
|
1157
|
-
[IInjectedProviderNames.ethereum]: [
|
|
1158
|
-
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1159
|
-
const modal = getConnectWalletModalByTitle('.chakra-modal__content-container', 'Select wallet') ||
|
|
1160
|
-
getConnectWalletModalByTitle('#__CONNECTKIT__', 'Connect Wallet');
|
|
1161
|
-
if (!modal) {
|
|
1162
|
-
return null;
|
|
1163
|
-
}
|
|
1164
|
-
return (findIconAndNameByParent(modal, name, {
|
|
1165
|
-
text: [],
|
|
1166
|
-
icon: [],
|
|
1167
|
-
}) ||
|
|
1168
|
-
findIconAndNameDirectly('img[src*="media/mm"][alt="metaMask Logo"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1169
|
-
},
|
|
1170
|
-
afterUpdate(text, icon) {
|
|
1171
|
-
var _a;
|
|
1172
|
-
const parent = (_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
1173
|
-
makeTextWrap(text.parentElement);
|
|
1174
|
-
const imgContainer = parent === null || parent === void 0 ? void 0 : parent.firstChild;
|
|
1175
|
-
if (parent && imgContainer) {
|
|
1176
|
-
imgContainer.style.display = 'flex';
|
|
1177
|
-
imgContainer.style.alignItems = 'center';
|
|
1178
|
-
imgContainer.style.borderRadius = '0';
|
|
1179
|
-
imgContainer.style.flexShrink = '0';
|
|
1180
|
-
}
|
|
1181
|
-
} }),
|
|
1182
|
-
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1183
|
-
const modal = getConnectWalletModalByTitle('.chakra-modal__content-container', 'Select wallet') ||
|
|
1184
|
-
getConnectWalletModalByTitle('#__CONNECTKIT__', 'Connect Wallet');
|
|
1185
|
-
if (!modal) {
|
|
1186
|
-
return null;
|
|
1187
|
-
}
|
|
1188
|
-
return findIconAndNameDirectly('img[alt="walletConnect Logo"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5);
|
|
1189
|
-
},
|
|
1190
|
-
afterUpdate(text, icon) {
|
|
1191
|
-
var _a;
|
|
1192
|
-
const parent = (_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
1193
|
-
makeTextWrap(text.parentElement);
|
|
1194
|
-
const imgContainer = parent === null || parent === void 0 ? void 0 : parent.firstChild;
|
|
1195
|
-
if (parent && imgContainer) {
|
|
1196
|
-
imgContainer.style.display = 'flex';
|
|
1197
|
-
imgContainer.style.alignItems = 'center';
|
|
1198
|
-
imgContainer.style.borderRadius = '0';
|
|
1199
|
-
imgContainer.style.flexShrink = '0';
|
|
1200
|
-
}
|
|
1201
|
-
}, skip: { mobile: true } }),
|
|
1202
|
-
],
|
|
1142
|
+
[IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
1203
1143
|
},
|
|
1204
1144
|
},
|
|
1205
1145
|
{
|
|
@@ -1208,7 +1148,7 @@ export const sitesConfig = [
|
|
|
1208
1148
|
testUrls: ['stake.solblaze.org/app'],
|
|
1209
1149
|
walletsForProvider: {
|
|
1210
1150
|
[IInjectedProviderNames.solana]: [
|
|
1211
|
-
Object.assign(Object.assign({}, basicWalletInfo['phantom']), { container: '#connect_modal', afterUpdate(text
|
|
1151
|
+
Object.assign(Object.assign({}, basicWalletInfo['phantom']), { container: '#connect_modal', afterUpdate(text) {
|
|
1212
1152
|
var _a;
|
|
1213
1153
|
if ((_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) {
|
|
1214
1154
|
text.parentElement.parentElement.style.whiteSpace = 'noWrap';
|
|
@@ -1220,7 +1160,6 @@ export const sitesConfig = [
|
|
|
1220
1160
|
},
|
|
1221
1161
|
{
|
|
1222
1162
|
urls: ['buzz.bsquared.network'],
|
|
1223
|
-
skip: true,
|
|
1224
1163
|
walletsForProvider: {
|
|
1225
1164
|
[IInjectedProviderNames.ethereum]: [
|
|
1226
1165
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('.modalContent', 'Connect Wallet') }),
|
|
@@ -1229,7 +1168,7 @@ export const sitesConfig = [
|
|
|
1229
1168
|
Object.assign(Object.assign({}, basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
1230
1169
|
const modal = getConnectWalletModalByTitle('.modalContent', 'Connect Wallet');
|
|
1231
1170
|
return (modal &&
|
|
1232
|
-
|
|
1171
|
+
findIconAndNameByIcon('img[src*="layout/unisat.png"]', 'auto-search-text', name));
|
|
1233
1172
|
} }),
|
|
1234
1173
|
],
|
|
1235
1174
|
},
|
|
@@ -1295,7 +1234,7 @@ export const sitesConfig = [
|
|
|
1295
1234
|
//mobile version is redirected to app-mobile.ariesmarkets.xyz. check next item
|
|
1296
1235
|
urls: ['app.ariesmarkets.xyz'],
|
|
1297
1236
|
testUrls: ['app.ariesmarkets.xyz/lending'],
|
|
1298
|
-
constraintMap: { icon: [
|
|
1237
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1299
1238
|
walletsForProvider: {
|
|
1300
1239
|
[IInjectedProviderNames.aptos]: [
|
|
1301
1240
|
Object.assign(Object.assign({}, basicWalletInfo['petra']), { container: () => getConnectWalletModalByTitle('div.mantine-Paper-root', 'Select Wallet') }),
|
|
@@ -1304,7 +1243,7 @@ export const sitesConfig = [
|
|
|
1304
1243
|
},
|
|
1305
1244
|
{
|
|
1306
1245
|
urls: ['app-mobile.ariesmarkets.xyz'],
|
|
1307
|
-
constraintMap: { icon: [
|
|
1246
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1308
1247
|
walletsForProvider: {
|
|
1309
1248
|
[IInjectedProviderNames.aptos]: [
|
|
1310
1249
|
Object.assign(Object.assign({}, basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
@@ -1356,7 +1295,7 @@ export const sitesConfig = [
|
|
|
1356
1295
|
Object.assign(Object.assign({}, basicWalletInfo['nami']), { findIconAndName({ name }) {
|
|
1357
1296
|
const modal = getConnectWalletModalByTitle('div.dialog-connect-wallet', 'Connect wallet');
|
|
1358
1297
|
return (modal &&
|
|
1359
|
-
|
|
1298
|
+
findIconAndNameByIcon('img[src*="nami.svg"][alt="Nami"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 6));
|
|
1360
1299
|
} }),
|
|
1361
1300
|
],
|
|
1362
1301
|
},
|
|
@@ -1371,12 +1310,12 @@ export const sitesConfig = [
|
|
|
1371
1310
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1372
1311
|
const modal = getConnectWalletModalByTitle('#portal-root', 'Connect Wallet');
|
|
1373
1312
|
return (modal &&
|
|
1374
|
-
|
|
1313
|
+
findIconAndNameByIcon('img[src*="wallets/metamask.png"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1375
1314
|
} }),
|
|
1376
1315
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1377
1316
|
const modal = getConnectWalletModalByTitle('#portal-root', 'Connect Wallet');
|
|
1378
1317
|
return (modal &&
|
|
1379
|
-
|
|
1318
|
+
findIconAndNameByIcon('img[src*="wallets/walletconnect.png"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1380
1319
|
} }),
|
|
1381
1320
|
],
|
|
1382
1321
|
},
|
|
@@ -1401,7 +1340,7 @@ export const sitesConfig = [
|
|
|
1401
1340
|
const modal = getConnectWalletModalByTitle('div.inside', 'Connect Wallet') ||
|
|
1402
1341
|
getConnectWalletModalByTitle('div[role="dialog"]', 'Start by connecting with one');
|
|
1403
1342
|
return (modal &&
|
|
1404
|
-
|
|
1343
|
+
findIconAndNameByIcon('img[src*="metamask.png"]', 'auto-search-text', name, modal));
|
|
1405
1344
|
} }),
|
|
1406
1345
|
],
|
|
1407
1346
|
},
|
|
@@ -1419,12 +1358,12 @@ export const sitesConfig = [
|
|
|
1419
1358
|
Object.assign(Object.assign({}, basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
1420
1359
|
const modal = getConnectWalletModalByTitle('div.p-dialog', 'Connect a Wallet');
|
|
1421
1360
|
return (modal &&
|
|
1422
|
-
|
|
1361
|
+
findIconAndNameByIcon('img[alt="Petra Wallet"]', 'auto-search-text', name, modal));
|
|
1423
1362
|
} }),
|
|
1424
1363
|
Object.assign(Object.assign({}, basicWalletInfo['martian']), { findIconAndName({ name }) {
|
|
1425
1364
|
const modal = getConnectWalletModalByTitle('div.p-dialog', 'Connect a Wallet');
|
|
1426
1365
|
return (modal &&
|
|
1427
|
-
|
|
1366
|
+
findIconAndNameByIcon('img[alt="Martian Wallet"]', 'auto-search-text', name, modal));
|
|
1428
1367
|
} }),
|
|
1429
1368
|
],
|
|
1430
1369
|
},
|
|
@@ -1468,7 +1407,7 @@ export const sitesConfig = [
|
|
|
1468
1407
|
}
|
|
1469
1408
|
const parent = shadowRoot.querySelector('div.wallet-list__container');
|
|
1470
1409
|
return (parent &&
|
|
1471
|
-
|
|
1410
|
+
findIconAndNameByIcon('img[data-testid="wallet-icon-metamask"]', 'auto-search-text', name, parent));
|
|
1472
1411
|
} }),
|
|
1473
1412
|
],
|
|
1474
1413
|
},
|
|
@@ -1484,7 +1423,7 @@ export const sitesConfig = [
|
|
|
1484
1423
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1485
1424
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect wallet');
|
|
1486
1425
|
return (modal &&
|
|
1487
|
-
|
|
1426
|
+
findIconAndNameByIcon('img[src*="metamask.svg"][alt="MetaMask icon"]', 'auto-search-text', name, modal));
|
|
1488
1427
|
} }),
|
|
1489
1428
|
],
|
|
1490
1429
|
},
|
|
@@ -1496,7 +1435,7 @@ export const sitesConfig = [
|
|
|
1496
1435
|
Object.assign(Object.assign({}, basicWalletInfo['polkadot']), { findIconAndName() {
|
|
1497
1436
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect Wallet');
|
|
1498
1437
|
return (modal &&
|
|
1499
|
-
|
|
1438
|
+
findIconAndNameByIcon('img[alt="Polkadotjs Logo"]', 'auto-search-text', /^Polkadot/, modal));
|
|
1500
1439
|
} }),
|
|
1501
1440
|
],
|
|
1502
1441
|
},
|
|
@@ -1568,7 +1507,7 @@ export const sitesConfig = [
|
|
|
1568
1507
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1569
1508
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect Wallet');
|
|
1570
1509
|
return (modal &&
|
|
1571
|
-
|
|
1510
|
+
findIconAndNameByIcon('img[src*="metamask.svg"][alt="Metamask"]', 'auto-search-text', name, modal));
|
|
1572
1511
|
},
|
|
1573
1512
|
afterUpdate(textNode, icon) {
|
|
1574
1513
|
icon.style.marginRight = '12px';
|
|
@@ -1578,7 +1517,7 @@ export const sitesConfig = [
|
|
|
1578
1517
|
Object.assign(Object.assign({}, basicWalletInfo['keplr']), { findIconAndName({ name }) {
|
|
1579
1518
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect Wallet');
|
|
1580
1519
|
return (modal &&
|
|
1581
|
-
|
|
1520
|
+
findIconAndNameByIcon('img[src*="keplr.svg"][alt="Keplr"]', 'auto-search-text', name, modal));
|
|
1582
1521
|
},
|
|
1583
1522
|
afterUpdate(textNode, icon) {
|
|
1584
1523
|
icon.style.marginRight = '12px';
|
|
@@ -1601,12 +1540,12 @@ export const sitesConfig = [
|
|
|
1601
1540
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
1602
1541
|
const modal = getConnectWalletModalByTitle('#headlessui-portal-root div[role="dialog"]', 'Choose Network');
|
|
1603
1542
|
return (modal &&
|
|
1604
|
-
|
|
1543
|
+
findIconAndNameByIcon('img[src*="metamask"][alt="MetaMask logo"]', 'auto-search-text', wallet.name, modal));
|
|
1605
1544
|
} }),
|
|
1606
1545
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
1607
1546
|
const modal = getConnectWalletModalByTitle('#headlessui-portal-root div[role="dialog"]', 'Choose Network');
|
|
1608
1547
|
return (modal &&
|
|
1609
|
-
|
|
1548
|
+
findIconAndNameByIcon('img[src*="wallet_connect"][alt="WalletConnect logo"]', 'auto-search-text', wallet.name, modal));
|
|
1610
1549
|
} }),
|
|
1611
1550
|
],
|
|
1612
1551
|
},
|
|
@@ -1639,8 +1578,7 @@ export const sitesConfig = [
|
|
|
1639
1578
|
[IInjectedProviderNames.ethereum]: [
|
|
1640
1579
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1641
1580
|
const modal = getConnectWalletModalByTitle('.chakra-portal div.chakra-modal__content-container', 'Please select your wallet:');
|
|
1642
|
-
return (modal &&
|
|
1643
|
-
findIconAndNameDirectly('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1581
|
+
return (modal && findIconAndNameByIcon('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1644
1582
|
} }),
|
|
1645
1583
|
],
|
|
1646
1584
|
},
|
|
@@ -1657,12 +1595,12 @@ export const sitesConfig = [
|
|
|
1657
1595
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1658
1596
|
const modal = getConnectWalletModalByTitle('div.connect-options', 'Select Wallet');
|
|
1659
1597
|
return (modal &&
|
|
1660
|
-
|
|
1598
|
+
findIconAndNameByIcon('img.logo[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1661
1599
|
} }),
|
|
1662
1600
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1663
1601
|
const modal = getConnectWalletModalByTitle('div.connect-options', 'Select Wallet');
|
|
1664
1602
|
return (modal &&
|
|
1665
|
-
|
|
1603
|
+
findIconAndNameByIcon('img.logo[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
1666
1604
|
} }),
|
|
1667
1605
|
],
|
|
1668
1606
|
},
|
|
@@ -1677,7 +1615,7 @@ export const sitesConfig = [
|
|
|
1677
1615
|
.filter(Boolean);
|
|
1678
1616
|
const modal = modals === null || modals === void 0 ? void 0 : modals[modals.length - 1];
|
|
1679
1617
|
return modal
|
|
1680
|
-
?
|
|
1618
|
+
? findIconAndNameByIcon('img[src*="wallet-MetaMask"]', 'auto-search-text', name, modal)
|
|
1681
1619
|
: null;
|
|
1682
1620
|
} }),
|
|
1683
1621
|
],
|
|
@@ -1695,7 +1633,7 @@ export const sitesConfig = [
|
|
|
1695
1633
|
desktop: ['.proceed-cta-checkbox input', 'button:text("Proceed")', ':text("Connect Wallet")'],
|
|
1696
1634
|
},
|
|
1697
1635
|
skip: { mobile: true },
|
|
1698
|
-
constraintMap: { icon: [
|
|
1636
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
1699
1637
|
walletsForProvider: {
|
|
1700
1638
|
[IInjectedProviderNames.ethereum]: [
|
|
1701
1639
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('div.modal-connect-wallet', 'Connect Wallet') }),
|
|
@@ -1754,13 +1692,13 @@ export const sitesConfig = [
|
|
|
1754
1692
|
findIconAndName({ name }) {
|
|
1755
1693
|
const modal = document.querySelector('div[role="presentation"].MuiModal-root');
|
|
1756
1694
|
return modal
|
|
1757
|
-
?
|
|
1695
|
+
? findIconAndNameByIcon('img[src*="static/media/1.eb7cbbcbf"]', 'auto-search-text', name, modal)
|
|
1758
1696
|
: null;
|
|
1759
1697
|
} }),
|
|
1760
1698
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1761
1699
|
const modal = document.querySelector('div[role="presentation"].MuiModal-root');
|
|
1762
1700
|
return modal
|
|
1763
|
-
?
|
|
1701
|
+
? findIconAndNameByIcon('img[src*="static/media/2.cb9826961cbcd25676"]', 'auto-search-text', name, modal)
|
|
1764
1702
|
: null;
|
|
1765
1703
|
} }),
|
|
1766
1704
|
],
|
|
@@ -1871,7 +1809,7 @@ export const sitesConfig = [
|
|
|
1871
1809
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1872
1810
|
const modal = getConnectWalletModalByTitle('section.chakra-modal__content[role="dialog"]', 'Connect to a wallet');
|
|
1873
1811
|
return (modal &&
|
|
1874
|
-
|
|
1812
|
+
findIconAndNameByIcon('img[src*="metamask-icon"][alt="Icon"]', 'auto-search-text', name, modal));
|
|
1875
1813
|
},
|
|
1876
1814
|
afterUpdate(textNode, iconNode) {
|
|
1877
1815
|
iconNode.style.aspectRatio = '1';
|
|
@@ -1880,7 +1818,7 @@ export const sitesConfig = [
|
|
|
1880
1818
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1881
1819
|
const modal = getConnectWalletModalByTitle('section.chakra-modal__content[role="dialog"]', 'Connect to a wallet');
|
|
1882
1820
|
return (modal &&
|
|
1883
|
-
|
|
1821
|
+
findIconAndNameByIcon('img[src*="wallet-connect-icon"][alt="Icon"]', 'auto-search-text', name, modal));
|
|
1884
1822
|
},
|
|
1885
1823
|
afterUpdate(textNode, iconNode) {
|
|
1886
1824
|
iconNode.style.aspectRatio = '1';
|
|
@@ -1944,44 +1882,24 @@ export const sitesConfig = [
|
|
|
1944
1882
|
[IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
1945
1883
|
},
|
|
1946
1884
|
},
|
|
1947
|
-
// {
|
|
1948
|
-
// urls: ['app.wombat.exchange'],
|
|
1949
|
-
// testPath: [':text("Click here to")', ':text("Accept")', ':text("Connect Wallet")'],
|
|
1950
|
-
// walletsForProvider: {
|
|
1951
|
-
// [IInjectedProviderNames.ethereum]: [
|
|
1952
|
-
// {
|
|
1953
|
-
// ...basicWalletInfo['metamask'],
|
|
1954
|
-
// container: '#select-wallet-MetaMask',
|
|
1955
|
-
// },
|
|
1956
|
-
// {
|
|
1957
|
-
// ...basicWalletInfo['walletconnect'],
|
|
1958
|
-
// container: '[id="select-wallet-Wallet Connect"]',
|
|
1959
|
-
// },
|
|
1960
|
-
// ],
|
|
1961
|
-
// },
|
|
1962
|
-
// },
|
|
1963
1885
|
{
|
|
1964
1886
|
urls: ['hmx.org'],
|
|
1965
1887
|
testUrls: ['hmx.org/blast/trade/eth-usd'],
|
|
1966
1888
|
testPath: {
|
|
1967
|
-
desktop: [
|
|
1968
|
-
|
|
1969
|
-
':text("Accept & Continue")',
|
|
1970
|
-
':text("Connect Wallet")',
|
|
1971
|
-
],
|
|
1972
|
-
mobile: [':text("Continue on a ")', ':text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1889
|
+
desktop: ['button:has-text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1890
|
+
mobile: ['button:has-text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1973
1891
|
},
|
|
1974
1892
|
walletsForProvider: {
|
|
1975
1893
|
[IInjectedProviderNames.ethereum]: [
|
|
1976
1894
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
1977
1895
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect Wallet');
|
|
1978
1896
|
return (modal &&
|
|
1979
|
-
|
|
1897
|
+
findIconAndNameByIcon('img[src*="metamask"][alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
1980
1898
|
} }),
|
|
1981
1899
|
Object.assign(Object.assign({}, basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
1982
1900
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect Wallet');
|
|
1983
1901
|
return (modal &&
|
|
1984
|
-
|
|
1902
|
+
findIconAndNameByIcon('img[src*="wallet-connect"][alt="Wallet Connect"]', 'auto-search-text', wallet.name, modal));
|
|
1985
1903
|
} }),
|
|
1986
1904
|
],
|
|
1987
1905
|
},
|
|
@@ -2002,7 +1920,7 @@ export const sitesConfig = [
|
|
|
2002
1920
|
},
|
|
2003
1921
|
{
|
|
2004
1922
|
urls: ['app.vesper.finance'],
|
|
2005
|
-
constraintMap: { icon: [
|
|
1923
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2006
1924
|
walletsForProvider: {
|
|
2007
1925
|
[IInjectedProviderNames.ethereum]: [
|
|
2008
1926
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('div.fixed div.rounded-lg', 'Connect Wallet') }),
|
|
@@ -2020,7 +1938,7 @@ export const sitesConfig = [
|
|
|
2020
1938
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
2021
1939
|
const modal = getConnectWalletModalByTitle('div[role="dialog"]', 'Connect Wallet');
|
|
2022
1940
|
return (modal &&
|
|
2023
|
-
|
|
1941
|
+
findIconAndNameByIcon('img[src*="metamask"][alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
2024
1942
|
} }),
|
|
2025
1943
|
],
|
|
2026
1944
|
},
|
|
@@ -2043,17 +1961,20 @@ export const sitesConfig = [
|
|
|
2043
1961
|
skip: { mobile: true },
|
|
2044
1962
|
walletsForProvider: {
|
|
2045
1963
|
[IInjectedProviderNames.ethereum]: [
|
|
2046
|
-
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode
|
|
2047
|
-
textNode.parentElement && (textNode.parentElement
|
|
1964
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode) {
|
|
1965
|
+
textNode.parentElement && makeTextAlignCenter(textNode.parentElement);
|
|
2048
1966
|
} }),
|
|
2049
1967
|
],
|
|
2050
1968
|
[IInjectedProviderNames.solana]: [
|
|
2051
|
-
Object.assign(Object.assign({}, basicWalletInfo['phantom']), { container: () => getConnectWalletModalByTitle('div[role="dialog"]', 'Connect wallet to continue')
|
|
1969
|
+
Object.assign(Object.assign({}, basicWalletInfo['phantom']), { container: () => getConnectWalletModalByTitle('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode) {
|
|
1970
|
+
textNode.parentElement && makeTextAlignCenter(textNode.parentElement);
|
|
1971
|
+
} }),
|
|
2052
1972
|
],
|
|
2053
1973
|
},
|
|
2054
1974
|
},
|
|
2055
1975
|
{
|
|
2056
1976
|
urls: ['stake.anvm.io'],
|
|
1977
|
+
skip: { mobile: true },
|
|
2057
1978
|
testPath: {
|
|
2058
1979
|
desktop: [':text("Connect Wallet")', ':nth-match(button.rounded-full:text("Connect"),2)'],
|
|
2059
1980
|
'mobile': [
|
|
@@ -2099,7 +2020,7 @@ export const sitesConfig = [
|
|
|
2099
2020
|
{
|
|
2100
2021
|
urls: ['app.reflexer.finance'],
|
|
2101
2022
|
skip: { mobile: true },
|
|
2102
|
-
constraintMap: { icon: [
|
|
2023
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2103
2024
|
walletsForProvider: {
|
|
2104
2025
|
[IInjectedProviderNames.ethereum]: [
|
|
2105
2026
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: '#connect-METAMASK' }),
|
|
@@ -2121,9 +2042,349 @@ export const sitesConfig = [
|
|
|
2121
2042
|
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2122
2043
|
const modal = getConnectWalletModalByTitle('div.ant-modal-content', 'Connect Wallet');
|
|
2123
2044
|
return (modal &&
|
|
2124
|
-
|
|
2045
|
+
findIconAndNameByIcon('img[src*="static/media/metamask"]', 'auto-search-text', name, modal));
|
|
2046
|
+
} }),
|
|
2047
|
+
],
|
|
2048
|
+
},
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
urls: ['app.hydration.net'],
|
|
2052
|
+
walletsForProvider: {
|
|
2053
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2054
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2055
|
+
const modal = getConnectWalletModalByTitle('div[role="dialog"][data-state="open"]', 'Connect wallet');
|
|
2056
|
+
return (modal &&
|
|
2057
|
+
findIconAndNameByIcon('img[src*="assets/MetaMask"][alt="MetaMask Logo"]', 'auto-search-text', name, modal));
|
|
2058
|
+
} }),
|
|
2059
|
+
],
|
|
2060
|
+
[IInjectedProviderNames.polkadot]: [
|
|
2061
|
+
Object.assign(Object.assign({}, basicWalletInfo['polkadot']), { findIconAndName({ name }) {
|
|
2062
|
+
const modal = getConnectWalletModalByTitle('div[role="dialog"][data-state="open"]', 'Connect wallet');
|
|
2063
|
+
return (modal &&
|
|
2064
|
+
findIconAndNameByIcon('img[alt="Polkadotjs Logo"]', 'auto-search-text', name, modal));
|
|
2065
|
+
} }),
|
|
2066
|
+
],
|
|
2067
|
+
},
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
urls: ['app.slingshot.finance'],
|
|
2071
|
+
walletsForProvider: {
|
|
2072
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2073
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2074
|
+
const modal = getConnectWalletModalByTitle('#portal-root>div', 'Connect Wallet');
|
|
2075
|
+
return (modal &&
|
|
2076
|
+
findIconAndNameByName(modal, name, (text) => {
|
|
2077
|
+
var _a, _b, _c;
|
|
2078
|
+
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"]');
|
|
2079
|
+
}));
|
|
2080
|
+
},
|
|
2081
|
+
afterUpdate(textNode) {
|
|
2082
|
+
textNode.parentElement && makeTextAlignLeft(textNode.parentElement);
|
|
2083
|
+
} }),
|
|
2084
|
+
],
|
|
2085
|
+
},
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
urls: ['phux.io'],
|
|
2089
|
+
testPath: ['button:text("Accept")', ':text("Connect Wallet")'],
|
|
2090
|
+
walletsForProvider: {
|
|
2091
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2092
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('div.bal-modal', 'Connect to a wallet') }),
|
|
2093
|
+
],
|
|
2094
|
+
},
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
urls: ['app.metronome.io'],
|
|
2098
|
+
testPath: ['button:text("Switch to")', ':text("Connect Wallet")'],
|
|
2099
|
+
constraintMap: { text: [], 'icon': [isWalletIconLessEqualThan] },
|
|
2100
|
+
walletsForProvider: {
|
|
2101
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2102
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('div.fixed', 'Connect Wallet') }),
|
|
2103
|
+
],
|
|
2104
|
+
},
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
urls: ['nftx.io'],
|
|
2108
|
+
walletsForProvider: {
|
|
2109
|
+
[IInjectedProviderNames.ethereum]: [metamaskForRainbowKit],
|
|
2110
|
+
},
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
urls: ['app.marsprotocol.io'],
|
|
2114
|
+
testPath: [':text("Connect Wallet")', 'button:has-text("Agree")'],
|
|
2115
|
+
walletsForProvider: {
|
|
2116
|
+
[IInjectedProviderNames.cosmos]: [
|
|
2117
|
+
Object.assign(Object.assign({}, basicWalletInfo['keplr']), { name: /^Keplr Wallet$/, findIconAndName({ name }) {
|
|
2118
|
+
const modal = getConnectWalletModalByTitle('main > div.relative', 'Connect your wallet');
|
|
2119
|
+
return (modal &&
|
|
2120
|
+
findIconAndNameByIcon('img[src*="keplr"][alt="Keplr Wallet"]', 'auto-search-text', name, modal));
|
|
2121
|
+
} }),
|
|
2122
|
+
],
|
|
2123
|
+
},
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
urls: ['farm.acala.network'],
|
|
2127
|
+
walletsForProvider: {
|
|
2128
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2129
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle('#headlessui-portal-root div.relative[id*="headlessui-dialog"]', 'Connect your wallet'), afterUpdate(textNode) {
|
|
2130
|
+
textNode.parentElement && makeTextWrap(textNode.parentElement);
|
|
2131
|
+
} }),
|
|
2132
|
+
],
|
|
2133
|
+
},
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
urls: ['baklava.space'],
|
|
2137
|
+
testUrls: ['baklava.space/vaults/'],
|
|
2138
|
+
walletsForProvider: {
|
|
2139
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2140
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: 'div[role="dialog"][data-reach-dialog-content]' }),
|
|
2141
|
+
],
|
|
2142
|
+
},
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
urls: ['app.lenfi.io'],
|
|
2146
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2147
|
+
walletsForProvider: {
|
|
2148
|
+
[IInjectedProviderNames.cardano]: [
|
|
2149
|
+
Object.assign(Object.assign({}, basicWalletInfo['nami']), { container: () => {
|
|
2150
|
+
return getConnectWalletModalByTitle('.ReactModalPortal [role="dialog"]', 'Connect wallet');
|
|
2151
|
+
} }),
|
|
2152
|
+
],
|
|
2153
|
+
},
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
urls: ['oyster.synfutures.com'],
|
|
2157
|
+
testPath: {
|
|
2158
|
+
desktop: ['button:text("I Agree")', ':text("Connect Wallet")'],
|
|
2159
|
+
mobile: ['button:text("I Agree")', 'button.wallet-connect-btn-mobile'],
|
|
2160
|
+
},
|
|
2161
|
+
walletsForProvider: {
|
|
2162
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2163
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => getConnectWalletModalByTitle(':is(div[role="dialog"].user-wallet-modal,div.ant-drawer.user-wallet-drawer)', 'Connect Wallet') }),
|
|
2164
|
+
],
|
|
2165
|
+
},
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
urls: ['app.liqee.io'],
|
|
2169
|
+
walletsForProvider: {
|
|
2170
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2171
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2172
|
+
return findIconAndNameByIcon('img[src*="media/wallet-MetaMask"]', 'auto-search-text', name, document.body, { 'icon': [isWalletIconLessEqualThan, isClickable], 'text': [isClickable] }, 2);
|
|
2173
|
+
} }),
|
|
2174
|
+
],
|
|
2175
|
+
},
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
urls: ['app.strike.org'],
|
|
2179
|
+
testPath: {
|
|
2180
|
+
desktop: [':text("Connect")', 'div.button:has-text("Continue")'],
|
|
2181
|
+
mobile: ['div.sc-ecaExY', ':text("Connect")', 'div.button:has-text("Continue")'],
|
|
2182
|
+
},
|
|
2183
|
+
walletsForProvider: {
|
|
2184
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2185
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2186
|
+
const metamaskBtn = document.querySelector('div.ant-modal.connect-modal .metamask-connect-btn');
|
|
2187
|
+
return (metamaskBtn &&
|
|
2188
|
+
findIconAndNameByIcon('img[alt="metamask"]', 'auto-search-text', name, metamaskBtn));
|
|
2189
|
+
} }),
|
|
2190
|
+
],
|
|
2191
|
+
},
|
|
2192
|
+
},
|
|
2193
|
+
// {
|
|
2194
|
+
// urls: ['muesliswap.com'],
|
|
2195
|
+
// constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2196
|
+
// walletsForProvider: {
|
|
2197
|
+
// [IInjectedProviderNames.cardano]: [
|
|
2198
|
+
// {
|
|
2199
|
+
// ...basicWalletInfo['nami'],
|
|
2200
|
+
// container: () => {
|
|
2201
|
+
// return getConnectWalletModalByTitle(
|
|
2202
|
+
// '.ReactModalPortal [role="dialog"]',
|
|
2203
|
+
// 'Connect wallet',
|
|
2204
|
+
// );
|
|
2205
|
+
// },
|
|
2206
|
+
// },
|
|
2207
|
+
// ],
|
|
2208
|
+
// },
|
|
2209
|
+
// }
|
|
2210
|
+
{
|
|
2211
|
+
urls: ['dapp.cian.app'],
|
|
2212
|
+
testPath: [':text("Cancel")', ':text("Connect")'],
|
|
2213
|
+
walletsForProvider: {
|
|
2214
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2215
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2216
|
+
const modal = getConnectWalletModalByTitle('div[role="dialog"].ant-modal', 'Connect Wallet');
|
|
2217
|
+
return (modal &&
|
|
2218
|
+
findIconAndNameByIcon('img[src*="static/media/metamask"]', 'auto-search-text', name, modal));
|
|
2219
|
+
} }),
|
|
2220
|
+
],
|
|
2221
|
+
},
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
urls: ['app.ib.xyz'],
|
|
2225
|
+
testPath: [':text("Cancel")', ':text("Connect")'],
|
|
2226
|
+
walletsForProvider: {
|
|
2227
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2228
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2229
|
+
return findIconAndNameInShadowRoot('onboard-v2', container, name);
|
|
2230
|
+
} }),
|
|
2231
|
+
],
|
|
2232
|
+
},
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
urls: ['app.aptin.io'],
|
|
2236
|
+
walletsForProvider: {
|
|
2237
|
+
[IInjectedProviderNames.aptos]: [
|
|
2238
|
+
Object.assign(Object.assign({}, basicWalletInfo['petra']), { container: () => getConnectWalletModalByTitle('div.MuiPaper-root.aptin-dialog', 'Connect a wallet') }),
|
|
2239
|
+
],
|
|
2240
|
+
},
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
urls: ['juicebox.money'],
|
|
2244
|
+
testPath: {
|
|
2245
|
+
desktop: [':text("Connect")', 'button:has-text("I Agree")'],
|
|
2246
|
+
mobile: ['nav [role="button"]', ':text("Connect")', 'button:has-text("I Agree")'],
|
|
2247
|
+
},
|
|
2248
|
+
walletsForProvider: {
|
|
2249
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2250
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2251
|
+
return findIconAndNameInShadowRoot('onboard-v2', container, name);
|
|
2252
|
+
} }),
|
|
2253
|
+
],
|
|
2254
|
+
},
|
|
2255
|
+
},
|
|
2256
|
+
{
|
|
2257
|
+
urls: ['merlinswap.org'],
|
|
2258
|
+
walletsForProvider: {
|
|
2259
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2260
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2261
|
+
var _a, _b;
|
|
2262
|
+
const textNodes = domUtils.findTextNode('#root', /^Connect Wallet$/, 'all');
|
|
2263
|
+
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"]')); });
|
|
2264
|
+
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;
|
|
2265
|
+
console.log('==>text', text, '==>modal', modal, 'textNodes', textNodes);
|
|
2266
|
+
return ((modal &&
|
|
2267
|
+
findIconAndNameByIcon('img.chakra-image[src*="wallet/metamask.png"]', 'auto-search-text', name, modal)) ||
|
|
2268
|
+
null);
|
|
2269
|
+
} }),
|
|
2270
|
+
],
|
|
2271
|
+
[IInjectedProviderNames.btc]: [
|
|
2272
|
+
Object.assign(Object.assign({}, basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
2273
|
+
var _a, _b;
|
|
2274
|
+
const textNodes = domUtils.findTextNode('#root', /^Connect Wallet$/, 'all');
|
|
2275
|
+
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"]')); });
|
|
2276
|
+
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;
|
|
2277
|
+
return ((modal &&
|
|
2278
|
+
findIconAndNameByIcon('img.chakra-image[src*="wallet/unisat.png"]', 'auto-search-text', name, modal)) ||
|
|
2279
|
+
null);
|
|
2280
|
+
} }),
|
|
2281
|
+
],
|
|
2282
|
+
},
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
urls: ['testnet.zkbase.app'],
|
|
2286
|
+
walletsForProvider: {
|
|
2287
|
+
[IInjectedProviderNames.btc]: [
|
|
2288
|
+
Object.assign(Object.assign({}, basicWalletInfo['unisat']), { container: () => getConnectWalletModalByTitle('div.modal-panel.w-full', 'Connect Wallet') }),
|
|
2289
|
+
],
|
|
2290
|
+
},
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
urls: ['veno.finance'],
|
|
2294
|
+
walletsForProvider: {
|
|
2295
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2296
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { findIconAndName: ({ container, name }) => {
|
|
2297
|
+
const modal = getConnectWalletModalByTitle('section[role="dialog"].chakra-modal__content', 'Connect wallet');
|
|
2298
|
+
return (modal && findIconAndNameByIcon('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
2299
|
+
} }),
|
|
2300
|
+
],
|
|
2301
|
+
},
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
urls: ['www.tarot.to'],
|
|
2305
|
+
testPath: {
|
|
2306
|
+
'desktop': ['button:has-text("Accept")', ':text("Connect Wallet")'],
|
|
2307
|
+
mobile: ['button:has-text("Accept")', 'nav button.inline-flex', ':text("Connect")'],
|
|
2308
|
+
},
|
|
2309
|
+
walletsForProvider: {
|
|
2310
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2311
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => {
|
|
2312
|
+
return getConnectWalletModalByTitle('div[role="dialog"].fixed.z-tarotModal', 'Connect Wallet');
|
|
2313
|
+
} }),
|
|
2314
|
+
],
|
|
2315
|
+
},
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
urls: ['myfil.pages.dev'],
|
|
2319
|
+
walletsForProvider: {
|
|
2320
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2321
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => {
|
|
2322
|
+
return getConnectWalletModalByTitle('div[role="dialog"].ant-modal-wrap', 'Connect Wallet');
|
|
2323
|
+
} }),
|
|
2324
|
+
],
|
|
2325
|
+
},
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
urls: ['app.term.finance'],
|
|
2329
|
+
skip: true,
|
|
2330
|
+
walletsForProvider: {
|
|
2331
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2332
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => {
|
|
2333
|
+
return getConnectWalletModalByTitle('section[role="dialog"].chakra-modal__content', 'Connect Wallet');
|
|
2334
|
+
} }),
|
|
2335
|
+
],
|
|
2336
|
+
},
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
urls: ['app.ribbon.finance'],
|
|
2340
|
+
// testPath: { desktop: [":text('Connect Wallet')", ':text(Ethereum)'] },
|
|
2341
|
+
skip: true,
|
|
2342
|
+
walletsForProvider: {
|
|
2343
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2344
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: () => {
|
|
2345
|
+
return getConnectWalletModalByTitle('div[role="dialog"].modal', 'CONNECT WALLET');
|
|
2346
|
+
} }),
|
|
2347
|
+
],
|
|
2348
|
+
[IInjectedProviderNames.solana]: [
|
|
2349
|
+
Object.assign(Object.assign({}, basicWalletInfo['phantom']), { container: () => {
|
|
2350
|
+
return getConnectWalletModalByTitle('div[role="dialog"].modal', 'CONNECT WALLET');
|
|
2351
|
+
} }),
|
|
2352
|
+
],
|
|
2353
|
+
},
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
urls: ['app.pstake.finance'],
|
|
2357
|
+
skip: true,
|
|
2358
|
+
testUrls: ['app.pstake.finance/cosmos'],
|
|
2359
|
+
walletsForProvider: {
|
|
2360
|
+
[IInjectedProviderNames.cosmos]: [
|
|
2361
|
+
Object.assign(Object.assign({}, basicWalletInfo['keplr']), { container: () => {
|
|
2362
|
+
return getConnectWalletModalByTitle('.modal.wallets-modal', 'Connect wallet');
|
|
2125
2363
|
} }),
|
|
2126
2364
|
],
|
|
2127
2365
|
},
|
|
2128
2366
|
},
|
|
2367
|
+
{
|
|
2368
|
+
urls: ['solo.top'],
|
|
2369
|
+
skip: { mobile: true },
|
|
2370
|
+
constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2371
|
+
walletsForProvider: {
|
|
2372
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2373
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: '#connect-METAMASK' }),
|
|
2374
|
+
],
|
|
2375
|
+
},
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
urls: ['keep3r.network'],
|
|
2379
|
+
only: true,
|
|
2380
|
+
testPath: {
|
|
2381
|
+
desktop: [':text("Connect wallet")'],
|
|
2382
|
+
mobile: ['button.fixed.flex'],
|
|
2383
|
+
},
|
|
2384
|
+
walletsForProvider: {
|
|
2385
|
+
[IInjectedProviderNames.ethereum]: [
|
|
2386
|
+
Object.assign(Object.assign({}, basicWalletInfo['metamask']), { container: '.yearn--modal' }),
|
|
2387
|
+
],
|
|
2388
|
+
},
|
|
2389
|
+
},
|
|
2129
2390
|
];
|