@onekeyfe/inpage-providers-hub 2.2.14 → 2.2.17

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.
@@ -30,9 +30,7 @@ const ord_1 = __importDefault(require("./sites/ord"));
30
30
  const ordinalswallet_1 = __importDefault(require("./sites/ordinalswallet"));
31
31
  const ordinalsmarket_1 = __importDefault(require("./sites/ordinalsmarket"));
32
32
  const sating_1 = __importDefault(require("./sites/sating"));
33
- const lidofi_1 = __importDefault(require("./sites/lidofi"));
34
33
  const eigenlayer_1 = __importDefault(require("./sites/eigenlayer"));
35
- const rocketpool_1 = __importDefault(require("./sites/rocketpool"));
36
34
  const liteInstadapp_1 = __importDefault(require("./sites/liteInstadapp"));
37
35
  const methMantle_1 = __importDefault(require("./sites/methMantle"));
38
36
  const balancerFi_1 = __importDefault(require("./sites/balancerFi"));
@@ -41,7 +39,6 @@ const renzoprotocol_1 = __importDefault(require("./sites/renzoprotocol"));
41
39
  const boringdao_1 = __importDefault(require("./sites/boringdao"));
42
40
  const hope_1 = __importDefault(require("./sites/hope"));
43
41
  const hyperliquid_1 = __importDefault(require("./sites/hyperliquid"));
44
- const solv_1 = __importDefault(require("./sites/solv"));
45
42
  const silo_1 = __importDefault(require("./sites/silo"));
46
43
  const mux_1 = __importDefault(require("./sites/mux"));
47
44
  const stargateFinance_1 = __importDefault(require("./sites/stargateFinance"));
@@ -72,9 +69,7 @@ function hackAllConnectButtons() {
72
69
  (0, ordinalswallet_1.default)();
73
70
  (0, ordinalsmarket_1.default)();
74
71
  (0, sating_1.default)();
75
- (0, lidofi_1.default)();
76
72
  (0, eigenlayer_1.default)();
77
- (0, rocketpool_1.default)();
78
73
  (0, liteInstadapp_1.default)();
79
74
  (0, methMantle_1.default)();
80
75
  (0, balancerFi_1.default)();
@@ -83,7 +78,6 @@ function hackAllConnectButtons() {
83
78
  (0, boringdao_1.default)();
84
79
  (0, hope_1.default)();
85
80
  (0, hyperliquid_1.default)();
86
- (0, solv_1.default)();
87
81
  (0, silo_1.default)();
88
82
  (0, mux_1.default)();
89
83
  (0, stargateFinance_1.default)();
@@ -520,7 +520,7 @@ exports.sitesConfig = [
520
520
  },
521
521
  },
522
522
  {
523
- urls: ['app.arrakis.fi'],
523
+ urls: ['app.arrakis.finance'],
524
524
  testPath: [':text("For Users")', ':text("Connect Wallet")'],
525
525
  walletsForProvider: {
526
526
  [cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
@@ -1931,10 +1931,15 @@ exports.sitesConfig = [
1931
1931
  },
1932
1932
  },
1933
1933
  {
1934
- urls: ['blast.wasabi.xyz'],
1935
- testPath: [':text("STAKE NOW")', ':text("CONNECT WALLET")'],
1934
+ urls: ['app.wasabi.xyz'],
1935
+ testPath: [':text("CONNECT WALLET")'],
1936
1936
  walletsForProvider: {
1937
- [cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [metamaskForRainbowKit, walletConnectForRainbowKit],
1937
+ [cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
1938
+ Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div[id*="headlessui-dialog-"]', ['Connect Wallet', 'Wallet Overview']) }),
1939
+ ],
1940
+ [cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
1941
+ Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: () => (0, utils_1.getConnectWalletModalByTitle)('#headlessui-portal-root div[id*="headlessui-dialog-"]', ['Connect Wallet', 'Wallet Overview']) }),
1942
+ ],
1938
1943
  },
1939
1944
  },
1940
1945
  {
@@ -2845,7 +2850,7 @@ exports.sitesConfig = [
2845
2850
  icon.style.width = '26px';
2846
2851
  icon.style.height = '26px';
2847
2852
  return true;
2848
- }
2853
+ },
2849
2854
  ],
2850
2855
  text: [],
2851
2856
  },
