1.0.0-alpha.19 (2020-09-29)
chore
- msdk-313 refactor transfers namespace (ad26622)
- msdk-313 refactor transfers namespace (ec725b1)
- rename checkTransfer to checkSettle (ecf8ef9)
Features
- adapt canTransfer to portfolio logic. MSDK-292 (4a2e3b2)
- add dti to asset identifier enum. MSDK-287 (fb3bd93)
- add support for country codes in jurisdiction (29577bc)
- introduce
Scope
type (d90b9e1) - refacor on issueTokens procedure. Task involved: MSDK-261 (eae437b)
- remove BatchIssue constant (af5cad3)
- rename master key and signing key. MSDK-294 (1f7196c)
- rename treasuryIdentity to primaryIssuanceAgent. MSDK-289 (8d19fdb)
- upgrade to tooling. Involved tasks: MSDK-284 & MSDK-286 (5b77649)
BREAKING CHANGES
-
- Transfers namespace changes to Settlements
canTransfer
renamed tocanSettle
areFrozen
renamed toisFrozen
transfers.freeze()
,transfers.unfreeze()
andtransfers.isFrozen()
moved tosecurityToken.freeze()
,securityToken.unfreeze()
andsecurityToken.isFrozen()
checkTransfer()
renamed tocheckSettle()
-
SigningKey
interface renamed toSecondaryKey
:
getSigningKeys()
andremoveSigningKeys()
inCurrentIdentity
renamed togetSecondaryKeys()
andremoveSecondaryKeys()
api.registerIdentity()
arguments changed from{ targetAccount: string | Account; expiry?: Date; signingKeys?: SigningKey[] }
to{ targetAccount: string | Account; secondaryKeys?: SecondaryKey[] }
getMasterKey()
inIdentity
renamed togetPrimaryKey
AttestMasterKeyRotation
andRotateMasterKey
in theAuthorizationType
enum renamed toAttestPrimaryKeyRotation
andRotatePrimaryKey
respectivelyRule
interface renamed toRequirement
RuleCompliance
interface renamed toRequirementCompliance
(rules
key changed torequirements
)rules
namespace insecurityToken.compliance
renamed torequirements
requirements.set()
arguments changed from{ rules: Condition[][] }
to{ requirements: Condition[][] }
checkMint()
removed fromsecurityToken.compliance.requirements
canMint()
andtransfer()
removed fromsecurityToken.transfers
treasuryIdentity
inSecurityTokenDetails
renamed toprimaryIssuanceAgent
api.governance
namespace deleted, and all governance/proposal related classes/functionality disabledsecurityToken.issuance.issue()
arguments changed from{ issuanceData: IssuanceData }
to{ amount: BigNumber }
tickerReservation.createSecurityToken()
arguments no longer accept atreasury
parameter. The treasury DID is now always the issuer by default- Jurisdiction claim interface changed to
{ type: ClaimType.Jurisdiction; code: CountryCode; scope: Scope }
- Transfers namespace changes to Settlements
canTransfer
renamed tocanSettle
areFrozen
renamed toisFrozen
transfers.freeze()
,transfers.unfreeze()
andtransfers.isFrozen()
moved tosecurityToken.freeze()
,securityToken.unfreeze()
andsecurityToken.isFrozen()
-
SigningKey
interface renamed toSecondaryKey
:
getSigningKeys()
andremoveSigningKeys()
inCurrentIdentity
renamed togetSecondaryKeys()
andremoveSecondaryKeys()
api.registerIdentity()
arguments changed from{ targetAccount: string | Account; expiry?: Date; signingKeys?: SigningKey[] }
to{ targetAccount: string | Account; secondaryKeys?: SecondaryKey[] }
getMasterKey()
inIdentity
renamed togetPrimaryKey
AttestMasterKeyRotation
andRotateMasterKey
in theAuthorizationType
enum renamed toAttestPrimaryKeyRotation
andRotatePrimaryKey
respectivelyRule
interface renamed toRequirement
RuleCompliance
interface renamed toRequirementCompliance
(rules
key changed torequirements
)rules
namespace insecurityToken.compliance
renamed torequirements
requirements.set()
arguments changed from{ rules: Condition[][] }
to{ requirements: Condition[][] }
checkMint()
removed fromsecurityToken.compliance.requirements
canMint()
andtransfer()
removed fromsecurityToken.transfers
treasuryIdentity
inSecurityTokenDetails
renamed toprimaryIssuanceAgent
api.governance
namespace deleted, and all governance/proposal related classes/functionality disabledsecurityToken.issuance.issue()
arguments changed from{ issuanceData: IssuanceData }
to{ amount: BigNumber }
tickerReservation.createSecurityToken()
arguments no longer accept atreasury
parameter. The treasury DID is now always the issuer by default- Jurisdiction claim interface changed to
{ type: ClaimType.Jurisdiction; code: CountryCode; scope: Scope }
ClaimScope.scope
changed fromstring | null
toScope | null
andClaim.scope
changed fromstring
toScope
This affects multiple endpoints inapi.claims
:addClaims()
,editClaims()
andrevokeClaims()
haveClaim
as part of their inputgeetIssuedClaims()
,getIdentitiesWithClaims()
,getCddClaims()
andgetTargetingClaims()
haveClaim
as part of their return valuegetClaimScopes()
hasClaimScope[]
as its return value