@polymeshassociation/polymesh-types 5.11.1 → 5.12.1
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 +7 -0
- package/package.json +1 -1
- package/rpc/6.x.d.ts +198 -0
- package/rpc/6.x.d.ts.map +1 -0
- package/rpc/6.x.js +378 -0
- package/rpc/6.x.js.map +1 -0
- package/rpc/index.d.ts +13 -12
- package/rpc/index.d.ts.map +1 -1
- package/rpc/index.js +46 -42
- package/rpc/index.js.map +1 -1
- package/runtime/index.d.ts +2 -206
- package/runtime/index.d.ts.map +1 -1
- package/runtime/index.js +215 -0
- package/runtime/index.js.map +1 -1
- package/types/7.0.x.json +631 -0
- package/types/index.d.ts +367 -2
- package/types/index.d.ts.map +1 -1
- package/types/index.js +2 -0
- package/types/index.js.map +1 -1
package/rpc/index.js
CHANGED
|
@@ -23,22 +23,6 @@ exports.default = {
|
|
|
23
23
|
],
|
|
24
24
|
type: 'CddStatus',
|
|
25
25
|
},
|
|
26
|
-
getAssetDid: {
|
|
27
|
-
description: 'function is used to query the given ticker DID',
|
|
28
|
-
params: [
|
|
29
|
-
{
|
|
30
|
-
name: 'ticker',
|
|
31
|
-
type: 'Ticker',
|
|
32
|
-
isOptional: false,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'blockHash',
|
|
36
|
-
type: 'Hash',
|
|
37
|
-
isOptional: true,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
type: 'AssetDidResult',
|
|
41
|
-
},
|
|
42
26
|
getDidRecords: {
|
|
43
27
|
description: 'Used to get the did record values for a given DID',
|
|
44
28
|
params: [
|
|
@@ -217,37 +201,32 @@ exports.default = {
|
|
|
217
201
|
},
|
|
218
202
|
},
|
|
219
203
|
asset: {
|
|
220
|
-
|
|
221
|
-
description:
|
|
204
|
+
transferReport: {
|
|
205
|
+
description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
|
|
222
206
|
params: [
|
|
223
207
|
{
|
|
224
|
-
name: '
|
|
225
|
-
type: 'Option<IdentityId>',
|
|
226
|
-
isOptional: false,
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
name: 'from_portfolio',
|
|
208
|
+
name: 'sender_portfolio',
|
|
230
209
|
type: 'PortfolioId',
|
|
231
210
|
isOptional: false,
|
|
232
211
|
},
|
|
233
212
|
{
|
|
234
|
-
name: '
|
|
235
|
-
type: '
|
|
213
|
+
name: 'receiver_portfolio',
|
|
214
|
+
type: 'PortfolioId',
|
|
236
215
|
isOptional: false,
|
|
237
216
|
},
|
|
238
217
|
{
|
|
239
|
-
name: '
|
|
240
|
-
type: '
|
|
218
|
+
name: 'asset_id',
|
|
219
|
+
type: 'AssetID',
|
|
241
220
|
isOptional: false,
|
|
242
221
|
},
|
|
243
222
|
{
|
|
244
|
-
name: '
|
|
245
|
-
type: '
|
|
223
|
+
name: 'transfer_value',
|
|
224
|
+
type: 'Balance',
|
|
246
225
|
isOptional: false,
|
|
247
226
|
},
|
|
248
227
|
{
|
|
249
|
-
name: '
|
|
250
|
-
type: '
|
|
228
|
+
name: 'skip_locked_check',
|
|
229
|
+
type: 'bool',
|
|
251
230
|
isOptional: false,
|
|
252
231
|
},
|
|
253
232
|
{
|
|
@@ -256,7 +235,7 @@ exports.default = {
|
|
|
256
235
|
isOptional: true,
|
|
257
236
|
},
|
|
258
237
|
],
|
|
259
|
-
type: '
|
|
238
|
+
type: 'Vec<DispatchError>',
|
|
260
239
|
},
|
|
261
240
|
},
|
|
262
241
|
group: {
|
|
@@ -284,8 +263,8 @@ exports.default = {
|
|
|
284
263
|
},
|
|
285
264
|
},
|
|
286
265
|
nft: {
|
|
287
|
-
|
|
288
|
-
description:
|
|
266
|
+
transferReport: {
|
|
267
|
+
description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
|
|
289
268
|
params: [
|
|
290
269
|
{
|
|
291
270
|
name: 'sender_portfolio',
|
|
@@ -302,13 +281,18 @@ exports.default = {
|
|
|
302
281
|
type: 'NFTs',
|
|
303
282
|
isOptional: false,
|
|
304
283
|
},
|
|
284
|
+
{
|
|
285
|
+
name: 'skip_locked_check',
|
|
286
|
+
type: 'bool',
|
|
287
|
+
isOptional: false,
|
|
288
|
+
},
|
|
305
289
|
{
|
|
306
290
|
name: 'blockHash',
|
|
307
291
|
type: 'Hash',
|
|
308
292
|
isOptional: true,
|
|
309
293
|
},
|
|
310
294
|
],
|
|
311
|
-
type: '
|
|
295
|
+
type: 'Vec<DispatchError>',
|
|
312
296
|
},
|
|
313
297
|
},
|
|
314
298
|
settlement: {
|
|
@@ -326,7 +310,7 @@ exports.default = {
|
|
|
326
310
|
isOptional: true,
|
|
327
311
|
},
|
|
328
312
|
],
|
|
329
|
-
type: 'ExecuteInstructionInfo',
|
|
313
|
+
type: 'Option<ExecuteInstructionInfo>',
|
|
330
314
|
},
|
|
331
315
|
getAffirmationCount: {
|
|
332
316
|
description: 'Returns an instance of AffirmationCount, which holds the asset count for both the sender and receiver and the number of offchain assets in the instruction',
|
|
@@ -349,6 +333,16 @@ exports.default = {
|
|
|
349
333
|
],
|
|
350
334
|
type: 'AffirmationCount',
|
|
351
335
|
},
|
|
336
|
+
getExecuteInstructionReport: {
|
|
337
|
+
description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
|
|
338
|
+
params: [
|
|
339
|
+
{
|
|
340
|
+
name: 'instruction_id',
|
|
341
|
+
type: 'InstructionId',
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
type: 'Vec<DispatchError>',
|
|
345
|
+
},
|
|
352
346
|
getTransferReport: {
|
|
353
347
|
description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
|
|
354
348
|
params: [
|
|
@@ -363,15 +357,25 @@ exports.default = {
|
|
|
363
357
|
],
|
|
364
358
|
type: 'Vec<DispatchError>',
|
|
365
359
|
},
|
|
366
|
-
|
|
367
|
-
|
|
360
|
+
},
|
|
361
|
+
compliance: {
|
|
362
|
+
complianceReport: {
|
|
363
|
+
description: 'Checks all compliance requirements for the given asset.',
|
|
368
364
|
params: [
|
|
369
365
|
{
|
|
370
|
-
name: '
|
|
371
|
-
type: '
|
|
366
|
+
name: 'asset_id',
|
|
367
|
+
type: 'AssetID',
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: 'sender_identity',
|
|
371
|
+
type: 'IdentityId',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: 'receiver_identity',
|
|
375
|
+
type: 'IdentityId',
|
|
372
376
|
},
|
|
373
377
|
],
|
|
374
|
-
type: '
|
|
378
|
+
type: 'Result<ComplianceReport, DispatchError>',
|
|
375
379
|
},
|
|
376
380
|
},
|
|
377
381
|
};
|
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,QAAQ,EAAE;QACR,qBAAqB,EAAE;YACrB,WAAW,EAAE,8DAA8D;YAC3E,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,KAAK;oBACX,IAAI,EAAE,YAAY;oBAClB,UAAU,EAAE,KAAK;iBAClB;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,KAAK;oBACX,UAAU,EAAE,IAAI;iBACjB;gBACD;oBACE,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,MAAM;oBACZ,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,IAAI,EAAE,WAAW;SAClB;QACD,
|
|
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;oBAClB,UAAU,EAAE,KAAK;iBAClB;gBACD;oB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,CAAC"}
|
package/runtime/index.d.ts
CHANGED
|
@@ -1,208 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
methods: {
|
|
4
|
-
can_transfer_granular: {
|
|
5
|
-
description: string;
|
|
6
|
-
params: {
|
|
7
|
-
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
}[];
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
version: number;
|
|
14
|
-
}[];
|
|
15
|
-
GroupApi: {
|
|
16
|
-
methods: {
|
|
17
|
-
get_cdd_valid_members: {
|
|
18
|
-
description: string;
|
|
19
|
-
params: never[];
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
get_gc_valid_members: {
|
|
23
|
-
description: string;
|
|
24
|
-
params: never[];
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
version: number;
|
|
29
|
-
}[];
|
|
30
|
-
IdentityApi: {
|
|
31
|
-
methods: {
|
|
32
|
-
is_identity_has_valid_cdd: {
|
|
33
|
-
description: string;
|
|
34
|
-
params: {
|
|
35
|
-
name: string;
|
|
36
|
-
type: string;
|
|
37
|
-
}[];
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
get_asset_did: {
|
|
41
|
-
description: string;
|
|
42
|
-
params: {
|
|
43
|
-
name: string;
|
|
44
|
-
type: string;
|
|
45
|
-
}[];
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
get_did_records: {
|
|
49
|
-
description: string;
|
|
50
|
-
params: {
|
|
51
|
-
name: string;
|
|
52
|
-
type: string;
|
|
53
|
-
}[];
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
get_did_status: {
|
|
57
|
-
description: string;
|
|
58
|
-
params: {
|
|
59
|
-
name: string;
|
|
60
|
-
type: string;
|
|
61
|
-
}[];
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
get_filtered_authorizations: {
|
|
65
|
-
description: string;
|
|
66
|
-
params: {
|
|
67
|
-
name: string;
|
|
68
|
-
type: string;
|
|
69
|
-
}[];
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
get_key_identity_data: {
|
|
73
|
-
description: string;
|
|
74
|
-
params: {
|
|
75
|
-
name: string;
|
|
76
|
-
type: string;
|
|
77
|
-
}[];
|
|
78
|
-
type: string;
|
|
79
|
-
};
|
|
80
|
-
valid_cdd_claims: {
|
|
81
|
-
description: string;
|
|
82
|
-
params: {
|
|
83
|
-
name: string;
|
|
84
|
-
type: string;
|
|
85
|
-
}[];
|
|
86
|
-
type: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
version: number;
|
|
90
|
-
}[];
|
|
91
|
-
NFTApi: {
|
|
92
|
-
methods: {
|
|
93
|
-
validate_nft_transfer: {
|
|
94
|
-
description: string;
|
|
95
|
-
params: {
|
|
96
|
-
name: string;
|
|
97
|
-
type: string;
|
|
98
|
-
}[];
|
|
99
|
-
type: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
version: number;
|
|
103
|
-
}[];
|
|
104
|
-
SettlementApi: {
|
|
105
|
-
methods: {
|
|
106
|
-
get_execute_instruction_info: {
|
|
107
|
-
description: string;
|
|
108
|
-
params: {
|
|
109
|
-
name: string;
|
|
110
|
-
type: string;
|
|
111
|
-
}[];
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
get_affirmation_count: {
|
|
115
|
-
description: string;
|
|
116
|
-
params: {
|
|
117
|
-
name: string;
|
|
118
|
-
type: string;
|
|
119
|
-
}[];
|
|
120
|
-
type: string;
|
|
121
|
-
};
|
|
122
|
-
get_transfer_report: {
|
|
123
|
-
description: string;
|
|
124
|
-
params: {
|
|
125
|
-
name: string;
|
|
126
|
-
type: string;
|
|
127
|
-
}[];
|
|
128
|
-
type: string;
|
|
129
|
-
};
|
|
130
|
-
get_execute_instruction_report: {
|
|
131
|
-
description: string;
|
|
132
|
-
params: {
|
|
133
|
-
name: string;
|
|
134
|
-
type: string;
|
|
135
|
-
}[];
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
version: number;
|
|
140
|
-
}[];
|
|
141
|
-
PipsApi: {
|
|
142
|
-
methods: {
|
|
143
|
-
get_votes: {
|
|
144
|
-
description: string;
|
|
145
|
-
params: {
|
|
146
|
-
name: string;
|
|
147
|
-
type: string;
|
|
148
|
-
}[];
|
|
149
|
-
type: string;
|
|
150
|
-
};
|
|
151
|
-
proposed_by: {
|
|
152
|
-
description: string;
|
|
153
|
-
params: {
|
|
154
|
-
name: string;
|
|
155
|
-
type: string;
|
|
156
|
-
}[];
|
|
157
|
-
type: string;
|
|
158
|
-
};
|
|
159
|
-
voted_on: {
|
|
160
|
-
description: string;
|
|
161
|
-
params: {
|
|
162
|
-
name: string;
|
|
163
|
-
type: string;
|
|
164
|
-
}[];
|
|
165
|
-
type: string;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
version: number;
|
|
169
|
-
}[];
|
|
170
|
-
ProtocolFeeApi: {
|
|
171
|
-
methods: {
|
|
172
|
-
compute_fee: {
|
|
173
|
-
description: string;
|
|
174
|
-
params: {
|
|
175
|
-
name: string;
|
|
176
|
-
type: string;
|
|
177
|
-
}[];
|
|
178
|
-
type: string;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
version: number;
|
|
182
|
-
}[];
|
|
183
|
-
StakingApi: {
|
|
184
|
-
methods: {
|
|
185
|
-
get_curve: {
|
|
186
|
-
description: string;
|
|
187
|
-
params: never[];
|
|
188
|
-
type: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
version: number;
|
|
192
|
-
}[];
|
|
193
|
-
ComplianceApi: {
|
|
194
|
-
methods: {
|
|
195
|
-
compliance_report: {
|
|
196
|
-
description: string;
|
|
197
|
-
params: {
|
|
198
|
-
name: string;
|
|
199
|
-
type: string;
|
|
200
|
-
}[];
|
|
201
|
-
type: string;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
version: number;
|
|
205
|
-
}[];
|
|
206
|
-
};
|
|
1
|
+
import { DefinitionsCall } from '@polkadot/types/types';
|
|
2
|
+
declare const _default: DefinitionsCall;
|
|
207
3
|
export default _default;
|
|
208
4
|
//# sourceMappingURL=index.d.ts.map
|
package/runtime/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;;AAExD,wBAsiBqB"}
|
package/runtime/index.js
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
AssetApi: [
|
|
5
|
+
{
|
|
6
|
+
methods: {
|
|
7
|
+
transfer_report: {
|
|
8
|
+
description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
|
|
9
|
+
params: [
|
|
10
|
+
{
|
|
11
|
+
name: 'sender_portfolio',
|
|
12
|
+
type: 'PortfolioId',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'receiver_portfolio',
|
|
16
|
+
type: 'PortfolioId',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'asset_id',
|
|
20
|
+
type: 'AssetID',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'transfer_value',
|
|
24
|
+
type: 'Balance',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'skip_locked_check',
|
|
28
|
+
type: 'bool',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
type: 'Vec<DispatchError>',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
version: 4,
|
|
35
|
+
},
|
|
5
36
|
{
|
|
6
37
|
methods: {
|
|
7
38
|
can_transfer_granular: {
|
|
@@ -56,6 +87,87 @@ exports.default = {
|
|
|
56
87
|
},
|
|
57
88
|
],
|
|
58
89
|
IdentityApi: [
|
|
90
|
+
{
|
|
91
|
+
methods: {
|
|
92
|
+
is_identity_has_valid_cdd: {
|
|
93
|
+
description: 'use to tell whether the given did has valid cdd claim or not',
|
|
94
|
+
params: [
|
|
95
|
+
{
|
|
96
|
+
name: 'did',
|
|
97
|
+
type: 'IdentityId',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'buffer_time',
|
|
101
|
+
type: 'Option<u64>',
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
type: 'CddStatus',
|
|
105
|
+
},
|
|
106
|
+
get_did_records: {
|
|
107
|
+
description: 'Used to get the did record values for a given DID',
|
|
108
|
+
params: [
|
|
109
|
+
{
|
|
110
|
+
name: 'did',
|
|
111
|
+
type: 'IdentityId',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
type: 'RpcDidRecords',
|
|
115
|
+
},
|
|
116
|
+
get_did_status: {
|
|
117
|
+
description: 'Retrieve status of the DID',
|
|
118
|
+
params: [
|
|
119
|
+
{
|
|
120
|
+
name: 'did',
|
|
121
|
+
type: 'Vec<IdentityId>',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
type: 'Vec<DidStatus>',
|
|
125
|
+
},
|
|
126
|
+
get_filtered_authorizations: {
|
|
127
|
+
description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
|
|
128
|
+
params: [
|
|
129
|
+
{
|
|
130
|
+
name: 'signatory',
|
|
131
|
+
type: 'Signatory',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'allow_expired',
|
|
135
|
+
type: 'bool',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'auth_type',
|
|
139
|
+
type: 'Option<AuthorizationType>',
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
type: 'Vec<Authorization>',
|
|
143
|
+
},
|
|
144
|
+
get_key_identity_data: {
|
|
145
|
+
description: 'Query relation between a signing key and a DID',
|
|
146
|
+
params: [
|
|
147
|
+
{
|
|
148
|
+
name: 'acc',
|
|
149
|
+
type: 'AccountId',
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
type: 'Option<KeyIdentityData>',
|
|
153
|
+
},
|
|
154
|
+
valid_cdd_claims: {
|
|
155
|
+
description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
|
|
156
|
+
params: [
|
|
157
|
+
{
|
|
158
|
+
name: 'target_identity',
|
|
159
|
+
type: 'IdentityId',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'cdd_checker_leeway',
|
|
163
|
+
type: 'Option<u64>',
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
type: 'Vec<IdentityClaim>',
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
version: 4,
|
|
170
|
+
},
|
|
59
171
|
{
|
|
60
172
|
methods: {
|
|
61
173
|
is_identity_has_valid_cdd: {
|
|
@@ -149,6 +261,33 @@ exports.default = {
|
|
|
149
261
|
},
|
|
150
262
|
],
|
|
151
263
|
NFTApi: [
|
|
264
|
+
{
|
|
265
|
+
methods: {
|
|
266
|
+
transfer_report: {
|
|
267
|
+
description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
|
|
268
|
+
params: [
|
|
269
|
+
{
|
|
270
|
+
name: 'sender_portfolio',
|
|
271
|
+
type: 'PortfolioId',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: 'receiver_portfolio',
|
|
275
|
+
type: 'PortfolioId',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'nfts',
|
|
279
|
+
type: 'NFTs',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'skip_locked_check',
|
|
283
|
+
type: 'bool',
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
type: 'Vec<DispatchError>',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
version: 2,
|
|
290
|
+
},
|
|
152
291
|
{
|
|
153
292
|
methods: {
|
|
154
293
|
validate_nft_transfer: {
|
|
@@ -174,6 +313,59 @@ exports.default = {
|
|
|
174
313
|
},
|
|
175
314
|
],
|
|
176
315
|
SettlementApi: [
|
|
316
|
+
{
|
|
317
|
+
methods: {
|
|
318
|
+
get_execute_instruction_info: {
|
|
319
|
+
description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
|
|
320
|
+
params: [
|
|
321
|
+
{
|
|
322
|
+
name: 'instruction_id',
|
|
323
|
+
type: 'InstructionId',
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
type: 'Option<ExecuteInstructionInfo>',
|
|
327
|
+
},
|
|
328
|
+
get_affirmation_count: {
|
|
329
|
+
description: 'Returns an AffirmationCount instance containing the number of assets being sent/received from portfolios, and the number of off-chain assets in the instruction.',
|
|
330
|
+
params: [
|
|
331
|
+
{
|
|
332
|
+
name: 'instruction_id',
|
|
333
|
+
type: 'InstructionId',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
name: 'portfolios',
|
|
337
|
+
type: 'Vec<PortfolioId>',
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
type: 'AffirmationCount',
|
|
341
|
+
},
|
|
342
|
+
get_transfer_report: {
|
|
343
|
+
description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
|
|
344
|
+
params: [
|
|
345
|
+
{
|
|
346
|
+
name: 'leg',
|
|
347
|
+
type: 'Leg',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
name: 'skip_locked_check',
|
|
351
|
+
type: 'bool',
|
|
352
|
+
},
|
|
353
|
+
],
|
|
354
|
+
type: 'Vec<DispatchError>',
|
|
355
|
+
},
|
|
356
|
+
get_execute_instruction_report: {
|
|
357
|
+
description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
|
|
358
|
+
params: [
|
|
359
|
+
{
|
|
360
|
+
name: 'instruction_id',
|
|
361
|
+
type: 'InstructionId',
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
type: 'Vec<DispatchError>',
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
version: 2,
|
|
368
|
+
},
|
|
177
369
|
{
|
|
178
370
|
methods: {
|
|
179
371
|
get_execute_instruction_info: {
|
|
@@ -295,6 +487,29 @@ exports.default = {
|
|
|
295
487
|
},
|
|
296
488
|
],
|
|
297
489
|
ComplianceApi: [
|
|
490
|
+
{
|
|
491
|
+
methods: {
|
|
492
|
+
compliance_report: {
|
|
493
|
+
description: 'Checks all compliance requirements for the given asset_id.',
|
|
494
|
+
params: [
|
|
495
|
+
{
|
|
496
|
+
name: 'asset_id',
|
|
497
|
+
type: 'AssetID',
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: 'sender_identity',
|
|
501
|
+
type: 'IdentityId',
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
name: 'receiver_identity',
|
|
505
|
+
type: 'IdentityId',
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
type: 'Result<ComplianceReport, DispatchError>',
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
version: 2,
|
|
512
|
+
},
|
|
298
513
|
{
|
|
299
514
|
methods: {
|
|
300
515
|
compliance_report: {
|