github PolymeshAssociation/polymesh-sdk v15.0.0

latest releases: v25.1.1, v25.1.1-beta.1, v25.1.1-alpha.1...
2 years ago

15.0.0 (2022-08-10)

Bug Fixes

  • ๐Ÿ› Add missing validations in controllerTransfer proc (efb07c8)
  • ๐Ÿ› Correct the amount, withheldTax returned by DividendDistribution.getPaymentHistory (f6ab2c5)
  • ๐Ÿ› disregard pallets without calls (af684ae)
  • ๐Ÿ› Fix asset.settlement.canTransfer method (6f32e4d)
  • ๐Ÿ› Handle NoData claimType in conversion util (1f9bbfa)
  • ๐Ÿ› ignore portfolio locked balances with zero amount (be57838)
  • ๐Ÿ› Pin polkadot dependencies (d79f561)
  • ๐Ÿ› Remove polymeshApi Proxy in Context (fdd14a8)
  • ๐Ÿ› Settlement not being modifable before end block (#762) (517a2a7)
  • ๐Ÿ› Undo postProcess augment-rpc (c758e08)
  • ๐Ÿ› Update polkadot api to fix pagination issue (6c032e6)
  • ๐Ÿ› use proper type for document URIs (615782a)
  • ๐Ÿ› Validate primary key on modifySignerPermissions (0676035)

Code Refactoring

  • ๐Ÿ’ก GetReturnType to GetTransferRestrictionReturnType (cff18a5)

  • ๐Ÿ’ก Rename toJson to toHuman in all entities (cb684fb)

  • Da 179/upgrade 5.0.0 (#742) (2450467), closes #742

Features

  • ๐ŸŽธ (WIP) Add support for 5.0.0 rc-1 (7a4e503)
  • ๐ŸŽธ (WIP) Add support for 5.0.0 rc-1 (a7d7a8b)
  • ๐ŸŽธ Add enableStat to transferRestriction namespace (#782) (c862841)
  • ๐ŸŽธ add getSecondaryPermissions method (86e86fd)
  • ๐ŸŽธ Add guard to Asset.investorCount if stat is not enabled (3cfcc58)
  • ๐ŸŽธ Add method to get all assets on chain (with pagination) (77f1579)
  • ๐ŸŽธ add pagination for getSecondaryAccounts (7d37e02)
  • ๐ŸŽธ Add support for FIGI asset identifiers (6fa8cf1)
  • ๐ŸŽธ Always return TickerReservation from assets.getTickerReservation (4b59621)
  • ๐ŸŽธ bump supported chain version to 5.0.2 (a73ced2)
  • ๐ŸŽธ Bump supported version range to 5.0.x (44ec9f5)
  • ๐ŸŽธ DA-311 Add support for middleware v2 with claims POC (3b75f49)
  • ๐ŸŽธ DA-315 Migrate middleware queries to subquery native (389e84d)
  • ๐ŸŽธ expose transaction index within block (e6c6983)
  • ๐ŸŽธ log a warning for minor and patch version mismatch (30dd691)
  • ๐ŸŽธ Migrate external agents queries to subquery native (1f6a5c7)
  • ๐ŸŽธ Migrate settlements query to subquery native (e3ac5c2)
  • ๐ŸŽธ move getSecondaryAccountPermissions into internal tool (d547463)
  • ๐ŸŽธ Multiple tags support while getting protocol fees (e0f8897)
  • ๐ŸŽธ Pin transtive polkadot dependencies (463ce32)
  • ๐ŸŽธ Proper calculation of investor count with PUIS enabled (1924cdd)
  • ๐ŸŽธ Publish to polymesh association npm (#777) (38ee807)
  • ๐ŸŽธ Refactor code to use new trasnfer restrictions api (37b146a)
  • ๐ŸŽธ Return gasFees, protocolFees in getTransactionByHash (032222c)
  • ๐ŸŽธ Round post-tax dividend amounts (dfb9625)
  • ๐ŸŽธ Support 5.0.0-rc-1 (33b77e4)
  • ๐ŸŽธ Support callback for getSecondaryAccounts (1a9c6fe)
  • ๐ŸŽธ support passing existing group permissions (ff3e8ae)
  • ๐ŸŽธ support passing null (full) permissions on `inviteAgent (8001b7b)
  • ๐ŸŽธ throw an error when fetching an asset identity (8949e13)
  • ๐ŸŽธ Update granular permissions results for new types (fe2b072)
  • ๐ŸŽธ Upgrade polkadot SDK along with 5.0.0 chain types (2e9ee2c)
  • ๐ŸŽธ upgrade polkadot.js to 8.9.1 (ba358ad)
  • ๐ŸŽธ use createGroupAndAddAuth when appropriate (ed0d022)
  • ๐ŸŽธ Use batching fully for add restriction (5bd29d5)
  • ๐ŸŽธ use batching when modifying CA defaults (296949b)
  • ๐ŸŽธ use composite extrinsic to create and change group (8c0a9f0)
  • ๐ŸŽธ use composite extrinsic to create CA and distribution (29fb0ad)
  • ๐ŸŽธ Use names prefixed with PolymeshPrimitives and Pallet (7874b57)
  • ๐ŸŽธ Use proper batching for setTransferRestriction (f895ec8)
  • ๐ŸŽธ validate chain spec version when connecting (af76f93)
  • ๐ŸŽธ WIP Update transfer restrictions to create stats (32d7d94)

BREAKING CHANGES

  • ๐Ÿงจ getSecondaryAccounts is now paginated

  • ๐Ÿงจ Type GetReturnType<T> is now renamed to
    GetTransferRestrictionReturnType<T>

  • ๐Ÿงจ no longer throw an error when adding an external agent with explicit
    permissions if there is already an existing permission group with those
    permissions

  • ๐Ÿงจ accountManagement.modifyPermissions and accountManagement.revokePermissions
    now throw an error if the signing Account is not the primary Account of the Identity
    whose secondary Accounts' permissions are modified/revoked

  • ๐Ÿงจ Asset.investorCount throws if stat is not enabled

  • fix: ๐Ÿ› Remove polymeshApi Proxy in Context

polkadot.js began using a private accesor (e.g. #registry) internally.
This causes an error to be thrown when called by a proxied instance.
Context Proxy was used to guard against having no signer which is taken
care of by the singning manager, so this shouldn't cause any behavior to
change

  • feat: ๐ŸŽธ Bump supported version range to 5.0.x

  • chore: ๐Ÿค– use stored metadata to generate country code enum

  • chore: ๐Ÿค– remove country code generation from definitions script

  • feat: ๐ŸŽธ expose transaction index within block

Also fix compilation errors that arise in sandbox

  • fix: ๐Ÿ› disregard pallets without calls

  • fix: ๐Ÿ› use proper type for document URIs

Also fixed documentHash conversion util tests

  • feat: ๐ŸŽธ validate chain spec version when connecting

  • ๐Ÿงจ throw an error instead of a warning when the chain versions aren't
    within the expected ranges

  • refactor: ๐Ÿ’ก Eliminate RPC specific conversion functions

Modify the schema object to make its types compatible with the rest of
the api. This elminates snake case conversion functions to DRY the code
base

Update types to use PolymeshPrimitivesIdentityId instead of IdentityId

  • feat: ๐ŸŽธ log a warning for minor and patch version mismatch

Co-authored-by: Jeremias Diaz monitz87@gmail.com
Co-authored-by: Victor Vicente VictorVicente@users.noreply.github.com

  • ๐Ÿงจ network.getProtocolFees now supports passing multiple TxTags.
    Also, the return type has been changed from Promise<BigNumber>
    to Promise<ProtocolFees[]> specifying protocol fees for each tag argument.
  • ๐Ÿงจ throw an error instead of a warning when the chain versions aren't
    within the expected ranges
  • ๐Ÿงจ Asset.investorCount throws if stat is not enabled
  • ๐Ÿงจ Return type of network.getTransactionByHash is changed from
    Promise<ExtrinsicData | null> to Promise<ExtrinsicDataWithFees | null>
  • ๐Ÿงจ toJson method within all entities has been renamed to toHuman
  • ๐Ÿงจ assets.isTickerAvailable has been removed.
    To check ticker availability, directly get the TickerReservation instance
    and use details.status to check the availability

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.