@zerodev/sdk 5.4.9 → 5.4.10
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/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js +38 -1
- package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js.map +1 -1
- package/_cjs/accounts/kernel/createKernelAccount.js +26 -1
- package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.js +18 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.js.map +1 -0
- package/_cjs/accounts/utils/toKernelPluginManager.js +1 -0
- package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_cjs/actions/public/index.js +3 -1
- package/_cjs/actions/public/index.js.map +1 -1
- package/_cjs/actions/public/isPluginInstalled.js +23 -0
- package/_cjs/actions/public/isPluginInstalled.js.map +1 -0
- package/_cjs/constants.js +9 -1
- package/_cjs/constants.js.map +1 -1
- package/_cjs/types/index.js.map +1 -1
- package/_cjs/types/kernel.js.map +1 -1
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js +37 -0
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js.map +1 -1
- package/_esm/accounts/kernel/createKernelAccount.js +33 -2
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.js +14 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.js.map +1 -0
- package/_esm/accounts/utils/toKernelPluginManager.js +1 -0
- package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_esm/actions/public/index.js +1 -0
- package/_esm/actions/public/index.js.map +1 -1
- package/_esm/actions/public/isPluginInstalled.js +44 -0
- package/_esm/actions/public/isPluginInstalled.js.map +1 -0
- package/_esm/constants.js +8 -0
- package/_esm/constants.js.map +1 -1
- package/_esm/types/index.js.map +1 -1
- package/_esm/types/kernel.js.map +1 -1
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.d.ts +41 -0
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.d.ts.map +1 -1
- package/_types/accounts/kernel/createKernelAccount.d.ts +3 -2
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.d.ts +5 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.d.ts.map +1 -0
- package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
- package/_types/actions/public/index.d.ts +1 -0
- package/_types/actions/public/index.d.ts.map +1 -1
- package/_types/actions/public/isPluginInstalled.d.ts +37 -0
- package/_types/actions/public/isPluginInstalled.d.ts.map +1 -0
- package/_types/constants.d.ts +8 -0
- package/_types/constants.d.ts.map +1 -1
- package/_types/types/index.d.ts +1 -1
- package/_types/types/index.d.ts.map +1 -1
- package/_types/types/kernel.d.ts +8 -1
- package/_types/types/kernel.d.ts.map +1 -1
- package/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.ts +39 -0
- package/accounts/kernel/createKernelAccount.ts +64 -3
- package/accounts/kernel/utils/plugins/ep0_7/getPluginInstallCallData.ts +19 -0
- package/accounts/utils/toKernelPluginManager.ts +1 -0
- package/actions/public/index.ts +1 -0
- package/actions/public/isPluginInstalled.ts +62 -0
- package/constants.ts +9 -0
- package/package.json +1 -1
- package/types/index.ts +2 -1
- package/types/kernel.ts +10 -1
package/package.json
CHANGED
package/types/index.ts
CHANGED
package/types/kernel.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
entryPoint06Abi,
|
|
6
6
|
entryPoint07Abi
|
|
7
7
|
} from "viem/account-abstraction"
|
|
8
|
-
import type { VALIDATOR_TYPE } from "../constants.js"
|
|
8
|
+
import type { PLUGIN_TYPE, VALIDATOR_TYPE } from "../constants.js"
|
|
9
9
|
export type ZeroDevPaymasterRpcSchema<
|
|
10
10
|
entryPointVersion extends EntryPointVersion
|
|
11
11
|
> = [
|
|
@@ -154,10 +154,13 @@ export type ValidatorInitData = {
|
|
|
154
154
|
initConfig?: Hex[]
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
export type ActiveValidatorMode = "sudo" | "regular"
|
|
158
|
+
|
|
157
159
|
export type KernelPluginManager<entryPointVersion extends EntryPointVersion> =
|
|
158
160
|
KernelValidator & {
|
|
159
161
|
sudoValidator?: KernelValidator
|
|
160
162
|
regularValidator?: KernelValidator
|
|
163
|
+
activeValidatorMode: ActiveValidatorMode
|
|
161
164
|
hook?: KernelValidatorHook
|
|
162
165
|
getPluginEnableSignature(accountAddress: Address): Promise<Hex>
|
|
163
166
|
getValidatorInitData(): Promise<ValidatorInitData>
|
|
@@ -221,6 +224,12 @@ export enum ValidatorMode {
|
|
|
221
224
|
enable = "0x00000002"
|
|
222
225
|
}
|
|
223
226
|
|
|
227
|
+
export type PluginMigrationData = {
|
|
228
|
+
type: (typeof PLUGIN_TYPE)[keyof typeof PLUGIN_TYPE]
|
|
229
|
+
address: Address
|
|
230
|
+
data: Hex
|
|
231
|
+
}
|
|
232
|
+
|
|
224
233
|
export type CallType = "call" | "delegatecall"
|
|
225
234
|
|
|
226
235
|
export type KernelEncodeCallDataArgs = {
|