@zerodev/sdk 5.2.0-alpha-4 → 5.2.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/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js +115 -58
- package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js.map +1 -1
- package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.js +39 -0
- package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.js.map +1 -0
- package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.js +203 -0
- package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.js.map +1 -0
- package/_cjs/accounts/kernel/createKernelAccount.js +42 -22
- package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.js +22 -0
- package/_cjs/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.js.map +1 -0
- package/_cjs/accounts/kernel/utils/common/getActionSelector.js +19 -0
- package/_cjs/accounts/kernel/utils/common/getActionSelector.js.map +1 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js +22 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js.map +1 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js +39 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js.map +1 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js +21 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js.map +1 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js +41 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.js +20 -0
- package/_cjs/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.js.map +1 -0
- package/_cjs/accounts/kernel/v1/createKernelV1Account.js +4 -2
- package/_cjs/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
- package/_cjs/accounts/kernel/v2/createKernelV2Account.js +9 -4
- package/_cjs/accounts/kernel/v2/createKernelV2Account.js.map +1 -1
- package/_cjs/accounts/utils/getCustomNonceKeyFromString.js +19 -0
- package/_cjs/accounts/utils/getCustomNonceKeyFromString.js.map +1 -0
- package/_cjs/accounts/utils/index.js +3 -1
- package/_cjs/accounts/utils/index.js.map +1 -1
- package/_cjs/accounts/utils/toKernelPluginManager.js +120 -184
- package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_cjs/actions/account-client/getUserOperationGasPrice.js +15 -0
- package/_cjs/actions/account-client/getUserOperationGasPrice.js.map +1 -0
- package/_cjs/actions/index.js +3 -1
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/paymaster/estimateGasInERC20.js +2 -2
- package/_cjs/actions/paymaster/estimateGasInERC20.js.map +1 -1
- package/_cjs/actions/paymaster/sponsorUserOperation.js +1 -2
- package/_cjs/actions/paymaster/sponsorUserOperation.js.map +1 -1
- package/_cjs/clients/decorators/kernel.js +3 -1
- package/_cjs/clients/decorators/kernel.js.map +1 -1
- package/_cjs/clients/kernelAccountClient.js +29 -3
- package/_cjs/clients/kernelAccountClient.js.map +1 -1
- package/_cjs/clients/paymasterClient.js +18 -1
- package/_cjs/clients/paymasterClient.js.map +1 -1
- package/_cjs/clients/utils.js +31 -0
- package/_cjs/clients/utils.js.map +1 -0
- package/_cjs/constants.js +5 -2
- package/_cjs/constants.js.map +1 -1
- package/_cjs/index.js +6 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/providers/KernelEIP1193Provider.js +37 -0
- 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 +1 -2
- package/_cjs/utils.js.map +1 -1
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js +115 -58
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js.map +1 -1
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.js +36 -0
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.js.map +1 -0
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.js +200 -0
- package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.js.map +1 -0
- package/_esm/accounts/kernel/createKernelAccount.js +43 -23
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.js +18 -0
- package/_esm/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.js.map +1 -0
- package/_esm/accounts/kernel/utils/common/getActionSelector.js +15 -0
- package/_esm/accounts/kernel/utils/common/getActionSelector.js.map +1 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js +18 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js.map +1 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js +35 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js.map +1 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js +18 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js.map +1 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js +42 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.js +16 -0
- package/_esm/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.js.map +1 -0
- package/_esm/accounts/kernel/v1/createKernelV1Account.js +5 -3
- package/_esm/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
- package/_esm/accounts/kernel/v2/createKernelV2Account.js +10 -5
- package/_esm/accounts/kernel/v2/createKernelV2Account.js.map +1 -1
- package/_esm/accounts/utils/getCustomNonceKeyFromString.js +15 -0
- package/_esm/accounts/utils/getCustomNonceKeyFromString.js.map +1 -0
- package/_esm/accounts/utils/index.js +1 -0
- package/_esm/accounts/utils/index.js.map +1 -1
- package/_esm/accounts/utils/toKernelPluginManager.js +124 -188
- package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
- package/_esm/actions/account-client/getUserOperationGasPrice.js +11 -0
- package/_esm/actions/account-client/getUserOperationGasPrice.js.map +1 -0
- package/_esm/actions/index.js +1 -0
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/paymaster/estimateGasInERC20.js +2 -2
- package/_esm/actions/paymaster/estimateGasInERC20.js.map +1 -1
- package/_esm/actions/paymaster/sponsorUserOperation.js +1 -2
- package/_esm/actions/paymaster/sponsorUserOperation.js.map +1 -1
- package/_esm/clients/decorators/kernel.js +3 -1
- package/_esm/clients/decorators/kernel.js.map +1 -1
- package/_esm/clients/kernelAccountClient.js +30 -4
- package/_esm/clients/kernelAccountClient.js.map +1 -1
- package/_esm/clients/paymasterClient.js +19 -2
- package/_esm/clients/paymasterClient.js.map +1 -1
- package/_esm/clients/utils.js +26 -0
- package/_esm/clients/utils.js.map +1 -0
- package/_esm/constants.js +4 -1
- package/_esm/constants.js.map +1 -1
- package/_esm/index.js +3 -1
- package/_esm/index.js.map +1 -1
- package/_esm/providers/KernelEIP1193Provider.js +37 -0
- 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 +2 -3
- package/_esm/utils.js.map +1 -1
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.d.ts +110 -20
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.d.ts.map +1 -1
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.d.ts +60 -0
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.d.ts.map +1 -0
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.d.ts +215 -0
- package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.d.ts.map +1 -0
- package/_types/accounts/kernel/createKernelAccount.d.ts +7 -4
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.d.ts +3 -0
- package/_types/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/common/getActionSelector.d.ts +4 -0
- package/_types/accounts/kernel/utils/common/getActionSelector.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.d.ts +9 -0
- package/_types/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.d.ts +13 -0
- package/_types/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.d.ts +9 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.d.ts +10 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.d.ts +3 -0
- package/_types/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.d.ts.map +1 -0
- package/_types/accounts/kernel/v1/createKernelV1Account.d.ts +1 -1
- package/_types/accounts/kernel/v1/createKernelV1Account.d.ts.map +1 -1
- package/_types/accounts/kernel/v2/createKernelV2Account.d.ts +3 -1
- package/_types/accounts/kernel/v2/createKernelV2Account.d.ts.map +1 -1
- package/_types/accounts/utils/getCustomNonceKeyFromString.d.ts +3 -0
- package/_types/accounts/utils/getCustomNonceKeyFromString.d.ts.map +1 -0
- package/_types/accounts/utils/index.d.ts +1 -0
- package/_types/accounts/utils/index.d.ts.map +1 -1
- package/_types/accounts/utils/toKernelPluginManager.d.ts +1 -1
- package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
- package/_types/actions/account-client/getUserOperationGasPrice.d.ts +9 -0
- package/_types/actions/account-client/getUserOperationGasPrice.d.ts.map +1 -0
- package/_types/actions/index.d.ts +1 -0
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/paymaster/estimateGasInERC20.d.ts.map +1 -1
- package/_types/actions/paymaster/sponsorUserOperation.d.ts.map +1 -1
- package/_types/clients/decorators/kernel.d.ts +8 -1
- package/_types/clients/decorators/kernel.d.ts.map +1 -1
- package/_types/clients/kernelAccountClient.d.ts +12 -4
- package/_types/clients/kernelAccountClient.d.ts.map +1 -1
- package/_types/clients/paymasterClient.d.ts.map +1 -1
- package/_types/clients/utils.d.ts +3 -0
- package/_types/clients/utils.d.ts.map +1 -0
- package/_types/constants.d.ts +4 -1
- package/_types/constants.d.ts.map +1 -1
- package/_types/index.d.ts +3 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/providers/KernelEIP1193Provider.d.ts +2 -0
- package/_types/providers/KernelEIP1193Provider.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 +32 -17
- package/_types/types/kernel.d.ts.map +1 -1
- package/_types/utils.d.ts.map +1 -1
- package/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.ts +115 -58
- package/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.ts +35 -0
- package/accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.ts +199 -0
- package/accounts/kernel/createKernelAccount.ts +57 -26
- package/accounts/kernel/utils/account/ep0_7/getKernelV3Nonce.ts +24 -0
- package/accounts/kernel/utils/common/getActionSelector.ts +20 -0
- package/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.ts +39 -0
- package/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.ts +76 -0
- package/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.ts +47 -0
- package/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.ts +63 -0
- package/accounts/kernel/utils/plugins/ep0_7/isPluginInitialized.ts +23 -0
- package/accounts/kernel/v1/createKernelV1Account.ts +20 -8
- package/accounts/kernel/v2/createKernelV2Account.ts +17 -6
- package/accounts/utils/getCustomNonceKeyFromString.ts +21 -0
- package/accounts/utils/index.ts +2 -0
- package/accounts/utils/toKernelPluginManager.ts +155 -224
- package/actions/account-client/getUserOperationGasPrice.ts +26 -0
- package/actions/index.ts +5 -0
- package/actions/paymaster/estimateGasInERC20.ts +2 -3
- package/actions/paymaster/sponsorUserOperation.ts +1 -3
- package/clients/decorators/kernel.ts +22 -6
- package/clients/kernelAccountClient.ts +36 -3
- package/clients/paymasterClient.ts +24 -1
- package/clients/utils.ts +28 -0
- package/constants.ts +6 -2
- package/index.ts +6 -1
- package/package.json +4 -4
- package/providers/KernelEIP1193Provider.ts +51 -0
- package/types/index.ts +4 -2
- package/types/kernel.ts +52 -38
- package/utils.ts +2 -3
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getEntryPointVersion } from "permissionless";
|
|
2
|
+
import { http, createClient } from "viem";
|
|
2
3
|
import { zerodevPaymasterActions } from "./decorators/kernel.js";
|
|
4
|
+
import { setPimlicoAsProvider } from "./utils.js";
|
|
3
5
|
/**
|
|
4
6
|
* 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).
|
|
5
7
|
*
|
|
@@ -18,9 +20,24 @@ import { zerodevPaymasterActions } from "./decorators/kernel.js";
|
|
|
18
20
|
* })
|
|
19
21
|
*/
|
|
20
22
|
export const createZeroDevPaymasterClient = (parameters) => {
|
|
21
|
-
const { key = "public", name = "ZeroDev Paymaster Client" } = parameters;
|
|
23
|
+
const { key = "public", name = "ZeroDev Paymaster Client", entryPoint: entryPointAddress, transport } = parameters;
|
|
24
|
+
const entryPointVersion = getEntryPointVersion(entryPointAddress);
|
|
25
|
+
const shouldIncludePimlicoProvider = transport({}).config.key === "http" && entryPointVersion === "v0.7";
|
|
22
26
|
const client = createClient({
|
|
23
27
|
...parameters,
|
|
28
|
+
transport: (opts) => {
|
|
29
|
+
let _transport = transport({
|
|
30
|
+
...opts,
|
|
31
|
+
retryCount: 0
|
|
32
|
+
});
|
|
33
|
+
if (!shouldIncludePimlicoProvider)
|
|
34
|
+
return _transport;
|
|
35
|
+
_transport = http(setPimlicoAsProvider(_transport.value?.url))({
|
|
36
|
+
...opts,
|
|
37
|
+
retryCount: 0
|
|
38
|
+
});
|
|
39
|
+
return _transport;
|
|
40
|
+
},
|
|
24
41
|
key,
|
|
25
42
|
name,
|
|
26
43
|
type: "zerodevPaymasterClient"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymasterClient.js","sourceRoot":"","sources":["../../clients/paymasterClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paymasterClient.js","sourceRoot":"","sources":["../../clients/paymasterClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,OAAO,EACH,IAAI,EAMJ,YAAY,EACf,MAAM,MAAM,CAAA;AAEb,OAAO,EAEH,uBAAuB,EAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AASjD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAKxC,UAEC,EACiC,EAAE;IACpC,MAAM,EACF,GAAG,GAAG,QAAQ,EACd,IAAI,GAAG,0BAA0B,EACjC,UAAU,EAAE,iBAAiB,EAC7B,SAAS,EACZ,GAAG,UAAU,CAAA;IACd,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;IACjE,MAAM,4BAA4B,GAC9B,SAAS,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,MAAM,IAAI,iBAAiB,KAAK,MAAM,CAAA;IACvE,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,UAAU,GAAG,SAAS,CAAC;gBACvB,GAAG,IAAI;gBACP,UAAU,EAAE,CAAC;aAChB,CAAC,CAAA;YACF,IAAI,CAAC,4BAA4B;gBAAE,OAAO,UAAU,CAAA;YACpD,UAAU,GAAG,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;gBAC3D,GAAG,IAAI;gBACP,UAAU,EAAE,CAAC;aAChB,CAAC,CAAA;YACF,OAAO,UAAU,CAAA;QACrB,CAAC;QACD,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,wBAAwB;KACjC,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const setPimlicoAsProvider = (urlString) => {
|
|
2
|
+
const url = new URL(urlString);
|
|
3
|
+
const params = url.searchParams;
|
|
4
|
+
if (params.has("bundlerProvider")) {
|
|
5
|
+
params.set("bundlerProvider", "PIMLICO");
|
|
6
|
+
}
|
|
7
|
+
else if (params.has("paymasterProvider")) {
|
|
8
|
+
params.set("paymasterProvider", "PIMLICO");
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
params.set("provider", "PIMLICO");
|
|
12
|
+
}
|
|
13
|
+
url.search = params.toString();
|
|
14
|
+
return url.toString();
|
|
15
|
+
};
|
|
16
|
+
export const hasPimlicoAsProvider = (urlString) => {
|
|
17
|
+
const url = new URL(urlString);
|
|
18
|
+
const params = url.searchParams;
|
|
19
|
+
const provider = params.get("provider") ??
|
|
20
|
+
params.get("bundlerProvider") ??
|
|
21
|
+
params.get("paymasterProvider");
|
|
22
|
+
if (provider === "PIMLICO")
|
|
23
|
+
return true;
|
|
24
|
+
return false;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../clients/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAiB,EAAU,EAAE;IAC9D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;IAE9B,MAAM,MAAM,GAAG,GAAG,CAAC,YAAY,CAAA;IAE/B,IAAI,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAA;IAC5C,CAAC;SAAM,IAAI,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAA;IAC9C,CAAC;SAAM,CAAC;QACJ,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;IACrC,CAAC;IAED,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IAE9B,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAA;AACzB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAiB,EAAW,EAAE;IAC/D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;IAC9B,MAAM,MAAM,GAAG,GAAG,CAAC,YAAY,CAAA;IAC/B,MAAM,QAAQ,GACV,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;QACtB,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC;QAC7B,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;IACnC,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IACvC,OAAO,KAAK,CAAA;AAChB,CAAC,CAAA"}
|
package/_esm/constants.js
CHANGED
|
@@ -6,7 +6,7 @@ export const KernelImplToVersionMap = {
|
|
|
6
6
|
"0xD3F582F6B4814E989Ee8E96bc3175320B5A540ab": "0.2.3",
|
|
7
7
|
"0x5FC0236D6c88a65beD32EECDC5D60a5CAb377717": "0.2.3",
|
|
8
8
|
"0xd3082872F8B06073A021b4602e022d5A070d7cfC": "0.2.4",
|
|
9
|
-
"
|
|
9
|
+
"0x94F097E1ebEB4ecA3AAE54cabb08905B239A7D27": "0.3.0-beta"
|
|
10
10
|
};
|
|
11
11
|
export const TOKEN_ACTION = "0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1";
|
|
12
12
|
export const KERNEL_NAME = "Kernel";
|
|
@@ -38,4 +38,7 @@ export var EXEC_TYPE;
|
|
|
38
38
|
// Safe's library for create and create2: https://github.com/safe-global/safe-contracts/blob/0acdd35a203299585438f53885df630f9d486a86/contracts/libraries/CreateCall.sol
|
|
39
39
|
// Address was found here: https://github.com/safe-global/safe-deployments/blob/926ec6bbe2ebcac3aa2c2c6c0aff74aa590cbc6a/src/assets/v1.4.1/create_call.json
|
|
40
40
|
export const safeCreateCallAddress = "0x9b35Af71d77eaf8d7e40252370304687390A1A52";
|
|
41
|
+
export const KernelFactoryToInitCodeHashMap = {
|
|
42
|
+
"0x5de4839a76cf55d0c90e2061ef4386d962E15ae3": "0xee9d8350bd899dd261db689aafd87eb8a30f085adbaff48152399438ff4eed73"
|
|
43
|
+
};
|
|
41
44
|
//# sourceMappingURL=constants.js.map
|
package/_esm/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,MAAM,MAAM,CAAA;AAE7C,MAAM,CAAC,MAAM,eAAe,GACxB,sIAAsI,CAAA;AAE1I,MAAM,CAAC,MAAM,sBAAsB,GAA+B;IAC9D,4CAA4C,EAAE,OAAO;IACrD,4CAA4C,EAAE,OAAO;IACrD,4CAA4C,EAAE,OAAO;IACrD,4CAA4C,EAAE,OAAO;IACrD,4CAA4C,EAAE,OAAO;IACrD,4CAA4C,EAAE,YAAY;CAC7D,CAAA;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,4CAA4C,CAAA;AACxE,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAA;AACnC,MAAM,CAAC,MAAM,qBAAqB,GAA2C;IACzE,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,YAAY;CACvB,CAAA;AACD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,MAAM;CACZ,CAAA;AACV,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,kCAAgB,CAAA;IAChB,iCAAe,CAAA;AACnB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AACD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,2BAAc,CAAA;IACd,mCAAsB,CAAA;AAC1B,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AACD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,6BAAgB,CAAA;IAChB,8BAAiB,CAAA;AACrB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,wKAAwK;AACxK,2JAA2J;AAC3J,MAAM,CAAC,MAAM,qBAAqB,GAC9B,4CAA4C,CAAA;AAChD,MAAM,CAAC,MAAM,8BAA8B,GAA4B;IACnE,4CAA4C,EACxC,oEAAoE;CAC3E,CAAA"}
|
package/_esm/index.js
CHANGED
|
@@ -7,11 +7,13 @@ export {} from "./types/kernel.js";
|
|
|
7
7
|
export { KernelAccountAbi } from "./accounts/kernel/abi/KernelAccountAbi.js";
|
|
8
8
|
export { KernelFactoryAbi } from "./accounts/kernel/abi/KernelFactoryAbi.js";
|
|
9
9
|
export { KernelV3AccountAbi, KernelV3ExecuteAbi, KernelV3InitAbi } from "./accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js";
|
|
10
|
+
export { KernelV3FactoryAbi } from "./accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.js";
|
|
11
|
+
export { KernelFactoryStakerAbi } from "./accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryStakerAbi.js";
|
|
10
12
|
export { TokenActionsAbi } from "./accounts/kernel/abi/TokenActionsAbi.js";
|
|
11
13
|
import * as constants_1 from "./constants.js";
|
|
12
14
|
export { constants_1 as constants };
|
|
13
15
|
export * from "./utils.js";
|
|
14
16
|
export { gasTokenAddresses } from "./gasTokenAddresses.js";
|
|
15
|
-
export { verifyEIP6492Signature } from "./accounts/utils/index.js";
|
|
17
|
+
export { verifyEIP6492Signature, getCustomNonceKeyFromString } from "./accounts/utils/index.js";
|
|
16
18
|
export { KernelEIP1193Provider } from "./providers/index.js";
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
package/_esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EAErB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,oBAAoB,EAGvB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACH,uBAAuB,EAEvB,0BAA0B,EAE7B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,4BAA4B,EAE/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,yBAAyB,EAE5B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAIN,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,eAAe,EAAE,MAAM,0CAA0C,CAAA;6BAC/C,gBAAgB;wBAA/B,SAAS;AACrB,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAwB,MAAM,wBAAwB,CAAA;AAChF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EAErB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACH,oBAAoB,EAGvB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACH,uBAAuB,EAEvB,0BAA0B,EAE7B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,4BAA4B,EAE/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,yBAAyB,EAE5B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAIN,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,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gEAAgE,CAAA;AACvG,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;6BAC/C,gBAAgB;wBAA/B,SAAS;AACrB,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAwB,MAAM,wBAAwB,CAAA;AAChF,OAAO,EACH,sBAAsB,EACtB,2BAA2B,EAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -20,8 +20,13 @@ export class KernelEIP1193Provider extends EventEmitter {
|
|
|
20
20
|
return this.handleEthAccounts();
|
|
21
21
|
case "eth_sendTransaction":
|
|
22
22
|
return this.handleEthSendTransaction(params);
|
|
23
|
+
case "eth_sign":
|
|
24
|
+
return this.handleEthSign(params);
|
|
23
25
|
case "personal_sign":
|
|
24
26
|
return this.handlePersonalSign(params);
|
|
27
|
+
case "eth_signTypedData":
|
|
28
|
+
case "eth_signTypedData_v4":
|
|
29
|
+
return this.handleEthSignTypedDataV4(params);
|
|
25
30
|
default:
|
|
26
31
|
return this.kernelClient.transport.request({ method, params });
|
|
27
32
|
}
|
|
@@ -42,6 +47,20 @@ export class KernelEIP1193Provider extends EventEmitter {
|
|
|
42
47
|
const [tx] = params;
|
|
43
48
|
return this.kernelClient.sendTransaction(tx);
|
|
44
49
|
}
|
|
50
|
+
async handleEthSign(params) {
|
|
51
|
+
if (!this.kernelClient?.account) {
|
|
52
|
+
throw new Error("account not connected!");
|
|
53
|
+
}
|
|
54
|
+
const [address, message] = params;
|
|
55
|
+
if (address.toLowerCase() !==
|
|
56
|
+
this.kernelClient.account.address.toLowerCase()) {
|
|
57
|
+
throw new Error("cannot sign for address that is not the current account");
|
|
58
|
+
}
|
|
59
|
+
return this.kernelClient.signMessage({
|
|
60
|
+
message,
|
|
61
|
+
account: this.kernelClient.account
|
|
62
|
+
});
|
|
63
|
+
}
|
|
45
64
|
async handlePersonalSign(params) {
|
|
46
65
|
if (!this.kernelClient?.account) {
|
|
47
66
|
throw new Error("account not connected!");
|
|
@@ -56,5 +75,23 @@ export class KernelEIP1193Provider extends EventEmitter {
|
|
|
56
75
|
account: this.kernelClient.account
|
|
57
76
|
});
|
|
58
77
|
}
|
|
78
|
+
async handleEthSignTypedDataV4(params) {
|
|
79
|
+
if (!this.kernelClient?.account) {
|
|
80
|
+
throw new Error("account not connected!");
|
|
81
|
+
}
|
|
82
|
+
const [address, typedDataJSON] = params;
|
|
83
|
+
const typedData = JSON.parse(typedDataJSON);
|
|
84
|
+
if (address.toLowerCase() !==
|
|
85
|
+
this.kernelClient.account.address.toLowerCase()) {
|
|
86
|
+
throw new Error("cannot sign for address that is not the current account");
|
|
87
|
+
}
|
|
88
|
+
return this.kernelClient.signTypedData({
|
|
89
|
+
account: this.kernelClient.account,
|
|
90
|
+
domain: typedData.domain,
|
|
91
|
+
types: typedData.types,
|
|
92
|
+
message: typedData.message,
|
|
93
|
+
primaryType: typedData.primaryType
|
|
94
|
+
});
|
|
95
|
+
}
|
|
59
96
|
}
|
|
60
97
|
//# sourceMappingURL=KernelEIP1193Provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KernelEIP1193Provider.js","sourceRoot":"","sources":["../../providers/KernelEIP1193Provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAA4B,MAAM,cAAc,CAAA;AAEvD,OAAO,EAKN,MAAM,MAAM,CAAA;AAEb,MAAM,OAAO,qBAEX,S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CAAA;QACL,CAAC;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC;YACnC,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,OAAO;YAClC,MAAM,EAAE,SAAS,CAAC,MAAM;YACxB,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;SACrC,CAAC,CAAA;IACN,CAAC;CACJ"}
|
package/_esm/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
package/_esm/types/kernel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../types/kernel.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6C,MAAM,MAAM,CAAA;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../types/kernel.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6C,MAAM,MAAM,CAAA;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAuKhD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,sCAAqB,CAAA;AACzB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB"}
|
package/_esm/utils.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { getEntryPointVersion } from "permissionless";
|
|
1
|
+
import { ENTRYPOINT_ADDRESS_V06, getEntryPointVersion } from "permissionless";
|
|
2
2
|
import { satisfies } from "semver";
|
|
3
3
|
import { concatHex, encodeFunctionData, erc20Abi, hexToSignature, isHex, pad, signatureToHex, zeroAddress } from "viem";
|
|
4
|
-
import { KERNEL_ADDRESSES } from "./accounts/index.js";
|
|
5
4
|
import { CALL_TYPE, EXEC_TYPE, KernelImplToVersionMap, LATEST_KERNEL_VERSION } from "./constants.js";
|
|
6
5
|
export const getKernelVersion = (entryPointAddress, kernelImpl) => {
|
|
7
6
|
const entryPointVersion = getEntryPointVersion(entryPointAddress);
|
|
@@ -36,7 +35,7 @@ export const getERC20PaymasterApproveCall = async (client, { gasToken, approveAm
|
|
|
36
35
|
params: [
|
|
37
36
|
{
|
|
38
37
|
chainId: client.chain?.id,
|
|
39
|
-
entryPointAddress:
|
|
38
|
+
entryPointAddress: ENTRYPOINT_ADDRESS_V06
|
|
40
39
|
}
|
|
41
40
|
]
|
|
42
41
|
});
|
package/_esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAE7E,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAGH,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,KAAK,EACL,GAAG,EACH,cAAc,EACd,WAAW,EACd,MAAM,MAAM,CAAA;AAEb,OAAO,EACH,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,qBAAqB,EACxB,MAAM,gBAAgB,CAAA;AAEvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,iBAA6B,EAC7B,UAAoB,EACd,EAAE;IACR,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,i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AAC,CAAA;AACN,CAAC,CAAA"}
|
|
@@ -285,20 +285,6 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
285
285
|
}];
|
|
286
286
|
}];
|
|
287
287
|
readonly stateMutability: "view";
|
|
288
|
-
}, {
|
|
289
|
-
readonly type: "function";
|
|
290
|
-
readonly name: "fallbackConfig";
|
|
291
|
-
readonly inputs: readonly [];
|
|
292
|
-
readonly outputs: readonly [{
|
|
293
|
-
readonly name: "";
|
|
294
|
-
readonly type: "address";
|
|
295
|
-
readonly internalType: "contract IFallback";
|
|
296
|
-
}, {
|
|
297
|
-
readonly name: "";
|
|
298
|
-
readonly type: "address";
|
|
299
|
-
readonly internalType: "contract IHook";
|
|
300
|
-
}];
|
|
301
|
-
readonly stateMutability: "view";
|
|
302
288
|
}, {
|
|
303
289
|
readonly type: "function";
|
|
304
290
|
readonly name: "initialize";
|
|
@@ -339,6 +325,37 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
339
325
|
}];
|
|
340
326
|
readonly outputs: readonly [];
|
|
341
327
|
readonly stateMutability: "payable";
|
|
328
|
+
}, {
|
|
329
|
+
readonly type: "function";
|
|
330
|
+
readonly name: "installValidations";
|
|
331
|
+
readonly inputs: readonly [{
|
|
332
|
+
readonly name: "vIds";
|
|
333
|
+
readonly type: "bytes21[]";
|
|
334
|
+
readonly internalType: "ValidationId[]";
|
|
335
|
+
}, {
|
|
336
|
+
readonly name: "configs";
|
|
337
|
+
readonly type: "tuple[]";
|
|
338
|
+
readonly internalType: "struct ValidationManager.ValidationConfig[]";
|
|
339
|
+
readonly components: readonly [{
|
|
340
|
+
readonly name: "nonce";
|
|
341
|
+
readonly type: "uint32";
|
|
342
|
+
readonly internalType: "uint32";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "hook";
|
|
345
|
+
readonly type: "address";
|
|
346
|
+
readonly internalType: "contract IHook";
|
|
347
|
+
}];
|
|
348
|
+
}, {
|
|
349
|
+
readonly name: "validationData";
|
|
350
|
+
readonly type: "bytes[]";
|
|
351
|
+
readonly internalType: "bytes[]";
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "hookData";
|
|
354
|
+
readonly type: "bytes[]";
|
|
355
|
+
readonly internalType: "bytes[]";
|
|
356
|
+
}];
|
|
357
|
+
readonly outputs: readonly [];
|
|
358
|
+
readonly stateMutability: "payable";
|
|
342
359
|
}, {
|
|
343
360
|
readonly type: "function";
|
|
344
361
|
readonly name: "invalidateNonce";
|
|
@@ -411,9 +428,9 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
411
428
|
readonly type: "function";
|
|
412
429
|
readonly name: "permissionConfig";
|
|
413
430
|
readonly inputs: readonly [{
|
|
414
|
-
readonly name: "
|
|
415
|
-
readonly type: "
|
|
416
|
-
readonly internalType: "
|
|
431
|
+
readonly name: "pId";
|
|
432
|
+
readonly type: "bytes4";
|
|
433
|
+
readonly internalType: "PermissionId";
|
|
417
434
|
}];
|
|
418
435
|
readonly outputs: readonly [{
|
|
419
436
|
readonly name: "";
|
|
@@ -464,6 +481,10 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
464
481
|
readonly name: "target";
|
|
465
482
|
readonly type: "address";
|
|
466
483
|
readonly internalType: "address";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "callType";
|
|
486
|
+
readonly type: "bytes1";
|
|
487
|
+
readonly internalType: "CallType";
|
|
467
488
|
}];
|
|
468
489
|
}];
|
|
469
490
|
readonly stateMutability: "view";
|
|
@@ -471,7 +492,7 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
471
492
|
readonly type: "function";
|
|
472
493
|
readonly name: "supportsExecutionMode";
|
|
473
494
|
readonly inputs: readonly [{
|
|
474
|
-
readonly name: "";
|
|
495
|
+
readonly name: "mode";
|
|
475
496
|
readonly type: "bytes32";
|
|
476
497
|
readonly internalType: "ExecMode";
|
|
477
498
|
}];
|
|
@@ -499,7 +520,7 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
499
520
|
readonly type: "function";
|
|
500
521
|
readonly name: "uninstallModule";
|
|
501
522
|
readonly inputs: readonly [{
|
|
502
|
-
readonly name: "";
|
|
523
|
+
readonly name: "moduleType";
|
|
503
524
|
readonly type: "uint256";
|
|
504
525
|
readonly internalType: "uint256";
|
|
505
526
|
}, {
|
|
@@ -524,6 +545,20 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
524
545
|
readonly name: "deinitData";
|
|
525
546
|
readonly type: "bytes";
|
|
526
547
|
readonly internalType: "bytes";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "hookDeinitData";
|
|
550
|
+
readonly type: "bytes";
|
|
551
|
+
readonly internalType: "bytes";
|
|
552
|
+
}];
|
|
553
|
+
readonly outputs: readonly [];
|
|
554
|
+
readonly stateMutability: "payable";
|
|
555
|
+
}, {
|
|
556
|
+
readonly type: "function";
|
|
557
|
+
readonly name: "upgradeTo";
|
|
558
|
+
readonly inputs: readonly [{
|
|
559
|
+
readonly name: "_newImplementation";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
readonly internalType: "address";
|
|
527
562
|
}];
|
|
528
563
|
readonly outputs: readonly [];
|
|
529
564
|
readonly stateMutability: "payable";
|
|
@@ -598,7 +633,7 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
598
633
|
readonly stateMutability: "payable";
|
|
599
634
|
}, {
|
|
600
635
|
readonly type: "function";
|
|
601
|
-
readonly name: "
|
|
636
|
+
readonly name: "validationConfig";
|
|
602
637
|
readonly inputs: readonly [{
|
|
603
638
|
readonly name: "vId";
|
|
604
639
|
readonly type: "bytes21";
|
|
@@ -634,6 +669,21 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
634
669
|
readonly internalType: "address";
|
|
635
670
|
}];
|
|
636
671
|
readonly anonymous: false;
|
|
672
|
+
}, {
|
|
673
|
+
readonly type: "event";
|
|
674
|
+
readonly name: "ModuleUninstallResult";
|
|
675
|
+
readonly inputs: readonly [{
|
|
676
|
+
readonly name: "module";
|
|
677
|
+
readonly type: "address";
|
|
678
|
+
readonly indexed: false;
|
|
679
|
+
readonly internalType: "address";
|
|
680
|
+
}, {
|
|
681
|
+
readonly name: "result";
|
|
682
|
+
readonly type: "bool";
|
|
683
|
+
readonly indexed: false;
|
|
684
|
+
readonly internalType: "bool";
|
|
685
|
+
}];
|
|
686
|
+
readonly anonymous: false;
|
|
637
687
|
}, {
|
|
638
688
|
readonly type: "event";
|
|
639
689
|
readonly name: "ModuleUninstalled";
|
|
@@ -699,6 +749,16 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
699
749
|
readonly internalType: "uint256";
|
|
700
750
|
}];
|
|
701
751
|
readonly anonymous: false;
|
|
752
|
+
}, {
|
|
753
|
+
readonly type: "event";
|
|
754
|
+
readonly name: "RootValidatorUpdated";
|
|
755
|
+
readonly inputs: readonly [{
|
|
756
|
+
readonly name: "rootValidator";
|
|
757
|
+
readonly type: "bytes21";
|
|
758
|
+
readonly indexed: false;
|
|
759
|
+
readonly internalType: "ValidationId";
|
|
760
|
+
}];
|
|
761
|
+
readonly anonymous: false;
|
|
702
762
|
}, {
|
|
703
763
|
readonly type: "event";
|
|
704
764
|
readonly name: "SelectorSet";
|
|
@@ -734,6 +794,16 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
734
794
|
readonly internalType: "bytes";
|
|
735
795
|
}];
|
|
736
796
|
readonly anonymous: false;
|
|
797
|
+
}, {
|
|
798
|
+
readonly type: "event";
|
|
799
|
+
readonly name: "Upgraded";
|
|
800
|
+
readonly inputs: readonly [{
|
|
801
|
+
readonly name: "implementation";
|
|
802
|
+
readonly type: "address";
|
|
803
|
+
readonly indexed: true;
|
|
804
|
+
readonly internalType: "address";
|
|
805
|
+
}];
|
|
806
|
+
readonly anonymous: false;
|
|
737
807
|
}, {
|
|
738
808
|
readonly type: "event";
|
|
739
809
|
readonly name: "ValidatorInstalled";
|
|
@@ -795,6 +865,10 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
795
865
|
readonly type: "error";
|
|
796
866
|
readonly name: "InvalidNonce";
|
|
797
867
|
readonly inputs: readonly [];
|
|
868
|
+
}, {
|
|
869
|
+
readonly type: "error";
|
|
870
|
+
readonly name: "InvalidSelector";
|
|
871
|
+
readonly inputs: readonly [];
|
|
798
872
|
}, {
|
|
799
873
|
readonly type: "error";
|
|
800
874
|
readonly name: "InvalidSignature";
|
|
@@ -807,10 +881,22 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
807
881
|
readonly type: "error";
|
|
808
882
|
readonly name: "InvalidValidator";
|
|
809
883
|
readonly inputs: readonly [];
|
|
884
|
+
}, {
|
|
885
|
+
readonly type: "error";
|
|
886
|
+
readonly name: "NonceInvalidationError";
|
|
887
|
+
readonly inputs: readonly [];
|
|
888
|
+
}, {
|
|
889
|
+
readonly type: "error";
|
|
890
|
+
readonly name: "NotSupportedCallType";
|
|
891
|
+
readonly inputs: readonly [];
|
|
810
892
|
}, {
|
|
811
893
|
readonly type: "error";
|
|
812
894
|
readonly name: "OnlyExecuteUserOp";
|
|
813
895
|
readonly inputs: readonly [];
|
|
896
|
+
}, {
|
|
897
|
+
readonly type: "error";
|
|
898
|
+
readonly name: "PermissionDataLengthMismatch";
|
|
899
|
+
readonly inputs: readonly [];
|
|
814
900
|
}, {
|
|
815
901
|
readonly type: "error";
|
|
816
902
|
readonly name: "PermissionNotAlllowedForSignature";
|
|
@@ -835,6 +921,10 @@ export declare const KernelV3AccountAbi: readonly [{
|
|
|
835
921
|
readonly type: "error";
|
|
836
922
|
readonly name: "PolicySignatureOrderError";
|
|
837
923
|
readonly inputs: readonly [];
|
|
924
|
+
}, {
|
|
925
|
+
readonly type: "error";
|
|
926
|
+
readonly name: "RootValidatorCannotBeRemoved";
|
|
927
|
+
readonly inputs: readonly [];
|
|
838
928
|
}, {
|
|
839
929
|
readonly type: "error";
|
|
840
930
|
readonly name: "SignerPrefixNotPresent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KernelAccountAbi.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;EAiBlB,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"KernelAccountAbi.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;EAiBlB,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoErB,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+rBrB,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const KernelV3FactoryAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_impl";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "createAccount";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "data";
|
|
14
|
+
readonly type: "bytes";
|
|
15
|
+
readonly internalType: "bytes";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "salt";
|
|
18
|
+
readonly type: "bytes32";
|
|
19
|
+
readonly internalType: "bytes32";
|
|
20
|
+
}];
|
|
21
|
+
readonly outputs: readonly [{
|
|
22
|
+
readonly name: "";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "payable";
|
|
27
|
+
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly name: "getAddress";
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly name: "data";
|
|
32
|
+
readonly type: "bytes";
|
|
33
|
+
readonly internalType: "bytes";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "salt";
|
|
36
|
+
readonly type: "bytes32";
|
|
37
|
+
readonly internalType: "bytes32";
|
|
38
|
+
}];
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
readonly internalType: "address";
|
|
43
|
+
}];
|
|
44
|
+
readonly stateMutability: "view";
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "implementation";
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly name: "";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
readonly internalType: "address";
|
|
53
|
+
}];
|
|
54
|
+
readonly stateMutability: "view";
|
|
55
|
+
}, {
|
|
56
|
+
readonly type: "error";
|
|
57
|
+
readonly name: "InitializeError";
|
|
58
|
+
readonly inputs: readonly [];
|
|
59
|
+
}];
|
|
60
|
+
//# sourceMappingURL=KernelFactoryAbi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelFactoryAbi.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/abi/kernel_v_3_0_0/KernelFactoryAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCrB,CAAA"}
|