@zerodev/sdk 5.3.25 → 5.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/kernel/createKernelAccount.js +171 -199
- package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/utils/account/ep0_6/encodeCallData.js +13 -9
- package/_cjs/accounts/kernel/utils/account/ep0_6/encodeCallData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js +18 -17
- package/_cjs/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/account/ep0_7/encodeCallData.js +12 -8
- package/_cjs/accounts/kernel/utils/account/ep0_7/encodeCallData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
- package/_cjs/accounts/kernel/utils/common/getActionSelector.js +2 -2
- package/_cjs/accounts/kernel/utils/common/getActionSelector.js.map +1 -1
- package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js +2 -2
- package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js.map +1 -1
- package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js +1 -1
- package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js.map +1 -1
- package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js +1 -1
- package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js.map +1 -1
- package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js +2 -2
- package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js.map +1 -1
- package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteCall.js +2 -2
- package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteCall.js.map +1 -1
- package/_cjs/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js +81 -94
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js +104 -110
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_cjs/accounts/utils/getCustomNonceKeyFromString.js +2 -4
- package/_cjs/accounts/utils/getCustomNonceKeyFromString.js.map +1 -1
- package/_cjs/accounts/utils/index.js +1 -7
- package/_cjs/accounts/utils/index.js.map +1 -1
- package/_cjs/accounts/utils/multisend.js.map +1 -1
- package/_cjs/accounts/utils/toKernelPluginManager.js +14 -16
- package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_cjs/actions/account-client/changeSudoValidator.js +27 -21
- package/_cjs/actions/account-client/changeSudoValidator.js.map +1 -1
- package/_cjs/actions/account-client/getKernelV3ModuleCurrentNonce.js +8 -6
- package/_cjs/actions/account-client/getKernelV3ModuleCurrentNonce.js.map +1 -1
- package/_cjs/actions/account-client/invalidateNonce.js +20 -15
- package/_cjs/actions/account-client/invalidateNonce.js.map +1 -1
- package/_cjs/actions/account-client/sendTransaction.js +42 -0
- package/_cjs/actions/account-client/sendTransaction.js.map +1 -0
- package/_cjs/actions/account-client/signMessage.js +15 -0
- package/_cjs/actions/account-client/signMessage.js.map +1 -0
- package/_cjs/actions/account-client/signTypedData.js +32 -0
- package/_cjs/actions/account-client/signTypedData.js.map +1 -0
- package/_cjs/actions/account-client/signUserOperation.js +7 -5
- package/_cjs/actions/account-client/signUserOperation.js.map +1 -1
- package/_cjs/actions/account-client/uninstallPlugin.js +13 -12
- package/_cjs/actions/account-client/uninstallPlugin.js.map +1 -1
- package/_cjs/actions/account-client/writeContract.js +21 -0
- package/_cjs/actions/account-client/writeContract.js.map +1 -0
- package/_cjs/actions/index.js +13 -3
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/paymaster/estimateGasInERC20.js +4 -4
- package/_cjs/actions/paymaster/estimateGasInERC20.js.map +1 -1
- package/_cjs/actions/paymaster/sponsorUserOperation.js +4 -6
- package/_cjs/actions/paymaster/sponsorUserOperation.js.map +1 -1
- package/_cjs/actions/public/getAccountNonce.js +38 -0
- package/_cjs/actions/public/getAccountNonce.js.map +1 -0
- package/_cjs/actions/public/getSenderAddress.js +166 -0
- package/_cjs/actions/public/getSenderAddress.js.map +1 -0
- package/_cjs/actions/public/index.js +8 -0
- package/_cjs/actions/public/index.js.map +1 -0
- package/_cjs/clients/decorators/kernel.js +17 -27
- package/_cjs/clients/decorators/kernel.js.map +1 -1
- package/_cjs/clients/fallbackKernelAccountClient.js.map +1 -1
- package/_cjs/clients/kernelAccountClient.js +27 -45
- package/_cjs/clients/kernelAccountClient.js.map +1 -1
- package/_cjs/clients/paymasterClient.js +7 -18
- package/_cjs/clients/paymasterClient.js.map +1 -1
- package/_cjs/errors/index.js +18 -0
- package/_cjs/errors/index.js.map +1 -0
- package/_cjs/gasTokenAddresses.js +2 -1
- package/_cjs/gasTokenAddresses.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/providers/KernelEIP1193Provider.js.map +1 -1
- package/_cjs/types/kernel.js.map +1 -1
- package/_cjs/utils.js +27 -7
- package/_cjs/utils.js.map +1 -1
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/kernel/createKernelAccount.js +181 -217
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/utils/account/ep0_6/encodeCallData.js +13 -9
- package/_esm/accounts/kernel/utils/account/ep0_6/encodeCallData.js.map +1 -1
- package/_esm/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -1
- package/_esm/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js +18 -17
- package/_esm/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js.map +1 -1
- package/_esm/accounts/kernel/utils/account/ep0_7/encodeCallData.js +12 -8
- package/_esm/accounts/kernel/utils/account/ep0_7/encodeCallData.js.map +1 -1
- package/_esm/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -1
- package/_esm/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
- package/_esm/accounts/kernel/utils/common/getActionSelector.js +2 -2
- package/_esm/accounts/kernel/utils/common/getActionSelector.js.map +1 -1
- package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js +2 -2
- package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js.map +1 -1
- package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js +1 -1
- package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js.map +1 -1
- package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js +1 -1
- package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js.map +1 -1
- package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js +2 -2
- package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js.map +1 -1
- package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteCall.js +2 -2
- package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteCall.js.map +1 -1
- package/_esm/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js.map +1 -1
- package/_esm/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js.map +1 -1
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js +91 -98
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js +105 -118
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_esm/accounts/utils/getCustomNonceKeyFromString.js +2 -4
- package/_esm/accounts/utils/getCustomNonceKeyFromString.js.map +1 -1
- package/_esm/accounts/utils/index.js +0 -5
- package/_esm/accounts/utils/index.js.map +1 -1
- package/_esm/accounts/utils/multisend.js.map +1 -1
- package/_esm/accounts/utils/toKernelPluginManager.js +14 -16
- package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_esm/actions/account-client/changeSudoValidator.js +23 -17
- package/_esm/actions/account-client/changeSudoValidator.js.map +1 -1
- package/_esm/actions/account-client/getKernelV3ModuleCurrentNonce.js +8 -6
- package/_esm/actions/account-client/getKernelV3ModuleCurrentNonce.js.map +1 -1
- package/_esm/actions/account-client/invalidateNonce.js +20 -15
- package/_esm/actions/account-client/invalidateNonce.js.map +1 -1
- package/_esm/actions/account-client/sendTransaction.js +85 -0
- package/_esm/actions/account-client/sendTransaction.js.map +1 -0
- package/_esm/actions/account-client/signMessage.js +58 -0
- package/_esm/actions/account-client/signMessage.js.map +1 -0
- package/_esm/actions/account-client/signTypedData.js +127 -0
- package/_esm/actions/account-client/signTypedData.js.map +1 -0
- package/_esm/actions/account-client/signUserOperation.js +7 -5
- package/_esm/actions/account-client/signUserOperation.js.map +1 -1
- package/_esm/actions/account-client/uninstallPlugin.js +10 -9
- package/_esm/actions/account-client/uninstallPlugin.js.map +1 -1
- package/_esm/actions/account-client/writeContract.js +18 -0
- package/_esm/actions/account-client/writeContract.js.map +1 -0
- package/_esm/actions/index.js +6 -1
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/paymaster/estimateGasInERC20.js +3 -3
- package/_esm/actions/paymaster/estimateGasInERC20.js.map +1 -1
- package/_esm/actions/paymaster/sponsorUserOperation.js +3 -5
- package/_esm/actions/paymaster/sponsorUserOperation.js.map +1 -1
- package/_esm/actions/public/getAccountNonce.js +61 -0
- package/_esm/actions/public/getAccountNonce.js.map +1 -0
- package/_esm/actions/public/getSenderAddress.js +191 -0
- package/_esm/actions/public/getSenderAddress.js.map +1 -0
- package/_esm/actions/public/index.js +3 -0
- package/_esm/actions/public/index.js.map +1 -0
- package/_esm/clients/decorators/kernel.js +19 -28
- package/_esm/clients/decorators/kernel.js.map +1 -1
- package/_esm/clients/fallbackKernelAccountClient.js.map +1 -1
- package/_esm/clients/kernelAccountClient.js +28 -46
- package/_esm/clients/kernelAccountClient.js.map +1 -1
- package/_esm/clients/paymasterClient.js +8 -19
- package/_esm/clients/paymasterClient.js.map +1 -1
- package/_esm/errors/index.js +14 -0
- package/_esm/errors/index.js.map +1 -0
- package/_esm/gasTokenAddresses.js +2 -1
- package/_esm/gasTokenAddresses.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
- package/_esm/types/kernel.js.map +1 -1
- package/_esm/utils.js +29 -7
- package/_esm/utils.js.map +1 -1
- package/_types/accounts/index.d.ts +2 -2
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/kernel/createKernelAccount.d.ts +21 -18
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts +8 -3
- package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts +3 -2
- package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.d.ts +0 -1
- package/_types/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_7/encodeCallData.d.ts +8 -3
- package/_types/accounts/kernel/utils/account/ep0_7/encodeCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts +3 -2
- package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/common/accountMetadata.d.ts +2 -2
- package/_types/accounts/kernel/utils/common/accountMetadata.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/common/getActionSelector.d.ts +1 -1
- package/_types/accounts/kernel/utils/common/getActionSelector.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.d.ts +1 -1
- package/_types/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.d.ts +1 -1
- package/_types/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.d.ts +2 -3
- package/_types/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.d.ts +4 -5
- package/_types/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.d.ts +2 -3
- package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/types.d.ts +2 -2
- package/_types/accounts/kernel/utils/types.d.ts.map +1 -1
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts +18 -9
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts.map +1 -1
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts +9 -7
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts.map +1 -1
- package/_types/accounts/utils/getCustomNonceKeyFromString.d.ts +2 -2
- package/_types/accounts/utils/getCustomNonceKeyFromString.d.ts.map +1 -1
- package/_types/accounts/utils/index.d.ts +0 -2
- package/_types/accounts/utils/index.d.ts.map +1 -1
- package/_types/accounts/utils/multisend.d.ts +2 -2
- package/_types/accounts/utils/multisend.d.ts.map +1 -1
- package/_types/accounts/utils/toKernelPluginManager.d.ts +4 -4
- package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
- package/_types/actions/account-client/changeSudoValidator.d.ts +5 -11
- package/_types/actions/account-client/changeSudoValidator.d.ts.map +1 -1
- package/_types/actions/account-client/getKernelV3ModuleCurrentNonce.d.ts +2 -5
- package/_types/actions/account-client/getKernelV3ModuleCurrentNonce.d.ts.map +1 -1
- package/_types/actions/account-client/invalidateNonce.d.ts +4 -6
- package/_types/actions/account-client/invalidateNonce.d.ts.map +1 -1
- package/_types/actions/account-client/sendTransaction.d.ts +50 -0
- package/_types/actions/account-client/sendTransaction.d.ts.map +1 -0
- package/_types/actions/account-client/signMessage.d.ts +50 -0
- package/_types/actions/account-client/signMessage.d.ts.map +1 -0
- package/_types/actions/account-client/signTypedData.d.ts +104 -0
- package/_types/actions/account-client/signTypedData.d.ts.map +1 -0
- package/_types/actions/account-client/signUserOperation.d.ts +4 -6
- package/_types/actions/account-client/signUserOperation.d.ts.map +1 -1
- package/_types/actions/account-client/uninstallPlugin.d.ts +5 -7
- package/_types/actions/account-client/uninstallPlugin.d.ts.map +1 -1
- package/_types/actions/account-client/writeContract.d.ts +4 -0
- package/_types/actions/account-client/writeContract.d.ts.map +1 -0
- package/_types/actions/index.d.ts +6 -1
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/paymaster/estimateGasInERC20.d.ts +1305 -4
- package/_types/actions/paymaster/estimateGasInERC20.d.ts.map +1 -1
- package/_types/actions/paymaster/sponsorUserOperation.d.ts +1314 -10
- package/_types/actions/paymaster/sponsorUserOperation.d.ts.map +1 -1
- package/_types/actions/public/getAccountNonce.d.ts +34 -0
- package/_types/actions/public/getAccountNonce.d.ts.map +1 -0
- package/_types/actions/public/getSenderAddress.d.ts +46 -0
- package/_types/actions/public/getSenderAddress.d.ts.map +1 -0
- package/_types/actions/public/index.d.ts +3 -0
- package/_types/actions/public/index.d.ts.map +1 -0
- package/_types/clients/decorators/kernel.d.ts +774 -20
- package/_types/clients/decorators/kernel.d.ts.map +1 -1
- package/_types/clients/fallbackKernelAccountClient.d.ts +255 -4
- package/_types/clients/fallbackKernelAccountClient.d.ts.map +1 -1
- package/_types/clients/kernelAccountClient.d.ts +34 -36
- package/_types/clients/kernelAccountClient.d.ts.map +1 -1
- package/_types/clients/paymasterClient.d.ts +10 -24
- package/_types/clients/paymasterClient.d.ts.map +1 -1
- package/_types/errors/index.d.ts +7 -0
- package/_types/errors/index.d.ts.map +1 -0
- package/_types/gasTokenAddresses.d.ts +1 -1
- package/_types/gasTokenAddresses.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/providers/KernelEIP1193Provider.d.ts +3 -4
- package/_types/providers/KernelEIP1193Provider.d.ts.map +1 -1
- package/_types/types/index.d.ts +1 -0
- package/_types/types/index.d.ts.map +1 -1
- package/_types/types/kernel.d.ts +25 -27
- package/_types/types/kernel.d.ts.map +1 -1
- package/_types/utils.d.ts +1310 -4
- package/_types/utils.d.ts.map +1 -1
- package/accounts/index.ts +5 -2
- package/accounts/kernel/createKernelAccount.ts +312 -357
- package/accounts/kernel/utils/account/ep0_6/encodeCallData.ts +22 -12
- package/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.ts +6 -3
- package/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.ts +22 -19
- package/accounts/kernel/utils/account/ep0_7/encodeCallData.ts +21 -11
- package/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.ts +6 -3
- package/accounts/kernel/utils/common/accountMetadata.ts +2 -7
- package/accounts/kernel/utils/common/getActionSelector.ts +3 -3
- package/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.ts +3 -3
- package/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.ts +1 -1
- package/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.ts +1 -1
- package/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.ts +3 -3
- package/accounts/kernel/utils/ep0_7/encodeExecuteCall.ts +2 -2
- package/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.ts +2 -8
- package/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.ts +4 -10
- package/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.ts +2 -8
- package/accounts/kernel/utils/types.ts +2 -2
- package/accounts/kernel/v1/createKernelAccountV1.ts +147 -174
- package/accounts/kernel/v2/createKernelAccountV0_2.ts +135 -179
- package/accounts/utils/getCustomNonceKeyFromString.ts +3 -6
- package/accounts/utils/index.ts +0 -9
- package/accounts/utils/multisend.ts +5 -2
- package/accounts/utils/toKernelPluginManager.ts +23 -27
- package/actions/account-client/changeSudoValidator.ts +61 -85
- package/actions/account-client/getKernelV3ModuleCurrentNonce.ts +12 -51
- package/actions/account-client/invalidateNonce.ts +38 -67
- package/actions/account-client/sendTransaction.ts +134 -0
- package/actions/account-client/signMessage.ts +75 -0
- package/actions/account-client/signTypedData.ts +159 -0
- package/actions/account-client/signUserOperation.ts +31 -63
- package/actions/account-client/uninstallPlugin.ts +35 -54
- package/actions/account-client/writeContract.ts +72 -0
- package/actions/index.ts +15 -6
- package/actions/paymaster/estimateGasInERC20.ts +12 -8
- package/actions/paymaster/sponsorUserOperation.ts +52 -50
- package/actions/public/getAccountNonce.ts +77 -0
- package/actions/public/getSenderAddress.ts +276 -0
- package/actions/public/index.ts +9 -0
- package/clients/decorators/kernel.ts +363 -159
- package/clients/fallbackKernelAccountClient.ts +9 -11
- package/clients/kernelAccountClient.ts +142 -104
- package/clients/paymasterClient.ts +69 -43
- package/errors/index.ts +17 -0
- package/gasTokenAddresses.ts +3 -2
- package/index.ts +5 -2
- package/package.json +2 -3
- package/providers/KernelEIP1193Provider.ts +4 -7
- package/types/index.ts +2 -0
- package/types/kernel.ts +64 -63
- package/utils.ts +41 -13
- package/_cjs/actions/paymaster/sponsorUserOperationEip7677.js +0 -59
- package/_cjs/actions/paymaster/sponsorUserOperationEip7677.js.map +0 -1
- package/_esm/actions/paymaster/sponsorUserOperationEip7677.js +0 -58
- package/_esm/actions/paymaster/sponsorUserOperationEip7677.js.map +0 -1
- package/_types/actions/paymaster/sponsorUserOperationEip7677.d.ts +0 -16
- package/_types/actions/paymaster/sponsorUserOperationEip7677.d.ts.map +0 -1
- package/actions/paymaster/sponsorUserOperationEip7677.ts +0 -152
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCustomNonceKeyFromString.d.ts","sourceRoot":"","sources":["../../../accounts/utils/getCustomNonceKeyFromString.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getCustomNonceKeyFromString.d.ts","sourceRoot":"","sources":["../../../accounts/utils/getCustomNonceKeyFromString.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAQjE,eAAO,MAAM,2BAA2B,UAC7B,MAAM,qBACM,iBAAiB,WAMvC,CAAA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { toKernelPluginManager } from "./toKernelPluginManager.js";
|
|
2
|
-
import type { Address, Hex } from "viem";
|
|
3
2
|
export { verifyEIP6492Signature, universalValidatorByteCode } from "./6492.js";
|
|
4
|
-
export declare const parseFactoryAddressAndCallDataFromAccountInitCode: (initCode: Hex) => [Address, Hex];
|
|
5
3
|
export { getCustomNonceKeyFromString } from "./getCustomNonceKeyFromString.js";
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../accounts/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../accounts/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Hex } from "viem";
|
|
2
|
-
import type {
|
|
2
|
+
import type { KernelSmartAccountImplementation } from "../kernel/createKernelAccount.js";
|
|
3
3
|
export declare const MULTISEND_ADDRESS = "0x8ae01fcf7c655655ff2c6ef907b8b4718ab4e17c";
|
|
4
4
|
export declare const multiSendAbi: {
|
|
5
5
|
type: string;
|
|
@@ -9,5 +9,5 @@ export declare const multiSendAbi: {
|
|
|
9
9
|
name: string;
|
|
10
10
|
}[];
|
|
11
11
|
}[];
|
|
12
|
-
export declare const encodeMultiSend: (calls:
|
|
12
|
+
export declare const encodeMultiSend: (calls: Parameters<KernelSmartAccountImplementation<"0.6">["encodeCalls"]>[0]) => Hex;
|
|
13
13
|
//# sourceMappingURL=multisend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multisend.d.ts","sourceRoot":"","sources":["../../../accounts/utils/multisend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,GAAG,EAAyB,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"multisend.d.ts","sourceRoot":"","sources":["../../../accounts/utils/multisend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,GAAG,EAAyB,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAA;AAExF,eAAO,MAAM,iBAAiB,+CAA+C,CAAA;AAE7E,eAAO,MAAM,YAAY;;;;;;;GAMxB,CAAA;AAsBD,eAAO,MAAM,eAAe,UACjB,WAAW,iCAAiC,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,KAC7E,GAMF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import
|
|
1
|
+
import { type Client } from "viem";
|
|
2
|
+
import type { EntryPointVersion } from "viem/account-abstraction";
|
|
3
3
|
import { type KernelPluginManager, type KernelPluginManagerParams } from "../../types/kernel.js";
|
|
4
|
-
export declare function isKernelPluginManager<
|
|
5
|
-
export declare function toKernelPluginManager<
|
|
4
|
+
export declare function isKernelPluginManager<entryPointVersion extends EntryPointVersion>(plugin: any): plugin is KernelPluginManager<entryPointVersion>;
|
|
5
|
+
export declare function toKernelPluginManager<entryPointVersion extends EntryPointVersion>(client: Client, { sudo, regular, hook, pluginEnableSignature, validatorInitData, action, validAfter, validUntil, entryPoint, kernelVersion, chainId }: KernelPluginManagerParams<entryPointVersion>): Promise<KernelPluginManager<entryPointVersion>>;
|
|
6
6
|
//# sourceMappingURL=toKernelPluginManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toKernelPluginManager.d.ts","sourceRoot":"","sources":["../../../accounts/utils/toKernelPluginManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"toKernelPluginManager.d.ts","sourceRoot":"","sources":["../../../accounts/utils/toKernelPluginManager.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,MAAM,EASd,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAQjE,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAEjC,MAAM,uBAAuB,CAAA;AAU9B,wBAAgB,qBAAqB,CACjC,iBAAiB,SAAS,iBAAiB,EAG3C,MAAM,EAAE,GAAG,GACZ,MAAM,IAAI,mBAAmB,CAAC,iBAAiB,CAAC,CAElD;AAED,wBAAsB,qBAAqB,CACvC,iBAAiB,SAAS,iBAAiB,EAE3C,MAAM,EAAE,MAAM,EACd,EACI,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,UAAc,EACd,UAAc,EACd,UAAU,EACV,aAAa,EACb,OAAO,EACV,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,GAChD,OAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CA4VjD"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type
|
|
3
|
-
import { type Chain, type Client, type Hash, type Transport } from "viem";
|
|
4
|
-
import type { KernelSmartAccount } from "../../accounts/index.js";
|
|
1
|
+
import { type Chain, type Client, type Hash, type Prettify, type Transport } from "viem";
|
|
2
|
+
import { type SendUserOperationParameters, type SmartAccount } from "viem/account-abstraction";
|
|
5
3
|
import type { KernelValidator, KernelValidatorHook } from "../../types/kernel.js";
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export type ChangeSudoValidatorParameters<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends KernelSmartAccount<entryPoint, TTransport, TChain> | undefined = KernelSmartAccount<entryPoint, TTransport, TChain> | undefined> = Prettify<OptionalUserOperationParameters<entryPoint, TTransport, TChain, TAccount> & {
|
|
10
|
-
sudoValidator: KernelValidator<entryPoint, string>;
|
|
4
|
+
export type ChangeSudoValidatorParameters<account extends SmartAccount | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]> = Prettify<Partial<SendUserOperationParameters<account, accountOverride, calls>> & {
|
|
5
|
+
sudoValidator: KernelValidator<string>;
|
|
11
6
|
hook?: KernelValidatorHook;
|
|
12
7
|
}>;
|
|
13
|
-
export declare function changeSudoValidator<
|
|
14
|
-
export {};
|
|
8
|
+
export declare function changeSudoValidator<account extends SmartAccount | undefined, chain extends Chain | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]>(client: Client<Transport, chain, account>, args: Prettify<ChangeSudoValidatorParameters<account, accountOverride, calls>>): Promise<Hash>;
|
|
15
9
|
//# sourceMappingURL=changeSudoValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeSudoValidator.d.ts","sourceRoot":"","sources":["../../../actions/account-client/changeSudoValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"changeSudoValidator.d.ts","sourceRoot":"","sources":["../../../actions/account-client/changeSudoValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EAET,KAAK,QAAQ,EACb,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,YAAY,EAEpB,MAAM,0BAA0B,CAAA;AAgBjC,OAAO,KAAK,EACR,eAAe,EACf,mBAAmB,EACtB,MAAM,uBAAuB,CAAA;AAG9B,MAAM,MAAM,6BAA6B,CACrC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACrD,QAAQ,CACR,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,GAAG;IACpE,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;IACtC,IAAI,CAAC,EAAE,mBAAmB,CAAA;CAC7B,CACJ,CAAA;AAED,wBAAsB,mBAAmB,CACrC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,EAErD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,IAAI,EAAE,QAAQ,CACV,6BAA6B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CACjE,GACF,OAAO,CAAC,IAAI,CAAC,CA0Ff"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type { SendTransactionWithPaymasterParameters } from "permissionless/actions/smartAccount";
|
|
2
|
-
import type { EntryPoint, Prettify } from "permissionless/types";
|
|
3
1
|
import type { Chain, Client, Transport } from "viem";
|
|
4
|
-
import type {
|
|
5
|
-
export
|
|
6
|
-
export declare function getKernelV3ModuleCurrentNonce<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends KernelSmartAccount<entryPoint, TTransport, TChain> | undefined = KernelSmartAccount<entryPoint, TTransport, TChain> | undefined, TChainOverride extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, TAccount>, args: Prettify<GetKernelV3ModuleCurrentNonceParameters<entryPoint, TTransport, TChain, TAccount, TChainOverride>>): Promise<number>;
|
|
2
|
+
import type { SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
export declare function getKernelV3ModuleCurrentNonce<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined>(client: Client<TTransport, TChain, TAccount>): Promise<number>;
|
|
7
4
|
//# sourceMappingURL=getKernelV3ModuleCurrentNonce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getKernelV3ModuleCurrentNonce.d.ts","sourceRoot":"","sources":["../../../actions/account-client/getKernelV3ModuleCurrentNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getKernelV3ModuleCurrentNonce.d.ts","sourceRoot":"","sources":["../../../actions/account-client/getKernelV3ModuleCurrentNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAM5D,wBAAsB,6BAA6B,CAC/C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACtE,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAwB/D"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
import type { KernelSmartAccount } from "../../accounts/index.js";
|
|
5
|
-
export type InvalidateNonceParameters<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends KernelSmartAccount<entryPoint, TTransport, TChain> | undefined = KernelSmartAccount<entryPoint, TTransport, TChain> | undefined, TChainOverride extends Chain | undefined = Chain | undefined> = Prettify<SendTransactionWithPaymasterParameters<entryPoint, TTransport, TChain, TAccount, TChainOverride> & {
|
|
1
|
+
import type { Chain, Client, Hash, Prettify, Transport } from "viem";
|
|
2
|
+
import { type SendUserOperationParameters, type SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
export type InvalidateNonceParameters<account extends SmartAccount | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]> = Prettify<Partial<SendUserOperationParameters<account, accountOverride, calls>> & {
|
|
6
4
|
nonceToSet: number;
|
|
7
5
|
}>;
|
|
8
|
-
export declare function invalidateNonce<
|
|
6
|
+
export declare function invalidateNonce<account extends SmartAccount | undefined, chain extends Chain | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]>(client: Client<Transport, chain, account>, args: Prettify<InvalidateNonceParameters<account, accountOverride, calls>>): Promise<Hash>;
|
|
9
7
|
//# sourceMappingURL=invalidateNonce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalidateNonce.d.ts","sourceRoot":"","sources":["../../../actions/account-client/invalidateNonce.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"invalidateNonce.d.ts","sourceRoot":"","sources":["../../../actions/account-client/invalidateNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpE,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,YAAY,EAEpB,MAAM,0BAA0B,CAAA;AAKjC,MAAM,MAAM,yBAAyB,CACjC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACrD,QAAQ,CACR,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,GAAG;IACpE,UAAU,EAAE,MAAM,CAAA;CACrB,CACJ,CAAA;AAED,wBAAsB,eAAe,CACjC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,EAErD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,IAAI,EAAE,QAAQ,CAAC,yBAAyB,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,GAC3E,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Chain, Client, Hash, SendTransactionParameters, Transport } from "viem";
|
|
2
|
+
import { type SendUserOperationParameters, type SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
/**
|
|
4
|
+
* Creates, signs, and sends a new transaction to the network.
|
|
5
|
+
* This function also allows you to sponsor this transaction if sender is a smartAccount
|
|
6
|
+
*
|
|
7
|
+
* - Docs: https://viem.sh/docs/actions/wallet/sendTransaction.html
|
|
8
|
+
* - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions/sending-transactions
|
|
9
|
+
* - JSON-RPC Methods:
|
|
10
|
+
* - JSON-RPC Accounts: [`eth_sendTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction)
|
|
11
|
+
* - Local Accounts: [`eth_sendRawTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction)
|
|
12
|
+
*
|
|
13
|
+
* @param client - Client to use
|
|
14
|
+
* @param parameters - {@link SendTransactionParameters}
|
|
15
|
+
* @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* import { createWalletClient, custom } from 'viem'
|
|
19
|
+
* import { mainnet } from 'viem/chains'
|
|
20
|
+
* import { sendTransaction } from 'viem/wallet'
|
|
21
|
+
*
|
|
22
|
+
* const client = createWalletClient({
|
|
23
|
+
* chain: mainnet,
|
|
24
|
+
* transport: custom(window.ethereum),
|
|
25
|
+
* })
|
|
26
|
+
* const hash = await sendTransaction(client, {
|
|
27
|
+
* account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
|
|
28
|
+
* to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
|
29
|
+
* value: 1000000000000000000n,
|
|
30
|
+
* })
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // Account Hoisting
|
|
34
|
+
* import { createWalletClient, http } from 'viem'
|
|
35
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
36
|
+
* import { mainnet } from 'viem/chains'
|
|
37
|
+
* import { sendTransaction } from 'viem/wallet'
|
|
38
|
+
*
|
|
39
|
+
* const client = createWalletClient({
|
|
40
|
+
* account: privateKeyToAccount('0x…'),
|
|
41
|
+
* chain: mainnet,
|
|
42
|
+
* transport: http(),
|
|
43
|
+
* })
|
|
44
|
+
* const hash = await sendTransaction(client, {
|
|
45
|
+
* to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
|
46
|
+
* value: 1000000000000000000n,
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
export declare function sendTransaction<account extends SmartAccount | undefined, chain extends Chain | undefined, accountOverride extends SmartAccount | undefined = undefined, chainOverride extends Chain | undefined = Chain | undefined, calls extends readonly unknown[] = readonly unknown[]>(client: Client<Transport, chain, account>, args: SendTransactionParameters<chain, account, chainOverride> | SendUserOperationParameters<account, accountOverride, calls>): Promise<Hash>;
|
|
50
|
+
//# sourceMappingURL=sendTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../actions/account-client/sendTransaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,KAAK,EACL,MAAM,EACN,IAAI,EACJ,yBAAyB,EACzB,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,YAAY,EAGpB,MAAM,0BAA0B,CAAA;AAIjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAsB,eAAe,CACjC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAC3D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,EAErD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,IAAI,EACE,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,GACxD,2BAA2B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,GACnE,OAAO,CAAC,IAAI,CAAC,CA0Df"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Chain, Client, SignMessageParameters, SignMessageReturnType, Transport } from "viem";
|
|
2
|
+
import type { SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
/**
|
|
4
|
+
* Calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191): `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.
|
|
5
|
+
*
|
|
6
|
+
* - Docs: https://viem.sh/docs/actions/wallet/signMessage.html
|
|
7
|
+
* - JSON-RPC Methods:
|
|
8
|
+
* - JSON-RPC Accounts: [`personal_sign`](https://docs.metamask.io/guide/signing-data.html#personal-sign)
|
|
9
|
+
* - Local Accounts: Signs locally. No JSON-RPC request.
|
|
10
|
+
*
|
|
11
|
+
* With the calculated signature, you can:
|
|
12
|
+
* - use [`verifyMessage`](https://viem.sh/docs/utilities/verifyMessage.html) to verify the signature,
|
|
13
|
+
* - use [`recoverMessageAddress`](https://viem.sh/docs/utilities/recoverMessageAddress.html) to recover the signing address from a signature.
|
|
14
|
+
*
|
|
15
|
+
* @param client - Client to use
|
|
16
|
+
* @param parameters - {@link SignMessageParameters}
|
|
17
|
+
* @returns The signed message. {@link SignMessageReturnType}
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* import { createWalletClient, custom } from 'viem'
|
|
21
|
+
* import { mainnet } from 'viem/chains'
|
|
22
|
+
* import { signMessage } from 'viem/wallet'
|
|
23
|
+
*
|
|
24
|
+
* const client = createWalletClient({
|
|
25
|
+
* chain: mainnet,
|
|
26
|
+
* transport: custom(window.ethereum),
|
|
27
|
+
* })
|
|
28
|
+
* const signature = await signMessage(client, {
|
|
29
|
+
* account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
|
|
30
|
+
* message: 'hello world',
|
|
31
|
+
* })
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Account Hoisting
|
|
35
|
+
* import { createWalletClient, custom } from 'viem'
|
|
36
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
37
|
+
* import { mainnet } from 'viem/chains'
|
|
38
|
+
* import { signMessage } from 'viem/wallet'
|
|
39
|
+
*
|
|
40
|
+
* const client = createWalletClient({
|
|
41
|
+
* account: privateKeyToAccount('0x…'),
|
|
42
|
+
* chain: mainnet,
|
|
43
|
+
* transport: custom(window.ethereum),
|
|
44
|
+
* })
|
|
45
|
+
* const signature = await signMessage(client, {
|
|
46
|
+
* message: 'hello world',
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
export declare function signMessage<TAccount extends SmartAccount | undefined>(client: Client<Transport, Chain | undefined, TAccount>, { account: account_, message }: SignMessageParameters<TAccount>): Promise<SignMessageReturnType>;
|
|
50
|
+
//# sourceMappingURL=signMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../actions/account-client/signMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAsB,WAAW,CAAC,QAAQ,SAAS,YAAY,GAAG,SAAS,EACvE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,QAAQ,CAAC,EACtD,EACI,OAAO,EAAE,QAAyB,EAClC,OAAO,EACV,EAAE,qBAAqB,CAAC,QAAQ,CAAC,GACnC,OAAO,CAAC,qBAAqB,CAAC,CAShC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type Chain, type Client, type SignTypedDataParameters, type SignTypedDataReturnType, type Transport, type TypedData } from "viem";
|
|
2
|
+
import type { SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
/**
|
|
4
|
+
* Signs typed data and calculates an Ethereum-specific signature in [https://eips.ethereum.org/EIPS/eip-712](https://eips.ethereum.org/EIPS/eip-712): `sign(keccak256("\x19\x01" ‖ domainSeparator ‖ hashStruct(message)))`
|
|
5
|
+
*
|
|
6
|
+
* - Docs: https://viem.sh/docs/actions/wallet/signTypedData.html
|
|
7
|
+
* - JSON-RPC Methods:
|
|
8
|
+
* - JSON-RPC Accounts: [`eth_signTypedData_v4`](https://docs.metamask.io/guide/signing-data.html#signtypeddata-v4)
|
|
9
|
+
* - Local Accounts: Signs locally. No JSON-RPC request.
|
|
10
|
+
*
|
|
11
|
+
* @param client - Client to use
|
|
12
|
+
* @param parameters - {@link SignTypedDataParameters}
|
|
13
|
+
* @returns The signed data. {@link SignTypedDataReturnType}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* import { createWalletClient, custom } from 'viem'
|
|
17
|
+
* import { mainnet } from 'viem/chains'
|
|
18
|
+
* import { signTypedData } from 'viem/wallet'
|
|
19
|
+
*
|
|
20
|
+
* const client = createWalletClient({
|
|
21
|
+
* chain: mainnet,
|
|
22
|
+
* transport: custom(window.ethereum),
|
|
23
|
+
* })
|
|
24
|
+
* const signature = await signTypedData(client, {
|
|
25
|
+
* account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
|
|
26
|
+
* domain: {
|
|
27
|
+
* name: 'Ether Mail',
|
|
28
|
+
* version: '1',
|
|
29
|
+
* chainId: 1,
|
|
30
|
+
* verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
|
|
31
|
+
* },
|
|
32
|
+
* types: {
|
|
33
|
+
* Person: [
|
|
34
|
+
* { name: 'name', type: 'string' },
|
|
35
|
+
* { name: 'wallet', type: 'address' },
|
|
36
|
+
* ],
|
|
37
|
+
* Mail: [
|
|
38
|
+
* { name: 'from', type: 'Person' },
|
|
39
|
+
* { name: 'to', type: 'Person' },
|
|
40
|
+
* { name: 'contents', type: 'string' },
|
|
41
|
+
* ],
|
|
42
|
+
* },
|
|
43
|
+
* primaryType: 'Mail',
|
|
44
|
+
* message: {
|
|
45
|
+
* from: {
|
|
46
|
+
* name: 'Cow',
|
|
47
|
+
* wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826',
|
|
48
|
+
* },
|
|
49
|
+
* to: {
|
|
50
|
+
* name: 'Bob',
|
|
51
|
+
* wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB',
|
|
52
|
+
* },
|
|
53
|
+
* contents: 'Hello, Bob!',
|
|
54
|
+
* },
|
|
55
|
+
* })
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* // Account Hoisting
|
|
59
|
+
* import { createWalletClient, http } from 'viem'
|
|
60
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
61
|
+
* import { mainnet } from 'viem/chains'
|
|
62
|
+
* import { signTypedData } from 'viem/wallet'
|
|
63
|
+
*
|
|
64
|
+
* const client = createWalletClient({
|
|
65
|
+
* account: privateKeyToAccount('0x…'),
|
|
66
|
+
* chain: mainnet,
|
|
67
|
+
* transport: http(),
|
|
68
|
+
* })
|
|
69
|
+
* const signature = await signTypedData(client, {
|
|
70
|
+
* domain: {
|
|
71
|
+
* name: 'Ether Mail',
|
|
72
|
+
* version: '1',
|
|
73
|
+
* chainId: 1,
|
|
74
|
+
* verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
|
|
75
|
+
* },
|
|
76
|
+
* types: {
|
|
77
|
+
* Person: [
|
|
78
|
+
* { name: 'name', type: 'string' },
|
|
79
|
+
* { name: 'wallet', type: 'address' },
|
|
80
|
+
* ],
|
|
81
|
+
* Mail: [
|
|
82
|
+
* { name: 'from', type: 'Person' },
|
|
83
|
+
* { name: 'to', type: 'Person' },
|
|
84
|
+
* { name: 'contents', type: 'string' },
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* primaryType: 'Mail',
|
|
88
|
+
* message: {
|
|
89
|
+
* from: {
|
|
90
|
+
* name: 'Cow',
|
|
91
|
+
* wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826',
|
|
92
|
+
* },
|
|
93
|
+
* to: {
|
|
94
|
+
* name: 'Bob',
|
|
95
|
+
* wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB',
|
|
96
|
+
* },
|
|
97
|
+
* contents: 'Hello, Bob!',
|
|
98
|
+
* },
|
|
99
|
+
* })
|
|
100
|
+
*/
|
|
101
|
+
export declare function signTypedData<const TTypedData extends TypedData | {
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
}, TPrimaryType extends string, TAccount extends SmartAccount | undefined = SmartAccount | undefined>(client: Client<Transport, Chain | undefined, TAccount>, { account: account_, domain, message, primaryType, types: types_ }: SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>): Promise<SignTypedDataReturnType>;
|
|
104
|
+
//# sourceMappingURL=signTypedData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signTypedData.d.ts","sourceRoot":"","sources":["../../../actions/account-client/signTypedData.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,SAAS,EAKjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;AACH,wBAAsB,aAAa,CAC/B,KAAK,CAAC,UAAU,SAAS,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/D,YAAY,SAAS,MAAM,EAC3B,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EAEpE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,QAAQ,CAAC,EACtD,EACI,OAAO,EAAE,QAAyB,EAClC,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,EAAE,MAAM,EAChB,EAAE,uBAAuB,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,CAAC,GAC/D,OAAO,CAAC,uBAAuB,CAAC,CA6BlC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { SmartAccount } from "permissionless/accounts";
|
|
2
|
-
import type { PrepareUserOperationRequestParameters, PrepareUserOperationRequestReturnType } from "permissionless/actions/smartAccount";
|
|
3
|
-
import type { EntryPoint, Prettify } from "permissionless/types";
|
|
4
1
|
import type { Chain, Client, Transport } from "viem";
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export
|
|
2
|
+
import { type PrepareUserOperationParameters, type PrepareUserOperationReturnType, type SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
export type SignUserOperationParameters<account extends SmartAccount | undefined = SmartAccount | undefined, accountOverride extends SmartAccount | undefined = SmartAccount | undefined, calls extends readonly unknown[] = readonly unknown[]> = PrepareUserOperationParameters<account, accountOverride, calls>;
|
|
4
|
+
export type SignUserOperationReturnType = PrepareUserOperationReturnType;
|
|
5
|
+
export declare function signUserOperation<account extends SmartAccount | undefined = SmartAccount | undefined, chain extends Chain | undefined = Chain | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]>(client: Client<Transport, chain, account>, args: SignUserOperationParameters<account, accountOverride, calls>): Promise<SignUserOperationReturnType>;
|
|
8
6
|
//# sourceMappingURL=signUserOperation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"signUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/account-client/signUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,YAAY,EAGpB,MAAM,0BAA0B,CAAA;AAIjC,MAAM,MAAM,2BAA2B,CACnC,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACnE,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EAC3E,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACrD,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CAAA;AAEnE,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CAAA;AAExE,wBAAsB,iBAAiB,CACnC,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACnE,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,EAErD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,IAAI,EAAE,2BAA2B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,GACnE,OAAO,CAAC,2BAA2B,CAAC,CAoBtC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { type SendTransactionsWithPaymasterParameters } from "permissionless/actions/smartAccount";
|
|
2
|
-
import type { EntryPoint, Prettify } from "permissionless/types";
|
|
3
1
|
import type { Chain, Client, Hash, Transport } from "viem";
|
|
4
|
-
import type
|
|
2
|
+
import { type SendUserOperationParameters, type SmartAccount } from "viem/account-abstraction";
|
|
5
3
|
import type { KernelValidator, KernelValidatorHook } from "../../types/kernel.js";
|
|
6
|
-
export type UninstallPluginParameters<
|
|
7
|
-
plugin: KernelValidator<
|
|
4
|
+
export type UninstallPluginParameters<account extends SmartAccount | undefined = SmartAccount | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]> = Partial<SendUserOperationParameters<account, accountOverride, calls>> & {
|
|
5
|
+
plugin: KernelValidator<string>;
|
|
8
6
|
hook?: KernelValidatorHook;
|
|
9
|
-
}
|
|
10
|
-
export declare function uninstallPlugin<
|
|
7
|
+
};
|
|
8
|
+
export declare function uninstallPlugin<account extends SmartAccount | undefined, chain extends Chain | undefined, accountOverride extends SmartAccount | undefined = undefined, calls extends readonly unknown[] = readonly unknown[]>(client: Client<Transport, chain, account>, args: UninstallPluginParameters<account, accountOverride, calls>): Promise<Hash>;
|
|
11
9
|
//# sourceMappingURL=uninstallPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstallPlugin.d.ts","sourceRoot":"","sources":["../../../actions/account-client/uninstallPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"uninstallPlugin.d.ts","sourceRoot":"","sources":["../../../actions/account-client/uninstallPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAO,SAAS,EAAE,MAAM,MAAM,CAAA;AAC/D,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,YAAY,EAEpB,MAAM,0BAA0B,CAAA;AAWjC,OAAO,KAAK,EACR,eAAe,EACf,mBAAmB,EACtB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,yBAAyB,CACjC,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACnE,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACrD,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC,GAAG;IACxE,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;IAC/B,IAAI,CAAC,EAAE,mBAAmB,CAAA;CAC7B,CAAA;AAED,wBAAsB,eAAe,CACjC,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5D,KAAK,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,EAErD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,IAAI,EAAE,yBAAyB,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,GACjE,OAAO,CAAC,IAAI,CAAC,CAgDf"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Abi, type Chain, type Client, type ContractFunctionArgs, type ContractFunctionName, type Hash, type Transport, type WriteContractParameters } from "viem";
|
|
2
|
+
import type { SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
export declare function writeContract<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined, const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>, TChainOverride extends Chain | undefined = undefined>(client: Client<Transport, TChain, TAccount>, { abi, address, args, dataSuffix, functionName, ...request }: WriteContractParameters<TAbi, TFunctionName, TArgs, TChain, TAccount, TChainOverride>): Promise<Hash>;
|
|
4
|
+
//# sourceMappingURL=writeContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeContract.d.ts","sourceRoot":"","sources":["../../../actions/account-client/writeContract.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAEzB,KAAK,IAAI,EAET,KAAK,SAAS,EACd,KAAK,uBAAuB,EAE/B,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D,wBAAsB,aAAa,CAC/B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,YAAY,GAAG,SAAS,EACzC,KAAK,CAAC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC3C,aAAa,SAAS,oBAAoB,CACtC,IAAI,EACJ,YAAY,GAAG,SAAS,CAC3B,GAAG,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC,EACxD,KAAK,SAAS,oBAAoB,CAC9B,IAAI,EACJ,YAAY,GAAG,SAAS,EACxB,aAAa,CAChB,GAAG,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,EAAE,aAAa,CAAC,EACvE,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,EACI,GAAG,EACH,OAAO,EACP,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,GAAG,OAAO,EACb,EAAE,uBAAuB,CACtB,IAAI,EACJ,aAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EACR,cAAc,CACjB,GACF,OAAO,CAAC,IAAI,CAAC,CAqBf"}
|
|
@@ -2,7 +2,12 @@ export { sponsorUserOperation, type SponsorUserOperationParameters, type Sponsor
|
|
|
2
2
|
export { signUserOperation, type SignUserOperationParameters, type SignUserOperationReturnType } from "./account-client/signUserOperation.js";
|
|
3
3
|
export { getUserOperationGasPrice, type GetUserOperationGasPriceReturnType } from "./account-client/getUserOperationGasPrice.js";
|
|
4
4
|
export { uninstallPlugin, type UninstallPluginParameters } from "./account-client/uninstallPlugin.js";
|
|
5
|
+
export { getKernelV3ModuleCurrentNonce } from "./account-client/getKernelV3ModuleCurrentNonce.js";
|
|
6
|
+
export { type InvalidateNonceParameters, invalidateNonce } from "./account-client/invalidateNonce.js";
|
|
7
|
+
export { sendTransaction } from "./account-client/sendTransaction.js";
|
|
8
|
+
export { signMessage } from "./account-client/signMessage.js";
|
|
9
|
+
export { signTypedData } from "./account-client/signTypedData.js";
|
|
10
|
+
export { writeContract } from "./account-client/writeContract.js";
|
|
5
11
|
export { changeSudoValidator, type ChangeSudoValidatorParameters } from "./account-client/changeSudoValidator.js";
|
|
6
12
|
export { estimateGasInERC20, type EstimateGasInERC20Parameters, type EstimateGasInERC20ReturnType } from "./paymaster/estimateGasInERC20.js";
|
|
7
|
-
export { type SponsorUserOperationEip7677Parameters, type SponsorUserOperationEip7677ReturnType, sponsorUserOperationEip7677 } from "./paymaster/sponsorUserOperationEip7677.js";
|
|
8
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACtC,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EACH,iBAAiB,EACjB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EACnC,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EACH,wBAAwB,EACxB,KAAK,kCAAkC,EAC1C,MAAM,8CAA8C,CAAA;AAErD,OAAO,EACH,eAAe,EACf,KAAK,yBAAyB,EACjC,MAAM,qCAAqC,CAAA;AAE5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACtC,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EACH,iBAAiB,EACjB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EACnC,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EACH,wBAAwB,EACxB,KAAK,kCAAkC,EAC1C,MAAM,8CAA8C,CAAA;AAErD,OAAO,EACH,eAAe,EACf,KAAK,yBAAyB,EACjC,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAA;AAEjG,OAAO,EACH,KAAK,yBAAyB,EAC9B,eAAe,EAClB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAEjE,OAAO,EACH,mBAAmB,EACnB,KAAK,6BAA6B,EACrC,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EACH,kBAAkB,EAClB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACpC,MAAM,mCAAmC,CAAA"}
|