@@ -2853,9 +2858,346 @@ exports.sitesConfig = [
2853
2858
  [cross_inpage_provider_types_1.IInjectedProviderNames.solana]: [
2854
2859
  Object.assign(Object.assign({}, exports.basicWalletInfo['phantom']), { container: 'div.wallet-list', afterUpdate(textNode) {
2855
2860
  const ledgerInput = document.getElementById('connect-ledger-wallet-with-phantom');
2856
- const ledgerText = ledgerInput === null || ledgerInput === void 0 ? void 0 : ledgerInput.nextElementSibling;
2857
- if (ledgerText) {
2858
- ledgerText.textContent = 'I am using my ledger/onekey with one of these wallets';
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';
2873
+ }
2874
+ } }),
2875
+ ],
2876
+ },
2877
+ },
2878
+ {
2879
+ urls: ['www.desyn.io'],
2880
+ walletsForProvider: {
2881
+ [cross_inpage_provider_types_1.IInjectedProviderNames.ethereum]: [
2882
+ Object.assign(Object.assign({}, exports.basicWalletInfo['metamask']), { findIconAndName({ name }) {
2883
+ var _a, _b;
2884
+ const modal = document.querySelector('div.modal div.modal-body');
2885
+ const text = modal && (0, textUtils_1.findWalletTextByParent)(modal, name, []);
2886
+ const icon = (_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.querySelector('img');
2887
+ return (text && {
2888
+ textNode: text,
2889
+ iconNode: icon !== null && icon !== void 0 ? icon : null,
2890
+ });
2891
+ } }),
2892
+ ],
2893
+ },
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';
2859
3201
  }
2860
3202
  } }),
2861
3203
  ],
@@ -4,7 +4,6 @@ exports.injectWeb3Provider = injectWeb3Provider;
4
4
  const onekey_eth_provider_1 = require("@onekeyfe/onekey-eth-provider");
5
5
  const onekey_private_provider_1 = require("@onekeyfe/onekey-private-provider");
6
6
  const onekey_solana_provider_1 = require("@onekeyfe/onekey-solana-provider");
7
- // import { ProviderStarcoin } from '@onekeyfe/onekey-starcoin-provider';
8
7
  const onekey_aptos_provider_1 = require("@onekeyfe/onekey-aptos-provider");
9
8
  const onekey_conflux_provider_1 = require("@onekeyfe/onekey-conflux-provider");
10
9
  const onekey_alph_provider_1 = require("@onekeyfe/onekey-alph-provider");
@@ -21,6 +20,7 @@ const onekey_ton_provider_1 = require("@onekeyfe/onekey-ton-provider");
21
20
  const onekey_nostr_provider_1 = require("@onekeyfe/onekey-nostr-provider");
22
21
  const onekey_btc_provider_1 = require("@onekeyfe/onekey-btc-provider");
23
22
  const onekey_algo_provider_1 = require("@onekeyfe/onekey-algo-provider");
23
+ const onekey_neo_provider_1 = require("@onekeyfe/onekey-neo-provider");
24
24
  const connectButtonHack_1 = require("./connectButtonHack");
25
25
  const detectRiskWebsite_1 = require("./detectRiskWebsite");
26
26
  const floatingButton_1 = require("./floatingButton");
