github PolymeshAssociation/polymesh-sdk v9.0.0

latest releases: v25.0.1-alpha.1, v23.3.0, v24.7.1...
3 years ago

9.0.0 (2021-09-10)

Bug Fixes

  • ๐Ÿ› change TargetIdentity to use ExternalAgent (8d7b4f7)
  • ๐Ÿ› determine portfolio existence using storage size (90973f6)
  • ๐Ÿ› improve auth check for leaveIdentity (95892e0)
  • ๐Ÿ› pad tickers in Scope claims (fc770c8)
  • ๐Ÿ› require just signer permissions to waive agent perms (e16f547)
  • ๐Ÿ› use stringToTicker in authorizationToAuthorizationData (dbfefce)
  • account: improve authorization checks when leaving identity (306797d)
  • documents: format documents correctly when adding them to a token (f8931ba)

Features

  • ๐ŸŽธ rename grantedAt (a1bc8c3)
  • abdicate method (adf6071)
  • addedAt method (cefacba)
  • agentOf method (141777f)
  • create namespace for token permissions (2f5b024)
  • setCustomPermissions procedure implementation (b42080c)
  • setPermissionGroup method (aa7c8ec)
  • waivePermissions method (0dc79ad)
  • account: move all CurrentAccount methods to Account (43b703b)
  • identity: move all CurrentIdentity functionality to Identity (7f73017)
  • setPermissionGroup procedure (4449f03)

Reverts

  • Revert "Revert "Merge branch 'alpha' into master"" (e2c15f4)

BREAKING CHANGES

  • ๐Ÿงจ rename tokenPermissions.grantedAt to enabledAt
    • move identity.hasTokenPermissions to identity.tokenPermissions.hasPermissions
  • move identity.getTokenPermissions to identity.tokenPermissions.get
  • move identity.waivePermissions to identity.tokenPermissions.waive
  • change the type of AgentWithGroup.agent from Agent to Identity. This affects the return
    type of securityToken.permissions.getAgents
  • remove the Agent entity:
    • move agent.setPermissionGroup to identity.tokenPermissions.setGroup. It now also
      receives the token as a parameter when not passing an existing group. It now throws
      an error if the target is not already an agent
    • move agent.getPermissionGroup to identity.tokenPermissions.getGroup. It now also
      receives the token as a parameter
    • move agent.addedAt to identity.tokenPermissions.grantedAt. It now also receives
      the token as a parameter
  • documents: Make contentHash in the TokenDocument interface optional. This affects the
    output of token.documents.get. An error is thrown when adding documents to a token if the content
    hash is not a hex string with a 0x prefix
  • account: The CurrentAccount entity has been removed, and all of its methods moved to
    Account. The error thrown by account.leaveIdentity when there is no Identity associated to the
    Account is now different
  • identity: Remove the CurrentIdentity entity and move all of its functionality to the
    Identity entity

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.