From a191a9ebd071ad044790edb0bc5368267a7c7a78 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 30 Jan 2023 10:21:15 +0800 Subject: [PATCH 1/3] feat: inject cardano provider --- .../src/injectWeb3Provider.ts | 5 ++-- .../src/ProviderCardano.ts | 18 ++++++----- .../onekey-cardano-provider/src/index.ts | 1 + .../onekey-cardano-provider/src/inject.ts | 30 +++++++++++++++++++ 4 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 packages/providers/onekey-cardano-provider/src/inject.ts diff --git a/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts b/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts index 555b93b1..c5f8aa6f 100644 --- a/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts +++ b/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts @@ -9,7 +9,7 @@ import { ProviderStarcoin } from '@onekeyfe/onekey-starcoin-provider'; import { ProviderAptos, ProviderAptosMartian } from '@onekeyfe/onekey-aptos-provider'; import { ProviderConflux } from '@onekeyfe/onekey-conflux-provider'; import { ProviderTron } from '@onekeyfe/onekey-tron-provider'; -import { ProviderCardano } from '@onekeyfe/onekey-cardano-provider'; +import { ProviderCardano, defineWindowCardanoProperty } from '@onekeyfe/onekey-cardano-provider'; import { ProviderCosmos } from '@onekeyfe/onekey-cosmos-provider'; import { consts } from '@onekeyfe/cross-inpage-provider-core'; import { ProviderSui, registerSuiWallet } from '@onekeyfe/onekey-sui-provider'; @@ -193,7 +193,8 @@ function injectWeb3Provider(): unknown { defineWindowProperty('conflux', conflux); defineWindowProperty('tronLink', tron); defineWindowProperty('suiWallet', sui); - defineWindowProperty('cardano', cardano); + + defineWindowCardanoProperty('cardano', cardano) // cosmos keplr defineWindowProperty('keplr', cosmos); diff --git a/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts b/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts index e35f80c0..c43fc721 100644 --- a/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts +++ b/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts @@ -63,13 +63,10 @@ class ProviderCardano extends ProviderCardanoBase implements IProviderCardano { return this._account !== null } - get onekey() { - return this.walletInfo() - } + onekey: Cip30Wallet + + nami: Cip30Wallet - get nami() { - return this.walletInfo() - } constructor(props: OneKeyCardanoProviderProps) { super({ @@ -78,6 +75,14 @@ class ProviderCardano extends ProviderCardanoBase implements IProviderCardano { }); this._registerEvents(); + + this.nami = { + ...this.walletInfo(), + name: 'Nami', + } + this.onekey = { + ...this.walletInfo() + } } private _registerEvents() { @@ -91,7 +96,6 @@ class ProviderCardano extends ProviderCardanoBase implements IProviderCardano { this._handleAccountChange(params as CardanoAccount); } }); - } private _callBridge(params: { diff --git a/packages/providers/onekey-cardano-provider/src/index.ts b/packages/providers/onekey-cardano-provider/src/index.ts index 4bf0a8d3..925a6676 100644 --- a/packages/providers/onekey-cardano-provider/src/index.ts +++ b/packages/providers/onekey-cardano-provider/src/index.ts @@ -1,2 +1,3 @@ export * from './ProviderCardano' export * from './ProviderCardanoBase' +export * from './inject' diff --git a/packages/providers/onekey-cardano-provider/src/inject.ts b/packages/providers/onekey-cardano-provider/src/inject.ts new file mode 100644 index 00000000..de27549e --- /dev/null +++ b/packages/providers/onekey-cardano-provider/src/inject.ts @@ -0,0 +1,30 @@ +/* eslint-disable @typescript-eslint/no-unsafe-return */ +/* eslint-disable @typescript-eslint/no-unsafe-member-access */ +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ + +export function defineWindowCardanoProperty(property: string, provider: unknown) { + const proxyProvider = new Proxy(provider as object, { + defineProperty(target, property, attributes) { + if (property !== 'nami') { + return Reflect.defineProperty(target, property, attributes); + } + // skip define Prevent overwriting + console.log('skip define Prevent overwriting') + return true; + }, + }); + + Object.keys(provider as object).forEach((key) => { + ((window as any)[property] ?? {})[key] = (proxyProvider as any)[key]; + }); + + Object.defineProperty(window, property, { + configurable: false, // prevent redefined + get() { + return proxyProvider; + }, + set(val) { + // skip set + }, + }); +} From 1858b3d44d8adc3903cbb120e63bf1ee5262e08c Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 30 Jan 2023 10:44:04 +0800 Subject: [PATCH 2/3] fix: connect dapp --- .../src/ProviderCardano.ts | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts b/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts index c43fc721..6a807762 100644 --- a/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts +++ b/packages/providers/onekey-cardano-provider/src/ProviderCardano.ts @@ -1,3 +1,6 @@ +/* eslint-disable @typescript-eslint/no-unsafe-member-access */ +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ + import { ProviderBase } from '@onekeyfe/cross-inpage-provider-core' import { ProviderCardanoBase } from './ProviderCardanoBase' import { IInpageProviderConfig } from '@onekeyfe/cross-inpage-provider-core'; @@ -8,6 +11,8 @@ import { Cbor, Bytes, Cip30DataSignature, Cip30Wallet, NetworkId, Paginate, Wall import * as TypeUtils from './type-utils' +export const NAMI_TARGET = 'nami-wallet'; + export type CardanoRequest = WalletApi & { connect: () => Promise<{ account: string }> // override the type of the request method @@ -187,7 +192,13 @@ class ProviderCardano extends ProviderCardanoBase implements IProviderCardano { signData: (addr: Cbor, payload: Bytes) => this.signData(addr, payload), - submitTx: (tx: Cbor) => this.submitTx(tx) + submitTx: (tx: Cbor) => this.submitTx(tx), + + experimental: { + on: (eventName: string, callback: (detail: any) => void) => this.namiOn(eventName, callback), + off: () => this.namiOff(), + getCollateral: () => this.getCollateral(), + }, } if (!this.account) { @@ -285,6 +296,26 @@ class ProviderCardano extends ProviderCardanoBase implements IProviderCardano { params: tx }) } + + /** + * @param {string} eventName + * @param {Function} callback + */ + namiOn(eventName: string, callback: (detail: any) => void) { + const handler = (event: any) => callback(event.detail); + + // @ts-ignore + const events = window.cardano.nami._events[eventName] || []; + + // @ts-ignore + window.cardano.nami._events[eventName] = [...events, [callback, handler]]; + + window.addEventListener(`${NAMI_TARGET}${eventName}`, handler); + } + + namiOff() { + // empty + } } export {ProviderCardano} From 976f570d9ed34fc3ba9c203161a0e3a5bf734e8a Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 30 Jan 2023 10:46:41 +0800 Subject: [PATCH 3/3] chore: update version --- packages/core/package.json | 8 +++--- packages/core/src/versionInfo.ts | 2 +- .../desktop-bridge-injected/package.json | 6 ++--- packages/empty/package.json | 2 +- packages/errors/package.json | 2 +- packages/events/package.json | 2 +- packages/example/package.json | 22 ++++++++-------- .../extension-bridge-hosted/package.json | 6 ++--- .../extension-bridge-injected/package.json | 6 ++--- packages/injected/package.json | 14 +++++----- .../native-bridge-injected/package.json | 6 ++--- .../inpage-providers-hub/package.json | 26 +++++++++---------- .../onekey-aptos-provider/package.json | 10 +++---- .../onekey-cardano-provider/package.json | 12 ++++----- .../onekey-conflux-provider/package.json | 10 +++---- .../onekey-cosmos-provider/package.json | 10 +++---- .../onekey-eth-provider/package.json | 10 +++---- .../onekey-near-provider/package.json | 10 +++---- .../onekey-private-provider/package.json | 10 +++---- .../onekey-solana-provider/package.json | 10 +++---- .../onekey-starcoin-provider/package.json | 10 +++---- .../onekey-sui-provider/package.json | 10 +++---- .../onekey-tron-provider/package.json | 10 +++---- packages/types/package.json | 2 +- packages/webview/package.json | 6 ++--- 25 files changed, 111 insertions(+), 111 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index e96101f3..47293308 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-core", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,9 +29,9 @@ "build-version-info": "node ./scripts/buildVersionInfo.js" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-events": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-events": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", "events": "^3.3.0", "lodash": "^4.17.21", "ms": "^2.1.3" diff --git a/packages/core/src/versionInfo.ts b/packages/core/src/versionInfo.ts index 876d51ba..d3c59ae1 100644 --- a/packages/core/src/versionInfo.ts +++ b/packages/core/src/versionInfo.ts @@ -1,5 +1,5 @@ -const version = '1.1.17'; +const version = '1.1.18'; const versionBuild = '2020-0101-1'; export default { diff --git a/packages/desktop/desktop-bridge-injected/package.json b/packages/desktop/desktop-bridge-injected/package.json index cd71d530..a82ed488 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -34,7 +34,7 @@ "electron": "^17.2.0" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19" } } diff --git a/packages/empty/package.json b/packages/empty/package.json index a23d4ac5..5932afd3 100644 --- a/packages/empty/package.json +++ b/packages/empty/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-empty", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/errors/package.json b/packages/errors/package.json index c1f9399b..ad6f8e0a 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-errors", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/events/package.json b/packages/events/package.json index 73292567..6a01757c 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-events", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/example/package.json b/packages/example/package.json index 072e7db1..15efdae4 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-example", - "version": "1.1.18", + "version": "1.1.19", "private": true, "scripts": { "postinstall": "patch-package", @@ -17,16 +17,16 @@ "@metamask/onboarding": "^1.0.1", "@mysten/wallet-adapter-all-wallets": "^0.3.3", "@mysten/wallet-adapter-react": "^8.0.1", - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/onekey-aptos-provider": "1.1.18", - "@onekeyfe/onekey-cardano-provider": "1.1.18", - "@onekeyfe/onekey-conflux-provider": "1.1.18", - "@onekeyfe/onekey-cosmos-provider": "1.1.18", - "@onekeyfe/onekey-near-provider": "1.1.18", - "@onekeyfe/onekey-solana-provider": "1.1.18", - "@onekeyfe/onekey-sui-provider": "1.1.18", - "@onekeyfe/onekey-tron-provider": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/onekey-aptos-provider": "1.1.19", + "@onekeyfe/onekey-cardano-provider": "1.1.19", + "@onekeyfe/onekey-conflux-provider": "1.1.19", + "@onekeyfe/onekey-cosmos-provider": "1.1.19", + "@onekeyfe/onekey-near-provider": "1.1.19", + "@onekeyfe/onekey-solana-provider": "1.1.19", + "@onekeyfe/onekey-sui-provider": "1.1.19", + "@onekeyfe/onekey-tron-provider": "1.1.19", "@solana/web3.js": "^1.41.3", "@starcoin/starcoin": "^2.1.6", "@starcoin/starmask-onboarding": "^1.0.0", diff --git a/packages/extension/extension-bridge-hosted/package.json b/packages/extension/extension-bridge-hosted/package.json index 27f1784d..67c25675 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19" } } diff --git a/packages/extension/extension-bridge-injected/package.json b/packages/extension/extension-bridge-injected/package.json index aa8c960c..7f28f892 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19" } } diff --git a/packages/injected/package.json b/packages/injected/package.json index ec509f6a..caaf4ee9 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-injected", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -42,12 +42,12 @@ "electron": "*" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/desktop-bridge-injected": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", - "@onekeyfe/inpage-providers-hub": "1.1.18", - "@onekeyfe/native-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/desktop-bridge-injected": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", + "@onekeyfe/inpage-providers-hub": "1.1.19", + "@onekeyfe/native-bridge-injected": "1.1.19", "buffer": "^6.0.3" } } diff --git a/packages/native/native-bridge-injected/package.json b/packages/native/native-bridge-injected/package.json index 3c818201..f7908401 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19" } } diff --git a/packages/providers/inpage-providers-hub/package.json b/packages/providers/inpage-providers-hub/package.json index ffc8d8c6..0c78e791 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,18 +28,18 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/onekey-aptos-provider": "1.1.18", - "@onekeyfe/onekey-cardano-provider": "1.1.18", - "@onekeyfe/onekey-conflux-provider": "1.1.18", - "@onekeyfe/onekey-cosmos-provider": "1.1.18", - "@onekeyfe/onekey-eth-provider": "1.1.18", - "@onekeyfe/onekey-private-provider": "1.1.18", - "@onekeyfe/onekey-solana-provider": "1.1.18", - "@onekeyfe/onekey-starcoin-provider": "1.1.18", - "@onekeyfe/onekey-sui-provider": "1.1.18", - "@onekeyfe/onekey-tron-provider": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/onekey-aptos-provider": "1.1.19", + "@onekeyfe/onekey-cardano-provider": "1.1.19", + "@onekeyfe/onekey-conflux-provider": "1.1.19", + "@onekeyfe/onekey-cosmos-provider": "1.1.19", + "@onekeyfe/onekey-eth-provider": "1.1.19", + "@onekeyfe/onekey-private-provider": "1.1.19", + "@onekeyfe/onekey-solana-provider": "1.1.19", + "@onekeyfe/onekey-starcoin-provider": "1.1.19", + "@onekeyfe/onekey-sui-provider": "1.1.19", + "@onekeyfe/onekey-tron-provider": "1.1.19", "web3": "^1.7.3" } } diff --git a/packages/providers/onekey-aptos-provider/package.json b/packages/providers/onekey-aptos-provider/package.json index b324619d..70b5ba43 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "aptos": "^1.3.17", "eth-rpc-errors": "^4.0.3" } diff --git a/packages/providers/onekey-cardano-provider/package.json b/packages/providers/onekey-cardano-provider/package.json index 7b021417..79eddc3f 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider", "cardano" @@ -29,10 +29,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", - "@onekeyfe/onekey-cardano-provider": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", + "@onekeyfe/onekey-cardano-provider": "1.1.19" } } diff --git a/packages/providers/onekey-conflux-provider/package.json b/packages/providers/onekey-conflux-provider/package.json index 9cf9c357..7fe145cb 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19" } } diff --git a/packages/providers/onekey-cosmos-provider/package.json b/packages/providers/onekey-cosmos-provider/package.json index db1a060e..f662e847 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.1.4", - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "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 db8cd4bc..8ad3c7f8 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "eth-rpc-errors": "^4.0.3" } } diff --git a/packages/providers/onekey-near-provider/package.json b/packages/providers/onekey-near-provider/package.json index a4616415..39014902 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -35,10 +35,10 @@ "near-api-js": "^0.44.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "borsh": "^0.6.0", "depd": "^2.0.0", "tweetnacl": "^1.0.3" diff --git a/packages/providers/onekey-private-provider/package.json b/packages/providers/onekey-private-provider/package.json index fb0d34f0..89551018 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18" + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19" } } diff --git a/packages/providers/onekey-solana-provider/package.json b/packages/providers/onekey-solana-provider/package.json index 02c54955..248e6fec 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider", "solona" @@ -29,10 +29,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "@solana/web3.js": "^1.41.3", "bs58": "^5.0.0" }, diff --git a/packages/providers/onekey-starcoin-provider/package.json b/packages/providers/onekey-starcoin-provider/package.json index ac5ce206..24374ce8 100644 --- a/packages/providers/onekey-starcoin-provider/package.json +++ b/packages/providers/onekey-starcoin-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-starcoin-provider", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "eth-rpc-errors": "^4.0.3" } } diff --git a/packages/providers/onekey-sui-provider/package.json b/packages/providers/onekey-sui-provider/package.json index a5c49860..d53b6ac8 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@mysten/wallet-standard": "^0.2.3", - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "eth-rpc-errors": "^4.0.3", "mitt": "^3.0.0" } diff --git a/packages/providers/onekey-tron-provider/package.json b/packages/providers/onekey-tron-provider/package.json index 78406838..b43f7f33 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": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-errors": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", - "@onekeyfe/extension-bridge-injected": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-errors": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", + "@onekeyfe/extension-bridge-injected": "1.1.19", "querystring": "^0.2.1", "tronweb": "^4.4.0" } diff --git a/packages/types/package.json b/packages/types/package.json index cac3eb64..8918c3e5 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-types", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/webview/package.json b/packages/webview/package.json index 46a71351..68e3f08b 100644 --- a/packages/webview/package.json +++ b/packages/webview/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cross-webview", - "version": "1.1.18", + "version": "1.1.19", "keywords": [ "cross-inpage-provider" ], @@ -34,8 +34,8 @@ "electron": "^17.2.0" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "1.1.18", - "@onekeyfe/cross-inpage-provider-types": "1.1.18", + "@onekeyfe/cross-inpage-provider-core": "1.1.19", + "@onekeyfe/cross-inpage-provider-types": "1.1.19", "react-native-webview": "^11.17.2" } }