@account-kit/wallet-client 4.75.0 → 4.75.2
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/client/actions/formatSign.d.ts +1 -1
- package/dist/esm/client/actions/formatSign.js.map +1 -1
- package/dist/esm/client/actions/getCallsStatus.d.ts +2 -2
- package/dist/esm/client/actions/getCallsStatus.js +0 -1
- package/dist/esm/client/actions/getCallsStatus.js.map +1 -1
- package/dist/esm/client/actions/grantPermissions.d.ts +2 -2
- package/dist/esm/client/actions/grantPermissions.js +5 -7
- package/dist/esm/client/actions/grantPermissions.js.map +1 -1
- package/dist/esm/client/actions/listAccounts.d.ts +1 -1
- package/dist/esm/client/actions/listAccounts.js.map +1 -1
- package/dist/esm/client/actions/prepareCalls.d.ts +2 -2
- package/dist/esm/client/actions/prepareCalls.js +0 -1
- package/dist/esm/client/actions/prepareCalls.js.map +1 -1
- package/dist/esm/client/actions/prepareSign.d.ts +2 -2
- package/dist/esm/client/actions/prepareSign.js +0 -1
- package/dist/esm/client/actions/prepareSign.js.map +1 -1
- package/dist/esm/client/actions/requestAccount.d.ts +1 -1
- package/dist/esm/client/actions/requestAccount.js.map +1 -1
- package/dist/esm/client/actions/sendPreparedCalls.d.ts +1 -1
- package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/client/actions/signPreparedCalls.d.ts +2 -2
- package/dist/esm/client/actions/signPreparedCalls.js +0 -2
- package/dist/esm/client/actions/signPreparedCalls.js.map +1 -1
- package/dist/esm/client/actions/signSignatureRequest.d.ts +1 -1
- package/dist/esm/client/actions/signSignatureRequest.js +0 -1
- package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
- package/dist/esm/client/index.js +4 -3
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/experimental/actions/requestQuoteV0.d.ts +1 -1
- package/dist/esm/experimental/actions/requestQuoteV0.js.map +1 -1
- package/dist/esm/exports/index.d.ts +1 -1
- package/dist/esm/exports/index.js +0 -1
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/internal/account.d.ts +2 -2
- package/dist/esm/internal/account.js +3 -5
- package/dist/esm/internal/account.js.map +1 -1
- package/dist/esm/metrics.d.ts +2 -2
- package/dist/esm/metrics.js +0 -1
- package/dist/esm/metrics.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/client/actions/formatSign.d.ts +1 -1
- package/dist/types/client/actions/formatSign.d.ts.map +1 -1
- package/dist/types/client/actions/getCallsStatus.d.ts +2 -2
- package/dist/types/client/actions/getCallsStatus.d.ts.map +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts +2 -2
- package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
- package/dist/types/client/actions/listAccounts.d.ts +1 -1
- package/dist/types/client/actions/listAccounts.d.ts.map +1 -1
- package/dist/types/client/actions/prepareCalls.d.ts +2 -2
- package/dist/types/client/actions/prepareCalls.d.ts.map +1 -1
- package/dist/types/client/actions/prepareSign.d.ts +2 -2
- package/dist/types/client/actions/prepareSign.d.ts.map +1 -1
- package/dist/types/client/actions/requestAccount.d.ts +1 -1
- package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
- package/dist/types/client/actions/sendPreparedCalls.d.ts +1 -1
- package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -1
- package/dist/types/client/actions/signPreparedCalls.d.ts +2 -2
- package/dist/types/client/actions/signPreparedCalls.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/index.d.ts.map +1 -1
- package/dist/types/experimental/actions/requestQuoteV0.d.ts +1 -1
- package/dist/types/experimental/actions/requestQuoteV0.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +1 -1
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/internal/account.d.ts +2 -2
- package/dist/types/internal/account.d.ts.map +1 -1
- package/dist/types/metrics.d.ts +2 -2
- package/dist/types/metrics.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -8
- package/src/client/actions/formatSign.ts +1 -1
- package/src/client/actions/getCallsStatus.ts +2 -2
- package/src/client/actions/grantPermissions.ts +7 -7
- package/src/client/actions/listAccounts.ts +1 -1
- package/src/client/actions/prepareCalls.ts +2 -2
- package/src/client/actions/prepareSign.ts +2 -2
- package/src/client/actions/requestAccount.ts +1 -1
- package/src/client/actions/sendPreparedCalls.ts +1 -1
- package/src/client/actions/signPreparedCalls.ts +6 -6
- package/src/client/actions/signSignatureRequest.ts +5 -5
- package/src/client/index.ts +18 -6
- package/src/experimental/actions/requestQuoteV0.ts +1 -1
- package/src/exports/index.ts +1 -4
- package/src/internal/account.ts +13 -8
- package/src/metrics.ts +2 -2
- package/src/version.ts +1 -1
package/dist/esm/metrics.js
CHANGED
package/dist/esm/metrics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAoEvC,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAmB;IACpD,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC","sourcesContent":["import { createLogger } from \"@account-kit/logging\";\nimport { VERSION } from \"./version.js\";\nimport type { StaticDecode } from \"typebox\";\nimport type { SerializedInitcode } from \"@alchemy/wallet-api-types\";\n\nexport type CoreEventsSchema = [\n {\n EventName: \"client_created\";\n EventData: {\n chainId: number;\n };\n },\n {\n EventName: \"account_initialized\";\n EventData: {\n chainId: number;\n factory: StaticDecode<typeof SerializedInitcode>[\"factoryType\"] | \"7702\";\n };\n },\n {\n EventName: \"list_accounts\";\n },\n {\n EventName: \"prepare_sign\";\n },\n {\n EventName: \"format_sign\";\n },\n {\n EventName: \"get_calls_status\";\n },\n {\n EventName: \"grant_permissions\";\n },\n {\n EventName: \"prepare_calls\";\n },\n {\n EventName: \"send_prepared_calls\";\n EventData: {\n type: string;\n };\n },\n {\n EventName: \"send_calls\";\n },\n {\n EventName: \"wait_for_calls_status\";\n },\n {\n EventName: \"sign_message\";\n },\n {\n EventName: \"sign_typed_data\";\n },\n {\n EventName: \"sign_prepared_calls\";\n EventData: {\n type: string;\n };\n },\n {\n EventName: \"sign_signature_request\";\n EventData: {\n type: string;\n };\n },\n];\n\nexport const metrics = createLogger<CoreEventsSchema>({\n package: \"@account-kit/wallet-client\",\n version: VERSION,\n});\n"]}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.75.
|
|
1
|
+
export declare const VERSION = "4.75.2";
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.75.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.75.2\";\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import type { wallet_formatSign } from "@alchemy/wallet-api-types/rpc";
|
|
3
3
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
4
4
|
import { type Address, type IsUndefined } from "viem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/formatSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"formatSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/formatSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAI7D,MAAM,MAAM,gBAAgB,CAC1B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CACN,cAAc,CACZ,MAAM,CACJ,CAAC,OAAO,iBAAiB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAC5E,CAAC,CAAC,CAAC,CACL,EACD,MAAM,CACP,GACC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC,YAAY,CAAC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GACjC,OAAO,CAAC,gBAAgB,CAAC,CAc3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
|
-
import type { Static } from "
|
|
3
|
-
import { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
|
|
2
|
+
import type { Static } from "typebox";
|
|
3
|
+
import type { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
|
|
4
4
|
export type GetCallsStatusParams = Static<typeof wallet_getCallsStatus>["Request"]["params"][0];
|
|
5
5
|
export type GetCallsStatusResult = Static<typeof wallet_getCallsStatus>["ReturnType"];
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAG3E,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,OAAO,qBAAqB,CAC7B,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1B,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,OAAO,qBAAqB,CAC7B,CAAC,YAAY,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAS/B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type SmartAccountSigner } from "@aa-sdk/core";
|
|
2
2
|
import { type Address, type Hex, type IsUndefined, type Prettify } from "viem";
|
|
3
3
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
4
|
-
import type { Static } from "
|
|
5
|
-
import { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
import type { Static } from "typebox";
|
|
5
|
+
import type { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
|
|
6
6
|
export type GrantPermissionsParams<TAccount extends Address | undefined = Address | undefined> = Prettify<Omit<Static<(typeof wallet_createSession)["properties"]["Request"]["properties"]["params"]>[0], "account" | "chainId"> & (IsUndefined<TAccount> extends true ? {
|
|
7
7
|
account: Address;
|
|
8
8
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grantPermissions.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/grantPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"grantPermissions.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/grantPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAI1E,MAAM,MAAM,sBAAsB,CAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CACV,IAAI,CACF,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,GAAG,SAAS,CACtB,GACC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAC/B;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GACpB;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAC3B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAsB,gBAAgB,CACpC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GACvC,OAAO,CAAC,sBAAsB,CAAC,CA8BjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import type { wallet_listAccounts } from "@alchemy/wallet-api-types/rpc";
|
|
3
3
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
4
4
|
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAccounts.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/listAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"listAccounts.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/listAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC1D,eAAe,CAChB,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,OAAO,mBAAmB,CAC3B,CAAC,YAAY,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CAgB7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Address, type IsUndefined } from "viem";
|
|
2
2
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
3
|
-
import type { Static } from "
|
|
4
|
-
import { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
|
|
3
|
+
import type { Static } from "typebox";
|
|
4
|
+
import type { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
|
|
5
5
|
export type GetAccountParam<TAccount> = IsUndefined<TAccount> extends true ? {
|
|
6
6
|
account: Address;
|
|
7
7
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/prepareCalls.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"prepareCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/prepareCalls.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIzE,MAAM,MAAM,eAAe,CAAC,QAAQ,IAClC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAC9B;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GACpB;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5B,MAAM,MAAM,kBAAkB,CAC5B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CACN,MAAM,CACJ,CAAC,OAAO,mBAAmB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAC9E,CAAC,CAAC,CAAC,EACJ,MAAM,GAAG,SAAS,CACnB,GACC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,OAAO,mBAAmB,CAC3B,CAAC,YAAY,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,YAAY,CAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GACnC,OAAO,CAAC,kBAAkB,CAAC,CAuB7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
2
|
import { type Address, type IsUndefined } from "viem";
|
|
3
|
-
import type { Static } from "
|
|
4
|
-
import { wallet_prepareSign } from "@alchemy/wallet-api-types/rpc";
|
|
3
|
+
import type { Static } from "typebox";
|
|
4
|
+
import type { wallet_prepareSign } from "@alchemy/wallet-api-types/rpc";
|
|
5
5
|
export type PrepareSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<Static<(typeof wallet_prepareSign)["properties"]["Request"]["properties"]["params"]>[0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
|
|
6
6
|
from: Address;
|
|
7
7
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/prepareSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"prepareSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/prepareSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,MAAM,MAAM,iBAAiB,CAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CACN,MAAM,CACJ,CAAC,OAAO,kBAAkB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAC7E,CAAC,CAAC,CAAC,EACJ,MAAM,GAAG,SAAS,CACnB,GACC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC,YAAY,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAAC,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAc5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SmartAccountSigner, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
|
-
import type { Static } from "
|
|
2
|
+
import type { Static } from "typebox";
|
|
3
3
|
import type { Address } from "abitype";
|
|
4
4
|
import type { wallet_requestAccount } from "@alchemy/wallet-api-types/rpc";
|
|
5
5
|
import type { InnerWalletApiClient } from "../../types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestAccount.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/requestAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"requestAccount.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/requestAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,OAAO,CACL,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC5D;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,CAC3B,EACD,eAAe,GAAG,2BAA2B,CAC9C,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,oBAAoB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CA0C/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
3
3
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
4
4
|
export type SendPreparedCallsParams = WithoutChainId<Static<(typeof wallet_sendPreparedCalls)["properties"]["Request"]["properties"]["params"]>[0]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3E,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAClD,MAAM,CACJ,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACnF,CAAC,CAAC,CAAC,CACL,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,OAAO,wBAAwB,CAChC,CAAC,YAAY,CAAC,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmBlC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PrepareCallsResult } from "./prepareCalls.ts";
|
|
2
2
|
import { type SmartAccountSigner } from "@aa-sdk/core";
|
|
3
|
-
import type { Static } from "
|
|
4
|
-
import { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
3
|
+
import type { Static } from "typebox";
|
|
4
|
+
import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
5
5
|
export type SignPreparedCallsParams = PrepareCallsResult;
|
|
6
6
|
export type SignPreparedCallsResult = Static<(typeof wallet_sendPreparedCalls)["properties"]["Request"]["properties"]["params"]>[0];
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"signPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAS9E,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACnF,CAAC,CAAC,CAAC,CAAC;AAEL;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmElC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
2
2
|
import { type Hex } from "viem";
|
|
3
|
-
import {
|
|
3
|
+
import type { PersonalSignSignatureRequest, TypedDataSignatureRequest, AuthorizationSignatureRequest, Eip7702UnsignedAuth } from "@alchemy/wallet-api-types";
|
|
4
4
|
import type { WithoutRawPayload } from "../../types.ts";
|
|
5
5
|
export type SignSignatureRequestParams = WithoutRawPayload<PersonalSignSignatureRequest | TypedDataSignatureRequest | (AuthorizationSignatureRequest & {
|
|
6
6
|
data: Eip7702UnsignedAuth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signSignatureRequest.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signSignatureRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,GAAG,EAAmC,MAAM,MAAM,CAAC;AAEjE,OAAO,
|
|
1
|
+
{"version":3,"file":"signSignatureRequest.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signSignatureRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,GAAG,EAAmC,MAAM,MAAM,CAAC;AAEjE,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CACtD,4BAA4B,GAC5B,yBAAyB,GACzB,CAAC,6BAA6B,GAAG;IAC/B,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC,CACL,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC,CAkDrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,QAAQ,EAKd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AASxB,MAAM,MAAM,uBAAuB,CACjC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CACV;IACE,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;CAC1C,GAAG,CACA;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,GACxC;IAAE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,CAC7C,CACF,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,wBAAwB,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAChD,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import { type Address, type IsUndefined, type Prettify, type UnionOmit } from "viem";
|
|
3
3
|
import type { wallet_requestQuote_v0 } from "@alchemy/wallet-api-types/rpc";
|
|
4
4
|
import type { InnerWalletApiClientBase } from "../../types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CACV,SAAS,CACP,MAAM,CACJ,CAAC,OAAO,sBAAsB,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CACjF,CAAC,CAAC,CAAC,EACJ,MAAM,GAAG,SAAS,CACnB,CACF,GACC,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC,YAAY,CAAC,CACpD,CAAC;AAEF,wBAAsB,cAAc,CAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,wBAAwB,EAChC,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GACrC,OAAO,CAAC,oBAAoB,CAAC,CAqB/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createSmartWalletClient, type SmartWalletClient, type SmartWalletClientParams, } from "../client/index.js";
|
|
2
|
-
export {
|
|
2
|
+
export type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
3
|
export type * from "../client/actions/getCallsStatus.js";
|
|
4
4
|
export { getCallsStatus } from "../client/actions/getCallsStatus.js";
|
|
5
5
|
export type * from "../client/actions/grantPermissions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,oBAAoB,CAAC;AAE5B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,mBAAmB,qCAAqC,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,mBAAmB,uCAAuC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,mBAAmB,mCAAmC,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,mBAAmB,mCAAmC,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,mBAAmB,qCAAqC,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,mBAAmB,2CAA2C,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,mBAAmB,wCAAwC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,mBAAmB,kCAAkC,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,mBAAmB,oCAAoC,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,mBAAmB,wCAAwC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,mBAAmB,gCAAgC,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,mBAAmB,yCAAyC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,mBAAmB,kCAAkC,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,mBAAmB,iCAAiC,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SmartAccountSigner, SmartContractAccount } from "@aa-sdk/core";
|
|
2
2
|
import { type Chain, type Transport, type Address } from "viem";
|
|
3
|
-
import type { StaticDecode } from "
|
|
4
|
-
import { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
3
|
+
import type { StaticDecode } from "typebox";
|
|
4
|
+
import type { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
5
5
|
type CreateAccountParams = {
|
|
6
6
|
chain: Chain;
|
|
7
7
|
transport: Transport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/internal/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAO7E,OAAO,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/internal/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAO7E,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,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,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAkF/B"}
|
package/dist/types/metrics.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StaticDecode } from "
|
|
2
|
-
import { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
1
|
+
import type { StaticDecode } from "typebox";
|
|
2
|
+
import type { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
3
3
|
export type CoreEventsSchema = [
|
|
4
4
|
{
|
|
5
5
|
EventName: "client_created";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;QACE,SAAS,EAAE,gBAAgB,CAAC;QAC5B,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;SAC1E,CAAC;KACH;IACD;QACE,SAAS,EAAE,eAAe,CAAC;KAC5B;IACD;QACE,SAAS,EAAE,cAAc,CAAC;KAC3B;IACD;QACE,SAAS,EAAE,aAAa,CAAC;KAC1B;IACD;QACE,SAAS,EAAE,kBAAkB,CAAC;KAC/B;IACD;QACE,SAAS,EAAE,mBAAmB,CAAC;KAChC;IACD;QACE,SAAS,EAAE,eAAe,CAAC;KAC5B;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;IACD;QACE,SAAS,EAAE,YAAY,CAAC;KACzB;IACD;QACE,SAAS,EAAE,uBAAuB,CAAC;KACpC;IACD;QACE,SAAS,EAAE,cAAc,CAAC;KAC3B;IACD;QACE,SAAS,EAAE,iBAAiB,CAAC;KAC9B;IACD;QACE,SAAS,EAAE,qBAAqB,CAAC;QACjC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;IACD;QACE,SAAS,EAAE,wBAAwB,CAAC;QACpC,SAAS,EAAE;YACT,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH;CACF,CAAC;AAEF,eAAO,MAAM,OAAO,8DAGlB,CAAC"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.75.
|
|
1
|
+
export declare const VERSION = "4.75.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@account-kit/wallet-client",
|
|
3
|
-
"version": "4.75.
|
|
3
|
+
"version": "4.75.2",
|
|
4
4
|
"description": "Wallet Client for Alchemy Account Kit",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"test:e2e": "bun test ./src/**/*.e2e.test.*"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@aa-sdk/core": "^4.75.
|
|
48
|
-
"@account-kit/infra": "^4.75.
|
|
49
|
-
"@account-kit/smart-contracts": "^4.75.
|
|
50
|
-
"@alchemy/wallet-api-types": "0.1.0-alpha.17",
|
|
47
|
+
"@aa-sdk/core": "^4.75.2",
|
|
48
|
+
"@account-kit/infra": "^4.75.2",
|
|
49
|
+
"@account-kit/smart-contracts": "^4.75.2",
|
|
51
50
|
"deep-equal": "^2.2.3",
|
|
52
51
|
"ox": "^0.6.12"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@
|
|
54
|
+
"@alchemy/wallet-api-types": "0.1.0-alpha.18",
|
|
56
55
|
"@types/deep-equal": "^1.0.4",
|
|
57
56
|
"@types/node": "^24.0.11",
|
|
58
57
|
"bun": "^1.2.18",
|
|
59
|
-
"bun-types": "^1.2.18"
|
|
58
|
+
"bun-types": "^1.2.18",
|
|
59
|
+
"typebox": "^1.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"viem": "^2.29.2"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"url": "https://github.com/alchemyplatform/aa-sdk/issues"
|
|
74
74
|
},
|
|
75
75
|
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "489ff5103206030c4e638e971eeb0f27df6ec838"
|
|
77
77
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import type { wallet_formatSign } from "@alchemy/wallet-api-types/rpc";
|
|
3
3
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
4
4
|
import { toHex, type Address, type IsUndefined } from "viem";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
|
-
import type { Static } from "
|
|
3
|
-
import { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
|
|
2
|
+
import type { Static } from "typebox";
|
|
3
|
+
import type { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
|
|
4
4
|
import { metrics } from "../../metrics.js";
|
|
5
5
|
|
|
6
6
|
export type GetCallsStatusParams = Static<
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
type Hex,
|
|
6
6
|
type IsUndefined,
|
|
7
7
|
type Prettify,
|
|
8
|
+
concatHex,
|
|
8
9
|
} from "viem";
|
|
9
10
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
10
|
-
import type { Static } from "
|
|
11
|
-
import { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
|
|
12
|
-
import { encodePermissionsContext } from "@alchemy/wallet-api-types/capabilities";
|
|
11
|
+
import type { Static } from "typebox";
|
|
12
|
+
import type { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
|
|
13
13
|
import { signSignatureRequest } from "./signSignatureRequest.js";
|
|
14
14
|
import { metrics } from "../../metrics.js";
|
|
15
15
|
|
|
@@ -116,10 +116,10 @@ export async function grantPermissions<
|
|
|
116
116
|
const signature = await signSignatureRequest(signer, signatureRequest);
|
|
117
117
|
|
|
118
118
|
return {
|
|
119
|
-
context:
|
|
120
|
-
|
|
119
|
+
context: concatHex([
|
|
120
|
+
"0x00", // remote mode
|
|
121
121
|
sessionId,
|
|
122
|
-
signature
|
|
123
|
-
|
|
122
|
+
signature.data,
|
|
123
|
+
]),
|
|
124
124
|
};
|
|
125
125
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import type { wallet_listAccounts } from "@alchemy/wallet-api-types/rpc";
|
|
3
3
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
4
4
|
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AccountNotFoundError } from "@aa-sdk/core";
|
|
2
2
|
import { toHex, type Address, type IsUndefined } from "viem";
|
|
3
3
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
4
|
-
import type { Static } from "
|
|
5
|
-
import { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
import type { Static } from "typebox";
|
|
5
|
+
import type { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
|
|
6
6
|
import { metrics } from "../../metrics.js";
|
|
7
7
|
import { mergeClientCapabilities } from "../../internal/capabilities.js";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
2
|
import { toHex, type Address, type IsUndefined } from "viem";
|
|
3
3
|
import { AccountNotFoundError } from "@aa-sdk/core";
|
|
4
|
-
import type { Static } from "
|
|
5
|
-
import { wallet_prepareSign } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
import type { Static } from "typebox";
|
|
5
|
+
import type { wallet_prepareSign } from "@alchemy/wallet-api-types/rpc";
|
|
6
6
|
import { metrics } from "../../metrics.js";
|
|
7
7
|
|
|
8
8
|
export type PrepareSignParams<
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
type SmartAccountSigner,
|
|
3
3
|
type SmartContractAccount,
|
|
4
4
|
} from "@aa-sdk/core";
|
|
5
|
-
import type { Static } from "
|
|
5
|
+
import type { Static } from "typebox";
|
|
6
6
|
import type { Address } from "abitype";
|
|
7
7
|
import deepEqual from "deep-equal";
|
|
8
8
|
import { custom } from "viem";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Static } from "
|
|
1
|
+
import type { Static } from "typebox";
|
|
2
2
|
import { toHex } from "viem";
|
|
3
3
|
import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
4
4
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { PrepareCallsResult } from "./prepareCalls.ts";
|
|
2
2
|
import { BaseError, type SmartAccountSigner } from "@aa-sdk/core";
|
|
3
3
|
import { signSignatureRequest } from "./signSignatureRequest.js";
|
|
4
|
-
import type { Static } from "
|
|
5
|
-
import { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import type { Static } from "typebox";
|
|
5
|
+
import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
6
|
+
import type {
|
|
7
|
+
PreparedCall_Authorization,
|
|
8
|
+
PreparedCall_UserOpV060,
|
|
9
|
+
PreparedCall_UserOpV070,
|
|
10
10
|
} from "@alchemy/wallet-api-types";
|
|
11
11
|
import { metrics } from "../../metrics.js";
|
|
12
12
|
import { assertNever } from "../../utils.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
2
2
|
import { type Hex, hexToNumber, serializeSignature } from "viem";
|
|
3
3
|
import { assertNever } from "../../utils.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import type {
|
|
5
|
+
PersonalSignSignatureRequest,
|
|
6
|
+
TypedDataSignatureRequest,
|
|
7
|
+
AuthorizationSignatureRequest,
|
|
8
|
+
Eip7702UnsignedAuth,
|
|
9
9
|
} from "@alchemy/wallet-api-types";
|
|
10
10
|
import { vToYParity } from "ox/Signature";
|
|
11
11
|
import type { WithoutRawPayload } from "../../types.ts";
|
package/src/client/index.ts
CHANGED
|
@@ -4,16 +4,21 @@ import {
|
|
|
4
4
|
type Address,
|
|
5
5
|
type Chain,
|
|
6
6
|
type Prettify,
|
|
7
|
+
type Transport,
|
|
7
8
|
createClient,
|
|
8
9
|
custom,
|
|
10
|
+
type JsonRpcAccount,
|
|
9
11
|
} from "viem";
|
|
10
12
|
import type { InnerWalletApiClientBase } from "../types.ts";
|
|
11
13
|
import {
|
|
12
14
|
smartWalletClientActions,
|
|
13
15
|
type SmartWalletActions,
|
|
14
16
|
} from "./decorator.js";
|
|
15
|
-
import { Provider } from "ox";
|
|
16
|
-
import {
|
|
17
|
+
import { Provider, RpcSchema } from "ox";
|
|
18
|
+
import type {
|
|
19
|
+
WalletServerRpcSchemaType,
|
|
20
|
+
WalletServerViemRpcSchema,
|
|
21
|
+
} from "@alchemy/wallet-api-types/rpc";
|
|
17
22
|
import { internalStateDecorator } from "../internal/decorator.js";
|
|
18
23
|
import { metrics } from "../metrics.js";
|
|
19
24
|
|
|
@@ -79,11 +84,18 @@ export function createSmartWalletClient(
|
|
|
79
84
|
? params.policyIds
|
|
80
85
|
: undefined;
|
|
81
86
|
|
|
82
|
-
const innerClient = createClient
|
|
87
|
+
const innerClient = createClient<
|
|
88
|
+
Transport,
|
|
89
|
+
Chain,
|
|
90
|
+
JsonRpcAccount<Address> | undefined,
|
|
91
|
+
WalletServerViemRpcSchema
|
|
92
|
+
>({
|
|
83
93
|
transport: (opts) =>
|
|
84
|
-
custom(
|
|
85
|
-
opts,
|
|
86
|
-
|
|
94
|
+
custom(
|
|
95
|
+
Provider.from(transport(opts), {
|
|
96
|
+
schema: RpcSchema.from<WalletServerRpcSchemaType>(),
|
|
97
|
+
}),
|
|
98
|
+
)(opts),
|
|
87
99
|
chain,
|
|
88
100
|
account,
|
|
89
101
|
}).extend(() => ({
|
package/src/exports/index.ts
CHANGED
|
@@ -6,10 +6,7 @@ export {
|
|
|
6
6
|
type SmartWalletClientParams,
|
|
7
7
|
} from "../client/index.js";
|
|
8
8
|
|
|
9
|
-
export {
|
|
10
|
-
WalletServerRpcSchema,
|
|
11
|
-
type WalletServerRpcSchemaType,
|
|
12
|
-
} from "@alchemy/wallet-api-types/rpc";
|
|
9
|
+
export type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
13
10
|
|
|
14
11
|
// client actions
|
|
15
12
|
export type * from "../client/actions/getCallsStatus.js";
|
package/src/internal/account.ts
CHANGED
|
@@ -5,12 +5,17 @@ import {
|
|
|
5
5
|
createMultiOwnerLightAccount,
|
|
6
6
|
createMultiOwnerModularAccount,
|
|
7
7
|
} from "@account-kit/smart-contracts";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import {
|
|
9
|
+
concatHex,
|
|
10
|
+
type Chain,
|
|
11
|
+
type Transport,
|
|
12
|
+
type Address,
|
|
13
|
+
isAddressEqual,
|
|
14
|
+
} from "viem";
|
|
15
|
+
import type { StaticDecode } from "typebox";
|
|
16
|
+
import type { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
11
17
|
import { InternalError, InvalidRequestError } from "ox/RpcResponse";
|
|
12
18
|
import { assertNever } from "../utils.js";
|
|
13
|
-
import { getAccountTypeForDelegationAddress7702 } from "@alchemy/wallet-api-types/capabilities";
|
|
14
19
|
import { metrics } from "../metrics.js";
|
|
15
20
|
|
|
16
21
|
type CreateAccountParams = {
|
|
@@ -47,10 +52,7 @@ export async function createAccount(
|
|
|
47
52
|
const { counterfactualInfo: ci, ...accountParams } = params;
|
|
48
53
|
|
|
49
54
|
if (params.delegation) {
|
|
50
|
-
|
|
51
|
-
params.delegation,
|
|
52
|
-
);
|
|
53
|
-
if (accountType !== "ModularAccountV2") {
|
|
55
|
+
if (!isAddressEqual(params.delegation, MAV2_7702_DELEGATION_ADDRESS)) {
|
|
54
56
|
throw new Error("7702 mode currently only supports ModularAccountV2");
|
|
55
57
|
}
|
|
56
58
|
return createModularAccountV2({
|
|
@@ -129,3 +131,6 @@ export async function createAccount(
|
|
|
129
131
|
return assertNever(factoryType, "Unsupported factory type");
|
|
130
132
|
}
|
|
131
133
|
}
|
|
134
|
+
|
|
135
|
+
const MAV2_7702_DELEGATION_ADDRESS =
|
|
136
|
+
"0x69007702764179f14F51cdce752f4f775d74E139";
|
package/src/metrics.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "@account-kit/logging";
|
|
2
2
|
import { VERSION } from "./version.js";
|
|
3
|
-
import type { StaticDecode } from "
|
|
4
|
-
import { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
3
|
+
import type { StaticDecode } from "typebox";
|
|
4
|
+
import type { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
5
5
|
|
|
6
6
|
export type CoreEventsSchema = [
|
|
7
7
|
{
|
package/src/version.ts
CHANGED