@@ -40,9 +40,6 @@ function injectWeb3Provider({ showFloatingButton = false, } = {}) {
40
40
  const solana = new onekey_solana_provider_1.ProviderSolana({
41
41
  bridge,
42
42
  });
43
- // const starcoin = new ProviderStarcoin({
44
- // bridge,
45
- // });
46
43
  const martian = new onekey_aptos_provider_1.ProviderAptosMartian({
47
44
  bridge,
48
45
  });
@@ -87,6 +84,8 @@ function injectWeb3Provider({ showFloatingButton = false, } = {}) {
87
84
  const btcWallet = new onekey_btc_provider_1.ProviderBtcWallet({ bridge });
88
85
  const algorand = new onekey_algo_provider_1.ProviderAlgo({ bridge });
89
86
  const scdo = new onekey_scdo_provider_1.ProviderScdo({ bridge });
87
+ const neo = new onekey_neo_provider_1.ProviderNeo({ bridge });
88
+ onekey_neo_provider_1.NEOLineN3.instance = neo;
90
89
  // providerHub
91
90
  const $onekey = Object.assign(Object.assign({}, window.$onekey), { jsBridge: bridge, $private,
92
91
  ethereum,
@@ -103,17 +102,8 @@ function injectWeb3Provider({ showFloatingButton = false, } = {}) {
103
102
  scdo,
104
103
  webln,
105
104
  nostr,
106
- btc, btcwallet: btcWallet, algorand });
105
+ btc, btcwallet: btcWallet, algorand, neo: onekey_neo_provider_1.NEOLineN3 });
107
106
  (0, cross_inpage_provider_core_1.defineWindowProperty)('$onekey', $onekey, { enumerable: true, alwaysInject: true });
108
- // const martianProxy = new Proxy(martian, {
109
- // get: (target, property, ...args) => {
110
- // if (property === 'aptosProviderType') {
111
- // return 'martian';
112
- // }
113
- // // eslint-disable-next-line @typescript-eslint/no-unsafe-return
114
- // return Reflect.get(target, property, ...args);
115
- // },
116
- // });
117
107
  (0, cross_inpage_provider_core_1.defineWindowProperty)('ethereum', ethereum);
118
108
  // OneKey Ethereum EIP6963 Provider
119
109
  (0, onekey_eth_provider_1.registerEIP6963Provider)({
@@ -131,11 +121,9 @@ function injectWeb3Provider({ showFloatingButton = false, } = {}) {
131
121
  });
132
122
  }
133
123
  (0, cross_inpage_provider_core_1.defineWindowProperty)('solana', solana);
134
- (0, cross_inpage_provider_core_1.defineWindowProperty)('phantom', { solana });
135
- // defineWindowProperty('starcoin', starcoin);
124
+ (0, cross_inpage_provider_core_1.defineWindowProperty)('phantom', { solana, ethereum });
136
125
  (0, cross_inpage_provider_core_1.defineWindowProperty)('aptos', martian);
137
126
  (0, cross_inpage_provider_core_1.defineWindowProperty)('petra', martian, { enumerable: true });
138
- // defineWindowProperty('martian', martianProxy, { enumerable: true });
139
127
  (0, cross_inpage_provider_core_1.defineWindowProperty)('conflux', conflux);
140
128
  (0, cross_inpage_provider_core_1.defineWindowProperty)('alephium', alephium);
141
129
  (0, cross_inpage_provider_core_1.defineWindowProperty)('alephiumProviders', {
@@ -174,6 +162,10 @@ function injectWeb3Provider({ showFloatingButton = false, } = {}) {
174
162
  // Lightning Network
175
163
  (0, cross_inpage_provider_core_1.defineWindowProperty)('webln', webln);
176
164
  (0, cross_inpage_provider_core_1.defineWindowProperty)('nostr', nostr);
165
+ // NEO N3
166
+ (0, cross_inpage_provider_core_1.defineWindowProperty)('NEOLineN3', onekey_neo_provider_1.NEOLineN3);
167
+ (0, cross_inpage_provider_core_1.defineWindowProperty)('NEOLine', onekey_neo_provider_1.NEOLineN3);
168
+ (0, onekey_neo_provider_1.emitNeoReadyEvent)();
177
169
  // ** shim or inject real web3
178
170
  //
179
171
  // if (!window.web3) {
@@ -24,9 +24,7 @@ import ord from './sites/ord';
24
24
  import ordinalswallet from './sites/ordinalswallet';
25
25
  import ordinalsmarket from './sites/ordinalsmarket';
26
26
  import sating from './sites/sating';
27
- import lidofi from './sites/lidofi';
28
27
  import eigenlayer from './sites/eigenlayer';
29
- import rocketpool from './sites/rocketpool';
30
28
  import liteInstadapp from './sites/liteInstadapp';
31
29
  import methMantle from './sites/methMantle';
32
30
  import balancerFi from './sites/balancerFi';
@@ -35,7 +33,6 @@ import renzoprotocol from './sites/renzoprotocol';
35
33
  import boringdao from './sites/boringdao';
36
34
  import hope from './sites/hope';
37
35
  import hyperliquid from './sites/hyperliquid';
38
- import solv from './sites/solv';
39
36
  import silo from './sites/silo';
40
37
  import mux from './sites/mux';
41
38
  import stargateFinance from './sites/stargateFinance';
@@ -66,9 +63,7 @@ function hackAllConnectButtons() {
66
63
  ordinalswallet();
67
64
  ordinalsmarket();
68
65
  sating();
69
- lidofi();
70
66
  eigenlayer();
71
- rocketpool();
72
67
  liteInstadapp();
73
68
  methMantle();
74
69
  balancerFi();
@@ -77,7 +72,6 @@ function hackAllConnectButtons() {
77
72
  boringdao();
78
73
  hope();
79
74
  hyperliquid();
80
- solv();
81
75
  silo();
82
76
  mux();
83
77
  stargateFinance();