diff --git a/packages/core/package.json b/packages/core/package.json index 2c277c5c..8ff95a6a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-core", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -29,9 +29,9 @@ "build-version-info": "node ./scripts/buildVersionInfo.js" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-events": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-events": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", "events": "^3.3.0", "lodash-es": "^4.17.21", "ms": "^2.1.3" diff --git a/packages/core/src/versionInfo.ts b/packages/core/src/versionInfo.ts index b7251b5b..5698c4d9 100644 --- a/packages/core/src/versionInfo.ts +++ b/packages/core/src/versionInfo.ts @@ -1,5 +1,5 @@ -const version = '2.1.12'; +const version = '2.1.15'; const versionBuild = '2020-0101-1'; export default { diff --git a/packages/core/src/walletProperty.ts b/packages/core/src/walletProperty.ts index 8122b57c..67228657 100644 --- a/packages/core/src/walletProperty.ts +++ b/packages/core/src/walletProperty.ts @@ -17,6 +17,10 @@ export enum ISpecialPropertyProviderNamesReflection { polkadot = 'polkadot-js', } +export const DEFINE_PROPERTY_WHITELIST = [ + 'connectionStatus', // base provider +]; + export type IPlatformType = 'native' | 'extension' | 'web' | 'desktop'; export function checkPlatformEnable(disablePlatform?: IPlatformType[]) { @@ -103,7 +107,13 @@ export function defineWindowProperty( const enable = checkEnableDefineProperty(property); const proxyProvider = new Proxy(provider as object, { defineProperty(target, property, attributes) { - // skip define Prevent overwriting + try { + if (DEFINE_PROPERTY_WHITELIST.includes(property as string)) { + return Reflect.defineProperty(target, property, attributes); + } + } catch (error) { + // ignore error + } return true; }, }); diff --git a/packages/desktop/desktop-bridge-injected/package.json b/packages/desktop/desktop-bridge-injected/package.json index 53c548e3..5f0f0432 100644 --- a/packages/desktop/desktop-bridge-injected/package.json +++ b/packages/desktop/desktop-bridge-injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/desktop-bridge-injected", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -34,7 +34,7 @@ "electron": "^17.2.0" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15" } } diff --git a/packages/empty/package.json b/packages/empty/package.json index d5d036d8..4f730f49 100644 --- a/packages/empty/package.json +++ b/packages/empty/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-empty", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/errors/package.json b/packages/errors/package.json index cea993fe..52e71d8c 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-errors", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/events/package.json b/packages/events/package.json index af68a943..3c9bb9cf 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-events", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/example/components/chains/aptos/example.tsx b/packages/example/components/chains/aptos/example.tsx index 0cd7d4cd..fe534c46 100644 --- a/packages/example/components/chains/aptos/example.tsx +++ b/packages/example/components/chains/aptos/example.tsx @@ -23,6 +23,11 @@ export default function Example() { name: 'Injected Wallet', inject: 'aptos', }, + { + uuid: 'injected-onekey', + name: 'Injected OneKey', + inject: '$onekey.aptos', + }, ]); const { provider, setAccount, account } = useWallet(); diff --git a/packages/example/package.json b/packages/example/package.json index 6148ecaa..4ecf6de8 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-example", - "version": "2.1.14", + "version": "2.1.15", "private": true, "scripts": { "postinstall": "patch-package", @@ -21,17 +21,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.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/onekey-aptos-provider": "2.1.14", - "@onekeyfe/onekey-cardano-provider": "2.1.14", - "@onekeyfe/onekey-conflux-provider": "2.1.14", - "@onekeyfe/onekey-cosmos-provider": "2.1.14", - "@onekeyfe/onekey-near-provider": "2.1.14", - "@onekeyfe/onekey-solana-provider": "2.1.14", - "@onekeyfe/onekey-sui-provider": "2.1.14", - "@onekeyfe/onekey-tron-provider": "2.1.14", - "@onekeyfe/onekey-webln-provider": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/onekey-aptos-provider": "2.1.15", + "@onekeyfe/onekey-cardano-provider": "2.1.15", + "@onekeyfe/onekey-conflux-provider": "2.1.15", + "@onekeyfe/onekey-cosmos-provider": "2.1.15", + "@onekeyfe/onekey-near-provider": "2.1.15", + "@onekeyfe/onekey-solana-provider": "2.1.15", + "@onekeyfe/onekey-sui-provider": "2.1.15", + "@onekeyfe/onekey-tron-provider": "2.1.15", + "@onekeyfe/onekey-webln-provider": "2.1.15", "@polkadot/api": "^9.11.3", "@polkadot/extension-dapp": "^0.47.5", "@radix-ui/react-checkbox": "^1.1.0", diff --git a/packages/extension/extension-bridge-hosted/package.json b/packages/extension/extension-bridge-hosted/package.json index fc67c02f..f1dd7fae 100644 --- a/packages/extension/extension-bridge-hosted/package.json +++ b/packages/extension/extension-bridge-hosted/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/extension-bridge-hosted", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,8 +28,8 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/extension/extension-bridge-injected/package.json b/packages/extension/extension-bridge-injected/package.json index 7f77b53c..64c1b8a5 100644 --- a/packages/extension/extension-bridge-injected/package.json +++ b/packages/extension/extension-bridge-injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/extension-bridge-injected", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15" } } diff --git a/packages/injected/package.json b/packages/injected/package.json index 160a4534..93e99584 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-injected", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -42,12 +42,12 @@ "electron": "*" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/desktop-bridge-injected": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", - "@onekeyfe/inpage-providers-hub": "2.1.14", - "@onekeyfe/native-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/desktop-bridge-injected": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", + "@onekeyfe/inpage-providers-hub": "2.1.15", + "@onekeyfe/native-bridge-injected": "2.1.15", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0" } diff --git a/packages/native/native-bridge-injected/package.json b/packages/native/native-bridge-injected/package.json index 6c4385e9..ef6f830f 100644 --- a/packages/native/native-bridge-injected/package.json +++ b/packages/native/native-bridge-injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/native-bridge-injected", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15" } } diff --git a/packages/providers/inpage-providers-hub/package.json b/packages/providers/inpage-providers-hub/package.json index cb870b66..48970ac4 100644 --- a/packages/providers/inpage-providers-hub/package.json +++ b/packages/providers/inpage-providers-hub/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/inpage-providers-hub", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -30,26 +30,26 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/onekey-algo-provider": "2.1.14", - "@onekeyfe/onekey-alph-provider": "2.1.14", - "@onekeyfe/onekey-aptos-provider": "2.1.14", - "@onekeyfe/onekey-btc-provider": "2.1.14", - "@onekeyfe/onekey-cardano-provider": "2.1.14", - "@onekeyfe/onekey-conflux-provider": "2.1.14", - "@onekeyfe/onekey-cosmos-provider": "2.1.14", - "@onekeyfe/onekey-eth-provider": "2.1.14", - "@onekeyfe/onekey-nostr-provider": "2.1.14", - "@onekeyfe/onekey-polkadot-provider": "2.1.14", - "@onekeyfe/onekey-private-external-account-provider": "2.1.14", - "@onekeyfe/onekey-private-provider": "2.1.14", - "@onekeyfe/onekey-scdo-provider": "2.1.14", - "@onekeyfe/onekey-solana-provider": "2.1.14", - "@onekeyfe/onekey-sui-provider": "2.1.14", - "@onekeyfe/onekey-ton-provider": "2.1.14", - "@onekeyfe/onekey-tron-provider": "2.1.14", - "@onekeyfe/onekey-webln-provider": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/onekey-algo-provider": "2.1.15", + "@onekeyfe/onekey-alph-provider": "2.1.15", + "@onekeyfe/onekey-aptos-provider": "2.1.15", + "@onekeyfe/onekey-btc-provider": "2.1.15", + "@onekeyfe/onekey-cardano-provider": "2.1.15", + "@onekeyfe/onekey-conflux-provider": "2.1.15", + "@onekeyfe/onekey-cosmos-provider": "2.1.15", + "@onekeyfe/onekey-eth-provider": "2.1.15", + "@onekeyfe/onekey-nostr-provider": "2.1.15", + "@onekeyfe/onekey-polkadot-provider": "2.1.15", + "@onekeyfe/onekey-private-external-account-provider": "2.1.15", + "@onekeyfe/onekey-private-provider": "2.1.15", + "@onekeyfe/onekey-scdo-provider": "2.1.15", + "@onekeyfe/onekey-solana-provider": "2.1.15", + "@onekeyfe/onekey-sui-provider": "2.1.15", + "@onekeyfe/onekey-ton-provider": "2.1.15", + "@onekeyfe/onekey-tron-provider": "2.1.15", + "@onekeyfe/onekey-webln-provider": "2.1.15", "web3": "^1.7.3" }, "devDependencies": { diff --git a/packages/providers/onekey-algo-provider/package.json b/packages/providers/onekey-algo-provider/package.json index 8b56445d..0c08e3d4 100644 --- a/packages/providers/onekey-algo-provider/package.json +++ b/packages/providers/onekey-algo-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-algo-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-alph-provider/package.json b/packages/providers/onekey-alph-provider/package.json index 11fde696..814c8a8f 100644 --- a/packages/providers/onekey-alph-provider/package.json +++ b/packages/providers/onekey-alph-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-alph-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -31,9 +31,9 @@ "@alephium/get-extension-wallet": "^1.5.2", "@alephium/walletconnect-provider": "^1.5.2", "@alephium/web3": "^1.5.2", - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-aptos-provider/package.json b/packages/providers/onekey-aptos-provider/package.json index 88f809c1..a3fefa10 100644 --- a/packages/providers/onekey-aptos-provider/package.json +++ b/packages/providers/onekey-aptos-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-aptos-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "aptos": "^1.3.17", "eth-rpc-errors": "^4.0.3" } diff --git a/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts b/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts index 99ff27e3..3ed4cf5f 100644 --- a/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts +++ b/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts @@ -2,7 +2,7 @@ import { IInpageProviderConfig } from '@onekeyfe/cross-inpage-provider-core'; import { getOrCreateExtInjectedJsBridge } from '@onekeyfe/extension-bridge-injected'; import { ProviderAptosBase } from './ProviderAptosBase'; -import { AptosAccountInfo, SignMessagePayload, SignMessageResponse } from './types'; +import { AptosAccountInfo, ProviderState, SignMessagePayload, SignMessageResponse } from './types'; import type * as TypeUtils from './type-utils'; import { IJsonRpcRequest } from '@onekeyfe/cross-inpage-provider-types'; import { web3Errors } from '@onekeyfe/cross-inpage-provider-errors'; @@ -105,12 +105,14 @@ function isWalletEventMethodMatch({ method, name }: { method: string; name: stri } class ProviderAptos extends ProviderAptosBase implements IProviderAptos { - protected _account: AptosAccountInfo | null = null; + protected _state: ProviderState = { + account: null, + }; protected aptosProviderType: AptosProviderType = 'petra'; get publicKey() { - return this._account?.publicKey ?? null; + return this._state?.account?.publicKey ?? null; } constructor(props: OneKeyAptosProviderProps) { @@ -151,30 +153,33 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { } private _handleConnected(account: AptosAccountInfo, options: { emit: boolean } = { emit: true }) { - this._account = account; + this._state.account = { + publicKey: account.publicKey, + address: account.address, + }; if (this.isConnectionStatusChanged('connected')) { this.connectionStatus = 'connected'; - } - if (options.emit) { - const address = account?.address ?? null; - this.emit('connect', address); - this.emit('accountChanged', address); + if (options.emit) { + const address = account?.address ?? null; + this.emit('connect', address); + this.emit('accountChanged', address); + } } } private _handleDisconnected(options: { emit: boolean } = { emit: true }) { - this._account = null; + this._state.account = null; if (this.isConnectionStatusChanged('disconnected')) { this.connectionStatus = 'disconnected'; - } - if (options.emit) { - this.emit('disconnect'); - this.emit('accountChanged', null); + if (options.emit) { + this.emit('disconnect'); + this.emit('accountChanged', null); + } } } override isAccountsChanged(account: AptosAccountInfo | undefined) { - return account?.address !== this._account?.address; + return account?.address !== this._state.account?.address; } // trigger by bridge account change event @@ -205,8 +210,8 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { } async connect(): Promise { - if (this._account) { - return Promise.resolve(this._account); + if (this._state.account) { + return Promise.resolve(this._state.account); } const result = await this._callBridge({ @@ -222,7 +227,7 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { } isConnected() { - return this.isConnectionStatusChanged('connected'); + return !!this._state.account; } async account(): Promise { diff --git a/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts b/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts index 0dbb1482..e7921a13 100644 --- a/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts +++ b/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts @@ -96,7 +96,7 @@ class ProviderAptosMartian extends ProviderAptos { public readonly isMartian = true; get publicKey() { - return this._account?.publicKey ?? null; + return this._state.account?.publicKey ?? null; } constructor(props: OneKeyAptosProviderProps) { diff --git a/packages/providers/onekey-aptos-provider/src/types.ts b/packages/providers/onekey-aptos-provider/src/types.ts index b3e79b6f..9fac50df 100644 --- a/packages/providers/onekey-aptos-provider/src/types.ts +++ b/packages/providers/onekey-aptos-provider/src/types.ts @@ -4,12 +4,16 @@ export type AptosAccountInfo = { address: string; }; +export type ProviderState = { + account: AptosAccountInfo | null; +}; + export type TxnOptions = { sender?: string; sequence_number?: string; max_gas_amount?: string; gas_unit_price?: string; - gas_currency_code?: string, // TODO: + gas_currency_code?: string, // TODO: // Unix timestamp, in seconds + 10 seconds expiration_timestamp_secs?: string; }; diff --git a/packages/providers/onekey-btc-provider/package.json b/packages/providers/onekey-btc-provider/package.json index 6d562944..f927b5d3 100644 --- a/packages/providers/onekey-btc-provider/package.json +++ b/packages/providers/onekey-btc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-btc-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-cardano-provider/package.json b/packages/providers/onekey-cardano-provider/package.json index eae1559b..d0f773f5 100644 --- a/packages/providers/onekey-cardano-provider/package.json +++ b/packages/providers/onekey-cardano-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cardano-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider", "cardano" @@ -29,9 +29,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-conflux-provider/package.json b/packages/providers/onekey-conflux-provider/package.json index dea82cb5..4efe4cdc 100644 --- a/packages/providers/onekey-conflux-provider/package.json +++ b/packages/providers/onekey-conflux-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-conflux-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-cosmos-provider/package.json b/packages/providers/onekey-cosmos-provider/package.json index e96f9eaa..850d54c6 100644 --- a/packages/providers/onekey-cosmos-provider/package.json +++ b/packages/providers/onekey-cosmos-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cosmos-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "eth-rpc-errors": "^4.0.3", "long": "^5.2.1", "mitt": "^3.0.0" diff --git a/packages/providers/onekey-eth-provider/package.json b/packages/providers/onekey-eth-provider/package.json index 0cd7140a..20dd5e15 100644 --- a/packages/providers/onekey-eth-provider/package.json +++ b/packages/providers/onekey-eth-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-eth-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "eth-rpc-errors": "^4.0.3", "uuid": "^8.3.2" }, diff --git a/packages/providers/onekey-near-provider/package.json b/packages/providers/onekey-near-provider/package.json index 5f498216..b8541c07 100644 --- a/packages/providers/onekey-near-provider/package.json +++ b/packages/providers/onekey-near-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-near-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -35,10 +35,10 @@ "near-api-js": "^0.44.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "borsh": "^0.6.0", "depd": "^2.0.0", "tweetnacl": "^1.0.3" diff --git a/packages/providers/onekey-nostr-provider/package.json b/packages/providers/onekey-nostr-provider/package.json index 92838856..7851fbc8 100644 --- a/packages/providers/onekey-nostr-provider/package.json +++ b/packages/providers/onekey-nostr-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-nostr-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-polkadot-provider/package.json b/packages/providers/onekey-polkadot-provider/package.json index 813ee8f6..cd85fd49 100644 --- a/packages/providers/onekey-polkadot-provider/package.json +++ b/packages/providers/onekey-polkadot-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-polkadot-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "@polkadot/extension-inject": "^0.46.3", "eth-rpc-errors": "^4.0.3", "long": "^5.2.1", diff --git a/packages/providers/onekey-private-external-account-provider/package.json b/packages/providers/onekey-private-external-account-provider/package.json index 858604a3..3d617e5a 100644 --- a/packages/providers/onekey-private-external-account-provider/package.json +++ b/packages/providers/onekey-private-external-account-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-private-external-account-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-private-provider/package.json b/packages/providers/onekey-private-provider/package.json index 1477f585..ed8d7943 100644 --- a/packages/providers/onekey-private-provider/package.json +++ b/packages/providers/onekey-private-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-private-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-scdo-provider/package.json b/packages/providers/onekey-scdo-provider/package.json index 35eb54ac..91170ac3 100644 --- a/packages/providers/onekey-scdo-provider/package.json +++ b/packages/providers/onekey-scdo-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-scdo-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/providers/onekey-solana-provider/package.json b/packages/providers/onekey-solana-provider/package.json index 89f5753d..81a317a2 100644 --- a/packages/providers/onekey-solana-provider/package.json +++ b/packages/providers/onekey-solana-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-solana-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider", "solona" @@ -29,10 +29,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "@solana/wallet-standard-features": "^1.1.0", "@solana/web3.js": "^1.41.3", "@wallet-standard/base": "^1.0.1", diff --git a/packages/providers/onekey-sui-provider/package.json b/packages/providers/onekey-sui-provider/package.json index ca4c8f19..b5188045 100644 --- a/packages/providers/onekey-sui-provider/package.json +++ b/packages/providers/onekey-sui-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-sui-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@mysten/wallet-standard": "^0.7.2", - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "eth-rpc-errors": "^4.0.3", "mitt": "^3.0.0" } diff --git a/packages/providers/onekey-ton-provider/package.json b/packages/providers/onekey-ton-provider/package.json index d3b470d2..80ff5bb2 100644 --- a/packages/providers/onekey-ton-provider/package.json +++ b/packages/providers/onekey-ton-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-ton-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "@tonconnect/protocol": "^2.2.6" } } diff --git a/packages/providers/onekey-tron-provider/package.json b/packages/providers/onekey-tron-provider/package.json index c06928b0..8398e1d9 100644 --- a/packages/providers/onekey-tron-provider/package.json +++ b/packages/providers/onekey-tron-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-tron-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/secp256k1": "1.7.1", - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14", + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15", "querystring": "^0.2.1", "sunweb": "^1.0.7", "tronweb": "^5.3.2" diff --git a/packages/providers/onekey-webln-provider/package.json b/packages/providers/onekey-webln-provider/package.json index a06be788..c0df3e91 100644 --- a/packages/providers/onekey-webln-provider/package.json +++ b/packages/providers/onekey-webln-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-webln-provider", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-errors": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14", - "@onekeyfe/extension-bridge-injected": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-errors": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15", + "@onekeyfe/extension-bridge-injected": "2.1.15" } } diff --git a/packages/types/package.json b/packages/types/package.json index 377dbd81..3e9d0cdb 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-types", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/webview/package.json b/packages/webview/package.json index a51b5773..2cc0b839 100644 --- a/packages/webview/package.json +++ b/packages/webview/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cross-webview", - "version": "2.1.14", + "version": "2.1.15", "keywords": [ "cross-inpage-provider" ], @@ -36,7 +36,7 @@ "react-native-webview": "^11.17.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.14", - "@onekeyfe/cross-inpage-provider-types": "2.1.14" + "@onekeyfe/cross-inpage-provider-core": "2.1.15", + "@onekeyfe/cross-inpage-provider-types": "2.1.15" } }