10.0.0 (2021-09-21)
Bug Fixes
- 🐛 consider exceptions when converting TxTag to ProtocolOp (1427111)
- 🐛 fetch CA details properly (fcdf2eb)
- 🐛 update polymesh types to latest 3.3.0 (8da6b90)
- tests (eccfdfc)
Features
- 🎸 [WIP] upgrade types (56fe378)
- 🎸 allow disabling IU when creating a token (3c8be1b)
- 🎸 allow disabling IU when creating a token (02ccc03)
- 🎸 feedback (f61c482)
- 🎸 getOperationHistory method (da2b876)
- add better support for third party fees (3d39cf1)
- allow fetching single entities by ids (b877188)
- support new custom asset type system (3a122c6)
- upgrade types to Mesh 3.3.0 (72a0cb5)
BREAKING CHANGES
-
api.getIdentity
is now async and throws an error if the Identity doesn’t exist on chain
- all async methods in entities now throw an error if the entity in question doesn’t
exist on chain
- 🧨 the
SecurityTokenDetails
interface now has a new
requireInvestorUniqueness: boolean
property. This affects the return
value ofSecurityToken.details
-
- property
tokenType
of theTickerReservation.create
method's parameters is now always a
string. Custom types no longer need to be passed as{ custom: <type> }
, they will be
detected automatically
- property
-
- change the return type of
Identity.getPrimaryKey
fromstring
toAccount
- change the return type of
- the
tag
property ofPolymeshTransaction
andPolymeshTransactionBatch
can no longer be an
empty string (it will always be set from the beginning) - remove the
paidByThirdParty
property ofPolymeshTransaction
andPolymeshTransactionBatch
,
in favor of the newgetPayingAccount
- change the behavior of
TransactionQueue.getMinFees
. The function now returns aFeeBreakdown
object, which contains information on which fees have to be paid by the current Account, and
which will be paid by other (third party) accounts, as well as respective balances and
allowances. The previous version ignored third party fees entirely - make
TransactionQueue.run
throw errors if a third party paying Account doesn’t have enough
balance/allowance to pay for the queue’s fees
- 🧨 the
SecurityTokenDetails
interface now has a new
requireInvestorUniqueness: boolean
property. This affects the return
value ofSecurityToken.details
-
- deprecate
NoData
,Custom
,TransferPrimaryIssuanceAgent
andTransferCorporateActionAgent
authorization types. Attempting to accept/reject authorizations of these types will result in
an error
- deprecate
- throw a specific error when consuming an expired
JoinIdentity
orAddMultiSigSigner
authorization - throw a specific error if attempting to run a Procedure that requires Identity roles without an
Identity. Add anoIdentity
property to theProcedureAuthorizationStatus
interface to
reflect this scenario (affects the result ofcheckAuthorization
in procedure methods)