diff --git a/packages/core/package.json b/packages/core/package.json index 1ed85909..52bc66fe 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-core", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,9 +29,9 @@ "build-version-info": "node ./scripts/buildVersionInfo.js" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-events": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-events": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", "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 23f2e988..51e84615 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -34,7 +34,7 @@ "electron": "^17.2.0" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19" } } diff --git a/packages/empty/package.json b/packages/empty/package.json index 12cdf2da..ac2df5f8 100644 --- a/packages/empty/package.json +++ b/packages/empty/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-empty", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/errors/package.json b/packages/errors/package.json index 34ae9045..c897a4ff 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-errors", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/errors/src/index.ts b/packages/errors/src/index.ts index f2e4bbab..2ed0f5ba 100644 --- a/packages/errors/src/index.ts +++ b/packages/errors/src/index.ts @@ -1,7 +1,5 @@ import { Web3RpcError, Web3ProviderError } from './classes'; -import { - serializeError, getMessageFromCode, -} from './utils'; +import { serializeError, getMessageFromCode } from './utils'; import { web3Errors } from './errors'; import { errorCodes } from './error-constants'; diff --git a/packages/events/package.json b/packages/events/package.json index 9763e1f0..f2d63cc4 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-events", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/example/chains.ts b/packages/example/chains.ts index 259459f8..fe0aff19 100644 --- a/packages/example/chains.ts +++ b/packages/example/chains.ts @@ -51,13 +51,19 @@ export const registeredChains: IChainInfo[] = [ }, { id: uuid.v4(), - name: 'Aptos', + name: 'Aptos Standard', + href: '/aptosStandard', + icon: 'https://uni.onekey-asset.com/static/chain/apt.png', + }, + { + id: uuid.v4(), + name: 'Aptos (Legacy)', href: '/aptos', icon: 'https://uni.onekey-asset.com/static/chain/apt.png', }, { id: uuid.v4(), - name: 'Aptos Martian', + name: 'Aptos Martian (Legacy)', href: '/aptosMartian', icon: 'https://uni.onekey-asset.com/static/chain/apt.png', }, diff --git a/packages/example/components/chains/aptos/example.tsx b/packages/example/components/chains/aptos/example.tsx index d14e6b1c..3da490c5 100644 --- a/packages/example/components/chains/aptos/example.tsx +++ b/packages/example/components/chains/aptos/example.tsx @@ -61,6 +61,7 @@ export default function Example() { chainId, }; }; + useEffect(() => { if (!provider) return; @@ -209,7 +210,7 @@ export default function Example() { method: 'POST', url: 'https://api.mainnet.aptoslabs.com/v1/transactions', headers: { 'Content-Type': 'application/x.aptos.signed_transaction+bcs' }, - data: buffer + data: buffer, }; const res = await axios.request(options); diff --git a/packages/example/components/chains/aptosStandard/dapps.config.ts b/packages/example/components/chains/aptosStandard/dapps.config.ts new file mode 100644 index 00000000..139635a4 --- /dev/null +++ b/packages/example/components/chains/aptosStandard/dapps.config.ts @@ -0,0 +1,14 @@ +export const dapps = [ + { + name: 'SEAM', + url: 'https://app.seam.money/', + }, + { + name: 'Aptos Names', + url: 'https://www.aptosnames.com/', + }, + { + name: 'Liquid Swap', + url: 'https://liquidswap.com/#/', + }, +]; diff --git a/packages/example/components/chains/aptosStandard/example.tsx b/packages/example/components/chains/aptosStandard/example.tsx new file mode 100644 index 00000000..15ac0992 --- /dev/null +++ b/packages/example/components/chains/aptosStandard/example.tsx @@ -0,0 +1,408 @@ +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ +import { dapps } from './dapps.config'; +import ConnectButton from '../../../components/connect/ConnectButton'; +import { useEffect, useRef, useCallback } from 'react'; +import { hexToBytes } from '@noble/hashes/utils'; +import { SignMessageResponse } from './types'; +import { ApiPayload, ApiGroup } from '../../ApiActuator'; +import { useWallet } from '../../../components/connect/WalletContext'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import type { IKnownWallet } from '../../../components/connect/types'; +import DappList from '../../../components/DAppList'; +import params from './params'; +import nacl from 'tweetnacl'; +import { stripHexPrefix } from 'ethereumjs-util'; +import { toast } from '../../ui/use-toast'; +import { + Network, + Aptos, + AptosConfig, + parseTypeTag, + TypeTagAddress, + TypeTagU64, + SimpleTransaction, + Deserializer, + Ed25519PublicKey, + Ed25519Signature, + AccountAuthenticatorEd25519, +} from '@aptos-labs/ts-sdk'; +import { + WalletReadyState, + AptosStandardSupportedWallet, + SignMessagePayload, +} from '@aptos-labs/wallet-adapter-core'; +import { useWallet as useStandardWallet } from '@aptos-labs/wallet-adapter-react'; + +import { AptosWalletAdapterProvider, Wallet } from '@aptos-labs/wallet-adapter-react'; +import InfoLayout from '../../InfoLayout'; +import { jsonToUint8Array } from '../../../lib/uint8array'; +import { get } from 'lodash'; + +function Example() { + const { + connected, + account, + network, + signAndSubmitTransaction, + signMessageAndVerify, + signMessage, + signTransaction, + submitTransaction, + } = useStandardWallet(); + + const aptosClient = new Aptos( + new AptosConfig({ + network: Network.MAINNET, + }), + ); + + return ( + <> + + { + return Promise.resolve(network); + }} + /> + { + return Promise.resolve(connected); + }} + /> + { + return Promise.resolve(account); + }} + /> + { + return Promise.resolve(network); + }} + /> + + + + { + const obj = JSON.parse(request) as SignMessagePayload; + const res = await signMessage(obj); + return JSON.stringify(res); + }} + onValidate={(request: string, result: string) => { + const { fullMessage, signature } = JSON.parse(result) as SignMessageResponse; + + const signatureU8 = jsonToUint8Array(get(signature, 'data.data')); + + const isValidSignature = nacl.sign.detached.verify( + Buffer.from(fullMessage), + signatureU8, + hexToBytes(stripHexPrefix(account?.publicKey as string)), + ); + + return Promise.resolve(isValidSignature.toString()); + }} + /> + { + const obj = JSON.parse(request) as SignMessagePayload; + const res = await signMessageAndVerify(obj); + return JSON.stringify(res); + }} + /> + { + const obj = JSON.parse(request); + const { transactionOrPayload, asFeePayer, options } = obj; + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + const res = await signTransaction(transactionOrPayload, asFeePayer, options); + return res; + }} + /> + { + const obj = JSON.parse(request); + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + const res = await signAndSubmitTransaction(obj); + return JSON.stringify(res); + }} + /> + + + + { + const { recipient, amount } = JSON.parse(request); + const res = await aptosClient.coin.transferCoinTransaction({ + sender: account?.address ?? '', + recipient, + amount, + }); + + return { + txn: res.bcsToHex().toStringWithoutPrefix(), + result: await signTransaction(res), + }; + }} + onValidate={async (request: string, result: string) => { + const { txn, result: signedTxn } = JSON.parse(result); + const publicKey = jsonToUint8Array(get(signedTxn, 'public_key.key.data')); + const signature = jsonToUint8Array(get(signedTxn, 'signature.data.data')); + + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + const simpleTxn = SimpleTransaction.deserialize(new Deserializer(hexToBytes(txn))); + + const res = await submitTransaction({ + transaction: simpleTxn, + senderAuthenticator: new AccountAuthenticatorEd25519( + new Ed25519PublicKey(publicKey), + new Ed25519Signature(signature), + ), + }); + + return Promise.resolve(JSON.stringify(res)); + }} + /> + + { + const { recipient, amount, coinType } = JSON.parse(request); + const res = await aptosClient.coin.transferCoinTransaction({ + sender: account?.address ?? '', + recipient, + amount, + coinType, + }); + + return { + txn: res.bcsToHex().toStringWithoutPrefix(), + result: await signTransaction(res), + }; + }} + onValidate={async (request: string, result: string) => { + const { txn, result: signedTxn } = JSON.parse(result); + const publicKey = jsonToUint8Array(get(signedTxn, 'public_key.key.data')); + const signature = jsonToUint8Array(get(signedTxn, 'signature.data.data')); + + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + const simpleTxn = SimpleTransaction.deserialize(new Deserializer(hexToBytes(txn))); + + const res = await submitTransaction({ + transaction: simpleTxn, + senderAuthenticator: new AccountAuthenticatorEd25519( + new Ed25519PublicKey(publicKey), + new Ed25519Signature(signature), + ), + }); + + return Promise.resolve(JSON.stringify(res)); + }} + /> + + { + const { recipient, amount, coinType } = JSON.parse(request); + try { + const res = await aptosClient.transaction.build.simple({ + sender: account?.address ?? '', + data: { + function: '0x1::primary_fungible_store::transfer', + typeArguments: ['0x1::fungible_asset::Metadata'], + functionArguments: [coinType, recipient, amount], + abi: { + typeParameters: [{ constraints: [] }], + parameters: [ + parseTypeTag('0x1::object::Object'), + new TypeTagAddress(), + new TypeTagU64(), + ], + }, + }, + }); + return { + txn: res.bcsToHex().toStringWithoutPrefix(), + result: await signTransaction(res), + }; + } catch (error) { + console.log(error); + } + }} + onValidate={async (request: string, result: string) => { + const { txn, result: signedTxn } = JSON.parse(result); + const publicKey = jsonToUint8Array(get(signedTxn, 'public_key.key.data')); + const signature = jsonToUint8Array(get(signedTxn, 'signature.data.data')); + + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + const simpleTxn = SimpleTransaction.deserialize(new Deserializer(hexToBytes(txn))); + + const res = await submitTransaction({ + transaction: simpleTxn, + senderAuthenticator: new AccountAuthenticatorEd25519( + new Ed25519PublicKey(publicKey), + new Ed25519Signature(signature), + ), + }); + + return Promise.resolve(JSON.stringify(res)); + }} + /> + + + + + ); +} + +function AptosConnectButton() { + const { connected, wallets, account, network, connect, disconnect } = useStandardWallet(); + + const { setProvider } = useWallet(); + + const walletsRef = useRef<(Wallet | AptosStandardSupportedWallet)[]>([]); + walletsRef.current = wallets.filter((wallet) => wallet.readyState === WalletReadyState.Installed); + + const onConnectWallet = useCallback( + async (selectedWallet: IKnownWallet) => { + const wallet = walletsRef.current.find((w) => w.name === selectedWallet.id); + if (!wallet) { + return Promise.reject('Wallet not found'); + } + + connect(wallet.name); + + return { + provider: undefined, + }; + }, + [connect], + ); + + useEffect(() => { + console.log('account changed', account); + setProvider(account); + }, [account, setProvider]); + useEffect(() => { + console.log('network changed', network); + }, [network]); + + return ( + <> + + fetchWallets={() => { + return Promise.resolve( + walletsRef.current.map((wallet) => { + return { + id: wallet.name, + name: wallet.name, + tags: [wallet.isAIP62Standard ? 'AIP62' : ''], + }; + }), + ); + }} + onConnect={onConnectWallet} + onDisconnect={() => void disconnect()} + /> + + + {account &&

