15.0.0-beta.1 (2022-07-12)
Bug Fixes
- ๐ Add missing validations in
controllerTransfer
proc (efb07c8) - ๐ Correct the
amount
,withheldTax
returned byDividendDistribution.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
totoHuman
in all entities (cb684fb)
Features
- ๐ธ (WIP) Add support for 5.0.0 rc-1 (7a4e503)
- ๐ธ (WIP) Add support for 5.0.0 rc-1 (a7d7a8b)
- ๐ธ Add guard to Asset.investorCount if stat is not enabled (3cfcc58)
- ๐ธ Add support for FIGI asset identifiers (6fa8cf1)
- ๐ธ Always return
TickerReservation
fromassets.getTickerReservation
(4b59621) - ๐ธ 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)
- ๐ธ 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
-
๐งจ 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
andaccountManagement.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 multipleTxTags
.
Also, the return type has been changed fromPromise<BigNumber>
toPromise<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>
toPromise<ExtrinsicDataWithFees | null>
- ๐งจ
toJson
method within all entities has been renamed totoHuman
- ๐งจ
assets.isTickerAvailable
has been removed.
To check ticker availability, directly get theTickerReservation
instance
and usedetails.status
to check the availability