Skip to content

5.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Sep 03:13
966bd96

@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)
  • Add native token periodic transfer to expected default permissions
  • feat: add native token periodic permission type and handler
  • Persisting Granted Permissions with MM Profile Sync (#84)

Changed

  • Rename RPC Urls to have consistent prefixes (#168)
  • Remove unused GATOR_PERMISSIONS_PROVIDER_SNAP_ID and update initialPermissions to disable snaps
  • Disable logging in production (#161)
  • getRegisteredPermissionOffers array optimization (#159)
  • Process permission requests sequentially (#150)
  • Use null where appropriate (#143)
  • refactor(core): validate chain support early in permission request (#145)
  • Change generic errors with snap errors (#135)
  • Update shasum, in preparation for merge to main (#137)
  • Chore/integrate new permission types (#134)
  • Update input validation (#110)
  • Downgrade @types/react from 18.3.23 to 18.2.4
  • Reduce usage of @metamask/delegation-toolkit and viem (#107)
  • Bump the npm_and_yarn group across 1 directory with 3 updates (#78)
  • Improve profile sync dev experience (#86)
  • Update ARCHITECTURE.md to reflect current state. Update manifest files.

Removed

  • Remove development constants from production artifacts (#148)
  • Remove unused code and images (#111)
  • Remove 'viem' dependency from package.json and related files (#154)

Fixed

  • fix: TokenIcon runtime type enforcement (#155)
  • feat: Incorrect token currency shown (#152)
  • Prevent prototype pollution (#147)
  • fix(gator-permissions-snap): fix return type for account addresses (#141)
  • Fix typos (#98)
  • Fix linting: - add eslint packages to packages - fix linting errors in gator permissions snap
  • Fix issue where accountMeta was not being included on the response object correctly. (#95)