Skip to content

Commit

Permalink
fix: hide ton and scdo provider (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
originalix authored Sep 2, 2024
1 parent 18c5992 commit e9aef83
Show file tree
Hide file tree
Showing 33 changed files with 166 additions and 223 deletions.
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-core",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -29,9 +29,9 @@
"build-version-info": "node ./scripts/buildVersionInfo.js"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-errors": "2.1.2",
"@onekeyfe/cross-inpage-provider-events": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/cross-inpage-provider-errors": "2.1.3",
"@onekeyfe/cross-inpage-provider-events": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"events": "^3.3.0",
"lodash-es": "^4.17.21",
"ms": "^2.1.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/desktop/desktop-bridge-injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/desktop-bridge-injected",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -34,7 +34,7 @@
"electron": "^17.2.0"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2"
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3"
}
}
2 changes: 1 addition & 1 deletion packages/empty/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-empty",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-errors",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/events/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-events",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down
24 changes: 12 additions & 12 deletions packages/example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-example",
"version": "2.1.2",
"version": "2.1.3",
"private": true,
"scripts": {
"postinstall": "patch-package",
Expand All @@ -20,17 +20,17 @@
"@metamask/eth-sig-util": "^7.0.2",
"@metamask/onboarding": "^1.0.1",
"@mysten/dapp-kit": "0.13.2",
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/onekey-aptos-provider": "2.1.2",
"@onekeyfe/onekey-cardano-provider": "2.1.2",
"@onekeyfe/onekey-conflux-provider": "2.1.2",
"@onekeyfe/onekey-cosmos-provider": "2.1.2",
"@onekeyfe/onekey-near-provider": "2.1.2",
"@onekeyfe/onekey-solana-provider": "2.1.2",
"@onekeyfe/onekey-sui-provider": "2.1.2",
"@onekeyfe/onekey-tron-provider": "2.1.2",
"@onekeyfe/onekey-webln-provider": "2.1.2",
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/onekey-aptos-provider": "2.1.3",
"@onekeyfe/onekey-cardano-provider": "2.1.3",
"@onekeyfe/onekey-conflux-provider": "2.1.3",
"@onekeyfe/onekey-cosmos-provider": "2.1.3",
"@onekeyfe/onekey-near-provider": "2.1.3",
"@onekeyfe/onekey-solana-provider": "2.1.3",
"@onekeyfe/onekey-sui-provider": "2.1.3",
"@onekeyfe/onekey-tron-provider": "2.1.3",
"@onekeyfe/onekey-webln-provider": "2.1.3",
"@polkadot/api": "^9.11.3",
"@polkadot/extension-dapp": "^0.47.5",
"@radix-ui/react-checkbox": "^1.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/extension-bridge-hosted/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/extension-bridge-hosted",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,8 +28,8 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"uuid": "^8.3.2"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/extension-bridge-injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/extension-bridge-injected",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,7 +28,7 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2"
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3"
}
}
14 changes: 7 additions & 7 deletions packages/injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-injected",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -42,12 +42,12 @@
"electron": "*"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/desktop-bridge-injected": "2.1.2",
"@onekeyfe/extension-bridge-injected": "2.1.2",
"@onekeyfe/inpage-providers-hub": "2.1.2",
"@onekeyfe/native-bridge-injected": "2.1.2",
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/desktop-bridge-injected": "2.1.3",
"@onekeyfe/extension-bridge-injected": "2.1.3",
"@onekeyfe/inpage-providers-hub": "2.1.3",
"@onekeyfe/native-bridge-injected": "2.1.3",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/native/native-bridge-injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/native-bridge-injected",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,7 +28,7 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2"
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3"
}
}
40 changes: 20 additions & 20 deletions packages/providers/inpage-providers-hub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/inpage-providers-hub",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -30,25 +30,25 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/onekey-algo-provider": "2.1.2",
"@onekeyfe/onekey-aptos-provider": "2.1.2",
"@onekeyfe/onekey-btc-provider": "2.1.2",
"@onekeyfe/onekey-cardano-provider": "2.1.2",
"@onekeyfe/onekey-conflux-provider": "2.1.2",
"@onekeyfe/onekey-ton-provider": "2.1.2",
"@onekeyfe/onekey-cosmos-provider": "2.1.2",
"@onekeyfe/onekey-eth-provider": "2.1.2",
"@onekeyfe/onekey-nostr-provider": "2.1.2",
"@onekeyfe/onekey-polkadot-provider": "2.1.2",
"@onekeyfe/onekey-private-external-account-provider": "2.1.2",
"@onekeyfe/onekey-private-provider": "2.1.2",
"@onekeyfe/onekey-scdo-provider": "2.1.2",
"@onekeyfe/onekey-solana-provider": "2.1.2",
"@onekeyfe/onekey-sui-provider": "2.1.2",
"@onekeyfe/onekey-tron-provider": "2.1.2",
"@onekeyfe/onekey-webln-provider": "2.1.2",
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/onekey-algo-provider": "2.1.3",
"@onekeyfe/onekey-aptos-provider": "2.1.3",
"@onekeyfe/onekey-btc-provider": "2.1.3",
"@onekeyfe/onekey-cardano-provider": "2.1.3",
"@onekeyfe/onekey-conflux-provider": "2.1.3",
"@onekeyfe/onekey-cosmos-provider": "2.1.3",
"@onekeyfe/onekey-eth-provider": "2.1.3",
"@onekeyfe/onekey-nostr-provider": "2.1.3",
"@onekeyfe/onekey-polkadot-provider": "2.1.3",
"@onekeyfe/onekey-private-external-account-provider": "2.1.3",
"@onekeyfe/onekey-private-provider": "2.1.3",
"@onekeyfe/onekey-scdo-provider": "2.1.3",
"@onekeyfe/onekey-solana-provider": "2.1.3",
"@onekeyfe/onekey-sui-provider": "2.1.3",
"@onekeyfe/onekey-ton-provider": "2.1.3",
"@onekeyfe/onekey-tron-provider": "2.1.3",
"@onekeyfe/onekey-webln-provider": "2.1.3",
"web3": "^1.7.3"
},
"devDependencies": {
Expand Down
28 changes: 14 additions & 14 deletions packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
} from '@onekeyfe/cross-inpage-provider-core';
import { ProviderSui, registerSuiWallet } from '@onekeyfe/onekey-sui-provider';
import { ProviderWebln } from '@onekeyfe/onekey-webln-provider';
import { ProviderScdo } from '@onekeyfe/onekey-scdo-provider';
import { ProviderTon } from '@onekeyfe/onekey-ton-provider';
// import { ProviderScdo } from '@onekeyfe/onekey-scdo-provider';
// import { ProviderTon } from '@onekeyfe/onekey-ton-provider';
import { ProviderNostr } from '@onekeyfe/onekey-nostr-provider';
import { ProviderBtc, ProviderBtcWallet } from '@onekeyfe/onekey-btc-provider';
import { ProviderAlgo } from '@onekeyfe/onekey-algo-provider';
Expand All @@ -43,10 +43,10 @@ export type IWindowOneKeyHub = {
keplr?: ProviderCosmos;
webln?: ProviderWebln;
nostr?: ProviderNostr;
ton?: ProviderTon;
// ton?: ProviderTon;
unisat?: ProviderBtc;
btcwallet?: ProviderBtcWallet;
scdo?: ProviderScdo;
// scdo?: ProviderScdo;
$private?: ProviderPrivate;
$walletInfo?: {
buildNumber: string;
Expand Down Expand Up @@ -105,9 +105,9 @@ function injectWeb3Provider(): unknown {
bridge,
});

const tonconnect = new ProviderTon({
bridge,
});
// const tonconnect = new ProviderTon({
// bridge,
// });

const cosmos = new ProviderCosmos({
bridge,
Expand All @@ -130,7 +130,7 @@ function injectWeb3Provider(): unknown {

const algorand = new ProviderAlgo({ bridge });

const scdo = new ProviderScdo({ bridge });
// const scdo = new ProviderScdo({ bridge });

// const $privateExternalAccount = new ProviderPrivateExternalAccount({ bridge });

Expand All @@ -148,10 +148,10 @@ function injectWeb3Provider(): unknown {
tron,
sollet: null,
sui,
tonconnect,
// tonconnect,
cardano,
cosmos,
scdo,
// scdo,
webln,
nostr,
btc,
Expand Down Expand Up @@ -196,11 +196,11 @@ function injectWeb3Provider(): unknown {
defineWindowProperty('conflux', conflux);
defineWindowProperty('tronLink', tron);
defineWindowProperty('suiWallet', sui);
defineWindowProperty('tonkeeper', {
tonconnect,
});
// defineWindowProperty('tonkeeper', {
// tonconnect,
// });
defineWindowProperty('unisat', btc);
defineWindowProperty('scdo', scdo);
// defineWindowProperty('scdo', scdo);
defineWindowProperty('algorand', algorand);
defineWindowProperty('exodus', {
algorand,
Expand Down
10 changes: 5 additions & 5 deletions packages/providers/onekey-algo-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-algo-provider",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,9 +28,9 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-errors": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/extension-bridge-injected": "2.1.2"
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-errors": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/extension-bridge-injected": "2.1.3"
}
}
10 changes: 5 additions & 5 deletions packages/providers/onekey-aptos-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-aptos-provider",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,10 +28,10 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-errors": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/extension-bridge-injected": "2.1.2",
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-errors": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/extension-bridge-injected": "2.1.3",
"aptos": "^1.3.17",
"eth-rpc-errors": "^4.0.3"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/providers/onekey-btc-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-btc-provider",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,9 +28,9 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-errors": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/extension-bridge-injected": "2.1.2"
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-errors": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/extension-bridge-injected": "2.1.3"
}
}
10 changes: 5 additions & 5 deletions packages/providers/onekey-cardano-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-cardano-provider",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"cross-inpage-provider",
"cardano"
Expand Down Expand Up @@ -29,9 +29,9 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.1.2",
"@onekeyfe/cross-inpage-provider-errors": "2.1.2",
"@onekeyfe/cross-inpage-provider-types": "2.1.2",
"@onekeyfe/extension-bridge-injected": "2.1.2"
"@onekeyfe/cross-inpage-provider-core": "2.1.3",
"@onekeyfe/cross-inpage-provider-errors": "2.1.3",
"@onekeyfe/cross-inpage-provider-types": "2.1.3",
"@onekeyfe/extension-bridge-injected": "2.1.3"
}
}
Loading

0 comments on commit e9aef83

Please sign in to comment.