@onekeyfe/inpage-providers-hub 2.0.0 → 2.0.2
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 +613 -178
- 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 +13 -1
- package/dist/cjs/injectWeb3Provider.js +11 -10
- package/dist/connectButtonHack/universal/config.js +616 -181
- 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 +3 -0
- package/dist/connectButtonHack/universal/textUtils.js +9 -0
- package/dist/injectWeb3Provider.d.ts +0 -1
- package/dist/injectWeb3Provider.js +11 -10
- package/package.json +20 -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
|
},
|
|
@@ -584,18 +584,18 @@ exports.sitesConfig = [
|
|
|
584
584
|
},
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
|
-
urls: ['bifrost.app'],
|
|
587
|
+
urls: ['bifrost.app', 'app.bifrost.io'],
|
|
588
588
|
walletsForProvider: {
|
|
589
589
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
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
|
},
|
|
@@ -753,6 +742,8 @@ exports.sitesConfig = [
|
|
|
753
742
|
const icon = (_b = (_a = modal === null || modal === void 0 ? void 0 : modal.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.querySelector('img[alt="walletconnect wallet logo"][src*="walletconnect.svg"]');
|
|
754
743
|
return icon ? (0, imgUtils_1.replaceIcon)(icon, updatedIcon) : null;
|
|
755
744
|
} }),
|
|
745
|
+
metamaskForRainbowKit,
|
|
746
|
+
walletConnectForRainbowKit,
|
|
756
747
|
],
|
|
757
748
|
},
|
|
758
749
|
},
|
|
@@ -761,7 +752,7 @@ exports.sitesConfig = [
|
|
|
761
752
|
walletsForProvider: {
|
|
762
753
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
763
754
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
764
|
-
return (0, findIconAndName_1.
|
|
755
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('[id*="popover-body"] img[src*="metamask.svg"][alt="wallet logo"]', 'auto-search-text', wallet.name);
|
|
765
756
|
} }),
|
|
766
757
|
],
|
|
767
758
|
},
|
|
@@ -791,6 +782,12 @@ exports.sitesConfig = [
|
|
|
791
782
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
792
783
|
},
|
|
793
784
|
},
|
|
785
|
+
{
|
|
786
|
+
urls: ['app.redacted.finance'],
|
|
787
|
+
walletsForProvider: {
|
|
788
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
789
|
+
},
|
|
790
|
+
},
|
|
794
791
|
{
|
|
795
792
|
urls: ['www.inverse.finance'],
|
|
796
793
|
testPath: [':text("Enter App")', ':text("Connect")'],
|
|
@@ -802,7 +799,7 @@ exports.sitesConfig = [
|
|
|
802
799
|
walletsForProvider: {
|
|
803
800
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
804
801
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
805
|
-
return (0, findIconAndName_1.
|
|
802
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)(() => {
|
|
806
803
|
var _a;
|
|
807
804
|
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
805
|
}, 'auto-search-text', wallet.name);
|
|
@@ -818,12 +815,12 @@ exports.sitesConfig = [
|
|
|
818
815
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
819
816
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[id*="headlessui-dialog-panel"]', 'Connect a wallet');
|
|
820
817
|
return (modal &&
|
|
821
|
-
(0, findIconAndName_1.
|
|
818
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"]', 'auto-search-text', wallet.name, modal));
|
|
822
819
|
} }),
|
|
823
820
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
824
821
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[id*="headlessui-dialog-panel"]', 'Connect a wallet');
|
|
825
822
|
return (modal &&
|
|
826
|
-
(0, findIconAndName_1.
|
|
823
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="walletconnect"]', 'auto-search-text', wallet.name, modal));
|
|
827
824
|
} }),
|
|
828
825
|
],
|
|
829
826
|
},
|
|
@@ -843,13 +840,12 @@ exports.sitesConfig = [
|
|
|
843
840
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
844
841
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
845
842
|
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));
|
|
843
|
+
return (modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
848
844
|
} }),
|
|
849
845
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
850
846
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#rlogin-connect-modal', 'Connect your wallet');
|
|
851
847
|
return (modal &&
|
|
852
|
-
(0, findIconAndName_1.
|
|
848
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
853
849
|
} }),
|
|
854
850
|
],
|
|
855
851
|
},
|
|
@@ -873,12 +869,12 @@ exports.sitesConfig = [
|
|
|
873
869
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
874
870
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.mantine-Modal-content', 'Connect Wallet');
|
|
875
871
|
return (modal &&
|
|
876
|
-
(0, findIconAndName_1.
|
|
872
|
+
(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
873
|
} }),
|
|
878
874
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
879
875
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.mantine-Modal-content', 'Connect Wallet');
|
|
880
876
|
return (modal &&
|
|
881
|
-
(0, findIconAndName_1.
|
|
877
|
+
(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
878
|
} }),
|
|
883
879
|
],
|
|
884
880
|
},
|
|
@@ -904,12 +900,12 @@ exports.sitesConfig = [
|
|
|
904
900
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
905
901
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Select a wallet');
|
|
906
902
|
return (modal &&
|
|
907
|
-
(0, findIconAndName_1.
|
|
903
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"]', 'auto-search-text', wallet.name, modal));
|
|
908
904
|
} }),
|
|
909
905
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
910
906
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Select a wallet');
|
|
911
907
|
return (modal &&
|
|
912
|
-
(0, findIconAndName_1.
|
|
908
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-connect.svg"]', 'auto-search-text', name, modal));
|
|
913
909
|
} }),
|
|
914
910
|
],
|
|
915
911
|
},
|
|
@@ -922,12 +918,12 @@ exports.sitesConfig = [
|
|
|
922
918
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
923
919
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.chakra-modal__content-container', 'Select a wallet');
|
|
924
920
|
return (modal &&
|
|
925
|
-
(0, findIconAndName_1.
|
|
921
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
926
922
|
} }),
|
|
927
923
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
928
924
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.chakra-modal__content-container', 'Select a wallet');
|
|
929
925
|
return (modal &&
|
|
930
|
-
(0, findIconAndName_1.
|
|
926
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
931
927
|
} }),
|
|
932
928
|
],
|
|
933
929
|
},
|
|
@@ -1005,12 +1001,12 @@ exports.sitesConfig = [
|
|
|
1005
1001
|
walletsForProvider: {
|
|
1006
1002
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1007
1003
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1008
|
-
return (0, findIconAndName_1.
|
|
1004
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="Metamask"]', 'auto-search-text', name);
|
|
1009
1005
|
} }),
|
|
1010
1006
|
],
|
|
1011
1007
|
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
1012
1008
|
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { findIconAndName({ name }) {
|
|
1013
|
-
return (0, findIconAndName_1.
|
|
1009
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="keplr"][alt="Keplr"]', 'auto-search-text', name);
|
|
1014
1010
|
} }),
|
|
1015
1011
|
],
|
|
1016
1012
|
},
|
|
@@ -1036,10 +1032,10 @@ exports.sitesConfig = [
|
|
|
1036
1032
|
walletsForProvider: {
|
|
1037
1033
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1038
1034
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1039
|
-
return (0, findIconAndName_1.
|
|
1035
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Metamask Logo"][title="Metamask"]', 'auto-search-text', name);
|
|
1040
1036
|
} }),
|
|
1041
1037
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1042
|
-
return (0, findIconAndName_1.
|
|
1038
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="WalletConnect Logo"][title="WalletConnect"]', 'auto-search-text', name);
|
|
1043
1039
|
} }),
|
|
1044
1040
|
],
|
|
1045
1041
|
},
|
|
@@ -1060,7 +1056,7 @@ exports.sitesConfig = [
|
|
|
1060
1056
|
},
|
|
1061
1057
|
{
|
|
1062
1058
|
urls: ['app.wagmi.com'],
|
|
1063
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1059
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1064
1060
|
walletsForProvider: {
|
|
1065
1061
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1066
1062
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#wallet-dropdown-scroll-wrapper' }),
|
|
@@ -1078,7 +1074,7 @@ exports.sitesConfig = [
|
|
|
1078
1074
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1079
1075
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root', 'Connect your Wallet');
|
|
1080
1076
|
return (modal &&
|
|
1081
|
-
(0, findIconAndName_1.
|
|
1077
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.svg"][alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1082
1078
|
} }),
|
|
1083
1079
|
],
|
|
1084
1080
|
},
|
|
@@ -1108,7 +1104,7 @@ exports.sitesConfig = [
|
|
|
1108
1104
|
},
|
|
1109
1105
|
{
|
|
1110
1106
|
urls: ['rosswap.com'],
|
|
1111
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1107
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1112
1108
|
skip: {
|
|
1113
1109
|
mobile: true, //no connect wallet modal
|
|
1114
1110
|
},
|
|
@@ -1121,7 +1117,7 @@ exports.sitesConfig = [
|
|
|
1121
1117
|
},
|
|
1122
1118
|
{
|
|
1123
1119
|
urls: ['maiadao.io'],
|
|
1124
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1120
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1125
1121
|
skip: {
|
|
1126
1122
|
mobile: true, //no connect wallet modal
|
|
1127
1123
|
},
|
|
@@ -1154,58 +1150,10 @@ exports.sitesConfig = [
|
|
|
1154
1150
|
},
|
|
1155
1151
|
{
|
|
1156
1152
|
urls: ['www.staderlabs.com'],
|
|
1157
|
-
skip: {
|
|
1158
|
-
mobile: true, //tmp skip for lack walletconnet
|
|
1159
|
-
},
|
|
1160
1153
|
testUrls: ['www.staderlabs.com/eth/stake/'],
|
|
1161
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1154
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1162
1155
|
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
|
-
],
|
|
1156
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
1209
1157
|
},
|
|
1210
1158
|
},
|
|
1211
1159
|
{
|
|
@@ -1214,7 +1162,7 @@ exports.sitesConfig = [
|
|
|
1214
1162
|
testUrls: ['stake.solblaze.org/app'],
|
|
1215
1163
|
walletsForProvider: {
|
|
1216
1164
|
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
1217
|
-
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: '#connect_modal', afterUpdate(text
|
|
1165
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: '#connect_modal', afterUpdate(text) {
|
|
1218
1166
|
var _a;
|
|
1219
1167
|
if ((_a = text.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) {
|
|
1220
1168
|
text.parentElement.parentElement.style.whiteSpace = 'noWrap';
|
|
@@ -1226,7 +1174,6 @@ exports.sitesConfig = [
|
|
|
1226
1174
|
},
|
|
1227
1175
|
{
|
|
1228
1176
|
urls: ['buzz.bsquared.network'],
|
|
1229
|
-
skip: true,
|
|
1230
1177
|
walletsForProvider: {
|
|
1231
1178
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1232
1179
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('.modalContent', 'Connect Wallet') }),
|
|
@@ -1235,7 +1182,7 @@ exports.sitesConfig = [
|
|
|
1235
1182
|
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
1236
1183
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('.modalContent', 'Connect Wallet');
|
|
1237
1184
|
return (modal &&
|
|
1238
|
-
(0, findIconAndName_1.
|
|
1185
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="layout/unisat.png"]', 'auto-search-text', name));
|
|
1239
1186
|
} }),
|
|
1240
1187
|
],
|
|
1241
1188
|
},
|
|
@@ -1301,7 +1248,7 @@ exports.sitesConfig = [
|
|
|
1301
1248
|
//mobile version is redirected to app-mobile.ariesmarkets.xyz. check next item
|
|
1302
1249
|
urls: ['app.ariesmarkets.xyz'],
|
|
1303
1250
|
testUrls: ['app.ariesmarkets.xyz/lending'],
|
|
1304
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1251
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1305
1252
|
walletsForProvider: {
|
|
1306
1253
|
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
1307
1254
|
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.mantine-Paper-root', 'Select Wallet') }),
|
|
@@ -1310,7 +1257,7 @@ exports.sitesConfig = [
|
|
|
1310
1257
|
},
|
|
1311
1258
|
{
|
|
1312
1259
|
urls: ['app-mobile.ariesmarkets.xyz'],
|
|
1313
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1260
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1314
1261
|
walletsForProvider: {
|
|
1315
1262
|
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
1316
1263
|
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
@@ -1362,7 +1309,7 @@ exports.sitesConfig = [
|
|
|
1362
1309
|
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { findIconAndName({ name }) {
|
|
1363
1310
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.dialog-connect-wallet', 'Connect wallet');
|
|
1364
1311
|
return (modal &&
|
|
1365
|
-
(0, findIconAndName_1.
|
|
1312
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="nami.svg"][alt="Nami"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 6));
|
|
1366
1313
|
} }),
|
|
1367
1314
|
],
|
|
1368
1315
|
},
|
|
@@ -1377,12 +1324,12 @@ exports.sitesConfig = [
|
|
|
1377
1324
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1378
1325
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root', 'Connect Wallet');
|
|
1379
1326
|
return (modal &&
|
|
1380
|
-
(0, findIconAndName_1.
|
|
1327
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallets/metamask.png"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1381
1328
|
} }),
|
|
1382
1329
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1383
1330
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root', 'Connect Wallet');
|
|
1384
1331
|
return (modal &&
|
|
1385
|
-
(0, findIconAndName_1.
|
|
1332
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallets/walletconnect.png"]', 'auto-search-text', name, modal, { text: [], icon: [] }, 5));
|
|
1386
1333
|
} }),
|
|
1387
1334
|
],
|
|
1388
1335
|
},
|
|
@@ -1407,7 +1354,7 @@ exports.sitesConfig = [
|
|
|
1407
1354
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.inside', 'Connect Wallet') ||
|
|
1408
1355
|
(0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Start by connecting with one');
|
|
1409
1356
|
return (modal &&
|
|
1410
|
-
(0, findIconAndName_1.
|
|
1357
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.png"]', 'auto-search-text', name, modal));
|
|
1411
1358
|
} }),
|
|
1412
1359
|
],
|
|
1413
1360
|
},
|
|
@@ -1425,33 +1372,39 @@ exports.sitesConfig = [
|
|
|
1425
1372
|
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
1426
1373
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.p-dialog', 'Connect a Wallet');
|
|
1427
1374
|
return (modal &&
|
|
1428
|
-
(0, findIconAndName_1.
|
|
1375
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Petra Wallet"]', 'auto-search-text', name, modal));
|
|
1429
1376
|
} }),
|
|
1430
1377
|
Object.assign(Object.assign({}, exports.basicWalletInfo['martian']), { findIconAndName({ name }) {
|
|
1431
1378
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.p-dialog', 'Connect a Wallet');
|
|
1432
1379
|
return (modal &&
|
|
1433
|
-
(0, findIconAndName_1.
|
|
1380
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Martian Wallet"]', 'auto-search-text', name, modal));
|
|
1381
|
+
} }),
|
|
1382
|
+
],
|
|
1383
|
+
},
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
urls: ['stbt.matrixdock.com', 'app.matrixdock.com'],
|
|
1387
|
+
walletsForProvider: {
|
|
1388
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1389
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1390
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.dialog-container', 'Available Wallets');
|
|
1391
|
+
return (modal &&
|
|
1392
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="icon-metamask"]', 'auto-search-text', name, modal));
|
|
1393
|
+
},
|
|
1394
|
+
afterUpdate(textNode) {
|
|
1395
|
+
textNode.parentElement && (0, textUtils_1.makeTextWordBreak)(textNode.parentElement);
|
|
1396
|
+
} }),
|
|
1397
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1398
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.dialog-container', 'Available Wallets');
|
|
1399
|
+
return (modal &&
|
|
1400
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="icon-wallet-connect"]', 'auto-search-text', name, modal));
|
|
1401
|
+
},
|
|
1402
|
+
afterUpdate(textNode) {
|
|
1403
|
+
textNode.parentElement && (0, textUtils_1.makeTextWordBreak)(textNode.parentElement);
|
|
1434
1404
|
} }),
|
|
1435
1405
|
],
|
|
1436
1406
|
},
|
|
1437
1407
|
},
|
|
1438
|
-
// {
|
|
1439
|
-
// urls: ['stbt.matrixdock.com'],
|
|
1440
|
-
// walletsForProvider: {
|
|
1441
|
-
// [IInjectedProviderNames.ethereum]: [
|
|
1442
|
-
// {
|
|
1443
|
-
// ...basicWalletInfo['metamask'],
|
|
1444
|
-
// findIconAndName({ name }) {
|
|
1445
|
-
// const modal = getConnectWalletModalByTitle('div.inside', 'Connect Wallet');
|
|
1446
|
-
// return (
|
|
1447
|
-
// modal &&
|
|
1448
|
-
// findIconAndNameDirectly('img[src*="metamask.png"]', 'auto-search-text', name, modal)
|
|
1449
|
-
// );
|
|
1450
|
-
// },
|
|
1451
|
-
// },
|
|
1452
|
-
// ],
|
|
1453
|
-
// },
|
|
1454
|
-
// },
|
|
1455
1408
|
{
|
|
1456
1409
|
urls: ['spooky.fi'],
|
|
1457
1410
|
walletsForProvider: {
|
|
@@ -1474,7 +1427,7 @@ exports.sitesConfig = [
|
|
|
1474
1427
|
}
|
|
1475
1428
|
const parent = shadowRoot.querySelector('div.wallet-list__container');
|
|
1476
1429
|
return (parent &&
|
|
1477
|
-
(0, findIconAndName_1.
|
|
1430
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[data-testid="wallet-icon-metamask"]', 'auto-search-text', name, parent));
|
|
1478
1431
|
} }),
|
|
1479
1432
|
],
|
|
1480
1433
|
},
|
|
@@ -1490,7 +1443,7 @@ exports.sitesConfig = [
|
|
|
1490
1443
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1491
1444
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet');
|
|
1492
1445
|
return (modal &&
|
|
1493
|
-
(0, findIconAndName_1.
|
|
1446
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.svg"][alt="MetaMask icon"]', 'auto-search-text', name, modal));
|
|
1494
1447
|
} }),
|
|
1495
1448
|
],
|
|
1496
1449
|
},
|
|
@@ -1502,7 +1455,7 @@ exports.sitesConfig = [
|
|
|
1502
1455
|
Object.assign(Object.assign({}, exports.basicWalletInfo['polkadot']), { findIconAndName() {
|
|
1503
1456
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1504
1457
|
return (modal &&
|
|
1505
|
-
(0, findIconAndName_1.
|
|
1458
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Polkadotjs Logo"]', 'auto-search-text', /^Polkadot/, modal));
|
|
1506
1459
|
} }),
|
|
1507
1460
|
],
|
|
1508
1461
|
},
|
|
@@ -1574,7 +1527,7 @@ exports.sitesConfig = [
|
|
|
1574
1527
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1575
1528
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1576
1529
|
return (modal &&
|
|
1577
|
-
(0, findIconAndName_1.
|
|
1530
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask.svg"][alt="Metamask"]', 'auto-search-text', name, modal));
|
|
1578
1531
|
},
|
|
1579
1532
|
afterUpdate(textNode, icon) {
|
|
1580
1533
|
icon.style.marginRight = '12px';
|
|
@@ -1584,7 +1537,7 @@ exports.sitesConfig = [
|
|
|
1584
1537
|
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { findIconAndName({ name }) {
|
|
1585
1538
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1586
1539
|
return (modal &&
|
|
1587
|
-
(0, findIconAndName_1.
|
|
1540
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="keplr.svg"][alt="Keplr"]', 'auto-search-text', name, modal));
|
|
1588
1541
|
},
|
|
1589
1542
|
afterUpdate(textNode, icon) {
|
|
1590
1543
|
icon.style.marginRight = '12px';
|
|
@@ -1607,12 +1560,12 @@ exports.sitesConfig = [
|
|
|
1607
1560
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
1608
1561
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div[role="dialog"]', 'Choose Network');
|
|
1609
1562
|
return (modal &&
|
|
1610
|
-
(0, findIconAndName_1.
|
|
1563
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="MetaMask logo"]', 'auto-search-text', wallet.name, modal));
|
|
1611
1564
|
} }),
|
|
1612
1565
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
1613
1566
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div[role="dialog"]', 'Choose Network');
|
|
1614
1567
|
return (modal &&
|
|
1615
|
-
(0, findIconAndName_1.
|
|
1568
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet_connect"][alt="WalletConnect logo"]', 'auto-search-text', wallet.name, modal));
|
|
1616
1569
|
} }),
|
|
1617
1570
|
],
|
|
1618
1571
|
},
|
|
@@ -1645,8 +1598,7 @@ exports.sitesConfig = [
|
|
|
1645
1598
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1646
1599
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1647
1600
|
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));
|
|
1601
|
+
return (modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1650
1602
|
} }),
|
|
1651
1603
|
],
|
|
1652
1604
|
},
|
|
@@ -1663,12 +1615,12 @@ exports.sitesConfig = [
|
|
|
1663
1615
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1664
1616
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.connect-options', 'Select Wallet');
|
|
1665
1617
|
return (modal &&
|
|
1666
|
-
(0, findIconAndName_1.
|
|
1618
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.logo[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
1667
1619
|
} }),
|
|
1668
1620
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1669
1621
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.connect-options', 'Select Wallet');
|
|
1670
1622
|
return (modal &&
|
|
1671
|
-
(0, findIconAndName_1.
|
|
1623
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.logo[alt="WalletConnect"]', 'auto-search-text', name, modal));
|
|
1672
1624
|
} }),
|
|
1673
1625
|
],
|
|
1674
1626
|
},
|
|
@@ -1683,7 +1635,7 @@ exports.sitesConfig = [
|
|
|
1683
1635
|
.filter(Boolean);
|
|
1684
1636
|
const modal = modals === null || modals === void 0 ? void 0 : modals[modals.length - 1];
|
|
1685
1637
|
return modal
|
|
1686
|
-
? (0, findIconAndName_1.
|
|
1638
|
+
? (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-MetaMask"]', 'auto-search-text', name, modal)
|
|
1687
1639
|
: null;
|
|
1688
1640
|
} }),
|
|
1689
1641
|
],
|
|
@@ -1701,7 +1653,7 @@ exports.sitesConfig = [
|
|
|
1701
1653
|
desktop: ['.proceed-cta-checkbox input', 'button:text("Proceed")', ':text("Connect Wallet")'],
|
|
1702
1654
|
},
|
|
1703
1655
|
skip: { mobile: true },
|
|
1704
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1656
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
1705
1657
|
walletsForProvider: {
|
|
1706
1658
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1707
1659
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.modal-connect-wallet', 'Connect Wallet') }),
|
|
@@ -1760,13 +1712,13 @@ exports.sitesConfig = [
|
|
|
1760
1712
|
findIconAndName({ name }) {
|
|
1761
1713
|
const modal = document.querySelector('div[role="presentation"].MuiModal-root');
|
|
1762
1714
|
return modal
|
|
1763
|
-
? (0, findIconAndName_1.
|
|
1715
|
+
? (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/1.eb7cbbcbf"]', 'auto-search-text', name, modal)
|
|
1764
1716
|
: null;
|
|
1765
1717
|
} }),
|
|
1766
1718
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1767
1719
|
const modal = document.querySelector('div[role="presentation"].MuiModal-root');
|
|
1768
1720
|
return modal
|
|
1769
|
-
? (0, findIconAndName_1.
|
|
1721
|
+
? (0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/2.cb9826961cbcd25676"]', 'auto-search-text', name, modal)
|
|
1770
1722
|
: null;
|
|
1771
1723
|
} }),
|
|
1772
1724
|
],
|
|
@@ -1877,7 +1829,7 @@ exports.sitesConfig = [
|
|
|
1877
1829
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
1878
1830
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.chakra-modal__content[role="dialog"]', 'Connect to a wallet');
|
|
1879
1831
|
return (modal &&
|
|
1880
|
-
(0, findIconAndName_1.
|
|
1832
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask-icon"][alt="Icon"]', 'auto-search-text', name, modal));
|
|
1881
1833
|
},
|
|
1882
1834
|
afterUpdate(textNode, iconNode) {
|
|
1883
1835
|
iconNode.style.aspectRatio = '1';
|
|
@@ -1886,7 +1838,7 @@ exports.sitesConfig = [
|
|
|
1886
1838
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName({ name }) {
|
|
1887
1839
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('section.chakra-modal__content[role="dialog"]', 'Connect to a wallet');
|
|
1888
1840
|
return (modal &&
|
|
1889
|
-
(0, findIconAndName_1.
|
|
1841
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-connect-icon"][alt="Icon"]', 'auto-search-text', name, modal));
|
|
1890
1842
|
},
|
|
1891
1843
|
afterUpdate(textNode, iconNode) {
|
|
1892
1844
|
iconNode.style.aspectRatio = '1';
|
|
@@ -1950,44 +1902,24 @@ exports.sitesConfig = [
|
|
|
1950
1902
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
1951
1903
|
},
|
|
1952
1904
|
},
|
|
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
1905
|
{
|
|
1970
1906
|
urls: ['hmx.org'],
|
|
1971
1907
|
testUrls: ['hmx.org/blast/trade/eth-usd'],
|
|
1972
1908
|
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")'],
|
|
1909
|
+
desktop: ['button:has-text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1910
|
+
mobile: ['button:has-text("Accept & Continue")', ':text("Connect Wallet")'],
|
|
1979
1911
|
},
|
|
1980
1912
|
walletsForProvider: {
|
|
1981
1913
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
1982
1914
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
1983
1915
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1984
1916
|
return (modal &&
|
|
1985
|
-
(0, findIconAndName_1.
|
|
1917
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
1986
1918
|
} }),
|
|
1987
1919
|
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { findIconAndName(wallet) {
|
|
1988
1920
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
1989
1921
|
return (modal &&
|
|
1990
|
-
(0, findIconAndName_1.
|
|
1922
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="wallet-connect"][alt="Wallet Connect"]', 'auto-search-text', wallet.name, modal));
|
|
1991
1923
|
} }),
|
|
1992
1924
|
],
|
|
1993
1925
|
},
|
|
@@ -2008,7 +1940,7 @@ exports.sitesConfig = [
|
|
|
2008
1940
|
},
|
|
2009
1941
|
{
|
|
2010
1942
|
urls: ['app.vesper.finance'],
|
|
2011
|
-
constraintMap: { icon: [imgUtils_1.
|
|
1943
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2012
1944
|
walletsForProvider: {
|
|
2013
1945
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2014
1946
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.fixed div.rounded-lg', 'Connect Wallet') }),
|
|
@@ -2026,7 +1958,7 @@ exports.sitesConfig = [
|
|
|
2026
1958
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName(wallet) {
|
|
2027
1959
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet');
|
|
2028
1960
|
return (modal &&
|
|
2029
|
-
(0, findIconAndName_1.
|
|
1961
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"][alt="MetaMask"]', 'auto-search-text', wallet.name, modal));
|
|
2030
1962
|
} }),
|
|
2031
1963
|
],
|
|
2032
1964
|
},
|
|
@@ -2049,17 +1981,20 @@ exports.sitesConfig = [
|
|
|
2049
1981
|
skip: { mobile: true },
|
|
2050
1982
|
walletsForProvider: {
|
|
2051
1983
|
[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
|
|
1984
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode) {
|
|
1985
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignCenter)(textNode.parentElement);
|
|
2054
1986
|
} }),
|
|
2055
1987
|
],
|
|
2056
1988
|
[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')
|
|
1989
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet to continue'), afterUpdate(textNode) {
|
|
1990
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignCenter)(textNode.parentElement);
|
|
1991
|
+
} }),
|
|
2058
1992
|
],
|
|
2059
1993
|
},
|
|
2060
1994
|
},
|
|
2061
1995
|
{
|
|
2062
1996
|
urls: ['stake.anvm.io'],
|
|
1997
|
+
skip: { mobile: true },
|
|
2063
1998
|
testPath: {
|
|
2064
1999
|
desktop: [':text("Connect Wallet")', ':nth-match(button.rounded-full:text("Connect"),2)'],
|
|
2065
2000
|
'mobile': [
|
|
@@ -2105,7 +2040,7 @@ exports.sitesConfig = [
|
|
|
2105
2040
|
{
|
|
2106
2041
|
urls: ['app.reflexer.finance'],
|
|
2107
2042
|
skip: { mobile: true },
|
|
2108
|
-
constraintMap: { icon: [imgUtils_1.
|
|
2043
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2109
2044
|
walletsForProvider: {
|
|
2110
2045
|
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2111
2046
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#connect-METAMASK' }),
|
|
@@ -2127,9 +2062,509 @@ exports.sitesConfig = [
|
|
|
2127
2062
|
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2128
2063
|
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Connect Wallet');
|
|
2129
2064
|
return (modal &&
|
|
2130
|
-
(0, findIconAndName_1.
|
|
2065
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/metamask"]', 'auto-search-text', name, modal));
|
|
2066
|
+
} }),
|
|
2067
|
+
],
|
|
2068
|
+
},
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
urls: ['app.hydration.net'],
|
|
2072
|
+
walletsForProvider: {
|
|
2073
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2074
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2075
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"][data-state="open"]', 'Connect wallet');
|
|
2076
|
+
return (modal &&
|
|
2077
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="assets/MetaMask"][alt="MetaMask Logo"]', 'auto-search-text', name, modal));
|
|
2078
|
+
} }),
|
|
2079
|
+
],
|
|
2080
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.polkadot]: [
|
|
2081
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['polkadot']), { findIconAndName({ name }) {
|
|
2082
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"][data-state="open"]', 'Connect wallet');
|
|
2083
|
+
return (modal &&
|
|
2084
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Polkadotjs Logo"]', 'auto-search-text', name, modal));
|
|
2085
|
+
} }),
|
|
2086
|
+
],
|
|
2087
|
+
},
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
urls: ['app.slingshot.finance'],
|
|
2091
|
+
walletsForProvider: {
|
|
2092
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2093
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2094
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root>div', 'Connect Wallet');
|
|
2095
|
+
return (modal &&
|
|
2096
|
+
(0, findIconAndName_1.findIconAndNameByName)(modal, name, (text) => {
|
|
2097
|
+
var _a, _b, _c;
|
|
2098
|
+
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"]');
|
|
2099
|
+
}));
|
|
2100
|
+
},
|
|
2101
|
+
afterUpdate(textNode) {
|
|
2102
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignLeft)(textNode.parentElement);
|
|
2103
|
+
} }),
|
|
2104
|
+
],
|
|
2105
|
+
},
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
urls: ['phux.io'],
|
|
2109
|
+
testPath: ['button:text("Accept")', ':text("Connect Wallet")'],
|
|
2110
|
+
walletsForProvider: {
|
|
2111
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2112
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.bal-modal', 'Connect to a wallet') }),
|
|
2113
|
+
],
|
|
2114
|
+
},
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
urls: ['app.metronome.io'],
|
|
2118
|
+
testPath: ['button:text("Switch to")', ':text("Connect Wallet")'],
|
|
2119
|
+
constraintMap: { text: [], 'icon': [imgUtils_1.isWalletIconLessEqualThan] },
|
|
2120
|
+
walletsForProvider: {
|
|
2121
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2122
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.fixed', 'Connect Wallet') }),
|
|
2123
|
+
],
|
|
2124
|
+
},
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
urls: ['nftx.io', 'v3.nftx.io'],
|
|
2128
|
+
walletsForProvider: {
|
|
2129
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit],
|
|
2130
|
+
},
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
urls: ['app.marsprotocol.io'],
|
|
2134
|
+
testPath: [':text("Connect Wallet")', 'button:has-text("Agree")'],
|
|
2135
|
+
walletsForProvider: {
|
|
2136
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
2137
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { name: /^Keplr Wallet$/, findIconAndName({ name }) {
|
|
2138
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('main > div.relative', 'Connect your wallet');
|
|
2139
|
+
return (modal &&
|
|
2140
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="keplr"][alt="Keplr Wallet"]', 'auto-search-text', name, modal));
|
|
2141
|
+
} }),
|
|
2142
|
+
],
|
|
2143
|
+
},
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
urls: ['farm.acala.network'],
|
|
2147
|
+
walletsForProvider: {
|
|
2148
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2149
|
+
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) {
|
|
2150
|
+
textNode.parentElement && (0, textUtils_1.makeTextWrap)(textNode.parentElement);
|
|
2151
|
+
} }),
|
|
2152
|
+
],
|
|
2153
|
+
},
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
urls: ['baklava.space'],
|
|
2157
|
+
testUrls: ['baklava.space/vaults/'],
|
|
2158
|
+
walletsForProvider: {
|
|
2159
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2160
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: 'div[role="dialog"][data-reach-dialog-content]' }),
|
|
2161
|
+
],
|
|
2162
|
+
},
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
urls: ['app.lenfi.io'],
|
|
2166
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2167
|
+
walletsForProvider: {
|
|
2168
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cardano]: [
|
|
2169
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { container: () => {
|
|
2170
|
+
return (0, utils_1.getConnectWalletModalByTitle)('.ReactModalPortal [role="dialog"]', 'Connect wallet');
|
|
2171
|
+
} }),
|
|
2172
|
+
],
|
|
2173
|
+
},
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
urls: ['oyster.synfutures.com'],
|
|
2177
|
+
testPath: {
|
|
2178
|
+
desktop: ['button:text("I Agree")', ':text("Connect Wallet")'],
|
|
2179
|
+
mobile: ['button:text("I Agree")', 'button.wallet-connect-btn-mobile'],
|
|
2180
|
+
},
|
|
2181
|
+
walletsForProvider: {
|
|
2182
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2183
|
+
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') }),
|
|
2184
|
+
],
|
|
2185
|
+
},
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
urls: ['app.liqee.io'],
|
|
2189
|
+
walletsForProvider: {
|
|
2190
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2191
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2192
|
+
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);
|
|
2193
|
+
} }),
|
|
2194
|
+
],
|
|
2195
|
+
},
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
urls: ['app.strike.org'],
|
|
2199
|
+
testPath: {
|
|
2200
|
+
desktop: [':text("Connect")', 'div.button:has-text("Continue")'],
|
|
2201
|
+
mobile: ['div.sc-ecaExY', ':text("Connect")', 'div.button:has-text("Continue")'],
|
|
2202
|
+
},
|
|
2203
|
+
walletsForProvider: {
|
|
2204
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2205
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2206
|
+
const metamaskBtn = document.querySelector('div.ant-modal.connect-modal .metamask-connect-btn');
|
|
2207
|
+
return (metamaskBtn &&
|
|
2208
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[alt="metamask"]', 'auto-search-text', name, metamaskBtn));
|
|
2209
|
+
} }),
|
|
2210
|
+
],
|
|
2211
|
+
},
|
|
2212
|
+
},
|
|
2213
|
+
// {
|
|
2214
|
+
// urls: ['muesliswap.com'],
|
|
2215
|
+
// constraintMap: { icon: [isWalletIconLessEqualThan], text: [] },
|
|
2216
|
+
// walletsForProvider: {
|
|
2217
|
+
// [IInjectedProviderNames.cardano]: [
|
|
2218
|
+
// {
|
|
2219
|
+
// ...basicWalletInfo['nami'],
|
|
2220
|
+
// container: () => {
|
|
2221
|
+
// return getConnectWalletModalByTitle(
|
|
2222
|
+
// '.ReactModalPortal [role="dialog"]',
|
|
2223
|
+
// 'Connect wallet',
|
|
2224
|
+
// );
|
|
2225
|
+
// },
|
|
2226
|
+
// },
|
|
2227
|
+
// ],
|
|
2228
|
+
// },
|
|
2229
|
+
// }
|
|
2230
|
+
{
|
|
2231
|
+
urls: ['dapp.cian.app'],
|
|
2232
|
+
testPath: [':text("Cancel")', ':text("Connect")'],
|
|
2233
|
+
walletsForProvider: {
|
|
2234
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2235
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2236
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].ant-modal', 'Connect Wallet');
|
|
2237
|
+
return (modal &&
|
|
2238
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="static/media/metamask"]', 'auto-search-text', name, modal));
|
|
2239
|
+
} }),
|
|
2240
|
+
],
|
|
2241
|
+
},
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
urls: ['app.ib.xyz'],
|
|
2245
|
+
testPath: [':text("Cancel")', ':text("Connect")'],
|
|
2246
|
+
walletsForProvider: {
|
|
2247
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2248
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2249
|
+
return (0, shadowRoot_1.findIconAndNameInShadowRoot)('onboard-v2', container, name);
|
|
2250
|
+
} }),
|
|
2251
|
+
],
|
|
2252
|
+
},
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
urls: ['app.aptin.io'],
|
|
2256
|
+
walletsForProvider: {
|
|
2257
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
2258
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.MuiPaper-root.aptin-dialog', 'Connect a wallet') }),
|
|
2259
|
+
],
|
|
2260
|
+
},
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
urls: ['juicebox.money'],
|
|
2264
|
+
testPath: {
|
|
2265
|
+
desktop: [':text("Connect")', 'button:has-text("I Agree")'],
|
|
2266
|
+
mobile: ['nav [role="button"]', ':text("Connect")', 'button:has-text("I Agree")'],
|
|
2267
|
+
},
|
|
2268
|
+
walletsForProvider: {
|
|
2269
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2270
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2271
|
+
return (0, shadowRoot_1.findIconAndNameInShadowRoot)('onboard-v2', container, name);
|
|
2272
|
+
} }),
|
|
2273
|
+
],
|
|
2274
|
+
},
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
urls: ['merlinswap.org'],
|
|
2278
|
+
walletsForProvider: {
|
|
2279
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2280
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2281
|
+
var _a, _b;
|
|
2282
|
+
const textNodes = utilsDomNodes_1.default.findTextNode('#root', /^Connect Wallet$/, 'all');
|
|
2283
|
+
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"]')); });
|
|
2284
|
+
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;
|
|
2285
|
+
console.log('==>text', text, '==>modal', modal, 'textNodes', textNodes);
|
|
2286
|
+
return ((modal &&
|
|
2287
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.chakra-image[src*="wallet/metamask.png"]', 'auto-search-text', name, modal)) ||
|
|
2288
|
+
null);
|
|
2289
|
+
} }),
|
|
2290
|
+
],
|
|
2291
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
2292
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
2293
|
+
var _a, _b;
|
|
2294
|
+
const textNodes = utilsDomNodes_1.default.findTextNode('#root', /^Connect Wallet$/, 'all');
|
|
2295
|
+
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"]')); });
|
|
2296
|
+
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;
|
|
2297
|
+
return ((modal &&
|
|
2298
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img.chakra-image[src*="wallet/unisat.png"]', 'auto-search-text', name, modal)) ||
|
|
2299
|
+
null);
|
|
2300
|
+
} }),
|
|
2301
|
+
],
|
|
2302
|
+
},
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
urls: ['testnet.zkbase.app'],
|
|
2306
|
+
walletsForProvider: {
|
|
2307
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
2308
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div.modal-panel.w-full', 'Connect Wallet') }),
|
|
2309
|
+
],
|
|
2310
|
+
},
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
urls: ['veno.finance'],
|
|
2314
|
+
walletsForProvider: {
|
|
2315
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2316
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName: ({ container, name }) => {
|
|
2317
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('section[role="dialog"].chakra-modal__content', 'Connect wallet');
|
|
2318
|
+
return (modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal));
|
|
2319
|
+
} }),
|
|
2320
|
+
],
|
|
2321
|
+
},
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
urls: ['www.tarot.to'],
|
|
2325
|
+
testPath: {
|
|
2326
|
+
'desktop': ['button:has-text("Accept")', ':text("Connect Wallet")'],
|
|
2327
|
+
mobile: ['button:has-text("Accept")', 'nav button.inline-flex', ':text("Connect")'],
|
|
2328
|
+
},
|
|
2329
|
+
walletsForProvider: {
|
|
2330
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2331
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2332
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].fixed.z-tarotModal', 'Connect Wallet');
|
|
2333
|
+
} }),
|
|
2334
|
+
],
|
|
2335
|
+
},
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
urls: ['myfil.pages.dev'],
|
|
2339
|
+
walletsForProvider: {
|
|
2340
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2341
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2342
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].ant-modal-wrap', 'Connect Wallet');
|
|
2343
|
+
} }),
|
|
2344
|
+
],
|
|
2345
|
+
},
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
urls: ['app.term.finance'],
|
|
2349
|
+
skip: true,
|
|
2350
|
+
walletsForProvider: {
|
|
2351
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2352
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2353
|
+
return (0, utils_1.getConnectWalletModalByTitle)('section[role="dialog"].chakra-modal__content', 'Connect Wallet');
|
|
2354
|
+
} }),
|
|
2355
|
+
],
|
|
2356
|
+
},
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
urls: ['app.ribbon.finance'],
|
|
2360
|
+
// testPath: { desktop: [":text('Connect Wallet')", ':text(Ethereum)'] },
|
|
2361
|
+
skip: true,
|
|
2362
|
+
walletsForProvider: {
|
|
2363
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2364
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => {
|
|
2365
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].modal', 'CONNECT WALLET');
|
|
2366
|
+
} }),
|
|
2367
|
+
],
|
|
2368
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
2369
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => {
|
|
2370
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"].modal', 'CONNECT WALLET');
|
|
2371
|
+
} }),
|
|
2372
|
+
],
|
|
2373
|
+
},
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
urls: ['app.pstake.finance'],
|
|
2377
|
+
skip: true,
|
|
2378
|
+
testUrls: ['app.pstake.finance/cosmos'],
|
|
2379
|
+
walletsForProvider: {
|
|
2380
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
2381
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { container: () => {
|
|
2382
|
+
return (0, utils_1.getConnectWalletModalByTitle)('.modal.wallets-modal', 'Connect wallet');
|
|
2383
|
+
} }),
|
|
2384
|
+
],
|
|
2385
|
+
},
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
urls: ['solo.top'],
|
|
2389
|
+
skip: { mobile: true },
|
|
2390
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2391
|
+
walletsForProvider: {
|
|
2392
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2393
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#connect-METAMASK' }),
|
|
2394
|
+
],
|
|
2395
|
+
},
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
urls: ['keep3r.network'],
|
|
2399
|
+
testPath: {
|
|
2400
|
+
desktop: [':text("Connect wallet")'],
|
|
2401
|
+
mobile: ['button.fixed.flex'],
|
|
2402
|
+
},
|
|
2403
|
+
walletsForProvider: {
|
|
2404
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2405
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.yearn--modal' }),
|
|
2406
|
+
],
|
|
2407
|
+
},
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
urls: ['ape.bond'],
|
|
2411
|
+
walletsForProvider: {
|
|
2412
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2413
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#wallet-connect-metamask' }),
|
|
2414
|
+
],
|
|
2415
|
+
},
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
urls: ['deri.io'],
|
|
2419
|
+
testUrls: ['deri.io/#/lite/trade/futures/BTCUSD'],
|
|
2420
|
+
constraintMap: { icon: [imgUtils_1.isWalletIconLessEqualThan], text: [] },
|
|
2421
|
+
walletsForProvider: {
|
|
2422
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2423
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.dialog.wallet-modal' }),
|
|
2424
|
+
],
|
|
2425
|
+
},
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
urls: ['bridge.wing.finance'],
|
|
2429
|
+
walletsForProvider: {
|
|
2430
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2431
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.bridge-list__content .wallet_type' }),
|
|
2432
|
+
],
|
|
2433
|
+
},
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
urls: ['helixapp.com'],
|
|
2437
|
+
testPath: [':text("Connect Wallet")', ':text("Confirm")'],
|
|
2438
|
+
walletsForProvider: {
|
|
2439
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2440
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('.fixed.backdrop-filter .modal-container', 'Popular') }),
|
|
2441
|
+
],
|
|
2442
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
2443
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('.fixed.backdrop-filter .modal-container', 'Popular') }),
|
|
2444
|
+
],
|
|
2445
|
+
// [IInjectedProviderNames.solana]: [
|
|
2446
|
+
// {
|
|
2447
|
+
// ...basicWalletInfo['phantom'],
|
|
2448
|
+
// container: () =>
|
|
2449
|
+
// getConnectWalletModalByTitle(
|
|
2450
|
+
// '.fixed.backdrop-filter .modal-container',
|
|
2451
|
+
// 'Other Wallets',
|
|
2452
|
+
// ),
|
|
2453
|
+
// },
|
|
2454
|
+
// ],
|
|
2455
|
+
},
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
urls: ['app.ux.xyz'],
|
|
2459
|
+
testPath: ['button:has-text("Yes")', ':text("Connect")'],
|
|
2460
|
+
skip: { mobile: true },
|
|
2461
|
+
walletsForProvider: {
|
|
2462
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cosmos]: [
|
|
2463
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['keplr']), { name: /^Keplr Wallet$/, container: () => (0, utils_1.getConnectWalletModalByTitle)('div.modal-layer', 'Connect Wallet') }),
|
|
2464
|
+
],
|
|
2465
|
+
},
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
urls: ['app-v2.acryptos.com'],
|
|
2469
|
+
skip: { mobile: true },
|
|
2470
|
+
walletsForProvider: {
|
|
2471
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2472
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#WEB3_CONNECT_MODAL_ID' }),
|
|
2473
|
+
],
|
|
2474
|
+
},
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
urls: ['fusionx.finance'],
|
|
2478
|
+
testUrls: ['fusionx.finance/swap'],
|
|
2479
|
+
walletsForProvider: {
|
|
2480
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2481
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { name: /^Metamask$/, findIconAndName({ name }) {
|
|
2482
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('#portal-root div[role="dialog"]', 'Connect Wallet');
|
|
2483
|
+
return (modal &&
|
|
2484
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="metamask"]', 'auto-search-text', name, modal));
|
|
2131
2485
|
} }),
|
|
2132
2486
|
],
|
|
2133
2487
|
},
|
|
2134
2488
|
},
|
|
2489
|
+
{
|
|
2490
|
+
urls: ['app.optim.finance'],
|
|
2491
|
+
walletsForProvider: {
|
|
2492
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cardano]: [
|
|
2493
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { findIconAndName({ name }) {
|
|
2494
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.backdrop-blur[class*="Modal"]', 'Select Wallet');
|
|
2495
|
+
return (modal &&
|
|
2496
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="nami"][alt="Nami"]', 'auto-search-text', name, modal));
|
|
2497
|
+
} }),
|
|
2498
|
+
],
|
|
2499
|
+
},
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
urls: ['autofarm.network'],
|
|
2503
|
+
testPath: [':text("Wallet")'],
|
|
2504
|
+
walletsForProvider: {
|
|
2505
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2506
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.modal .outer-container div.wallets-container ', findIconAndName: ({ container, name }) => {
|
|
2507
|
+
return (0, shadowRoot_1.findIconAndNameInShadowRoot)('onboard-v2', container, name);
|
|
2508
|
+
}, afterUpdate(textNode) {
|
|
2509
|
+
textNode.parentElement && (0, textUtils_1.makeTextAlignLeft)(textNode.parentElement);
|
|
2510
|
+
} }),
|
|
2511
|
+
],
|
|
2512
|
+
},
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
urls: ['app.wingriders.com'],
|
|
2516
|
+
testPath: {
|
|
2517
|
+
desktop: [
|
|
2518
|
+
'button:has-text("Got it")',
|
|
2519
|
+
'button:has-text("I Agree")',
|
|
2520
|
+
':text("Connect Wallet")',
|
|
2521
|
+
],
|
|
2522
|
+
mobile: [
|
|
2523
|
+
'button:has-text("Got it")',
|
|
2524
|
+
'button:has-text("I Agree")',
|
|
2525
|
+
'header button svg',
|
|
2526
|
+
':text("Connect Wallet")',
|
|
2527
|
+
],
|
|
2528
|
+
},
|
|
2529
|
+
walletsForProvider: {
|
|
2530
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cardano]: [
|
|
2531
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { findIconAndName({ name }) {
|
|
2532
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.MuiDialog-container', 'Connect to WingRiders');
|
|
2533
|
+
return (modal &&
|
|
2534
|
+
(0, findIconAndName_1.findIconAndNameByIcon)('img[src*="nami"][alt="Nami wallet"]', 'auto-search-text', name, modal));
|
|
2535
|
+
} }),
|
|
2536
|
+
],
|
|
2537
|
+
},
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
urls: ['app.vyfi.io'],
|
|
2541
|
+
walletsForProvider: {
|
|
2542
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.cardano]: [
|
|
2543
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['nami']), { container: '#wallet-connect-nami' }),
|
|
2544
|
+
],
|
|
2545
|
+
},
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
urls: ['wemixonkroma.xyz'],
|
|
2549
|
+
walletsForProvider: {
|
|
2550
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2551
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '.wallet-modal-connect-button' }),
|
|
2552
|
+
],
|
|
2553
|
+
},
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
urls: ['app.arcade.xyz'],
|
|
2557
|
+
walletsForProvider: {
|
|
2558
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit],
|
|
2559
|
+
},
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
urls: ['app.quarry.so'],
|
|
2563
|
+
testPath: [':text("Connect Wallet")', ':text("Continue")'],
|
|
2564
|
+
walletsForProvider: {
|
|
2565
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
2566
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('.goki-walletkit-modal-wrapper', 'Select your wallet') }),
|
|
2567
|
+
],
|
|
2568
|
+
},
|
|
2569
|
+
},
|
|
2135
2570
|
];
|