@zerodev/sdk 5.3.26 → 5.4.0-beta.1
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 +173 -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 +83 -94
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js +106 -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 +15 -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 +10 -0
- package/_cjs/actions/public/index.js.map +1 -0
- package/_cjs/actions/public/isSmartAccountDeployed.js +14 -0
- package/_cjs/actions/public/isSmartAccountDeployed.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 +26 -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 +1 -0
- package/_cjs/index.js.map +1 -1
- package/_cjs/providers/KernelEIP1193Provider.js.map +1 -1
- package/_cjs/types/index.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 +183 -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 +93 -98
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js +107 -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 +7 -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 +4 -0
- package/_esm/actions/public/index.js.map +1 -0
- package/_esm/actions/public/isSmartAccountDeployed.js +10 -0
- package/_esm/actions/public/isSmartAccountDeployed.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 +21 -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 +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
- package/_esm/types/index.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 +10 -8
- 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 +7 -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 +4 -0
- package/_types/actions/public/index.d.ts.map +1 -0
- package/_types/actions/public/isSmartAccountDeployed.d.ts +3 -0
- package/_types/actions/public/isSmartAccountDeployed.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 +10 -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 +2 -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 +2 -1
- 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 +315 -359
- 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 +151 -176
- package/accounts/kernel/v2/createKernelAccountV0_2.ts +141 -196
- 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 -56
- package/actions/account-client/writeContract.ts +72 -0
- package/actions/index.ts +16 -5
- 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 +10 -0
- package/actions/public/isSmartAccountDeployed.ts +18 -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 +25 -0
- package/gasTokenAddresses.ts +3 -2
- package/index.ts +6 -2
- package/package.json +11 -34
- package/providers/KernelEIP1193Provider.ts +4 -7
- package/types/index.ts +4 -1
- 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":"kernel.d.ts","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,
|
|
1
|
+
{"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,GAAG,EACH,OAAO,EACP,KAAK,EACL,MAAM,EACN,oBAAoB,EACpB,oBAAoB,EACpB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,SAAS,EACT,uBAAuB,EAC1B,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE/E,OAAO,EACH,KAAK,kCAAkC,EAE1C,MAAM,0DA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,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,IAAI,EAAE,uBAAuB,CACzB,IAAI,EACJ,aAAa,EACb,KAAK,EACL,MAAM,EACN,aAAa,EACb,cAAc,CACjB,KACA,UAAU,CACX,OAAO,aAAa,CAChB,MAAM,EACN,aAAa,EACb,IAAI,EACJ,aAAa,EACb,KAAK,EACL,cAAc,CACjB,CACJ,CAAA;CACJ,CAAA;AAED,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA3StC;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCANH;;;;;;OAMG;;;uHA2TN"}
|
|
@@ -1,6 +1,257 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Chain, Transport } from "viem";
|
|
3
|
-
import type { KernelSmartAccount } from "../accounts/index.js";
|
|
1
|
+
import type { Chain, Client, RpcSchema, Transport } from "viem";
|
|
4
2
|
import type { KernelAccountClient } from "./kernelAccountClient.js";
|
|
5
|
-
export declare const createFallbackKernelAccountClient: <
|
|
3
|
+
export declare const createFallbackKernelAccountClient: <transport extends Transport, chain extends Chain | undefined = undefined, account extends (object & {
|
|
4
|
+
client: Client;
|
|
5
|
+
entryPoint: {
|
|
6
|
+
abi: import("viem").Abi;
|
|
7
|
+
address: `0x${string}`;
|
|
8
|
+
version: import("viem/account-abstraction").EntryPointVersion;
|
|
9
|
+
};
|
|
10
|
+
extend?: object | undefined;
|
|
11
|
+
getAddress: () => Promise<`0x${string}`>;
|
|
12
|
+
decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
|
|
13
|
+
to: `0x${string}`;
|
|
14
|
+
data?: `0x${string}` | undefined;
|
|
15
|
+
value?: bigint | undefined;
|
|
16
|
+
}[]>) | undefined;
|
|
17
|
+
encodeCalls: (calls: readonly {
|
|
18
|
+
to: `0x${string}`;
|
|
19
|
+
data?: `0x${string}` | undefined;
|
|
20
|
+
value?: bigint | undefined;
|
|
21
|
+
}[]) => Promise<`0x${string}`>;
|
|
22
|
+
getFactoryArgs: () => Promise<{
|
|
23
|
+
factory?: `0x${string}` | undefined;
|
|
24
|
+
factoryData?: `0x${string}` | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
getNonce?: ((parameters?: {
|
|
27
|
+
key?: bigint | undefined;
|
|
28
|
+
} | undefined) => Promise<bigint>) | undefined;
|
|
29
|
+
getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
|
|
30
|
+
nonceKeyManager?: import("viem").NonceManager | undefined;
|
|
31
|
+
sign?: ((parameters: {
|
|
32
|
+
hash: `0x${string}`;
|
|
33
|
+
}) => Promise<`0x${string}`>) | undefined;
|
|
34
|
+
signMessage: (parameters: {
|
|
35
|
+
message: import("viem").SignableMessage;
|
|
36
|
+
}) => Promise<`0x${string}`>;
|
|
37
|
+
signTypedData: <const typedData extends {
|
|
38
|
+
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
39
|
+
[x: `string[${string}]`]: undefined;
|
|
40
|
+
[x: `function[${string}]`]: undefined;
|
|
41
|
+
[x: `address[${string}]`]: undefined;
|
|
42
|
+
[x: `bool[${string}]`]: undefined;
|
|
43
|
+
[x: `bytes[${string}]`]: undefined;
|
|
44
|
+
[x: `bytes1[${string}]`]: undefined;
|
|
45
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
46
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
47
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
48
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
49
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
50
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
51
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
52
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
53
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
54
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
55
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
56
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
57
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
58
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
59
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
60
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
61
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
62
|
+
[x: `bytes19[${string}]`]: undefined;
|
|
63
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
64
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
65
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
66
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
67
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
68
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
69
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
70
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
71
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
72
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
73
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
74
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
75
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
76
|
+
[x: `int[${string}]`]: undefined;
|
|
77
|
+
[x: `int8[${string}]`]: undefined;
|
|
78
|
+
[x: `int16[${string}]`]: undefined;
|
|
79
|
+
[x: `int24[${string}]`]: undefined;
|
|
80
|
+
[x: `int32[${string}]`]: undefined;
|
|
81
|
+
[x: `int40[${string}]`]: undefined;
|
|
82
|
+
[x: `int48[${string}]`]: undefined;
|
|
83
|
+
[x: `int56[${string}]`]: undefined;
|
|
84
|
+
[x: `int64[${string}]`]: undefined;
|
|
85
|
+
[x: `int72[${string}]`]: undefined;
|
|
86
|
+
[x: `int80[${string}]`]: undefined;
|
|
87
|
+
[x: `int88[${string}]`]: undefined;
|
|
88
|
+
[x: `int96[${string}]`]: undefined;
|
|
89
|
+
[x: `int104[${string}]`]: undefined;
|
|
90
|
+
[x: `int112[${string}]`]: undefined;
|
|
91
|
+
[x: `int120[${string}]`]: undefined;
|
|
92
|
+
[x: `int128[${string}]`]: undefined;
|
|
93
|
+
[x: `int136[${string}]`]: undefined;
|
|
94
|
+
[x: `int144[${string}]`]: undefined;
|
|
95
|
+
[x: `int152[${string}]`]: undefined;
|
|
96
|
+
[x: `int160[${string}]`]: undefined;
|
|
97
|
+
[x: `int168[${string}]`]: undefined;
|
|
98
|
+
[x: `int176[${string}]`]: undefined;
|
|
99
|
+
[x: `int184[${string}]`]: undefined;
|
|
100
|
+
[x: `int192[${string}]`]: undefined;
|
|
101
|
+
[x: `int200[${string}]`]: undefined;
|
|
102
|
+
[x: `int208[${string}]`]: undefined;
|
|
103
|
+
[x: `int216[${string}]`]: undefined;
|
|
104
|
+
[x: `int224[${string}]`]: undefined;
|
|
105
|
+
[x: `int232[${string}]`]: undefined;
|
|
106
|
+
[x: `int240[${string}]`]: undefined;
|
|
107
|
+
[x: `int248[${string}]`]: undefined;
|
|
108
|
+
[x: `int256[${string}]`]: undefined;
|
|
109
|
+
[x: `uint[${string}]`]: undefined;
|
|
110
|
+
[x: `uint8[${string}]`]: undefined;
|
|
111
|
+
[x: `uint16[${string}]`]: undefined;
|
|
112
|
+
[x: `uint24[${string}]`]: undefined;
|
|
113
|
+
[x: `uint32[${string}]`]: undefined;
|
|
114
|
+
[x: `uint40[${string}]`]: undefined;
|
|
115
|
+
[x: `uint48[${string}]`]: undefined;
|
|
116
|
+
[x: `uint56[${string}]`]: undefined;
|
|
117
|
+
[x: `uint64[${string}]`]: undefined;
|
|
118
|
+
[x: `uint72[${string}]`]: undefined;
|
|
119
|
+
[x: `uint80[${string}]`]: undefined;
|
|
120
|
+
[x: `uint88[${string}]`]: undefined;
|
|
121
|
+
[x: `uint96[${string}]`]: undefined;
|
|
122
|
+
[x: `uint104[${string}]`]: undefined;
|
|
123
|
+
[x: `uint112[${string}]`]: undefined;
|
|
124
|
+
[x: `uint120[${string}]`]: undefined;
|
|
125
|
+
[x: `uint128[${string}]`]: undefined;
|
|
126
|
+
[x: `uint136[${string}]`]: undefined;
|
|
127
|
+
[x: `uint144[${string}]`]: undefined;
|
|
128
|
+
[x: `uint152[${string}]`]: undefined;
|
|
129
|
+
[x: `uint160[${string}]`]: undefined;
|
|
130
|
+
[x: `uint168[${string}]`]: undefined;
|
|
131
|
+
[x: `uint176[${string}]`]: undefined;
|
|
132
|
+
[x: `uint184[${string}]`]: undefined;
|
|
133
|
+
[x: `uint192[${string}]`]: undefined;
|
|
134
|
+
[x: `uint200[${string}]`]: undefined;
|
|
135
|
+
[x: `uint208[${string}]`]: undefined;
|
|
136
|
+
[x: `uint216[${string}]`]: undefined;
|
|
137
|
+
[x: `uint224[${string}]`]: undefined;
|
|
138
|
+
[x: `uint232[${string}]`]: undefined;
|
|
139
|
+
[x: `uint240[${string}]`]: undefined;
|
|
140
|
+
[x: `uint248[${string}]`]: undefined;
|
|
141
|
+
[x: `uint256[${string}]`]: undefined;
|
|
142
|
+
string?: undefined;
|
|
143
|
+
address?: undefined;
|
|
144
|
+
bool?: undefined;
|
|
145
|
+
bytes?: undefined;
|
|
146
|
+
bytes1?: undefined;
|
|
147
|
+
bytes3?: undefined;
|
|
148
|
+
bytes2?: undefined;
|
|
149
|
+
bytes4?: undefined;
|
|
150
|
+
bytes5?: undefined;
|
|
151
|
+
bytes6?: undefined;
|
|
152
|
+
bytes7?: undefined;
|
|
153
|
+
bytes8?: undefined;
|
|
154
|
+
bytes9?: undefined;
|
|
155
|
+
bytes10?: undefined;
|
|
156
|
+
bytes11?: undefined;
|
|
157
|
+
bytes12?: undefined;
|
|
158
|
+
bytes13?: undefined;
|
|
159
|
+
bytes14?: undefined;
|
|
160
|
+
bytes15?: undefined;
|
|
161
|
+
bytes16?: undefined;
|
|
162
|
+
bytes17?: undefined;
|
|
163
|
+
bytes18?: undefined;
|
|
164
|
+
bytes19?: undefined;
|
|
165
|
+
bytes20?: undefined;
|
|
166
|
+
bytes21?: undefined;
|
|
167
|
+
bytes22?: undefined;
|
|
168
|
+
bytes23?: undefined;
|
|
169
|
+
bytes24?: undefined;
|
|
170
|
+
bytes25?: undefined;
|
|
171
|
+
bytes26?: undefined;
|
|
172
|
+
bytes27?: undefined;
|
|
173
|
+
bytes28?: undefined;
|
|
174
|
+
bytes29?: undefined;
|
|
175
|
+
bytes30?: undefined;
|
|
176
|
+
bytes31?: undefined;
|
|
177
|
+
bytes32?: undefined;
|
|
178
|
+
int8?: undefined;
|
|
179
|
+
int16?: undefined;
|
|
180
|
+
int24?: undefined;
|
|
181
|
+
int32?: undefined;
|
|
182
|
+
int40?: undefined;
|
|
183
|
+
int48?: undefined;
|
|
184
|
+
int56?: undefined;
|
|
185
|
+
int64?: undefined;
|
|
186
|
+
int72?: undefined;
|
|
187
|
+
int80?: undefined;
|
|
188
|
+
int88?: undefined;
|
|
189
|
+
int96?: undefined;
|
|
190
|
+
int104?: undefined;
|
|
191
|
+
int112?: undefined;
|
|
192
|
+
int120?: undefined;
|
|
193
|
+
int128?: undefined;
|
|
194
|
+
int136?: undefined;
|
|
195
|
+
int144?: undefined;
|
|
196
|
+
int152?: undefined;
|
|
197
|
+
int160?: undefined;
|
|
198
|
+
int168?: undefined;
|
|
199
|
+
int176?: undefined;
|
|
200
|
+
int184?: undefined;
|
|
201
|
+
int192?: undefined;
|
|
202
|
+
int200?: undefined;
|
|
203
|
+
int208?: undefined;
|
|
204
|
+
int216?: undefined;
|
|
205
|
+
int224?: undefined;
|
|
206
|
+
int232?: undefined;
|
|
207
|
+
int240?: undefined;
|
|
208
|
+
int248?: undefined;
|
|
209
|
+
int256?: undefined;
|
|
210
|
+
uint8?: undefined;
|
|
211
|
+
uint16?: undefined;
|
|
212
|
+
uint24?: undefined;
|
|
213
|
+
uint32?: undefined;
|
|
214
|
+
uint40?: undefined;
|
|
215
|
+
uint48?: undefined;
|
|
216
|
+
uint56?: undefined;
|
|
217
|
+
uint64?: undefined;
|
|
218
|
+
uint72?: undefined;
|
|
219
|
+
uint80?: undefined;
|
|
220
|
+
uint88?: undefined;
|
|
221
|
+
uint96?: undefined;
|
|
222
|
+
uint104?: undefined;
|
|
223
|
+
uint112?: undefined;
|
|
224
|
+
uint120?: undefined;
|
|
225
|
+
uint128?: undefined;
|
|
226
|
+
uint136?: undefined;
|
|
227
|
+
uint144?: undefined;
|
|
228
|
+
uint152?: undefined;
|
|
229
|
+
uint160?: undefined;
|
|
230
|
+
uint168?: undefined;
|
|
231
|
+
uint176?: undefined;
|
|
232
|
+
uint184?: undefined;
|
|
233
|
+
uint192?: undefined;
|
|
234
|
+
uint200?: undefined;
|
|
235
|
+
uint208?: undefined;
|
|
236
|
+
uint216?: undefined;
|
|
237
|
+
uint224?: undefined;
|
|
238
|
+
uint232?: undefined;
|
|
239
|
+
uint240?: undefined;
|
|
240
|
+
uint248?: undefined;
|
|
241
|
+
uint256?: undefined;
|
|
242
|
+
} | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
|
|
243
|
+
signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
|
|
244
|
+
chainId?: number | undefined;
|
|
245
|
+
}) => Promise<`0x${string}`>;
|
|
246
|
+
userOperation?: {
|
|
247
|
+
estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
} & {
|
|
250
|
+
address: `0x${string}`;
|
|
251
|
+
getNonce: (parameters?: {
|
|
252
|
+
key?: bigint | undefined;
|
|
253
|
+
} | undefined) => Promise<bigint>;
|
|
254
|
+
isDeployed: () => Promise<boolean>;
|
|
255
|
+
type: "smart";
|
|
256
|
+
}) | undefined = undefined, client extends Client | undefined = undefined, rpcSchema extends RpcSchema | undefined = undefined>(clients: KernelAccountClient<transport, chain, account, client, rpcSchema>[], onError?: ((error: Error, clientUrl: string) => Promise<void>) | undefined) => KernelAccountClient<transport, chain, account, client, rpcSchema>;
|
|
6
257
|
//# sourceMappingURL=fallbackKernelAccountClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackKernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/fallbackKernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"fallbackKernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/fallbackKernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iOAUxB,KAAK,aAAa,MAAM,KAAK,QAAQ,IAAI,CAAC,mFAmE/D,CAAA"}
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type { EntryPoint, Prettify } from "permissionless/types";
|
|
4
|
-
import type { BundlerRpcSchema } from "permissionless/types/bundler";
|
|
5
|
-
import { type Chain, type Client, type ClientConfig, type Transport } from "viem";
|
|
6
|
-
import type { KernelSmartAccount } from "../accounts/index.js";
|
|
1
|
+
import { type BundlerRpcSchema, type Chain, type Client, type ClientConfig, type EstimateFeesPerGasReturnType, type Prettify, type RpcSchema, type Transport } from "viem";
|
|
2
|
+
import { type BundlerActions, type BundlerClientConfig, type PaymasterActions, type SmartAccount, type UserOperationRequest, type prepareUserOperation as viemPrepareUserOperation } from "viem/account-abstraction";
|
|
7
3
|
import { type KernelAccountClientActions } from "./decorators/kernel.js";
|
|
8
|
-
export type KernelAccountClient<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
4
|
+
export type KernelAccountClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, client extends Client | undefined = Client | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Client<transport, chain extends Chain ? chain : client extends Client<any, infer chain> ? chain : undefined, account, rpcSchema extends RpcSchema ? [...BundlerRpcSchema, ...rpcSchema] : BundlerRpcSchema, BundlerActions<account> & KernelAccountClientActions<chain, account>>> & {
|
|
5
|
+
client: client;
|
|
6
|
+
paymaster: BundlerClientConfig["paymaster"] | undefined;
|
|
7
|
+
paymasterContext: BundlerClientConfig["paymasterContext"] | undefined;
|
|
8
|
+
userOperation: BundlerClientConfig["userOperation"] | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type SmartAccountClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, client extends Client | undefined = Client | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Pick<ClientConfig<transport, chain, account, rpcSchema>, "account" | "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "rpcSchema">> & {
|
|
11
|
+
bundlerTransport: transport;
|
|
12
|
+
/** Client that points to an Execution RPC URL. */
|
|
13
|
+
client?: client | Client | undefined;
|
|
14
|
+
/** Paymaster configuration. */
|
|
15
|
+
paymaster?: true | {
|
|
16
|
+
/** Retrieves paymaster-related User Operation properties to be used for sending the User Operation. */
|
|
17
|
+
getPaymasterData?: PaymasterActions["getPaymasterData"] | undefined;
|
|
18
|
+
/** Retrieves paymaster-related User Operation properties to be used for gas estimation. */
|
|
19
|
+
getPaymasterStubData?: PaymasterActions["getPaymasterStubData"] | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
/** Paymaster context to pass to `getPaymasterData` and `getPaymasterStubData` calls. */
|
|
22
|
+
paymasterContext?: unknown;
|
|
23
|
+
/** User Operation configuration. */
|
|
24
|
+
userOperation?: {
|
|
25
|
+
/** Prepares fee properties for the User Operation request. */
|
|
26
|
+
estimateFeesPerGas?: ((parameters: {
|
|
27
|
+
account: account | SmartAccount;
|
|
28
|
+
bundlerClient: Client;
|
|
29
|
+
userOperation: UserOperationRequest;
|
|
30
|
+
}) => Promise<EstimateFeesPerGasReturnType<"eip1559">>) | undefined;
|
|
31
|
+
/** Prepare User Operation configuration. */
|
|
32
|
+
prepareUserOperation?: typeof viemPrepareUserOperation | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
};
|
|
35
|
+
export declare function createKernelAccountClient<transport extends Transport, chain extends Chain | undefined = undefined, account extends SmartAccount | undefined = undefined, client extends Client | undefined = undefined, rpcSchema extends RpcSchema | undefined = undefined>(parameters: SmartAccountClientConfig<transport, chain, account, client, rpcSchema>): KernelAccountClient<transport, chain, account, client, rpcSchema>;
|
|
38
36
|
//# sourceMappingURL=kernelAccountClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/kernelAccountClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/kernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EAErB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,IAAI,wBAAwB,EACxD,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACH,KAAK,0BAA0B,EAElC,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,mBAAmB,CAC3B,SAAS,SAAS,SAAS,GAAG,SAAS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,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type
|
|
1
|
+
import { type Address, type Chain, type Client, type ClientConfig, type Prettify, type RpcSchema, type Transport } from "viem";
|
|
2
|
+
import { type PaymasterActions, type SmartAccount } from "viem/account-abstraction";
|
|
3
3
|
import type { ZeroDevPaymasterRpcSchema } from "../types/kernel.js";
|
|
4
|
-
|
|
5
|
-
export type
|
|
4
|
+
export type ZeroDevPaymasterClient<entryPointVersion extends "0.6" | "0.7" = "0.7", transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, client extends Client | undefined = Client | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Client<transport, chain extends Chain ? chain : client extends Client<any, infer chain> ? chain : undefined, account, rpcSchema extends RpcSchema ? [...ZeroDevPaymasterRpcSchema<entryPointVersion>, ...rpcSchema] : ZeroDevPaymasterRpcSchema<entryPointVersion>, PaymasterActions>>;
|
|
5
|
+
export type ZeroDevPaymasterClientConfig<entryPointVersion extends "0.6" | "0.7" = "0.7" | "0.6", transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Pick<ClientConfig<transport, chain, account, rpcSchema>, "account" | "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "rpcSchema" | "transport">> & {
|
|
6
|
+
entryPoint?: {
|
|
7
|
+
address: Address;
|
|
8
|
+
version: entryPointVersion;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
6
11
|
/**
|
|
7
12
|
* Creates a ZeroDev-specific Paymaster Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
8
13
|
*
|
|
@@ -20,24 +25,5 @@ export type ZeroDevPaymasterClient<entryPoint extends EntryPoint> = Client<Trans
|
|
|
20
25
|
* transport: http(`https://rpc.zerodev.app/api/v2/paymaster/${projectId}`),
|
|
21
26
|
* })
|
|
22
27
|
*/
|
|
23
|
-
export declare const createZeroDevPaymasterClient:
|
|
24
|
-
name?: string | undefined;
|
|
25
|
-
batch?: {
|
|
26
|
-
multicall?: boolean | {
|
|
27
|
-
batchSize?: number | undefined;
|
|
28
|
-
wait?: number | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
cacheTime?: number | undefined;
|
|
32
|
-
ccipRead?: false | {
|
|
33
|
-
request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
chain?: Chain | chain | undefined;
|
|
36
|
-
key?: string | undefined;
|
|
37
|
-
pollingInterval?: number | undefined;
|
|
38
|
-
transport: transport;
|
|
39
|
-
rpcSchema?: undefined;
|
|
40
|
-
} & {
|
|
41
|
-
entryPoint: entryPoint;
|
|
42
|
-
}) => ZeroDevPaymasterClient<entryPoint>;
|
|
28
|
+
export declare const createZeroDevPaymasterClient: (parameters: ZeroDevPaymasterClientConfig) => ZeroDevPaymasterClient;
|
|
43
29
|
//# sourceMappingURL=paymasterClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymasterClient.d.ts","sourceRoot":"","sources":["../../clients/paymasterClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paymasterClient.d.ts","sourceRoot":"","sources":["../../clients/paymasterClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,QAAQ,EAEb,KAAK,SAAS,EACd,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,YAAY,EAGpB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM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ChB,OAAO,EAAE,iBAAiB,CAAA;KAC7B,CAAA;CACJ,CAAA;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,4BAA4B,eACzB,4BAA4B,KACzC,sBAyBF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseError } from "viem";
|
|
2
|
+
export declare class AccountNotFoundError extends BaseError {
|
|
3
|
+
constructor({ docsPath }?: {
|
|
4
|
+
docsPath?: string | undefined;
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
export declare class SignTransactionNotSupportedBySmartAccountError extends BaseError {
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEhC,qBAAa,oBAAqB,SAAQ,SAAS;gBACnC,EAAE,QAAQ,EAAE,GAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAO;CAanE;AAED,qBAAa,8CAA+C,SAAQ,SAAS;;CAM5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gasTokenAddresses.d.ts","sourceRoot":"","sources":["../gasTokenAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG;IAC1B,CAAC,EACK,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,OAAO,GACP,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,SAAS,GACT,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,SAAS,GACT,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,CAAA;IACZ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACnB,EAAE,EACI,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,CAAA;IACZ,EAAE,EACI,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,CAAA;IACX,EAAE,EAAE,OAAO,GAAG,MAAM,CAAA;IACpB,GAAG,EACG,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,SAAS,GACT,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,CAAA;IACZ,GAAG,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;IAC7B,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IACpE,KAAK,EACC,MAAM,GACN,KAAK,GACL,QAAQ,GACR,KAAK,GACL,OAAO,GACP,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,CAAA;IACZ,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,KAAK,EACC,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,CAAA;IACZ,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,CAAA;IAC/B,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,GAAG,OAAO,CAAA;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"gasTokenAddresses.d.ts","sourceRoot":"","sources":["../gasTokenAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,MAAM,eAAe,GAAG;IAC1B,CAAC,EACK,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,OAAO,GACP,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,SAAS,GACT,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,SAAS,GACT,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,CAAA;IACZ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACnB,EAAE,EACI,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,CAAA;IACZ,EAAE,EACI,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,CAAA;IACX,EAAE,EAAE,OAAO,GAAG,MAAM,CAAA;IACpB,GAAG,EACG,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM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,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE;KAC3B,OAAO,IAAI,MAAM,eAAe,GAAG;SAC/B,KAAK,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,GAAG;KAC3C;CAmWJ,CAAA"}
|
package/_types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createKernelAccount, createKernelAccountV0_2, createKernelAccountV1, type
|
|
1
|
+
export { createKernelAccount, createKernelAccountV0_2, createKernelAccountV1, type CreateKernelAccountParameters, type CreateKernelAccountReturnType, type CreateKernelAccountV1ReturnType, type KernelSmartAccountImplementation, type KernelSmartAccountV1Implementation, KERNEL_ADDRESSES, addressToEmptyAccount, EIP1271Abi, getKernelV3Nonce, accountMetadata, getActionSelector, getPluginsEnableTypedData } from "./accounts/index.js";
|
|
2
2
|
export { sponsorUserOperation, type SponsorUserOperationParameters, type SponsorUserOperationReturnType } from "./actions/paymaster/sponsorUserOperation.js";
|
|
3
3
|
export { type SmartAccountClientConfig } from "./clients/kernelAccountClient.js";
|
|
4
4
|
export { zerodevPaymasterActions, type ZeroDevPaymasterClientActions, kernelAccountClientActions, type KernelAccountClientActions } from "./clients/decorators/kernel.js";
|
|
@@ -22,4 +22,5 @@ export { getEncodedPluginsData } from "./accounts/kernel/utils/plugins/ep0_7/get
|
|
|
22
22
|
export { isProviderSet, setPimlicoAsProvider } from "./clients/utils.js";
|
|
23
23
|
export { getUserOperationGasPrice } from "./actions/account-client/getUserOperationGasPrice.js";
|
|
24
24
|
export { isPluginInitialized } from "./accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.js";
|
|
25
|
+
export * from "./errors/index.js";
|
|
25
26
|
//# sourceMappingURL=index.d.ts.map
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EAC5B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACtC,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAChF,OAAO,EACH,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,0BAA0B,EAC1B,KAAK,0BAA0B,EAClC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,4BAA4B,EAC5B,KAAK,sBAAsB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,yBAAyB,EACzB,KAAK,mBAAmB,EAC3B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAA;AAC5F,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACd,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EAClB,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gEAAgE,CAAA;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACH,sBAAsB,EACtB,2BAA2B,EAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AACtG,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAClG,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from "events";
|
|
3
|
-
import type { KernelAccountClient } from "@zerodev/sdk";
|
|
4
|
-
import type { EntryPoint } from "permissionless/types";
|
|
5
3
|
import type { EIP1193Parameters, EIP1193RequestFn } from "viem";
|
|
6
|
-
|
|
4
|
+
import type { KernelAccountClient } from "../clients/kernelAccountClient.js";
|
|
5
|
+
export declare class KernelEIP1193Provider extends EventEmitter {
|
|
7
6
|
private kernelClient;
|
|
8
|
-
constructor(kernelClient: KernelAccountClient
|
|
7
|
+
constructor(kernelClient: KernelAccountClient);
|
|
9
8
|
request({ method, params }: EIP1193Parameters): ReturnType<EIP1193RequestFn>;
|
|
10
9
|
private handleEthRequestAccounts;
|
|
11
10
|
private handleEthAccounts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KernelEIP1193Provider.d.ts","sourceRoot":"","sources":["../../providers/KernelEIP1193Provider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"KernelEIP1193Provider.d.ts","sourceRoot":"","sources":["../../providers/KernelEIP1193Provider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EACR,iBAAiB,EACjB,gBAAgB,EAGnB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAE5E,qBAAa,qBAAsB,SAAQ,YAAY;IACnD,OAAO,CAAC,YAAY,CAAqB;gBAE7B,YAAY,EAAE,mBAAmB;IAKvC,OAAO,CAAC,EACV,MAAM,EACN,MAAW,EACd,EAAE,iBAAiB,GAAG,UAAU,CAAC,gBAAgB,CAAC;YAoBrC,wBAAwB;YAOxB,iBAAiB;YAOjB,wBAAwB;YAKxB,aAAa;YAoBb,kBAAkB;YAsBlB,wBAAwB;CAyBzC"}
|
package/_types/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type { KernelValidator, ZeroDevPaymasterRpcSchema, Action, KernelPluginManager, ValidatorInitData, CallType, KernelEncodeCallDataArgs, PluginValidityData, ZeroDevAccountClientRpcSchema, ZeroDevUserOperationGasPriceWithBigIntAsHex, KERNEL_V2_VERSION_TYPE, KERNEL_V3_VERSION_TYPE, KERNEL_VERSION_TYPE, GetKernelVersion } from "./kernel.js";
|
|
1
|
+
export type { KernelValidator, ZeroDevPaymasterRpcSchema, Action, KernelPluginManager, ValidatorInitData, CallType, KernelEncodeCallDataArgs, PluginValidityData, ZeroDevAccountClientRpcSchema, ZeroDevUserOperationGasPriceWithBigIntAsHex, KERNEL_V2_VERSION_TYPE, KERNEL_V3_VERSION_TYPE, KERNEL_VERSION_TYPE, GetKernelVersion, GetEntryPointAbi } from "./kernel.js";
|
|
2
2
|
export { ValidatorMode } from "./kernel.js";
|
|
3
3
|
export type WithRequired<T, K extends keyof T> = Required<Pick<T, K>>;
|
|
4
|
+
export type PartialPick<T, K extends keyof T> = Partial<Pick<T, K>>;
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,eAAe,EACf,yBAAyB,EACzB,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,kBAAkB,EAClB,6BAA6B,EAC7B,2CAA2C,EAC3C,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,eAAe,EACf,yBAAyB,EACzB,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,kBAAkB,EAClB,6BAA6B,EAC7B,2CAA2C,EAC3C,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EACnB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAErE,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA"}
|