Skip to content

Releases: MetaMask/smart-accounts-kit

27.0.0

23 Apr 20:00
574010d

Choose a tag to compare

@metamask/7715-permission-types 0.6.0

Added

  • New erc-7715 simple allowance types, native-token-allowance and erc20-token-allowance (#214)

26.0.0

23 Apr 04:37
00904a3

Choose a tag to compare

@metamask/smart-accounts-kit 1.3.0

Added

  • feat: add redeemer rule (#212)
  • Optional redeemer on PermissionRequestParameter maps to a redeemer execution rule; granted permission responses checksum-normalize redeemer addresses in rules.

25.0.0

15 Apr 22:07
b7cd7b1

Choose a tag to compare

@metamask/delegation-core 1.1.0

Added

  • Caveat terms decoding utils (#191)

@metamask/delegation-deployments 1.2.0

Added

  • Add chain deployment for Katana mainnet and Katana Bokuto (#203)

@metamask/smart-accounts-kit 1.2.0

Added

  • decodeCaveat util function (#191)
  • Chain deployment for Katana mainnet and Katana Bokuto (#203)
  • Anonymous usage statistics to help improve the SDK (#185)
    • Opt out by setting environment variables CI or DO_NOT_TRACK, or navigator.doNotTrack or window.doNotTrack to either '1', 'true', or 'yes'

24.0.0

09 Apr 00:20
0c5c1c7

Choose a tag to compare

@metamask/delegation-deployments 1.1.0

Added

  • Add chain deployment for Citrea mainnet (#180)
  • Add chain deployment for Mantle mainnet and Mantle Sepolia (#197)

@metamask/smart-accounts-kit 1.1.0

Added

  • A nonceKeyManager can now be specified when calling toMetaMaskSmartAccount (#199)

Fixed

  • Nonce is always generated with nonce key 0n, ignoring any specified nonce key value (#199)

23.0.0

27 Mar 08:18
a51c8a9

Choose a tag to compare

@metamask/delegation-abis 1.0.0

Changed

  • Bumped from 0.12.0-beta.0 to 1.0.0 (#194)

@metamask/delegation-core 1.0.0

Changed

  • Bumped from 0.4.0 to 1.0.0 (#194)

@metamask/delegation-deployments 1.0.0

Changed

  • Bumped from 0.17.0 to 1.0.0 (#194)

@metamask/smart-accounts-kit 1.0.0

Changed

  • Migrate from webauthn-p256 to 0x p256 module (#193)
  • signer param is now optional in toMetaMaskSmartAccount (#178)

22.0.0

23 Mar 20:21
abe1266

Choose a tag to compare

@metamask/delegation-core 0.4.0

Added

  • Add terms builders for all enforcers implemented in @metamask/smart-accounts-kit (#139)
    • createAllowedMethodsTerms
    • createAllowedTargetsTerms
    • createArgsEqualityCheckTerms
    • createBlockNumberTerms
    • createDeployedTerms
    • createERC1155BalanceChangeTerms
    • createERC20BalanceChangeTerms
    • createERC20TransferAmountTerms
    • createERC721BalanceChangeTerms
    • createERC721TransferTerms
    • createExactCalldataBatchTerms
    • createExactExecutionTerms
    • createExactExecutionBatchTerms
    • createIdTerms
    • createLimitedCallsTerms
    • createMultiTokenPeriodTerms
    • createNativeBalanceChangeTerms
    • createNativeTokenPaymentTerms
    • createNativeTokenTransferAmountTerms
    • createOwnershipTransferTerms
    • createRedeemerTerms
    • createSpecificActionERC20TransferBatchTerms
  • New utils encodeDelegation and decodeDelegation (#153)

Changed

  • Default delegation.salt and caveat.args should be 0x00 (#138)

Fixed

  • Resolve yarn peer dependency warnings (#123)

@metamask/delegation-deployments 0.17.0

Added

  • Tempo mainnet and Tempo Moderato testnet (#177)
  • Celo and Ronin mainnet and testnets (#173)

@metamask/smart-accounts-kit 0.4.0-beta.2

Added

  • Add encodeDelegation and decodeDelegation utilities for encoding and decoding single delegations. (#153)
  • Add DelegationManager validation for EIP-7710 actions (#150) (#150)
  • Support for Tempo Mainnet and Tempo Moderato Testnet (#177)

Changed

  • Introduce PermissionContext to represent a delegation chain (ABI-encoded Hex or decoded Delegation[]). (#140)
    • Breaking: Replace usages of raw Hex or Delegation[] with PermissionContext, and rename permissionsContext to permissionContext (note the singular "permission") where applicable:
      • SendTransactionWithDelegation: permissionsContext: HexpermissionContext: PermissionContext
      • SendUserOperationWithDelegation: within calls: DelegatedCall, permissionsContext: HexpermissionContext: PermissionContext
      • redeemDelegations: parameter Delegation[]PermissionContext
      • encodeDelegations and decodeDelegations now accept PermissionContext (if the input is already the expected type, the input is returned)
      • encode, execute, and simulate functions for DelegationManager.redeemDelegations from @metamask/smart-accounts-kit/contracts: parameter delegations: Delegation[]delegations: PermissionContext
  • Breaking: ERC-7715 actions now return developer-friendly types: chainId as number, token amounts as bigint. (#172)
  • Breaking: Rename getDelegationHashOffchain to hashDelegation for improved clarity. (#162)
  • Breaking: EIP-7715 permission requests nest isAdjustmentAllowed inside each permission object per specification. (#159)
  • Breaking: sendUserOperationWithDelegation now accepts dependencies instead of deprecated accountMetadata. (#157)
  • Breaking: Validate that the provided DelegationManager address matches the known contract address for the chain in EIP-7710 actions. (#156)
  • Breaking: Default delegation.salt and caveat.args to 0x00 instead of invalid 0x. (#138)
  • Allow scope type to be specified either as ScopeType enum, or string literal. (#133)
  • Allow caveat type to be specified either as CaveatType enum, or string literal. (#179)

Removed

  • Breaking: encodePermissionContexts and decodePermissionContexts utilities; use encodeDelegations and decodeDelegations directly. (#148)
  • Breaking: redeemDelegations helper and Redemption type; use redeemDelegations encoding / execution utilities directly. (#160)

Fixed

  • Fix delegation storage to throw a proper Error instance so stack traces are correct across environments. (#171)
  • Fix signDelegation to correctly await the signer and return the signed signature. (#168)

21.0.0

26 Jan 23:05
1c850d0

Choose a tag to compare

@metamask/delegation-abis 0.12.0-beta.0

Fixed

  • Improve @metamask/delegation-abis tree-shakability (#131)

@metamask/smart-accounts-kit 0.4.0-beta.1

Added

  • Exports 2 new types: PermissionRequestParameter and Erc7715Client (#134)

Fixed

  • Improve @metamask/delegation-abis tree-shakability (#131)

20.0.0

15 Jan 07:06
5eb280e

Choose a tag to compare

@metamask/smart-accounts-kit 0.4.0-beta.0

Added

  • feat: add discoverability methods (#127)

Fixed

  • Breaking Implement erc-7715 type scheme revisions across packages (#128)
  • Resolve yarn peer dependency warnings (#123)
  • Allow expiry to be omitted when requesting 7715 permissions (#122)

19.0.0

13 Jan 17:04
2692a45

Choose a tag to compare

@metamask/7715-permission-types 0.5.0

Changed

  • Breaking Implement erc-7715 type scheme revisions (#128)

Fixed

  • Resolve yarn peer dependency warnings (#123)

18.0.0

07 Jan 20:15
1c4f8b4

Choose a tag to compare

@metamask/delegation-deployments 0.16.0

Added

  • Add chain deployment for MegaETH mainnet (#124)

Changed

  • Update megaeth testnet chainId (#125)