@onekeyfe/inpage-providers-hub 0.0.17 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,14 +24,21 @@ function injectWeb3Provider() {
|
|
|
24
24
|
bridge,
|
|
25
25
|
});
|
|
26
26
|
// providerHub
|
|
27
|
-
const $onekey = Object.assign(Object.assign({}, window.$onekey), { jsBridge: bridge,
|
|
28
|
-
|
|
27
|
+
const $onekey = Object.assign(Object.assign({}, window.$onekey), { jsBridge: bridge, $private,
|
|
28
|
+
ethereum,
|
|
29
29
|
solana,
|
|
30
30
|
starcoin, conflux: null, sollet: null });
|
|
31
31
|
window.$onekey = $onekey;
|
|
32
|
+
// ** EVM
|
|
32
33
|
// TODO conflict with MetaMask
|
|
33
34
|
window.ethereum = ethereum;
|
|
35
|
+
// ** SOL
|
|
34
36
|
window.solana = solana;
|
|
37
|
+
window.phantom = { solana };
|
|
38
|
+
// sim multiple providers may cause opensea.io prompt Connection twice.
|
|
39
|
+
// window.solflare = solana;
|
|
40
|
+
// window.glowSolana = solana;
|
|
41
|
+
// ** STC
|
|
35
42
|
window.starcoin = starcoin;
|
|
36
43
|
// ** shim or inject real web3
|
|
37
44
|
//
|
|
@@ -21,14 +21,21 @@ function injectWeb3Provider() {
|
|
|
21
21
|
bridge,
|
|
22
22
|
});
|
|
23
23
|
// providerHub
|
|
24
|
-
const $onekey = Object.assign(Object.assign({}, window.$onekey), { jsBridge: bridge,
|
|
25
|
-
|
|
24
|
+
const $onekey = Object.assign(Object.assign({}, window.$onekey), { jsBridge: bridge, $private,
|
|
25
|
+
ethereum,
|
|
26
26
|
solana,
|
|
27
27
|
starcoin, conflux: null, sollet: null });
|
|
28
28
|
window.$onekey = $onekey;
|
|
29
|
+
// ** EVM
|
|
29
30
|
// TODO conflict with MetaMask
|
|
30
31
|
window.ethereum = ethereum;
|
|
32
|
+
// ** SOL
|
|
31
33
|
window.solana = solana;
|
|
34
|
+
window.phantom = { solana };
|
|
35
|
+
// sim multiple providers may cause opensea.io prompt Connection twice.
|
|
36
|
+
// window.solflare = solana;
|
|
37
|
+
// window.glowSolana = solana;
|
|
38
|
+
// ** STC
|
|
32
39
|
window.starcoin = starcoin;
|
|
33
40
|
// ** shim or inject real web3
|
|
34
41
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/inpage-providers-hub",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"cross-inpage-provider"
|
|
6
6
|
],
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"start": "tsc --watch"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@onekeyfe/cross-inpage-provider-core": "
|
|
32
|
-
"@onekeyfe/cross-inpage-provider-types": "
|
|
33
|
-
"@onekeyfe/onekey-eth-provider": "
|
|
34
|
-
"@onekeyfe/onekey-private-provider": "
|
|
35
|
-
"@onekeyfe/onekey-solana-provider": "
|
|
36
|
-
"@onekeyfe/onekey-starcoin-provider": "
|
|
31
|
+
"@onekeyfe/cross-inpage-provider-core": "1.0.1",
|
|
32
|
+
"@onekeyfe/cross-inpage-provider-types": "1.0.1",
|
|
33
|
+
"@onekeyfe/onekey-eth-provider": "1.0.1",
|
|
34
|
+
"@onekeyfe/onekey-private-provider": "1.0.1",
|
|
35
|
+
"@onekeyfe/onekey-solana-provider": "1.0.1",
|
|
36
|
+
"@onekeyfe/onekey-starcoin-provider": "1.0.1",
|
|
37
37
|
"web3": "^1.7.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "740cbafbff4c89099c67de812565b0f8c78e485a"
|
|
40
40
|
}
|