13.0.0-alpha.1 (2021-12-14)
Bug Fixes
- 🐛 bump beta version (b82f96e)
- 🐛 bump version (ebe849e)
- 🐛 code smell (550967d)
- 🐛 Handle CAId conversion before addTransaction (1103613)
- 🐛 modify regex that was only considering abstract (df6d306)
- 🐛 Remove unnecessary type assertion (code smell) (374d9ce)
- 🐛 Remove unused import (f9068a4)
- 🐛 stop requiring transaction perms when joining identity (d5e309d)
- 🐛 support fetching
BecomeAgent
authorizations (34e1810) - 🐛 Transfer Ownership method (0083dad)
chore
- bump major version (c6971e6)
- move currentIdentity methods to root (c2e639d)
- remove order parameter from identity.getTrustingTokens (7c9e62f)
- rename details to description in CreateVenueParams (d630f61)
Code Refactoring
- 💡 Rename CADefaults to CADefaultConfig (d60f19c)
Features
- 🎸 [WIP] move currentidentity methods to root (7d78ea1)
- 🎸 allow both number and
Requirement
as params to remove (8afcf1b) - 🎸 Allow DID string for set compliance requirements (eac3dbc)
- 🎸 allow exported TransactionQueue type to have generics (3c6248f)
- 🎸 Allow non entities for modifying CA checkpoints (2a22aae)
- 🎸 Allow non entities when creating Distributions (2c814f8)
- 🎸 allow passing DID instead of identity for claim issuers (1e27c0d)
- 🎸 allow void procedure methods to be called with opts (9fd4371)
- 🎸 error code no data change (a4972a3)
- 🎸 export typeguards for every Entity (8e07207)
- 🎸 make
requireInvestorUniqueness
non-optional (3aa3464) - 🎸 Refactor setComplianceRequirements to use a single call (a253643)
- 🎸 standardize error codes (596661a)
- 🎸 use polymesh-local for type generation (21bc20e)
- 🎸 use polymesh-local for type generation (56eacf8)
- allow setting a CA's checkpoint to null (845ebc2)
- improve procedure authorization data (135f3c9)
- return trusted claim issuers separately (1d9db0f)
- standardize block data in input and output (67fa54f)
- use Entities as properties of other Entities (8298005)
Performance Improvements
- ⚡️ avoid hash queries where not necessary (f914312)
BREAKING CHANGES
- require the chain version to be 4.1.x
- 🧨
token.compliance.requirements.remove
now takes an object with a
requirement: number | Requirement
property, instead ofid: BigNumber
. The value still represents the requirement ID token.compliance.requirements.get
now returns aComplianceRequirements object, which contains the requirements as well as the default trusted claim issuers. Conditions without specific claim issuers will have the
trustedClaimIssuers` array as undefined- 🧨 rename
CorporateActionDefaults
toCorporateActionDefaultConfig
,
setDefaults
tosetDefaultConfig
,getDefaults
togetDefaultConfig
within theCorporateActions
entity. - 🧨 make
CreateSecurityTokenParams.requireInvestorUniqueness
non optional.
This affectsTickerReservation.createToken
- modify the following interfaces, adding a
blockHash: string
property:
ExtrinsicData
,DistributionPayment
,EventIdentifier
,HistoricSettlement
- change the
ProcedureAuthorizationStatus
type. The permissions/roles related
properties will be changed fromboolean
toCheckPermissionsResult
andCheckRolesResult
.
This affects the return type ofcheckAuthorization
inProcedureMethod
-
- replace
ticker: string
withtoken: SecurityToken
in:Checkpoint
,CheckpointSchedule
,
CorporateAction
,DividendDistribution
,Sto
,CustomPermissionGroup
,
KnownPermissionGroup
,DefaultTrustedClaimIssuer
- replace
- change the return type of
CustomPermissionGroup.toJson
.id: BigNumber
is nowid: string
-
- move
reserveTicker
from root tocurrentIdentity
namespace
- move
- move
removeSecondaryKeys
fromIdentity
class tocurrentIdentity
- move
revokePermissions
fromIdentity
class tocurrentIdentity
- move
modifyPermissions
fromIdentity
class tocurrentIdentity
- move
inviteAccount
fromIdentity
class tocurrentIdentity
- move
createVenue
fromIdentity
class tocurrentIdentity
- move
freezeSecondaryKeys
fromIdentity
class tocurrentIdentity
- move
unfreezeSecondaryKeys
fromIdentity
class tocurrentIdentity
- change the type of
ModifyCheckpointParams.checkpoint
to
Checkpoint | CheckpointSchedule | Date | null
- 🧨 move
isEntity
andisPolymeshError
from/types
to/utils
- 🧨 remove required
undefined
as first argument of procedures when passing
options - 🧨 change the
code
property of most errors thrown by the SDK to better
reflect their meaning. Also changed a few error messages -
- remove
order
parameter in getTrustingTokens method.
- remove
-
- rename
details
todescription
in CreateVenueParams interface.
- rename