@account-kit/smart-contracts 4.0.0-alpha.1 → 4.0.0-alpha.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/cjs/plugindefs/multi-owner/config.js +16 -17
- package/dist/cjs/plugindefs/multi-owner/config.js.map +1 -1
- package/dist/cjs/plugindefs/multisig/config.js +15 -15
- package/dist/cjs/plugindefs/multisig/config.js.map +1 -1
- package/dist/cjs/plugindefs/session-key/config.js +17 -17
- package/dist/cjs/plugindefs/session-key/config.js.map +1 -1
- package/dist/cjs/src/light-account/clients/alchemyClient.d.ts +1 -1
- package/dist/cjs/src/light-account/clients/alchemyClient.js.map +1 -1
- package/dist/cjs/src/light-account/clients/multiOwnerAlchemyClient.d.ts +1 -1
- package/dist/cjs/src/light-account/clients/multiOwnerAlchemyClient.js.map +1 -1
- package/dist/cjs/src/light-account/decorators/lightAccount.js.map +1 -1
- package/dist/cjs/src/light-account/decorators/multiOwnerLightAccount.js.map +1 -1
- package/dist/cjs/src/light-account/utils.js +20 -19
- package/dist/cjs/src/light-account/utils.js.map +1 -1
- package/dist/cjs/src/msca/client/alchemyClient.d.ts +1 -1
- package/dist/cjs/src/msca/client/alchemyClient.js.map +1 -1
- package/dist/cjs/src/msca/client/multiSigAlchemyClient.d.ts +1 -1
- package/dist/cjs/src/msca/client/multiSigAlchemyClient.js +1 -1
- package/dist/cjs/src/msca/client/multiSigAlchemyClient.js.map +1 -1
- package/dist/cjs/src/msca/utils.js +11 -10
- package/dist/cjs/src/msca/utils.js.map +1 -1
- package/dist/esm/plugindefs/multi-owner/config.js +1 -2
- package/dist/esm/plugindefs/multi-owner/config.js.map +1 -1
- package/dist/esm/plugindefs/multisig/config.js +1 -1
- package/dist/esm/plugindefs/multisig/config.js.map +1 -1
- package/dist/esm/plugindefs/session-key/config.js +1 -1
- package/dist/esm/plugindefs/session-key/config.js.map +1 -1
- package/dist/esm/src/light-account/clients/alchemyClient.d.ts +1 -1
- package/dist/esm/src/light-account/clients/alchemyClient.js.map +1 -1
- package/dist/esm/src/light-account/clients/multiOwnerAlchemyClient.d.ts +1 -1
- package/dist/esm/src/light-account/clients/multiOwnerAlchemyClient.js.map +1 -1
- package/dist/esm/src/light-account/decorators/lightAccount.js.map +1 -1
- package/dist/esm/src/light-account/decorators/multiOwnerLightAccount.js.map +1 -1
- package/dist/esm/src/light-account/utils.js +2 -1
- package/dist/esm/src/light-account/utils.js.map +1 -1
- package/dist/esm/src/msca/client/alchemyClient.d.ts +1 -1
- package/dist/esm/src/msca/client/alchemyClient.js.map +1 -1
- package/dist/esm/src/msca/client/multiSigAlchemyClient.d.ts +1 -1
- package/dist/esm/src/msca/client/multiSigAlchemyClient.js +1 -1
- package/dist/esm/src/msca/client/multiSigAlchemyClient.js.map +1 -1
- package/dist/esm/src/msca/utils.js +2 -1
- package/dist/esm/src/msca/utils.js.map +1 -1
- package/dist/types/plugindefs/multi-owner/config.d.ts.map +1 -1
- package/dist/types/src/light-account/clients/alchemyClient.d.ts +1 -1
- package/dist/types/src/light-account/clients/alchemyClient.d.ts.map +1 -1
- package/dist/types/src/light-account/clients/multiOwnerAlchemyClient.d.ts +1 -1
- package/dist/types/src/light-account/clients/multiOwnerAlchemyClient.d.ts.map +1 -1
- package/dist/types/src/light-account/decorators/lightAccount.d.ts +1 -1
- package/dist/types/src/light-account/decorators/multiOwnerLightAccount.d.ts +1 -1
- package/dist/types/src/light-account/utils.d.ts.map +1 -1
- package/dist/types/src/msca/client/alchemyClient.d.ts +1 -1
- package/dist/types/src/msca/client/alchemyClient.d.ts.map +1 -1
- package/dist/types/src/msca/client/multiSigAlchemyClient.d.ts +1 -1
- package/dist/types/src/msca/client/multiSigAlchemyClient.d.ts.map +1 -1
- package/dist/types/src/msca/utils.d.ts.map +1 -1
- package/package.json +5 -5
- package/plugindefs/multi-owner/config.ts +1 -2
- package/plugindefs/multisig/config.ts +1 -1
- package/plugindefs/session-key/config.ts +1 -1
- package/src/light-account/clients/alchemyClient.ts +2 -2
- package/src/light-account/clients/multiOwnerAlchemyClient.ts +2 -2
- package/src/light-account/decorators/lightAccount.ts +1 -1
- package/src/light-account/decorators/multiOwnerLightAccount.ts +1 -1
- package/src/light-account/utils.ts +2 -3
- package/src/msca/client/alchemyClient.ts +2 -2
- package/src/msca/client/multiSigAlchemyClient.ts +5 -5
- package/src/msca/utils.ts +9 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alchemyClient.d.ts","sourceRoot":"","sources":["../../../../../src/msca/client/alchemyClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,oCAAoC,EACzC,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"alchemyClient.d.ts","sourceRoot":"","sources":["../../../../../src/msca/client/alchemyClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,oCAAoC,EACzC,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AAEd,MAAM,MAAM,iCAAiC,CAC3C,OAAO,SAAS,kBAAkB,GAAG,kBAAkB,IACrD,IAAI,CACN,oCAAoC,CAAC,aAAa,EAAE,OAAO,CAAC,EAC5D,WAAW,GAAG,OAAO,CACtB,GACC,IAAI,CACF,+BAA+B,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,EACxE,SAAS,CACV,CAAC;AAEJ,wBAAgB,iCAAiC,CAC/C,OAAO,SAAS,kBAAkB,GAAG,kBAAkB,EAEvD,MAAM,EAAE,iCAAiC,CAAC,OAAO,CAAC,GACjD,OAAO,CACR,yBAAyB,CACvB,eAAe,EACf,KAAK,GAAG,SAAS,EACjB,wBAAwB,CAAC,OAAO,CAAC,EACjC,uBAAuB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,GACxD,oBAAoB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,GACvD,mBAAmB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,CACzD,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { type SmartAccountSigner } from "@aa-sdk/core";
|
|
1
2
|
import { type AlchemySmartAccountClient, type AlchemySmartAccountClientConfig } from "@account-kit/infra";
|
|
2
3
|
import { type AccountLoupeActions, type CreateMultisigModularAccountParams, type LightAccount, type MultisigModularAccount, type MultisigPluginActions, type MultisigUserOperationContext, type PluginManagerActions } from "@account-kit/smart-contracts";
|
|
3
|
-
import { type SmartAccountSigner } from "@aa-sdk/core";
|
|
4
4
|
import { type Chain, type CustomTransport, type HttpTransport, type Transport } from "viem";
|
|
5
5
|
export type AlchemyMultisigAccountClientConfig<TSigner extends SmartAccountSigner = SmartAccountSigner> = Omit<CreateMultisigModularAccountParams<HttpTransport, TSigner>, "transport" | "chain"> & Omit<AlchemySmartAccountClientConfig<Transport, Chain, LightAccount<TSigner>, MultisigUserOperationContext>, "account">;
|
|
6
6
|
export declare function createMultisigAccountAlchemyClient<TSigner extends SmartAccountSigner = SmartAccountSigner>(params: AlchemyMultisigAccountClientConfig<TSigner>): Promise<AlchemySmartAccountClient<CustomTransport, Chain | undefined, MultisigModularAccount<TSigner>, MultisigPluginActions<MultisigModularAccount<TSigner>> & PluginManagerActions<MultisigModularAccount<TSigner>> & AccountLoupeActions<MultisigModularAccount<TSigner>>, MultisigUserOperationContext>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiSigAlchemyClient.d.ts","sourceRoot":"","sources":["../../../../../src/msca/client/multiSigAlchemyClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAML,KAAK,mBAAmB,EACxB,KAAK,kCAAkC,EACvC,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"multiSigAlchemyClient.d.ts","sourceRoot":"","sources":["../../../../../src/msca/client/multiSigAlchemyClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAML,KAAK,mBAAmB,EACxB,KAAK,kCAAkC,EACvC,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AAId,MAAM,MAAM,kCAAkC,CAC5C,OAAO,SAAS,kBAAkB,GAAG,kBAAkB,IACrD,IAAI,CACN,kCAAkC,CAAC,aAAa,EAAE,OAAO,CAAC,EAC1D,WAAW,GAAG,OAAO,CACtB,GACC,IAAI,CACF,+BAA+B,CAC7B,SAAS,EACT,KAAK,EACL,YAAY,CAAC,OAAO,CAAC,EACrB,4BAA4B,CAC7B,EACD,SAAS,CACV,CAAC;AAEJ,wBAAgB,kCAAkC,CAChD,OAAO,SAAS,kBAAkB,GAAG,kBAAkB,EAEvD,MAAM,EAAE,kCAAkC,CAAC,OAAO,CAAC,GAClD,OAAO,CACR,yBAAyB,CACvB,eAAe,EACf,KAAK,GAAG,SAAS,EACjB,sBAAsB,CAAC,OAAO,CAAC,EAC/B,qBAAqB,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,GACpD,oBAAoB,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,GACrD,mBAAmB,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,EACtD,4BAA4B,CAC7B,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/msca/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/msca/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAatB,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAYtD,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,gCAAgC,CAAC;AAGxC;;;;;;GAMG;AACH,eAAO,MAAM,8CAA8C,UAClD,KAAK,KACX,OAeF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gDAAgD,UACpD,KAAK,KACX,OAKF,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC9B,OAAO,SAAS,kBAAkB,GAAG,kBAAkB,EACvD,QAAQ,SACJ,8BAA8B,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/C,SAAS,GAAG,8BAA8B,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,IACzE;IACF,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAElC;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,OAAO,SAAS,kBAAkB,GAAG,kBAAkB,EACvD,QAAQ,SACJ,8BAA8B,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/C,SAAS,GAAG,8BAA8B,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAE3E,MAAM,EAAE,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EACxD,IAAI,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC5C,OAAO,CACR,aAAa,GAAG;IACd,eAAe,EAAE,MAAM,OAAO,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC;CACnE,CACF,CA6BA;AAED,MAAM,MAAM,6BAA6B,CACvC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,IACX;IACF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,MAAM,EAAE,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACzD,aAAa,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,uBAAuB,CAC3C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,EACb,EACA,MAAM,EACN,uBAAuB,EACvB,aAAa,GACd,EAAE,6BAA6B,CAC9B,UAAU,EACV,MAAM,EACN,QAAQ,CACT,GAAG,OAAO,CAAC,aAAa,CAAC,CAwDzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@account-kit/smart-contracts",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.2",
|
|
4
4
|
"description": "aa-sdk compatible interfaces for Alchemy Smart Accounts",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test:run-e2e": "vitest run --config vitest.config.e2e.ts"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@account-kit/plugingen": "^4.0.0-alpha.
|
|
49
|
+
"@account-kit/plugingen": "^4.0.0-alpha.2",
|
|
50
50
|
"@wagmi/cli": "^1.5.2",
|
|
51
51
|
"change-case": "^5.1.2",
|
|
52
52
|
"dedent": "^1.5.1",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"url": "https://github.com/alchemyplatform/aa-sdk/issues"
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "af70c1ea67be7f49339a1267ccadd8dc10aabde1",
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aa-sdk/core": "^4.0.0-alpha.
|
|
73
|
-
"@account-kit/infra": "^4.0.0-alpha.
|
|
72
|
+
"@aa-sdk/core": "^4.0.0-alpha.2",
|
|
73
|
+
"@account-kit/infra": "^4.0.0-alpha.2",
|
|
74
74
|
"viem": "2.8.6"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
sepolia,
|
|
15
15
|
zora,
|
|
16
16
|
zoraSepolia,
|
|
17
|
-
} from "@
|
|
17
|
+
} from "@account-kit/infra";
|
|
18
18
|
import type { PluginConfig } from "@account-kit/plugingen";
|
|
19
19
|
import { parseAbiParameters } from "viem";
|
|
20
20
|
import { MultiOwnerPluginAbi } from "./abi.js";
|
|
@@ -33,7 +33,6 @@ export const MultiOwnerPluginGenConfig: PluginConfig = {
|
|
|
33
33
|
[arbitrum.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
34
34
|
[arbitrumSepolia.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
35
35
|
[base.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
36
|
-
[baseSepolia.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
37
36
|
[fraxtal.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
38
37
|
[fraxtalSepolia.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
39
38
|
[zora.id]: "0xcE0000007B008F50d762D155002600004cD6c647",
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
sepolia,
|
|
14
14
|
zora,
|
|
15
15
|
zoraSepolia,
|
|
16
|
-
} from "@
|
|
16
|
+
} from "@account-kit/infra";
|
|
17
17
|
import type { PluginConfig } from "@account-kit/plugingen";
|
|
18
18
|
import { parseAbiParameters } from "viem";
|
|
19
19
|
import { MultisigPluginAbi } from "./abi.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
sepolia,
|
|
15
15
|
zora,
|
|
16
16
|
zoraSepolia,
|
|
17
|
-
} from "@
|
|
17
|
+
} from "@account-kit/infra";
|
|
18
18
|
import type { PluginConfig } from "@account-kit/plugingen";
|
|
19
19
|
import { parseAbiParameters } from "viem";
|
|
20
20
|
import { MultiOwnerPluginGenConfig } from "../multi-owner/config.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HttpTransport, SmartAccountSigner } from "@aa-sdk/core";
|
|
1
2
|
import {
|
|
2
3
|
AlchemyProviderConfigSchema,
|
|
3
4
|
createAlchemyPublicRpcClient,
|
|
@@ -12,7 +13,6 @@ import {
|
|
|
12
13
|
type LightAccount,
|
|
13
14
|
type LightAccountClientActions,
|
|
14
15
|
} from "@account-kit/smart-contracts";
|
|
15
|
-
import type { HttpTransport, SmartAccountSigner } from "@aa-sdk/core";
|
|
16
16
|
import { custom, type Chain, type CustomTransport, type Transport } from "viem";
|
|
17
17
|
|
|
18
18
|
export type AlchemyLightAccountClientConfig<
|
|
@@ -45,7 +45,7 @@ export async function createLightAccountAlchemyClient<
|
|
|
45
45
|
* @example
|
|
46
46
|
* ```ts
|
|
47
47
|
* import { createLightAccountAlchemyClient } from "@account-kit/smart-contracts";
|
|
48
|
-
* import { sepolia } from "@account-kit/infra
|
|
48
|
+
* import { sepolia } from "@account-kit/infra";
|
|
49
49
|
* import { LocalAccountSigner } from "@aa-sdk/core";
|
|
50
50
|
* import { generatePrivateKey } from "viem"
|
|
51
51
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HttpTransport, SmartAccountSigner } from "@aa-sdk/core";
|
|
1
2
|
import {
|
|
2
3
|
AlchemyProviderConfigSchema,
|
|
3
4
|
createAlchemyPublicRpcClient,
|
|
@@ -12,7 +13,6 @@ import {
|
|
|
12
13
|
type MultiOwnerLightAccount,
|
|
13
14
|
type MultiOwnerLightAccountClientActions,
|
|
14
15
|
} from "@account-kit/smart-contracts";
|
|
15
|
-
import type { HttpTransport, SmartAccountSigner } from "@aa-sdk/core";
|
|
16
16
|
import { custom, type Chain, type CustomTransport, type Transport } from "viem";
|
|
17
17
|
|
|
18
18
|
export type AlchemyMultiOwnerLightAccountClientConfig<
|
|
@@ -49,7 +49,7 @@ export async function createMultiOwnerLightAccountAlchemyClient<
|
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
51
51
|
* import { createMultiOwnerLightAccountAlchemyClient } from "@account-kit/smart-contracts";
|
|
52
|
-
* import { sepolia } from "@account-kit/infra
|
|
52
|
+
* import { sepolia } from "@account-kit/infra";
|
|
53
53
|
* import { LocalAccountSigner } from "@aa-sdk/core";
|
|
54
54
|
* import { generatePrivateKey } from "viem"
|
|
55
55
|
*
|
|
@@ -24,7 +24,7 @@ export type LightAccountClientActions<
|
|
|
24
24
|
* ```ts
|
|
25
25
|
* import { lightAccountClientActions, createLightAccount } from "@account-kit/smart-contracts";
|
|
26
26
|
* import { createAlchemySmartAccountClient } from "@account-kit/infra";
|
|
27
|
-
* import { sepolia } from "@account-kit/infra
|
|
27
|
+
* import { sepolia } from "@account-kit/infra";
|
|
28
28
|
*
|
|
29
29
|
* const smartAccountClient = createAlchemySmartAccountClient({
|
|
30
30
|
* account: await createLightAccount(...),
|
|
@@ -24,7 +24,7 @@ export type MultiOwnerLightAccountClientActions<
|
|
|
24
24
|
* ```ts
|
|
25
25
|
* import { multiOwnerLightAccountClientActions, createMultiOwnerLightAccount } from "@account-kit/smart-contracts";
|
|
26
26
|
* import { createAlchemySmartAccountClient } from "@account-kit/infra";
|
|
27
|
-
* import { sepolia } from "@account-kit/infra
|
|
27
|
+
* import { sepolia } from "@account-kit/infra";
|
|
28
28
|
*
|
|
29
29
|
* const smartAccountClient = createAlchemySmartAccountClient({
|
|
30
30
|
* account: await createMultiOwnerLightAccount(...),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { DefaultFactoryNotDefinedError, toRecord } from "@aa-sdk/core";
|
|
1
2
|
import {
|
|
2
|
-
DefaultFactoryNotDefinedError,
|
|
3
3
|
arbitrum,
|
|
4
4
|
arbitrumGoerli,
|
|
5
5
|
arbitrumSepolia,
|
|
@@ -17,10 +17,9 @@ import {
|
|
|
17
17
|
polygonAmoy,
|
|
18
18
|
polygonMumbai,
|
|
19
19
|
sepolia,
|
|
20
|
-
toRecord,
|
|
21
20
|
zora,
|
|
22
21
|
zoraSepolia,
|
|
23
|
-
} from "@
|
|
22
|
+
} from "@account-kit/infra";
|
|
24
23
|
import { fromHex, type Address, type Chain } from "viem";
|
|
25
24
|
import type { LightAccountBase } from "./accounts/base";
|
|
26
25
|
import type {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
1
2
|
import {
|
|
2
3
|
AlchemyProviderConfigSchema,
|
|
3
4
|
createAlchemyPublicRpcClient,
|
|
@@ -17,7 +18,6 @@ import {
|
|
|
17
18
|
type MultiOwnerPluginActions,
|
|
18
19
|
type PluginManagerActions,
|
|
19
20
|
} from "@account-kit/smart-contracts";
|
|
20
|
-
import type { SmartAccountSigner } from "@aa-sdk/core";
|
|
21
21
|
import {
|
|
22
22
|
custom,
|
|
23
23
|
type Chain,
|
|
@@ -58,7 +58,7 @@ export function createModularAccountAlchemyClient<
|
|
|
58
58
|
* @example
|
|
59
59
|
* ```ts
|
|
60
60
|
* import { createModularAccountAlchemyClient } from "@account-kit/smart-contracts";
|
|
61
|
-
* import { sepolia } from "@account-kit/infra
|
|
61
|
+
* import { sepolia } from "@account-kit/infra";
|
|
62
62
|
* import { LocalAccountSigner } from "@aa-sdk/core";
|
|
63
63
|
* import { generatePrivateKey } from "viem"
|
|
64
64
|
*
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
smartAccountClientActions,
|
|
3
|
+
type SmartAccountSigner,
|
|
4
|
+
} from "@aa-sdk/core";
|
|
1
5
|
import {
|
|
2
6
|
AlchemyProviderConfigSchema,
|
|
3
7
|
createAlchemyPublicRpcClient,
|
|
@@ -19,10 +23,6 @@ import {
|
|
|
19
23
|
type MultisigUserOperationContext,
|
|
20
24
|
type PluginManagerActions,
|
|
21
25
|
} from "@account-kit/smart-contracts";
|
|
22
|
-
import {
|
|
23
|
-
smartAccountClientActions,
|
|
24
|
-
type SmartAccountSigner,
|
|
25
|
-
} from "@aa-sdk/core";
|
|
26
26
|
import {
|
|
27
27
|
custom,
|
|
28
28
|
type Chain,
|
|
@@ -71,7 +71,7 @@ export function createMultisigAccountAlchemyClient<
|
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
73
73
|
* import { createMultisigAccountAlchemyClient } from "@account-kit/smart-contracts";
|
|
74
|
-
* import { sepolia } from "@account-kit/infra
|
|
74
|
+
* import { sepolia } from "@account-kit/infra";
|
|
75
75
|
* import { LocalAccountSigner } from "@aa-sdk/core";
|
|
76
76
|
* import { generatePrivateKey } from "viem"
|
|
77
77
|
*
|
package/src/msca/utils.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccountNotFoundError,
|
|
3
3
|
ChainNotFoundError,
|
|
4
|
+
type GetAccountParameter,
|
|
5
|
+
type SmartAccountClient,
|
|
6
|
+
type SmartAccountSigner,
|
|
7
|
+
type SmartContractAccount,
|
|
8
|
+
type SmartContractAccountWithSigner,
|
|
9
|
+
type UpgradeToData,
|
|
10
|
+
} from "@aa-sdk/core";
|
|
11
|
+
import {
|
|
4
12
|
arbitrum,
|
|
5
13
|
arbitrumSepolia,
|
|
6
14
|
base,
|
|
@@ -11,13 +19,7 @@ import {
|
|
|
11
19
|
polygon,
|
|
12
20
|
polygonAmoy,
|
|
13
21
|
sepolia,
|
|
14
|
-
|
|
15
|
-
type SmartAccountClient,
|
|
16
|
-
type SmartAccountSigner,
|
|
17
|
-
type SmartContractAccount,
|
|
18
|
-
type SmartContractAccountWithSigner,
|
|
19
|
-
type UpgradeToData,
|
|
20
|
-
} from "@aa-sdk/core";
|
|
22
|
+
} from "@account-kit/infra";
|
|
21
23
|
import type { Address, Chain, Transport } from "viem";
|
|
22
24
|
import {
|
|
23
25
|
custom,
|