Skip to content

Commit 56a4a80

Browse files
committed
feat: deprecate erc20-token-revocation in favor of token-approval-revocation
1 parent 330589e commit 56a4a80

5 files changed

Lines changed: 19 additions & 1 deletion

File tree

lib/delegatable-framework

packages/7715-permission-types/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- New permission type `token-approval-revocation` ([#232](https://github.com/MetaMask/smart-accounts-kit/pull/232))
1313

14+
### Deprecated
15+
16+
- Deprecated `erc20-token-revocation` in favor of `token-approval-revocation`.
17+
1418
## [0.6.0]
1519

1620
### Added

packages/7715-permission-types/src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,13 @@ export type Erc20TokenAllowancePermission = BasePermission & {
171171

172172
/**
173173
* A permission to revoke an ERC20 token allowance.
174+
*
175+
* @deprecated Use {@link TokenApprovalRevocationPermission} instead.
174176
*/
175177
export type Erc20TokenRevocationPermission = BasePermission & {
178+
/**
179+
* @deprecated Use `token-approval-revocation` instead.
180+
*/
176181
type: 'erc20-token-revocation';
177182
data: MetaMaskBasePermissionData;
178183
};

packages/smart-accounts-kit/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- ERC-7715 `token-approval-revocation` permission type ([#232](https://github.com/MetaMask/smart-accounts-kit/pull/232))
1313
- `CaveatBuilder` for `ApprovalRevocationEnforcer`, deployment address added to `SmartAccountsEnvironment` ([#226](https://github.com/metamask/smart-accounts-kit/pull/226))
1414

15+
### Deprecated
16+
17+
- Deprecated `erc20-token-revocation` in favor of `token-approval-revocation`.
18+
1519
## [1.5.0]
1620

1721
### Added

packages/smart-accounts-kit/src/actions/erc7715Types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,13 @@ export type Erc20TokenAllowancePermission = BasePermission & {
113113

114114
/**
115115
* ERC-20 token revocation permission.
116+
*
117+
* @deprecated Use {@link TokenApprovalRevocationPermission} instead.
116118
*/
117119
export type Erc20TokenRevocationPermission = BasePermission & {
120+
/**
121+
* @deprecated Use `token-approval-revocation` instead.
122+
*/
118123
type: 'erc20-token-revocation';
119124
data: {
120125
justification?: string;

0 commit comments

Comments
 (0)