diff --git a/packages/core/package.json b/packages/core/package.json index 061cd7a3..075cd100 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-core", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,9 +29,9 @@ "build-version-info": "node ./scripts/buildVersionInfo.js" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-events": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-events": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", "events": "^3.3.0", "lodash-es": "^4.17.21", "ms": "^2.1.3" diff --git a/packages/desktop/desktop-bridge-injected/package.json b/packages/desktop/desktop-bridge-injected/package.json index 5901dc48..1b04fa67 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -34,7 +34,7 @@ "electron": "^17.2.0" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23" } } diff --git a/packages/empty/package.json b/packages/empty/package.json index e5651f50..40c29da4 100644 --- a/packages/empty/package.json +++ b/packages/empty/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-empty", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/errors/package.json b/packages/errors/package.json index c55b4a33..31142f2f 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-errors", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/events/package.json b/packages/events/package.json index 6e3d3c3c..2785963d 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-events", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/example/components/ApiForm/ApiButton.tsx b/packages/example/components/ApiForm/ApiButton.tsx index e6b21e4d..9e3a5563 100644 --- a/packages/example/components/ApiForm/ApiButton.tsx +++ b/packages/example/components/ApiForm/ApiButton.tsx @@ -37,7 +37,9 @@ export const ApiButton = memo(({ field.name = label; }, []); + // eslint-disable-next-line react-hooks/exhaustive-deps const dependencyStates = availableDependencyFields?.map(fieldId => { + // eslint-disable-next-line react-hooks/rules-of-hooks const [field] = useAtom(store.fieldsAtom(fieldId)); return { id: fieldId, diff --git a/packages/example/components/ApiForm/ApiCombobox.tsx b/packages/example/components/ApiForm/ApiCombobox.tsx index e4a427b1..bf90d4f5 100644 --- a/packages/example/components/ApiForm/ApiCombobox.tsx +++ b/packages/example/components/ApiForm/ApiCombobox.tsx @@ -71,7 +71,7 @@ export const ApiCombobox = forwardRef(function useEffect(() => { if (onRequestOptions) { - onRequestOptions().then((options) => { + void onRequestOptions().then((options) => { setOptions(options); }); } diff --git a/packages/example/components/ApiForm/ApiForm.tsx b/packages/example/components/ApiForm/ApiForm.tsx index e53c742e..112faef0 100644 --- a/packages/example/components/ApiForm/ApiForm.tsx +++ b/packages/example/components/ApiForm/ApiForm.tsx @@ -64,6 +64,7 @@ export const ApiForm = forwardRef(function ApiForm( }, setField: (id: string, field: any) => { const oldField = store.scope.get(store.fieldsAtom(id)); + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument store.scope.set(store.fieldsAtom(id), { ...oldField, ...field diff --git a/packages/example/components/ApiForm/ApiSelector.tsx b/packages/example/components/ApiForm/ApiSelector.tsx index da1a46fa..bac3ebf2 100644 --- a/packages/example/components/ApiForm/ApiSelector.tsx +++ b/packages/example/components/ApiForm/ApiSelector.tsx @@ -73,7 +73,7 @@ export const ApiSelector = forwardRef(function useEffect(() => { if (onRequestOptions) { - onRequestOptions().then((options) => { + void onRequestOptions().then((options) => { setOptions(options); }); } diff --git a/packages/example/components/chains/conflux/example.tsx b/packages/example/components/chains/conflux/example.tsx index a8299f0a..7086285e 100644 --- a/packages/example/components/chains/conflux/example.tsx +++ b/packages/example/components/chains/conflux/example.tsx @@ -39,7 +39,7 @@ const WalletWatchAsset = ({ chainId }: { chainId: string | undefined }) => { useEffect(() => { // https://testingcf.jsdelivr.net/gh/conflux-fans/token-list@master/cfx.fluent.json - axios.get('https://testingcf.jsdelivr.net/gh/conflux-fans/token-list@master/cfx.fluent.json').then((res) => { + void axios.get('https://testingcf.jsdelivr.net/gh/conflux-fans/token-list@master/cfx.fluent.json').then((res) => { const tokens = res.data.tokens as { chainId: number; address: string; diff --git a/packages/example/components/chains/suiStandard/example.tsx b/packages/example/components/chains/suiStandard/example.tsx index 3a2520e6..ded3c5b1 100644 --- a/packages/example/components/chains/suiStandard/example.tsx +++ b/packages/example/components/chains/suiStandard/example.tsx @@ -70,13 +70,13 @@ function AssetInfoView({ viewRef, client }: { viewRef: ApiFormRef | undefined, c useEffect(() => { if (viewRef) { - (async () => { + void (async () => { const coinInfo = await client.getCoinMetadata({ coinType: field.value }); viewRef?.setValue('assetInfo', `name: ${coinInfo?.name}, symbol: ${coinInfo?.symbol}, decimals: ${coinInfo?.decimals}`); viewRef?.setValue('assetDecimals', coinInfo?.decimals); })(); } - }, [field.value]); + }, [client, field.value, viewRef]); return <> } @@ -110,7 +110,7 @@ function TransferForm() { useEffect(() => { if (currentAccount && currentAccount?.address) { apiFromRef.current?.setValue('to', currentAccount.address); - getCoins().then((coinTypes) => { + void getCoins().then((coinTypes) => { const options = Array.from(coinTypes.keys()).map((key) => { return { label: key, @@ -136,6 +136,7 @@ function TransferForm() { const transfer = new TransactionBlock(); + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument const amountBN = new BigNumber(amount).shiftedBy(decimals); const amountBNString = amountBN.toString(); console.log('amountBNString', amountBNString); diff --git a/packages/example/components/chains/tron/example.tsx b/packages/example/components/chains/tron/example.tsx index 5e55212e..6645dc34 100644 --- a/packages/example/components/chains/tron/example.tsx +++ b/packages/example/components/chains/tron/example.tsx @@ -22,7 +22,7 @@ const WalletWatchAsset = memo(() => { const { provider } = useWallet(); useEffect(() => { - okLinkRequest.getTokenList('TRON', 'TRC20').then((tokens) => { + void okLinkRequest.getTokenList('TRON', 'TRC20').then((tokens) => { const tokenOptions = tokens.map((token) => ({ value: token.tokenContractAddress, label: `${token.token} - ${token.tokenContractAddress}`, diff --git a/packages/example/components/context/ContextFactory.tsx b/packages/example/components/context/ContextFactory.tsx index bc312b43..d54ce741 100644 --- a/packages/example/components/context/ContextFactory.tsx +++ b/packages/example/components/context/ContextFactory.tsx @@ -68,6 +68,7 @@ export function createStore(initialState: T) { const useFieldValue = (field: K) => { const Context = getFieldContext(field); + // eslint-disable-next-line @typescript-eslint/no-unsafe-return return useContext(Context); }; diff --git a/packages/example/components/ui/command.tsx b/packages/example/components/ui/command.tsx index 62000ba0..c50754c5 100644 --- a/packages/example/components/ui/command.tsx +++ b/packages/example/components/ui/command.tsx @@ -21,7 +21,7 @@ const Command = React.forwardRef< )) Command.displayName = CommandPrimitive.displayName -interface CommandDialogProps extends DialogProps {} +type CommandDialogProps = DialogProps const CommandDialog = ({ children, ...props }: CommandDialogProps) => { return ( diff --git a/packages/example/package.json b/packages/example/package.json index 2a98481e..23caf1c7 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-example", - "version": "2.1.22", + "version": "2.1.23", "private": true, "scripts": { "postinstall": "patch-package", @@ -28,17 +28,17 @@ "@metamask/onboarding": "^1.0.1", "@mizuwallet-sdk/core": "^1.4.0", "@mysten/dapp-kit": "0.13.2", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/onekey-aptos-provider": "2.1.22", - "@onekeyfe/onekey-cardano-provider": "2.1.22", - "@onekeyfe/onekey-conflux-provider": "2.1.22", - "@onekeyfe/onekey-cosmos-provider": "2.1.22", - "@onekeyfe/onekey-near-provider": "2.1.22", - "@onekeyfe/onekey-solana-provider": "2.1.22", - "@onekeyfe/onekey-sui-provider": "2.1.22", - "@onekeyfe/onekey-tron-provider": "2.1.22", - "@onekeyfe/onekey-webln-provider": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/onekey-aptos-provider": "2.1.23", + "@onekeyfe/onekey-cardano-provider": "2.1.23", + "@onekeyfe/onekey-conflux-provider": "2.1.23", + "@onekeyfe/onekey-cosmos-provider": "2.1.23", + "@onekeyfe/onekey-near-provider": "2.1.23", + "@onekeyfe/onekey-solana-provider": "2.1.23", + "@onekeyfe/onekey-sui-provider": "2.1.23", + "@onekeyfe/onekey-tron-provider": "2.1.23", + "@onekeyfe/onekey-webln-provider": "2.1.23", "@polkadot/api": "^9.11.3", "@polkadot/extension-dapp": "^0.47.5", "@radix-ui/react-checkbox": "^1.1.2", diff --git a/packages/extension/extension-bridge-hosted/package.json b/packages/extension/extension-bridge-hosted/package.json index e2819d9e..69f7bd3a 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,8 +28,8 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/extension/extension-bridge-injected/package.json b/packages/extension/extension-bridge-injected/package.json index 6edc62de..a8ca9049 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23" } } diff --git a/packages/injected/package.json b/packages/injected/package.json index c170699a..fbdfc3a6 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-injected", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -42,12 +42,12 @@ "electron": "*" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/desktop-bridge-injected": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", - "@onekeyfe/inpage-providers-hub": "2.1.22", - "@onekeyfe/native-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/desktop-bridge-injected": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", + "@onekeyfe/inpage-providers-hub": "2.1.23", + "@onekeyfe/native-bridge-injected": "2.1.23", "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 a941ad0b..7da54e95 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23" } } diff --git a/packages/providers/inpage-providers-hub/package.json b/packages/providers/inpage-providers-hub/package.json index 76b4a9e6..67ce2f81 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -30,26 +30,26 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/onekey-algo-provider": "2.1.22", - "@onekeyfe/onekey-alph-provider": "2.1.22", - "@onekeyfe/onekey-aptos-provider": "2.1.22", - "@onekeyfe/onekey-bfc-provider": "2.1.22", - "@onekeyfe/onekey-btc-provider": "2.1.22", - "@onekeyfe/onekey-cardano-provider": "2.1.22", - "@onekeyfe/onekey-conflux-provider": "2.1.22", - "@onekeyfe/onekey-cosmos-provider": "2.1.22", - "@onekeyfe/onekey-eth-provider": "2.1.22", - "@onekeyfe/onekey-nostr-provider": "2.1.22", - "@onekeyfe/onekey-polkadot-provider": "2.1.22", - "@onekeyfe/onekey-private-provider": "2.1.22", - "@onekeyfe/onekey-scdo-provider": "2.1.22", - "@onekeyfe/onekey-solana-provider": "2.1.22", - "@onekeyfe/onekey-sui-provider": "2.1.22", - "@onekeyfe/onekey-ton-provider": "2.1.22", - "@onekeyfe/onekey-tron-provider": "2.1.22", - "@onekeyfe/onekey-webln-provider": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/onekey-algo-provider": "2.1.23", + "@onekeyfe/onekey-alph-provider": "2.1.23", + "@onekeyfe/onekey-aptos-provider": "2.1.23", + "@onekeyfe/onekey-bfc-provider": "2.1.23", + "@onekeyfe/onekey-btc-provider": "2.1.23", + "@onekeyfe/onekey-cardano-provider": "2.1.23", + "@onekeyfe/onekey-conflux-provider": "2.1.23", + "@onekeyfe/onekey-cosmos-provider": "2.1.23", + "@onekeyfe/onekey-eth-provider": "2.1.23", + "@onekeyfe/onekey-nostr-provider": "2.1.23", + "@onekeyfe/onekey-polkadot-provider": "2.1.23", + "@onekeyfe/onekey-private-provider": "2.1.23", + "@onekeyfe/onekey-scdo-provider": "2.1.23", + "@onekeyfe/onekey-solana-provider": "2.1.23", + "@onekeyfe/onekey-sui-provider": "2.1.23", + "@onekeyfe/onekey-ton-provider": "2.1.23", + "@onekeyfe/onekey-tron-provider": "2.1.23", + "@onekeyfe/onekey-webln-provider": "2.1.23", "web3": "^1.7.3" }, "devDependencies": { diff --git a/packages/providers/onekey-algo-provider/package.json b/packages/providers/onekey-algo-provider/package.json index 6eb2abd8..36658ca5 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-alph-provider/package.json b/packages/providers/onekey-alph-provider/package.json index 4bd1c545..a0fc442c 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.22", + "version": "2.1.23", "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.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-aptos-provider/package.json b/packages/providers/onekey-aptos-provider/package.json index cb379e42..4cddc46c 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@aptos-labs/wallet-standard": "^0.2.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "@wallet-standard/core": "1.0.3", "eth-rpc-errors": "^4.0.3" }, diff --git a/packages/providers/onekey-bfc-provider/package.json b/packages/providers/onekey-bfc-provider/package.json index 6578166b..95a98668 100644 --- a/packages/providers/onekey-bfc-provider/package.json +++ b/packages/providers/onekey-bfc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-bfc-provider", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@benfen/bfc.js": "0.2.7", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "eth-rpc-errors": "^4.0.3", "mitt": "^3.0.0" }, diff --git a/packages/providers/onekey-btc-provider/package.json b/packages/providers/onekey-btc-provider/package.json index f08b2c7e..3f62b360 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-cardano-provider/package.json b/packages/providers/onekey-cardano-provider/package.json index 00ac4955..d0697fab 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider", "cardano" @@ -29,9 +29,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-conflux-provider/package.json b/packages/providers/onekey-conflux-provider/package.json index 87594250..1629a7e8 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-cosmos-provider/package.json b/packages/providers/onekey-cosmos-provider/package.json index 03cdfa3e..478e942d 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "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 ad289c22..45e43447 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "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 93366c89..48b771bf 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -35,10 +35,10 @@ "near-api-js": "^0.44.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "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 1089391e..a86a2225 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-polkadot-provider/package.json b/packages/providers/onekey-polkadot-provider/package.json index e9956118..fc811c7c 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "@polkadot/extension-inject": "^0.46.3", "eth-rpc-errors": "^4.0.3", "long": "^5.2.1", diff --git a/packages/providers/onekey-private-provider/package.json b/packages/providers/onekey-private-provider/package.json index c5050dea..f79e4bb5 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-scdo-provider/package.json b/packages/providers/onekey-scdo-provider/package.json index 8cebbcb1..85a407b6 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/providers/onekey-solana-provider/package.json b/packages/providers/onekey-solana-provider/package.json index 12968e2f..406f7d23 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider", "solona" @@ -29,10 +29,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "@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 12de72af..cbd97d43 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@mysten/wallet-standard": "^0.7.2", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "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 8f93fd9b..cabfb21a 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "@tonconnect/protocol": "^2.2.6" } } diff --git a/packages/providers/onekey-ton-provider/src/OnekeyTonProvider.ts b/packages/providers/onekey-ton-provider/src/OnekeyTonProvider.ts index 10073a16..61d40424 100644 --- a/packages/providers/onekey-ton-provider/src/OnekeyTonProvider.ts +++ b/packages/providers/onekey-ton-provider/src/OnekeyTonProvider.ts @@ -116,9 +116,9 @@ export class ProviderTon extends ProviderTonBase implements IProviderTon { deviceInfo: DeviceInfo = { platform: this._getPlatform(), appName: 'onekey', - appVersion: '0.0.0', + appVersion: this.version, maxProtocolVersion: 2, - features: [{ name: 'SendTransaction', maxMessages: 4 }, { name: 'SignData' }], + features: [{ name: 'SendTransaction', maxMessages: 4 }], }; walletInfo?: WalletInfo = { name: 'OneKey', diff --git a/packages/providers/onekey-tron-provider/package.json b/packages/providers/onekey-tron-provider/package.json index 1e6e0be4..e3eecbf5 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/secp256k1": "1.7.1", - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22", + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23", "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 02caa29c..d96e59cb 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.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-errors": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22", - "@onekeyfe/extension-bridge-injected": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-errors": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23", + "@onekeyfe/extension-bridge-injected": "2.1.23" } } diff --git a/packages/types/package.json b/packages/types/package.json index a9fb34d4..d0ffbeae 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-types", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/webview/package.json b/packages/webview/package.json index 69db90b3..8d391240 100644 --- a/packages/webview/package.json +++ b/packages/webview/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cross-webview", - "version": "2.1.22", + "version": "2.1.23", "keywords": [ "cross-inpage-provider" ], @@ -36,7 +36,7 @@ "react-native-webview": "^11.17.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.22", - "@onekeyfe/cross-inpage-provider-types": "2.1.22" + "@onekeyfe/cross-inpage-provider-core": "2.1.23", + "@onekeyfe/cross-inpage-provider-types": "2.1.23" } }