Account:{account?.address ?? ''}

} + {account &&

PubKey:{account?.publicKey ?? ''}

} + {account &&

minKeysRequired:{account?.minKeysRequired ?? ''}

} + {account &&

ansName:{account?.ansName ?? ''}

} + {network &&

chainId:{network?.chainId ?? ''}

} + {network &&

networkName:{network?.name ?? ''}

} + {network &&

networkUrl:{network?.url ?? ''}

} + {account &&

Status :{connected ? 'Connected' : 'Disconnected'}

} +
+ + ); +} + +const queryClient = new QueryClient(); + +export default function App() { + return ( + + { + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + console.log('error', error); + }} + > + + + + + ); +} diff --git a/packages/example/components/chains/aptosStandard/params.ts b/packages/example/components/chains/aptosStandard/params.ts new file mode 100644 index 00000000..8f293d8e --- /dev/null +++ b/packages/example/components/chains/aptosStandard/params.ts @@ -0,0 +1,137 @@ +import { AccountAddress, U256, U8 } from '@aptos-labs/ts-sdk'; +import { isEmpty } from 'lodash'; + +export default { + signMessage: [ + { + id: 'signMessage', + name: 'signMessage', + value: JSON.stringify({ + address: false, + application: true, + chainId: true, + message: 'This is a sample message', + nonce: 12345, + }), + }, + ], + signTransaction: (address: string) => [ + { + id: 'signTransaction-native', + name: 'transfer native coin', + value: JSON.stringify({ + transactionOrPayload: { + type: 'entry_function_payload', + function: '0x1::coin::transfer', + type_arguments: ['0x1::aptos_coin::AptosCoin'], + arguments: [address, '100000'], + }, + }), + }, + { + id: 'signTransaction-native-options', + name: 'transfer native coin - options', + value: JSON.stringify({ + transactionOrPayload: { + type: 'entry_function_payload', + function: '0x1::coin::transfer', + type_arguments: ['0x1::aptos_coin::AptosCoin'], + arguments: [address, '100000'], + }, + options: { + maxGasAmount: 1000000, + gasUnitPrice: 1000000, + }, + }), + }, + { + id: 'signTransaction-usdc-legacy', + name: 'transfer usdc coin (legacy)', + value: JSON.stringify({ + transactionOrPayload: { + type: 'entry_function_payload', + function: '0x1::coin::transfer', + type_arguments: [ + '0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC', + ], + arguments: [address, 100000], + }, + }), + }, + { + id: 'signTransaction-usdc-fa', + name: 'transfer usdc coin', + value: JSON.stringify({ + transactionOrPayload: { + type: 'entry_function_payload', + function: '0x1::primary_fungible_store::transfer', + type_arguments: ['0x1::fungible_asset::Metadata'], + arguments: [ + '0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b', + address, + 100000, + ], + }, + }), + }, + ], + signAndSubmitTransaction: (address: string) => [ + { + id: 'transaction-native-pure', + name: 'transfer native coin pure', + value: JSON.stringify({ + sender: address, + data: { + function: '0x1::coin::transfer', + typeArguments: ['0x1::aptos_coin::AptosCoin'], + functionArguments: [address, '100000'], + }, + }), + }, + { + id: 'signTransaction-native-pure-options', + name: 'transfer native coin pure - options', + value: JSON.stringify({ + sender: address, + data: { + function: '0x1::coin::transfer', + typeArguments: ['0x1::aptos_coin::AptosCoin'], + functionArguments: [address, '100000'], + }, + options: { + maxGasAmount: 1000000, + gasUnitPrice: 1000000, + }, + }), + }, + // { + // id: 'signTransaction-native', + // name: 'transfer native coin', + // value: JSON.stringify({ + // sender: address, + // data: { + // function: '0x1::coin::transfer', + // typeArguments: ['0x1::aptos_coin::AptosCoin'], + // functionArguments: [ + // address && !isEmpty(address) ? AccountAddress.fromString(address) : undefined, + // new U256(100000), + // ], + // }, + // }), + // }, + // { + // id: 'signTransaction-usdc-legacy', + // name: 'transfer usdc coin (legacy)', + // value: JSON.stringify({ + // sender: address, + // data: { + // function: '0x1::coin::transfer', + // typeArguments: [ + // '0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC', + // ], + // functionArguments: [address, new U256(100000)], + // }, + // }), + // }, + ], +}; diff --git a/packages/example/components/chains/aptosStandard/types.ts b/packages/example/components/chains/aptosStandard/types.ts new file mode 100644 index 00000000..0692f436 --- /dev/null +++ b/packages/example/components/chains/aptosStandard/types.ts @@ -0,0 +1,31 @@ +import type { ProviderAptos } from '@onekeyfe/onekey-aptos-provider'; + +export type IProviderApi = ProviderAptos + +export interface IProviderInfo { + uuid: string; + name: string; + inject?: string; // window.ethereum +} + +export interface SignMessagePayload { + address?: boolean; // Should we include the address of the account in the message + application?: boolean; // Should we include the domain of the dapp + chainId?: boolean; // Should we include the current chain id the wallet is connected to + message: string; // The message to be signed and displayed to the user + nonce: number; // A nonce the dapp should generate +} + +export interface SignMessageRequest { + address?: string; + application?: string; + chainId?: number; + message: string; // The message passed in by the user + nonce: number; + fullMessage: string; // The message that was generated to sign +} + +export interface SignMessageResponse extends SignMessageRequest { + prefix: string; // Should always be APTOS + signature: string; // The signed full message +} \ No newline at end of file diff --git a/packages/example/components/chains/aptosStandard/utils.ts b/packages/example/components/chains/aptosStandard/utils.ts new file mode 100644 index 00000000..b2d57e21 --- /dev/null +++ b/packages/example/components/chains/aptosStandard/utils.ts @@ -0,0 +1,54 @@ +import type { SignMessagePayload, SignMessageRequest } from './types'; + +export const APTOS_SIGN_MESSAGE_PREFIX = 'APTOS'; + +export function formatFullMessage(message: SignMessageRequest): string { + let fullMessage = `${APTOS_SIGN_MESSAGE_PREFIX}\n`; + if (message.address) { + fullMessage += `address: ${message.address}\n`; + } + if (message.application) { + fullMessage += `application: ${message.application}\n`; + } + if (message.chainId) { + fullMessage += `chainId: ${message.chainId}\n`; + } + fullMessage += `message: ${message.message}\n`; + fullMessage += `nonce: ${message.nonce}`; + + return fullMessage; +} + +export function formatSignMessageRequest( + message: SignMessagePayload, + address: string, + application: string, + chainId: number, +): SignMessageRequest { + const request: SignMessageRequest = { + message: message.message, + nonce: message.nonce, + fullMessage: '', + }; + + if (message.address) { + request.address = address; + } + if (message.application) { + let host: string; + try { + const urlObj = new URL(application); + host = urlObj.host; + } catch (error) { + host = application; + } + request.application = host; + } + if (message.chainId) { + request.chainId = chainId; + } + + request.fullMessage = formatFullMessage(request); + + return request; +} diff --git a/packages/example/components/chains/btc/utils.ts b/packages/example/components/chains/btc/utils.ts index 1d0e27d3..e04e0d84 100644 --- a/packages/example/components/chains/btc/utils.ts +++ b/packages/example/components/chains/btc/utils.ts @@ -120,7 +120,7 @@ export async function createPSBT( } const blockbook = new BlockBook(url); - const psbt = new bitcoin.Psbt({ network: bitcoin.networks.bitcoin }); + const psbt = new bitcoin.Psbt({ network }); psbt.setVersion(2); psbt.setLocktime(0); diff --git a/packages/example/components/connect/ConnectButton.tsx b/packages/example/components/connect/ConnectButton.tsx index c70fced8..23a51e07 100644 --- a/packages/example/components/connect/ConnectButton.tsx +++ b/packages/example/components/connect/ConnectButton.tsx @@ -117,7 +117,7 @@ export default function ConnectButton({ return () => { clearTimeout(timeout); }; - // eslint-disable-next-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps }, [settings.autoConnect]); return ( @@ -144,6 +144,11 @@ export default function ConnectButton({ /> )} {wallet.name} + {wallet.tags?.map((tag) => ( + + {tag} + + ))} ))} diff --git a/packages/example/components/connect/types.ts b/packages/example/components/connect/types.ts index 7a2e6736..ecd4be6a 100644 --- a/packages/example/components/connect/types.ts +++ b/packages/example/components/connect/types.ts @@ -2,6 +2,7 @@ export type IKnownWallet = { id: string; name: string; logo?: string; + tags?: string[]; }; export type IAccountInfo = { address: string; diff --git a/packages/example/package.json b/packages/example/package.json index 8b0cda6f..dad651b4 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-example", - "version": "2.1.18", + "version": "2.1.19", "private": true, "scripts": { "postinstall": "patch-package", @@ -14,24 +14,28 @@ }, "dependencies": { "@alephium/web3-react": "^1.4.0", + "@aptos-labs/ts-sdk": "^1.33.0", + "@aptos-labs/wallet-adapter-react": "^3.7.7", + "@aptos-labs/wallet-standard": "^0.1.0", "@codemirror/lang-json": "^6.0.1", "@codemirror/lint": "^6.8.0", "@cosmjs/amino": "^0.32.3", "@ethersproject/bytes": "^5.0.6", "@metamask/eth-sig-util": "^7.0.2", "@metamask/onboarding": "^1.0.1", + "@mizuwallet-sdk/core": "^1.4.0", "@mysten/dapp-kit": "0.13.2", - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/onekey-aptos-provider": "2.1.18", - "@onekeyfe/onekey-cardano-provider": "2.1.18", - "@onekeyfe/onekey-conflux-provider": "2.1.18", - "@onekeyfe/onekey-cosmos-provider": "2.1.18", - "@onekeyfe/onekey-near-provider": "2.1.18", - "@onekeyfe/onekey-solana-provider": "2.1.18", - "@onekeyfe/onekey-sui-provider": "2.1.18", - "@onekeyfe/onekey-tron-provider": "2.1.18", - "@onekeyfe/onekey-webln-provider": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/onekey-aptos-provider": "2.1.19", + "@onekeyfe/onekey-cardano-provider": "2.1.19", + "@onekeyfe/onekey-conflux-provider": "2.1.19", + "@onekeyfe/onekey-cosmos-provider": "2.1.19", + "@onekeyfe/onekey-near-provider": "2.1.19", + "@onekeyfe/onekey-solana-provider": "2.1.19", + "@onekeyfe/onekey-sui-provider": "2.1.19", + "@onekeyfe/onekey-tron-provider": "2.1.19", + "@onekeyfe/onekey-webln-provider": "2.1.19", "@polkadot/api": "^9.11.3", "@polkadot/extension-dapp": "^0.47.5", "@radix-ui/react-checkbox": "^1.1.0", @@ -53,6 +57,7 @@ "@starcoin/starcoin": "^2.1.6", "@starcoin/starmask-onboarding": "^1.0.0", "@tanstack/react-query": "^5.40.0", + "@telegram-apps/sdk": "^2.0.0", "@ton/core": "^0.57.0", "@ton/crypto": "^3.3.0", "@ton/ton": "^15.0.0", @@ -64,7 +69,7 @@ "@walletconnect/types": "^2.13.0", "@web3modal/standalone": "^2.4.3", "algosdk": "^2.8.0", - "aptos": "^1.3.17", + "aptos": "^1.21.0", "bcrypto": "^5.5.2", "bignumber.js": "^9.0.1", "bip322-js": "^2.0.0", @@ -80,6 +85,7 @@ "cosmjs-types": "^0.9.0", "ethereumjs-util": "^7.1.5", "fetch-retry": "^6.0.0", + "graphql-request": "^7.1.2", "jose": "^5.8.0", "js-conflux-sdk": "^2.1.8", "lodash-es": "^4.17.21", diff --git a/packages/example/pages/aptosStandard/index.tsx b/packages/example/pages/aptosStandard/index.tsx new file mode 100644 index 00000000..df15afc8 --- /dev/null +++ b/packages/example/pages/aptosStandard/index.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import dynamic from 'next/dynamic'; +import PageLayout from '../../components/PageLayout'; + +// injected provider works only if nextjs ssr disabled +const AptosExample = dynamic(() => import('../../components/chains/aptosStandard/example'), { + ssr: false, +}); + +export default function () { + return ( + + + + ); +} diff --git a/packages/example/yarn.lock b/packages/example/yarn.lock index 7e183667..4f326500 100644 --- a/packages/example/yarn.lock +++ b/packages/example/yarn.lock @@ -121,6 +121,139 @@ "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.24" +"@aptos-connect/wallet-adapter-plugin@^2.3.2": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@aptos-connect/wallet-adapter-plugin/-/wallet-adapter-plugin-2.3.2.tgz#95ee8cfeb16a743f7165ee6e0b269b7e12a2b834" + integrity sha512-LW/jV1Apomglr5Swvd5IULkaoPw9+9oN7wnczQx6mIc8Qmiuv8ekc1df/OvIxn7kFKo62Dy+wUjcBKobUR8wOQ== + dependencies: + "@aptos-connect/wallet-api" "^0.1.5" + "@identity-connect/crypto" "^0.2.3" + "@identity-connect/dapp-sdk" "^0.10.0" + +"@aptos-connect/wallet-api@^0.1.0", "@aptos-connect/wallet-api@^0.1.4", "@aptos-connect/wallet-api@^0.1.5": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@aptos-connect/wallet-api/-/wallet-api-0.1.5.tgz#f81a1441d07d067ed2f5db176d2b4b81f4a4f359" + integrity sha512-KwEPyivXP9iYWjw1gTG06GoLd2wzVjIWec0TLLeNBkvpE1TTSm9yma37CfbwYI3iizYi4EL4h7dqppKuG5VzrQ== + dependencies: + "@identity-connect/api" "^0.7.0" + +"@aptos-connect/web-transport@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@aptos-connect/web-transport/-/web-transport-0.1.0.tgz#8759939df76956553968b8269efe803c78b691cc" + integrity sha512-XfzE59VLXn4GsbpDe4TEAUAYcBaqa8YC+0lHcjNc1e2uacbDY7Lx5WpA3JG8jTPVZuet/o7Oyk/CsxF63RKmjQ== + dependencies: + "@aptos-connect/wallet-api" "^0.1.4" + uuid "^9.0.1" + +"@aptos-labs/aptos-cli@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@aptos-labs/aptos-cli/-/aptos-cli-1.0.2.tgz#91bd1368cf808f715d102822b7d4032388cdad79" + integrity sha512-PYPsd0Kk3ynkxNfe3S4fanI3DiUICCoh4ibQderbvjPFL5A0oK6F4lPEO2t0MDsQySTk2t4vh99Xjy6Bd9y+aQ== + dependencies: + commander "^12.1.0" + +"@aptos-labs/aptos-client@^0.1.0", "@aptos-labs/aptos-client@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@aptos-labs/aptos-client/-/aptos-client-0.1.1.tgz#cbcd2a73bad252e344318baec32ecc54d8136ee0" + integrity sha512-kJsoy4fAPTOhzVr7Vwq8s/AUg6BQiJDa7WOqRzev4zsuIS3+JCuIZ6vUd7UBsjnxtmguJJulMRs9qWCzVBt2XA== + dependencies: + axios "1.7.4" + got "^11.8.6" + +"@aptos-labs/ts-sdk@^1.26.0", "@aptos-labs/ts-sdk@^1.33.0", "@aptos-labs/ts-sdk@^1.9.1": + version "1.33.0" + resolved "https://registry.yarnpkg.com/@aptos-labs/ts-sdk/-/ts-sdk-1.33.0.tgz#4da4501d04ad38381630b06d7d8a29bc4b3f1855" + integrity sha512-svdlPH5r2dlSue2D9WXaaTslsmX18WLytAho6IRZJxQjEssglk64I6c1G9S8BTjRQj/ug6ahTwp6lx3eWuyd8Q== + dependencies: + "@aptos-labs/aptos-cli" "^1.0.2" + "@aptos-labs/aptos-client" "^0.1.1" + "@noble/curves" "^1.4.0" + "@noble/hashes" "^1.4.0" + "@scure/bip32" "^1.4.0" + "@scure/bip39" "^1.3.0" + eventemitter3 "^5.0.1" + form-data "^4.0.0" + js-base64 "^3.7.7" + jwt-decode "^4.0.0" + poseidon-lite "^0.2.0" + +"@aptos-labs/wallet-adapter-core@4.22.1": + version "4.22.1" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-adapter-core/-/wallet-adapter-core-4.22.1.tgz#39fb61bd7943d2a56151880ca4e9a7eb706cbea5" + integrity sha512-OinSUf9rfubNTJROLCFrldMzX1cPsqbnEmEpFthOSgldhptNobOn06pQTiGOgMhRdre5xubhTyJXuA8OiUhc3A== + dependencies: + "@aptos-connect/wallet-adapter-plugin" "^2.3.2" + "@aptos-labs/wallet-standard" "^0.2.0" + "@atomrigslab/aptos-wallet-adapter" "^0.1.20" + "@mizuwallet-sdk/aptos-wallet-adapter" "^0.3.2" + buffer "^6.0.3" + eventemitter3 "^4.0.7" + tweetnacl "^1.0.3" + +"@aptos-labs/wallet-adapter-react@^3.7.7": + version "3.7.7" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-adapter-react/-/wallet-adapter-react-3.7.7.tgz#e41c9cb607504a455791277d6f880e22903c04f4" + integrity sha512-6sIh8EzpBLaVYqrYsYsyKjAF7r3qijitFiLksDWgw20VPUvq79B5gwIC01mloZRC5RVMxUz5/IuHU6wkVBer8A== + dependencies: + "@aptos-labs/wallet-adapter-core" "4.22.1" + "@radix-ui/react-slot" "^1.0.2" + +"@aptos-labs/wallet-standard@0.0.11": + version "0.0.11" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-standard/-/wallet-standard-0.0.11.tgz#97e3950b7699657e391004db15efa718eb7fd50d" + integrity sha512-8dygyPBby7TaMJjUSyeVP4R1WC9D/FPpX9gVMMLaqTKCXrSbkzhGDxcuwbMZ3ziEwRmx3zz+d6BIJbDhd0hm5g== + dependencies: + "@aptos-labs/ts-sdk" "^1.9.1" + "@wallet-standard/core" "1.0.3" + +"@aptos-labs/wallet-standard@0.1.0-ms.1": + version "0.1.0-ms.1" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-standard/-/wallet-standard-0.1.0-ms.1.tgz#3b6e218c22ceb463862fa6133fac0f424bf26389" + integrity sha512-3aWEmdqMcll8D2lzhBZuYUW1o49TDpqw4QRAkHk00tSC3SwAkuukoW8g/M9lB5nHFxaX7UzuxeaYv8l6/mhJVQ== + +"@aptos-labs/wallet-standard@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-standard/-/wallet-standard-0.1.0.tgz#ff78486866ef911f3edf1851e3e66c6486122896" + integrity sha512-DC4cWuvgXKBVQC+seGQc/nwIZoggZmGOIoN8EtEKHBSBMijwVfgRjD6cXPx8xWaXANyr5d32BGnWvYfMyWk3Pg== + +"@aptos-labs/wallet-standard@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-standard/-/wallet-standard-0.2.0.tgz#d0f9d422d63ac93a02c2eb3157090434ded77379" + integrity sha512-4aoO4MlqzrW+CtO83MwbHMMtu91DL5B7YKRvhJbRnVB4R+QCOwBI/aQTkNZbKBDfOplLlqWTTl6Li0l6e02YLQ== + +"@atomrigslab/aptos-wallet-adapter@^0.1.20": + version "0.1.21" + resolved "https://registry.yarnpkg.com/@atomrigslab/aptos-wallet-adapter/-/aptos-wallet-adapter-0.1.21.tgz#907ca8f0fb78e977562288506596f97af7cfc258" + integrity sha512-LwT0OTOaGglctggMcihXLd4mzBFwRoJsR0aeFBHQRfTxZV1agNTgN/PxJl6N13+WYAvzc00j/WByxAmWgonorA== + dependencies: + "@aptos-labs/wallet-standard" "0.0.11" + "@atomrigslab/dekey-web-wallet-provider" "1.2.1" + +"@atomrigslab/dekey-web-wallet-provider@1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@atomrigslab/dekey-web-wallet-provider/-/dekey-web-wallet-provider-1.2.1.tgz#8e3fe8d9f9e2a71d204748f12b7a2756ab9da2d2" + integrity sha512-GMEGjARgle9lIRopvxm4uis+sRr/ih26HzBgFbnLsk8+G94Z5dE87EclAIGFQUSAxYj7SmSk6xpx7//qUJDW/A== + dependencies: + "@atomrigslab/providers" "1.1.0" + +"@atomrigslab/providers@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@atomrigslab/providers/-/providers-1.1.0.tgz#faab96551d80404793fae2757dee6aa9a749e62f" + integrity sha512-QLYxSCVrxwlN1oZ7vLnZbKZxkbZ6QG77Bj4pmTEowIpTcq7qZdBtU9pn+vqJAso1nnA3+AkmPuE9Jnx7+Jo1zQ== + dependencies: + "@metamask/object-multiplex" "^1.1.0" + "@metamask/safe-event-emitter" "^2.0.0" + "@types/chrome" "^0.0.136" + detect-browser "^5.2.0" + eth-rpc-errors "^4.0.2" + extension-port-stream "^2.0.1" + fast-deep-equal "^2.0.1" + is-stream "^2.0.0" + json-rpc-engine "^6.1.0" + json-rpc-middleware-stream "^3.0.0" + pump "^3.0.0" + webextension-polyfill-ts "^0.25.0" + "@babel/code-frame@^7.0.0": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" @@ -1804,6 +1937,39 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044" integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw== +"@identity-connect/api@^0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@identity-connect/api/-/api-0.7.0.tgz#cb0820eb274efd7ffe8c91b8d021f620613ff55f" + integrity sha512-mn/LZGeb3xgBD644p67tYOjvYSSdZpwxiO4/ZjwjsJZ8eYvGha5FiZg+pqVH73lg1S36qikwbkA3HUQOAE5GKA== + +"@identity-connect/crypto@^0.2.3": + version "0.2.4" + resolved "https://registry.yarnpkg.com/@identity-connect/crypto/-/crypto-0.2.4.tgz#8bb351ef064cd3d0226f6d8a43d72273eaf117d5" + integrity sha512-31C89CHwE+2jSmIzaFEXOHpOLbdwPH5cctynSaQzLX18UsATtiMGoWQA8/LlGkM/7HUrQgbWmB2szcEGzYakCQ== + dependencies: + "@aptos-connect/wallet-api" "^0.1.0" + "@noble/hashes" "^1.3.1" + ed2curve "^0.3.0" + tweetnacl "^1.0.3" + +"@identity-connect/dapp-sdk@^0.10.0": + version "0.10.0" + resolved "https://registry.yarnpkg.com/@identity-connect/dapp-sdk/-/dapp-sdk-0.10.0.tgz#d57ddb7f1d5fe7cb458d779fe1c80f604c82f75b" + integrity sha512-Z2OtKDlIKy3VJR9E0VRYiLMT2+f+ailfCFsYVRcndzwULTvxVRp3slegMSnIg47EQMvYcoOEItS6tn5Pby1XkQ== + dependencies: + "@aptos-connect/wallet-api" "^0.1.5" + "@aptos-connect/web-transport" "^0.1.0" + "@identity-connect/api" "^0.7.0" + "@identity-connect/crypto" "^0.2.3" + "@identity-connect/wallet-api" "^0.1.1" + axios "^1.6.0" + uuid "^9.0.1" + +"@identity-connect/wallet-api@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@identity-connect/wallet-api/-/wallet-api-0.1.1.tgz#787f6c6204210368529004e0bdf3c2340ba3ceb6" + integrity sha512-PGcJQrSnk6PLr/w5D1FKRP/Ip0DH8nvDuWe/5ZfStrGwKhG0L8yDZPbAmDfSOH2mUvVtafmayRYv/FOnqGtLLw== + "@inquirer/confirm@^3.0.0": version "3.1.22" resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-3.1.22.tgz#23990624c11f60c6f7a5b0558c7505c35076a037" @@ -2137,6 +2303,15 @@ ethereum-cryptography "^2.1.2" tweetnacl "^1.0.3" +"@metamask/object-multiplex@^1.1.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@metamask/object-multiplex/-/object-multiplex-1.3.0.tgz#459de4862aa5a5a025dabceadda0ffd553ca4b25" + integrity sha512-czcQeVYdSNtabd+NcYQnrM69MciiJyd1qvKH8WM2Id3C0ZiUUX5Xa/MK+/VUk633DBhVOwdNzAKIQ33lGyA+eQ== + dependencies: + end-of-stream "^1.4.4" + once "^1.4.0" + readable-stream "^2.3.3" + "@metamask/onboarding@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@metamask/onboarding/-/onboarding-1.0.1.tgz#14a36e1e175e2f69f09598e2008ab6dc1b3297e6" @@ -2152,6 +2327,11 @@ "@metamask/utils" "^5.0.0" fast-safe-stringify "^2.0.6" +"@metamask/safe-event-emitter@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz#af577b477c683fad17c619a78208cede06f9605c" + integrity sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q== + "@metamask/utils@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@metamask/utils/-/utils-5.0.2.tgz#140ba5061d90d9dac0280c19cab101bc18c8857c" @@ -2178,6 +2358,38 @@ superstruct "^1.0.3" uuid "^9.0.1" +"@microsoft/fetch-event-source@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz#9ceecc94b49fbaa15666e38ae8587f64acce007d" + integrity sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA== + +"@mizuwallet-sdk/aptos-wallet-adapter@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@mizuwallet-sdk/aptos-wallet-adapter/-/aptos-wallet-adapter-0.3.2.tgz#658a606c8b247ed5c5caac9b0c0740e02ca7281a" + integrity sha512-YljOzWoaTTp+dGZ6p0vTQwVBYe9AQeCLNfLcmKzSWU14ktEflIeDk85xVD0WRgQUbfyW707/18JcmKA+7V12rg== + dependencies: + "@aptos-labs/ts-sdk" "^1.26.0" + "@aptos-labs/wallet-standard" "0.1.0-ms.1" + buffer "^6.0.3" + +"@mizuwallet-sdk/core@^1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@mizuwallet-sdk/core/-/core-1.4.0.tgz#a585f394569c00074d78052d93253f2c78a69d0c" + integrity sha512-03jKqKr+P4kCgcNQT2YNXmFBRVmeZ88vpEFKpQ9SaorCY4L9lF56kJS4Y+e/+A4Gb1bnqA7xuFmnEz13LjsZyg== + dependencies: + "@mizuwallet-sdk/protocol" "0.0.2" + buffer "^6.0.3" + jwt-decode "^4.0.0" + +"@mizuwallet-sdk/protocol@0.0.2": + version "0.0.2" + resolved "https://registry.yarnpkg.com/@mizuwallet-sdk/protocol/-/protocol-0.0.2.tgz#1c139c2e5b442dc797c20bb743aeb2e1f5d00c07" + integrity sha512-AIrwaYKlmdG7lnipOlwW7sjlFJicm7v3fngQ3FEruAFc1Ydhg6gdMm4quEortWTziUxvSFo7V8JrRWF8C/FxDQ== + dependencies: + "@microsoft/fetch-event-source" "^2.0.1" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + "@mobily/ts-belt@^3.13.1": version "3.13.1" resolved "https://registry.yarnpkg.com/@mobily/ts-belt/-/ts-belt-3.13.1.tgz#8f8ce2a2eca41d88c2ca70c84d0f47d0f7f5cd5f" @@ -2500,7 +2712,11 @@ dependencies: "@noble/hashes" "1.4.0" +<<<<<<< HEAD "@noble/curves@^1.4.2": +======= +"@noble/curves@^1.4.2", "@noble/curves@~1.7.0": +>>>>>>> 6613281 (feat: support aptos standard wallet) version "1.7.0" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.7.0.tgz#0512360622439256df892f21d25b388f52505e45" integrity sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw== @@ -2542,7 +2758,11 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.0.tgz#d4bfb516ad6e7b5111c216a5cc7075f4cf19e6c5" integrity sha512-YUULf0Uk4/mAA89w+k3+yUYh6NrEvxZa5T6SY3wlMvE2chHkxFUUIDI8/XW1QSC357iA5pSnqt7XEhvFOqmDyQ== +<<<<<<< HEAD "@noble/hashes@^1.3.0": +======= +"@noble/hashes@^1.3.0", "@noble/hashes@~1.6.0": +>>>>>>> 6613281 (feat: support aptos standard wallet) version "1.6.1" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.1.tgz#df6e5943edcea504bac61395926d6fd67869a0d5" integrity sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w== @@ -4677,6 +4897,11 @@ resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.3.tgz#8584115565228290a6c6c4961973e0903bb3df2f" integrity sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q== +"@scure/base@~1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.1.tgz#dd0b2a533063ca612c17aa9ad26424a2ff5aa865" + integrity sha512-DGmGtC8Tt63J5GfHgfl5CuAXh96VF/LD8K9Hr/Gv0J2lAoRGlPOMpqMpMbCTOoOJMZCk2Xt+DskdDyn6dEFdzQ== + "@scure/bip32@1.3.3": version "1.3.3" resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.3.3.tgz#a9624991dc8767087c57999a5d79488f48eae6c8" @@ -4695,6 +4920,15 @@ "@noble/hashes" "~1.3.2" "@scure/base" "~1.1.2" +"@scure/bip32@^1.4.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.6.0.tgz#6dbc6b4af7c9101b351f41231a879d8da47e0891" + integrity sha512-82q1QfklrUUdXJzjuRU7iG7D7XiFx5PHYVS0+oeNKhyDLT7WPqs6pBcM2W5ZdwOwKCwoE1Vy1se+DHjcXwCYnA== + dependencies: + "@noble/curves" "~1.7.0" + "@noble/hashes" "~1.6.0" + "@scure/base" "~1.2.1" + "@scure/bip39@1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.1.0.tgz#92f11d095bae025f166bef3defcc5bf4945d419a" @@ -4703,6 +4937,14 @@ "@noble/hashes" "~1.1.1" "@scure/base" "~1.1.0" +"@scure/bip39@1.2.1", "@scure/bip39@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.1.tgz#5cee8978656b272a917b7871c981e0541ad6ac2a" + integrity sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg== + dependencies: + "@noble/hashes" "~1.3.0" + "@scure/base" "~1.1.0" + "@scure/bip39@1.2.2": version "1.2.2" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.2.tgz#f3426813f4ced11a47489cbcf7294aa963966527" @@ -4711,13 +4953,13 @@ "@noble/hashes" "~1.3.2" "@scure/base" "~1.1.4" -"@scure/bip39@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.1.tgz#5cee8978656b272a917b7871c981e0541ad6ac2a" - integrity sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg== +"@scure/bip39@^1.3.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.5.0.tgz#c8f9533dbd787641b047984356531d84485f19be" + integrity sha512-Dop+ASYhnrwm9+HA/HwXg7j2ZqM6yk2fyLWb5znexjctFY3+E+eU8cIWI0Pql0Qx4hPZCijlGq4OL71g+Uz30A== dependencies: - "@noble/hashes" "~1.3.0" - "@scure/base" "~1.1.0" + "@noble/hashes" "~1.6.0" + "@scure/base" "~1.2.1" "@sideway/address@^4.1.5": version "4.1.5" @@ -4746,6 +4988,11 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.31.28.tgz#b68831e7bc7d09daac26968ea32f42bedc968ede" integrity sha512-/s55Jujywdw/Jpan+vsy6JZs1z2ZTGxTmbZTPiuSL2wz9mfzA2gN1zzaqmvfi4pq+uOt7Du85fkiwv5ymW84aQ== +"@sindresorhus/is@^4.0.0": + version "4.6.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f" + integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== + "@sinonjs/commons@^3.0.0": version "3.0.1" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.1.tgz#1029357e44ca901a615585f6d27738dbc89084cd" @@ -5545,6 +5792,16 @@ dependencies: tslib "^2.8.0" +<<<<<<< HEAD +======= +"@szmarczak/http-timer@^4.0.5": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807" + integrity sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w== + dependencies: + defer-to-connect "^2.0.0" + +>>>>>>> 6613281 (feat: support aptos standard wallet) "@tanstack/query-core@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.40.0.tgz#c74ae8303752ed4b5a0ab848ec71a0e6e8179f83" @@ -5557,6 +5814,58 @@ dependencies: "@tanstack/query-core" "5.40.0" +"@telegram-apps/bridge@^1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@telegram-apps/bridge/-/bridge-1.4.0.tgz#a7874629565c4e22ac3d9b8a9f69d3eccdbbf1ee" + integrity sha512-75FHIYtIg2/c7F1Y1YX8IT4XWTGu8G4Dm0lopIeQIsyIc3hjHtGwcNt5GQ69UFJXIJlYrv6lu+qUC+K4sbgRZw== + dependencies: + "@telegram-apps/signals" "^1.1.0" + "@telegram-apps/toolkit" "^1.0.0" + "@telegram-apps/transformers" "^1.0.1" + "@telegram-apps/types" "^1.0.1" + +"@telegram-apps/navigation@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@telegram-apps/navigation/-/navigation-1.0.5.tgz#230ef375986105ff60e71c5a1680f9e3e6bf4452" + integrity sha512-fGOzfFKPe8PUfbtSRlWx/V9xUeLK3hlA5w+2X3by8B4fpwCBPEy+iCrtAKUJNH9qM5i2c3YteQIM56sD3yyXpQ== + dependencies: + "@telegram-apps/bridge" "^1.4.0" + "@telegram-apps/signals" "^1.1.0" + "@telegram-apps/toolkit" "^1.0.0" + +"@telegram-apps/sdk@^2.0.0": + version "2.6.2" + resolved "https://registry.yarnpkg.com/@telegram-apps/sdk/-/sdk-2.6.2.tgz#7eab059cb607facd6240f941067ac0efbde3b920" + integrity sha512-1Gn8MBkcE+KphOI1hmvwNZriTHFKa1eYbX1Ki7IEWrAyhQZEw00cal/mG7ozOZ6B3EYnYrPM7zW0SdbksKI0VQ== + dependencies: + "@telegram-apps/bridge" "^1.4.0" + "@telegram-apps/navigation" "^1.0.5" + "@telegram-apps/signals" "^1.1.0" + "@telegram-apps/transformers" "^1.0.1" + +"@telegram-apps/signals@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@telegram-apps/signals/-/signals-1.1.0.tgz#4b71d6fdf50b0f583abe28050961e1eb15aa97fc" + integrity sha512-5qN7cU8t3l7n0cKcnzc/1TYKJTwAggUinfwbLHL1SYmB47pBHjCvfsRiYliFohk6lb635SBmNuVZL6LHFmGZaw== + +"@telegram-apps/toolkit@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@telegram-apps/toolkit/-/toolkit-1.0.0.tgz#e0fb3541100bcfe2956ab163dd51b9577cc6c2d0" + integrity sha512-fSVoveLuMzwRKWeXEufMSXxH+HvjsFKb1DeT3pG5qLpnb2rdtejnNcwAt6WEPtiZ3a4YntYaFuR3KYgVv0ZxeQ== + +"@telegram-apps/transformers@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@telegram-apps/transformers/-/transformers-1.0.1.tgz#42821eb836598e714362865231e6ef01a3c92632" + integrity sha512-SsI+FhCOkkZFUPqr+ib11Fi25fRCpdMsI2Flp51NrdtKaPDnKFkBBG4GcSEaGL8sXquW9uAANjc499jSaZK5jQ== + dependencies: + "@telegram-apps/toolkit" "^1.0.0" + "@telegram-apps/types" "^1.0.1" + +"@telegram-apps/types@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@telegram-apps/types/-/types-1.0.1.tgz#211597cfa0d515b544917e491031f07c01faf394" + integrity sha512-8tGy1zG/1MEt0KF8nR0ffZ93whKveEJIkBI+qxHCRgatKwKVJV2dVSXrrBspFKn7FIIo1/CvmB8zP4vKPzglbg== + "@ton/core@^0.57.0": version "0.57.0" resolved "https://registry.yarnpkg.com/@ton/core/-/core-0.57.0.tgz#fdf2d32848a3d1135b890e9a5bd8295e958a4a81" @@ -5963,6 +6272,24 @@ dependencies: base-x "^3.0.6" +"@types/cacheable-request@^6.0.1": + version "6.0.3" + resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.3.tgz#a430b3260466ca7b5ca5bfd735693b36e7a9d183" + integrity sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw== + dependencies: + "@types/http-cache-semantics" "*" + "@types/keyv" "^3.1.4" + "@types/node" "*" + "@types/responselike" "^1.0.0" + +"@types/chrome@^0.0.136": + version "0.0.136" + resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.136.tgz#7c011b9f997b0156f25a140188a0c5689d3f368f" + integrity sha512-XDEiRhLkMd+SB7Iw3ZUIj/fov3wLd4HyTdLltVszkgl1dBfc3Rb7oPMVZ2Mz2TLqnF7Ow+StbR8E7r9lqpb4DA== + dependencies: + "@types/filesystem" "*" + "@types/har-format" "*" + "@types/connect@^3.4.33": version "3.4.35" resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.35.tgz#5fcf6ae445e4021d1fc2219a4873cc73a3bb2ad1" @@ -5982,6 +6309,28 @@ dependencies: "@types/ms" "*" +"@types/filesystem@*": + version "0.0.36" + resolved "https://registry.yarnpkg.com/@types/filesystem/-/filesystem-0.0.36.tgz#7227c2d76bfed1b21819db310816c7821d303857" + integrity sha512-vPDXOZuannb9FZdxgHnqSwAG/jvdGM8Wq+6N4D/d80z+D4HWH+bItqsZaVRQykAn6WEVeEkLm2oQigyHtgb0RA== + dependencies: + "@types/filewriter" "*" + +"@types/filewriter@*": + version "0.0.33" + resolved "https://registry.yarnpkg.com/@types/filewriter/-/filewriter-0.0.33.tgz#d9d611db9d9cd99ae4e458de420eeb64ad604ea8" + integrity sha512-xFU8ZXTw4gd358lb2jw25nxY9QAgqn2+bKKjKOYfNCzN4DKCFetK7sPtrlpg66Ywe3vWY9FNxprZawAh9wfJ3g== + +"@types/har-format@*": + version "1.2.16" + resolved "https://registry.yarnpkg.com/@types/har-format/-/har-format-1.2.16.tgz#b71ede8681400cc08b3685f061c31e416cf94944" + integrity sha512-fluxdy7ryD3MV6h8pTfTYpy/xQzCFC7m89nOH9y94cNqJ1mDIDPut7MnRHI3F6qRmh/cT2fUjG1MLdCNb4hE9A== + +"@types/http-cache-semantics@*": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz#b979ebad3919799c979b17c72621c0bc0a31c6c4" + integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA== + "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": version "2.0.6" resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" @@ -6011,6 +6360,13 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== +"@types/keyv@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.4.tgz#3ccdb1c6751b0c7e52300bcdacd5bcbf8faa75b6" + integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg== + dependencies: + "@types/node" "*" + "@types/lodash-es@^4.17.12": version "4.17.12" resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.12.tgz#65f6d1e5f80539aa7cfbfc962de5def0cf4f341b" @@ -6136,6 +6492,13 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/responselike@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.3.tgz#cc29706f0a397cfe6df89debfe4bf5cea159db50" + integrity sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw== + dependencies: + "@types/node" "*" + "@types/scheduler@*": version "0.16.2" resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" @@ -6972,6 +7335,18 @@ appdirsjs@^1.2.4: resolved "https://registry.yarnpkg.com/appdirsjs/-/appdirsjs-1.2.7.tgz#50b4b7948a26ba6090d4aede2ae2dc2b051be3b3" integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw== +aptos@^1.21.0: + version "1.21.0" + resolved "https://registry.yarnpkg.com/aptos/-/aptos-1.21.0.tgz#346623967a6d038a85f02d71ed6ec62c4cd2ae5e" + integrity sha512-PRKjoFgL8tVEc9+oS7eJUv8GNxx8n3+0byH2+m7CP3raYOD6yFKOecuwjVMIJmgfpjp6xH0P0HDMGZAXmSyU0Q== + dependencies: + "@aptos-labs/aptos-client" "^0.1.0" + "@noble/hashes" "1.3.3" + "@scure/bip39" "1.2.1" + eventemitter3 "^5.0.1" + form-data "4.0.0" + tweetnacl "1.0.3" + aptos@^1.3.17: version "1.3.17" resolved "https://registry.yarnpkg.com/aptos/-/aptos-1.3.17.tgz#bdfb8ab9790b52abbeefd862721007b4d13c9302" @@ -7257,7 +7632,20 @@ axios@0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" +<<<<<<< HEAD axios@^1.6.2: +======= +axios@1.7.4: + version "1.7.4" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.4.tgz#4c8ded1b43683c8dd362973c393f3ede24052aa2" + integrity sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +axios@^1.6.0, axios@^1.6.2: +>>>>>>> 6613281 (feat: support aptos standard wallet) version "1.7.8" resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.8.tgz#1997b1496b394c21953e68c14aaa51b7b5de3d6e" integrity sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw== @@ -7884,6 +8272,24 @@ bytes@3.0.0: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== +cacheable-lookup@^5.0.3: + version "5.0.4" + resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005" + integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== + +cacheable-request@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.4.tgz#7a33ebf08613178b403635be7b899d3e69bbe817" + integrity sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^4.0.0" + lowercase-keys "^2.0.0" + normalize-url "^6.0.1" + responselike "^2.0.0" + call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -8179,6 +8585,13 @@ clone-deep@^4.0.1: kind-of "^6.0.2" shallow-clone "^3.0.0" +clone-response@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.3.tgz#af2032aa47816399cf5f0a1d0db902f517abb8c3" + integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA== + dependencies: + mimic-response "^1.0.0" + clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -8248,6 +8661,11 @@ command-exists@^1.2.8: resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== +commander@^12.1.0: + version "12.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-12.1.0.tgz#01423b36f501259fdaac4d0e4d60c96c991585d3" + integrity sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA== + commander@^2.20.0, commander@^2.20.3: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" @@ -8650,6 +9068,13 @@ decode-uri-component@^0.2.2: resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== + dependencies: + mimic-response "^3.1.0" + dedent-js@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/dedent-js/-/dedent-js-1.0.1.tgz#bee5fb7c9e727d85dffa24590d10ec1ab1255305" @@ -8700,6 +9125,11 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" +defer-to-connect@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== + define-data-property@^1.0.1, define-data-property@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" @@ -8806,7 +9236,7 @@ detect-browser@5.2.0: resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.2.0.tgz#c9cd5afa96a6a19fda0bbe9e9be48a6b6e1e9c97" integrity sha512-tr7XntDAu50BVENgQfajMLzacmSe34D+qZc4zjnniz0ZVuw/TZcLcyxHQjYpJTM36sGEkZZlYLnIM1hH7alTMA== -detect-browser@5.3.0, detect-browser@^5.3.0: +detect-browser@5.3.0, detect-browser@^5.2.0, detect-browser@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.3.0.tgz#9705ef2bddf46072d0f7265a1fe300e36fe7ceca" integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== @@ -9554,7 +9984,7 @@ etag@~1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== -eth-rpc-errors@^4.0.3: +eth-rpc-errors@^4.0.2, eth-rpc-errors@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz#6ddb6190a4bf360afda82790bb7d9d5e724f423a" integrity sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg== @@ -9742,11 +10172,23 @@ ext@^1.1.2: dependencies: type "^2.7.2" +extension-port-stream@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/extension-port-stream/-/extension-port-stream-2.1.1.tgz#ec11f2a5ed95655d8c40805d7cb0c39939ee9ef4" + integrity sha512-qknp5o5rj2J9CRKfVB8KJr+uXQlrojNZzdESUPhKYLXf97TPcGf6qWWKmpsNNtUyOdzFhab1ON0jzouNxHHvow== + dependencies: + webextension-polyfill ">=0.10.0 <1.0" + eyes@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0" integrity sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ== +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" + integrity sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w== + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -10182,6 +10624,13 @@ get-size@^3.0.0: resolved "https://registry.yarnpkg.com/get-size/-/get-size-3.0.0.tgz#00e39a8042a3de237b2fcf288eaf55d3f472417c" integrity sha512-Y8aiXLq4leR7807UY0yuKEwif5s3kbVp1nTv+i4jBeoUzByTLKkLWu/HorS6/pB+7gsB0o7OTogC8AoOOeT0Hw== +get-stream@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + get-stream@^6.0.0, get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -10325,6 +10774,23 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" +got@^11.8.6: + version "11.8.6" + resolved "https://registry.yarnpkg.com/got/-/got-11.8.6.tgz#276e827ead8772eddbcfc97170590b841823233a" + integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g== + dependencies: + "@sindresorhus/is" "^4.0.0" + "@szmarczak/http-timer" "^4.0.5" + "@types/cacheable-request" "^6.0.1" + "@types/responselike" "^1.0.0" + cacheable-lookup "^5.0.3" + cacheable-request "^7.0.2" + decompress-response "^6.0.0" + http2-wrapper "^1.0.0-beta.5.2" + lowercase-keys "^2.0.0" + p-cancelable "^2.0.0" + responselike "^2.0.0" + gql.tada@^1.7.0: version "1.7.5" resolved "https://registry.yarnpkg.com/gql.tada/-/gql.tada-1.7.5.tgz#b03e7ccabf99458d828d82373a96e94cd19d6f28" @@ -10349,6 +10815,13 @@ graphemer@^1.4.0: resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== +graphql-request@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-7.1.2.tgz#52d7fd6d8d08c9f0b00c84a091376ce9fbdfa945" + integrity sha512-+XE3iuC55C2di5ZUrB4pjgwe+nIQBuXVIK9J98wrVwojzDW3GMdSBZfxUk8l4j9TieIpjpggclxhNEU9ebGF8w== + dependencies: + "@graphql-typed-document-node/core" "^3.2.0" + "graphql@^15.5.0 || ^16.0.0 || ^17.0.0", graphql@^16.8.1: version "16.8.1" resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07" @@ -10529,6 +11002,11 @@ hoist-non-react-statics@^3.0.0, hoist-non-react-statics@^3.3.0, hoist-non-react- dependencies: react-is "^16.7.0" +http-cache-semantics@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== + http-errors@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" @@ -10556,6 +11034,14 @@ http-shutdown@^1.2.2: resolved "https://registry.yarnpkg.com/http-shutdown/-/http-shutdown-1.2.2.tgz#41bc78fc767637c4c95179bc492f312c0ae64c5f" integrity sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw== +http2-wrapper@^1.0.0-beta.5.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/http2-wrapper/-/http2-wrapper-1.0.3.tgz#b8f55e0c1f25d4ebd08b3b0c2c079f9590800b3d" + integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg== + dependencies: + quick-lru "^5.1.1" + resolve-alpn "^1.0.0" + https-proxy-agent@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" @@ -11172,9 +11658,15 @@ jayson@^4.1.0: ws "^7.4.5" jayson@^4.1.1: +<<<<<<< HEAD version "4.1.2" resolved "https://registry.yarnpkg.com/jayson/-/jayson-4.1.2.tgz#443c26a8658703e0b2e881117b09395d88b6982e" integrity sha512-5nzMWDHy6f+koZOuYsArh2AXs73NfWYVlFyJJuCedr93GpY+Ku8qq10ropSXVfHK+H0T6paA88ww+/dV+1fBNA== +======= + version "4.1.3" + resolved "https://registry.yarnpkg.com/jayson/-/jayson-4.1.3.tgz#db9be2e4287d9fef4fc05b5fe367abe792c2eee8" + integrity sha512-LtXh5aYZodBZ9Fc3j6f2w+MTNcnxteMOrb+QgIouguGOulWi0lieEkOUg+HkjjFs0DGoWDds6bi4E9hpNFLulQ== +>>>>>>> 6613281 (feat: support aptos standard wallet) dependencies: "@types/connect" "^3.4.33" "@types/node" "^12.12.54" @@ -11285,7 +11777,7 @@ jose@^5.8.0: resolved "https://registry.yarnpkg.com/jose/-/jose-5.8.0.tgz#0165cee08d89a6546d7eeeb9524dc42f458a56de" integrity sha512-E7CqYpL/t7MMnfGnK/eg416OsFCVUrU/Y3Vwe7QjKhu/BkS1Ms455+2xsqZQVN57/U2MHMBvEb5SrmAZWAIntA== -js-base64@^3.7.5: +js-base64@^3.7.5, js-base64@^3.7.7: version "3.7.7" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.7.tgz#e51b84bf78fbf5702b9541e2cb7bfcb893b43e79" integrity sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw== @@ -11419,6 +11911,11 @@ json-bigint@^1.0.0: dependencies: bignumber.js "^9.0.0" +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" @@ -11429,6 +11926,22 @@ json-parse-even-better-errors@^2.3.0: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +json-rpc-engine@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz#bf5ff7d029e1c1bf20cb6c0e9f348dcd8be5a393" + integrity sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ== + dependencies: + "@metamask/safe-event-emitter" "^2.0.0" + eth-rpc-errors "^4.0.2" + +json-rpc-middleware-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/json-rpc-middleware-stream/-/json-rpc-middleware-stream-3.0.0.tgz#8540331d884f36b9e0ad31054cc68ac6b5a89b52" + integrity sha512-JmZmlehE0xF3swwORpLHny/GvW3MZxCsb2uFNBrn8TOqMqivzCfz232NSDLLOtIQlrPlgyEjiYpyzyOPFOzClw== + dependencies: + "@metamask/safe-event-emitter" "^2.0.0" + readable-stream "^2.3.3" + json-rpc-random-id@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz#ba49d96aded1444dbb8da3d203748acbbcdec8c8" @@ -11535,6 +12048,11 @@ jsx-ast-utils@^3.3.5: object.assign "^4.1.4" object.values "^1.1.6" +jwt-decode@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b" + integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA== + keccak@^1.0.2: version "1.4.0" resolved "https://registry.yarnpkg.com/keccak/-/keccak-1.4.0.tgz#572f8a6dbee8e7b3aa421550f9e6408ca2186f80" @@ -11573,6 +12091,13 @@ keccak@^3.0.1, keccak@^3.0.3: node-gyp-build "^4.2.0" readable-stream "^3.6.0" +keyv@^4.0.0: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" + keyvaluestorage-interface@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz#13ebdf71f5284ad54be94bd1ad9ed79adad515ff" @@ -11821,6 +12346,11 @@ lower-case@^2.0.2: dependencies: tslib "^2.0.3" +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + lru-cache@^10.2.0: version "10.2.2" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.2.tgz#48206bc114c1252940c41b25b41af5b545aca878" @@ -12159,6 +12689,16 @@ mimic-fn@^4.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -12584,6 +13124,11 @@ normalize-range@^0.1.2: resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== +normalize-url@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" + integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== + npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" @@ -12861,6 +13406,11 @@ outvariant@^1.2.1, outvariant@^1.4.0, outvariant@^1.4.2: resolved "https://registry.yarnpkg.com/outvariant/-/outvariant-1.4.3.tgz#221c1bfc093e8fec7075497e7799fdbf43d14873" integrity sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA== +p-cancelable@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf" + integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== + p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -13164,6 +13714,11 @@ popmotion@11.0.3: style-value-types "5.0.0" tslib "^2.1.0" +poseidon-lite@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/poseidon-lite/-/poseidon-lite-0.2.1.tgz#7ad98e3a3aa5b91a1fd3a61a87460e9e46fd76d6" + integrity sha512-xIr+G6HeYfOhCuswdqcFpSX47SPhm0EpisWJ6h7fHlWwaVIvH3dLnejpatrtw6Xc6HaLrpq05y7VRfvDmDGIog== + possible-typed-array-names@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" @@ -13481,6 +14036,11 @@ quick-format-unescaped@^4.0.3: resolved "https://registry.yarnpkg.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz#93ef6dd8d3453cbc7970dd614fad4c5954d6b5a7" integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + radix3@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/radix3/-/radix3-1.1.2.tgz#fd27d2af3896c6bf4bcdfab6427c69c2afc69ec0" @@ -13752,7 +14312,7 @@ read-cache@^1.0.0: dependencies: pify "^2.3.0" -readable-stream@^2.3.8, readable-stream@~2.3.6: +readable-stream@^2.3.3, readable-stream@^2.3.8, readable-stream@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -13944,6 +14504,11 @@ resize-observer-polyfill@^1.5.1: resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== +resolve-alpn@^1.0.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz#b7adbdac3546aaaec20b45e7d8265927072726f9" + integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== + resolve-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" @@ -13995,6 +14560,13 @@ resolve@^2.0.0-next.4: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +responselike@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.1.tgz#9a0bc8fdc252f3fb1cca68b016591059ba1422bc" + integrity sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw== + dependencies: + lowercase-keys "^2.0.0" + restore-cursor@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" @@ -15839,6 +16411,23 @@ webcrypto-core@^1.8.0: pvtsutils "^1.3.5" tslib "^2.6.2" +webextension-polyfill-ts@^0.25.0: + version "0.25.0" + resolved "https://registry.yarnpkg.com/webextension-polyfill-ts/-/webextension-polyfill-ts-0.25.0.tgz#fff041626365dbd0e29c40b197e989a55ec221ca" + integrity sha512-ikQhwwHYkpBu00pFaUzIKY26I6L87DeRI+Q6jBT1daZUNuu8dSrg5U9l/ZbqdaQ1M/TTSPKeAa3kolP5liuedw== + dependencies: + webextension-polyfill "^0.7.0" + +"webextension-polyfill@>=0.10.0 <1.0": + version "0.12.0" + resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.12.0.tgz#f62c57d2cd42524e9fbdcee494c034cae34a3d69" + integrity sha512-97TBmpoWJEE+3nFBQ4VocyCdLKfw54rFaJ6EVQYLBCXqCIpLSZkwGgASpv4oPt9gdKCJ80RJlcmNzNn008Ag6Q== + +webextension-polyfill@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.7.0.tgz#0df1120ff0266056319ce1a622b09ad8d4a56505" + integrity sha512-su48BkMLxqzTTvPSE1eWxKToPS2Tv5DLGxKexLEVpwFd6Po6N8hhSLIvG6acPAg7qERoEaDL+Y5HQJeJeml5Aw== + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" diff --git a/packages/extension/extension-bridge-hosted/package.json b/packages/extension/extension-bridge-hosted/package.json index 09a79a5a..d834ccd1 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,8 +28,8 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/extension/extension-bridge-injected/package.json b/packages/extension/extension-bridge-injected/package.json index 1c6858c9..b70ed5b9 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19" } } diff --git a/packages/injected/package.json b/packages/injected/package.json index ea317f16..5f572822 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-injected", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -42,12 +42,12 @@ "electron": "*" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/desktop-bridge-injected": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", - "@onekeyfe/inpage-providers-hub": "2.1.18", - "@onekeyfe/native-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/desktop-bridge-injected": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", + "@onekeyfe/inpage-providers-hub": "2.1.19", + "@onekeyfe/native-bridge-injected": "2.1.19", "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 27a6befd..f459603f 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,7 +28,7 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19" } } diff --git a/packages/providers/inpage-providers-hub/package.json b/packages/providers/inpage-providers-hub/package.json index bd215ef0..fbc79905 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -30,26 +30,26 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/onekey-algo-provider": "2.1.18", - "@onekeyfe/onekey-alph-provider": "2.1.18", - "@onekeyfe/onekey-aptos-provider": "2.1.18", - "@onekeyfe/onekey-bfc-provider": "2.1.18", - "@onekeyfe/onekey-btc-provider": "2.1.18", - "@onekeyfe/onekey-cardano-provider": "2.1.18", - "@onekeyfe/onekey-conflux-provider": "2.1.18", - "@onekeyfe/onekey-cosmos-provider": "2.1.18", - "@onekeyfe/onekey-eth-provider": "2.1.18", - "@onekeyfe/onekey-nostr-provider": "2.1.18", - "@onekeyfe/onekey-polkadot-provider": "2.1.18", - "@onekeyfe/onekey-private-provider": "2.1.18", - "@onekeyfe/onekey-scdo-provider": "2.1.18", - "@onekeyfe/onekey-solana-provider": "2.1.18", - "@onekeyfe/onekey-sui-provider": "2.1.18", - "@onekeyfe/onekey-ton-provider": "2.1.18", - "@onekeyfe/onekey-tron-provider": "2.1.18", - "@onekeyfe/onekey-webln-provider": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/onekey-algo-provider": "2.1.19", + "@onekeyfe/onekey-alph-provider": "2.1.19", + "@onekeyfe/onekey-aptos-provider": "2.1.19", + "@onekeyfe/onekey-bfc-provider": "2.1.19", + "@onekeyfe/onekey-btc-provider": "2.1.19", + "@onekeyfe/onekey-cardano-provider": "2.1.19", + "@onekeyfe/onekey-conflux-provider": "2.1.19", + "@onekeyfe/onekey-cosmos-provider": "2.1.19", + "@onekeyfe/onekey-eth-provider": "2.1.19", + "@onekeyfe/onekey-nostr-provider": "2.1.19", + "@onekeyfe/onekey-polkadot-provider": "2.1.19", + "@onekeyfe/onekey-private-provider": "2.1.19", + "@onekeyfe/onekey-scdo-provider": "2.1.19", + "@onekeyfe/onekey-solana-provider": "2.1.19", + "@onekeyfe/onekey-sui-provider": "2.1.19", + "@onekeyfe/onekey-ton-provider": "2.1.19", + "@onekeyfe/onekey-tron-provider": "2.1.19", + "@onekeyfe/onekey-webln-provider": "2.1.19", "web3": "^1.7.3" }, "devDependencies": { diff --git a/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts b/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts index e9a9c742..971fa1ea 100644 --- a/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts +++ b/packages/providers/inpage-providers-hub/src/injectWeb3Provider.ts @@ -5,7 +5,11 @@ import { ProviderEthereum, shimWeb3, registerEIP6963Provider } from '@onekeyfe/o import { ProviderPrivate } from '@onekeyfe/onekey-private-provider'; import { ProviderSolana, registerSolanaWallet, WalletIcon } from '@onekeyfe/onekey-solana-provider'; // import { ProviderStarcoin } from '@onekeyfe/onekey-starcoin-provider'; -import { ProviderAptos, ProviderAptosMartian } from '@onekeyfe/onekey-aptos-provider'; +import { + ProviderAptos, + ProviderAptosMartian, + registerAptosWallet, +} from '@onekeyfe/onekey-aptos-provider'; import { ProviderConflux } from '@onekeyfe/onekey-conflux-provider'; import { ProviderAlph, registerAlephiumProvider } from '@onekeyfe/onekey-alph-provider'; import { ProviderTron } from '@onekeyfe/onekey-tron-provider'; @@ -181,11 +185,13 @@ function injectWeb3Provider(): unknown { }); defineWindowProperty('ethereum', ethereum); + // OneKey Ethereum EIP6963 Provider registerEIP6963Provider({ image: WALLET_CONNECT_INFO.onekey.icon, provider: ethereum, }); + // Override MetaMask EIP6963 Provider if (checkWalletSwitchEnable()) { registerEIP6963Provider({ uuid: '7677b54f-3486-46e2-4e37-bf8747814f', @@ -251,17 +257,30 @@ function injectWeb3Provider(): unknown { // TODO use initializeInpageProvider.ts window.dispatchEvent(new Event('ethereum#initialized')); - // Solana Standard Wallet - if (checkWalletSwitchEnable()) { - registerSolanaWallet(solana, { - icon: WALLET_CONNECT_INFO.onekey.icon as WalletIcon, - }); - } + // OneKey Solana Standard Wallet + registerSolanaWallet(solana, { + icon: WALLET_CONNECT_INFO.onekey.icon as WalletIcon, + }); - // Sui Standard Wallet + // OneKey Sui Standard Wallet + registerSuiWallet(sui, { + logo: WALLET_CONNECT_INFO.onekey.icon, + }); + + // OneKey Aptos Standard Wallet + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + registerAptosWallet(martian, { + name: WALLET_CONNECT_INFO.onekey.text, + logo: WALLET_CONNECT_INFO.onekey.icon as WalletIcon, + }); + + // Override Petra Aptos Standard Wallet if (checkWalletSwitchEnable()) { - registerSuiWallet(sui, { - logo: WALLET_CONNECT_INFO.onekey.icon, + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + registerAptosWallet(martian, { + name: 'Petra', + logo: WALLET_CONNECT_INFO.petra.icon as WalletIcon, + url: 'https://chrome.google.com/webstore/detail/petra-aptos-wallet/ejjladinnckdgjemekebdpeokbikhfci', }); } @@ -273,17 +292,15 @@ function injectWeb3Provider(): unknown { }); } - // BFC Standard Wallet - if (checkWalletSwitchEnable()) { - registerBfcWallet(bfc, { - logo: WALLET_CONNECT_INFO.onekey.icon, - }); - } + // OneKey BFC Standard Wallet + registerBfcWallet(bfc, { + logo: WALLET_CONNECT_INFO.onekey.icon, + }); - if (checkWalletSwitchEnable()) { - registerPolkadot(polkadot); - } + // OneKey Polkadot Standard Wallet + registerPolkadot(polkadot); + // Override Polkadot Standard Wallet if (checkWalletSwitchEnable()) { registerPolkadot(polkadot, 'polkadot-js', '0.44.1'); } diff --git a/packages/providers/onekey-algo-provider/package.json b/packages/providers/onekey-algo-provider/package.json index 4c67d00f..c4b145cf 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-alph-provider/package.json b/packages/providers/onekey-alph-provider/package.json index e4fcc443..a1548552 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.18", + "version": "2.1.19", "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.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-aptos-provider/package.json b/packages/providers/onekey-aptos-provider/package.json index c62b523f..b76f9148 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,11 +28,19 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", - "aptos": "^1.3.17", + "@aptos-labs/wallet-standard": "^0.2.0", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", + "@wallet-standard/core": "1.0.3", "eth-rpc-errors": "^4.0.3" + }, + "peerDependencies": { + "@aptos-labs/ts-sdk": "^1.30.0" + }, + "devDependencies": { + "@aptos-labs/ts-sdk": "^1.30.0", + "aptos": "^1.3.17" } } diff --git a/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts b/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts index 3ed4cf5f..99ba529d 100644 --- a/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts +++ b/packages/providers/onekey-aptos-provider/src/OnekeyAptosProvider.ts @@ -2,19 +2,39 @@ import { IInpageProviderConfig } from '@onekeyfe/cross-inpage-provider-core'; import { getOrCreateExtInjectedJsBridge } from '@onekeyfe/extension-bridge-injected'; import { ProviderAptosBase } from './ProviderAptosBase'; -import { AptosAccountInfo, ProviderState, SignMessagePayload, SignMessageResponse } from './types'; +import { + AptosAccountInfo, + ProviderState, + SignMessagePayload, + SignMessagePayloadCompatible, + SignMessageResponse, + SignMessageResponseCompatible, +} 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'; -import { Types } from 'aptos'; +import type { Types } from 'aptos'; +import type { AccountAuthenticator } from '@aptos-labs/ts-sdk'; +import { + AccountAuthenticatorEd25519, + Ed25519PublicKey, + Ed25519Signature, +} from '@aptos-labs/ts-sdk'; export type AptosProviderType = 'petra' | 'martian'; +type SignTransactionV2Params = { + transaction: string; + transactionType: 'simple' | 'multi_agent'; + asFeePayer?: boolean; +}; + const PROVIDER_EVENTS = { 'connect': 'connect', 'disconnect': 'disconnect', 'accountChanged': 'accountChanged', 'networkChange': 'networkChange', + 'accountChangedV2': 'accountChangedV2', 'message_low_level': 'message_low_level', } as const; @@ -23,6 +43,7 @@ type AptosProviderEventsMap = { [PROVIDER_EVENTS.disconnect]: () => void; [PROVIDER_EVENTS.accountChanged]: (account: string | null) => void; [PROVIDER_EVENTS.networkChange]: (name: string | null) => void; + [PROVIDER_EVENTS.accountChangedV2]: (account: AptosAccountInfo | null) => void; [PROVIDER_EVENTS.message_low_level]: (payload: IJsonRpcRequest) => void; }; @@ -37,11 +58,17 @@ export type AptosRequest = { 'getNetworkURL': () => Promise; - 'signMessage': (payload: SignMessagePayload) => Promise; + 'signMessage': (payload: SignMessagePayloadCompatible) => Promise; 'signAndSubmitTransaction': (transactions: Types.TransactionPayload) => Promise; 'signTransaction': (transactions: Types.TransactionPayload) => Promise; + + 'signTransactionV2': (params: SignTransactionV2Params) => Promise<{ + type: 'ed25519' | 'multi_ed25519' | 'secp256k1'; + signature: string; + publicKey: string; + }>; }; type JsBridgeRequest = { @@ -85,6 +112,8 @@ export interface IProviderAptos extends ProviderAptosBase { signTransaction(transactions: any): Promise; + signTransactionV2(params: SignTransactionV2Params): Promise; + /** * Sign message * @returns Transaction @@ -105,6 +134,9 @@ function isWalletEventMethodMatch({ method, name }: { method: string; name: stri } class ProviderAptos extends ProviderAptosBase implements IProviderAptos { + readonly isAIP62Standard = true; + readonly isSignTransactionV1_1 = false; + protected _state: ProviderState = { account: null, }; @@ -115,6 +147,10 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { return this._state?.account?.publicKey ?? null; } + get accountInfoOneKey() { + return this._state?.account ?? null; + } + constructor(props: OneKeyAptosProviderProps) { super({ ...props, @@ -163,6 +199,7 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { const address = account?.address ?? null; this.emit('connect', address); this.emit('accountChanged', address); + this.emit('accountChangedV2', account); } } } @@ -174,6 +211,7 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { if (options.emit) { this.emit('disconnect'); this.emit('accountChanged', null); + this.emit('accountChangedV2', null); } } } @@ -187,6 +225,7 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { const account = payload; if (this.isAccountsChanged(account)) { this.emit('accountChanged', account?.address || null); + this.emit('accountChangedV2', account); } if (!account) { this._handleDisconnected(); @@ -262,13 +301,50 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { return new Uint8Array(Buffer.from(res, 'hex')); } - signMessage(payload: SignMessagePayload): Promise { + async signTransactionV2(params: SignTransactionV2Params): Promise { + const res = await this._callBridge({ + method: 'signTransactionV2', + params: { + transaction: params.transaction, + transactionType: params.transactionType, + asFeePayer: params.asFeePayer, + }, + }); + if (!res) throw web3Errors.provider.unauthorized(); + + if (res.type === 'ed25519') { + return new AccountAuthenticatorEd25519( + new Ed25519PublicKey(res.publicKey), + new Ed25519Signature(res.signature), + ); + } + + throw new Error('Unsupported sign type'); + } + + async signMessageCompatible( + payload: SignMessagePayloadCompatible, + ): Promise { return this._callBridge({ method: 'signMessage', params: payload, }); } + async signMessage(payload: SignMessagePayload): Promise { + const payloadCompatible: SignMessagePayloadCompatible = { + ...payload, + nonce: payload.nonce.toString(), + }; + + const signMessageCompatible = await this.signMessageCompatible(payloadCompatible); + + return { + ...signMessageCompatible, + nonce: parseInt(signMessageCompatible.nonce), + }; + } + network(): Promise { return this._callBridge({ method: 'network', @@ -324,6 +400,10 @@ class ProviderAptos extends ProviderAptosBase implements IProviderAptos { return super.on(PROVIDER_EVENTS.accountChanged, listener); } + onAccountChangeStandardV2(listener: AptosProviderEventsMap['accountChangedV2']): this { + return super.on(PROVIDER_EVENTS.accountChangedV2, listener); + } + onDisconnect(listener: AptosProviderEventsMap['disconnect']): this { return super.on(PROVIDER_EVENTS.disconnect, listener); } diff --git a/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts b/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts index e7921a13..2112b62d 100644 --- a/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts +++ b/packages/providers/onekey-aptos-provider/src/OnekeyMartianAptosProvider.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { IInpageProviderConfig } from '@onekeyfe/cross-inpage-provider-core'; import { getOrCreateExtInjectedJsBridge } from '@onekeyfe/extension-bridge-injected'; -import { Types, MaybeHexString } from 'aptos'; +import type { Types, MaybeHexString } from 'aptos'; import { TxnPayload, TxnOptions } from './types'; import type * as TypeUtils from './type-utils'; import { AptosProviderType, ProviderAptos } from './OnekeyAptosProvider'; @@ -265,7 +265,8 @@ class ProviderAptosMartian extends ProviderAptos { } async submitTransaction(transaction: Uint8Array | string): Promise { - const txraw = typeof transaction === 'string' ? this._convertStringToUint8Array(transaction) : transaction; + const txraw = + typeof transaction === 'string' ? this._convertStringToUint8Array(transaction) : transaction; return this._callMartianBridge({ method: 'submitTransaction', params: Buffer.from(txraw).toString('hex'), diff --git a/packages/providers/onekey-aptos-provider/src/StandardProvider.ts b/packages/providers/onekey-aptos-provider/src/StandardProvider.ts new file mode 100644 index 00000000..c1af3d21 --- /dev/null +++ b/packages/providers/onekey-aptos-provider/src/StandardProvider.ts @@ -0,0 +1,269 @@ +import { Ed25519Signature, Ed25519PublicKey, Network, AccountAddress } from '@aptos-labs/ts-sdk'; +import { + APTOS_CHAINS, + AccountInfo, + registerWallet, + UserResponseStatus, +} from '@aptos-labs/wallet-standard'; + +import type { + Account, + AccountAuthenticator, + AnyRawTransaction, + SigningScheme, +} from '@aptos-labs/ts-sdk'; +import type { + AptosConnectMethod, + AptosDisconnectMethod, + AptosGetAccountMethod, + AptosGetNetworkMethod, + AptosOnAccountChangeMethod, + AptosSignMessageInput, + AptosSignMessageMethod, + AptosSignMessageOutput, + AptosSignTransactionMethod, + AptosWallet, + IdentifierArray, + NetworkInfo, + UserResponse, + AptosWalletAccount, + AptosOnNetworkChangeMethod, + AptosFeatures, + WalletIcon, + AptosOnAccountChangeInput, + AptosOnNetworkChangeInput, +} from '@aptos-labs/wallet-standard'; + +import type { ProviderAptos } from './OnekeyAptosProvider'; +import type { WalletInfo } from './types'; +import { stripHexPrefix } from './utils'; + +export class WalletAccount implements AptosWalletAccount { + address: string; + publicKey: Uint8Array; + + chains: IdentifierArray = APTOS_CHAINS; + features: IdentifierArray = []; + signingScheme: SigningScheme; + label?: string; + icon?: WalletIcon | undefined; + + constructor(account: Account) { + this.address = account.accountAddress.toString(); + this.publicKey = account.publicKey.toUint8Array(); + this.chains = APTOS_CHAINS; + this.signingScheme = account.signingScheme; + } +} + +export function registerAptosWallet(provider: ProviderAptos, options: WalletInfo) { + try { + registerWallet(new AptosStandardProvider(provider, options)); + } catch (error) { + console.error(error); + } +} + +export class AptosStandardProvider implements AptosWallet { + readonly url: string = 'https://onekey.so'; + + readonly options?: WalletInfo; + + readonly version = '1.0.0'; + + readonly name: string = 'OneKey'; + + icon: WalletIcon = 'data:image/svg+xml;base64,'; + provider: ProviderAptos; + + constructor(provider: ProviderAptos, options: WalletInfo) { + this.provider = provider; + this.name = options.name; + this.icon = options.logo; + this.url = options.url ? options.url : this.url; + } + + chains = APTOS_CHAINS; + + accounts: WalletAccount[] = []; + + get features(): AptosFeatures { + return { + 'aptos:account': { + version: '1.0.0', + account: this.account, + }, + 'aptos:connect': { + version: '1.0.0', + connect: this.connect, + }, + 'aptos:disconnect': { + version: '1.0.0', + disconnect: this.disconnect, + }, + 'aptos:network': { + version: '1.0.0', + network: this.network, + }, + 'aptos:signTransaction': { + version: '1.0.0', + signTransaction: this.signTransaction, + }, + 'aptos:signMessage': { + version: '1.0.0', + signMessage: this.signMessage, + }, + 'aptos:onAccountChange': { + version: '1.0.0', + onAccountChange: this.onAccountChange, + }, + 'aptos:onNetworkChange': { + version: '1.0.0', + onNetworkChange: this.onNetworkChange, + }, + }; + } + + account: AptosGetAccountMethod = async (): Promise => { + const address = await this.provider.account(); + const account = new AccountInfo({ + address: address.address, + publicKey: new Ed25519PublicKey(address.publicKey), + }); + return account; + }; + + connect: AptosConnectMethod = async (): Promise> => { + try { + const address = await this.provider.connect(); + + const account = new AccountInfo({ + address: address.address, + publicKey: new Ed25519PublicKey(address.publicKey), + }); + + return { + status: UserResponseStatus.APPROVED, + args: account, + }; + } catch (e) { + return { + status: UserResponseStatus.REJECTED, + }; + } + }; + + /** + * Return the name, chainId, and url of the network connection your wallet is using to connect to the Aptos chain. + * + * @returns Which network the connected Wallet is pointing to. + */ + network: AptosGetNetworkMethod = async (): Promise => { + const network = await this.provider.getNetwork(); + return { + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access + name: network.chainId === 1 ? Network.MAINNET : Network.DEVNET, + chainId: network.chainId, + url: network.url, + }; + }; + + disconnect: AptosDisconnectMethod = async (): Promise => { + return await this.provider.disconnect(); + }; + + /** + * REVISION - Implement this function using your Wallet. + * + * @param transaction - A transaction that the user should have the ability to sign if they choose to. + * @param asFeePayer - Optionally, another this signature is acting as a fee-payer for the transaction being signed. + * @returns The result of whether the user chose to sign the transaction or not. + */ + signTransaction: AptosSignTransactionMethod = async ( + transaction: AnyRawTransaction, + asFeePayer?: boolean, + ): Promise> => { + let transactionType: 'simple' | 'multi_agent'; + if (transaction.secondarySignerAddresses) { + transactionType = 'multi_agent'; + } else { + transactionType = 'simple'; + } + + const signature = await this.provider.signTransactionV2({ + transaction: transaction.bcsToHex().toStringWithoutPrefix(), + transactionType, + asFeePayer, + }); + + return Promise.resolve({ + status: UserResponseStatus.APPROVED, + args: signature, + }); + }; + + /** + * @param input - A message to sign with the private key of the connected account. + * @returns A user response either with a signed message, or the user rejecting to sign. + */ + signMessage: AptosSignMessageMethod = async ( + input: AptosSignMessageInput, + ): Promise> => { + try { + const result = await this.provider.signMessageCompatible({ + address: input.address, + application: input.application, + chainId: input.chainId, + message: input.message, + nonce: input.nonce, + }); + + return { + status: UserResponseStatus.APPROVED, + args: { + address: result.address, + fullMessage: result.fullMessage, + message: result.message, + nonce: result.nonce, + prefix: 'APTOS', + signature: new Ed25519Signature(result.signature), + }, + }; + } catch (e) { + return { + status: UserResponseStatus.REJECTED, + }; + } + }; + + onAccountChange: AptosOnAccountChangeMethod = async ( + input: AptosOnAccountChangeInput, + ): Promise => { + this.provider.onAccountChangeStandardV2((account) => { + const address: string = stripHexPrefix(account?.address ?? ''); + if (account && address.length === 64) { + input( + new AccountInfo({ + address: new AccountAddress(Buffer.from(address, 'hex')), + publicKey: new Ed25519PublicKey(account?.publicKey ?? ''), + }), + ); + } + }); + return Promise.resolve(); + }; + + onNetworkChange: AptosOnNetworkChangeMethod = async ( + input: AptosOnNetworkChangeInput, + ): Promise => { + this.provider.onNetworkChange((network) => { + const chainId = network === 'Mainnet' ? 1 : 2; + const name = network === 'Mainnet' ? Network.MAINNET : Network.DEVNET; + input({ + name, + chainId, + }); + }); + return Promise.resolve(); + }; +} diff --git a/packages/providers/onekey-aptos-provider/src/index.ts b/packages/providers/onekey-aptos-provider/src/index.ts index 7ae05d58..d215ccd0 100644 --- a/packages/providers/onekey-aptos-provider/src/index.ts +++ b/packages/providers/onekey-aptos-provider/src/index.ts @@ -1,3 +1,4 @@ export * from './OnekeyAptosProvider'; export * from './OnekeyMartianAptosProvider'; export * from './ProviderAptosBase'; +export * from './StandardProvider'; diff --git a/packages/providers/onekey-aptos-provider/src/types.ts b/packages/providers/onekey-aptos-provider/src/types.ts index 9fac50df..343f1791 100644 --- a/packages/providers/onekey-aptos-provider/src/types.ts +++ b/packages/providers/onekey-aptos-provider/src/types.ts @@ -1,3 +1,5 @@ +import { WalletIcon } from '@wallet-standard/core'; + /* eslint-disable @typescript-eslint/no-explicit-any */ export type AptosAccountInfo = { publicKey: string; @@ -13,7 +15,7 @@ export type TxnOptions = { 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; }; @@ -24,6 +26,25 @@ export type TxnPayload = { arguments: any[]; }; +export interface SignMessagePayloadCompatible { + address?: boolean; // Should we include the address of the account in the message + application?: boolean; // Should we include the domain of the dapp + chainId?: boolean; // Should we include the current chain id the wallet is connected to + message: string; // The message to be signed and displayed to the user + nonce: string; // A nonce the dapp should generate +} + +export interface SignMessageResponseCompatible { + address?: string; + application?: string; + chainId?: number; + fullMessage: string; // The message that was generated to sign + message: string; // The message passed in by the user + nonce: string; + prefix: string; // Should always be APTOS + signature: string; // The signed full message +} + export interface SignMessagePayload { address?: boolean; // Should we include the address of the account in the message application?: boolean; // Should we include the domain of the dapp @@ -42,3 +63,9 @@ export interface SignMessageResponse { prefix: string; // Should always be APTOS signature: string; // The signed full message } + +export type WalletInfo = { + name: string; + logo: WalletIcon; + url?: string | undefined; +}; diff --git a/packages/providers/onekey-aptos-provider/src/utils.ts b/packages/providers/onekey-aptos-provider/src/utils.ts new file mode 100644 index 00000000..4e8dcdeb --- /dev/null +++ b/packages/providers/onekey-aptos-provider/src/utils.ts @@ -0,0 +1,7 @@ +export function hasHexPrefix(data: string): boolean { + return data.startsWith('0x'); +} + +export function stripHexPrefix(hex: string): string { + return hasHexPrefix(hex) ? hex.slice(2) : hex; +} diff --git a/packages/providers/onekey-aptos-provider/yarn.lock b/packages/providers/onekey-aptos-provider/yarn.lock index 2e7a7be3..ca237f68 100644 --- a/packages/providers/onekey-aptos-provider/yarn.lock +++ b/packages/providers/onekey-aptos-provider/yarn.lock @@ -2,11 +2,65 @@ # yarn lockfile v1 +"@aptos-labs/aptos-cli@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@aptos-labs/aptos-cli/-/aptos-cli-1.0.2.tgz#91bd1368cf808f715d102822b7d4032388cdad79" + integrity sha512-PYPsd0Kk3ynkxNfe3S4fanI3DiUICCoh4ibQderbvjPFL5A0oK6F4lPEO2t0MDsQySTk2t4vh99Xjy6Bd9y+aQ== + dependencies: + commander "^12.1.0" + +"@aptos-labs/aptos-client@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@aptos-labs/aptos-client/-/aptos-client-0.1.1.tgz#cbcd2a73bad252e344318baec32ecc54d8136ee0" + integrity sha512-kJsoy4fAPTOhzVr7Vwq8s/AUg6BQiJDa7WOqRzev4zsuIS3+JCuIZ6vUd7UBsjnxtmguJJulMRs9qWCzVBt2XA== + dependencies: + axios "1.7.4" + got "^11.8.6" + +"@aptos-labs/ts-sdk@^1.30.0": + version "1.33.0" + resolved "https://registry.yarnpkg.com/@aptos-labs/ts-sdk/-/ts-sdk-1.33.0.tgz#4da4501d04ad38381630b06d7d8a29bc4b3f1855" + integrity sha512-svdlPH5r2dlSue2D9WXaaTslsmX18WLytAho6IRZJxQjEssglk64I6c1G9S8BTjRQj/ug6ahTwp6lx3eWuyd8Q== + dependencies: + "@aptos-labs/aptos-cli" "^1.0.2" + "@aptos-labs/aptos-client" "^0.1.1" + "@noble/curves" "^1.4.0" + "@noble/hashes" "^1.4.0" + "@scure/bip32" "^1.4.0" + "@scure/bip39" "^1.3.0" + eventemitter3 "^5.0.1" + form-data "^4.0.0" + js-base64 "^3.7.7" + jwt-decode "^4.0.0" + poseidon-lite "^0.2.0" + +"@aptos-labs/wallet-standard@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@aptos-labs/wallet-standard/-/wallet-standard-0.2.0.tgz#d0f9d422d63ac93a02c2eb3157090434ded77379" + integrity sha512-4aoO4MlqzrW+CtO83MwbHMMtu91DL5B7YKRvhJbRnVB4R+QCOwBI/aQTkNZbKBDfOplLlqWTTl6Li0l6e02YLQ== + +"@noble/curves@^1.4.0", "@noble/curves@~1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.7.0.tgz#0512360622439256df892f21d25b388f52505e45" + integrity sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw== + dependencies: + "@noble/hashes" "1.6.0" + "@noble/hashes@1.1.3": version "1.1.3" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.3.tgz#360afc77610e0a61f3417e497dcf36862e4f8111" integrity sha512-CE0FCR57H2acVI5UOzIGSSIYxZ6v/HOhDR0Ro9VLyhnzLwx0o8W1mmgaqlEUx4049qJDlIBRztv5k+MM8vbO3A== +"@noble/hashes@1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.0.tgz#d4bfb516ad6e7b5111c216a5cc7075f4cf19e6c5" + integrity sha512-YUULf0Uk4/mAA89w+k3+yUYh6NrEvxZa5T6SY3wlMvE2chHkxFUUIDI8/XW1QSC357iA5pSnqt7XEhvFOqmDyQ== + +"@noble/hashes@^1.4.0", "@noble/hashes@~1.6.0": + version "1.6.1" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.1.tgz#df6e5943edcea504bac61395926d6fd67869a0d5" + integrity sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w== + "@noble/hashes@~1.1.1": version "1.1.2" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.2.tgz#e9e035b9b166ca0af657a7848eb2718f0f22f183" @@ -17,6 +71,20 @@ resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.1.tgz#ebb651ee52ff84f420097055f4bf46cfba403938" integrity sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA== +"@scure/base@~1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.1.tgz#dd0b2a533063ca612c17aa9ad26424a2ff5aa865" + integrity sha512-DGmGtC8Tt63J5GfHgfl5CuAXh96VF/LD8K9Hr/Gv0J2lAoRGlPOMpqMpMbCTOoOJMZCk2Xt+DskdDyn6dEFdzQ== + +"@scure/bip32@^1.4.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.6.0.tgz#6dbc6b4af7c9101b351f41231a879d8da47e0891" + integrity sha512-82q1QfklrUUdXJzjuRU7iG7D7XiFx5PHYVS0+oeNKhyDLT7WPqs6pBcM2W5ZdwOwKCwoE1Vy1se+DHjcXwCYnA== + dependencies: + "@noble/curves" "~1.7.0" + "@noble/hashes" "~1.6.0" + "@scure/base" "~1.2.1" + "@scure/bip39@1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.1.0.tgz#92f11d095bae025f166bef3defcc5bf4945d419a" @@ -25,6 +93,98 @@ "@noble/hashes" "~1.1.1" "@scure/base" "~1.1.0" +"@scure/bip39@^1.3.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.5.0.tgz#c8f9533dbd787641b047984356531d84485f19be" + integrity sha512-Dop+ASYhnrwm9+HA/HwXg7j2ZqM6yk2fyLWb5znexjctFY3+E+eU8cIWI0Pql0Qx4hPZCijlGq4OL71g+Uz30A== + dependencies: + "@noble/hashes" "~1.6.0" + "@scure/base" "~1.2.1" + +"@sindresorhus/is@^4.0.0": + version "4.6.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f" + integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== + +"@szmarczak/http-timer@^4.0.5": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807" + integrity sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w== + dependencies: + defer-to-connect "^2.0.0" + +"@types/cacheable-request@^6.0.1": + version "6.0.3" + resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.3.tgz#a430b3260466ca7b5ca5bfd735693b36e7a9d183" + integrity sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw== + dependencies: + "@types/http-cache-semantics" "*" + "@types/keyv" "^3.1.4" + "@types/node" "*" + "@types/responselike" "^1.0.0" + +"@types/http-cache-semantics@*": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz#b979ebad3919799c979b17c72621c0bc0a31c6c4" + integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA== + +"@types/keyv@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.4.tgz#3ccdb1c6751b0c7e52300bcdacd5bcbf8faa75b6" + integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg== + dependencies: + "@types/node" "*" + +"@types/node@*": + version "22.10.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.0.tgz#89bfc9e82496b9c7edea3382583fa94f75896e81" + integrity sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA== + dependencies: + undici-types "~6.20.0" + +"@types/responselike@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.3.tgz#cc29706f0a397cfe6df89debfe4bf5cea159db50" + integrity sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw== + dependencies: + "@types/node" "*" + +"@wallet-standard/app@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@wallet-standard/app/-/app-1.0.1.tgz#f83c3ae887f7fb52497a7b259bba734ae10a2994" + integrity sha512-LnLYq2Vy2guTZ8GQKKSXQK3+FRGPil75XEdkZqE6fiLixJhZJoJa5hT7lXxwe0ykVTt9LEThdTbOpT7KadS26Q== + dependencies: + "@wallet-standard/base" "^1.0.1" + +"@wallet-standard/base@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@wallet-standard/base/-/base-1.0.1.tgz#860dd94d47c9e3c5c43b79d91c6afdbd7a36264e" + integrity sha512-1To3ekMfzhYxe0Yhkpri+Fedq0SYcfrOfJi3vbLjMwF2qiKPjTGLwZkf2C9ftdQmxES+hmxhBzTwF4KgcOwf8w== + +"@wallet-standard/core@1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@wallet-standard/core/-/core-1.0.3.tgz#3b6743e207ca4e1e725ae20f1838b400fb0694ff" + integrity sha512-Jb33IIjC1wM1HoKkYD7xQ6d6PZ8EmMZvyc8R7dFgX66n/xkvksVTW04g9yLvQXrLFbcIjHrCxW6TXMhvpsAAzg== + dependencies: + "@wallet-standard/app" "^1.0.1" + "@wallet-standard/base" "^1.0.1" + "@wallet-standard/features" "^1.0.3" + "@wallet-standard/wallet" "^1.0.1" + +"@wallet-standard/features@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@wallet-standard/features/-/features-1.0.3.tgz#c992876c5e4f7a0672f8869c4146c87e0dfe48c8" + integrity sha512-m8475I6W5LTatTZuUz5JJNK42wFRgkJTB0I9tkruMwfqBF2UN2eomkYNVf9RbrsROelCRzSFmugqjKZBFaubsA== + dependencies: + "@wallet-standard/base" "^1.0.1" + +"@wallet-standard/wallet@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@wallet-standard/wallet/-/wallet-1.0.1.tgz#95438941a2a1ee12a794444357b59d53e19b374c" + integrity sha512-qkhJeuQU2afQTZ02yMZE5SFc91Fo3hyFjFkpQglHudENNyiSG0oUKcIjky8X32xVSaumgTZSQUAzpXnCTWHzKQ== + dependencies: + "@wallet-standard/base" "^1.0.1" + aptos@^1.3.17: version "1.3.17" resolved "https://registry.yarnpkg.com/aptos/-/aptos-1.3.17.tgz#bdfb8ab9790b52abbeefd862721007b4d13c9302" @@ -49,6 +209,40 @@ axios@0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" +axios@1.7.4: + version "1.7.4" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.4.tgz#4c8ded1b43683c8dd362973c393f3ede24052aa2" + integrity sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +cacheable-lookup@^5.0.3: + version "5.0.4" + resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005" + integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== + +cacheable-request@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.4.tgz#7a33ebf08613178b403635be7b899d3e69bbe817" + integrity sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^4.0.0" + lowercase-keys "^2.0.0" + normalize-url "^6.0.1" + responselike "^2.0.0" + +clone-response@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.3.tgz#af2032aa47816399cf5f0a1d0db902f517abb8c3" + integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA== + dependencies: + mimic-response "^1.0.0" + combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -56,11 +250,35 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^12.1.0: + version "12.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-12.1.0.tgz#01423b36f501259fdaac4d0e4d60c96c991585d3" + integrity sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA== + +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== + dependencies: + mimic-response "^3.1.0" + +defer-to-connect@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== + delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + eth-rpc-errors@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz#6ddb6190a4bf360afda82790bb7d9d5e724f423a" @@ -68,6 +286,11 @@ eth-rpc-errors@^4.0.3: dependencies: fast-safe-stringify "^2.0.6" +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + fast-safe-stringify@^2.0.6: version "2.1.1" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" @@ -78,6 +301,11 @@ follow-redirects@^1.14.9: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== +follow-redirects@^1.15.6: + version "1.15.9" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" + integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== + form-data@4.0.0, form-data@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" @@ -87,6 +315,70 @@ form-data@4.0.0, form-data@^4.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" +get-stream@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + +got@^11.8.6: + version "11.8.6" + resolved "https://registry.yarnpkg.com/got/-/got-11.8.6.tgz#276e827ead8772eddbcfc97170590b841823233a" + integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g== + dependencies: + "@sindresorhus/is" "^4.0.0" + "@szmarczak/http-timer" "^4.0.5" + "@types/cacheable-request" "^6.0.1" + "@types/responselike" "^1.0.0" + cacheable-lookup "^5.0.3" + cacheable-request "^7.0.2" + decompress-response "^6.0.0" + http2-wrapper "^1.0.0-beta.5.2" + lowercase-keys "^2.0.0" + p-cancelable "^2.0.0" + responselike "^2.0.0" + +http-cache-semantics@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== + +http2-wrapper@^1.0.0-beta.5.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/http2-wrapper/-/http2-wrapper-1.0.3.tgz#b8f55e0c1f25d4ebd08b3b0c2c079f9590800b3d" + integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg== + dependencies: + quick-lru "^5.1.1" + resolve-alpn "^1.0.0" + +js-base64@^3.7.7: + version "3.7.7" + resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.7.tgz#e51b84bf78fbf5702b9541e2cb7bfcb893b43e79" + integrity sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw== + +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + +jwt-decode@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b" + integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA== + +keyv@^4.0.0: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" + +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + mime-db@1.52.0: version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" @@ -99,7 +391,79 @@ mime-types@^2.1.12: dependencies: mime-db "1.52.0" +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== + +normalize-url@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" + integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== + +once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +p-cancelable@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf" + integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== + +poseidon-lite@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/poseidon-lite/-/poseidon-lite-0.2.1.tgz#7ad98e3a3aa5b91a1fd3a61a87460e9e46fd76d6" + integrity sha512-xIr+G6HeYfOhCuswdqcFpSX47SPhm0EpisWJ6h7fHlWwaVIvH3dLnejpatrtw6Xc6HaLrpq05y7VRfvDmDGIog== + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +pump@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.2.tgz#836f3edd6bc2ee599256c924ffe0d88573ddcbf8" + integrity sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + +resolve-alpn@^1.0.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz#b7adbdac3546aaaec20b45e7d8265927072726f9" + integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== + +responselike@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.1.tgz#9a0bc8fdc252f3fb1cca68b016591059ba1422bc" + integrity sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw== + dependencies: + lowercase-keys "^2.0.0" + tweetnacl@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== + +undici-types@~6.20.0: + version "6.20.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" + integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== diff --git a/packages/providers/onekey-bfc-provider/package.json b/packages/providers/onekey-bfc-provider/package.json index 922f9b99..f940a91d 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@benfen/bfc.js": "0.2.7", - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "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 29b7d908..922bd99e 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-cardano-provider/package.json b/packages/providers/onekey-cardano-provider/package.json index f42350ab..d26b1d45 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider", "cardano" @@ -29,9 +29,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-conflux-provider/package.json b/packages/providers/onekey-conflux-provider/package.json index f6725fc0..bcf3ea50 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-cosmos-provider/package.json b/packages/providers/onekey-cosmos-provider/package.json index 28da8dda..950b4b21 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.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 e37554a1..b479f28b 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "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 55561ca1..1df580da 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -35,10 +35,10 @@ "near-api-js": "^0.44.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "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 6e08da7a..ac322705 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-polkadot-provider/package.json b/packages/providers/onekey-polkadot-provider/package.json index c2521449..b1e977bc 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "@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 82dc7278..68e68526 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-scdo-provider/package.json b/packages/providers/onekey-scdo-provider/package.json index 2f6666ad..59c21ce2 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/providers/onekey-solana-provider/package.json b/packages/providers/onekey-solana-provider/package.json index c1aaaf9b..c4474061 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider", "solona" @@ -29,10 +29,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "@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 2e616a92..045d39ce 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@mysten/wallet-standard": "^0.7.2", - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "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 a36a71e1..a394172b 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,10 +28,10 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "@tonconnect/protocol": "^2.2.6" } } diff --git a/packages/providers/onekey-tron-provider/package.json b/packages/providers/onekey-tron-provider/package.json index 67759f01..eaaa2d5f 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -29,10 +29,10 @@ }, "dependencies": { "@noble/secp256k1": "1.7.1", - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18", + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19", "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 455508cd..2bfb8073 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.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -28,9 +28,9 @@ "start": "tsc --watch" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-errors": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18", - "@onekeyfe/extension-bridge-injected": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-errors": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19", + "@onekeyfe/extension-bridge-injected": "2.1.19" } } diff --git a/packages/types/package.json b/packages/types/package.json index 970a319c..a7f7bf97 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/cross-inpage-provider-types", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], diff --git a/packages/webview/package.json b/packages/webview/package.json index d3a5dd52..61acf929 100644 --- a/packages/webview/package.json +++ b/packages/webview/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/onekey-cross-webview", - "version": "2.1.18", + "version": "2.1.19", "keywords": [ "cross-inpage-provider" ], @@ -36,7 +36,7 @@ "react-native-webview": "^11.17.2" }, "dependencies": { - "@onekeyfe/cross-inpage-provider-core": "2.1.18", - "@onekeyfe/cross-inpage-provider-types": "2.1.18" + "@onekeyfe/cross-inpage-provider-core": "2.1.19", + "@onekeyfe/cross-inpage-provider-types": "2.1.19" } }