Skip to content

Releases: MetaMask/snap-7715-permissions

13.0.0

08 Jan 04:49
a6675bf

Choose a tag to compare

@metamask/gator-permissions-snap 0.9.0

Changed

  • Update introduction content to ensure accuracy, and better communicate permission types (#245)
  • Convert introduction images to webp (#244)

12.0.0

07 Jan 12:49
ee5fb4a

Choose a tag to compare

@metamask/gator-permissions-snap 0.8.0

Added

  • An introduction shown to user explaining each permission type (#238)
  • Request now times out when user doesn't respond (#237)
  • New erc-20-token-revocation permission type (#234)

Changed

  • Expiry is now optional (#240)
  • Recipient field is now shown in permission dialog (#239)
  • Datetime picker used in permission dialog (#235)
  • More meaningful error messages (#232)
  • Initial amount is now allowed (#230)
  • Default streaming period is now Monthly (#229)

Fixed

  • Resolve 0 balance when token data is returned, but not the requested token (#241)

@metamask/permissions-kernel-snap 0.6.0

Changed

  • Expiry is now optional (#240)

11.0.0

12 Nov 11:49
cea1d90

Choose a tag to compare

@metamask/gator-permissions-snap 0.7.0

Fixed

  • Add zero address validation (#226)
  • Fix: throw proper errors (#225)

10.0.0

10 Nov 16:59
b1b1bc0

Choose a tag to compare

@metamask/gator-permissions-snap 0.6.1

Fixed

  • Corrects Accounts API URL, which caused permission requests on Mainnet to fail

9.0.0

06 Nov 05:34
4b33def

Choose a tag to compare

@metamask/gator-permissions-snap 0.6.0

Changed

  • Improves metrics generation, by including more information about the permissions being granted (#218)

8.0.0

05 Nov 08:57
e4a1c70

Choose a tag to compare

@metamask/gator-permissions-snap 0.5.0

Added

  • New RPC permissionsProvider_submitRevocation for marking permission as revoked (#171)
  • Add basic metrics generation via metrics tracking service (#198) and (#216)
  • Check, and if necessary request, upgrade to smart account (#188)

Changed

  • Removes testnet restriction, now supports all chains (#215)
  • Only display "show more" button when justification long enough to be truncated (#213)
  • Improve justification visibility, with improved text color (#212)
  • Improve permission picker layout to be more consistent with Sign Permission confirmation (#202)

Fixed

  • Race condition on debounce events allowing validation to be bypassed (resulting in error) (#210)
  • Fixed: handle dialog closure case in confirmation flow (#195)

@metamask/permissions-kernel-snap 0.5.0

Fixed

  • Throw appropriate SnapError when an error is thrown by the target of an RPC (#211)

7.0.0

23 Oct 11:51
cc2caf8

Choose a tag to compare

@metamask/gator-permissions-snap 0.4.1

Changed

  • Granted permissions are no longer persisted (GitHub actions configuration change)

6.0.0

22 Oct 22:48
4769911

Choose a tag to compare

@metamask/gator-permissions-snap 0.4.0

Changed

  • Restrict permission requests to supported chains only (currently testnets) (#200)
    Previously removed in (#189)
  • Periodic permissions durations must now be a known increment, e.g., "Hourly", "Weekly", etc. (#190)
  • Permission title and subtitle reworded to be more meaningful (#196)
  • Unnecessary dependency on @metamask/delegation-toolkit removed and @metamask/delegation-core bumped to "stable" release 0.2.0
  • snap.manifest.ts version bumped to 3.0.0

Fixed

  • When isAdjustmentAllowed is false, the justification block is expandable, and price data also updates (#193)
  • Correct error is returned when the user declines the permission request (#191)
  • Expiry values are now correctly validated (#187)

@metamask/permissions-kernel-snap 0.4.0

Changed

  • snap.manifest.ts version bumped to 3.0.0

5.0.0

24 Sep 03:13
966bd96

Choose a tag to compare

@metamask/gator-permissions-snap 0.3.0

Added

  • Add hideSnapBranding flag to preinstalled snap manifest
  • Add chain metadata for supported testnets
  • feat: add lifecycle hooks permission for local development and refactor onInstall handler
  • feat(manifest): add environment-based manifest management (#153)
  • Add retry logic to all clients
  • Add priceApi response validation
  • Add account API client validation and fetch timeout
  • feat(ui): add TokenBalanceField component for displaying token balances (#142)
  • feat(ui): add TokenField component for displaying token info (#136)
  • Allow user to select EOA from which to grant the permission (#125)
  • Add the nonce enforcer as a default caveat for all permissions (#127)
  • Async confirmation (#114)
  • Add new permissionsProvider_getGrantedPermissions RPC (#108)
  • Add erc-20-token-periodic permission type (#106)
  • Allow setting SUPPORTED_CHAINS, and GATSBY_SUPPORTED_CHAINS (for site package). (#105)
  • Add support for token icons (#104)
  • Add valueLTE caveat to erc20 streaming permission (#103)
  • Feat/ephemeral permission offer registry (#101)
  • Add erc20-token-stream permission (#100)
  • Fetch token metadata (#99)
  • Add native-token-periodic permission (#89)
  • Add iconAltText to rule icon data
  • Add close icon for the input fields
  • Add token logo for the input fields
  • feat: add native token periodic permission type and handler
  • Add tests for ruleModalManager and rules
  • Add rules abstraction, somewhat shoehorned into existing baseOrchestrator

Changed

  • Order numerically testnet metadatas
  • Provide metadata when signing delegation (#169)
  • Rename RCP Urls To Be Consistent (#168)
  • Refactor getTokenBalance to return bigint zero using 0n and optimize address comparison
  • When signing the delegation with eth_signTypedData, provide origin and justification in metadata property on EIP-712 payload
  • chore: changed to plural refereces of permissionProvider
  • chore: rename rpc urls to be consistent
  • feat: remove local development hooks and add InstallButton component
  • Disable logging in production (#161)
  • update headers setup for account API and balance formating
  • Better makeValidatedRequestWithRetry typings
  • clear timeout move to finally block
  • account api v2
  • refactor retry http logic into helper function
  • Schema address validation updates, naming updates and creating httpClient utils to merge duplicating code
  • Process permission requests sequentially (#150)
  • try caipAssetType normal and case insesitive lookup as fallback
  • chore: remove 'viem' dependency from package.json and related files (#154)
  • Use null where appropriate (#143)
  • refactor(core): validate chain support early in permission request (#145)
  • Change generic errors with snap errors (#135)
  • switch expiry and startTime types to number since we are expecting a timestamp (#139)
  • Update shasum, in preparation for merge to main (#137)
  • Chore/integrate new permission types (#134)
  • Update architecture doc to reflect updated architecture (#133)
  • Update homepage to remove reference to Smart Contract Account. (#131)
  • Return unbind handler when calling UserEventDispatcher.on() (#132)
  • Update input validation (#110)
  • Refactor: extract common field components into reusable Field component (#122)
  • Better handle date time (#115)
  • Remove add more rules modal, and replace it with a simple toggle (#120)
  • style: update component class definition to include text color
  • style: fix indentation in package.json files and docs
  • build: downgrade @types/react from 18.3.23 to 18.2.4
  • execute handlers sequentially and function rename
  • Make sure events are processes sequentially and that all events are proccessed before granting permission
  • make justification optional and show default message in this case
  • Update linter rule for empty line is js docs and update comments to have an empty line
  • Update message-signing-snap dependency to 1.1.3
  • Reduce usage of @metamask/delegation-toolkit and viem (#107)
  • Update snapshots due to layout changes
  • Bump the npm_and_yarn group across 1 directory with 3 updates (#78)
  • refactor: reduce boilerplate in permission definitions
  • Improve asynchronicity when resolving context for period permissions. Fix various linting issues.
  • Use dropdown + explicit seconds for selecting the period duration
  • Update packages/gator-permissions-snap/src/permissions/nativeTokenPeriodic/caveats.ts
  • Move confirmation wrapper into shared permissionHandlerContent.tsx - title - add more rules button
  • Move ruleManager, permissionHandler, ruleModalManager to core
  • Remove defunct handlers from confirmation
  • Implement handler pattern: - decouple handler out of orchestrator - update naming throughout handlers and orchestrators to be more consistent
  • Remove shared rules, move expiry rule back into native token stream
  • refactor: extract shared expiry rule, remove defunct permissions/types.ts
  • Update tests to match implementation
  • Standardise some naming
  • Enable linting of tsx files in gator-permissions. Auto fix linting problems.
  • Move allSupportedChains itno BaseAccountController as private static member
  • Improve profile sync dev experience (#86)

Removed

  • Remove endowment lifecycle hooks (#164)
  • Remove development constants from production artifacts (#148)
  • Remove unused code and images (#111)

Fixed

  • Fix Polygon Amoy Testnet incorrectly attributed as Metis Sepolia. Rename BNB to BNB Smart Chain.
  • fix: remove conditional iconUrl assignment in getTokenMetadata response
  • fix: sanitize icon URL in token metadata response
  • Missing runtime verification for api responses (#158)
  • fix mock interfearance in tests
  • fix: TokenIcon runtime type enforcement (#155)
  • Missing runtime schema verification for profile sync store/retrieve (#157)
  • Fix misleading debug message (#156)
  • feat: Incorrect token currency shown (#152)
  • Handle Price API errors (#146)
  • fix(gator-permissions-snap): fix return type for account addresses (#141)
  • Validation errors disables grant button (#126)
  • Improve ERC20 token parsing error and fix fetching bug (#124)
  • EOAAccountController should serialize delegation salt as bigint when calling eth_signTypedData_v4 (#116)
  • address potential race condition
  • Fix typos (#98)

@metamask/permissions-kernel-snap 0.3.0

Added

  • Add hideSnapBranding flag to preinstalled snap manifest
  • feat(manifest): add environment-based manifest management (#153)
  • Validate kernel rpc request (#160)
  • Feat/ephemeral permission offer registry (#101)
  • Add erc20-token-stream permission (#100)
  • Add native-token-periodic permission ([#89](https://github.com/MetaMask/snap-7715-...
Read more

4.0.0

18 Apr 16:25
69b9cf3

Choose a tag to compare

@metamask/gator-permissions-snap 0.2.1

Fixed

  • Switch the tg link out to correct link (#80)