github PolymeshAssociation/polymesh-sdk v13.0.0-alpha.1

latest releases: v24.7.0-alpha.4, v24.7.0-alpha.3, v24.7.0-alpha.2...
pre-release2 years ago

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 of id: BigNumber. The value still represents the requirement ID
  • token.compliance.requirements.get now returns a ComplianceRequirements 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 to CorporateActionDefaultConfig,
    setDefaults to setDefaultConfig, getDefaults to getDefaultConfig
    within the CorporateActions entity.
  • 🧨 make CreateSecurityTokenParams.requireInvestorUniqueness non optional.
    This affects TickerReservation.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 from boolean to CheckPermissionsResult and CheckRolesResult.
    This affects the return type of checkAuthorization in ProcedureMethod
    • replace ticker: string with token: SecurityToken in: Checkpoint, CheckpointSchedule,
      CorporateAction, DividendDistribution, Sto, CustomPermissionGroup,
      KnownPermissionGroup, DefaultTrustedClaimIssuer
  • change the return type of CustomPermissionGroup.toJson. id: BigNumber is now id: string
    • move reserveTicker from root to currentIdentity namespace
  • move removeSecondaryKeys from Identity class to currentIdentity
  • move revokePermissions from Identity class to currentIdentity
  • move modifyPermissions from Identity class to currentIdentity
  • move inviteAccount from Identity class to currentIdentity
  • move createVenue from Identity class to currentIdentity
  • move freezeSecondaryKeys from Identity class to currentIdentity
  • move unfreezeSecondaryKeys from Identity class to currentIdentity
  • change the type of ModifyCheckpointParams.checkpoint to
    Checkpoint | CheckpointSchedule | Date | null
  • 🧨 move isEntity and isPolymeshError 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.
    • rename details to description in CreateVenueParams interface.

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.