github PolymeshAssociation/polymesh-sdk v4.0.0

latest releases: v26.2.0, v26.2.0-beta.1, v26.2.0-alpha.5...
3 years ago

4.0.0 (2021-02-19)

Bug Fixes

  • update transfer error codes from Polymesh (10408bf)
  • permissions: add missing permission checks to procedures (e367005)
  • add missing preparestorage when creating procedures (cb33c85)
  • fix addresses in settlements query in the middleware (4d07768)
  • permissions: order permissions alphabetically before setting them (f5a2ed1)
  • procedure: call .cleanup on errors (a43adcc)
  • fix error when converting IU claims (ddb7a44)
  • fix fundraiser schema and generated types (fc9a8d8)
  • fix settlements query for the middleware (4fd7a03)
  • if pia is null, then piarole is true (dd16a4b)
  • transaction history amount (75b6fa1)
  • transaction history portfolio amount (14a91b2)

chore

  • config: revert scripts to original endpoint (bff4d2d)
  • add pagination support (60532ce)
  • claims refactoring (74c9100)

Features

  • instructions: accept value date as a parameter in addInstruction (b98ffd8)
  • offerings: add offerings.get to the Security Token entity (9044ca9)
  • offerings: add offerings.launchSto method (728392b)
  • offerings: create Offering entity and Offerings namespace (01c6b9f)
  • permissions: add key permission checks to procedures (eefb544)
  • permissions: expose txGroupToTxTags from utils (b2ee1a4)
  • permissions: return TxGroups (f9bb557)
  • permissions: suppot groups of tx tags under a single name (a4ba912)
  • procedures: add checkAuthorization to every method (d861221)
  • restrictions: allow identities as exempted (6e84dff)
  • security token: implement securityToken.investorCount (40b3b7c)
  • transfer restrictions: add logic to fetch transfer restrictions (471e97f)
  • transfer restrictions: allow setting restrictions and exemptions (3ad914c)
  • transfer restrictions: make exempted list optional (d84c403)
  • transfer restrictions: support adding transfer restrictions to ST (4b8e448)
  • transfers: add TM failure status code (179bc4b)
  • add modifyTimes to the STO entity (4d591f6)
  • add pagination support (cb579e8)
  • add validation when revoking InvestorUniqueness claim (e88eedc)
  • check portfolio custodian role (adbcc5c)
  • freeze and unfreeze sto (e2f167a)
  • get all investors for a given offering (2af4527)
  • get cdd claims from storage (f344a3b)
  • getInvestorUniquenessClaims (b84940f)
  • getInvestorUniquenessClaims method (61bc1cc)
  • getTransactionHistory for portfolios (c4b6180)
  • hardcode permittted TxTags in txTagToProtocolOp (1d24846)
  • instance api with mnemonics (6b380f1)
  • refactor (e4d2f6b)
  • security token redeem (bc207ac)
  • sto details and cancel sto procedure (d7b710d)
  • throw if document hash is empty (2fa4fb9)
  • update the ST identifiers (762e444)
  • use getIdentityClaimsFromChain (c18e10d)
  • validate CddId when adding a Cdd claim (4235f8f)
  • validate if number is integer and positive (7aa8132)
  • validate just the PIA can call issue and redeem token (3893226)
  • validate printable ASCII (55b44eb)
  • venue exists (6f4007b)

Performance Improvements

  • procedures: use procedure storage to avoid repeated calls (89b7549)

BREAKING CHANGES

  • permissions: - PermissionsLike.transactions no longer accepts TxGroup values, there is now a separate transactionGroups?: TxGroup[] property
  • Permissions.transactionGroups can no longer be null
  • restrictions: - rename exempted to exemptedScopeIds in CountTransferRestriction and PercentageTransferRestriction
  • rename exempted to exemptedScopeIds and add exemptedIdentities to the parameters of addRestriction and setRestrictions in both restriction namespaces
  • offerings: rename minimumInvestment to minInvestment and remove offeringAsset from
    StoDetails
  • sto.close now takes no parameters
    • getCustodiedPortfolios returns ResultSet<DefaultPortfolio | NumberedPortfolio> instead of (DefaultPortfolio | NumberedPortfolio)[]
  • getAffirmations returns ResultSet instead of InstructionAffirmation[]
  • getLegs returns ResultSet instead of Leg[]
    • getCddClaims does not support pagination
  • config: validFrom changed to tradeDate in addInstruction parameters and the
    InstructionDetails interface

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.