github PolymeshAssociation/polymesh-sdk v1.0.0-alpha.10

latest releases: v24.3.0-alpha.3, v24.3.0-alpha.2, v24.3.0-alpha.1...
pre-release3 years ago

1.0.0-alpha.10 (2020-09-17)

Features

  • add better support for accounts (6f31bb8)

BREAKING CHANGES

    • 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

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.