diff --git a/apps/laboratory/src/components/Wagmi/WagmiSendCallsWithPaymasterServiceTest.tsx b/apps/laboratory/src/components/Wagmi/WagmiSendCallsWithPaymasterServiceTest.tsx index 69c84c5ff7..53fb033f7b 100644 --- a/apps/laboratory/src/components/Wagmi/WagmiSendCallsWithPaymasterServiceTest.tsx +++ b/apps/laboratory/src/components/Wagmi/WagmiSendCallsWithPaymasterServiceTest.tsx @@ -3,19 +3,22 @@ import { useAccount } from 'wagmi' import { useSendCalls } from 'wagmi/experimental' import { useCallback, useMemo, useState } from 'react' import { useChakraToast } from '../Toast' -import { parseGwei, type Address } from 'viem' -import { vitalikEthAddress } from '../../utils/DataUtil' +import { encodeFunctionData, parseEther } from 'viem' +import { abi as donutContractAbi, address as donutContractaddress } from '../../utils/DonutContract' import { EIP_5792_RPC_METHODS, WALLET_CAPABILITIES } from '../../utils/EIP5792Utils' import { useWagmiAvailableCapabilities } from '../../hooks/useWagmiActiveCapabilities' import { useAppKitAccount } from '@reown/appkit/react' -const TEST_TX_1 = { - to: vitalikEthAddress as Address, - value: parseGwei('0.001') -} -const TEST_TX_2 = { - to: vitalikEthAddress as Address, - data: '0xdeadbeef' as `0x${string}` +const purchaseDonutCallData = encodeFunctionData({ + abi: donutContractAbi, + functionName: 'purchase', + args: [1] +}) + +const TEST_TX = { + to: donutContractaddress as `0x${string}`, + value: parseEther('0.0001'), + data: purchaseDonutCallData } const BICONOMY_PAYMASTER_CONTEXT = { @@ -132,7 +135,7 @@ function AvailableTestContent() { throw Error('paymasterServiceUrl not set') } sendCalls({ - calls: [TEST_TX_1, TEST_TX_2], + calls: [TEST_TX], capabilities: { paymasterService: { url: paymasterServiceUrl, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ef7ede7b6..d104f20d78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4832,8 +4832,8 @@ packages: '@particle-network/auth@1.3.1': resolution: {integrity: sha512-hu6ie5RjjN4X+6y/vfjyCsSX3pQuS8k8ZoMb61QWwhWsnZXKzpBUVeAEk55aGfxxXY+KfBkSmZosyaZHGoHnfw==} - '@particle-network/chains@1.7.7': - resolution: {integrity: sha512-Q0vXR41x8pSWDxrnT3Ensq0T2cDpnBHrfy1g1Rl0GycO2vTuIMJeA4sPqexUG/Uv39fVKfebt0TLdHS78b/P0w==} + '@particle-network/chains@1.7.8': + resolution: {integrity: sha512-pTFg1nXJKPs73okoyHEyEto1HqfpPTcUV8IUqu+i/gZNgw3UquKlLXGuhzbWtyvu3hbpu/X10UVM0KICRWdOPQ==} '@particle-network/crypto@1.0.1': resolution: {integrity: sha512-GgvHmHcFiNkCLZdcJOgctSbgvs251yp+EAdUydOE3gSoIxN6KEr/Snu9DebENhd/nFb7FDk5ap0Hg49P7pj1fg==} @@ -8363,8 +8363,8 @@ packages: engines: {node: '>=0.10.0'} hasBin: true - electron-to-chromium@1.5.57: - resolution: {integrity: sha512-xS65H/tqgOwUBa5UmOuNSLuslDo7zho0y/lgQw35pnrqiZh7UOWHCeL/Bt6noJATbA6tpQJGCifsFsIRZj1Fqg==} + electron-to-chromium@1.5.58: + resolution: {integrity: sha512-al2l4r+24ZFL7WzyPTlyD0fC33LLzvxqLCwurtBibVPghRGO9hSTl+tis8t1kD7biPiH/en4U0I7o/nQbYeoVA==} elliptic@6.5.4: resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} @@ -10138,8 +10138,8 @@ packages: map-or-similar@1.5.0: resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==} - markdown-to-jsx@7.6.1: - resolution: {integrity: sha512-kZCvhxW70lZQoP3h75piO/CTmDX87jE0aPzw46u7dRZ4AykBYAYbn4Zu3wav0vBzn4PZ8k0kgknVOeEzdBtMPA==} + markdown-to-jsx@7.6.2: + resolution: {integrity: sha512-gEcyiJXzBxmId2Y/kydLbD6KRNccDiUy/Src1cFGn3s2X0LZZ/hUiEc2VisFyA5kUE3SXclTCczjQiAuqKZiFQ==} engines: {node: '>= 10'} peerDependencies: react: '>= 0.14.0' @@ -12371,14 +12371,9 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} - unplugin@1.15.0: - resolution: {integrity: sha512-jTPIs63W+DUEDW207ztbaoO7cQ4p5aVaB823LSlxpsFEU3Mykwxf3ZGC/wzxFJeZlASZYgVrWeo7LgOrqJZ8RA==} + unplugin@1.16.0: + resolution: {integrity: sha512-5liCNPuJW8dqh3+DM6uNM2EI3MLLpCKp/KY+9pB5M2S2SR2qvvDHhKgBOaTWEbZTAws3CXfB0rKTIolWKL05VQ==} engines: {node: '>=14.0.0'} - peerDependencies: - webpack-sources: ^3 - peerDependenciesMeta: - webpack-sources: - optional: true unstorage@1.13.1: resolution: {integrity: sha512-ELexQHUrG05QVIM/iUeQNdl9FXDZhqLJ4yP59fnmn2jGUh0TEulwOgov1ubOb3Gt2ZGK/VMchJwPDNVEGWQpRg==} @@ -17071,12 +17066,12 @@ snapshots: '@particle-network/auth@1.3.1': dependencies: '@particle-network/analytics': 1.0.2 - '@particle-network/chains': 1.7.7 + '@particle-network/chains': 1.7.8 '@particle-network/crypto': 1.0.1 buffer: 6.0.3 draggabilly: 3.0.0 - '@particle-network/chains@1.7.7': {} + '@particle-network/chains@1.7.8': {} '@particle-network/crypto@1.0.1': dependencies: @@ -18983,7 +18978,6 @@ snapshots: - '@types/react-dom' - encoding - supports-color - - webpack-sources '@storybook/addon-essentials@7.6.7(@types/react-dom@18.3.1)(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -19008,7 +19002,6 @@ snapshots: - '@types/react-dom' - encoding - supports-color - - webpack-sources '@storybook/addon-highlight@7.6.7': dependencies: @@ -19055,7 +19048,7 @@ snapshots: color-convert: 2.0.1 dequal: 2.0.3 lodash: 4.17.21 - markdown-to-jsx: 7.6.1(react@18.3.1) + markdown-to-jsx: 7.6.2(react@18.3.1) memoizerific: 1.11.3 polished: 4.3.1 react: 18.3.1 @@ -19117,7 +19110,6 @@ snapshots: transitivePeerDependencies: - encoding - supports-color - - webpack-sources '@storybook/channels@7.6.7': dependencies: @@ -19308,10 +19300,9 @@ snapshots: '@storybook/csf-plugin@7.6.7': dependencies: '@storybook/csf-tools': 7.6.7 - unplugin: 1.15.0 + unplugin: 1.16.0 transitivePeerDependencies: - supports-color - - webpack-sources '@storybook/csf-tools@7.6.7': dependencies: @@ -19455,7 +19446,6 @@ snapshots: - utf-8-validate - vite - vite-plugin-glimmerx - - webpack-sources '@storybook/web-components@7.6.7(lit@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -21969,7 +21959,7 @@ snapshots: browserslist@4.24.2: dependencies: caniuse-lite: 1.0.30001680 - electron-to-chromium: 1.5.57 + electron-to-chromium: 1.5.58 node-releases: 2.0.18 update-browserslist-db: 1.1.1(browserslist@4.24.2) @@ -22719,7 +22709,7 @@ snapshots: dependencies: jake: 10.9.2 - electron-to-chromium@1.5.57: {} + electron-to-chromium@1.5.58: {} elliptic@6.5.4: dependencies: @@ -25176,7 +25166,7 @@ snapshots: map-or-similar@1.5.0: {} - markdown-to-jsx@7.6.1(react@18.3.1): + markdown-to-jsx@7.6.2(react@18.3.1): dependencies: react: 18.3.1 @@ -27791,7 +27781,7 @@ snapshots: unpipe@1.0.0: {} - unplugin@1.15.0: + unplugin@1.16.0: dependencies: acorn: 8.14.0 webpack-virtual-modules: 0.6.2