@account-kit/wallet-client 0.0.1-alpha.1 → 0.1.0-alpha.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/dist/esm/abi/index.d.ts +8 -8
- package/dist/esm/abi/index.js +8 -8
- package/dist/esm/abi/index.js.map +1 -1
- package/dist/esm/capabilities/index.d.ts +23 -0
- package/dist/esm/capabilities/index.js +4 -2
- package/dist/esm/capabilities/index.js.map +1 -1
- package/dist/esm/capabilities/overrides.d.ts +26 -0
- package/dist/esm/capabilities/overrides.js +14 -0
- package/dist/esm/capabilities/overrides.js.map +1 -0
- package/dist/esm/capabilities/permissions/index.d.ts +57 -17
- package/dist/esm/capabilities/permissions/index.js +26 -15
- package/dist/esm/capabilities/permissions/index.js.map +1 -1
- package/dist/esm/capabilities/permissions/mav2.js +1 -1
- package/dist/esm/capabilities/permissions/mav2.js.map +1 -1
- package/dist/esm/client/actions/grantPermissions.d.ts +1 -1
- package/dist/esm/client/actions/grantPermissions.js.map +1 -1
- package/dist/esm/client/actions/requestAccount.d.ts +2 -2
- package/dist/esm/client/actions/requestAccount.js +2 -2
- package/dist/esm/client/actions/requestAccount.js.map +1 -1
- package/dist/esm/client/actions/sendPreparedCalls.d.ts +2 -2
- package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/client/actions/signMessage.d.ts +1 -1
- package/dist/esm/client/actions/signMessage.js +1 -1
- package/dist/esm/client/actions/signMessage.js.map +1 -1
- package/dist/esm/client/actions/signSignatureRequest.d.ts +1 -1
- package/dist/esm/client/actions/signSignatureRequest.js +2 -2
- package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
- package/dist/esm/client/actions/signTypedData.d.ts +1 -1
- package/dist/esm/client/actions/signTypedData.js +1 -1
- package/dist/esm/client/actions/signTypedData.js.map +1 -1
- package/dist/esm/client/client.e2e-test.js +5 -6
- package/dist/esm/client/client.e2e-test.js.map +1 -1
- package/dist/esm/client/decorator.d.ts +8 -8
- package/dist/esm/client/decorator.js +10 -10
- package/dist/esm/client/decorator.js.map +1 -1
- package/dist/esm/client/index.d.ts +1 -1
- package/dist/esm/client/index.js +3 -3
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/exports/index.d.ts +13 -13
- package/dist/esm/exports/index.js +13 -13
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/internal.d.ts +12 -12
- package/dist/esm/exports/internal.js +11 -11
- package/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/isomorphic/actions/createSession.d.ts +3 -3
- package/dist/esm/isomorphic/actions/createSession.js +7 -5
- package/dist/esm/isomorphic/actions/createSession.js.map +1 -1
- package/dist/esm/isomorphic/actions/getCallsStatus.d.ts +2 -2
- package/dist/esm/isomorphic/actions/getCallsStatus.js +3 -3
- package/dist/esm/isomorphic/actions/getCallsStatus.js.map +1 -1
- package/dist/esm/isomorphic/actions/prepareCalls.d.ts +2 -2
- package/dist/esm/isomorphic/actions/prepareCalls.js +4 -3
- package/dist/esm/isomorphic/actions/prepareCalls.js.map +1 -1
- package/dist/esm/isomorphic/actions/sendPreparedCalls.d.ts +4 -4
- package/dist/esm/isomorphic/actions/sendPreparedCalls.js +3 -3
- package/dist/esm/isomorphic/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/isomorphic/client.d.ts +8 -7
- package/dist/esm/isomorphic/client.js +15 -8
- package/dist/esm/isomorphic/client.js.map +1 -1
- package/dist/esm/isomorphic/utils/createAccount.d.ts +2 -2
- package/dist/esm/isomorphic/utils/createAccount.js +1 -1
- package/dist/esm/isomorphic/utils/createAccount.js.map +1 -1
- package/dist/esm/isomorphic/utils/parsePermissionsContext.d.ts +4 -4
- package/dist/esm/isomorphic/utils/parsePermissionsContext.js +1 -1
- package/dist/esm/isomorphic/utils/parsePermissionsContext.js.map +1 -1
- package/dist/esm/local/client.js +6 -5
- package/dist/esm/local/client.js.map +1 -1
- package/dist/esm/remote/client.js +3 -3
- package/dist/esm/remote/client.js.map +1 -1
- package/dist/esm/rpc/request.d.ts +32 -9
- package/dist/esm/rpc/request.js +17 -7
- package/dist/esm/rpc/request.js.map +1 -1
- package/dist/esm/rpc/schema.d.ts +32 -9
- package/dist/esm/rpc/schema.js +1 -1
- package/dist/esm/rpc/schema.js.map +1 -1
- package/dist/types/abi/index.d.ts +8 -8
- package/dist/types/abi/index.d.ts.map +1 -1
- package/dist/types/capabilities/index.d.ts +23 -0
- package/dist/types/capabilities/index.d.ts.map +1 -1
- package/dist/types/capabilities/overrides.d.ts +27 -0
- package/dist/types/capabilities/overrides.d.ts.map +1 -0
- package/dist/types/capabilities/permissions/index.d.ts +57 -17
- package/dist/types/capabilities/permissions/index.d.ts.map +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
- package/dist/types/client/actions/requestAccount.d.ts +2 -2
- package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
- package/dist/types/client/actions/sendPreparedCalls.d.ts +2 -2
- package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -1
- package/dist/types/client/actions/signMessage.d.ts +1 -1
- package/dist/types/client/actions/signMessage.d.ts.map +1 -1
- package/dist/types/client/actions/signSignatureRequest.d.ts +1 -1
- package/dist/types/client/actions/signSignatureRequest.d.ts.map +1 -1
- package/dist/types/client/actions/signTypedData.d.ts +1 -1
- package/dist/types/client/actions/signTypedData.d.ts.map +1 -1
- package/dist/types/client/decorator.d.ts +8 -8
- package/dist/types/client/decorator.d.ts.map +1 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/client/index.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +13 -13
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +12 -12
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/createSession.d.ts +3 -3
- package/dist/types/isomorphic/actions/createSession.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/getCallsStatus.d.ts +2 -2
- package/dist/types/isomorphic/actions/getCallsStatus.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/prepareCalls.d.ts +2 -2
- package/dist/types/isomorphic/actions/prepareCalls.d.ts.map +1 -1
- package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts +4 -4
- package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts.map +1 -1
- package/dist/types/isomorphic/client.d.ts +8 -7
- package/dist/types/isomorphic/client.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/createAccount.d.ts +2 -2
- package/dist/types/isomorphic/utils/createAccount.d.ts.map +1 -1
- package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts +4 -4
- package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts.map +1 -1
- package/dist/types/local/client.d.ts.map +1 -1
- package/dist/types/remote/client.d.ts.map +1 -1
- package/dist/types/rpc/request.d.ts +32 -9
- package/dist/types/rpc/request.d.ts.map +1 -1
- package/dist/types/rpc/schema.d.ts +32 -9
- package/dist/types/rpc/schema.d.ts.map +1 -1
- package/package.json +8 -3
- package/src/abi/index.ts +8 -8
- package/src/capabilities/index.ts +4 -2
- package/src/capabilities/overrides.ts +20 -0
- package/src/capabilities/permissions/index.ts +42 -24
- package/src/capabilities/permissions/mav2.ts +1 -1
- package/src/client/actions/grantPermissions.ts +1 -1
- package/src/client/actions/requestAccount.ts +4 -4
- package/src/client/actions/sendPreparedCalls.ts +3 -3
- package/src/client/actions/signMessage.ts +2 -2
- package/src/client/actions/signSignatureRequest.ts +2 -2
- package/src/client/actions/signTypedData.ts +2 -2
- package/src/client/client.e2e-test.ts +5 -6
- package/src/client/decorator.ts +19 -19
- package/src/client/index.ts +6 -3
- package/src/exports/index.ts +13 -13
- package/src/exports/internal.ts +12 -12
- package/src/isomorphic/actions/createSession.ts +18 -14
- package/src/isomorphic/actions/getCallsStatus.ts +6 -6
- package/src/isomorphic/actions/prepareCalls.ts +7 -6
- package/src/isomorphic/actions/sendPreparedCalls.ts +7 -7
- package/src/isomorphic/client.ts +24 -11
- package/src/isomorphic/utils/createAccount.ts +3 -3
- package/src/isomorphic/utils/parsePermissionsContext.ts +3 -3
- package/src/local/client.ts +9 -8
- package/src/remote/client.ts +3 -3
- package/src/rpc/request.ts +33 -18
- package/src/rpc/schema.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,MAAM,CAAC;AAGd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,MAAM,CAAC;AAGd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,uBAAuB,CACjC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,IACX,QAAQ,CACV;IACE,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GACnC;IACE,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC,CACP,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GACxC,oBAAoB,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;AAEjE,wBAAgB,uBAAuB,CACrC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,OAAO,CAAC,EAElE,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GACxC,oBAAoB,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { createSmartWalletClient, type SmartWalletClientParams, } from "../client";
|
|
2
|
-
export { WalletServerRpcSchema, type WalletServerRpcSchemaType, type WalletServerViemRpcSchema, } from "../rpc/schema";
|
|
3
|
-
export { Capabilities } from "../capabilities";
|
|
4
|
-
export { PaymasterCapability } from "../capabilities/paymaster";
|
|
5
|
-
export { PermissionsArray, PermissionsCapability, PermissionsContext, PermissionsData, } from "../capabilities/permissions";
|
|
6
|
-
export { createAccount } from "../client/actions/createAccount";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export { signTypedData } from "../client/actions/signTypedData";
|
|
1
|
+
export { createSmartWalletClient, type SmartWalletClientParams, } from "../client/index.js";
|
|
2
|
+
export { WalletServerRpcSchema, type WalletServerRpcSchemaType, type WalletServerViemRpcSchema, } from "../rpc/schema.js";
|
|
3
|
+
export { Capabilities } from "../capabilities/index.js";
|
|
4
|
+
export { PaymasterCapability } from "../capabilities/paymaster.js";
|
|
5
|
+
export { PermissionsArray, PermissionsCapability, PermissionsContext, PermissionsData, } from "../capabilities/permissions/index.js";
|
|
6
|
+
export { createAccount } from "../client/actions/createAccount.js";
|
|
7
|
+
export { getCallsStatus } from "../client/actions/getCallsStatus.js";
|
|
8
|
+
export { listAccounts } from "../client/actions/listAccounts.js";
|
|
9
|
+
export { prepareCalls } from "../client/actions/prepareCalls.js";
|
|
10
|
+
export { requestAccount } from "../client/actions/requestAccount.js";
|
|
11
|
+
export { signMessage } from "../client/actions/signMessage.js";
|
|
12
|
+
export { signSignatureRequest } from "../client/actions/signSignatureRequest.js";
|
|
13
|
+
export { signTypedData } from "../client/actions/signTypedData.js";
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "../capabilities";
|
|
2
|
-
export * from "../capabilities/paymaster";
|
|
3
|
-
export * from "../capabilities/permissions";
|
|
4
|
-
export * from "../capabilities/permissions/mav2";
|
|
5
|
-
export type * from "../isomorphic/client";
|
|
6
|
-
export { createIsomorphicClient } from "../isomorphic/client";
|
|
7
|
-
export { createDummySigner } from "../isomorphic/utils/createDummySigner";
|
|
8
|
-
export * from "../rpc/request";
|
|
9
|
-
export * as RpcSchemas from "../rpc/request";
|
|
10
|
-
export * from "../rpc/schema";
|
|
11
|
-
export * from "../schemas";
|
|
1
|
+
export * from "../capabilities/index.js";
|
|
2
|
+
export * from "../capabilities/paymaster.js";
|
|
3
|
+
export * from "../capabilities/permissions/index.js";
|
|
4
|
+
export * from "../capabilities/permissions/mav2.js";
|
|
5
|
+
export type * from "../isomorphic/client.js";
|
|
6
|
+
export { createIsomorphicClient } from "../isomorphic/client.js";
|
|
7
|
+
export { createDummySigner } from "../isomorphic/utils/createDummySigner.js";
|
|
8
|
+
export * from "../rpc/request.js";
|
|
9
|
+
export * as RpcSchemas from "../rpc/request.js";
|
|
10
|
+
export * from "../rpc/schema.js";
|
|
11
|
+
export * from "../schemas.js";
|
|
12
12
|
export type * from "../types";
|
|
13
|
-
export * from "../utils";
|
|
13
|
+
export * from "../utils.js";
|
|
14
14
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAGA,cAAc,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAGA,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,mBAAmB,yBAAyB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,cAAc,mBAAmB,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,mBAAmB,UAAU,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type SmartAccountClient, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
|
-
import { type Chain, type Transport, type Hex } from "viem";
|
|
3
|
-
import type { wallet_createSession } from "../../rpc/request";
|
|
4
|
-
import type { WalletServerViemRpcSchema } from "../../rpc/schema";
|
|
5
2
|
import type { Static } from "@sinclair/typebox";
|
|
3
|
+
import { type Chain, type Hex, type Transport } from "viem";
|
|
4
|
+
import type { wallet_createSession } from "../../rpc/request.js";
|
|
5
|
+
import type { WalletServerViemRpcSchema } from "../../rpc/schema.js";
|
|
6
6
|
export type CreateSessionParams = Omit<Static<(typeof wallet_createSession)["properties"]["Request"]["properties"]["params"]>[0], "chainId"> & {
|
|
7
7
|
entityId?: Hex;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSession.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/createSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createSession.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/createSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAKL,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AAGd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAIrE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,MAAM,CACJ,CAAC,OAAO,oBAAoB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAC/E,CAAC,CAAC,CAAC,EACJ,SAAS,CACV,GAAG;IACF,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,MAAM,CAAC,CAAC,OAAO,oBAAoB,CAAC,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,EACjE,WAAW,CACZ,GAAG;IACF,SAAS,EAAE,GAAG,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,GAAG,CAAC;IACd,oCAAoC,EAAE,GAAG,CAAC;CAC3C,CAAC;AAEF,wBAAsB,aAAa,CACjC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B,EACD,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAiE9B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type SmartAccountClient, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
2
|
import type { Static } from "@sinclair/typebox";
|
|
3
3
|
import { type Chain, type Transport } from "viem";
|
|
4
|
-
import type { wallet_getCallsStatus } from "../../rpc/request";
|
|
5
|
-
import type { WalletServerViemRpcSchema } from "../../rpc/schema";
|
|
4
|
+
import type { wallet_getCallsStatus } from "../../rpc/request.js";
|
|
5
|
+
import type { WalletServerViemRpcSchema } from "../../rpc/schema.js";
|
|
6
6
|
export type GetCallsStatusParams = Static<(typeof wallet_getCallsStatus)["properties"]["Request"]["properties"]["params"]>[0];
|
|
7
7
|
export type GetCallsStatusResponse = Static<(typeof wallet_getCallsStatus)["properties"]["ReturnType"]>;
|
|
8
8
|
/** EIP-5792 call status codes */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAGL,KAAK,KAAK,EAGV,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAIrE,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,CAAC,OAAO,qBAAqB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAChF,CAAC,CAAC,CAAC,CAAC;AAEL,MAAM,MAAM,sBAAsB,GAAG,MAAM,CACzC,CAAC,OAAO,qBAAqB,CAAC,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3D,CAAC;AAOF,iCAAiC;AACjC,eAAO,MAAM,cAAc;IACzB,oFAAoF;;IAEpF,iGAAiG;;IAEjG,oEAAoE;;IAEpE,wGAAwG;;IAExG,wGAAwG;;CAEhG,CAAC;AAEX,wBAAsB,cAAc,CAClC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B,EACD,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAoBjC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type SmartAccountClient, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
2
|
import type { Static } from "@sinclair/typebox";
|
|
3
3
|
import { type Chain, type Transport } from "viem";
|
|
4
|
-
import type { wallet_prepareCalls } from "../../rpc/request";
|
|
5
|
-
import type { WalletServerViemRpcSchema } from "../../rpc/schema";
|
|
4
|
+
import type { wallet_prepareCalls } from "../../rpc/request.js";
|
|
5
|
+
import type { WalletServerViemRpcSchema } from "../../rpc/schema.js";
|
|
6
6
|
export type PrepareCallsParams = Omit<Static<(typeof wallet_prepareCalls)["properties"]["Request"]["properties"]["params"]>[0], "chainId">;
|
|
7
7
|
export type PrepareCallsResult = Static<(typeof wallet_prepareCalls)["properties"]["ReturnType"]>;
|
|
8
8
|
export declare function prepareCalls(client: SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, Record<string, unknown>, WalletServerViemRpcSchema>, params: PrepareCallsParams): Promise<PrepareCallsResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareCalls.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/prepareCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"prepareCalls.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/prepareCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAML,KAAK,KAAK,EACV,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAIrE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,MAAM,CACJ,CAAC,OAAO,mBAAmB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAC9E,CAAC,CAAC,CAAC,EACJ,SAAS,CACV,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,CAAC,OAAO,mBAAmB,CAAC,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CACzD,CAAC;AAGF,wBAAsB,YAAY,CAChC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B,EACD,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CA0D7B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type SmartAccountClient, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
|
+
import type { Static, StaticDecode } from "@sinclair/typebox";
|
|
2
3
|
import { type Chain, type Transport } from "viem";
|
|
3
|
-
import type { wallet_sendPreparedCalls } from "../../rpc/request";
|
|
4
|
-
import type { WalletServerViemRpcSchema } from "../../rpc/schema";
|
|
5
|
-
|
|
6
|
-
export type SendPreparedCallsParams = Omit<Static<(typeof wallet_sendPreparedCalls)["properties"]["Request"]["properties"]["params"]>[0], "chainId">;
|
|
4
|
+
import type { wallet_sendPreparedCalls } from "../../rpc/request.js";
|
|
5
|
+
import type { WalletServerViemRpcSchema } from "../../rpc/schema.js";
|
|
6
|
+
export type SendPreparedCallsParams = Omit<StaticDecode<(typeof wallet_sendPreparedCalls)["properties"]["Request"]["properties"]["params"]>[0], "chainId">;
|
|
7
7
|
export type SendPreparedCallsResult = Static<(typeof wallet_sendPreparedCalls)["properties"]["ReturnType"]>;
|
|
8
8
|
export declare function sendPreparedCalls(client: SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, Record<string, unknown>, WalletServerViemRpcSchema>, params: SendPreparedCallsParams): Promise<SendPreparedCallsResult>;
|
|
9
9
|
//# sourceMappingURL=sendPreparedCalls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAKL,KAAK,KAAK,EAEV,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAGrE,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,YAAY,CACV,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACnF,CAAC,CAAC,CAAC,EACJ,SAAS,CACV,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC9D,CAAC;AAGF,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B,EACD,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAoDlC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type SmartAccountClient, type SmartAccountClientRpcSchema, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
2
|
import { type Chain, type Transport } from "viem";
|
|
3
|
-
import type { WalletServerViemRpcSchema } from "../rpc/schema";
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import { type
|
|
7
|
-
import { type
|
|
3
|
+
import type { WalletServerViemRpcSchema } from "../rpc/schema.js";
|
|
4
|
+
import { type CreateSessionParams } from "./actions/createSession.js";
|
|
5
|
+
import { type GetCallsStatusParams } from "./actions/getCallsStatus.js";
|
|
6
|
+
import { type PrepareCallsParams } from "./actions/prepareCalls.js";
|
|
7
|
+
import { type SendPreparedCallsParams } from "./actions/sendPreparedCalls.js";
|
|
8
8
|
type ClientParams = {
|
|
9
9
|
chain: Chain;
|
|
10
10
|
transport: Transport;
|
|
11
11
|
policyId?: string;
|
|
12
|
+
useErc7677middleware?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare function isomorphicClientActions(client: SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, Record<string, unknown>, WalletServerViemRpcSchema>): {
|
|
14
15
|
prepareCalls: (params: PrepareCallsParams) => Promise<{
|
|
@@ -90,9 +91,9 @@ export declare function isomorphicClientActions(client: SmartAccountClient<Trans
|
|
|
90
91
|
atomic: boolean;
|
|
91
92
|
status: 100 | 200 | 400 | 500 | 600;
|
|
92
93
|
}>;
|
|
93
|
-
createSession: (params: CreateSessionParams) => Promise<import("./actions/createSession").CreateSessionResult>;
|
|
94
|
+
createSession: (params: CreateSessionParams) => Promise<import("./actions/createSession.js").CreateSessionResult>;
|
|
94
95
|
};
|
|
95
|
-
export declare function createIsomorphicClient({ chain, transport, policyId, }: ClientParams): SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, ReturnType<typeof isomorphicClientActions>, WalletServerViemRpcSchema & SmartAccountClientRpcSchema>;
|
|
96
|
+
export declare function createIsomorphicClient({ chain, transport, policyId, useErc7677middleware, }: ClientParams): SmartAccountClient<Transport, Chain, SmartContractAccount | undefined, ReturnType<typeof isomorphicClientActions>, WalletServerViemRpcSchema & SmartAccountClientRpcSchema>;
|
|
96
97
|
export type IsomorphicClient = ReturnType<typeof createIsomorphicClient>;
|
|
97
98
|
export {};
|
|
98
99
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/isomorphic/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/isomorphic/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAGxC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,kBAAkB,CACxB,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvB,yBAAyB,CAC1B;2BAGwB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACb,uBAAuB;;;6BAE1B,oBAAoB;;;;;;;;;;;;;;;;;;4BAErB,mBAAmB;EAG9C;AAID,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,oBAA2B,GAC5B,EAAE,YAAY,GAAG,kBAAkB,CAClC,SAAS,EACT,KAAK,EACL,oBAAoB,GAAG,SAAS,EAChC,UAAU,CAAC,OAAO,uBAAuB,CAAC,EAC1C,yBAAyB,GAAG,2BAA2B,CACxD,CAmBA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -2,8 +2,8 @@ import type { SmartAccountSigner, SmartContractAccount } from "@aa-sdk/core";
|
|
|
2
2
|
import { type ModularAccountV2 } from "@account-kit/smart-contracts";
|
|
3
3
|
import type { StaticDecode } from "@sinclair/typebox";
|
|
4
4
|
import type { Address, Chain, Transport } from "viem";
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { Capabilities } from "../../capabilities/index.js";
|
|
6
|
+
import type { TypeSerializedInitcode } from "../../schemas.js";
|
|
7
7
|
type CreateAccountParams = {
|
|
8
8
|
chain: Chain;
|
|
9
9
|
transport: Transport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/createAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/createAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC;IAChE,YAAY,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;CAClD,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAuB/B;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,IAAI,gBAAgB,CAE7B"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { StaticDecode } from "@sinclair/typebox";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { TypeSerializedInitcode } from "../../schemas.js";
|
|
3
|
+
import type { PrepareCallsParams } from "../actions/prepareCalls.js";
|
|
4
4
|
export declare function parsePermissionsContext(capabilities: PrepareCallsParams["capabilities"], parsedCi: StaticDecode<typeof TypeSerializedInitcode>): ({
|
|
5
|
-
contextVersion: keyof typeof import("../../exports/internal").PermissionsContextVersion;
|
|
5
|
+
contextVersion: keyof typeof import("../../exports/internal.js").PermissionsContextVersion;
|
|
6
6
|
} & {
|
|
7
7
|
contextVersion: "LOCAL_MODE_DEFERRED_ACTION";
|
|
8
8
|
deferredAction: import("viem").Hex;
|
|
9
9
|
sessionId?: never;
|
|
10
10
|
signature?: never;
|
|
11
11
|
}) | ({
|
|
12
|
-
contextVersion: keyof typeof import("../../exports/internal").PermissionsContextVersion;
|
|
12
|
+
contextVersion: keyof typeof import("../../exports/internal.js").PermissionsContextVersion;
|
|
13
13
|
} & {
|
|
14
14
|
contextVersion: "NON_DEFERRED_ACTION";
|
|
15
15
|
deferredAction?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsePermissionsContext.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/parsePermissionsContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"parsePermissionsContext.d.ts","sourceRoot":"","sources":["../../../../src/isomorphic/utils/parsePermissionsContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,EAChD,QAAQ,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC;;;;;;;;;;;;;;;;eAwBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/local/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/local/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;AAW/E,OAAO,KAAK,EACV,uBAAuB,EAEvB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAWlB,wBAAgB,iBAAiB,CAC/B,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EACb,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/remote/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/remote/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;AAI/E,OAAO,KAAK,EACV,uBAAuB,EAEvB,oBAAoB,EAErB,MAAM,UAAU,CAAC;AAElB,wBAAgB,kBAAkB,CAChC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EACb,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -32,7 +32,7 @@ export declare const wallet_sendPreparedCalls: import("@sinclair/typebox").TObje
|
|
|
32
32
|
}>]>;
|
|
33
33
|
chainId: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
34
34
|
signature: import("@sinclair/typebox").TObject<{
|
|
35
|
-
type: import("@sinclair/typebox").TString
|
|
35
|
+
type: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, "ecdsa">;
|
|
36
36
|
signature: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
37
37
|
}>;
|
|
38
38
|
capabilities: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -64,6 +64,29 @@ export declare const wallet_prepareCalls: import("@sinclair/typebox").TObject<{
|
|
|
64
64
|
paymasterService: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
65
65
|
policyId: import("@sinclair/typebox").TString;
|
|
66
66
|
}>>;
|
|
67
|
+
gasParamsOverride: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
68
|
+
preVerificationGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
69
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
70
|
+
}>]>>;
|
|
71
|
+
verificationGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
72
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
73
|
+
}>]>>;
|
|
74
|
+
callGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
75
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
76
|
+
}>]>>;
|
|
77
|
+
paymasterVerificationGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
78
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
79
|
+
}>]>>;
|
|
80
|
+
paymasterPostOpGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
81
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
82
|
+
}>]>>;
|
|
83
|
+
maxFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
84
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
85
|
+
}>]>>;
|
|
86
|
+
maxPriorityFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
|
|
87
|
+
multiplier: import("@sinclair/typebox").TNumber;
|
|
88
|
+
}>]>>;
|
|
89
|
+
}>>;
|
|
67
90
|
}>>;
|
|
68
91
|
}>]>;
|
|
69
92
|
}>;
|
|
@@ -214,44 +237,44 @@ export declare const wallet_createSession: import("@sinclair/typebox").TObject<{
|
|
|
214
237
|
publicKey: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
215
238
|
}>;
|
|
216
239
|
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
217
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
240
|
+
type: import("@sinclair/typebox").TLiteral<"native-token-transfer">;
|
|
218
241
|
data: import("@sinclair/typebox").TObject<{
|
|
219
242
|
allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
220
243
|
}>;
|
|
221
244
|
}>, import("@sinclair/typebox").TObject<{
|
|
222
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
245
|
+
type: import("@sinclair/typebox").TLiteral<"erc20-token-transfer">;
|
|
223
246
|
data: import("@sinclair/typebox").TObject<{
|
|
224
247
|
allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
225
248
|
address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
226
249
|
}>;
|
|
227
250
|
}>, import("@sinclair/typebox").TObject<{
|
|
228
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
251
|
+
type: import("@sinclair/typebox").TLiteral<"gas-limit">;
|
|
229
252
|
data: import("@sinclair/typebox").TObject<{
|
|
230
253
|
limit: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
231
254
|
}>;
|
|
232
255
|
}>, import("@sinclair/typebox").TObject<{
|
|
233
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
256
|
+
type: import("@sinclair/typebox").TLiteral<"contract-access">;
|
|
234
257
|
data: import("@sinclair/typebox").TObject<{
|
|
235
258
|
address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
236
259
|
}>;
|
|
237
260
|
}>, import("@sinclair/typebox").TObject<{
|
|
238
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
261
|
+
type: import("@sinclair/typebox").TLiteral<"account-functions">;
|
|
239
262
|
data: import("@sinclair/typebox").TObject<{
|
|
240
263
|
functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
241
264
|
}>;
|
|
242
265
|
}>, import("@sinclair/typebox").TObject<{
|
|
243
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
266
|
+
type: import("@sinclair/typebox").TLiteral<"functions-on-all-contracts">;
|
|
244
267
|
data: import("@sinclair/typebox").TObject<{
|
|
245
268
|
functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
246
269
|
}>;
|
|
247
270
|
}>, import("@sinclair/typebox").TObject<{
|
|
248
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
271
|
+
type: import("@sinclair/typebox").TLiteral<"functions-on-contract">;
|
|
249
272
|
data: import("@sinclair/typebox").TObject<{
|
|
250
273
|
address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
|
|
251
274
|
functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
|
|
252
275
|
}>;
|
|
253
276
|
}>, import("@sinclair/typebox").TObject<{
|
|
254
|
-
type: import("@sinclair/typebox").TLiteral<
|
|
277
|
+
type: import("@sinclair/typebox").TLiteral<"root">;
|
|
255
278
|
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
|
|
256
279
|
}>]>>;
|
|
257
280
|
}>, import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/rpc/request.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/rpc/request.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCpC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;EAgCjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;EAoBhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;EA+B/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;EA8DjC,CAAC"}
|
|
@@ -8,6 +8,29 @@ export declare const WalletServerRpcSchema: {
|
|
|
8
8
|
paymasterService?: {
|
|
9
9
|
policyId: string;
|
|
10
10
|
} | undefined;
|
|
11
|
+
gasParamsOverride?: {
|
|
12
|
+
callGasLimit?: `0x${string}` | {
|
|
13
|
+
multiplier: number;
|
|
14
|
+
} | undefined;
|
|
15
|
+
verificationGasLimit?: `0x${string}` | {
|
|
16
|
+
multiplier: number;
|
|
17
|
+
} | undefined;
|
|
18
|
+
preVerificationGas?: `0x${string}` | {
|
|
19
|
+
multiplier: number;
|
|
20
|
+
} | undefined;
|
|
21
|
+
maxFeePerGas?: `0x${string}` | {
|
|
22
|
+
multiplier: number;
|
|
23
|
+
} | undefined;
|
|
24
|
+
maxPriorityFeePerGas?: `0x${string}` | {
|
|
25
|
+
multiplier: number;
|
|
26
|
+
} | undefined;
|
|
27
|
+
paymasterVerificationGasLimit?: `0x${string}` | {
|
|
28
|
+
multiplier: number;
|
|
29
|
+
} | undefined;
|
|
30
|
+
paymasterPostOpGasLimit?: `0x${string}` | {
|
|
31
|
+
multiplier: number;
|
|
32
|
+
} | undefined;
|
|
33
|
+
} | undefined;
|
|
11
34
|
} | undefined;
|
|
12
35
|
chainId: `0x${string}`;
|
|
13
36
|
calls: {
|
|
@@ -87,7 +110,7 @@ export declare const WalletServerRpcSchema: {
|
|
|
87
110
|
} | undefined;
|
|
88
111
|
type: "user-operation-v060" | "user-operation-v070";
|
|
89
112
|
signature: {
|
|
90
|
-
type:
|
|
113
|
+
type: "ecdsa";
|
|
91
114
|
signature: `0x${string}`;
|
|
92
115
|
};
|
|
93
116
|
chainId: `0x${string}`;
|
|
@@ -194,45 +217,45 @@ export declare const WalletServerRpcSchema: {
|
|
|
194
217
|
publicKey: `0x${string}`;
|
|
195
218
|
};
|
|
196
219
|
permissions: ({
|
|
197
|
-
type:
|
|
220
|
+
type: "native-token-transfer";
|
|
198
221
|
data: {
|
|
199
222
|
allowance: `0x${string}`;
|
|
200
223
|
};
|
|
201
224
|
} | {
|
|
202
|
-
type:
|
|
225
|
+
type: "erc20-token-transfer";
|
|
203
226
|
data: {
|
|
204
227
|
allowance: `0x${string}`;
|
|
205
228
|
address: `0x${string}`;
|
|
206
229
|
};
|
|
207
230
|
} | {
|
|
208
|
-
type:
|
|
231
|
+
type: "gas-limit";
|
|
209
232
|
data: {
|
|
210
233
|
limit: `0x${string}`;
|
|
211
234
|
};
|
|
212
235
|
} | {
|
|
213
|
-
type:
|
|
236
|
+
type: "contract-access";
|
|
214
237
|
data: {
|
|
215
238
|
address: `0x${string}`;
|
|
216
239
|
};
|
|
217
240
|
} | {
|
|
218
|
-
type:
|
|
241
|
+
type: "account-functions";
|
|
219
242
|
data: {
|
|
220
243
|
functions: `0x${string}`[];
|
|
221
244
|
};
|
|
222
245
|
} | {
|
|
223
|
-
type:
|
|
246
|
+
type: "functions-on-all-contracts";
|
|
224
247
|
data: {
|
|
225
248
|
functions: `0x${string}`[];
|
|
226
249
|
};
|
|
227
250
|
} | {
|
|
228
|
-
type:
|
|
251
|
+
type: "functions-on-contract";
|
|
229
252
|
data: {
|
|
230
253
|
address: `0x${string}`;
|
|
231
254
|
functions: `0x${string}`[];
|
|
232
255
|
};
|
|
233
256
|
} | {
|
|
234
257
|
data?: undefined;
|
|
235
|
-
type:
|
|
258
|
+
type: "root";
|
|
236
259
|
})[];
|
|
237
260
|
} & {
|
|
238
261
|
account: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/rpc/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/rpc/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ/B,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,qBAAqB,CAAC;AAErE,KAAK,qBAAqB,GAAG;KAC1B,CAAC,IAAI,yBAAyB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG;QACrD,MAAM,EAAE,CAAC,CAAC;QACV,UAAU,EAAE,OAAO,CACjB,yBAAyB,CAAC,SAAS,CAAC,EACpC;YAAE,MAAM,EAAE,CAAC,CAAA;SAAE,CACd,CAAC,QAAQ,CAAC,CAAC;QACZ,UAAU,EAAE,OAAO,CACjB,yBAAyB,EACzB;YAAE,OAAO,EAAE;gBAAE,MAAM,EAAE,CAAC,CAAA;aAAE,CAAA;SAAE,CAC3B,CAAC,YAAY,CAAC,CAAC;KACjB;CACF,CAAC;AAGF,MAAM,MAAM,yBAAyB,GAAG;IACtC,qBAAqB,CAAC,sBAAsB,CAAC;IAC7C,qBAAqB,CAAC,uBAAuB,CAAC;IAC9C,qBAAqB,CAAC,qBAAqB,CAAC;IAC5C,qBAAqB,CAAC,qBAAqB,CAAC;IAC5C,qBAAqB,CAAC,0BAA0B,CAAC;IACjD,qBAAqB,CAAC,uBAAuB,CAAC;IAC9C,qBAAqB,CAAC,sBAAsB,CAAC;CAC9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@account-kit/wallet-client",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0
|
|
5
|
+
"version": "0.1.0-alpha.1",
|
|
6
6
|
"main": "./dist/esm/exports/index.js",
|
|
7
7
|
"module": "./dist/esm/exports/index.js",
|
|
8
8
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -42,11 +42,16 @@
|
|
|
42
42
|
"clean": "rm -rf dist",
|
|
43
43
|
"compile": "bun clean && bun compile:esm && bun compile:types",
|
|
44
44
|
"compile:esm": "bunx tsc --project tsconfig.build.json --outDir ./dist/esm",
|
|
45
|
+
"lint": "eslint .",
|
|
46
|
+
"lint:fix": "eslint --fix .",
|
|
47
|
+
"format": "prettier --check .",
|
|
48
|
+
"format:fix": "prettier --log-level warn --write --ignore-unknown .",
|
|
45
49
|
"compile:types": "bunx tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
|
|
46
50
|
"test:e2e": "bun test ./src/**/*.e2e-test.*"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
49
|
-
"@repo/configs": "workspace:*"
|
|
53
|
+
"@repo/configs": "workspace:*",
|
|
54
|
+
"eslint-plugin-import": "^2.31.0"
|
|
50
55
|
},
|
|
51
56
|
"peerDependencies": {
|
|
52
57
|
"typescript": "^5.8.2"
|
|
@@ -63,5 +68,5 @@
|
|
|
63
68
|
"access": "public",
|
|
64
69
|
"registry": "https://registry.npmjs.org/"
|
|
65
70
|
},
|
|
66
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "416ad43cc11800162cf60b14f6eb8262f3de83b5"
|
|
67
72
|
}
|
package/src/abi/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { LightAccountFactoryAbi_V1_0_1 } from "./LightAccountFactoryAbi_V1_0_1";
|
|
2
|
-
export { LightAccountFactoryAbi_V1_0_2 } from "./LightAccountFactoryAbi_V1_0_2";
|
|
3
|
-
export { LightAccountFactoryAbi_V1_1_0 } from "./LightAccountFactoryAbi_V1_1_0";
|
|
4
|
-
export { LightAccountFactoryAbi_V2_0_0 } from "./LightAccountFactoryAbi_V2_0_0";
|
|
5
|
-
export { ModularAccountFactoryAbi_V2_0_0 } from "./ModularAccountFactoryAbi_V2_0_0";
|
|
6
|
-
export { MultiOwnerLightAccountFactoryAbi_V2_0_0 } from "./MultiOwnerLightAccountFactoryAbi_V2_0_0";
|
|
7
|
-
export { MultiOwnerModularAccountFactoryAbi_V1_0_0 } from "./MultiOwnerModularAccountFactoryAbi_V1_0_0";
|
|
8
|
-
export { MultisigModularAccountFactoryAbi_V1_0_0 } from "./MultisigModularAccountFactoryAbi_V1_0_0";
|
|
1
|
+
export { LightAccountFactoryAbi_V1_0_1 } from "./LightAccountFactoryAbi_V1_0_1.js";
|
|
2
|
+
export { LightAccountFactoryAbi_V1_0_2 } from "./LightAccountFactoryAbi_V1_0_2.js";
|
|
3
|
+
export { LightAccountFactoryAbi_V1_1_0 } from "./LightAccountFactoryAbi_V1_1_0.js";
|
|
4
|
+
export { LightAccountFactoryAbi_V2_0_0 } from "./LightAccountFactoryAbi_V2_0_0.js";
|
|
5
|
+
export { ModularAccountFactoryAbi_V2_0_0 } from "./ModularAccountFactoryAbi_V2_0_0.js";
|
|
6
|
+
export { MultiOwnerLightAccountFactoryAbi_V2_0_0 } from "./MultiOwnerLightAccountFactoryAbi_V2_0_0.js";
|
|
7
|
+
export { MultiOwnerModularAccountFactoryAbi_V1_0_0 } from "./MultiOwnerModularAccountFactoryAbi_V1_0_0.js";
|
|
8
|
+
export { MultisigModularAccountFactoryAbi_V1_0_0 } from "./MultisigModularAccountFactoryAbi_V1_0_0.js";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { GasParamsOverrideCapability } from "./overrides.js";
|
|
3
|
+
import { PaymasterCapability } from "./paymaster.js";
|
|
4
|
+
import { PermissionsCapability } from "./permissions/index.js";
|
|
4
5
|
|
|
5
6
|
export const Capabilities = Type.Object(
|
|
6
7
|
{
|
|
7
8
|
permissions: Type.Optional(PermissionsCapability),
|
|
8
9
|
paymasterService: Type.Optional(PaymasterCapability),
|
|
10
|
+
gasParamsOverride: Type.Optional(GasParamsOverrideCapability),
|
|
9
11
|
},
|
|
10
12
|
{ minProperties: 1 },
|
|
11
13
|
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { TypeHex } from "../schemas.js";
|
|
3
|
+
|
|
4
|
+
export const Mutliplier = Type.Object({ multiplier: Type.Number() });
|
|
5
|
+
|
|
6
|
+
// This is still being defined in https://github.com/ethereum/ERCs/pull/947/files#diff-dab085f963ca621595044bcbc0922705aa38b69f5bf8770dcb3d0496a633efcfR158
|
|
7
|
+
export const GasParamsOverrideCapability = Type.Object(
|
|
8
|
+
{
|
|
9
|
+
preVerificationGas: Type.Optional(Type.Union([TypeHex(), Mutliplier])),
|
|
10
|
+
verificationGasLimit: Type.Optional(Type.Union([TypeHex(), Mutliplier])),
|
|
11
|
+
callGasLimit: Type.Optional(Type.Union([TypeHex(), Mutliplier])),
|
|
12
|
+
paymasterVerificationGasLimit: Type.Optional(
|
|
13
|
+
Type.Union([TypeHex(), Mutliplier]),
|
|
14
|
+
),
|
|
15
|
+
paymasterPostOpGasLimit: Type.Optional(Type.Union([TypeHex(), Mutliplier])),
|
|
16
|
+
maxFeePerGas: Type.Optional(Type.Union([TypeHex(), Mutliplier])),
|
|
17
|
+
maxPriorityFeePerGas: Type.Optional(Type.Union([TypeHex(), Mutliplier])),
|
|
18
|
+
},
|
|
19
|
+
{ minProperties: 1 },
|
|
20
|
+
);
|