github PolymeshAssociation/polymesh-sdk v1.0.0-beta.148

latest releases: v24.4.0-alpha.4, v24.4.0-alpha.3, v24.4.0-alpha.2...
pre-release3 years ago

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 async api.getCurrentIdentity was introduced
  • api.getTreasuryAccount() now returns an Account object
  • api.getTransactionHistory() moved to the Account class, no longer receives an address as a parameter (the address is now obtained from the Account)
  • api.getMySigningKeys() moved to the CurrentIdentity class (renamed to getSigningKeys), now returns an array of SigningKey objects ({ signer: Signer; permissions: Permission[] })
  • api.removeMySigningKeys() moved to the CurrentIdentity class (renamed to removeSigningKeys)
  • api.transferPolyX() args.to changed from string to string | Account
  • api.registerIdentity() args.targetAccount changed from string to string | Account
  • targetDid: string changed to target: Signer in the AuthorizationRequest class, issuerDid: string changed to issuer: Identity
  • proposal.identityHasVoted() arguments changed from { did: string | Identity } to { identity: string | Identity }
  • identity: Identity changed to account: Account in the ProposalVote interface (this affects the results of proposal.getVotes())
  • securityToken.transferOwnership args.did: string changed to args.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})

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.