abstractionkit 0.2.40 → 0.2.41

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.
Files changed (82) hide show
  1. package/dist/chunk-CfYAbeIz.mjs +13 -0
  2. package/dist/index.cjs +7234 -0
  3. package/dist/index.d.cts +1561 -0
  4. package/dist/index.d.cts.map +1 -0
  5. package/dist/index.d.mts +1559 -0
  6. package/dist/index.d.mts.map +1 -0
  7. package/dist/index.iife.js +7236 -0
  8. package/dist/index.mjs +7148 -0
  9. package/dist/index.mjs.map +1 -0
  10. package/package.json +26 -13
  11. package/dist/Bundler.d.ts +0 -12
  12. package/dist/Bundler.d.ts.map +0 -1
  13. package/dist/abstractionkit.d.ts +0 -28
  14. package/dist/abstractionkit.d.ts.map +0 -1
  15. package/dist/account/Calibur/Calibur7702Account.d.ts +0 -44
  16. package/dist/account/Calibur/Calibur7702Account.d.ts.map +0 -1
  17. package/dist/account/Calibur/types.d.ts +0 -62
  18. package/dist/account/Calibur/types.d.ts.map +0 -1
  19. package/dist/account/Safe/MerkleTree.d.ts +0 -3
  20. package/dist/account/Safe/MerkleTree.d.ts.map +0 -1
  21. package/dist/account/Safe/SafeAccount.d.ts +0 -251
  22. package/dist/account/Safe/SafeAccount.d.ts.map +0 -1
  23. package/dist/account/Safe/SafeAccountV0_2_0.d.ts +0 -79
  24. package/dist/account/Safe/SafeAccountV0_2_0.d.ts.map +0 -1
  25. package/dist/account/Safe/SafeAccountV0_3_0.d.ts +0 -64
  26. package/dist/account/Safe/SafeAccountV0_3_0.d.ts.map +0 -1
  27. package/dist/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts +0 -54
  28. package/dist/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts.map +0 -1
  29. package/dist/account/Safe/SafeMultiChainSigAccount.d.ts +0 -87
  30. package/dist/account/Safe/SafeMultiChainSigAccount.d.ts.map +0 -1
  31. package/dist/account/Safe/modules/AllowanceModule.d.ts +0 -38
  32. package/dist/account/Safe/modules/AllowanceModule.d.ts.map +0 -1
  33. package/dist/account/Safe/modules/SafeModule.d.ts +0 -10
  34. package/dist/account/Safe/modules/SafeModule.d.ts.map +0 -1
  35. package/dist/account/Safe/modules/SocialRecoveryModule.d.ts +0 -72
  36. package/dist/account/Safe/modules/SocialRecoveryModule.d.ts.map +0 -1
  37. package/dist/account/Safe/multisend.d.ts +0 -4
  38. package/dist/account/Safe/multisend.d.ts.map +0 -1
  39. package/dist/account/Safe/safeMessage.d.ts +0 -23
  40. package/dist/account/Safe/safeMessage.d.ts.map +0 -1
  41. package/dist/account/Safe/types.d.ts +0 -159
  42. package/dist/account/Safe/types.d.ts.map +0 -1
  43. package/dist/account/SendUseroperationResponse.d.ts +0 -11
  44. package/dist/account/SendUseroperationResponse.d.ts.map +0 -1
  45. package/dist/account/SmartAccount.d.ts +0 -10
  46. package/dist/account/SmartAccount.d.ts.map +0 -1
  47. package/dist/account/simple/Simple7702Account.d.ts +0 -86
  48. package/dist/account/simple/Simple7702Account.d.ts.map +0 -1
  49. package/dist/account/simple/Simple7702AccountV09.d.ts +0 -18
  50. package/dist/account/simple/Simple7702AccountV09.d.ts.map +0 -1
  51. package/dist/constants.d.ts +0 -43
  52. package/dist/constants.d.ts.map +0 -1
  53. package/dist/errors.d.ts +0 -25
  54. package/dist/errors.d.ts.map +0 -1
  55. package/dist/factory/SafeAccountFactory.d.ts +0 -6
  56. package/dist/factory/SafeAccountFactory.d.ts.map +0 -1
  57. package/dist/factory/SmartAccountFactory.d.ts +0 -9
  58. package/dist/factory/SmartAccountFactory.d.ts.map +0 -1
  59. package/dist/index.d.ts +0 -4
  60. package/dist/index.d.ts.map +0 -1
  61. package/dist/index.js +0 -1
  62. package/dist/index.m.js +0 -1
  63. package/dist/index.modern.mjs +0 -1
  64. package/dist/index.umd.js +0 -1
  65. package/dist/paymaster/AllowAllPaymaster.d.ts +0 -9
  66. package/dist/paymaster/AllowAllPaymaster.d.ts.map +0 -1
  67. package/dist/paymaster/CandidePaymaster.d.ts +0 -39
  68. package/dist/paymaster/CandidePaymaster.d.ts.map +0 -1
  69. package/dist/paymaster/Paymaster.d.ts +0 -3
  70. package/dist/paymaster/Paymaster.d.ts.map +0 -1
  71. package/dist/paymaster/WorldIdPermissionlessPaymaster.d.ts +0 -16
  72. package/dist/paymaster/WorldIdPermissionlessPaymaster.d.ts.map +0 -1
  73. package/dist/paymaster/types.d.ts +0 -24
  74. package/dist/paymaster/types.d.ts.map +0 -1
  75. package/dist/types.d.ts +0 -219
  76. package/dist/types.d.ts.map +0 -1
  77. package/dist/utils.d.ts +0 -37
  78. package/dist/utils.d.ts.map +0 -1
  79. package/dist/utils7702.d.ts +0 -30
  80. package/dist/utils7702.d.ts.map +0 -1
  81. package/dist/utilsTenderly.d.ts +0 -75
  82. package/dist/utilsTenderly.d.ts.map +0 -1
