@alchemy/smart-accounts 0.0.0-alpha.9 → 5.0.0-beta.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/LICENSE +1 -1
- package/README.md +36 -0
- package/dist/esm/index.d.ts +2 -4
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/light-account/accounts/account.d.ts +7 -3
- package/dist/esm/light-account/accounts/account.js +20 -10
- package/dist/esm/light-account/accounts/account.js.map +1 -1
- package/dist/esm/light-account/accounts/base.js +50 -23
- package/dist/esm/light-account/accounts/base.js.map +1 -1
- package/dist/esm/light-account/accounts/calldataCodec.js +3 -2
- package/dist/esm/light-account/accounts/calldataCodec.js.map +1 -1
- package/dist/esm/light-account/accounts/multi-owner-account.d.ts +6 -2
- package/dist/esm/light-account/accounts/multi-owner-account.js +14 -6
- package/dist/esm/light-account/accounts/multi-owner-account.js.map +1 -1
- package/dist/esm/light-account/lightAccountStaticImpl.d.ts +3 -1
- package/dist/esm/light-account/lightAccountStaticImpl.js +57 -7
- package/dist/esm/light-account/lightAccountStaticImpl.js.map +1 -1
- package/dist/esm/light-account/predictAddress.d.ts +40 -2
- package/dist/esm/light-account/predictAddress.js +83 -3
- package/dist/esm/light-account/predictAddress.js.map +1 -1
- package/dist/esm/light-account/registry.d.ts +3410 -0
- package/dist/esm/light-account/registry.js +33 -1
- package/dist/esm/light-account/registry.js.map +1 -1
- package/dist/esm/logger.d.ts +1 -1
- package/dist/esm/logger.js +1 -1
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/ma-v1/accounts/multi-owner-account.d.ts +6 -2
- package/dist/esm/ma-v1/accounts/multi-owner-account.js +18 -7
- package/dist/esm/ma-v1/accounts/multi-owner-account.js.map +1 -1
- package/dist/esm/ma-v1/predictAddress.d.ts +20 -1
- package/dist/esm/ma-v1/predictAddress.js +38 -2
- package/dist/esm/ma-v1/predictAddress.js.map +1 -1
- package/dist/esm/ma-v2/accounts/account.d.ts +8 -5
- package/dist/esm/ma-v2/accounts/account.js +23 -42
- package/dist/esm/ma-v2/accounts/account.js.map +1 -1
- package/dist/esm/ma-v2/accounts/base.d.ts +2 -2
- package/dist/esm/ma-v2/accounts/base.js +12 -59
- package/dist/esm/ma-v2/accounts/base.js.map +1 -1
- package/dist/esm/ma-v2/mav2StaticImpl.d.ts +1 -15
- package/dist/esm/ma-v2/mav2StaticImpl.js +0 -33
- package/dist/esm/ma-v2/mav2StaticImpl.js.map +1 -1
- package/dist/esm/ma-v2/modules/time-range-module/module.js +3 -2
- package/dist/esm/ma-v2/modules/time-range-module/module.js.map +1 -1
- package/dist/esm/ma-v2/predictAddress.d.ts +22 -6
- package/dist/esm/ma-v2/predictAddress.js +46 -12
- package/dist/esm/ma-v2/predictAddress.js.map +1 -1
- package/dist/esm/ma-v2/utils/account.d.ts +0 -3
- package/dist/esm/ma-v2/utils/account.js +0 -3
- package/dist/esm/ma-v2/utils/account.js.map +1 -1
- package/dist/esm/ma-v2/utils/signature.d.ts +1 -16
- package/dist/esm/ma-v2/utils/signature.js +1 -38
- package/dist/esm/ma-v2/utils/signature.js.map +1 -1
- package/dist/esm/utils.d.ts +24 -11
- package/dist/esm/utils.js +67 -21
- package/dist/esm/utils.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/index.d.ts +2 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/light-account/accounts/account.d.ts +7 -3
- package/dist/types/light-account/accounts/account.d.ts.map +1 -1
- package/dist/types/light-account/accounts/base.d.ts.map +1 -1
- package/dist/types/light-account/accounts/calldataCodec.d.ts.map +1 -1
- package/dist/types/light-account/accounts/multi-owner-account.d.ts +6 -2
- package/dist/types/light-account/accounts/multi-owner-account.d.ts.map +1 -1
- package/dist/types/light-account/lightAccountStaticImpl.d.ts +3 -1
- package/dist/types/light-account/lightAccountStaticImpl.d.ts.map +1 -1
- package/dist/types/light-account/predictAddress.d.ts +40 -2
- package/dist/types/light-account/predictAddress.d.ts.map +1 -1
- package/dist/types/light-account/registry.d.ts +3410 -0
- package/dist/types/light-account/registry.d.ts.map +1 -1
- package/dist/types/logger.d.ts +1 -1
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/ma-v1/accounts/multi-owner-account.d.ts +6 -2
- package/dist/types/ma-v1/accounts/multi-owner-account.d.ts.map +1 -1
- package/dist/types/ma-v1/predictAddress.d.ts +20 -1
- package/dist/types/ma-v1/predictAddress.d.ts.map +1 -1
- package/dist/types/ma-v2/accounts/account.d.ts +8 -5
- package/dist/types/ma-v2/accounts/account.d.ts.map +1 -1
- package/dist/types/ma-v2/accounts/base.d.ts +2 -2
- package/dist/types/ma-v2/accounts/base.d.ts.map +1 -1
- package/dist/types/ma-v2/mav2StaticImpl.d.ts +1 -15
- package/dist/types/ma-v2/mav2StaticImpl.d.ts.map +1 -1
- package/dist/types/ma-v2/modules/time-range-module/module.d.ts.map +1 -1
- package/dist/types/ma-v2/predictAddress.d.ts +22 -6
- package/dist/types/ma-v2/predictAddress.d.ts.map +1 -1
- package/dist/types/ma-v2/utils/account.d.ts +0 -3
- package/dist/types/ma-v2/utils/account.d.ts.map +1 -1
- package/dist/types/ma-v2/utils/signature.d.ts +1 -16
- package/dist/types/ma-v2/utils/signature.d.ts.map +1 -1
- package/dist/types/utils.d.ts +24 -11
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +9 -8
- package/src/index.ts +0 -6
- package/src/light-account/accounts/account.ts +30 -16
- package/src/light-account/accounts/base.ts +62 -23
- package/src/light-account/accounts/calldataCodec.ts +3 -2
- package/src/light-account/accounts/multi-owner-account.ts +22 -9
- package/src/light-account/lightAccountStaticImpl.ts +84 -11
- package/src/light-account/predictAddress.ts +124 -3
- package/src/light-account/registry.ts +44 -0
- package/src/logger.ts +2 -2
- package/src/ma-v1/accounts/multi-owner-account.ts +26 -11
- package/src/ma-v1/predictAddress.ts +60 -3
- package/src/ma-v2/accounts/account.ts +39 -52
- package/src/ma-v2/accounts/base.ts +11 -84
- package/src/ma-v2/mav2StaticImpl.ts +1 -52
- package/src/ma-v2/modules/time-range-module/module.ts +3 -2
- package/src/ma-v2/predictAddress.ts +68 -30
- package/src/ma-v2/utils/account.ts +0 -3
- package/src/ma-v2/utils/signature.ts +2 -57
- package/src/utils.ts +111 -27
- package/src/version.ts +1 -1
- package/dist/esm/ma-v2/abis/webAuthnFactoryAbi.d.ts +0 -330
- package/dist/esm/ma-v2/abis/webAuthnFactoryAbi.js +0 -260
- package/dist/esm/ma-v2/abis/webAuthnFactoryAbi.js.map +0 -1
- package/dist/esm/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +0 -287
- package/dist/esm/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +0 -374
- package/dist/esm/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +0 -1
- package/dist/esm/ma-v2/modules/webauthn-validation/module.d.ts +0 -11
- package/dist/esm/ma-v2/modules/webauthn-validation/module.js +0 -16
- package/dist/esm/ma-v2/modules/webauthn-validation/module.js.map +0 -1
- package/dist/types/ma-v2/abis/webAuthnFactoryAbi.d.ts +0 -331
- package/dist/types/ma-v2/abis/webAuthnFactoryAbi.d.ts.map +0 -1
- package/dist/types/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +0 -288
- package/dist/types/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +0 -1
- package/dist/types/ma-v2/modules/webauthn-validation/module.d.ts +0 -12
- package/dist/types/ma-v2/modules/webauthn-validation/module.d.ts.map +0 -1
- package/src/ma-v2/abis/webAuthnFactoryAbi.ts +0 -259
- package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +0 -373
- package/src/ma-v2/modules/webauthn-validation/module.ts +0 -28
|
@@ -1 +1 @@
|
|
|
1
|
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B,MAAM,YAAY,EAClB,MAAM,aAAa,SAAS,GAAG,CAChC,GACG,CAAC,OAAO,sBAAsB,CAAC,CAAC,iBAAiB,CAAC,CAAC,oBAAoB,CAAC,CAAC,YAAY,CAAC,SAAS;IAC7F,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;CAC7B,GACC,CAAC,OAAO,sBAAsB,CAAC,CAAC,iBAAiB,CAAC,CAAC,oBAAoB,CAAC,CAAC,YAAY,CAAC,GACtF,KAAK,GACP,KAAK,CAAC"}
|
package/dist/types/logger.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,MAAM,EAAE,iBAInB,CAAC"}
|
|
@@ -9,11 +9,15 @@ export type ToMultiOwnerModularAccountV1Params = {
|
|
|
9
9
|
owners: [OneOf<JsonRpcAccount | LocalAccount>, ...{
|
|
10
10
|
address: Address;
|
|
11
11
|
}[]];
|
|
12
|
-
salt?: bigint;
|
|
13
12
|
accountAddress?: Address;
|
|
14
13
|
factory?: Address;
|
|
14
|
+
} & ({
|
|
15
|
+
salt?: bigint;
|
|
16
|
+
factoryData?: never;
|
|
17
|
+
} | {
|
|
18
|
+
salt?: never;
|
|
15
19
|
factoryData?: Hex;
|
|
16
|
-
};
|
|
20
|
+
});
|
|
17
21
|
/**
|
|
18
22
|
* Creates a multi-owner MAv1 account.
|
|
19
23
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-owner-account.d.ts","sourceRoot":"","sources":["../../../../src/ma-v1/accounts/multi-owner-account.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"multi-owner-account.d.ts","sourceRoot":"","sources":["../../../../src/ma-v1/accounts/multi-owner-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,SAAS,EAEf,MAAM,MAAM,CAAC;AACd,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAc9E,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,GAAG;IAC9D,kBAAkB,EAAE,CAClB,WAAW,EAAE,OAAO,EAAE,EACtB,cAAc,EAAE,OAAO,EAAE,KACtB,GAAG,CAAC;IACT,iBAAiB,EAAE,MAAM,OAAO,CAAC,SAAS,OAAO,EAAE,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,SAAS,CAAC,CAAC;IAC5E,MAAM,EAAE,CAAC,KAAK,CAAC,cAAc,GAAG,YAAY,CAAC,EAAE,GAAG;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC,CAAC;IAC1E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,CACA;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,GACtC;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAE,CACtC,CAAC;AAEF;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAAC,EACjD,MAAM,EACN,IAAS,EACT,MAAM,EACN,cAAc,EAAE,eAAe,EAC/B,OAAqD,EACrD,WAAW,EAAE,YAAY,GAC1B,EAAE,kCAAkC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAyH1E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type Address } from "viem";
|
|
1
|
+
import { type Address, type Client, type Hex } from "viem";
|
|
2
|
+
import type { EntryPointVersion } from "viem/account-abstraction";
|
|
2
3
|
export type PredictMultiOwnerModularAccountV1AddressParams = {
|
|
3
4
|
salt: bigint;
|
|
4
5
|
ownerAddresses: Address[];
|
|
@@ -26,4 +27,22 @@ export type PredictMultiOwnerModularAccountV1AddressParams = {
|
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
export declare const predictMultiOwnerModularAccountV1Address: ({ salt, ownerAddresses, factoryAddress, }: PredictMultiOwnerModularAccountV1AddressParams) => Address;
|
|
30
|
+
export type GetMultiOwnerModularAccountV1AddressFromFactoryDataParams = {
|
|
31
|
+
client: Client;
|
|
32
|
+
factoryAddress: Address;
|
|
33
|
+
factoryData: Hex;
|
|
34
|
+
entryPoint: {
|
|
35
|
+
version: EntryPointVersion;
|
|
36
|
+
address: Address;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Gets the multi-owner modular account v1 address from factory data.
|
|
41
|
+
* If the factory is a known default, decodes the args and predicts without RPC.
|
|
42
|
+
* Otherwise falls back to calling the entry point's getSenderAddress.
|
|
43
|
+
*
|
|
44
|
+
* @param {GetMultiOwnerModularAccountV1AddressFromFactoryDataParams} params - The parameters
|
|
45
|
+
* @returns {Promise<Address>} The account address
|
|
46
|
+
*/
|
|
47
|
+
export declare function getMultiOwnerModularAccountV1AddressFromFactoryData({ client, factoryAddress, factoryData, entryPoint, }: GetMultiOwnerModularAccountV1AddressFromFactoryDataParams): Promise<Address>;
|
|
29
48
|
//# sourceMappingURL=predictAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictAddress.d.ts","sourceRoot":"","sources":["../../../src/ma-v1/predictAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"predictAddress.d.ts","sourceRoot":"","sources":["../../../src/ma-v1/predictAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAOX,KAAK,GAAG,EACT,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAMlE,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,MAAM,CAAC;IAEb,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,wCAAwC,GAAI,2CAItD,8CAA8C,KAAG,OAoBnD,CAAC;AAuBF,MAAM,MAAM,yDAAyD,GAAG;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,EAAE;QACV,OAAO,EAAE,iBAAiB,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,mDAAmD,CAAC,EACxE,MAAM,EACN,cAAc,EACd,WAAW,EACX,UAAU,GACX,EAAE,yDAAyD,GAAG,OAAO,CAAC,OAAO,CAAC,CA0B9E"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { type Address, type Chain, type Client, type Hex, type JsonRpcAccount, type LocalAccount, type Transport } from "viem";
|
|
2
|
-
import type { WebAuthnAccount } from "viem/account-abstraction";
|
|
3
2
|
import { type ModularAccountV2Base } from "./base.js";
|
|
4
3
|
import type { SignerEntity } from "../types.js";
|
|
5
4
|
type Mode = "default" | "7702";
|
|
6
5
|
export type ModularAccountV2 = ModularAccountV2Base & {};
|
|
7
6
|
export type ToModularAccountV2Params<TMode extends Mode | undefined = Mode | undefined> = {
|
|
8
7
|
client: Client<Transport, Chain, JsonRpcAccount | LocalAccount | undefined>;
|
|
9
|
-
owner: JsonRpcAccount | LocalAccount
|
|
8
|
+
owner: JsonRpcAccount | LocalAccount;
|
|
10
9
|
deferredAction?: Hex;
|
|
11
10
|
signerEntity?: SignerEntity;
|
|
12
11
|
accountAddress?: Address;
|
|
@@ -17,11 +16,15 @@ export type ToModularAccountV2Params<TMode extends Mode | undefined = Mode | und
|
|
|
17
16
|
factoryData?: never;
|
|
18
17
|
implementationAddress?: never;
|
|
19
18
|
} : {
|
|
20
|
-
salt?: bigint;
|
|
21
19
|
factory?: Address;
|
|
22
|
-
factoryData?: Hex;
|
|
23
20
|
implementationAddress?: Address;
|
|
24
|
-
}
|
|
21
|
+
} & ({
|
|
22
|
+
salt?: bigint;
|
|
23
|
+
factoryData?: never;
|
|
24
|
+
} | {
|
|
25
|
+
salt?: never;
|
|
26
|
+
factoryData?: Hex;
|
|
27
|
+
}));
|
|
25
28
|
/**
|
|
26
29
|
* Creates a MAv2 account.
|
|
27
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/accounts/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/accounts/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,YAA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,EACZ,cAAc,EAAE,eAAe,EAC/B,IAAS,EACT,OAAO,EACP,WAAW,EAAE,YAAY,EACzB,qBAAqB,EAAE,sBAAsB,EAC7C,IAAI,GACL,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAsH7D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Address, type Hex, type Chain, type Client, type JsonRpcAccount, type LocalAccount, type Transport } from "viem";
|
|
2
|
-
import { entryPoint07Abi, type SmartAccountImplementation, type
|
|
2
|
+
import { entryPoint07Abi, type SmartAccountImplementation, type ToSmartAccountParameters } from "viem/account-abstraction";
|
|
3
3
|
import { type ExecutionDataView, type SignerEntity, type ValidationDataView } from "../types.js";
|
|
4
4
|
import type { SignatureRequest, SmartAccountWithDecodeCalls } from "../../types.js";
|
|
5
5
|
export type ValidationDataParams = {
|
|
@@ -21,7 +21,7 @@ export type BaseModularAccountV2Implementation = SmartAccountImplementation<type
|
|
|
21
21
|
export type ModularAccountV2Base = SmartAccountWithDecodeCalls<BaseModularAccountV2Implementation>;
|
|
22
22
|
export type ToModularAccountV2BaseParams<TTransport extends Transport = Transport> = {
|
|
23
23
|
client: Client<TTransport, Chain, JsonRpcAccount | LocalAccount | undefined>;
|
|
24
|
-
owner: JsonRpcAccount | LocalAccount
|
|
24
|
+
owner: JsonRpcAccount | LocalAccount;
|
|
25
25
|
accountAddress: Address;
|
|
26
26
|
getFactoryArgs: () => Promise<{
|
|
27
27
|
factory?: Address | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/accounts/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EAUf,MAAM,MAAM,CAAC;AACd,OAAO,EACL,eAAe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AAC,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACnD,EACD,OAAO,CACR,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC9B,2BAA2B,CAAC,kCAAkC,CAAC,CAAC;AAElE,MAAM,MAAM,4BAA4B,CACtC,UAAU,SAAS,SAAS,GAAG,SAAS,IACtC;IACF,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,SAAS,CAAC,CAAC;IAC7E,KAAK,EAAE,cAAc,GAAG,YAAY,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,MAAM,OAAO,CAAC;QAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9B,WAAW,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;KAC/B,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,wBAAwB,CAAC,eAAe,CAAC,CAAC;CAC3D,CAAC;AAEF;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,EACA,MAAM,EACN,KAAK,EACL,cAAc,EACd,cAAc,EACd,YAGC,EACD,cAAc,EACd,aAAa,GACd,EAAE,4BAA4B,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAqX1E"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { type Address
|
|
1
|
+
import { type Address } from "viem";
|
|
2
2
|
import { entryPoint07Abi } from "viem/account-abstraction";
|
|
3
3
|
import type { StaticSmartAccountImplementation } from "../types.js";
|
|
4
4
|
import { semiModularAccountBytecodeAbi } from "./abis/semiModularAccountBytecodeAbi.js";
|
|
5
5
|
import { accountFactoryAbi } from "./abis/accountFactoryAbi.js";
|
|
6
|
-
import { webAuthnFactoryAbi } from "./abis/webAuthnFactoryAbi.js";
|
|
7
|
-
import { modularAccountAbi } from "./abis/modularAccountAbi.js";
|
|
8
6
|
export type SemiModularAccountV2FactoryArgs = {
|
|
9
7
|
owner: Address;
|
|
10
8
|
salt: bigint;
|
|
@@ -23,16 +21,4 @@ export type SemiModularAccount7702StaticImpl = StaticSmartAccountImplementation<
|
|
|
23
21
|
* TODO(v5): update JSDoc format when doc-gen supports structs or records.
|
|
24
22
|
*/
|
|
25
23
|
export declare const semiModularAccount7702StaticImpl: SemiModularAccount7702StaticImpl;
|
|
26
|
-
export type WebAuthnModularAccountV2FactoryArgs = {
|
|
27
|
-
ownerPublicKey: Hex;
|
|
28
|
-
salt: bigint;
|
|
29
|
-
entityId: number;
|
|
30
|
-
};
|
|
31
|
-
export type WebAuthnModularAccountV2StaticImpl = StaticSmartAccountImplementation<false, "0.7", WebAuthnModularAccountV2FactoryArgs, typeof entryPoint07Abi, typeof modularAccountAbi, typeof webAuthnFactoryAbi>;
|
|
32
|
-
/**
|
|
33
|
-
* Static implementation logic for WebAuthnModularAccountV2.
|
|
34
|
-
*
|
|
35
|
-
* TODO(v5): update JSDoc format when doc-gen supports structs or records.
|
|
36
|
-
*/
|
|
37
|
-
export declare const webAuthnModularAccountV2StaticImpl: WebAuthnModularAccountV2StaticImpl;
|
|
38
24
|
//# sourceMappingURL=mav2StaticImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mav2StaticImpl.d.ts","sourceRoot":"","sources":["../../../src/ma-v2/mav2StaticImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"mav2StaticImpl.d.ts","sourceRoot":"","sources":["../../../src/ma-v2/mav2StaticImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,eAAe,EAAuB,MAAM,0BAA0B,CAAC;AAEhF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,gCAAgC,CAC3E,KAAK,EACL,KAAK,EACL,+BAA+B,EAC/B,OAAO,eAAe,EACtB,OAAO,6BAA6B,EACpC,OAAO,iBAAiB,CACzB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,8BAqB5C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,gCAAgC,CAC7E,IAAI,EACJ,KAAK,EACL,+BAA+B,EAC/B,OAAO,eAAe,EACtB,OAAO,6BAA6B,EACpC,OAAO,iBAAiB,CACzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,EAAE,gCAI5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/ma-v2/modules/time-range-module/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAGnE,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/ma-v2/modules/time-range-module/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAGnE,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAGX;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,WACQ,OAAO,KACf;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,GAAG,CAAA;KAAE;gCAyBhB;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,KAAG,GAAG;kCAkBuB;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAG,GAAG;+BAY7B;QACzB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,KAAG,GAAG;CAkBR,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type Address, type Hex } from "viem";
|
|
1
|
+
import { type Address, type Client, type Hex } from "viem";
|
|
2
|
+
import { type EntryPointVersion } from "viem/account-abstraction";
|
|
2
3
|
export type PredictModularAccountV2AddressParams = {
|
|
3
4
|
factoryAddress: Address;
|
|
4
5
|
implementationAddress: Address;
|
|
@@ -10,13 +11,9 @@ export type PredictModularAccountV2AddressParams = {
|
|
|
10
11
|
} | {
|
|
11
12
|
type: "SMA";
|
|
12
13
|
ownerAddress: Address;
|
|
13
|
-
} | {
|
|
14
|
-
type: "WebAuthn";
|
|
15
|
-
ownerPublicKey: Hex;
|
|
16
|
-
entityId: number;
|
|
17
14
|
});
|
|
18
15
|
/**
|
|
19
|
-
* Predicts the address of a modular account V2 based on the provided parameters, which include factory address, salt, and implementation address. This function supports different types of accounts including "SMA"
|
|
16
|
+
* Predicts the address of a modular account V2 based on the provided parameters, which include factory address, salt, and implementation address. This function supports different types of accounts including "SMA" and "MA".
|
|
20
17
|
*
|
|
21
18
|
* @example
|
|
22
19
|
* ```ts
|
|
@@ -35,4 +32,23 @@ export type PredictModularAccountV2AddressParams = {
|
|
|
35
32
|
* @returns {Address} The predicted address for the modular account V2.
|
|
36
33
|
*/
|
|
37
34
|
export declare function predictModularAccountV2Address(params: PredictModularAccountV2AddressParams): Address;
|
|
35
|
+
export type GetModularAccountV2AddressFromFactoryDataParams = {
|
|
36
|
+
client: Client;
|
|
37
|
+
factoryAddress: Address;
|
|
38
|
+
factoryData: Hex;
|
|
39
|
+
implementationAddress: Address;
|
|
40
|
+
entryPoint?: {
|
|
41
|
+
version: EntryPointVersion;
|
|
42
|
+
address: Address;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Gets the modular account v2 address from factory data.
|
|
47
|
+
* If the factory is a known default (SMA), decodes the args and predicts without RPC.
|
|
48
|
+
* Otherwise falls back to calling the entry point's getSenderAddress.
|
|
49
|
+
*
|
|
50
|
+
* @param {GetModularAccountV2AddressFromFactoryDataParams} params - The parameters
|
|
51
|
+
* @returns {Promise<Address>} The account address
|
|
52
|
+
*/
|
|
53
|
+
export declare function getModularAccountV2AddressFromFactoryData({ client, factoryAddress, factoryData, implementationAddress, entryPoint, }: GetModularAccountV2AddressFromFactoryDataParams): Promise<Address>;
|
|
38
54
|
//# sourceMappingURL=predictAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictAddress.d.ts","sourceRoot":"","sources":["../../../src/ma-v2/predictAddress.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"predictAddress.d.ts","sourceRoot":"","sources":["../../../src/ma-v2/predictAddress.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,GAAG,EACT,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAKlC,MAAM,MAAM,oCAAoC,GAAG;IACjD,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,CACA;IACE,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,GACD;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,EAAE,OAAO,CAAC;CACvB,CACJ,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,oCAAoC,GAC3C,OAAO,CAwCT;AAkCD,MAAM,MAAM,+CAA+C,GAAG;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,iBAAiB,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,yCAAyC,CAAC,EAC9D,MAAM,EACN,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,UAGC,GACF,EAAE,+CAA+C,GAAG,OAAO,CAAC,OAAO,CAAC,CA2BpE"}
|
|
@@ -8,18 +8,15 @@ import type { ModularAccountV2Base } from "../accounts/base.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const DefaultAddress: {
|
|
10
10
|
MAV2_FACTORY: "0x00000000000017c61b5bEe81050EC8eFc9c6fecd";
|
|
11
|
-
MAV2_FACTORY_WEBAUTHN: "0x55010E571dCf07e254994bfc88b9C1C8FAe31960";
|
|
12
11
|
SMAV2_BYTECODE: "0x000000000000c5A9089039570Dd36455b5C07383";
|
|
13
12
|
SMAV2_STORAGE: "0x0000000000006E2f9d80CaEc0Da6500f005EB25A";
|
|
14
13
|
SMAV2_7702: "0x69007702764179f14F51cdce752f4f775d74E139";
|
|
15
|
-
MAV2: "0x00000000000002377B26b1EdA7b0BC371C60DD4f";
|
|
16
14
|
};
|
|
17
15
|
/**
|
|
18
16
|
* A mapping of default addresses for the ModularAccountV2 modules.
|
|
19
17
|
*/
|
|
20
18
|
export declare const DefaultModuleAddress: {
|
|
21
19
|
SINGLE_SIGNER_VALIDATION: "0x00000000000099DE0BF6fA90dEB851E2A2df7d83";
|
|
22
|
-
WEBAUTHN_VALIDATION: "0x0000000000001D9d34E07D9834274dF9ae575217";
|
|
23
20
|
TIME_RANGE: "0x00000000000082B8e2012be914dFA4f62A0573eA";
|
|
24
21
|
PAYMASTER_GUARD: "0x0000000000001aA7A7F7E29abe0be06c72FD42A1";
|
|
25
22
|
NATIVE_TOKEN_LIMIT: "0x00000000000001e541f0D090868FBe24b59Fbe06";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/utils/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,GAAG,EACT,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/utils/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,OAAO,EACZ,K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AAoB,CAKjC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type Address, type Hash, type Hex } from "viem";
|
|
2
2
|
import { SignaturePrefix } from "../types.js";
|
|
3
|
-
import { type WebAuthnP256 } from "ox";
|
|
4
3
|
export type PackUOSignatureParams = {
|
|
5
4
|
validationSignature: Hex;
|
|
6
5
|
};
|
|
@@ -13,7 +12,7 @@ export type PackUOSignatureParams = {
|
|
|
13
12
|
export declare const packUOSignature: ({ validationSignature, }: PackUOSignatureParams) => Hex;
|
|
14
13
|
export type Pack1271SignatureParams = {
|
|
15
14
|
entityId: number;
|
|
16
|
-
validationSignaturePrefix: SignaturePrefix
|
|
15
|
+
validationSignaturePrefix: SignaturePrefix;
|
|
17
16
|
validationSignature: Hex;
|
|
18
17
|
};
|
|
19
18
|
/**
|
|
@@ -51,18 +50,4 @@ export declare function toReplaySafeTypedData({ address, chainId, hash, salt, }:
|
|
|
51
50
|
};
|
|
52
51
|
primaryType: "ReplaySafeHash";
|
|
53
52
|
};
|
|
54
|
-
/**
|
|
55
|
-
* Wraps a P256 signature with the webauthn metadata.
|
|
56
|
-
*
|
|
57
|
-
* @param {ToWebAuthnSignatureParams} params - The parameters for wrapping a P256 signature with the webauthn metadata.
|
|
58
|
-
* @returns {object} The wrapped P256 signature.
|
|
59
|
-
*/
|
|
60
|
-
export declare function toWebAuthnSignature({ webauthn, signature, }: {
|
|
61
|
-
webauthn: WebAuthnP256.SignMetadata;
|
|
62
|
-
signature: Hex;
|
|
63
|
-
}): `0x${string}`;
|
|
64
|
-
/**
|
|
65
|
-
* A dummy WebAuthn signature used for gas estimation.
|
|
66
|
-
*/
|
|
67
|
-
export declare const WEBAUTHN_DUMMY_SIGNATURE = "0xff000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000";
|
|
68
53
|
//# sourceMappingURL=signature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/utils/signature.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../../../src/ma-v2/utils/signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,qBAAqB,GAAG;IAElC,mBAAmB,EAAE,GAAG,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,0BAG7B,qBAAqB,KAAG,GAE1B,CAAC;AAGF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB,EAAE,eAAe,CAAC;IAC3C,mBAAmB,EAAE,GAAG,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,+DAI/B,uBAAuB,KAAG,GAQ5B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,GACL,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;;;;;;;;;;;;;;;;EAeA"}
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
import { type Client, type Hex } from "viem";
|
|
2
|
-
import type
|
|
3
|
-
/**
|
|
4
|
-
* Checks if the current chain supports RIP-7212 (precompiled contract for secp256r1 curve operations).
|
|
5
|
-
* This is used to determine if the chain has native support for P256 signature verification,
|
|
6
|
-
* which is commonly used in WebAuthn/passkey implementations.
|
|
7
|
-
*
|
|
8
|
-
* @param {Client} client - The viem client to use for the check
|
|
9
|
-
* @returns {Promise<boolean>} True if the chain supports RIP-7212, false otherwise
|
|
10
|
-
*/
|
|
11
|
-
export declare const chainHas7212: (client: Client) => Promise<boolean>;
|
|
1
|
+
import { type Address, type Client, type Hex } from "viem";
|
|
2
|
+
import { type EntryPointVersion, type UserOperation } from "viem/account-abstraction";
|
|
12
3
|
export declare function packAccountGasLimits(data: Pick<UserOperation, "verificationGasLimit" | "callGasLimit"> | Pick<UserOperation, "maxPriorityFeePerGas" | "maxFeePerGas">): Hex;
|
|
13
4
|
export declare function packPaymasterData({ paymaster, paymasterVerificationGasLimit, paymasterPostOpGasLimit, paymasterData, }: Pick<UserOperation, "paymaster" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit" | "paymasterData">): Hex;
|
|
14
5
|
export declare const bigIntMultiply: (base: number | bigint | Hex, multiplier: number, roundingMode?: "ROUND" | "FLOOR" | "CEIL") => bigint;
|
|
6
|
+
/**
|
|
7
|
+
* Derives the counterfactual smart account address from init code by calling
|
|
8
|
+
* the entry point's `getSenderAddress` function.
|
|
9
|
+
*
|
|
10
|
+
* @param {Client} client - The viem client to use for the call.
|
|
11
|
+
* @param {object} params - The parameters for deriving the sender address.
|
|
12
|
+
* @param {Hex} params.factory - The factory address for the account.
|
|
13
|
+
* @param {Hex} params.factoryData - The factory data for the account.
|
|
14
|
+
* @param {object} params.entryPoint - The entry point contract details.
|
|
15
|
+
* @param {EntryPointVersion} [params.entryPoint.version] - The entry point version.
|
|
16
|
+
* @param {Address} params.entryPoint.address - The entry point contract address.
|
|
17
|
+
* @returns {Promise<Address>} The counterfactual address of the smart account.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getSenderFromFactoryData: (client: Client, params: {
|
|
20
|
+
factory: Hex;
|
|
21
|
+
factoryData: Hex;
|
|
22
|
+
entryPoint: {
|
|
23
|
+
version: EntryPointVersion;
|
|
24
|
+
address: Address;
|
|
25
|
+
};
|
|
26
|
+
}) => Promise<Address>;
|
|
27
|
+
export declare function is7702Delegated(delegation: Address, code: Hex | undefined): boolean;
|
|
15
28
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEX,KAAK,GAAG,EAIT,MAAM,MAAM,CAAC;AAQd,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAIlC,wBAAgB,oBAAoB,CAClC,IAAI,EACA,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,cAAc,CAAC,GAC5D,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,cAAc,CAAC,GAC/D,GAAG,CAEL;AAED,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,6BAA6B,EAC7B,uBAAuB,EACvB,aAAa,GACd,EAAE,IAAI,CACL,aAAa,EACX,WAAW,GACX,+BAA+B,GAC/B,yBAAyB,GACzB,eAAe,CAClB,GAAG,GAAG,CAeN;AAED,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,GAAG,MAAM,GAAG,GAAG,EAC3B,YAAY,MAAM,EAClB,eAAc,OAAO,GAAG,OAAO,GAAG,MAAe,WA0BlD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,QAAQ;IACN,OAAO,EAAE,GAAG,CAAC;IACb,WAAW,EAAE,GAAG,CAAC;IACjB,UAAU,EAAE;QACV,OAAO,EAAE,iBAAiB,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,KACA,OAAO,CAAC,OAAO,CA8CjB,CAAC;AASF,wBAAgB,eAAe,CAC7B,UAAU,EAAE,OAAO,EACnB,IAAI,EAAE,GAAG,GAAG,SAAS,GACpB,OAAO,CAIT"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "5.0.0-beta.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alchemy/smart-accounts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "This package contains all of the viem interfaces for Alchemy's Smart Contract Accounts",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,14 +39,15 @@
|
|
|
39
39
|
"test:run": "vitest run"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@alchemy/aa-infra": "^
|
|
43
|
-
"typescript-template": "*"
|
|
42
|
+
"@alchemy/aa-infra": "^5.0.0-beta.2",
|
|
43
|
+
"typescript-template": "*",
|
|
44
|
+
"viem": "^2.45.0"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@alchemy/common": "^
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
47
|
+
"@alchemy/common": "^5.0.0-beta.2"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"viem": "^2.45.0"
|
|
50
51
|
},
|
|
51
52
|
"publishConfig": {
|
|
52
53
|
"access": "public",
|
|
@@ -60,5 +61,5 @@
|
|
|
60
61
|
"url": "https://github.com/alchemyplatform/aa-sdk/issues"
|
|
61
62
|
},
|
|
62
63
|
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9042002b7414ac2ae8a6251ee4cf96555b091eca"
|
|
64
65
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export type * from "./types.js";
|
|
2
2
|
|
|
3
|
-
export { chainHas7212 } from "./utils.js";
|
|
4
|
-
|
|
5
3
|
// LightAccount
|
|
6
4
|
export type * from "./light-account/accounts/account.js";
|
|
7
5
|
export { toLightAccount } from "./light-account/accounts/account.js";
|
|
@@ -78,7 +76,6 @@ export { installValidationActions } from "./ma-v2/decorators/installValidation.j
|
|
|
78
76
|
export {
|
|
79
77
|
semiModularAccountV2StaticImpl,
|
|
80
78
|
semiModularAccount7702StaticImpl,
|
|
81
|
-
webAuthnModularAccountV2StaticImpl,
|
|
82
79
|
} from "./ma-v2/mav2StaticImpl.js";
|
|
83
80
|
export type * from "./ma-v2/mav2StaticImpl.js";
|
|
84
81
|
|
|
@@ -88,7 +85,6 @@ export { NativeTokenLimitModule } from "./ma-v2/modules/native-token-limit-modul
|
|
|
88
85
|
export { PaymasterGuardModule } from "./ma-v2/modules/paymaster-guard-module/module.js";
|
|
89
86
|
export { SingleSignerValidationModule } from "./ma-v2/modules/single-signer-validation/module.js";
|
|
90
87
|
export { TimeRangeModule } from "./ma-v2/modules/time-range-module/module.js";
|
|
91
|
-
export { WebAuthnValidationModule } from "./ma-v2/modules/webauthn-validation/module.js";
|
|
92
88
|
|
|
93
89
|
export type * from "./ma-v2/permissionBuilder.js";
|
|
94
90
|
export {
|
|
@@ -130,8 +126,6 @@ export {
|
|
|
130
126
|
packUOSignature,
|
|
131
127
|
pack1271Signature,
|
|
132
128
|
toReplaySafeTypedData,
|
|
133
|
-
toWebAuthnSignature,
|
|
134
|
-
WEBAUTHN_DUMMY_SIGNATURE,
|
|
135
129
|
} from "./ma-v2/utils/signature.js";
|
|
136
130
|
|
|
137
131
|
// Errors
|
|
@@ -13,10 +13,14 @@ import { LightAccountAbi_v1 } from "../abis/LightAccountAbi_v1.js";
|
|
|
13
13
|
import { LightAccountAbi_v2 } from "../abis/LightAccountAbi_v2.js";
|
|
14
14
|
import { LightAccountFactoryAbi_v1 } from "../abis/LightAccountFactoryAbi_v1.js";
|
|
15
15
|
import { LightAccountFactoryAbi_v2 } from "../abis/LightAccountFactoryAbi_v2.js";
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
getLightAccountAddressFromFactoryData,
|
|
18
|
+
predictLightAccountAddress,
|
|
19
|
+
} from "../predictAddress.js";
|
|
17
20
|
import {
|
|
18
21
|
type LightAccountVersion,
|
|
19
22
|
AccountVersionRegistry,
|
|
23
|
+
isLightAccountVersion2,
|
|
20
24
|
} from "../registry.js";
|
|
21
25
|
import {
|
|
22
26
|
LightAccountUnsupported1271Factories,
|
|
@@ -41,12 +45,13 @@ export type ToLightAccountParams<
|
|
|
41
45
|
> = {
|
|
42
46
|
client: Client<Transport, Chain, JsonRpcAccount | LocalAccount | undefined>;
|
|
43
47
|
owner: JsonRpcAccount | LocalAccount;
|
|
44
|
-
salt?: bigint;
|
|
45
48
|
accountAddress?: Address;
|
|
46
49
|
factory?: Address;
|
|
47
|
-
factoryData?: Hex;
|
|
48
50
|
version?: TLightAccountVersion;
|
|
49
|
-
}
|
|
51
|
+
} & (
|
|
52
|
+
| { salt?: bigint; factoryData?: never }
|
|
53
|
+
| { salt?: never; factoryData?: Hex }
|
|
54
|
+
);
|
|
50
55
|
|
|
51
56
|
/**
|
|
52
57
|
* Creates a light account.
|
|
@@ -73,12 +78,12 @@ export async function toLightAccount<
|
|
|
73
78
|
hasAccountAddress: !!accountAddress_,
|
|
74
79
|
});
|
|
75
80
|
|
|
76
|
-
const accountAbi =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
const accountAbi = isLightAccountVersion2(version)
|
|
82
|
+
? LightAccountAbi_v2
|
|
83
|
+
: LightAccountAbi_v1;
|
|
84
|
+
const factoryAbi = isLightAccountVersion2(version)
|
|
85
|
+
? LightAccountFactoryAbi_v2
|
|
86
|
+
: LightAccountFactoryAbi_v1;
|
|
82
87
|
|
|
83
88
|
const salt = LightAccountUnsupported1271Factories.has(lowerAddress(factory))
|
|
84
89
|
? 0n
|
|
@@ -86,12 +91,21 @@ export async function toLightAccount<
|
|
|
86
91
|
|
|
87
92
|
const accountAddress =
|
|
88
93
|
accountAddress_ ??
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
(factoryData_
|
|
95
|
+
? await getLightAccountAddressFromFactoryData({
|
|
96
|
+
client,
|
|
97
|
+
factoryAddress: factory,
|
|
98
|
+
factoryData: factoryData_,
|
|
99
|
+
entryPoint:
|
|
100
|
+
AccountVersionRegistry["LightAccount"][version].entryPoint,
|
|
101
|
+
version,
|
|
102
|
+
})
|
|
103
|
+
: predictLightAccountAddress({
|
|
104
|
+
factoryAddress: factory,
|
|
105
|
+
salt,
|
|
106
|
+
ownerAddress: owner.address,
|
|
107
|
+
version,
|
|
108
|
+
}));
|
|
95
109
|
|
|
96
110
|
LOGGER.debug("toLightAccount:address-resolved", { accountAddress });
|
|
97
111
|
|