@metamask/delegation-core 2.2.0 → 2.2.1
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 +8 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -243,7 +243,7 @@ type ApprovalRevocationTerms = {
|
|
|
243
243
|
erc20Approve: boolean;
|
|
244
244
|
erc721Approve: boolean;
|
|
245
245
|
erc721SetApprovalForAll: boolean;
|
|
246
|
-
|
|
246
|
+
permit2Approve: boolean;
|
|
247
247
|
permit2Lockdown: boolean;
|
|
248
248
|
permit2InvalidateNonces: boolean;
|
|
249
249
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ type ApprovalRevocationTerms = {
|
|
|
243
243
|
erc20Approve: boolean;
|
|
244
244
|
erc721Approve: boolean;
|
|
245
245
|
erc721SetApprovalForAll: boolean;
|
|
246
|
-
|
|
246
|
+
permit2Approve: boolean;
|
|
247
247
|
permit2Lockdown: boolean;
|
|
248
248
|
permit2InvalidateNonces: boolean;
|
|
249
249
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -995,7 +995,7 @@ function termsToMask(terms) {
|
|
|
995
995
|
if (terms.erc721SetApprovalForAll) {
|
|
996
996
|
mask |= BIT_SET_APPROVAL_FOR_ALL_REVOKE;
|
|
997
997
|
}
|
|
998
|
-
if (terms.
|
|
998
|
+
if (terms.permit2Approve) {
|
|
999
999
|
mask |= BIT_PERMIT2_APPROVE_ZERO;
|
|
1000
1000
|
}
|
|
1001
1001
|
if (terms.permit2Lockdown) {
|
|
@@ -1022,7 +1022,7 @@ function maskToTerms(mask) {
|
|
|
1022
1022
|
erc20Approve: (mask & BIT_ERC20_APPROVE_ZERO) !== 0,
|
|
1023
1023
|
erc721Approve: (mask & BIT_ERC721_PER_TOKEN_CLEAR) !== 0,
|
|
1024
1024
|
erc721SetApprovalForAll: (mask & BIT_SET_APPROVAL_FOR_ALL_REVOKE) !== 0,
|
|
1025
|
-
|
|
1025
|
+
permit2Approve: (mask & BIT_PERMIT2_APPROVE_ZERO) !== 0,
|
|
1026
1026
|
permit2Lockdown: (mask & BIT_PERMIT2_LOCKDOWN) !== 0,
|
|
1027
1027
|
permit2InvalidateNonces: (mask & BIT_PERMIT2_INVALIDATE_NONCES) !== 0
|
|
1028
1028
|
};
|