@@ -1,86 +0,0 @@
1
- import { SmartAccount } from "../SmartAccount";
2
- import { GasOption, PolygonChain, StateOverrideSet, UserOperationV8, UserOperationV9 } from "src/types";
3
- import { SendUseroperationResponse } from "../SendUseroperationResponse";
4
- export interface SimpleMetaTransaction {
5
- to: string;
6
- value: bigint;
7
- data: string;
8
- }
9
- export interface CreateUserOperationOverrides {
10
- nonce?: bigint;
11
- callData?: string;
12
- callGasLimit?: bigint;
13
- verificationGasLimit?: bigint;
14
- preVerificationGas?: bigint;
15
- maxFeePerGas?: bigint;
16
- maxPriorityFeePerGas?: bigint;
17
- callGasLimitPercentageMultiplier?: number;
18
- verificationGasLimitPercentageMultiplier?: number;
19
- preVerificationGasPercentageMultiplier?: number;
20
- maxFeePerGasPercentageMultiplier?: number;
21
- maxPriorityFeePerGasPercentageMultiplier?: number;
22
- state_override_set?: StateOverrideSet;
23
- dummySignature?: string;
24
- gasLevel?: GasOption;
25
- polygonGasStation?: PolygonChain;
26
- eip7702Auth?: {
27
- chainId: bigint;
28
- address?: string;
29
- nonce?: bigint;
30
- yParity?: string;
31
- r?: string;
32
- s?: string;
33
- };
34
- parallelPaymasterInitValues?: {
35
- paymaster: string;
36
- paymasterVerificationGasLimit: bigint;
37
- paymasterPostOpGasLimit: bigint;
38
- paymasterData: string;
39
- };
40
- }
41
- export declare class BaseSimple7702Account extends SmartAccount {
42
- static readonly executorFunctionSelector = "0xb61d27f6";
43
- static readonly executorFunctionInputAbi: string[];
44
- static readonly batchExecutorFunctionSelector = "0x34fcd5be";
45
- static readonly batchExecutorFunctionInputAbi: string[];
46
- static readonly dummySignature = "0xd2614025fc173b86704caf37b2fb447f7618101a0d31f5f304c777024cef38a060a29ee43fcf0c46f9107d4f670b8a85c2c017a1fe9e4af891f24f0be6ba5d671c";
47
- readonly entrypointAddress: string;
48
- readonly delegateeAddress: string;
49
- constructor(accountAddress: string, entrypointAddress: string, delegateeAddress: string);
50
- isDelegatedToThisAccount(providerRpc: string): Promise<boolean>;
51
- createRevokeDelegationTransaction(eoaPrivateKey: string, providerRpc: string, overrides?: {
52
- nonce?: bigint;
53
- authorizationNonce?: bigint;
54
- maxFeePerGas?: bigint;
55
- maxPriorityFeePerGas?: bigint;
56
- gasLimit?: bigint;
57
- chainId?: bigint;
58
- }): Promise<string>;
59
- static createAccountCallData(to: string, value: bigint, data: string): string;
60
- static createAccountCallDataSingleTransaction(metaTransaction: SimpleMetaTransaction): string;
61
- static createAccountCallDataBatchTransactions(transactions: SimpleMetaTransaction[]): string;
62
- protected baseCreateUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV8 | UserOperationV9>;
63
- protected baseEstimateUserOperationGas(userOperation: UserOperationV8 | UserOperationV9, bundlerRpc: string, overrides?: {
64
- stateOverrideSet?: StateOverrideSet;
65
- dummySignature?: string;
66
- }): Promise<[bigint, bigint, bigint]>;
67
- protected baseSignUserOperation(useroperation: UserOperationV8 | UserOperationV9, privateKey: string, chainId: bigint): string;
68
- protected baseSendUserOperation(userOperation: UserOperationV8 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
69
- prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
70
- static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
71
- }
72
- export declare class Simple7702Account extends BaseSimple7702Account {
73
- static readonly DEFAULT_DELEGATEE_ADDRESS = "0xe6Cae83BdE06E4c305530e199D7217f42808555B";
74
- constructor(accountAddress: string, overrides?: {
75
- entrypointAddress?: string;
76
- delegateeAddress?: string;
77
- });
78
- createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV8>;
79
- estimateUserOperationGas(userOperation: UserOperationV8, bundlerRpc: string, overrides?: {
80
- stateOverrideSet?: StateOverrideSet;
81
- dummySignature?: string;
82
- }): Promise<[bigint, bigint, bigint]>;
83
- signUserOperation(useroperation: UserOperationV8, privateKey: string, chainId: bigint): string;
84
- sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
85
- }
86
- //# sourceMappingURL=Simple7702Account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Simple7702Account.d.ts","sourceRoot":"","sources":["../../../src/account/simple/Simple7702Account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AASxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAMzE,MAAM,WAAW,qBAAqB;IAErC,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;CACb;AAQD,MAAM,WAAW,4BAA4B;IAE5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,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AUC,iBAAiB,CAC7B,aAAa,EAAE,eAAe,EAC9B,UAAU,EAAE,MAAM,GAChB,OAAO,CAAC,yBAAyB,CAAC;CAGrC"}
@@ -1,18 +0,0 @@
1
- import { StateOverrideSet, UserOperationV9 } from "src/types";
2
- import { BaseSimple7702Account, CreateUserOperationOverrides, SimpleMetaTransaction } from "./Simple7702Account";
3
- import { SendUseroperationResponse } from "../SendUseroperationResponse";
4
- export declare class Simple7702AccountV09 extends BaseSimple7702Account {
5
- static readonly DEFAULT_DELEGATEE_ADDRESS = "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5";
6
- constructor(accountAddress: string, overrides?: {
7
- entrypointAddress?: string;
8
- delegateeAddress?: string;
9
- });
10
- createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
11
- estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
12
- stateOverrideSet?: StateOverrideSet;
13
- dummySignature?: string;
14
- }): Promise<[bigint, bigint, bigint]>;
15
- signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
16
- sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
17
- }
18
- //# sourceMappingURL=Simple7702AccountV09.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Simple7702AccountV09.d.ts","sourceRoot":"","sources":["../../../src/account/simple/Simple7702AccountV09.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjH,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAQzE,qBAAa,oBAAqB,SAAQ,qBAAqB;IAC9D,MAAM,CAAC,QAAQ,CAAC,yBAAyB,gDAAgD;gBASxF,cAAc,EAAE,MAAM,EAChB,SAAS,GAAE;QAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAC,MAAM,CAAC;KAC7B;IAmBS,mBAAmB,CAClC,YAAY,EAAE,qBAAqB,EAAE,EACrC,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,GAAE,4BAAiC,GAC1C,OAAO,CAAC,eAAe,CAAC;IAkBX,wBAAwB,CACvC,aAAa,EAAE,eAAe,EAC9B,UAAU,EAAE,MAAM,EAClB,SAAS,GAAE;QACV,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,GACJ,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAgB1B,iBAAiB,CAC1B,aAAa,EAAE,eAAe,EAC9B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACV,MAAM;IAUC,iBAAiB,CAC7B,aAAa,EAAE,eAAe,EAC9B,UAAU,EAAE,MAAM,GAChB,OAAO,CAAC,yBAAyB,CAAC;CAGrC"}
@@ -1,43 +0,0 @@
1
- import { SafeAccountSingleton } from "./account/Safe/types";
2
- export declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
3
- export declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
4
- export declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
5
- export declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
6
- export declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
7
- export declare const Safe_L2_V1_5_0: SafeAccountSingleton;
8
- export declare const Safe_L2_V1_4_1: SafeAccountSingleton;
9
- export declare const BaseUserOperationDummyValues: {
10
- sender: string;
11
- nonce: bigint;
12
- callData: string;
13
- callGasLimit: bigint;
14
- verificationGasLimit: bigint;
15
- preVerificationGas: bigint;
16
- maxFeePerGas: bigint;
17
- maxPriorityFeePerGas: bigint;
18
- signature: string;
19
- };
20
- export declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
21
- export declare const EIP712_SAFE_OPERATION_V6_TYPE: {
22
- SafeOp: {
23
- type: string;
24
- name: string;
25
- }[];
26
- };
27
- export declare const EIP712_SAFE_OPERATION_V7_TYPE: {
28
- SafeOp: {
29
- type: string;
30
- name: string;
31
- }[];
32
- };
33
- export declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
34
- export declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
35
- MerkleTreeRoot: {
36
- type: string;
37
- name: string;
38
- }[];
39
- };
40
- export declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
41
- export declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
42
- export declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
43
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,eAAO,MAAM,WAAW,+CAA+C,CAAC;AAGxE,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAE1E,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAE1E,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAE1E,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAG1E,eAAO,MAAM,cAAc,EAAE,oBAI5B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,oBAI5B,CAAC;AAGF,eAAO,MAAM,4BAA4B;;;;;;;;;;CAUxC,CAAC;AAEF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAG3D,eAAO,MAAM,6BAA6B;;;;;CAgBzC,CAAC;AAGF,eAAO,MAAM,6BAA6B;;;;;CAgBzC,CAAC;AAEF,eAAO,MAAM,0CAA0C,mBAAmB,CAAC;AAG3E,eAAO,MAAM,kCAAkC;;;;;CAI9C,CAAC;AAGF,eAAO,MAAM,oCAAoC,+CAA+C,CAAC;AAGjG,eAAO,MAAM,wCAAwC,+CAA+C,CAAC;AAGrG,eAAO,MAAM,wCAAwC,+CAA+C,CAAC"}
package/dist/errors.d.ts DELETED
@@ -1,25 +0,0 @@
1
- import { Dictionary } from "./types";
2
- export type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
3
- export type BundlerErrorCode = "INVALID_FIELDS" | "SIMULATE_VALIDATION" | "SIMULATE_PAYMASTER_VALIDATION" | "OPCODE_VALIDATION" | "EXPIRE_SHORTLY" | "REPUTATION" | "INSUFFICIENT_STAKE" | "UNSUPPORTED_SIGNATURE_AGGREGATOR" | "INVALID_SIGNATURE" | "INVALID_USEROPERATION_HASH" | "EXECUTION_REVERTED";
4
- export type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
5
- export declare const BundlerErrorCodeDict: Dictionary<BundlerErrorCode>;
6
- export declare const JsonRpcErrorDict: Dictionary<JsonRpcErrorCode>;
7
- type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
8
- readonly [key: string]: Jsonable;
9
- } | {
10
- toJSON(): Jsonable;
11
- };
12
- export declare class AbstractionKitError extends Error {
13
- readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
14
- readonly context?: Jsonable;
15
- readonly errno?: number;
16
- constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
17
- cause?: Error;
18
- errno?: number;
19
- context?: Jsonable;
20
- });
21
- stringify(): string;
22
- }
23
- export declare function ensureError(value: unknown): Error;
24
- export {};
25
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC,MAAM,MAAM,cAAc,GACvB,eAAe,GACf,SAAS,GACT,UAAU,GACV,eAAe,GACf,iBAAiB,CAAC;AAMrB,MAAM,MAAM,gBAAgB,GACzB,gBAAgB,GAChB,qBAAqB,GACrB,+BAA+B,GAC/B,mBAAmB,GACnB,gBAAgB,GAChB,YAAY,GACZ,oBAAoB,GACpB,kCAAkC,GAClC,mBAAmB,GACnB,4BAA4B,GAC5B,oBAAoB,CAAC;AAKxB,MAAM,MAAM,gBAAgB,GACzB,aAAa,GACb,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACX,2BAA2B,CAAC;AAKlC,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,gBAAgB,CAY7D,CAAC;AAKF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAMzD,CAAC;AAEF,KAAK,QAAQ,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,SAAS,QAAQ,EAAE,GACnB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,GACpC;IAAE,MAAM,IAAI,QAAQ,CAAA;CAAE,CAAC;AAO1B,qBAAa,mBAAoB,SAAQ,KAAK;IAC7C,SAAgB,IAAI,EAAE,gBAAgB,GAAG,cAAc,GAAG,gBAAgB,CAAC;IAC3E,SAAgB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnC,SAAgB,KAAK,CAAC,EAAE,MAAM,CAAC;gBAQ9B,IAAI,EAAE,gBAAgB,GAAG,cAAc,GAAG,gBAAgB,EAC1D,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,QAAQ,CAAA;KAAO;IAkBpE,SAAS,IAAI,MAAM;CAUnB;AASD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAcjD"}
@@ -1,6 +0,0 @@
1
- import { SmartAccountFactory } from "./SmartAccountFactory";
2
- export declare class SafeAccountFactory extends SmartAccountFactory {
3
- static readonly DEFAULT_FACTORY_ADDRESS = "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67";
4
- constructor(address?: string);
5
- }
6
- //# sourceMappingURL=SafeAccountFactory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SafeAccountFactory.d.ts","sourceRoot":"","sources":["../../src/factory/SafeAccountFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAK5D,qBAAa,kBAAmB,SAAQ,mBAAmB;IAE1D,MAAM,CAAC,QAAQ,CAAC,uBAAuB,gDACO;gBAKlC,OAAO,GAAE,MAAmD;CASxE"}
@@ -1,9 +0,0 @@
1
- import type { AbiInputValue } from "../types";
2
- export declare class SmartAccountFactory {
3
- readonly address: string;
4
- readonly generatorFunctionSelector: string;
5
- readonly generatorFunctionInputAbi: string[];
6
- constructor(address: string, generatorFunctionSelector: string, generatorFunctionInputAbi: string[]);
7
- getFactoryGeneratorFunctionCallData(generatorFunctionInputParameters: AbiInputValue[]): string;
8
- }
9
- //# sourceMappingURL=SmartAccountFactory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SmartAccountFactory.d.ts","sourceRoot":"","sources":["../../src/factory/SmartAccountFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQ9C,qBAAa,mBAAmB;IAE/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,yBAAyB,EAAE,MAAM,CAAC;IAE3C,QAAQ,CAAC,yBAAyB,EAAE,MAAM,EAAE,CAAC;gBAQ5C,OAAO,EAAE,MAAM,EACf,yBAAyB,EAAE,MAAM,EACjC,yBAAyB,EAAE,MAAM,EAAE;IAapC,mCAAmC,CAClC,gCAAgC,EAAE,aAAa,EAAE,GAC/C,MAAM;CAUT"}
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import * as abstractionkit from "./abstractionkit.js";
2
- export { abstractionkit };
3
- export * from "./abstractionkit.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,cAAc,qBAAqB,CAAC"}