@onekeyfe/inpage-providers-hub 2.2.15 → 2.2.18
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/consts.js +13 -13
- package/dist/cjs/connectButtonHack/index.js +0 -6
- package/dist/cjs/connectButtonHack/universal/config.js +323 -3
- package/dist/connectButtonHack/consts.js +13 -13
- package/dist/connectButtonHack/index.js +0 -6
- package/dist/connectButtonHack/universal/config.js +323 -3
- package/package.json +23 -23
- package/dist/cjs/connectButtonHack/sites/lidofi.js +0 -55
- package/dist/cjs/connectButtonHack/sites/rocketpool.js +0 -39
- package/dist/cjs/connectButtonHack/sites/solv.js +0 -45
- package/dist/connectButtonHack/sites/lidofi.d.ts +0 -2
- package/dist/connectButtonHack/sites/lidofi.js +0 -53
- package/dist/connectButtonHack/sites/rocketpool.d.ts +0 -2
- package/dist/connectButtonHack/sites/rocketpool.js +0 -37
- package/dist/connectButtonHack/sites/solv.d.ts +0 -2
- package/dist/connectButtonHack/sites/solv.js +0 -40
|
@@ -2858,9 +2858,18 @@ exports.sitesConfig = [
|
|
|
2858
2858
|
[cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
|
|
2859
2859
|
Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: 'div.wallet-list', afterUpdate(textNode) {
|
|
2860
2860
|
const ledgerInput = document.getElementById('connect-ledger-wallet-with-phantom');
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2861
|
+
if (textNode) {
|
|
2862
|
+
textNode.textContent = 'OneKey Hardware & Phantom';
|
|
2863
|
+
}
|
|
2864
|
+
const label = ledgerInput === null || ledgerInput === void 0 ? void 0 : ledgerInput.parentElement;
|
|
2865
|
+
if (label) {
|
|
2866
|
+
const span = label.querySelector('span');
|
|
2867
|
+
if (span) {
|
|
2868
|
+
span.textContent = 'I am using my ledger/onekey hardware with one of these wallets';
|
|
2869
|
+
}
|
|
2870
|
+
label.style.padding = '20px';
|
|
2871
|
+
label.style.display = 'flex';
|
|
2872
|
+
label.style.alignItems = 'center';
|
|
2864
2873
|
}
|
|
2865
2874
|
} }),
|
|
2866
2875
|
],
|
|
@@ -2883,4 +2892,315 @@ exports.sitesConfig = [
|
|
|
2883
2892
|
],
|
|
2884
2893
|
},
|
|
2885
2894
|
},
|
|
2895
|
+
{
|
|
2896
|
+
urls: ['stake.lido.fi'],
|
|
2897
|
+
walletsForProvider: {
|
|
2898
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2899
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: '#reef-knot-modal-root' }),
|
|
2900
|
+
],
|
|
2901
|
+
},
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
urls: ['bridge.arbitrum.io'],
|
|
2905
|
+
walletsForProvider: {
|
|
2906
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2907
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: 'div[role="document"]', findIconAndName({ name, container }) {
|
|
2908
|
+
var _a;
|
|
2909
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)(container, 'Connect a Wallet');
|
|
2910
|
+
return (_a = (modal && (0, findIconAndName_1.findIconAndNameByName)(modal, name, 'auto-search-icon'))) !== null && _a !== void 0 ? _a : null;
|
|
2911
|
+
} }),
|
|
2912
|
+
],
|
|
2913
|
+
},
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
urls: ['app.optimism.io'],
|
|
2917
|
+
walletsForProvider: {
|
|
2918
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2919
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: 'div[role="document"]' }),
|
|
2920
|
+
],
|
|
2921
|
+
},
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
urls: ['stake.rocketpool.net'],
|
|
2925
|
+
walletsForProvider: {
|
|
2926
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2927
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2928
|
+
const modal = document.querySelector('div[role="dialog"].fixed.inset-0');
|
|
2929
|
+
return modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="MetaMask"]', 'auto-search-text', name, modal);
|
|
2930
|
+
} }),
|
|
2931
|
+
],
|
|
2932
|
+
},
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
urls: ['app.solv.finance'],
|
|
2936
|
+
walletsForProvider: {
|
|
2937
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2938
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: 'div[role="dialog"]', findIconAndName({ name }) {
|
|
2939
|
+
var _a;
|
|
2940
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect your wallet');
|
|
2941
|
+
return (_a = (modal && (0, findIconAndName_1.findIconAndNameByName)(modal, name, 'auto-search-icon', {
|
|
2942
|
+
icon: [
|
|
2943
|
+
imgUtils_1.isWalletIconLessEqualThan,
|
|
2944
|
+
(icon) => icon.getAttribute('aria-hidden') !== 'true'
|
|
2945
|
+
],
|
|
2946
|
+
text: []
|
|
2947
|
+
}))) !== null && _a !== void 0 ? _a : null;
|
|
2948
|
+
} }),
|
|
2949
|
+
],
|
|
2950
|
+
},
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
urls: ['app.symbiotic.fi'],
|
|
2954
|
+
walletsForProvider: {
|
|
2955
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2956
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: 'div[data-dialog-wrapper="true"]', findIconAndName({ name, container }) {
|
|
2957
|
+
var _a;
|
|
2958
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)(container, 'CONNECT WALLET');
|
|
2959
|
+
return (_a = (modal && (0, findIconAndName_1.findIconAndNameByName)(modal, name, 'auto-search-icon'))) !== null && _a !== void 0 ? _a : null;
|
|
2960
|
+
} }),
|
|
2961
|
+
],
|
|
2962
|
+
},
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
urls: ['app.free.tech', 'core.app', 'blast.io'],
|
|
2966
|
+
walletsForProvider: {
|
|
2967
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2968
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
2969
|
+
var _a;
|
|
2970
|
+
return (_a = (0, findIconAndName_1.findIconAndNameByName)(document.body, name, 'auto-search-icon')) !== null && _a !== void 0 ? _a : null;
|
|
2971
|
+
} }),
|
|
2972
|
+
],
|
|
2973
|
+
},
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
urls: ['yieldlayer.cian.app'],
|
|
2977
|
+
walletsForProvider: {
|
|
2978
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
2979
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['walletconnect']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect Wallet') }),
|
|
2980
|
+
],
|
|
2981
|
+
},
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
urls: ['app.unirouter.io'],
|
|
2985
|
+
walletsForProvider: {
|
|
2986
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
2987
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
2988
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.dropdown.dropdown-end', 'Connect Wallet');
|
|
2989
|
+
return modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Unisat Wallet"]', 'auto-search-text', name, modal);
|
|
2990
|
+
},
|
|
2991
|
+
afterUpdate(textNode, iconNode) {
|
|
2992
|
+
if (textNode) {
|
|
2993
|
+
textNode.textContent = 'OneKey&UniSat';
|
|
2994
|
+
}
|
|
2995
|
+
if (iconNode) {
|
|
2996
|
+
iconNode.style.width = '28px';
|
|
2997
|
+
iconNode.style.height = '28px';
|
|
2998
|
+
}
|
|
2999
|
+
} }),
|
|
3000
|
+
],
|
|
3001
|
+
},
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
urls: ['sunswap.com'],
|
|
3005
|
+
walletsForProvider: {
|
|
3006
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.tron]: [
|
|
3007
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['tronlink']), { container: () => {
|
|
3008
|
+
return (0, utils_1.getConnectWalletModalByTitle)('div.ant-modal-content', 'Connect to Wallet');
|
|
3009
|
+
} }),
|
|
3010
|
+
],
|
|
3011
|
+
},
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
urls: ['dashboard.threshold.network'],
|
|
3015
|
+
walletsForProvider: {
|
|
3016
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
3017
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
3018
|
+
var _a;
|
|
3019
|
+
return (_a = (0, findIconAndName_1.findIconAndNameByName)(document.body, name, 'auto-search-icon', {
|
|
3020
|
+
icon: [
|
|
3021
|
+
(icon) => icon.classList.contains('chakra-icon')
|
|
3022
|
+
],
|
|
3023
|
+
text: []
|
|
3024
|
+
})) !== null && _a !== void 0 ? _a : null;
|
|
3025
|
+
} }),
|
|
3026
|
+
],
|
|
3027
|
+
},
|
|
3028
|
+
},
|
|
3029
|
+
{
|
|
3030
|
+
urls: ['app.pell.network'],
|
|
3031
|
+
walletsForProvider: {
|
|
3032
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
|
|
3033
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
|
|
3034
|
+
var _a;
|
|
3035
|
+
return (_a = (0, findIconAndName_1.findIconAndNameByName)(document.body, name, 'auto-search-icon')) !== null && _a !== void 0 ? _a : null;
|
|
3036
|
+
} }),
|
|
3037
|
+
],
|
|
3038
|
+
},
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
urls: ['www.bitlayer.org'],
|
|
3042
|
+
walletsForProvider: {
|
|
3043
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.btc]: [
|
|
3044
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['unisat']), { findIconAndName({ name }) {
|
|
3045
|
+
var _a;
|
|
3046
|
+
return (_a = (0, findIconAndName_1.findIconAndNameByName)(document.body, name, 'auto-search-icon')) !== null && _a !== void 0 ? _a : null;
|
|
3047
|
+
},
|
|
3048
|
+
afterUpdate(textNode, iconNode) {
|
|
3049
|
+
if (iconNode) {
|
|
3050
|
+
iconNode.style.width = '26px';
|
|
3051
|
+
iconNode.style.height = '26px';
|
|
3052
|
+
}
|
|
3053
|
+
} }),
|
|
3054
|
+
],
|
|
3055
|
+
},
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
urls: ['app.abex.fi'],
|
|
3059
|
+
walletsForProvider: {
|
|
3060
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.sui]: [
|
|
3061
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['suiwallet']), { container: "div[role='dialog'].wkit-dialog__content" }),
|
|
3062
|
+
],
|
|
3063
|
+
},
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
urls: ['dex.bluemove.net'],
|
|
3067
|
+
walletsForProvider: {
|
|
3068
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.sui]: [
|
|
3069
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['suiwallet']), { findIconAndName({ name }) {
|
|
3070
|
+
var _a;
|
|
3071
|
+
return (_a = (0, findIconAndName_1.findIconAndNameByName)(document.body, name, 'auto-search-icon')) !== null && _a !== void 0 ? _a : null;
|
|
3072
|
+
},
|
|
3073
|
+
afterUpdate(textNode, iconNode) {
|
|
3074
|
+
if (iconNode) {
|
|
3075
|
+
iconNode.style.width = '32px';
|
|
3076
|
+
iconNode.style.height = '32px';
|
|
3077
|
+
}
|
|
3078
|
+
} }),
|
|
3079
|
+
],
|
|
3080
|
+
},
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
urls: ['app.sudo.finance'],
|
|
3084
|
+
walletsForProvider: {
|
|
3085
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.sui]: [
|
|
3086
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['suiwallet']), { container: "div[role='dialog'].wkit-dialog__content" }),
|
|
3087
|
+
],
|
|
3088
|
+
},
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
urls: ['app.streamflow.finance'],
|
|
3092
|
+
walletsForProvider: {
|
|
3093
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.sui]: [
|
|
3094
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['suiwallet']), { container: "div.w-full.sm\\:w-100" }),
|
|
3095
|
+
],
|
|
3096
|
+
},
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
urls: ['farm.bucketprotocol.io'],
|
|
3100
|
+
walletsForProvider: {
|
|
3101
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.sui]: [
|
|
3102
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['suiwallet']), { findIconAndName({ name }) {
|
|
3103
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect a Wallet from list');
|
|
3104
|
+
return modal && (0, findIconAndName_1.findIconAndNameByIcon)('img[alt="Sui Wallet"]', 'auto-search-text', name, modal);
|
|
3105
|
+
} }),
|
|
3106
|
+
],
|
|
3107
|
+
},
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
urls: ['stake.volosui.com'],
|
|
3111
|
+
walletsForProvider: {
|
|
3112
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.sui]: [
|
|
3113
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['suiwallet']), { container: "div[role='dialog'].wkit-dialog__content" }),
|
|
3114
|
+
],
|
|
3115
|
+
},
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
urls: ['app.houstonswap.io'],
|
|
3119
|
+
walletsForProvider: {
|
|
3120
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3121
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { container: 'div.relative.rounded-lg.bg-white.shadow' }),
|
|
3122
|
+
],
|
|
3123
|
+
},
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
urls: ['app.eternalfinance.io'],
|
|
3127
|
+
walletsForProvider: {
|
|
3128
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3129
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { container: 'div.relative.rounded-lg.bg-white.shadow' }),
|
|
3130
|
+
],
|
|
3131
|
+
},
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
urls: ['launchpad.movegpt.io'],
|
|
3135
|
+
walletsForProvider: {
|
|
3136
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3137
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
3138
|
+
var _a;
|
|
3139
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div[role="dialog"]', 'Connect wallet');
|
|
3140
|
+
return (_a = (modal && (0, findIconAndName_1.findIconAndNameByName)(modal, name, 'auto-search-icon'))) !== null && _a !== void 0 ? _a : null;
|
|
3141
|
+
} }),
|
|
3142
|
+
],
|
|
3143
|
+
},
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
urls: ['tsunami.finance'],
|
|
3147
|
+
walletsForProvider: {
|
|
3148
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
|
|
3149
|
+
},
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
urls: ['portalbridge.com'],
|
|
3153
|
+
walletsForProvider: {
|
|
3154
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3155
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['martian']), { findIconAndName({ name }) {
|
|
3156
|
+
var _a;
|
|
3157
|
+
const modal = (0, utils_1.getConnectWalletModalByTitle)('div.MuiTypography-root.MuiTypography-body1.css-jeyoma-MuiTypography-root', 'Connect a wallet');
|
|
3158
|
+
return (_a = (modal && (0, findIconAndName_1.findIconAndNameByName)(modal, name, 'auto-search-icon'))) !== null && _a !== void 0 ? _a : null;
|
|
3159
|
+
} }),
|
|
3160
|
+
],
|
|
3161
|
+
},
|
|
3162
|
+
},
|
|
3163
|
+
{
|
|
3164
|
+
urls: ['app.aptoslaunch.io'],
|
|
3165
|
+
walletsForProvider: {
|
|
3166
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3167
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName(wallet) {
|
|
3168
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)(() => {
|
|
3169
|
+
var _a;
|
|
3170
|
+
return (_a = Array.from(document.querySelectorAll('img[alt="Petra icon"]')).filter((e) => (0, utils_1.isVisible)(e))) === null || _a === void 0 ? void 0 : _a[0];
|
|
3171
|
+
}, 'auto-search-text', wallet.name);
|
|
3172
|
+
} }),
|
|
3173
|
+
],
|
|
3174
|
+
},
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
urls: ['app.animeswap.org'],
|
|
3178
|
+
walletsForProvider: {
|
|
3179
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3180
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName(wallet) {
|
|
3181
|
+
return (0, findIconAndName_1.findIconAndNameByIcon)(() => {
|
|
3182
|
+
var _a;
|
|
3183
|
+
return (_a = Array.from(document.querySelectorAll('img[src*="./static/media/petra"]')).filter((e) => (0, utils_1.isVisible)(e))) === null || _a === void 0 ? void 0 : _a[0];
|
|
3184
|
+
}, 'auto-search-text', wallet.name);
|
|
3185
|
+
} }),
|
|
3186
|
+
],
|
|
3187
|
+
},
|
|
3188
|
+
},
|
|
3189
|
+
{
|
|
3190
|
+
urls: ['bluemove.net'],
|
|
3191
|
+
walletsForProvider: {
|
|
3192
|
+
[cross_inpage_provider_types_1.IInjectedProviderNames.aptos]: [
|
|
3193
|
+
Object.assign(Object.assign({}, exports.basicWalletInfo['petra']), { findIconAndName({ name }) {
|
|
3194
|
+
var _a;
|
|
3195
|
+
return (_a = (0, findIconAndName_1.findIconAndNameByName)(document.body, name, 'auto-search-icon')) !== null && _a !== void 0 ? _a : null;
|
|
3196
|
+
},
|
|
3197
|
+
afterUpdate(textNode, iconNode) {
|
|
3198
|
+
if (iconNode) {
|
|
3199
|
+
iconNode.style.width = '28px';
|
|
3200
|
+
iconNode.style.height = '28px';
|
|
3201
|
+
}
|
|
3202
|
+
} }),
|
|
3203
|
+
],
|
|
3204
|
+
},
|
|
3205
|
+
},
|
|
2886
3206
|
];
|