@polymeshassociation/polymesh-types 5.12.0 → 5.12.2

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/package.json +1 -1
  3. package/runtime/assetApi/v3.d.ts +3 -0
  4. package/runtime/assetApi/v3.d.ts.map +1 -0
  5. package/runtime/assetApi/v3.js +18 -0
  6. package/runtime/assetApi/v3.js.map +1 -0
  7. package/runtime/assetApi/v4.d.ts +3 -0
  8. package/runtime/assetApi/v4.d.ts.map +1 -0
  9. package/runtime/assetApi/v4.js +17 -0
  10. package/runtime/assetApi/v4.js.map +1 -0
  11. package/runtime/complianceApi/v1.d.ts +3 -0
  12. package/runtime/complianceApi/v1.d.ts.map +1 -0
  13. package/runtime/complianceApi/v1.js +15 -0
  14. package/runtime/complianceApi/v1.js.map +1 -0
  15. package/runtime/complianceApi/v2.d.ts +3 -0
  16. package/runtime/complianceApi/v2.d.ts.map +1 -0
  17. package/runtime/complianceApi/v2.js +15 -0
  18. package/runtime/complianceApi/v2.js.map +1 -0
  19. package/runtime/groupApi/v1.d.ts +3 -0
  20. package/runtime/groupApi/v1.d.ts.map +1 -0
  21. package/runtime/groupApi/v1.js +16 -0
  22. package/runtime/groupApi/v1.js.map +1 -0
  23. package/runtime/identityApi/v3.d.ts +3 -0
  24. package/runtime/identityApi/v3.d.ts.map +1 -0
  25. package/runtime/identityApi/v3.js +51 -0
  26. package/runtime/identityApi/v3.js.map +1 -0
  27. package/runtime/identityApi/v4.d.ts +3 -0
  28. package/runtime/identityApi/v4.d.ts.map +1 -0
  29. package/runtime/identityApi/v4.js +46 -0
  30. package/runtime/identityApi/v4.js.map +1 -0
  31. package/runtime/index.d.ts +3 -199
  32. package/runtime/index.d.ts.map +1 -1
  33. package/runtime/index.js +33 -301
  34. package/runtime/index.js.map +1 -1
  35. package/runtime/nftApi/v1.d.ts +3 -0
  36. package/runtime/nftApi/v1.d.ts.map +1 -0
  37. package/runtime/nftApi/v1.js +15 -0
  38. package/runtime/nftApi/v1.js.map +1 -0
  39. package/runtime/nftApi/v2.d.ts +3 -0
  40. package/runtime/nftApi/v2.d.ts.map +1 -0
  41. package/runtime/nftApi/v2.js +16 -0
  42. package/runtime/nftApi/v2.js.map +1 -0
  43. package/runtime/pipsApi/v1.d.ts +3 -0
  44. package/runtime/pipsApi/v1.d.ts.map +1 -0
  45. package/runtime/pipsApi/v1.js +21 -0
  46. package/runtime/pipsApi/v1.js.map +1 -0
  47. package/runtime/protocolApi/v1.d.ts +3 -0
  48. package/runtime/protocolApi/v1.d.ts.map +1 -0
  49. package/runtime/protocolApi/v1.js +11 -0
  50. package/runtime/protocolApi/v1.js.map +1 -0
  51. package/runtime/settlementApi/v1.d.ts +3 -0
  52. package/runtime/settlementApi/v1.d.ts.map +1 -0
  53. package/runtime/settlementApi/v1.js +32 -0
  54. package/runtime/settlementApi/v1.js.map +1 -0
  55. package/runtime/settlementApi/v2.d.ts +3 -0
  56. package/runtime/settlementApi/v2.d.ts.map +1 -0
  57. package/runtime/settlementApi/v2.js +32 -0
  58. package/runtime/settlementApi/v2.js.map +1 -0
  59. package/runtime/stakingApi/v1.d.ts +3 -0
  60. package/runtime/stakingApi/v1.d.ts.map +1 -0
  61. package/runtime/stakingApi/v1.js +11 -0
  62. package/runtime/stakingApi/v1.js.map +1 -0
  63. package/types/5.0.x.json +2 -1
  64. package/types/5.1.x.json +2 -1
  65. package/types/5.2.x.json +2 -1
  66. package/types/5.3.x.json +2 -1
  67. package/types/5.4.x.json +2 -1
  68. package/types/6.0.x.json +2 -1
  69. package/types/6.1.x.json +2 -1
  70. package/types/6.3.x.json +2 -1
  71. package/types/7.0.x.json +2 -1
  72. package/types/index.d.ts +1 -0
  73. package/types/index.d.ts.map +1 -1
  74. package/runtime/6.x.d.ts +0 -208
  75. package/runtime/6.x.d.ts.map +0 -1
  76. package/runtime/6.x.js +0 -323
  77. package/runtime/6.x.js.map +0 -1
