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
toenabledAt
-
- move
identity.hasTokenPermissions
toidentity.tokenPermissions.hasPermissions
- move
- move
identity.getTokenPermissions
toidentity.tokenPermissions.get
- move
identity.waivePermissions
toidentity.tokenPermissions.waive
- change the type of
AgentWithGroup.agent
fromAgent
toIdentity
. This affects the return
type ofsecurityToken.permissions.getAgents
- remove the
Agent
entity:- move
agent.setPermissionGroup
toidentity.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
toidentity.tokenPermissions.getGroup
. It now also
receives the token as a parameter - move
agent.addedAt
toidentity.tokenPermissions.grantedAt
. It now also receives
the token as a parameter
- move
- documents: Make
contentHash
in theTokenDocument
interface optional. This affects the
output oftoken.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 byaccount.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