diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/bigdata.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/bigdata.ts new file mode 100644 index 00000000..b8b3cca9 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/bigdata.ts @@ -0,0 +1,43 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-bigdata', + name: '默认类型: 大数据模式', + description: 'SignTypedDataV4 BigData', + value: JSON.stringify({ + domain: { + name: 'Franklin', + version: '0.0.1', + chainId: params.chainId.toString(), + verifyingContract: '0x0000000000000000000000000000000000000000', + }, + primaryType: 'ForwardRequest', + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + ForwardRequest: [ + { name: 'from', type: 'address' }, + { name: 'to', type: 'address' }, + { name: 'value', type: 'uint256' }, + { name: 'gas', type: 'uint256' }, + { name: 'nonce', type: 'uint256' }, + { name: 'data', type: 'bytes' }, + ], + VerifyWallet: [ + { name: 'contents', type: 'string' }, + ], + }, + message: { + from: '0x0000000000000000000000000000000000000000', + to: '0x0000000000000000000000000000000000000000', + value: 0, + gas: 275755, + nonce: 3, + data: `0x${'01'.repeat(3150)}`, + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/index.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/index.ts new file mode 100644 index 00000000..7f2b9ac2 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/index.ts @@ -0,0 +1,29 @@ +import normal from './normal'; +import nestedArray from './nestedArray'; +import bigdata from './bigdata'; + +import permit from './permit'; +import permitSingle from './permitSingle'; +import permitBatch from './permitBatch'; +import permitTransferFrom from './permitTransferFrom'; +import permitBatchTransferFrom from './permitBatchTransferFrom'; +import permitWitnessTransferFrom from './permitWitnessTransferFrom'; + +import order from './order'; +import orderComponents from './orderComponents'; + +import type {IEIP712Params} from '../../types'; + +export default (params: IEIP712Params) => [ + normal(params), + permitWitnessTransferFrom(params), + nestedArray(params), + bigdata(params), + permit(params), + permitSingle(params), + permitBatch(params), + permitTransferFrom(params), + permitBatchTransferFrom(params), + order(params), + orderComponents(params), +]; diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/nestedArray.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/nestedArray.ts new file mode 100644 index 00000000..6b7e7834 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/nestedArray.ts @@ -0,0 +1,60 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-Nested-array', + name: '默认类型: 嵌套数组', + description: 'SignTypedDataV4 Nested Array', + value: JSON.stringify({ + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + ], + NestedArray: [ + { name: 'nestedItems', type: 'SingleItem[][]' }, + ], + SingleItem: [ + { name: 'id', type: 'uint256' }, + { name: 'value', type: 'string' }, + ], + }, + primaryType: 'NestedArray', + domain: { + chainId: params.chainId.toString(), + name: 'NestedArray', + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + version: '1', + }, + message: { + nestedItems: [ + [ + { + items: [ + { id: 1, value: 'Item1-1' }, + { id: 2, value: 'Item1-2' }, + ], + }, + { + items: [ + { id: 3, value: 'Item2-1' }, + { id: 4, value: 'Item2-2' }, + ], + }, + ], + [ + { + items: [ + { id: 5, value: 'Item3-1' }, + { id: 6, value: 'Item3-2' }, + ], + }, + { + items: [ + { id: 7, value: 'Item4-1' }, + { id: 8, value: 'Item4-2' }, + ], + }, + ], + ], + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/normal.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/normal.ts new file mode 100644 index 00000000..ab0e965d --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/normal.ts @@ -0,0 +1,59 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4', + name: '默认类型: signTypedDataV4', + description: 'SignTypedDataV4 Normal', + value: JSON.stringify({ + domain: { + chainId: params.chainId.toString(), + name: 'Ether Mail', + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + version: '1', + }, + message: { + contents: 'Hello, Bob!', + from: { + name: 'Cow', + wallets: [ + '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', + '0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF', + ], + }, + to: [ + { + name: 'Bob', + wallets: [ + '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB', + '0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57', + '0xB0B0b0b0b0b0B000000000000000000000000000', + ], + }, + ], + attachment: '0x', + }, + primaryType: 'Mail', + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + Group: [ + { name: 'name', type: 'string' }, + { name: 'members', type: 'Person[]' }, + ], + Mail: [ + { name: 'from', type: 'Person' }, + { name: 'to', type: 'Person[]' }, + { name: 'contents', type: 'string' }, + { name: 'attachment', type: 'bytes' }, + ], + Person: [ + { name: 'name', type: 'string' }, + { name: 'wallets', type: 'address[]' }, + ], + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/order.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/order.ts new file mode 100644 index 00000000..26104eb3 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/order.ts @@ -0,0 +1,59 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-order', + name: 'order: Order 方法', + description: 'SignTypedDataV4 Order 方法', + value: JSON.stringify({ + types: { + Order: [ + { type: 'uint8', name: 'direction' }, + { type: 'address', name: 'maker' }, + { type: 'address', name: 'taker' }, + { type: 'uint256', name: 'expiry' }, + { type: 'uint256', name: 'nonce' }, + { type: 'address', name: 'erc20Token' }, + { type: 'uint256', name: 'erc20TokenAmount' }, + { type: 'Fee[]', name: 'fees' }, + { type: 'address', name: 'erc721Token' }, + { type: 'uint256', name: 'erc721TokenId' }, + { type: 'Property[]', name: 'erc721TokenProperties' }, + ], + Fee: [ + { type: 'address', name: 'recipient' }, + { type: 'uint256', name: 'amount' }, + { type: 'bytes', name: 'feeData' }, + ], + Property: [ + { type: 'address', name: 'propertyValidator' }, + { type: 'bytes', name: 'propertyData' }, + ], + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + }, + domain: { + name: 'ZeroEx', + version: '1.0.0', + chainId: params.chainId.toString(), + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + }, + primaryType: 'Order', + message: { + direction: '0', + maker: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc', + taker: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', + expiry: '2524604400', + nonce: '100131415900000000000000000000000000000083840314483690155566137712510085002484', + erc20Token: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + erc20TokenAmount: '42000000000000', + fees: [], + erc721Token: '0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e', + erc721TokenId: '2516', + erc721TokenProperties: [], + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/orderComponents.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/orderComponents.ts new file mode 100644 index 00000000..b955a769 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/orderComponents.ts @@ -0,0 +1,82 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-orderComponents', + name: 'order: OrderComponents 方法', + description: 'SignTypedDataV4 OrderComponents 方法', + value: JSON.stringify({ + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + OrderComponents: [ + { name: 'offerer', type: 'address' }, + { name: 'zone', type: 'address' }, + { name: 'offer', type: 'OfferItem[]' }, + { name: 'consideration', type: 'ConsiderationItem[]' }, + { name: 'orderType', type: 'uint8' }, + { name: 'startTime', type: 'uint256' }, + { name: 'endTime', type: 'uint256' }, + { name: 'zoneHash', type: 'bytes32' }, + { name: 'salt', type: 'uint256' }, + { name: 'conduitKey', type: 'bytes32' }, + { name: 'counter', type: 'uint256' }, + ], + OfferItem: [ + { name: 'itemType', type: 'uint8' }, + { name: 'token', type: 'address' }, + { name: 'identifierOrCriteria', type: 'uint256' }, + { name: 'startAmount', type: 'uint256' }, + { name: 'endAmount', type: 'uint256' }, + ], + ConsiderationItem: [ + { name: 'itemType', type: 'uint8' }, + { name: 'token', type: 'address' }, + { name: 'identifierOrCriteria', type: 'uint256' }, + { name: 'startAmount', type: 'uint256' }, + { name: 'endAmount', type: 'uint256' }, + { name: 'recipient', type: 'address' }, + ], + }, + primaryType: 'OrderComponents', + domain: { + name: 'Seaport', + version: '1.1', + chainId: params.chainId.toString(), + verifyingContract: '0x00000000006c3852cbEf3e08E8dF289169EdE581', // Seaport 1.1 contract address + }, + message: { + offerer: '0x0000000000000000000000000000000000000000', + zone: '0x0000000000000000000000000000000000000000', + offer: [ + { + itemType: 2, // ERC721 + token: '0x0000000000000000000000000000000000000000', + identifierOrCriteria: '1', + startAmount: '1', + endAmount: '1', + }, + ], + consideration: [ + { + itemType: 0, // ETH + token: '0x0000000000000000000000000000000000000000', + identifierOrCriteria: '0', + startAmount: '1000000000000000000', + endAmount: '1000000000000000000', + recipient: '0x0000000000000000000000000000000000000000', + }, + ], + orderType: 0, // FULL_OPEN + startTime: '1640995200', // 2022-01-01 00:00:00 UTC + endTime: '1672531200', // 2023-01-01 00:00:00 UTC + zoneHash: '0x0000000000000000000000000000000000000000000000000000000000000000', + salt: '0', + conduitKey: '0x0000000000000000000000000000000000000000000000000000000000000000', + counter: '0', + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/permit.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/permit.ts new file mode 100644 index 00000000..0101539e --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/permit.ts @@ -0,0 +1,65 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-permit', + name: 'permit: Permit 方法', + description: 'SignTypedDataV4 Permit 方法', + value: JSON.stringify({ + types: { + EIP712Domain: [ + { + name: 'name', + type: 'string', + }, + { + name: 'version', + type: 'string', + }, + { + name: 'chainId', + type: 'uint256', + }, + { + name: 'verifyingContract', + type: 'address', + }, + ], + Permit: [ + { + name: 'owner', + type: 'address', + }, + { + name: 'spender', + type: 'address', + }, + { + name: 'value', + type: 'uint256', + }, + { + name: 'nonce', + type: 'uint256', + }, + { + name: 'deadline', + type: 'uint256', + }, + ], + }, + primaryType: 'Permit', + domain: { + name: 'MyToken', + version: '1', + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + chainId: params.chainId.toString(), + }, + message: { + owner: '0xd6e8058cd3a5e5b90eacdc350e1246de4a39d411', + spender: '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', + value: 3000, + nonce: 0, + deadline: 50000000000, + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/permitBatch.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitBatch.ts new file mode 100644 index 00000000..e3ff0d79 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitBatch.ts @@ -0,0 +1,81 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-uniswap-swap', + name: 'permit2: PermitBatch 代币批量授权', + description: 'permit2: PermitBatch 代币批量授权,一次授权两个代币信息', + value: JSON.stringify({ + types: { + PermitBatch: [ + { + name: 'details', + type: 'PermitDetails[]', + }, + { + name: 'spender', + type: 'address', + }, + { + name: 'sigDeadline', + type: 'uint256', + }, + ], + PermitDetails: [ + { + name: 'token', + type: 'address', + }, + { + name: 'amount', + type: 'uint160', + }, + { + name: 'expiration', + type: 'uint48', + }, + { + name: 'nonce', + type: 'uint48', + }, + ], + EIP712Domain: [ + { + name: 'name', + type: 'string', + }, + { + name: 'chainId', + type: 'uint256', + }, + { + name: 'verifyingContract', + type: 'address', + }, + ], + }, + domain: { + name: 'Permit2', + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + chainId: params.chainId.toString(), + }, + primaryType: 'PermitBatch', + message: { + details: [ + { + token: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', + amount: '1461501637330902918203684832716283019655932542975', + expiration: '1722887542', + nonce: '5', + }, + { + token: '0xb0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', + amount: '2461501637330902918203684832716283019655932542975', + expiration: '1722887642', + nonce: '6', + }, + ], + spender: '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad', + sigDeadline: '1720297342', + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/permitBatchTransferFrom.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitBatchTransferFrom.ts new file mode 100644 index 00000000..ca47c144 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitBatchTransferFrom.ts @@ -0,0 +1,49 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-permitBatchTransferFrom', + name: 'permit2: PermitBatchTransferFrom 方法', + description: 'SignTypedDataV4 PermitBatchTransferFrom 方法', + value: JSON.stringify({ + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + PermitBatchTransferFrom: [ + { name: 'permitted', type: 'TokenPermissions[]' }, + { name: 'spender', type: 'address' }, + { name: 'nonce', type: 'uint256' }, + { name: 'deadline', type: 'uint256' }, + ], + TokenPermissions: [ + { name: 'token', type: 'address' }, + { name: 'amount', type: 'uint256' }, + ], + }, + primaryType: 'PermitBatchTransferFrom', + domain: { + name: 'PermitTransfer', + version: '1', + chainId: params.chainId.toString(), + verifyingContract: '0x000000000022D473030F116dDEE9F6B43aC78BA3', // Example contract address + }, + message: { + permitted: [ + { + token: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // Example USDC token address + amount: '1000000', // 1 USDC (6 decimals) + }, + { + token: '0xdAC17F958D2ee523a2206206994597C13D831ec7', // Example USDT token address + amount: '1000000', // 1 USDT (6 decimals) + }, + ], + spender: '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', + nonce: 0, + deadline: 1672531200, // Example deadline (2023-01-01 00:00:00 UTC) + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/permitSingle.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitSingle.ts new file mode 100644 index 00000000..edc59266 --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitSingle.ts @@ -0,0 +1,43 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-uniswap-swap', + name: 'permit2: PermitSingle 方法 Swap USDC => Matic', + description: '模仿 UniSwap Swap,数据来自 Polygon USDC => Matic', + value: JSON.stringify({ + types: { + PermitSingle: [ + { name: 'details', type: 'PermitDetails' }, + { name: 'spender', type: 'address' }, + { name: 'sigDeadline', type: 'uint256' }, + ], + PermitDetails: [ + { name: 'token', type: 'address' }, + { name: 'amount', type: 'uint160' }, + { name: 'expiration', type: 'uint48' }, + { name: 'nonce', type: 'uint48' }, + ], + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + }, + domain: { + name: 'Permit2', + chainId: params.chainId.toString(), + verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', + }, + primaryType: 'PermitSingle', + message: { + details: { + token: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359', + amount: '1461501637330902918203684832716283019655932542975', + expiration: '1722675330', + nonce: '0', + }, + spender: '0xec7be89e9d109e7e3fec59c222cf297125fefda2', + sigDeadline: '1720085130', + }, + }), +}); diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/permitTransferFrom.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitTransferFrom.ts new file mode 100644 index 00000000..c1d9ceaf --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitTransferFrom.ts @@ -0,0 +1,43 @@ +import type { IEIP712Params } from '../../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV4-permitTransferFrom', + name: 'permit2: PermitTransferFrom 方法', + description: 'SignTypedDataV4 PermitTransferFrom 方法', + value: JSON.stringify({ + types: { + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'version', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' }, + ], + PermitTransferFrom: [ + { name: 'permitted', type: 'TokenPermissions' }, + { name: 'spender', type: 'address' }, + { name: 'nonce', type: 'uint256' }, + { name: 'deadline', type: 'uint256' }, + ], + TokenPermissions: [ + { name: 'token', type: 'address' }, + { name: 'amount', type: 'uint256' }, + ], + }, + primaryType: 'PermitTransferFrom', + domain: { + name: 'PermitTransfer', + version: '1', + chainId: params.chainId.toString(), + verifyingContract: '0x000000000022D473030F116dDEE9F6B43aC78BA3', // Example contract address + }, + message: { + permitted: { + token: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // Example USDC token address + amount: '1000000', // 1 USDC (6 decimals) + }, + spender: '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', + nonce: 0, + deadline: 1672531200, // Example deadline (2023-01-01 00:00:00 UTC) + }, + }), +}); \ No newline at end of file diff --git a/packages/example/components/chains/ethereum/case/signTypedDataV4/permitWitnessTransferFrom.ts b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitWitnessTransferFrom.ts new file mode 100644 index 00000000..a56ccece --- /dev/null +++ b/packages/example/components/chains/ethereum/case/signTypedDataV4/permitWitnessTransferFrom.ts @@ -0,0 +1,92 @@ +import type { IEIP712Params } from '../types'; + +export default (params: IEIP712Params) => ({ + id: 'signTypedDataV5-permitwitnessTransferFrom', + name: '默认类型: PermitWitnessTransferFrom 方法', + description: '模仿 UniSwap 现价单,数据来自 ETH 主网 USDC => ETH', + value: JSON.stringify({ + types: { + PermitWitnessTransferFrom: [ + { name: 'permitted', type: 'TokenPermissions' }, + { name: 'spender', type: 'address' }, + { name: 'nonce', type: 'uint256' }, + { name: 'deadline', type: 'uint256' }, + { name: 'witness', type: 'ExclusiveDutchOrder' } + ], + TokenPermissions: [ + { name: 'token', type: 'address' }, + { name: 'amount', type: 'uint256' } + ], + ExclusiveDutchOrder: [ + { name: 'info', type: 'OrderInfo' }, + { name: 'decayStartTime', type: 'uint256' }, + { name: 'decayEndTime', type: 'uint256' }, + { name: 'exclusiveFiller', type: 'address' }, + { name: 'exclusivityOverrideBps', type: 'uint256' }, + { name: 'inputToken', type: 'address' }, + { name: 'inputStartAmount', type: 'uint256' }, + { name: 'inputEndAmount', type: 'uint256' }, + { name: 'outputs', type: 'DutchOutput[]' } + ], + OrderInfo: [ + { name: 'reactor', type: 'address' }, + { name: 'swapper', type: 'address' }, + { name: 'nonce', type: 'uint256' }, + { name: 'deadline', type: 'uint256' }, + { name: 'additionalValidationContract', type: 'address' }, + { name: 'additionalValidationData', type: 'bytes' } + ], + DutchOutput: [ + { name: 'token', type: 'address' }, + { name: 'startAmount', type: 'uint256' }, + { name: 'endAmount', type: 'uint256' }, + { name: 'recipient', type: 'address' } + ], + EIP712Domain: [ + { name: 'name', type: 'string' }, + { name: 'chainId', type: 'uint256' }, + { name: 'verifyingContract', type: 'address' } + ] + }, + domain: { + name: 'Permit2', + chainId: params.chainId.toString(), + verifyingContract: '0x000000000022d473030f116ddee9f6b43ac78ba3' + }, + primaryType: 'PermitWitnessTransferFrom', + message: { + permitted: { + token: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', + amount: '100000' + }, + spender: '0x6000da47483062a0d734ba3dc7576ce6a0b645c4', + nonce: '1993348893786760112071654418902816288670429612439619040341918096409194690305', + deadline: '1720694762', + witness: { + info: { + reactor: '0x6000da47483062a0d734ba3dc7576ce6a0b645c4', + swapper: '0x5618207d27d78f09f61a5d92190d58c453feb4b7', + nonce: '1993348893786760112071654418902816288670429612439619040341918096409194690305', + deadline: '1720694762', + additionalValidationContract: '0x0000000000000000000000000000000000000000', + additionalValidationData: '0x' + }, + decayStartTime: '1720089962', + decayEndTime: '1720089962', + exclusiveFiller: '0x0000000000000000000000000000000000000000', + exclusivityOverrideBps: '0', + inputToken: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', + inputStartAmount: '100000', + inputEndAmount: '100000', + outputs: [ + { + token: '0x0000000000000000000000000000000000000000', + startAmount: '33465858131534', + endAmount: '33465858131534', + recipient: '0x5618207d27d78f09f61a5d92190d58c453feb4b7' + } + ] + } + } + }) +}); diff --git a/packages/example/components/chains/ethereum/params.ts b/packages/example/components/chains/ethereum/params.ts index 0a71e0e5..de96827a 100644 --- a/packages/example/components/chains/ethereum/params.ts +++ b/packages/example/components/chains/ethereum/params.ts @@ -1,3 +1,5 @@ +import signTypedDataV4Cases from './case/signTypedDataV4'; + const chainIdInt = 100; export default { @@ -353,244 +355,7 @@ export default { }), }, ], - signTypedDataV4: (chainId: number) => [ - { - 'id': 'signTypedDataV4', - 'name': 'signTypedDataV4', - 'description': 'SignTypedDataV4 Normal', - 'value': JSON.stringify({ - domain: { - chainId: chainId.toString(), - name: 'Ether Mail', - verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', - version: '1', - }, - message: { - contents: 'Hello, Bob!', - from: { - name: 'Cow', - wallets: [ - '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', - '0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF', - ], - }, - to: [ - { - name: 'Bob', - wallets: [ - '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB', - '0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57', - '0xB0B0b0b0b0b0B000000000000000000000000000', - ], - }, - ], - attachment: '0x', - }, - primaryType: 'Mail', - types: { - EIP712Domain: [ - { name: 'name', type: 'string' }, - { name: 'version', type: 'string' }, - { name: 'chainId', type: 'uint256' }, - { name: 'verifyingContract', type: 'address' }, - ], - Group: [ - { name: 'name', type: 'string' }, - { name: 'members', type: 'Person[]' }, - ], - Mail: [ - { name: 'from', type: 'Person' }, - { name: 'to', type: 'Person[]' }, - { name: 'contents', type: 'string' }, - { name: 'attachment', type: 'bytes' }, - ], - Person: [ - { name: 'name', type: 'string' }, - { name: 'wallets', type: 'address[]' }, - ], - }, - }), - }, - { - 'id': 'signTypedDataV4-uniswap-swap', - 'name': 'UniSwap Swap USDC => Matic', - 'description': '模仿 UniSwap Swap,数据来自 Polygon USDC => Matic', - 'value': - '{"types":{"PermitSingle":[{"name":"details","type":"PermitDetails"},{"name":"spender","type":"address"},{"name":"sigDeadline","type":"uint256"}],"PermitDetails":[{"name":"token","type":"address"},{"name":"amount","type":"uint160"},{"name":"expiration","type":"uint48"},{"name":"nonce","type":"uint48"}],"EIP712Domain":[{"name":"name","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}]},"domain":{"name":"Permit2","chainId":"137","verifyingContract":"0x000000000022d473030f116ddee9f6b43ac78ba3"},"primaryType":"PermitSingle","message":{"details":{"token":"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359","amount":"1461501637330902918203684832716283019655932542975","expiration":"1722675330","nonce":"0"},"spender":"0xec7be89e9d109e7e3fec59c222cf297125fefda2","sigDeadline":"1720085130"}}', - }, - { - 'id': 'signTypedDataV4-uniswap-limit-order', - 'name': 'UniSwap Limit USDC => ETH', - 'description': '模仿 UniSwap 现价单,数据来自 ETH 主网 USDC => ETH', - 'value': - '{"types":{"PermitWitnessTransferFrom":[{"name":"permitted","type":"TokenPermissions"},{"name":"spender","type":"address"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"},{"name":"witness","type":"ExclusiveDutchOrder"}],"TokenPermissions":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"ExclusiveDutchOrder":[{"name":"info","type":"OrderInfo"},{"name":"decayStartTime","type":"uint256"},{"name":"decayEndTime","type":"uint256"},{"name":"exclusiveFiller","type":"address"},{"name":"exclusivityOverrideBps","type":"uint256"},{"name":"inputToken","type":"address"},{"name":"inputStartAmount","type":"uint256"},{"name":"inputEndAmount","type":"uint256"},{"name":"outputs","type":"DutchOutput[]"}],"OrderInfo":[{"name":"reactor","type":"address"},{"name":"swapper","type":"address"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"},{"name":"additionalValidationContract","type":"address"},{"name":"additionalValidationData","type":"bytes"}],"DutchOutput":[{"name":"token","type":"address"},{"name":"startAmount","type":"uint256"},{"name":"endAmount","type":"uint256"},{"name":"recipient","type":"address"}],"EIP712Domain":[{"name":"name","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}]},"domain":{"name":"Permit2","chainId":"1","verifyingContract":"0x000000000022d473030f116ddee9f6b43ac78ba3"},"primaryType":"PermitWitnessTransferFrom","message":{"permitted":{"token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","amount":"100000"},"spender":"0x6000da47483062a0d734ba3dc7576ce6a0b645c4","nonce":"1993348893786760112071654418902816288670429612439619040341918096409194690305","deadline":"1720694762","witness":{"info":{"reactor":"0x6000da47483062a0d734ba3dc7576ce6a0b645c4","swapper":"0x5618207d27d78f09f61a5d92190d58c453feb4b7","nonce":"1993348893786760112071654418902816288670429612439619040341918096409194690305","deadline":"1720694762","additionalValidationContract":"0x0000000000000000000000000000000000000000","additionalValidationData":"0x"},"decayStartTime":"1720089962","decayEndTime":"1720089962","exclusiveFiller":"0x0000000000000000000000000000000000000000","exclusivityOverrideBps":"0","inputToken":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","inputStartAmount":"100000","inputEndAmount":"100000","outputs":[{"token":"0x0000000000000000000000000000000000000000","startAmount":"33465858131534","endAmount":"33465858131534","recipient":"0x5618207d27d78f09f61a5d92190d58c453feb4b7"}]}}}', - }, - { - 'id': 'signTypedDataV4-bigdata', - 'name': 'signTypedDataV4 BigData', - 'description': 'SignTypedDataV4 BigData', - 'value': JSON.stringify({ - 'domain': { - 'name': 'Franklin', - 'version': '0.0.1', - 'chainId': chainId, - 'verifyingContract': '0x0000000000000000000000000000000000000000', - }, - 'primaryType': 'ForwardRequest', - 'types': { - 'EIP712Domain': [ - { - 'name': 'name', - 'type': 'string', - }, - { - 'name': 'version', - 'type': 'string', - }, - { - 'name': 'chainId', - 'type': 'uint256', - }, - { - 'name': 'verifyingContract', - 'type': 'address', - }, - ], - 'ForwardRequest': [ - { - 'name': 'from', - 'type': 'address', - }, - { - 'name': 'to', - 'type': 'address', - }, - { - 'name': 'value', - 'type': 'uint256', - }, - { - 'name': 'gas', - 'type': 'uint256', - }, - { - 'name': 'nonce', - 'type': 'uint256', - }, - { - 'name': 'data', - 'type': 'bytes', - }, - ], - 'VerifyWallet': [ - { - 'name': 'contents', - 'type': 'string', - }, - ], - }, - 'message': { - 'from': '0x0000000000000000000000000000000000000000', - 'to': '0x0000000000000000000000000000000000000000', - 'value': 0, - 'gas': 275755, - 'nonce': 3, - 'data': `0x${'01'.repeat(3150)}`, - }, - }), - }, - { - 'id': 'signTypedDataV4-Nested-array', - 'name': 'signTypedDataV4 Nested Array', - 'description': 'SignTypedDataV4 Nested Array', - 'value': JSON.stringify({ - 'types': { - 'EIP712Domain': [ - { - 'name': 'name', - 'type': 'string', - }, - ], - 'NestedArray': [ - { - 'name': 'items', - 'type': 'SingleItem', - }, - ], - 'SingleItem': [ - { - 'name': 'id', - 'type': 'uint256', - }, - { - 'name': 'value', - 'type': 'string', - }, - ], - }, - 'primaryType': 'NestedArray', - 'domain': { - 'name': 'NestedArrayTest', - }, - 'message': { - 'nestedItems': [ - [ - { - 'items': [ - { - 'id': 1, - 'value': 'Item1-1', - }, - { - 'id': 2, - 'value': 'Item1-2', - }, - ], - }, - { - 'items': [ - { - 'id': 3, - 'value': 'Item2-1', - }, - { - 'id': 4, - 'value': 'Item2-2', - }, - ], - }, - ], - [ - { - 'items': [ - { - 'id': 5, - 'value': 'Item3-1', - }, - { - 'id': 6, - 'value': 'Item3-2', - }, - ], - }, - { - 'items': [ - { - 'id': 7, - 'value': 'Item4-1', - }, - { - 'id': 8, - 'value': 'Item4-2', - }, - ], - }, - ], - ], - }, - }), - }, - ], + signTypedDataV4: (chainId: number) => signTypedDataV4Cases({ chainId }), sendTransaction: (from: string, to: string) => { return [ { diff --git a/packages/example/components/chains/ethereum/types.ts b/packages/example/components/chains/ethereum/types.ts index 3658459d..94b96141 100644 --- a/packages/example/components/chains/ethereum/types.ts +++ b/packages/example/components/chains/ethereum/types.ts @@ -28,3 +28,7 @@ export interface IEIP6963AnnounceProviderEvent extends CustomEvent { type: 'eip6963:announceProvider'; detail: IEIP6963ProviderDetail; } + +export interface IEIP712Params { + chainId: number; +} \ No newline at end of file diff --git a/packages/example/components/ui/jsonEditor.tsx b/packages/example/components/ui/jsonEditor.tsx index e6af0879..b044043e 100644 --- a/packages/example/components/ui/jsonEditor.tsx +++ b/packages/example/components/ui/jsonEditor.tsx @@ -22,8 +22,9 @@ export const JsonEditor = ({ value, placeholder, onChange }: JsonEditorProps) => return ( =13.7.0": version "20.12.12" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.12.tgz#7cbecdf902085cec634fdb362172dfe12b8f2050" @@ -6195,13 +5930,6 @@ dependencies: "@types/node" "*" -"@types/ws@^8.2.2": - version "8.5.12" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.12.tgz#619475fe98f35ccca2a2f6c137702d85ec247b7e" - integrity sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ== - dependencies: - "@types/node" "*" - "@types/yargs-parser@*": version "21.0.3" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" @@ -6825,11 +6553,6 @@ acorn@^8.9.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== -aes-js@4.0.0-beta.5: - version "4.0.0-beta.5" - resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-4.0.0-beta.5.tgz#8d2452c52adedebc3a3e28465d858c11ca315873" - integrity sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q== - agent-base@6, agent-base@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" @@ -7250,7 +6973,7 @@ axios@0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" -axios@^1.6.2, axios@^1.6.7: +axios@^1.6.7: version "1.7.7" resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.7.tgz#2f554296f9892a72ac8d8e4c5b79c14a91d0a47f" integrity sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q== @@ -7343,14 +7066,6 @@ babel-plugin-transform-flow-enums@^0.0.2: dependencies: "@babel/plugin-syntax-flow" "^7.12.1" -babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - integrity sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g== - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -8369,11 +8084,6 @@ core-js-compat@^3.36.1: dependencies: browserslist "^4.23.0" -core-js@^2.4.0: - version "2.6.12" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" @@ -9598,19 +9308,6 @@ ethereumjs-util@^7.1.5: ethereum-cryptography "^0.1.3" rlp "^2.2.4" -ethers@^6.6.0: - version "6.13.2" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.13.2.tgz#4b67d4b49e69b59893931a032560999e5e4419fe" - integrity sha512-9VkriTTed+/27BGuY1s0hf441kqwHJ1wtN2edksEtiRvXx+soxRX3iSXTfFqq2+YwrOqbDoTHjIhQnjJRlzKmg== - dependencies: - "@adraffy/ens-normalize" "1.10.1" - "@noble/curves" "1.2.0" - "@noble/hashes" "1.3.2" - "@types/node" "18.15.13" - aes-js "4.0.0-beta.5" - tslib "2.4.0" - ws "8.17.1" - ethjs-util@0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/ethjs-util/-/ethjs-util-0.1.6.tgz#f308b62f185f9fe6237132fb2a9818866a5cd536" @@ -9629,11 +9326,6 @@ event-target-shim@^5.0.0, event-target-shim@^5.0.1: resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== -eventemitter3@^3.1.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" - integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== - eventemitter3@^4.0.7: version "4.0.7" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" @@ -10636,11 +10328,6 @@ inherits@=2.0.1: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" integrity sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA== -injectpromise@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/injectpromise/-/injectpromise-1.0.0.tgz#c621f7df2bbfc1164d714f1fb229adec2079da39" - integrity sha512-qNq5wy4qX4uWHcVFOEU+RqZkoVG65FhvGkyDWbuBxILMjK6A1LFf5A1mgXZkD4nRx5FCorD81X/XvPKp/zVfPA== - int64-buffer@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/int64-buffer/-/int64-buffer-1.0.1.tgz#c78d841b444cadf036cd04f8683696c740f15dca" @@ -11091,14 +10778,6 @@ isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== -isomorphic-fetch@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz#0267b005049046d2421207215d45d6a262b8b8b4" - integrity sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA== - dependencies: - node-fetch "^2.6.1" - whatwg-fetch "^3.4.1" - isomorphic-unfetch@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz#87341d5f4f7b63843d468438128cb087b7c3e98f" @@ -11112,11 +10791,6 @@ isomorphic-ws@^4.0.1: resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== -isomorphic-ws@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" - integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== - iterator.prototype@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.2.tgz#5e29c8924f01916cb9335f1ff80619dcff22b0c0" @@ -11155,24 +10829,6 @@ jayson@^4.1.0: uuid "^8.3.2" ws "^7.4.5" -jayson@^4.1.1: - version "4.1.2" - resolved "https://registry.yarnpkg.com/jayson/-/jayson-4.1.2.tgz#443c26a8658703e0b2e881117b09395d88b6982e" - integrity sha512-5nzMWDHy6f+koZOuYsArh2AXs73NfWYVlFyJJuCedr93GpY+Ku8qq10ropSXVfHK+H0T6paA88ww+/dV+1fBNA== - dependencies: - "@types/connect" "^3.4.33" - "@types/node" "^12.12.54" - "@types/ws" "^7.4.4" - JSONStream "^1.3.5" - commander "^2.20.3" - delay "^5.0.0" - es6-promisify "^5.0.0" - eyes "^0.1.8" - isomorphic-ws "^4.0.1" - json-stringify-safe "^5.0.1" - uuid "^8.3.2" - ws "^7.5.10" - jest-environment-node@^29.6.3: version "29.7.0" resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376" @@ -11786,7 +11442,7 @@ long@^4.0.0: resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== -long@^5.0.0, long@^5.2.1, long@^5.2.3: +long@^5.0.0, long@^5.2.3: version "5.2.3" resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== @@ -12177,7 +11833,7 @@ minimist@^1.2.0, minimist@^1.2.6: resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.1.tgz#f7f85aff59aa22f110b20e27692465cf3bf89481" integrity sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA== -mitt@^3.0.0, mitt@^3.0.1: +mitt@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/mitt/-/mitt-3.0.1.tgz#ea36cf0cc30403601ae074c8f77b7092cdab36d1" integrity sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw== @@ -12246,7 +11902,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3, ms@^2.0.0, ms@^2.1.1, ms@^2.1.3: +ms@2.1.3, ms@^2.0.0, ms@^2.1.1: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -13433,11 +13089,6 @@ query-string@7.1.3: split-on-first "^1.0.0" strict-uri-encode "^2.0.0" -querystring-es3@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" - integrity sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA== - querystring@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.1.tgz#40d77615bb09d16902a85c3e38aa8b5ed761c2dd" @@ -13841,11 +13492,6 @@ regenerate@^1.4.2: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== - regenerator-runtime@^0.13.10: version "0.13.10" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee" @@ -14096,22 +13742,6 @@ rpc-websockets@^7.11.0: bufferutil "^4.0.1" utf-8-validate "^5.0.2" -rpc-websockets@^9.0.2: - version "9.0.4" - resolved "https://registry.yarnpkg.com/rpc-websockets/-/rpc-websockets-9.0.4.tgz#9d8ee82533b5d1e13d9ded729e3e38d0d8fa083f" - integrity sha512-yWZWN0M+bivtoNLnaDbtny4XchdAIF5Q4g/ZsC5UC61Ckbp0QczwO8fg44rV3uYmY4WHd+EZQbn90W1d8ojzqQ== - dependencies: - "@swc/helpers" "^0.5.11" - "@types/uuid" "^8.3.4" - "@types/ws" "^8.2.2" - buffer "^6.0.3" - eventemitter3 "^5.0.1" - uuid "^8.3.2" - ws "^8.5.0" - optionalDependencies: - bufferutil "^4.0.1" - utf-8-validate "^5.0.2" - rtcpeerconnection-shim@^1.2.15: version "1.2.15" resolved "https://registry.yarnpkg.com/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.15.tgz#e7cc189a81b435324c4949aa3dfb51888684b243" @@ -14687,11 +14317,6 @@ streamsearch@^1.1.0: resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== -strict-event-emitter-types@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strict-event-emitter-types/-/strict-event-emitter-types-2.0.0.tgz#05e15549cb4da1694478a53543e4e2f4abcf277f" - integrity sha512-Nk/brWYpD85WlOgzw5h173aci0Teyv8YdIAEtV+N88nDB0dLlazZyJMIsN6eo1/AR61l+p6CJTG1JIyFaoNEEA== - strict-event-emitter@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz#1602ece81c51574ca39c6815e09f1a3e8550bd93" @@ -14702,7 +14327,7 @@ strict-uri-encode@^2.0.0: resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ== -"string-width-cjs@npm:string-width@^4.2.0": +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -14720,15 +14345,6 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - string-width@^5.0.1, string-width@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" @@ -14838,7 +14454,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -14852,13 +14468,6 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - strip-ansi@^7.0.1: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -14965,15 +14574,6 @@ sudo-prompt@^9.0.0: resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd" integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw== -sunweb@^1.0.7: - version "1.1.0" - resolved "https://registry.yarnpkg.com/sunweb/-/sunweb-1.1.0.tgz#7d00dbd610f9fd7d3380f71ae1fa03dabd882094" - integrity sha512-RoQHMAE3EMM04/y9XHDOhmnf4prhes2yYsRMi5mYANSHohpPvLl+v5I7xD0M5f5W6dMz2eSY7b0NsIyfH/1V/g== - dependencies: - "@babel/runtime" "^7.4.5" - babel-runtime "^6.26.0" - injectpromise "^1.0.0" - superagent@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/superagent/-/superagent-6.1.0.tgz#09f08807bc41108ef164cfb4be293cebd480f4a6" @@ -15006,11 +14606,6 @@ superstruct@^1.0.3: resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-1.0.3.tgz#de626a5b49c6641ff4d37da3c7598e7a87697046" integrity sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg== -superstruct@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-2.0.2.tgz#3f6d32fbdc11c357deff127d591a39b996300c54" - integrity sha512-uV+TFRZdXsqXTL2pRvujROjdZQ4RAlBUS5BTh9IGm+jTqQntYThciG/qu57Gs69yjnVUSqdxF9YLmSnpupBW9A== - supports-color@^5.3.0, supports-color@^5.5.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -15256,25 +14851,6 @@ tr46@~0.0.3: resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== -tronweb@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/tronweb/-/tronweb-5.3.2.tgz#393b0fa0290e2c5aa7a3b3b82956f53ca65a764f" - integrity sha512-iPcIjMCxb6H7FXMntAj47F3L+7jSideyQ7ZOvRj9MeZBh46SHevMrDDR57HzakUa/tT8VvlPFHtqFK4hzTLkXw== - dependencies: - "@babel/runtime" "^7.0.0" - "@ethersproject/abi" "^5.7.0" - "@tronweb3/google-protobuf" "^3.21.2" - axios "^1.6.2" - bignumber.js "^9.0.1" - ethereum-cryptography "^2.0.0" - ethers "^6.6.0" - eventemitter3 "^3.1.0" - injectpromise "^1.0.0" - lodash "^4.17.21" - querystring-es3 "^0.2.1" - semver "^5.6.0" - validator "^13.7.0" - ts-api-utils@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" @@ -15305,11 +14881,6 @@ tslib@1.14.1, tslib@^1.11.0, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" - integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== - tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.6.1, tslib@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" @@ -15725,11 +15296,6 @@ valibot@^0.25.0: resolved "https://registry.yarnpkg.com/valibot/-/valibot-0.25.0.tgz#bdbb3a6e910f983b5a65b56b2bff24dfd09064ca" integrity sha512-cmD0ca15oyAbT75iYLNW6uU6doAeIwYfOshpXka/E1Bx4frzbkrgb7gvkI7K0YK/DVOksei4FfxWfRoBP3NFTg== -validator@^13.7.0: - version "13.12.0" - resolved "https://registry.yarnpkg.com/validator/-/validator-13.12.0.tgz#7d78e76ba85504da3fee4fd1922b385914d4b35f" - integrity sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg== - valtio@1.10.5: version "1.10.5" resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.10.5.tgz#7852125e3b774b522827d96bd9c76d285c518678" @@ -15843,7 +15409,7 @@ websocket@^1.0.31, websocket@^1.0.34: utf-8-validate "^5.0.2" yaeti "^0.0.6" -whatwg-fetch@^3.0.0, whatwg-fetch@^3.4.1: +whatwg-fetch@^3.0.0: version "3.6.20" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz#580ce6d791facec91d37c72890995a0b48d31c70" integrity sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg== @@ -15962,7 +15528,7 @@ wif@^4.0.0: dependencies: bs58check "^3.0.1" -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -15989,15 +15555,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" @@ -16026,11 +15583,6 @@ ws@7.2.3: resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.3.tgz#a5411e1fb04d5ed0efee76d26d5c46d830c39b46" integrity sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ== -ws@8.17.1: - version "8.17.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" - integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== - ws@^6.2.2: version "6.2.2" resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" @@ -16043,11 +15595,6 @@ ws@^7, ws@^7.2.0, ws@^7.4.5, ws@^7.5.1: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -ws@^7.0.0, ws@^7.5.10: - version "7.5.10" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9" - integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ== - ws@^8.10.0, ws@^8.15.1, ws@^8.16.0: version "8.17.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.0.tgz#d145d18eca2ed25aaf791a183903f7be5e295fea" diff --git a/packages/providers/inpage-providers-hub/yarn.lock b/packages/providers/inpage-providers-hub/yarn.lock index 9f9562a5..22f1113e 100644 --- a/packages/providers/inpage-providers-hub/yarn.lock +++ b/packages/providers/inpage-providers-hub/yarn.lock @@ -194,54 +194,6 @@ "@ethersproject/properties" "^5.6.0" "@ethersproject/strings" "^5.6.0" -"@onekeyfe/cross-inpage-provider-core@2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-core/-/cross-inpage-provider-core-2.0.1.tgz#eb0b8e013e99241f7a875a34d665c9e9dd1a2329" - integrity sha512-7KWm12YNUycWfWhONMpVt9GbXCgrQZHn6wZBoSaJCHjhD1SBNflVTIW0BROVKLXkJtvipPYYky9ou24FDnQ2LA== - dependencies: - "@onekeyfe/cross-inpage-provider-errors" "2.0.1" - "@onekeyfe/cross-inpage-provider-events" "2.0.1" - "@onekeyfe/cross-inpage-provider-types" "2.0.1" - events "^3.3.0" - lodash-es "^4.17.21" - ms "^2.1.3" - -"@onekeyfe/cross-inpage-provider-errors@2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-errors/-/cross-inpage-provider-errors-2.0.1.tgz#f87d116c2aab3586d3b8df4a35d4f97e18e25ee3" - integrity sha512-zFzvypX4t2JGP702lXvbmFa6hapy7SMUkIVCHb5DKjTrClp1nW4gPoljBBEVzVrFtL9OCPFEc8EdT39XGpYEAQ== - dependencies: - fast-safe-stringify "^2.0.6" - -"@onekeyfe/cross-inpage-provider-events@2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-events/-/cross-inpage-provider-events-2.0.1.tgz#c43603d1dbf1ea3e2c66b78f4c2c138f2eddf16a" - integrity sha512-RKbIK2h71AmJcLuF9MTQTwNJTO2bWNpFBMMux3NYl+G3IFDZ1+3oSwQMW4G0kOHq309kXPX29sP/jInPuor1HA== - -"@onekeyfe/cross-inpage-provider-types@2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@onekeyfe/cross-inpage-provider-types/-/cross-inpage-provider-types-2.0.1.tgz#c6697eee3cbd4da8c6bfd5ca7c4b0d07022e8785" - integrity sha512-VWMEI2LMA/stu7ieG81NPyia10BtGSYhUjbGE6bEQC0Nd+TxSYgPZ8hJa/NhktWFikSaA6IA6Nmq7a5FvCdO7A== - -"@onekeyfe/extension-bridge-injected@2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@onekeyfe/extension-bridge-injected/-/extension-bridge-injected-2.0.1.tgz#6d8dc964cf760f0774e43a1c29a9d104dc7fe8b5" - integrity sha512-B9yT+SPhxQRk/vxitaFJYk/bW0Ri/C1K4kqVNRRIx4oTy+LPvg8vO5/iKY6WYbcB0HbWbcvD+UjStbK4L18q3A== - dependencies: - "@onekeyfe/cross-inpage-provider-core" "2.0.1" - "@onekeyfe/cross-inpage-provider-types" "2.0.1" - -"@onekeyfe/onekey-starcoin-provider@2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@onekeyfe/onekey-starcoin-provider/-/onekey-starcoin-provider-2.0.1.tgz#2283a9a813127dc50bc6ad7e6d4e25b1bb322024" - integrity sha512-fkr+Oe/yAqcykhPn0B4J9b4+4r2hB07+EzpRPdEu2VBBn5hRjLcdMiF33+bJ1PQOoOKbJyFULRycMw8n9HFUNQ== - dependencies: - "@onekeyfe/cross-inpage-provider-core" "2.0.1" - "@onekeyfe/cross-inpage-provider-errors" "2.0.1" - "@onekeyfe/cross-inpage-provider-types" "2.0.1" - "@onekeyfe/extension-bridge-injected" "2.0.1" - eth-rpc-errors "^4.0.3" - "@playwright/test@^1.43.1": version "1.44.1" resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.44.1.tgz#cc874ec31342479ad99838040e99b5f604299bcb" @@ -946,13 +898,6 @@ eth-lib@^0.1.26: ws "^3.0.0" xhr-request-promise "^0.1.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== - dependencies: - fast-safe-stringify "^2.0.6" - ethereum-bloom-filters@^1.0.6: version "1.0.10" resolved "https://registry.yarnpkg.com/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz#3ca07f4aed698e75bd134584850260246a5fed8a" @@ -1005,11 +950,6 @@ eventemitter3@4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.4.tgz#b5463ace635a083d018bdc7c917b4c5f10a85384" integrity sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ== -events@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" - integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== - evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" @@ -1087,11 +1027,6 @@ fast-json-stable-stringify@^2.0.0: resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -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" - integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== - finalhandler@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32" @@ -1620,11 +1555,6 @@ keyv@^3.0.0: dependencies: json-buffer "3.0.0" -lodash-es@^4.17.21: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" - integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== - lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" @@ -1755,7 +1685,7 @@ ms@2.0.0: resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= -ms@2.1.3, ms@^2.1.3: +ms@2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==