Skip to content

v1.0.0-alpha.10

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Sep 12:31
· 4031 commits to master since this release
14f11b4

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