You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/smart-accounts-kit/CHANGELOG.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Add `encodeDelegation` and `decodeDelegation` utilities for encoding and decoding single delegations. ([#153](https://github.com/MetaMask/smart-accounts-kit/pull/153))
13
+
10
14
### Changed
11
15
12
16
- Introduce `PermissionContext` to represent a delegation chain (ABI-encoded `Hex` or decoded `Delegation[]`). ([#140](https://github.com/MetaMask/smart-accounts-kit/pull/140))
@@ -16,10 +20,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-`encodeDelegations` and `decodeDelegations` now accept `PermissionContext` (if the input is already the expected type, the input is returned)
18
22
-`encode`, `execute`, and `simulate` functions for `DelegationManager.redeemDelegations` from `@metamask/smart-accounts-kit/contracts`: parameter `delegations: Delegation[]` → `delegations: PermissionContext`
23
+
-**Breaking**: ERC-7715 actions now return developer-friendly types: `chainId` as number, token amounts as `bigint`. ([#172](https://github.com/MetaMask/smart-accounts-kit/pull/172))
24
+
-**Breaking**: Rename `getDelegationHashOffchain` to `hashDelegation` for improved clarity. ([#162](https://github.com/MetaMask/smart-accounts-kit/pull/162))
25
+
-**Breaking**: EIP-7715 permission requests nest `isAdjustmentAllowed` inside each permission object per specification. ([#159](https://github.com/MetaMask/smart-accounts-kit/pull/159))
26
+
-**Breaking**: `sendUserOperationWithDelegation` now accepts `dependencies` instead of deprecated `accountMetadata`. ([#157](https://github.com/MetaMask/smart-accounts-kit/pull/157))
27
+
-**Breaking**: Validate that the provided `DelegationManager` address matches the known contract address for the chain in EIP-7710 actions. ([#156](https://github.com/MetaMask/smart-accounts-kit/pull/156))
28
+
-**Breaking**: Default `delegation.salt` and `caveat.args` to `0x00` instead of invalid `0x`. ([#138](https://github.com/MetaMask/smart-accounts-kit/pull/138))
29
+
- Allow scope type to be specified either as `ScopeType` enum, or string literal. ([#133](https://github.com/MetaMask/smart-accounts-kit/pull/133))
30
+
- Allow caveat type to be specified either as `CaveatType` enum, or string literal. ([#179](https://github.com/MetaMask/smart-accounts-kit/pull/179))
31
+
32
+
### Removed
33
+
34
+
-**Breaking**: `encodePermissionContexts` and `decodePermissionContexts` utilities; use `encodeDelegations` and `decodeDelegations` directly. ([#148](https://github.com/MetaMask/smart-accounts-kit/pull/148))
35
+
-**Breaking**: `redeemDelegations` helper and `Redemption` type; use `redeemDelegations` encoding / execution utilities directly. ([#160](https://github.com/MetaMask/smart-accounts-kit/pull/160))
19
36
20
37
### Fixed
21
38
22
-
- Allow scope type to be specified either as `ScopeType` enum, or string literal ([#133](https://github.com/MetaMask/smart-accounts-kit/pull/133))
39
+
- Fix delegation storage to throw a proper `Error` instance so stack traces are correct across environments. ([#171](https://github.com/MetaMask/smart-accounts-kit/pull/171))
40
+
- Fix `signDelegation` to correctly await the signer and return the signed signature. ([#168](https://github.com/MetaMask/smart-accounts-kit/pull/168))
0 commit comments