v1.0.0-alpha.10
Pre-release
Pre-release
github-actions
released this
17 Sep 12:31
·
4031 commits
to master
since this release
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 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