@polymeshassociation/polymesh-types 5.4.0 → 5.5.0
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/rpc/index.d.ts +8 -19
- package/rpc/index.d.ts.map +1 -1
- package/rpc/index.js +22 -75
- package/rpc/index.js.map +1 -1
- package/types/4.0.0.json +2 -1
- package/types/4.1.x.json +2 -1
- package/types/6.0.x.json +1216 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +2 -0
- package/types/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [5.5.0](https://github.com/PolymeshAssociation/polymesh-types/compare/v5.4.1...v5.5.0) (2023-06-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* 🎸 add 6.0.x types ([a287ae0](https://github.com/PolymeshAssociation/polymesh-types/commit/a287ae0dc43d99865697aa936e0a8d7c3a89d071))
|
|
7
|
+
|
|
8
|
+
## [5.4.1](https://github.com/PolymeshAssociation/polymesh-types/compare/v5.4.0...v5.4.1) (2023-05-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 🐛 add missing dispatch error to 4.x types ([3c5aa75](https://github.com/PolymeshAssociation/polymesh-types/commit/3c5aa75a07fd25ed46244dcf03744fd249d76fe9))
|
|
14
|
+
|
|
1
15
|
# [5.4.0](https://github.com/PolymeshAssociation/polymesh-types/compare/v5.3.0...v5.4.0) (2023-04-24)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/rpc/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
identity: {
|
|
3
|
+
isIdentityHasValidCdd: {
|
|
4
4
|
description: string;
|
|
5
5
|
params: {
|
|
6
6
|
name: string;
|
|
@@ -9,9 +9,7 @@ declare const _default: {
|
|
|
9
9
|
}[];
|
|
10
10
|
type: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
identity: {
|
|
14
|
-
isIdentityHasValidCdd: {
|
|
12
|
+
getAssetDid: {
|
|
15
13
|
description: string;
|
|
16
14
|
params: {
|
|
17
15
|
name: string;
|
|
@@ -20,7 +18,7 @@ declare const _default: {
|
|
|
20
18
|
}[];
|
|
21
19
|
type: string;
|
|
22
20
|
};
|
|
23
|
-
|
|
21
|
+
getDidRecords: {
|
|
24
22
|
description: string;
|
|
25
23
|
params: {
|
|
26
24
|
name: string;
|
|
@@ -29,7 +27,7 @@ declare const _default: {
|
|
|
29
27
|
}[];
|
|
30
28
|
type: string;
|
|
31
29
|
};
|
|
32
|
-
|
|
30
|
+
getDidStatus: {
|
|
33
31
|
description: string;
|
|
34
32
|
params: {
|
|
35
33
|
name: string;
|
|
@@ -38,7 +36,7 @@ declare const _default: {
|
|
|
38
36
|
}[];
|
|
39
37
|
type: string;
|
|
40
38
|
};
|
|
41
|
-
|
|
39
|
+
getFilteredAuthorizations: {
|
|
42
40
|
description: string;
|
|
43
41
|
params: {
|
|
44
42
|
name: string;
|
|
@@ -47,7 +45,7 @@ declare const _default: {
|
|
|
47
45
|
}[];
|
|
48
46
|
type: string;
|
|
49
47
|
};
|
|
50
|
-
|
|
48
|
+
getKeyIdentityData: {
|
|
51
49
|
description: string;
|
|
52
50
|
params: {
|
|
53
51
|
name: string;
|
|
@@ -56,7 +54,7 @@ declare const _default: {
|
|
|
56
54
|
}[];
|
|
57
55
|
type: string;
|
|
58
56
|
};
|
|
59
|
-
|
|
57
|
+
validCDDClaims: {
|
|
60
58
|
description: string;
|
|
61
59
|
params: {
|
|
62
60
|
name: string;
|
|
@@ -118,15 +116,6 @@ declare const _default: {
|
|
|
118
116
|
};
|
|
119
117
|
};
|
|
120
118
|
asset: {
|
|
121
|
-
canTransfer: {
|
|
122
|
-
description: string;
|
|
123
|
-
params: {
|
|
124
|
-
name: string;
|
|
125
|
-
type: string;
|
|
126
|
-
isOptional: boolean;
|
|
127
|
-
}[];
|
|
128
|
-
type: string;
|
|
129
|
-
};
|
|
130
119
|
canTransferGranular: {
|
|
131
120
|
description: string;
|
|
132
121
|
params: {
|
package/rpc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA2TE"}
|
package/rpc/index.js
CHANGED
|
@@ -1,34 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
|
-
compliance: {
|
|
5
|
-
canTransfer: {
|
|
6
|
-
description: 'Checks whether a transaction with given parameters is compliant to the compliance manager conditions',
|
|
7
|
-
params: [
|
|
8
|
-
{
|
|
9
|
-
name: 'ticker',
|
|
10
|
-
type: 'Ticker',
|
|
11
|
-
isOptional: false,
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
name: 'from_did',
|
|
15
|
-
type: 'Option<IdentityId>',
|
|
16
|
-
isOptional: false,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'to_did',
|
|
20
|
-
type: 'Option<IdentityId>',
|
|
21
|
-
isOptional: false,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'blockHash',
|
|
25
|
-
type: 'Hash',
|
|
26
|
-
isOptional: true,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
type: 'AssetComplianceResult',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
4
|
identity: {
|
|
33
5
|
isIdentityHasValidCdd: {
|
|
34
6
|
description: 'use to tell whether the given did has valid cdd claim or not',
|
|
@@ -141,6 +113,27 @@ exports.default = {
|
|
|
141
113
|
],
|
|
142
114
|
type: 'Option<KeyIdentityData>',
|
|
143
115
|
},
|
|
116
|
+
validCDDClaims: {
|
|
117
|
+
description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
|
|
118
|
+
params: [
|
|
119
|
+
{
|
|
120
|
+
name: 'target_identity',
|
|
121
|
+
type: 'IdentityId',
|
|
122
|
+
isOptional: false,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'cdd_checker_leeway',
|
|
126
|
+
type: 'u64',
|
|
127
|
+
isOptional: true,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'blockHash',
|
|
131
|
+
type: 'Hash',
|
|
132
|
+
isOptional: true,
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
type: 'Vec<IdentityClaim>',
|
|
136
|
+
},
|
|
144
137
|
},
|
|
145
138
|
pips: {
|
|
146
139
|
getVotes: {
|
|
@@ -224,52 +217,6 @@ exports.default = {
|
|
|
224
217
|
},
|
|
225
218
|
},
|
|
226
219
|
asset: {
|
|
227
|
-
canTransfer: {
|
|
228
|
-
description: 'Checks whether a transaction with given parameters can take place or not',
|
|
229
|
-
params: [
|
|
230
|
-
{
|
|
231
|
-
name: 'sender',
|
|
232
|
-
type: 'AccountId',
|
|
233
|
-
isOptional: false,
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
name: 'from_custodian',
|
|
237
|
-
type: 'Option<IdentityId>',
|
|
238
|
-
isOptional: false,
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
name: 'from_portfolio',
|
|
242
|
-
type: 'PortfolioId',
|
|
243
|
-
isOptional: false,
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: 'to_custodian',
|
|
247
|
-
type: 'Option<IdentityId>',
|
|
248
|
-
isOptional: false,
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: 'to_portfolio',
|
|
252
|
-
type: 'PortfolioId',
|
|
253
|
-
isOptional: false,
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: 'ticker',
|
|
257
|
-
type: 'Ticker',
|
|
258
|
-
isOptional: false,
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
name: 'value',
|
|
262
|
-
type: 'Balance',
|
|
263
|
-
isOptional: false,
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
name: 'blockHash',
|
|
267
|
-
type: 'Hash',
|
|
268
|
-
isOptional: true,
|
|
269
|
-
},
|
|
270
|
-
],
|
|
271
|
-
type: 'CanTransferResult',
|
|
272
|
-
},
|
|
273
220
|
canTransferGranular: {
|
|
274
221
|
description: 'Checks whether a transaction with given parameters can take place or not. The result is granular meaning each check is run and returned regardless of outcome.',
|
|
275
222
|
params: [
|
|
@@ -309,7 +256,7 @@ exports.default = {
|
|
|
309
256
|
isOptional: true,
|
|
310
257
|
},
|
|
311
258
|
],
|
|
312
|
-
type: '
|
|
259
|
+
type: 'canTransferGranularReturn',
|
|
313
260
|
},
|
|
314
261
|
},
|
|
315
262
|
group: {
|
package/rpc/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,QAAQ,EAAE;QACR,qBAAqB,EAAE;YACrB,WAAW,EAAE,8DAA8D;YAC3E,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,KAAK;oBACX,IAAI,EAAE,YAAY;o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