@zerodev/sdk
Version:
A utility library for working with ERC-4337
83 lines (82 loc) • 3.87 kB
text/typescript
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"
export {
sponsorUserOperation,
type SponsorUserOperationParameters,
type SponsorUserOperationReturnType
} from "./actions/paymaster/sponsorUserOperation.js"
export { type SmartAccountClientConfig } from "./clients/kernelAccountClient.js"
export {
zerodevPaymasterActions,
type ZeroDevPaymasterClientActions,
kernelAccountClientActions,
type KernelAccountClientActions
} from "./clients/decorators/kernel.js"
export {
createZeroDevPaymasterClient,
type ZeroDevPaymasterClient
} from "./clients/paymasterClient.js"
export {
createKernelAccountClient,
type KernelAccountClient
} from "./clients/kernelAccountClient.js"
export {
createKernelMigrationAccount,
type CreateKernelMigrationAccountParameters
} from "./accounts/kernel/createKernelMigrationAccount.js"
export { createFallbackKernelAccountClient } from "./clients/fallbackKernelAccountClient.js"
export {
type KernelValidator,
type KernelValidatorHook,
type ZeroDevPaymasterRpcSchema,
type KernelPluginManager,
type Action
} from "./types/kernel.js"
export { KernelAccountAbi } from "./accounts/kernel/abi/KernelAccountAbi.js"
export { KernelFactoryAbi } from "./accounts/kernel/abi/KernelFactoryAbi.js"
export {
KernelV3AccountAbi,
KernelV3ExecuteAbi,
KernelV3InitAbi
} from "./accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js"
export { KernelV3_1AccountAbi } from "./accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.js"
export { KernelV3_3AccountAbi } from "./accounts/kernel/abi/kernel_v_3_3/KernelAccountAbi.js"
export { KernelV3FactoryAbi } from "./accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.js"
export { KernelFactoryStakerAbi } from "./accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.js"
export { TokenActionsAbi } from "./accounts/kernel/abi/TokenActionsAbi.js"
export * as constants from "./constants.js"
export * from "./utils.js"
export { gasTokenAddresses, type TokenSymbolsMap } from "./gasTokenAddresses.js"
export {
verifyEIP6492Signature,
getCustomNonceKeyFromString
} from "./accounts/utils/index.js"
export { KernelEIP1193Provider } from "./providers/index.js"
export { getEncodedPluginsData } from "./accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js"
export { isProviderSet, setPimlicoAsProvider } from "./clients/utils.js"
export { getUserOperationGasPrice } from "./actions/account-client/getUserOperationGasPrice.js"
export { isPluginInitialized } from "./accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.js"
export * from "./errors/index.js"
export * from "./utils/index.js"
export { getUpgradeKernelCall } from "./accounts/kernel/utils/common/getUpgradeKernelCall.js"
export { eip712WrapHash } from "./accounts/kernel/utils/common/eip712WrapHash.js"
export { encodeCallData as encodeCallDataEpV06 } from "./accounts/kernel/utils/account/ep0_6/encodeCallData.js"
export { encodeCallData as encodeCallDataEpV07 } from "./accounts/kernel/utils/account/ep0_7/encodeCallData.js"
export { encodeDeployCallData as encodeDeployCallDataV06 } from "./accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js"
export { encodeDeployCallData as encodeDeployCallDataV07 } from "./accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js"
export { getValidatorPluginInstallModuleData } from "./accounts/kernel/utils/plugins/ep0_7/getValidatorPluginInstallModuleData.js"