@account-kit/wallet-client 4.75.1 → 4.75.3
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 +9 -4
- package/dist/esm/client/actions/formatSign.js.map +1 -1
- package/dist/esm/client/actions/getCallsStatus.d.ts +9 -4
- package/dist/esm/client/actions/getCallsStatus.js.map +1 -1
- package/dist/esm/client/actions/grantPermissions.d.ts +8 -3
- package/dist/esm/client/actions/grantPermissions.js.map +1 -1
- package/dist/esm/client/actions/listAccounts.d.ts +9 -4
- package/dist/esm/client/actions/listAccounts.js.map +1 -1
- package/dist/esm/client/actions/prepareCalls.d.ts +9 -4
- package/dist/esm/client/actions/prepareCalls.js.map +1 -1
- package/dist/esm/client/actions/prepareSign.d.ts +9 -4
- package/dist/esm/client/actions/prepareSign.js.map +1 -1
- package/dist/esm/client/actions/requestAccount.d.ts +8 -3
- package/dist/esm/client/actions/requestAccount.js.map +1 -1
- package/dist/esm/client/actions/sendPreparedCalls.d.ts +9 -4
- package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -1
- package/dist/esm/client/actions/signPreparedCalls.d.ts +8 -3
- package/dist/esm/client/actions/signPreparedCalls.js +0 -1
- package/dist/esm/client/actions/signPreparedCalls.js.map +1 -1
- package/dist/esm/client/actions/waitForCallsStatus.d.ts +2 -2
- package/dist/esm/experimental/actions/requestQuoteV0.d.ts +9 -4
- package/dist/esm/experimental/actions/requestQuoteV0.js.map +1 -1
- package/dist/esm/internal/account.d.ts +1 -2
- package/dist/esm/internal/account.js.map +1 -1
- package/dist/esm/metrics.d.ts +1 -2
- 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 +9 -4
- package/dist/types/client/actions/formatSign.d.ts.map +1 -1
- package/dist/types/client/actions/getCallsStatus.d.ts +9 -4
- package/dist/types/client/actions/getCallsStatus.d.ts.map +1 -1
- package/dist/types/client/actions/grantPermissions.d.ts +8 -3
- package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
- package/dist/types/client/actions/listAccounts.d.ts +9 -4
- package/dist/types/client/actions/listAccounts.d.ts.map +1 -1
- package/dist/types/client/actions/prepareCalls.d.ts +9 -4
- package/dist/types/client/actions/prepareCalls.d.ts.map +1 -1
- package/dist/types/client/actions/prepareSign.d.ts +9 -4
- package/dist/types/client/actions/prepareSign.d.ts.map +1 -1
- package/dist/types/client/actions/requestAccount.d.ts +8 -3
- package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
- package/dist/types/client/actions/sendPreparedCalls.d.ts +9 -4
- package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -1
- package/dist/types/client/actions/signPreparedCalls.d.ts +8 -3
- package/dist/types/client/actions/signPreparedCalls.d.ts.map +1 -1
- package/dist/types/client/actions/waitForCallsStatus.d.ts +2 -2
- package/dist/types/experimental/actions/requestQuoteV0.d.ts +9 -4
- package/dist/types/experimental/actions/requestQuoteV0.d.ts.map +1 -1
- package/dist/types/internal/account.d.ts +1 -2
- package/dist/types/internal/account.d.ts.map +1 -1
- package/dist/types/metrics.d.ts +1 -2
- package/dist/types/metrics.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
- package/src/client/actions/formatSign.ts +12 -11
- package/src/client/actions/getCallsStatus.ts +12 -8
- package/src/client/actions/grantPermissions.ts +11 -8
- package/src/client/actions/listAccounts.ts +12 -6
- package/src/client/actions/prepareCalls.ts +12 -11
- package/src/client/actions/prepareSign.ts +12 -9
- package/src/client/actions/requestAccount.ts +11 -6
- package/src/client/actions/sendPreparedCalls.ts +12 -8
- package/src/client/actions/signPreparedCalls.ts +15 -9
- package/src/experimental/actions/requestQuoteV0.ts +12 -13
- package/src/internal/account.ts +1 -2
- package/src/metrics.ts +1 -2
- package/src/version.ts +1 -1
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { wallet_formatSign } from "@alchemy/wallet-api-types/rpc";
|
|
1
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
2
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
4
3
|
import { type Address, type IsUndefined } from "viem";
|
|
5
|
-
|
|
4
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
5
|
+
Request: {
|
|
6
|
+
method: "wallet_formatSign";
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export type FormatSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<WithoutChainId<RpcSchema["Request"]["params"][0]>, "from"> & (IsUndefined<TAccount> extends true ? {
|
|
6
10
|
from: Address;
|
|
7
11
|
} : {
|
|
8
12
|
from?: never;
|
|
9
13
|
});
|
|
10
|
-
export type FormatSignResult =
|
|
14
|
+
export type FormatSignResult = RpcSchema["ReturnType"];
|
|
11
15
|
/**
|
|
12
16
|
* Formats a signature request for signing messages or transactions.
|
|
13
17
|
*
|
|
@@ -28,4 +32,5 @@ export type FormatSignResult = Static<typeof wallet_formatSign>["ReturnType"];
|
|
|
28
32
|
* ```
|
|
29
33
|
*/
|
|
30
34
|
export declare function formatSign<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, params: FormatSignParams<TAccount>): Promise<FormatSignResult>;
|
|
35
|
+
export {};
|
|
31
36
|
//# sourceMappingURL=formatSign.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/formatSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"formatSign.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/formatSign.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAS,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAI7D,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,mBAAmB,CAAC;KAC7B,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAC1B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GACjE,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,SAAS,CAAC,YAAY,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;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,8 +1,12 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
4
|
+
Request: {
|
|
5
|
+
method: "wallet_getCallsStatus";
|
|
6
|
+
};
|
|
7
|
+
}>;
|
|
8
|
+
export type GetCallsStatusParams = RpcSchema["Request"]["params"][0];
|
|
9
|
+
export type GetCallsStatusResult = RpcSchema["ReturnType"];
|
|
6
10
|
/**
|
|
7
11
|
* Gets the status of a prepared call by its ID.
|
|
8
12
|
* This method is used to check the execution status of calls sent via sendPreparedCalls.
|
|
@@ -25,4 +29,5 @@ export type GetCallsStatusResult = Static<typeof wallet_getCallsStatus>["ReturnT
|
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
31
|
export declare function getCallsStatus(client: InnerWalletApiClient, params: GetCallsStatusParams): Promise<GetCallsStatusResult>;
|
|
32
|
+
export {};
|
|
28
33
|
//# sourceMappingURL=getCallsStatus.d.ts.map
|
|
@@ -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,
|
|
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,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,uBAAuB,CAAC;KACjC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAS/B"}
|
|
@@ -1,9 +1,13 @@
|
|
|
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 {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
5
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
6
|
+
Request: {
|
|
7
|
+
method: "wallet_createSession";
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
export type GrantPermissionsParams<TAccount extends Address | undefined = Address | undefined> = Prettify<Omit<RpcSchema["Request"]["params"][0], "account" | "chainId"> & (IsUndefined<TAccount> extends true ? {
|
|
7
11
|
account: Address;
|
|
8
12
|
} : {
|
|
9
13
|
account?: never;
|
|
@@ -67,4 +71,5 @@ export type GrantPermissionsResult = {
|
|
|
67
71
|
* ```
|
|
68
72
|
*/
|
|
69
73
|
export declare function grantPermissions<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, signer: SmartAccountSigner, params: GrantPermissionsParams<TAccount>): Promise<GrantPermissionsResult>;
|
|
74
|
+
export {};
|
|
70
75
|
//# sourceMappingURL=grantPermissions.d.ts.map
|
|
@@ -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,EAEd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,
|
|
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,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAI/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,sBAAsB,CAAC;KAChC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CACV,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC,GAC5D,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,12 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { wallet_listAccounts } from "@alchemy/wallet-api-types/rpc";
|
|
1
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
2
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
4
3
|
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
5
4
|
import type { Address } from "viem";
|
|
6
|
-
|
|
5
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
6
|
+
Request: {
|
|
7
|
+
method: "wallet_listAccounts";
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
export type ListAccountsParams = Omit<RpcSchema["Request"]["params"][0], "signerAddress"> & {
|
|
7
11
|
signerAddress?: Address;
|
|
8
12
|
};
|
|
9
|
-
export type ListAccountsResult =
|
|
13
|
+
export type ListAccountsResult = RpcSchema["ReturnType"];
|
|
10
14
|
/**
|
|
11
15
|
* Lists all smart accounts for a given signer using the wallet API client.
|
|
12
16
|
*
|
|
@@ -35,4 +39,5 @@ export type ListAccountsResult = Static<typeof wallet_listAccounts>["ReturnType"
|
|
|
35
39
|
* ```
|
|
36
40
|
*/
|
|
37
41
|
export declare function listAccounts(client: InnerWalletApiClient, signer: SmartAccountSigner, params: ListAccountsParams): Promise<ListAccountsResult>;
|
|
42
|
+
export {};
|
|
38
43
|
//# sourceMappingURL=listAccounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAccounts.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/listAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"listAccounts.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/listAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,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,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,qBAAqB,CAAC;KAC/B,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EACjC,eAAe,CAChB,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CAgB7B"}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { type Address, type IsUndefined } from "viem";
|
|
2
2
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
3
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
5
|
+
Request: {
|
|
6
|
+
method: "wallet_prepareCalls";
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
5
9
|
export type GetAccountParam<TAccount> = IsUndefined<TAccount> extends true ? {
|
|
6
10
|
account: Address;
|
|
7
11
|
} : {
|
|
8
12
|
account?: Address;
|
|
9
13
|
};
|
|
10
|
-
export type PrepareCallsParams<TAccount extends Address | undefined = Address | undefined> = Omit<
|
|
14
|
+
export type PrepareCallsParams<TAccount extends Address | undefined = Address | undefined> = Omit<RpcSchema["Request"]["params"][0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
|
|
11
15
|
from: Address;
|
|
12
16
|
} : {
|
|
13
17
|
from?: never;
|
|
14
18
|
});
|
|
15
|
-
export type PrepareCallsResult =
|
|
19
|
+
export type PrepareCallsResult = RpcSchema["ReturnType"];
|
|
16
20
|
/**
|
|
17
21
|
* Prepares a set of contract calls for execution by building a user operation.
|
|
18
22
|
* Returns the built user operation and a signature request that needs to be signed
|
|
@@ -42,4 +46,5 @@ export type PrepareCallsResult = Static<typeof wallet_prepareCalls>["ReturnType"
|
|
|
42
46
|
* ```
|
|
43
47
|
*/
|
|
44
48
|
export declare function prepareCalls<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, params: PrepareCallsParams<TAccount>): Promise<PrepareCallsResult>;
|
|
49
|
+
export {};
|
|
45
50
|
//# sourceMappingURL=prepareCalls.d.ts.map
|
|
@@ -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,
|
|
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,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAI/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,qBAAqB,CAAC;KAC/B,CAAC;CACH,CACF,CAAC;AAEF,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,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAC7D,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,SAAS,CAAC,YAAY,CAAC,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;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,13 +1,17 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
2
|
import { type Address, type IsUndefined } from "viem";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
5
|
+
Request: {
|
|
6
|
+
method: "wallet_prepareSign";
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export type PrepareSignParams<TAccount extends Address | undefined = Address | undefined> = Omit<RpcSchema["Request"]["params"][0], "from" | "chainId"> & (IsUndefined<TAccount> extends true ? {
|
|
6
10
|
from: Address;
|
|
7
11
|
} : {
|
|
8
12
|
from?: never;
|
|
9
13
|
});
|
|
10
|
-
export type PrepareSignResult =
|
|
14
|
+
export type PrepareSignResult = RpcSchema["ReturnType"];
|
|
11
15
|
/**
|
|
12
16
|
* Prepares a signature request for signing messages or transactions.
|
|
13
17
|
*
|
|
@@ -26,4 +30,5 @@ export type PrepareSignResult = Static<typeof wallet_prepareSign>["ReturnType"];
|
|
|
26
30
|
* ```
|
|
27
31
|
*/
|
|
28
32
|
export declare function prepareSign<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClient, params: PrepareSignParams<TAccount>): Promise<PrepareSignResult>;
|
|
33
|
+
export {};
|
|
29
34
|
//# sourceMappingURL=prepareSign.d.ts.map
|
|
@@ -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,
|
|
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,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,oBAAoB,CAAC;KAC9B,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAC7D,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,SAAS,CAAC,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;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,9 +1,13 @@
|
|
|
1
1
|
import { type SmartAccountSigner, type SmartContractAccount } from "@aa-sdk/core";
|
|
2
|
-
import type { Static } from "typebox";
|
|
3
2
|
import type { Address } from "abitype";
|
|
4
|
-
import type {
|
|
3
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
5
4
|
import type { InnerWalletApiClient } from "../../types.js";
|
|
6
|
-
|
|
5
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
6
|
+
Request: {
|
|
7
|
+
method: "wallet_requestAccount";
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
export type RequestAccountParams = Omit<Extract<RpcSchema["Request"]["params"][0], {
|
|
7
11
|
signerAddress: Address;
|
|
8
12
|
}>, "signerAddress" | "includeCounterfactualInfo"> & {
|
|
9
13
|
accountAddress?: Address;
|
|
@@ -29,4 +33,5 @@ export type RequestAccountResult = SmartContractAccount;
|
|
|
29
33
|
* ```
|
|
30
34
|
*/
|
|
31
35
|
export declare function requestAccount(client: InnerWalletApiClient, signer: SmartAccountSigner, params?: RequestAccountParams): Promise<RequestAccountResult>;
|
|
36
|
+
export {};
|
|
32
37
|
//# sourceMappingURL=requestAccount.d.ts.map
|
|
@@ -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,
|
|
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,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,uBAAuB,CAAC;KACjC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,CAAC,EACtE,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,8 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { wallet_sendPreparedCalls } from "@alchemy/wallet-api-types/rpc";
|
|
1
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
2
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
4
|
+
Request: {
|
|
5
|
+
method: "wallet_sendPreparedCalls";
|
|
6
|
+
};
|
|
7
|
+
}>;
|
|
8
|
+
export type SendPreparedCallsParams = WithoutChainId<RpcSchema["Request"]["params"][0]>;
|
|
9
|
+
export type SendPreparedCallsResult = RpcSchema["ReturnType"];
|
|
6
10
|
/**
|
|
7
11
|
* Sends prepared calls by submitting a signed user operation.
|
|
8
12
|
* This method is used after signing the signature request returned from prepareCalls.
|
|
@@ -35,4 +39,5 @@ export type SendPreparedCallsResult = Static<typeof wallet_sendPreparedCalls>["R
|
|
|
35
39
|
* ```
|
|
36
40
|
*/
|
|
37
41
|
export declare function sendPreparedCalls(client: InnerWalletApiClient, params: SendPreparedCallsParams): Promise<SendPreparedCallsResult>;
|
|
42
|
+
export {};
|
|
38
43
|
//# sourceMappingURL=sendPreparedCalls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,0BAA0B,CAAC;KACpC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAClD,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmBlC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { PrepareCallsResult } from "./prepareCalls.ts";
|
|
2
2
|
import { type SmartAccountSigner } from "@aa-sdk/core";
|
|
3
|
-
import type {
|
|
4
|
-
|
|
3
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
5
|
+
Request: {
|
|
6
|
+
method: "wallet_sendPreparedCalls";
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
5
9
|
export type SignPreparedCallsParams = PrepareCallsResult;
|
|
6
|
-
export type SignPreparedCallsResult =
|
|
10
|
+
export type SignPreparedCallsResult = RpcSchema["Request"]["params"][0];
|
|
7
11
|
/**
|
|
8
12
|
* Signs prepared calls using the provided signer.
|
|
9
13
|
*
|
|
@@ -12,4 +16,5 @@ export type SignPreparedCallsResult = Static<(typeof wallet_sendPreparedCalls)["
|
|
|
12
16
|
* @returns {Promise<SignPreparedCallsResult>} A Promise that resolves to the signed calls
|
|
13
17
|
*/
|
|
14
18
|
export declare function signPreparedCalls(signer: SmartAccountSigner, params: SignPreparedCallsParams): Promise<SignPreparedCallsResult>;
|
|
19
|
+
export {};
|
|
15
20
|
//# sourceMappingURL=signPreparedCalls.d.ts.map
|
|
@@ -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,
|
|
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,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAS/E,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,0BAA0B,CAAC;KACpC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAExE;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAmElC"}
|
|
@@ -17,13 +17,13 @@ export declare function waitForCallsStatus(client: InnerWalletApiClient, params:
|
|
|
17
17
|
version: string;
|
|
18
18
|
id: string;
|
|
19
19
|
chainId: number;
|
|
20
|
-
atomic: boolean;
|
|
21
|
-
receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
|
|
22
20
|
capabilities?: {
|
|
23
21
|
[key: string]: any;
|
|
24
22
|
} | {
|
|
25
23
|
[x: string]: any;
|
|
26
24
|
} | undefined;
|
|
25
|
+
atomic: boolean;
|
|
26
|
+
receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
|
|
27
27
|
statusCode: number;
|
|
28
28
|
status: "pending" | "success" | "failure" | undefined;
|
|
29
29
|
}>;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import type { Static } from "typebox";
|
|
2
1
|
import { type Address, type IsUndefined, type Prettify, type UnionOmit } from "viem";
|
|
3
|
-
import type {
|
|
2
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
4
3
|
import type { InnerWalletApiClientBase } from "../../types.js";
|
|
5
|
-
|
|
4
|
+
type RpcSchema = Extract<WalletServerRpcSchemaType, {
|
|
5
|
+
Request: {
|
|
6
|
+
method: "wallet_requestQuote_v0";
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export type RequestQuoteV0Params<TAccount extends Address | undefined = Address | undefined> = Prettify<UnionOmit<RpcSchema["Request"]["params"][0], "from" | "chainId">> & (IsUndefined<TAccount> extends true ? {
|
|
6
10
|
from: Address;
|
|
7
11
|
} : {
|
|
8
12
|
from?: never;
|
|
9
13
|
});
|
|
10
|
-
export type RequestQuoteV0Result = Prettify<
|
|
14
|
+
export type RequestQuoteV0Result = Prettify<RpcSchema["ReturnType"]>;
|
|
11
15
|
export declare function requestQuoteV0<TAccount extends Address | undefined = Address | undefined>(client: InnerWalletApiClientBase, params: RequestQuoteV0Params<TAccount>): Promise<RequestQuoteV0Result>;
|
|
16
|
+
export {};
|
|
12
17
|
//# sourceMappingURL=requestQuoteV0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"requestQuoteV0.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/requestQuoteV0.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,KAAK,SAAS,GAAG,OAAO,CACtB,yBAAyB,EACzB;IACE,OAAO,EAAE;QACP,MAAM,EAAE,wBAAwB,CAAC;KAClC,CAAC;CACH,CACF,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAC5E,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,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;AAErE,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,13 +1,12 @@
|
|
|
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 "typebox";
|
|
4
3
|
import type { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
5
4
|
type CreateAccountParams = {
|
|
6
5
|
chain: Chain;
|
|
7
6
|
transport: Transport;
|
|
8
7
|
signer: SmartAccountSigner;
|
|
9
8
|
accountAddress: Address;
|
|
10
|
-
counterfactualInfo?:
|
|
9
|
+
counterfactualInfo?: SerializedInitcode;
|
|
11
10
|
delegation?: Address;
|
|
12
11
|
};
|
|
13
12
|
/**
|
|
@@ -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,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,
|
|
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,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,kBAAkB,CAAC;IACxC,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,4 +1,3 @@
|
|
|
1
|
-
import type { StaticDecode } from "typebox";
|
|
2
1
|
import type { SerializedInitcode } from "@alchemy/wallet-api-types";
|
|
3
2
|
export type CoreEventsSchema = [
|
|
4
3
|
{
|
|
@@ -11,7 +10,7 @@ export type CoreEventsSchema = [
|
|
|
11
10
|
EventName: "account_initialized";
|
|
12
11
|
EventData: {
|
|
13
12
|
chainId: number;
|
|
14
|
-
factory:
|
|
13
|
+
factory: SerializedInitcode["factoryType"] | "7702";
|
|
15
14
|
};
|
|
16
15
|
},
|
|
17
16
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/metrics.ts"],"names":[],"mappings":"AAEA,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,kBAAkB,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;SACrD,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.3";
|
|
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.3",
|
|
4
4
|
"description": "Wallet Client for Alchemy Account Kit",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,9 +44,9 @@
|
|
|
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.
|
|
47
|
+
"@aa-sdk/core": "^4.75.3",
|
|
48
|
+
"@account-kit/infra": "^4.75.3",
|
|
49
|
+
"@account-kit/smart-contracts": "^4.75.3",
|
|
50
50
|
"deep-equal": "^2.2.3",
|
|
51
51
|
"ox": "^0.6.12"
|
|
52
52
|
},
|
|
@@ -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": "1ce6848e7c03092f316607ae9703477f873fc9bf"
|
|
77
77
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { wallet_formatSign } from "@alchemy/wallet-api-types/rpc";
|
|
1
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
2
|
import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts";
|
|
4
3
|
import { toHex, type Address, type IsUndefined } from "viem";
|
|
5
4
|
import { AccountNotFoundError } from "@aa-sdk/core";
|
|
6
5
|
import { metrics } from "../../metrics.js";
|
|
7
6
|
|
|
7
|
+
type RpcSchema = Extract<
|
|
8
|
+
WalletServerRpcSchemaType,
|
|
9
|
+
{
|
|
10
|
+
Request: {
|
|
11
|
+
method: "wallet_formatSign";
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
>;
|
|
15
|
+
|
|
8
16
|
export type FormatSignParams<
|
|
9
17
|
TAccount extends Address | undefined = Address | undefined,
|
|
10
|
-
> = Omit<
|
|
11
|
-
WithoutChainId<
|
|
12
|
-
Static<
|
|
13
|
-
(typeof wallet_formatSign)["properties"]["Request"]["properties"]["params"]
|
|
14
|
-
>[0]
|
|
15
|
-
>,
|
|
16
|
-
"from"
|
|
17
|
-
> &
|
|
18
|
+
> = Omit<WithoutChainId<RpcSchema["Request"]["params"][0]>, "from"> &
|
|
18
19
|
(IsUndefined<TAccount> extends true ? { from: Address } : { from?: never });
|
|
19
20
|
|
|
20
|
-
export type FormatSignResult =
|
|
21
|
+
export type FormatSignResult = RpcSchema["ReturnType"];
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* Formats a signature request for signing messages or transactions.
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
2
|
-
import type {
|
|
3
|
-
import type { wallet_getCallsStatus } from "@alchemy/wallet-api-types/rpc";
|
|
2
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
4
3
|
import { metrics } from "../../metrics.js";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
type RpcSchema = Extract<
|
|
6
|
+
WalletServerRpcSchemaType,
|
|
7
|
+
{
|
|
8
|
+
Request: {
|
|
9
|
+
method: "wallet_getCallsStatus";
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
>;
|
|
9
13
|
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
export type GetCallsStatusParams = RpcSchema["Request"]["params"][0];
|
|
15
|
+
|
|
16
|
+
export type GetCallsStatusResult = RpcSchema["ReturnType"];
|
|
13
17
|
|
|
14
18
|
/**
|
|
15
19
|
* Gets the status of a prepared call by its ID.
|
|
@@ -8,20 +8,23 @@ import {
|
|
|
8
8
|
concatHex,
|
|
9
9
|
} from "viem";
|
|
10
10
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
11
|
-
import type {
|
|
12
|
-
import type { wallet_createSession } from "@alchemy/wallet-api-types/rpc";
|
|
11
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
13
12
|
import { signSignatureRequest } from "./signSignatureRequest.js";
|
|
14
13
|
import { metrics } from "../../metrics.js";
|
|
15
14
|
|
|
15
|
+
type RpcSchema = Extract<
|
|
16
|
+
WalletServerRpcSchemaType,
|
|
17
|
+
{
|
|
18
|
+
Request: {
|
|
19
|
+
method: "wallet_createSession";
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
>;
|
|
23
|
+
|
|
16
24
|
export type GrantPermissionsParams<
|
|
17
25
|
TAccount extends Address | undefined = Address | undefined,
|
|
18
26
|
> = Prettify<
|
|
19
|
-
Omit<
|
|
20
|
-
Static<
|
|
21
|
-
(typeof wallet_createSession)["properties"]["Request"]["properties"]["params"]
|
|
22
|
-
>[0],
|
|
23
|
-
"account" | "chainId"
|
|
24
|
-
> &
|
|
27
|
+
Omit<RpcSchema["Request"]["params"][0], "account" | "chainId"> &
|
|
25
28
|
(IsUndefined<TAccount> extends true
|
|
26
29
|
? { account: Address }
|
|
27
30
|
: { account?: never })
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { wallet_listAccounts } from "@alchemy/wallet-api-types/rpc";
|
|
1
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
3
2
|
import type { InnerWalletApiClient } from "../../types.ts";
|
|
4
3
|
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
5
4
|
import type { Address } from "viem";
|
|
6
5
|
import { metrics } from "../../metrics.js";
|
|
7
6
|
|
|
7
|
+
type RpcSchema = Extract<
|
|
8
|
+
WalletServerRpcSchemaType,
|
|
9
|
+
{
|
|
10
|
+
Request: {
|
|
11
|
+
method: "wallet_listAccounts";
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
>;
|
|
15
|
+
|
|
8
16
|
export type ListAccountsParams = Omit<
|
|
9
|
-
|
|
17
|
+
RpcSchema["Request"]["params"][0],
|
|
10
18
|
"signerAddress"
|
|
11
19
|
> & { signerAddress?: Address };
|
|
12
20
|
|
|
13
|
-
export type ListAccountsResult =
|
|
14
|
-
typeof wallet_listAccounts
|
|
15
|
-
>["ReturnType"];
|
|
21
|
+
export type ListAccountsResult = RpcSchema["ReturnType"];
|
|
16
22
|
|
|
17
23
|
/**
|
|
18
24
|
* Lists all smart accounts for a given signer using the wallet API client.
|
|
@@ -1,11 +1,19 @@
|
|
|
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 {
|
|
5
|
-
import type { wallet_prepareCalls } from "@alchemy/wallet-api-types/rpc";
|
|
4
|
+
import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc";
|
|
6
5
|
import { metrics } from "../../metrics.js";
|
|
7
6
|
import { mergeClientCapabilities } from "../../internal/capabilities.js";
|
|
8
7
|
|
|
8
|
+
type RpcSchema = Extract<
|
|
9
|
+
WalletServerRpcSchemaType,
|
|
10
|
+
{
|
|
11
|
+
Request: {
|
|
12
|
+
method: "wallet_prepareCalls";
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
>;
|
|
16
|
+
|
|
9
17
|
export type GetAccountParam<TAccount> =
|
|
10
18
|
IsUndefined<TAccount> extends true
|
|
11
19
|
? { account: Address }
|
|
@@ -13,17 +21,10 @@ export type GetAccountParam<TAccount> =
|
|
|
13
21
|
|
|
14
22
|
export type PrepareCallsParams<
|
|
15
23
|
TAccount extends Address | undefined = Address | undefined,
|
|
16
|
-
> = Omit<
|
|
17
|
-
Static<
|
|
18
|
-
(typeof wallet_prepareCalls)["properties"]["Request"]["properties"]["params"]
|
|
19
|
-
>[0],
|
|
20
|
-
"from" | "chainId"
|
|
21
|
-
> &
|
|
24
|
+
> = Omit<RpcSchema["Request"]["params"][0], "from" | "chainId"> &
|
|
22
25
|
(IsUndefined<TAccount> extends true ? { from: Address } : { from?: never });
|
|
23
26
|
|
|
24
|
-
export type PrepareCallsResult =
|
|
25
|
-
typeof wallet_prepareCalls
|
|
26
|
-
>["ReturnType"];
|
|
27
|
+
export type PrepareCallsResult = RpcSchema["ReturnType"];
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Prepares a set of contract calls for execution by building a user operation.
|