abstractionkit 0.2.40 → 0.3.0
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/CHANGELOG.md +113 -0
- package/dist/chunk-CfYAbeIz.mjs +13 -0
- package/dist/index.cjs +7234 -0
- package/dist/index.d.cts +1561 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +1559 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.iife.js +7236 -0
- package/dist/index.mjs +7148 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +26 -13
- package/dist/Bundler.d.ts +0 -12
- package/dist/Bundler.d.ts.map +0 -1
- package/dist/abstractionkit.d.ts +0 -28
- package/dist/abstractionkit.d.ts.map +0 -1
- package/dist/account/Calibur/Calibur7702Account.d.ts +0 -44
- package/dist/account/Calibur/Calibur7702Account.d.ts.map +0 -1
- package/dist/account/Calibur/types.d.ts +0 -62
- package/dist/account/Calibur/types.d.ts.map +0 -1
- package/dist/account/Safe/MerkleTree.d.ts +0 -3
- package/dist/account/Safe/MerkleTree.d.ts.map +0 -1
- package/dist/account/Safe/SafeAccount.d.ts +0 -251
- package/dist/account/Safe/SafeAccount.d.ts.map +0 -1
- package/dist/account/Safe/SafeAccountV0_2_0.d.ts +0 -79
- package/dist/account/Safe/SafeAccountV0_2_0.d.ts.map +0 -1
- package/dist/account/Safe/SafeAccountV0_3_0.d.ts +0 -64
- package/dist/account/Safe/SafeAccountV0_3_0.d.ts.map +0 -1
- package/dist/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts +0 -54
- package/dist/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts.map +0 -1
- package/dist/account/Safe/SafeMultiChainSigAccount.d.ts +0 -87
- package/dist/account/Safe/SafeMultiChainSigAccount.d.ts.map +0 -1
- package/dist/account/Safe/modules/AllowanceModule.d.ts +0 -38
- package/dist/account/Safe/modules/AllowanceModule.d.ts.map +0 -1
- package/dist/account/Safe/modules/SafeModule.d.ts +0 -10
- package/dist/account/Safe/modules/SafeModule.d.ts.map +0 -1
- package/dist/account/Safe/modules/SocialRecoveryModule.d.ts +0 -72
- package/dist/account/Safe/modules/SocialRecoveryModule.d.ts.map +0 -1
- package/dist/account/Safe/multisend.d.ts +0 -4
- package/dist/account/Safe/multisend.d.ts.map +0 -1
- package/dist/account/Safe/safeMessage.d.ts +0 -23
- package/dist/account/Safe/safeMessage.d.ts.map +0 -1
- package/dist/account/Safe/types.d.ts +0 -159
- package/dist/account/Safe/types.d.ts.map +0 -1
- package/dist/account/SendUseroperationResponse.d.ts +0 -11
- package/dist/account/SendUseroperationResponse.d.ts.map +0 -1
- package/dist/account/SmartAccount.d.ts +0 -10
- package/dist/account/SmartAccount.d.ts.map +0 -1
- package/dist/account/simple/Simple7702Account.d.ts +0 -86
- package/dist/account/simple/Simple7702Account.d.ts.map +0 -1
- package/dist/account/simple/Simple7702AccountV09.d.ts +0 -18
- package/dist/account/simple/Simple7702AccountV09.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -43
- package/dist/constants.d.ts.map +0 -1
- package/dist/errors.d.ts +0 -25
- package/dist/errors.d.ts.map +0 -1
- package/dist/factory/SafeAccountFactory.d.ts +0 -6
- package/dist/factory/SafeAccountFactory.d.ts.map +0 -1
- package/dist/factory/SmartAccountFactory.d.ts +0 -9
- package/dist/factory/SmartAccountFactory.d.ts.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/dist/index.m.js +0 -1
- package/dist/index.modern.mjs +0 -1
- package/dist/index.umd.js +0 -1
- package/dist/paymaster/AllowAllPaymaster.d.ts +0 -9
- package/dist/paymaster/AllowAllPaymaster.d.ts.map +0 -1
- package/dist/paymaster/CandidePaymaster.d.ts +0 -39
- package/dist/paymaster/CandidePaymaster.d.ts.map +0 -1
- package/dist/paymaster/Paymaster.d.ts +0 -3
- package/dist/paymaster/Paymaster.d.ts.map +0 -1
- package/dist/paymaster/WorldIdPermissionlessPaymaster.d.ts +0 -16
- package/dist/paymaster/WorldIdPermissionlessPaymaster.d.ts.map +0 -1
- package/dist/paymaster/types.d.ts +0 -24
- package/dist/paymaster/types.d.ts.map +0 -1
- package/dist/types.d.ts +0 -219
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -37
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils7702.d.ts +0 -30
- package/dist/utils7702.d.ts.map +0 -1
- package/dist/utilsTenderly.d.ts +0 -75
- package/dist/utilsTenderly.d.ts.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
#### Build & Runtime
|
|
8
|
+
|
|
9
|
+
- **Node.js >= 18 required** — native `fetch` is now used; `isomorphic-unfetch` has been removed as a dependency.
|
|
10
|
+
- **Build system switched from microbundle to tsdown** — dist output paths have changed:
|
|
11
|
+
- `dist/index.js` → `dist/index.cjs`
|
|
12
|
+
- `dist/index.m.js` → `dist/index.mjs`
|
|
13
|
+
- `dist/index.umd.js` → `dist/index.iife.js`
|
|
14
|
+
- `dist/index.d.ts` → `dist/index.d.cts`
|
|
15
|
+
- Proper `exports` map added to `package.json` for ESM/CJS resolution.
|
|
16
|
+
|
|
17
|
+
#### API Changes
|
|
18
|
+
|
|
19
|
+
- **`signUserOperation` now only accepts a private key.** Use the new `signUserOperationWithSigner` method for external/custom signers.
|
|
20
|
+
- **`createPaymasterUserOperation` removed.** Use `CandidePaymaster` methods directly.
|
|
21
|
+
- **CandidePaymaster migrated to `pm_getPaymasterData` RPC** — paymaster types have been unified and restructured.
|
|
22
|
+
- **`PaymasterInitValues` renamed to `ParallelPaymasterInitValues`.**
|
|
23
|
+
|
|
24
|
+
#### Renames
|
|
25
|
+
|
|
26
|
+
| Before | After |
|
|
27
|
+
|--------|-------|
|
|
28
|
+
| `ExperimentalSafeMultiChainSigAccount` | `SafeMultiChainSigAccountV1` |
|
|
29
|
+
| `ExperimentalAllowAllPaymaster` | `ExperimentalAllowAllParallelPaymaster` |
|
|
30
|
+
| `EIP712_MULTI_SAFE_OPERATIONS_TYPE` | `EIP712_MULTI_CHAIN_OPERATIONS_TYPE` |
|
|
31
|
+
| `listKeys` (Calibur) | `getKeys` |
|
|
32
|
+
|
|
33
|
+
#### TypeScript Export Changes
|
|
34
|
+
|
|
35
|
+
Several interfaces and types are now exported as `export type` instead of `export` for `isolatedModules` compatibility. This is only breaking if you re-export them with `export { X } from "abstractionkit"` — change to `export type { X }`:
|
|
36
|
+
|
|
37
|
+
- `RecoveryRequest`, `RecoverySignaturePair`, `RecoveryRequestTypedDataDomain`, `RecoveryRequestTypedMessageValue`
|
|
38
|
+
- `Allowance`
|
|
39
|
+
- `DepositInfo`
|
|
40
|
+
- `Authorization7702Hex`, `Authorization7702`
|
|
41
|
+
- `CandidePaymasterContext`, `PrependTokenPaymasterApproveAccount`
|
|
42
|
+
- `UserOperationV6`, `UserOperationV7`, `UserOperationV8`, `AbiInputValue`, `JsonRpcParam`, `JsonRpcResponse`, `MetaTransaction`, `StateOverrideSet`, etc.
|
|
43
|
+
- `SafeMessageTypedDataDomain`, `SafeMessageTypedMessageValue`
|
|
44
|
+
- `SafeUserOperationTypedDataDomain`, `WebauthnPublicKey`, `WebauthnSignatureData`, `SignerSignaturePair`, `Signer`, etc.
|
|
45
|
+
|
|
46
|
+
The wildcard re-export `export * from "./account/Safe/safeMessage"` has been replaced with explicit named exports.
|
|
47
|
+
|
|
48
|
+
### New Features
|
|
49
|
+
|
|
50
|
+
#### EIP-7702 Support
|
|
51
|
+
|
|
52
|
+
- **`Simple7702Account`** — EIP-7702 account for EntryPoint v0.8.
|
|
53
|
+
- **`Simple7702AccountV09`** — EIP-7702 account for EntryPoint v0.9, with parallel paymaster support.
|
|
54
|
+
- **`Calibur7702Account`** — full-featured EIP-7702 account with WebAuthn/passkey support, key management, delegation auto-checking, and delegation revocation.
|
|
55
|
+
- **`getDelegatedAddress`** utility for checking EIP-7702 delegation status.
|
|
56
|
+
- **EIP-7702 delegation helpers** on `BaseSimple7702Account` (create, sign, and revoke delegation authorizations).
|
|
57
|
+
- **Tenderly simulation support** for EntryPoint v0.9.
|
|
58
|
+
|
|
59
|
+
#### Safe Accounts
|
|
60
|
+
|
|
61
|
+
- **`SafeAccountV1_5_0_M_0_3_0`** — Safe contract v1.5.0 support with EIP-7951 and Daimo P256 verifier for WebAuthn.
|
|
62
|
+
- **`SafeMultiChainSigAccountV1`** — multi-chain signature account (audited, promoted from experimental).
|
|
63
|
+
- `createChangeThresholdMetaTransaction`, `createApproveHashMetaTransaction`, and `getThreshold` methods.
|
|
64
|
+
- Auto-prepend `approve(0)` for ERC-20 tokens that require allowance reset before setting a new approval.
|
|
65
|
+
|
|
66
|
+
#### EntryPoint v0.9
|
|
67
|
+
|
|
68
|
+
- `UserOperationV9` type added.
|
|
69
|
+
- Version-entrypoint compatibility guard — mismatched UserOperation versions are now caught early.
|
|
70
|
+
- Entrypoint version is now resolved from the account instance.
|
|
71
|
+
|
|
72
|
+
#### Paymaster
|
|
73
|
+
|
|
74
|
+
- **`CandidePaymaster` now supports EntryPoint v0.9 and parallel signing flows.**
|
|
75
|
+
- **`ExperimentalAllowAllParallelPaymaster`** for parallel paymaster data flows.
|
|
76
|
+
- **Signing phases** added to the context object, with support in paymaster flows.
|
|
77
|
+
- Parallel paymaster support for `Simple7702AccountV09`.
|
|
78
|
+
|
|
79
|
+
#### Utilities
|
|
80
|
+
|
|
81
|
+
- `MerkleTree` helper functions for multi-chain operations.
|
|
82
|
+
- EIP-2098 compact signature support in `parseRawSignature`.
|
|
83
|
+
- `EIP712_SAFE_OPERATION_PRIMARY_TYPE` and `EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE` constants.
|
|
84
|
+
- Entrypoint address constants: `ENTRYPOINT_V6`, `ENTRYPOINT_V7`, `ENTRYPOINT_V8`, `ENTRYPOINT_V9`.
|
|
85
|
+
- `CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS` and `CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS` constants.
|
|
86
|
+
- Legacy `ALLOWANCE_MODULE_V0_1_0_ADDRESS` constant for migration.
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
- Fix object mutation via aliasing in `SafeAccountV1_5_0_M_0_3_0` and `CandidePaymaster`.
|
|
91
|
+
- Fix object mutation, infinite recursion, and missing module address in multi-chain leaf hashes.
|
|
92
|
+
- Fix BigInt gas scaling, merkle proof forwarding, entrypoint dispatch, and missing override fields.
|
|
93
|
+
- Fix `CHAIN_ID` BigInt crash.
|
|
94
|
+
- Fix gas overrides calculations.
|
|
95
|
+
- Fix `formatSignaturesToUseroperationsSignatures` overrides and single-op case handling.
|
|
96
|
+
- Fix `paymasterAndData` packing and signing when `PAYMASTER_SIG_MAGIC` is appended (v0.9).
|
|
97
|
+
- Fix fractional percentage multipliers in `applyMultiplier`.
|
|
98
|
+
- Fix normalize `paymasterMetadata` hex fields in `fetchSupportedERC20TokensAndPaymasterMetadata`.
|
|
99
|
+
- Fix multi-chain sig account singleton forwarding, hash overrides, and type safety.
|
|
100
|
+
- Fix constructor forwarding, timeout tracking, and unhandled promises.
|
|
101
|
+
- Fix reverse proof order to match onchain verification order.
|
|
102
|
+
- Fix WebAuthn passkeys v0.2.1 compatibility for custom contract addresses.
|
|
103
|
+
- Fix token approval prepended before existing calls in SafeAccount multisend.
|
|
104
|
+
- Fix `IAccountExecute.executeUserOp` callData rewriting for Tenderly simulation.
|
|
105
|
+
- Fix multi-chain defaults in `formatSignaturesToUseroperationsSignatures`.
|
|
106
|
+
|
|
107
|
+
### Internal
|
|
108
|
+
|
|
109
|
+
- Build system migrated from microbundle to tsdown.
|
|
110
|
+
- Removed `isomorphic-unfetch` and `rimraf` dependencies.
|
|
111
|
+
- Added CI workflow (`.github/workflows/ci.yml`) using yarn.
|
|
112
|
+
- Added `SECURITY.md` with vulnerability reporting policy.
|
|
113
|
+
- Added `prepare` script for GitHub-based installs.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|