package/runtime/index.js CHANGED
@@ -1,313 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
3
+ exports.runtime = void 0;
4
+ const v3_1 = require("./assetApi/v3");
5
+ const v4_1 = require("./assetApi/v4");
6
+ const v1_1 = require("./complianceApi/v1");
7
+ const v2_1 = require("./complianceApi/v2");
8
+ const v1_2 = require("./groupApi/v1");
9
+ const v3_2 = require("./identityApi/v3");
10
+ const v4_2 = require("./identityApi/v4");
11
+ const v1_3 = require("./nftApi/v1");
12
+ const v2_2 = require("./nftApi/v2");
13
+ const v1_4 = require("./pipsApi/v1");
14
+ const v1_5 = require("./protocolApi/v1");
15
+ const v1_6 = require("./settlementApi/v1");
16
+ const v2_3 = require("./settlementApi/v2");
17
+ const v1_7 = require("./stakingApi/v1");
18
+ exports.runtime = {
4
19
  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
- },
20
+ { methods: v4_1.AssetApiV4, version: 4 },
21
+ { methods: v3_1.AssetApiV3, version: 3 },
36
22
  ],
37
- GroupApi: [
38
- {
39
- methods: {
40
- get_cdd_valid_members: {
41
- description: 'Get the CDD members',
42
- params: [],
43
- type: 'Vec<Member>',
44
- },
45
- get_gc_valid_members: {
46
- description: 'Get the GC members',
47
- params: [],
48
- type: 'Vec<Member>',
49
- },
50
- },
51
- version: 1,
52
- },
23
+ ComplianceApi: [
24
+ { methods: v2_1.ComplianceApiV2, version: 2 },
25
+ { methods: v1_1.ComplianceApiV1, version: 1 },
53
26
  ],
27
+ GroupApi: [{ methods: v1_2.GroupApiV1, version: 1 }],
54
28
  IdentityApi: [
55
- {
56
- methods: {
57
- is_identity_has_valid_cdd: {
58
- description: 'use to tell whether the given did has valid cdd claim or not',
59
- params: [
60
- {
61
- name: 'did',
62
- type: 'IdentityId',
63
- },
64
- {
65
- name: 'buffer_time',
66
- type: 'Option<u64>',
67
- },
68
- ],
69
- type: 'CddStatus',
70
- },
71
- get_did_records: {
72
- description: 'Used to get the did record values for a given DID',
73
- params: [
74
- {
75
- name: 'did',
76
- type: 'IdentityId',
77
- },
78
- ],
79
- type: 'RpcDidRecords',
80
- },
81
- get_did_status: {
82
- description: 'Retrieve status of the DID',
83
- params: [
84
- {
85
- name: 'did',
86
- type: 'Vec<IdentityId>',
87
- },
88
- ],
89
- type: 'Vec<DidStatus>',
90
- },
91
- get_filtered_authorizations: {
92
- description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
93
- params: [
94
- {
95
- name: 'signatory',
96
- type: 'Signatory',
97
- },
98
- {
99
- name: 'allow_expired',
100
- type: 'bool',
101
- },
102
- {
103
- name: 'auth_type',
104
- type: 'Option<AuthorizationType>',
105
- },
106
- ],
107
- type: 'Vec<Authorization>',
108
- },
109
- get_key_identity_data: {
110
- description: 'Query relation between a signing key and a DID',
111
- params: [
112
- {
113
- name: 'acc',
114
- type: 'AccountId',
115
- },
116
- ],
117
- type: 'Option<KeyIdentityData>',
118
- },
119
- valid_cdd_claims: {
120
- description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
121
- params: [
122
- {
123
- name: 'target_identity',
124
- type: 'IdentityId',
125
- },
126
- {
127
- name: 'cdd_checker_leeway',
128
- type: 'Option<u64>',
129
- },
130
- ],
131
- type: 'Vec<IdentityClaim>',
132
- },
133
- },
134
- version: 4,
135
- },
29
+ { methods: v4_2.IdentityApiV4, version: 4 },
30
+ { methods: v3_2.IdentityApiV3, version: 3 },
136
31
  ],
137
- NFTApi: [
138
- {
139
- methods: {
140
- transfer_report: {
141
- description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
142
- params: [
143
- {
144
- name: 'sender_portfolio',
145
- type: 'PortfolioId',
146
- },
147
- {
148
- name: 'receiver_portfolio',
149
- type: 'PortfolioId',
150
- },
151
- {
152
- name: 'nfts',
153
- type: 'NFTs',
154
- },
155
- {
156
- name: 'skip_locked_check',
157
- type: 'bool',
158
- },
159
- ],
160
- type: 'Vec<DispatchError>',
161
- },
162
- },
163
- version: 2,
164
- },
32
+ NftApi: [
33
+ { methods: v2_2.NftApiV2, version: 2 },
34
+ { methods: v1_3.NftApiV1, version: 1 },
165
35
  ],
36
+ PipsApi: [{ methods: v1_4.PipsApiV1, version: 1 }],
37
+ ProtocolFeeApi: [{ methods: v1_5.ProtocolApiV1, version: 1 }],
166
38
  SettlementApi: [
167
- {
168
- methods: {
169
- get_execute_instruction_info: {
170
- description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
171
- params: [
172
- {
173
- name: 'instruction_id',
174
- type: 'InstructionId',
175
- },
176
- ],
177
- type: 'Option<ExecuteInstructionInfo>',
178
- },
179
- get_affirmation_count: {
180
- 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.',
181
- params: [
182
- {
183
- name: 'instruction_id',
184
- type: 'InstructionId',
185
- },
186
- {
187
- name: 'portfolios',
188
- type: 'Vec<PortfolioId>',
189
- },
190
- ],
191
- type: 'AffirmationCount',
192
- },
193
- get_transfer_report: {
194
- description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
195
- params: [
196
- {
197
- name: 'leg',
198
- type: 'Leg',
199
- },
200
- {
201
- name: 'skip_locked_check',
202
- type: 'bool',
203
- },
204
- ],
205
- type: 'Vec<DispatchError>',
206
- },
207
- get_execute_instruction_report: {
208
- description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
209
- params: [
210
- {
211
- name: 'instruction_id',
212
- type: 'InstructionId',
213
- },
214
- ],
215
- type: 'Vec<DispatchError>',
216
- },
217
- },
218
- version: 2,
219
- },
220
- ],
221
- PipsApi: [
222
- {
223
- methods: {
224
- get_votes: {
225
- description: 'Summary of votes of a proposal given by index',
226
- params: [
227
- {
228
- name: 'index',
229
- type: 'PipId',
230
- },
231
- ],
232
- type: 'VoteCount',
233
- },
234
- proposed_by: {
235
- description: 'Retrieves proposal indices started by address',
236
- params: [
237
- {
238
- name: 'address',
239
- type: 'AccountId',
240
- },
241
- ],
242
- type: 'Vec<PipId>',
243
- },
244
- voted_on: {
245
- description: 'Retrieves proposal address indices voted on',
246
- params: [
247
- {
248
- name: 'address',
249
- type: 'AccountId',
250
- },
251
- ],
252
- type: 'Vec<PipId>',
253
- },
254
- },
255
- version: 1,
256
- },
257
- ],
258
- ProtocolFeeApi: [
259
- {
260
- methods: {
261
- compute_fee: {
262
- description: 'Gets the fee of a chargeable extrinsic operation',
263
- params: [
264
- {
265
- name: 'op',
266
- type: 'ProtocolOp',
267
- },
268
- ],
269
- type: 'CappedFee',
270
- },
271
- },
272
- version: 1,
273
- },
274
- ],
275
- StakingApi: [
276
- {
277
- methods: {
278
- get_curve: {
279
- description: 'Retrieves curves parameters',
280
- params: [],
281
- type: 'Vec<(Perbill, Perbill)>',
282
- },
283
- },
284
- version: 1,
285
- },
286
- ],
287
- ComplianceApi: [
288
- {
289
- methods: {
290
- compliance_report: {
291
- description: 'Checks all compliance requirements for the given asset_id.',
292
- params: [
293
- {
294
- name: 'asset_id',
295
- type: 'AssetID',
296
- },
297
- {
298
- name: 'sender_identity',
299
- type: 'IdentityId',
300
- },
301
- {
302
- name: 'receiver_identity',
303
- type: 'IdentityId',
304
- },
305
- ],
306
- type: 'Result<ComplianceReport, DispatchError>',
307
- },
308
- },
309
- version: 2,
310
- },
39
+ { methods: v2_3.SettlementApiV2, version: 2 },
40
+ { methods: v1_6.SettlementApiV1, version: 1 },
311
41
  ],
42
+ StakingApi: [{ methods: v1_7.StakingApiV1, version: 1 }],
312
43
  };
44
+ exports.default = exports.runtime;
313
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,QAAQ,EAAE;QACR;YACE,OAAO,EAAE;gBACP,eAAe,EAAE;oBACf,WAAW,EACT,+FAA+F;oBACjG,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,kBAAkB;4BACxB,IAAI,EAAE,aAAa;yBACpB;wBACD;4BACE,IAAI,EAAE,oBAAoB;4BAC1B,IAAI,EAAE,aAAa;yBACpB;wBACD;4BACE,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,SAAS;yBAChB;wBACD;4BACE,IAAI,EAAE,gBAAgB;4BACtB,IAAI,EAAE,SAAS;yBAChB;wBACD;4BACE,IAAI,EAAE,mBAAmB;4BACzB,IAAI,EAAE,MAAM;yBACb;qBACF;oBACD,IAAI,EAAE,oBAAoB;iBAC3B;aACF;YACD,OAAO,EAAE,CAAC;SACX;KACF;IACD,QAAQ,EAAE;QACR;YACE,OAAO,EAAE;gBACP,qBAAqB,EAAE;oBACrB,WAAW,EAAE,qBAAqB;oBAClC,MAAM,EAAE,EAAE;oBACV,IAAI,EAAE,aAAa;iBACpB;gBACD,oBAAoB,EAAE;oBACpB,WAAW,EAAE,oBAAoB;oBACjC,MAAM,EAAE,EAAE;oBACV,IAAI,EAAE,aAAa;iBACpB;aACF;YACD,OAAO,EAAE,CAAC;SACX;KACF;IACD,WAAW,EAAE;QACX;YACE,OAAO,EAAE;gBACP,yBAAyB,EAAE;oBACzB,WAAW,EAAE,8DAA8D;oBAC3E,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,KAAK;4BACX,IAAI,EAAE,YAAY;yBACnB;wBACD;4BACE,IAAI,EAAE,aAAa;4BACnB,IAAI,EAAE,aAAa;yBACpB;qBACF;oBACD,IAAI,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IACxD,aAAa,EAAE;QACb,EAAE,OAAO,EAAE,oBAAe,EAAE,OAAO,EAAE,CAAC,EAAE;QACxC,EAAE,OAAO,EAAE,oBAAe,EAAE,OAAO,EAAE,CAAC,EAAE;KACzC;IACD,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;CACpD,CAAC;AAEF,kBAAe,eAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const NftApiV1: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/runtime/nftApi/v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAWnD,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NftApiV1 = void 0;
4
+ exports.NftApiV1 = {
5
+ validate_nft_transfer: {
6
+ description: 'Verifies if and the sender and receiver are not the same, if both have valid balances, if the sender owns the nft, and if all compliance rules are being respected.',
7
+ params: [
8
+ { name: 'sender_portfolio', type: 'PortfolioId' },
9
+ { name: 'receiver_portfolio', type: 'PortfolioId' },
10
+ { name: 'nfts', type: 'NFTs' },
11
+ ],
12
+ type: 'DispatchResult',
13
+ },
14
+ };
15
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/runtime/nftApi/v1.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAmC;IACtD,qBAAqB,EAAE;QACrB,WAAW,EACT,qKAAqK;QACvK,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,aAAa,EAAE;YACjD,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,aAAa,EAAE;YACnD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;SAC/B;QACD,IAAI,EAAE,gBAAgB;KACvB;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const NftApiV2: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../../src/runtime/nftApi/v2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAYnD,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NftApiV2 = void 0;
4
+ exports.NftApiV2 = {
5
+ transfer_report: {
6
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
7
+ params: [
8
+ { name: 'sender_portfolio', type: 'PortfolioId' },
9
+ { name: 'receiver_portfolio', type: 'PortfolioId' },
10
+ { name: 'nfts', type: 'NFTs' },
11
+ { name: 'skip_locked_check', type: 'bool' },
12
+ ],
13
+ type: 'Vec<DispatchError>',
14
+ },
15
+ };
16
+ //# sourceMappingURL=v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.js","sourceRoot":"","sources":["../../../src/runtime/nftApi/v2.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAmC;IACtD,eAAe,EAAE;QACf,WAAW,EACT,+FAA+F;QACjG,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,aAAa,EAAE;YACjD,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,aAAa,EAAE;YACnD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;YAC9B,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5C;QACD,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const PipsApiV1: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/runtime/pipsApi/v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAgBpD,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PipsApiV1 = void 0;
4
+ exports.PipsApiV1 = {
5
+ get_votes: {
6
+ description: 'Summary of votes of a proposal given by index',
7
+ params: [{ name: 'index', type: 'PipId' }],
8
+ type: 'VoteCount',
9
+ },
10
+ proposed_by: {
11
+ description: 'Retrieves proposal indices started by address',
12
+ params: [{ name: 'address', type: 'AccountId' }],
13
+ type: 'Vec<PipId>',
14
+ },
15
+ voted_on: {
16
+ description: 'Retrieves proposal address indices voted on',
17
+ params: [{ name: 'address', type: 'AccountId' }],
18
+ type: 'Vec<PipId>',
19
+ },
20
+ };
21
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/runtime/pipsApi/v1.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAmC;IACvD,SAAS,EAAE;QACT,WAAW,EAAE,+CAA+C;QAC5D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,WAAW,EAAE;QACX,WAAW,EAAE,+CAA+C;QAC5D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;QAChD,IAAI,EAAE,YAAY;KACnB;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,6CAA6C;QAC1D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;QAChD,IAAI,EAAE,YAAY;KACnB;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const ProtocolApiV1: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/runtime/protocolApi/v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAMxD,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProtocolApiV1 = void 0;
4
+ exports.ProtocolApiV1 = {
5
+ compute_fee: {
6
+ description: 'Gets the fee of a chargeable extrinsic operation',
7
+ params: [{ name: 'op', type: 'ProtocolOp' }],
8
+ type: 'CappedFee',
9
+ },
10
+ };
11
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/runtime/protocolApi/v1.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAmC;IAC3D,WAAW,EAAE;QACX,WAAW,EAAE,kDAAkD;QAC/D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAC5C,IAAI,EAAE,WAAW;KAClB;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const SettlementApiV1: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/runtime/settlementApi/v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA+B1D,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettlementApiV1 = void 0;
4
+ exports.SettlementApiV1 = {
5
+ get_execute_instruction_info: {
6
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
7
+ params: [{ name: 'instruction_id', type: 'InstructionId' }],
8
+ type: 'ExecuteInstructionInfo',
9
+ },
10
+ get_affirmation_count: {
11
+ 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.',
12
+ params: [
13
+ { name: 'instruction_id', type: 'InstructionId' },
14
+ { name: 'portfolios', type: 'Vec<PortfolioId>' },
15
+ ],
16
+ type: 'AffirmationCount',
17
+ },
18
+ get_transfer_report: {
19
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
20
+ params: [
21
+ { name: 'leg', type: 'Leg' },
22
+ { name: 'skip_locked_check', type: 'bool' },
23
+ ],
24
+ type: 'Vec<DispatchError>',
25
+ },
26
+ get_execute_instruction_report: {
27
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
28
+ params: [{ name: 'instruction_id', type: 'InstructionId' }],
29
+ type: 'Vec<DispatchError>',
30
+ },
31
+ };
32
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/runtime/settlementApi/v1.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAmC;IAC7D,4BAA4B,EAAE;QAC5B,WAAW,EACT,wHAAwH;QAC1H,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QAC3D,IAAI,EAAE,wBAAwB;KAC/B;IACD,qBAAqB,EAAE;QACrB,WAAW,EACT,kKAAkK;QACpK,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE;YACjD,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE;SACjD;QACD,IAAI,EAAE,kBAAkB;KACzB;IACD,mBAAmB,EAAE;QACnB,WAAW,EACT,+FAA+F;QACjG,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;YAC5B,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5C;QACD,IAAI,EAAE,oBAAoB;KAC3B;IACD,8BAA8B,EAAE;QAC9B,WAAW,EACT,gGAAgG;QAClG,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QAC3D,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const SettlementApiV2: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../../src/runtime/settlementApi/v2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA+B1D,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettlementApiV2 = void 0;
4
+ exports.SettlementApiV2 = {
5
+ get_execute_instruction_info: {
6
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
7
+ params: [{ name: 'instruction_id', type: 'InstructionId' }],
8
+ type: 'Option<ExecuteInstructionInfo>',
9
+ },
10
+ get_affirmation_count: {
11
+ 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.',
12
+ params: [
13
+ { name: 'instruction_id', type: 'InstructionId' },
14
+ { name: 'portfolios', type: 'Vec<PortfolioId>' },
15
+ ],
16
+ type: 'AffirmationCount',
17
+ },
18
+ get_transfer_report: {
19
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
20
+ params: [
21
+ { name: 'leg', type: 'Leg' },
22
+ { name: 'skip_locked_check', type: 'bool' },
23
+ ],
24
+ type: 'Vec<DispatchError>',
25
+ },
26
+ get_execute_instruction_report: {
27
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
28
+ params: [{ name: 'instruction_id', type: 'InstructionId' }],
29
+ type: 'Vec<DispatchError>',
30
+ },
31
+ };
32
+ //# sourceMappingURL=v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.js","sourceRoot":"","sources":["../../../src/runtime/settlementApi/v2.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAmC;IAC7D,4BAA4B,EAAE;QAC5B,WAAW,EACT,wHAAwH;QAC1H,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QAC3D,IAAI,EAAE,gCAAgC;KACvC;IACD,qBAAqB,EAAE;QACrB,WAAW,EACT,kKAAkK;QACpK,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE;YACjD,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE;SACjD;QACD,IAAI,EAAE,kBAAkB;KACzB;IACD,mBAAmB,EAAE;QACnB,WAAW,EACT,+FAA+F;QACjG,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;YAC5B,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5C;QACD,IAAI,EAAE,oBAAoB;KAC3B;IACD,8BAA8B,EAAE;QAC9B,WAAW,EACT,gGAAgG;QAClG,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QAC3D,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DefinitionCall } from '@polkadot/types/types';
2
+ export declare const StakingApiV1: Record<string, DefinitionCall>;
3
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/runtime/stakingApi/v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAMvD,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StakingApiV1 = void 0;
4
+ exports.StakingApiV1 = {
5
+ get_curve: {
6
+ description: 'Retrieves curves parameters',
7
+ params: [],
8
+ type: 'Vec<(Perbill, Perbill)>',
9
+ },
10
+ };
11
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/runtime/stakingApi/v1.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAmC;IAC1D,SAAS,EAAE;QACT,WAAW,EAAE,6BAA6B;QAC1C,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,yBAAyB;KAChC;CACF,CAAC"}
package/types/5.0.x.json CHANGED
@@ -558,7 +558,8 @@
558
558
  "authorization_data": "AuthorizationData",
559
559
  "authorized_by": "IdentityId",
560
560
  "expiry": "Option<Moment>",
561
- "auth_id": "u64"
561
+ "auth_id": "u64",
562
+ "count": "u32"
562
563
  },
563
564
  "AuthorizationData": {
564
565
  "_enum": {
package/types/5.1.x.json CHANGED
@@ -670,7 +670,8 @@
670
670
  "authorization_data": "AuthorizationData",
671
671
  "authorized_by": "IdentityId",
672
672
  "expiry": "Option<Moment>",
673
- "auth_id": "u64"
673
+ "auth_id": "u64",
674
+ "count": "u32"
674
675
  },
675
676
  "AuthorizationData": {
676
677
  "_enum": {
package/types/5.2.x.json CHANGED
@@ -673,7 +673,8 @@
673
673
  "authorization_data": "AuthorizationData",
674
674
  "authorized_by": "IdentityId",
675
675
  "expiry": "Option<Moment>",
676
- "auth_id": "u64"
676
+ "auth_id": "u64",
677
+ "count": "u32"
677
678
  },
678
679
  "AuthorizationData": {
679
680
  "_enum": {