1.0.0-beta.148 (2020-09-25)
Bug Fixes
- add again includeExpired param in every claim query (53ad5b1)
- add target as optional in getClaimScopes and getCddClaims (8abad64)
- fetch did properly when checknig auth for consuming auth requests (c0b579f)
- get all received auths if type is not passed (8aedbca)
- typo (aad49aa)
Features
- add authorizations namespace to Account entity (6a565e7)
- add better support for accounts (6f31bb8)
- add getTargetingClaims (ff02c73)
- add namespace for claims related functionality (fafdcfb)
- add target in getIssuedClaims method (4bfb9ff)
- invite a secondary key to join a signing key list (a73350e)
- return null when identity doesn't exist (74dccff)
- skip middleware validations if the middleware is unavailable (96d1283)
- validate if invited account already has an identity (fbc2265)
BREAKING CHANGES
account.getIdentity()
,currentAccount.getIdentity()
and
api.getCurrentIdentity()
now return null if the Identity doesn't exist (used to throw an error)-
api.getAccountBalance()
arguments changed from{ accountId: string }
to{ account: string | Account }
api.getTickerReservation()
arguments changed from{ did: string | Identity }
to{ owner: string | Identity }
api.getSecurityToken()
arguments changed from{ did: string | Identity }
to{ owner: string | Identity }
api.getIdentity()
is no longer async and only returns an Identity object for a passed DID. To retrieve the current Identity, an asyncapi.getCurrentIdentity
was introducedapi.getTreasuryAccount()
now returns anAccount
objectapi.getTransactionHistory()
moved to theAccount
class, no longer receives an address as a parameter (the address is now obtained from the Account)api.getMySigningKeys()
moved to theCurrentIdentity
class (renamed togetSigningKeys
), now returns an array ofSigningKey
objects ({ signer: Signer; permissions: Permission[] }
)api.removeMySigningKeys()
moved to theCurrentIdentity
class (renamed toremoveSigningKeys
)api.transferPolyX()
args.to
changed fromstring
tostring | Account
api.registerIdentity()
args.targetAccount
changed fromstring
tostring | Account
targetDid: string
changed totarget: Signer
in theAuthorizationRequest
class,issuerDid: string
changed toissuer: Identity
proposal.identityHasVoted()
arguments changed from{ did: string | Identity }
to{ identity: string | Identity }
identity: Identity
changed toaccount: Account
in theProposalVote
interface (this affects the results ofproposal.getVotes()
)securityToken.transferOwnership
args.did: string
changed toargs.target: string | Identity
-
- api.addClaims -> api.claims.addClaims
- api.editClaims -> api.claims.editClaims
- api.getIdentitiesWithClaims -> api.claims.getIdentitiesWithClaims
- api.getIssuedClaims -> api.claims.getIssuedClaims({target})
- api.revokeClaims -> api.claims.revokeClaims
- identity.getClaimScopes -> api.claims.getClaimScopes({target})
- identity.getCddClaims -> api.claims.getCddClaims({target})