@polymeshassociation/polymesh-sdk 31.1.0-beta.6 → 31.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +2 -15
- package/api/procedures/claimDividends.d.ts.map +1 -1
- package/api/procedures/claimDividends.js +11 -1
- package/api/procedures/claimDividends.js.map +1 -1
- package/npm-package/{polymeshassociation-polymesh-sdk-31.1.0-beta.6.tgz → polymeshassociation-polymesh-sdk-31.1.0-beta.7.tgz} +0 -0
- package/package.json +1 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
# [31.1.0-beta.
|
|
1
|
+
# [31.1.0-beta.7](https://github.com/PolymeshAssociation/polymesh-sdk/compare/v31.1.0-beta.6...v31.1.0-beta.7) (2026-08-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* 🐛 stop filtering authorizations by expiry a second time ([510016f](https://github.com/PolymeshAssociation/polymesh-sdk/commit/510016fa40cd1c88b49d414e7f4d7c5783392f82))
|
|
8
|
-
* 🐛 use BigNumber.isBigNumber so checks survive a duplicate bignumber.js ([db37b7c](https://github.com/PolymeshAssociation/polymesh-sdk/commit/db37b7c5373eb34d56ed985eefa9409044af1e38))
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Features
|
|
12
|
-
|
|
13
|
-
* 🎸 allow connecting to a middleware that needs no api key ([e6383f3](https://github.com/PolymeshAssociation/polymesh-sdk/commit/e6383f3f43910cce567b4c383c04cecb9bdd8705))
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Performance Improvements
|
|
17
|
-
|
|
18
|
-
* ⚡️ page asset.assets so Assets.get needs one query ([f3457ec](https://github.com/PolymeshAssociation/polymesh-sdk/commit/f3457ec4d60389d1048dd3d73562476344d30e75))
|
|
19
|
-
* ⚡️ read only the requested Assets from a Portfolio ([53ccb64](https://github.com/PolymeshAssociation/polymesh-sdk/commit/53ccb64fbb02298ba77b334ced4c54914a3c6036))
|
|
6
|
+
* resolve claim's signing Identity from the Procedure's own Context ([6f13f8b](https://github.com/PolymeshAssociation/polymesh-sdk/commit/6f13f8baa554d0796ee364a8e294de5c85787692))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claimDividends.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/claimDividends.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAiB,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGpE;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,YAAY,EAAE,oBAAoB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"claimDividends.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/claimDividends.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAiB,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGpE;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,YAAY,EAAE,oBAAoB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC,CAkDjF;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,QAAO,SAAS,CAAC,MAAM,EAAE,IAAI,CAOpD,CAAC"}
|
|
@@ -23,7 +23,17 @@ function prepareClaimDividends(args) {
|
|
|
23
23
|
const { context: { polymeshApi: { tx }, }, context, } = this;
|
|
24
24
|
const { distribution, distribution: { id: localId, asset, paymentDate, expiryDate }, } = args;
|
|
25
25
|
(0, utils_1.assertDistributionOpen)(paymentDate, expiryDate);
|
|
26
|
-
|
|
26
|
+
// `distribution` was fetched through (and carries) whatever Context it happened to be
|
|
27
|
+
// constructed with, which is *not* necessarily this Procedure's own Context (`context` above,
|
|
28
|
+
// scoped to this call's `signingAccount`). Since `getParticipant` defaults its `identity` by
|
|
29
|
+
// reading the *signing* Identity off whichever Context it's given, calling it with no args here
|
|
30
|
+
// would resolve against `distribution`'s Context instead of this one, silently checking the
|
|
31
|
+
// wrong Identity's participation (and balance) whenever the two differ - e.g. any multi-account
|
|
32
|
+
// consumer, such as the REST API, that fetches entities off a shared Context while overriding
|
|
33
|
+
// `signingAccount` per call. Resolve the signing Identity from this Procedure's Context
|
|
34
|
+
// explicitly and pass it through so the correct Identity is always the one checked.
|
|
35
|
+
const signingIdentity = yield context.getSigningIdentity();
|
|
36
|
+
const participant = yield distribution.getParticipant({ identity: signingIdentity });
|
|
27
37
|
if (!participant) {
|
|
28
38
|
throw new internal_1.PolymeshError({
|
|
29
39
|
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claimDividends.js","sourceRoot":"","sources":["../../../src/api/procedures/claimDividends.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"claimDividends.js","sourceRoot":"","sources":["../../../src/api/procedures/claimDividends.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,sDAqDC;AArED,kDAAgE;AAChE,yCAA4E;AAC5E,mCAA4C;AA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