@polymeshassociation/polymesh-types 5.15.0 → 6.0.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.
Files changed (228) hide show
  1. package/CHANGELOG.md +8 -116
  2. package/generated/types.d.ts +897 -0
  3. package/generated/types.d.ts.map +1 -0
  4. package/generated/types.js +950 -0
  5. package/generated/types.js.map +1 -0
  6. package/package.json +20 -5
  7. package/polkadot/asset/definitions.d.ts +16 -0
  8. package/polkadot/asset/definitions.d.ts.map +1 -0
  9. package/polkadot/asset/definitions.js +44 -0
  10. package/polkadot/asset/definitions.js.map +1 -0
  11. package/polkadot/asset/index.d.ts +2 -0
  12. package/polkadot/asset/index.d.ts.map +1 -0
  13. package/polkadot/asset/index.js +20 -0
  14. package/polkadot/asset/index.js.map +1 -0
  15. package/polkadot/asset/types.d.ts +2 -0
  16. package/polkadot/asset/types.d.ts.map +1 -0
  17. package/polkadot/asset/types.js +5 -0
  18. package/polkadot/asset/types.js.map +1 -0
  19. package/polkadot/augment-api-consts.d.ts +509 -0
  20. package/polkadot/augment-api-consts.d.ts.map +1 -0
  21. package/polkadot/augment-api-consts.js +8 -0
  22. package/polkadot/augment-api-consts.js.map +1 -0
  23. package/polkadot/augment-api-errors.d.ts +2235 -0
  24. package/polkadot/augment-api-errors.d.ts.map +1 -0
  25. package/polkadot/augment-api-errors.js +8 -0
  26. package/polkadot/augment-api-errors.js.map +1 -0
  27. package/polkadot/augment-api-events.d.ts +3070 -0
  28. package/polkadot/augment-api-events.d.ts.map +1 -0
  29. package/polkadot/augment-api-events.js +8 -0
  30. package/polkadot/augment-api-events.js.map +1 -0
  31. package/polkadot/augment-api-query.d.ts +2536 -0
  32. package/polkadot/augment-api-query.d.ts.map +1 -0
  33. package/polkadot/augment-api-query.js +8 -0
  34. package/polkadot/augment-api-query.js.map +1 -0
  35. package/polkadot/augment-api-rpc.d.ts +807 -0
  36. package/polkadot/augment-api-rpc.d.ts.map +1 -0
  37. package/polkadot/augment-api-rpc.js +8 -0
  38. package/polkadot/augment-api-rpc.js.map +1 -0
  39. package/polkadot/augment-api-runtime.d.ts +379 -0
  40. package/polkadot/augment-api-runtime.d.ts.map +1 -0
  41. package/polkadot/augment-api-runtime.js +8 -0
  42. package/polkadot/augment-api-runtime.js.map +1 -0
  43. package/polkadot/augment-api-tx.d.ts +6527 -0
  44. package/polkadot/augment-api-tx.d.ts.map +1 -0
  45. package/polkadot/augment-api-tx.js +8 -0
  46. package/polkadot/augment-api-tx.js.map +1 -0
  47. package/polkadot/augment-api.d.ts +8 -0
  48. package/polkadot/augment-api.d.ts.map +1 -0
  49. package/polkadot/augment-api.js +12 -0
  50. package/polkadot/augment-api.js.map +1 -0
  51. package/polkadot/augment-types.d.ts +1246 -0
  52. package/polkadot/augment-types.d.ts.map +1 -0
  53. package/polkadot/augment-types.js +8 -0
  54. package/polkadot/augment-types.js.map +1 -0
  55. package/polkadot/compliance/definitions.d.ts +15 -0
  56. package/polkadot/compliance/definitions.d.ts.map +1 -0
  57. package/polkadot/compliance/definitions.js +26 -0
  58. package/polkadot/compliance/definitions.js.map +1 -0
  59. package/polkadot/compliance/index.d.ts +2 -0
  60. package/polkadot/compliance/index.d.ts.map +1 -0
  61. package/polkadot/compliance/index.js +20 -0
  62. package/polkadot/compliance/index.js.map +1 -0
  63. package/polkadot/compliance/types.d.ts +2 -0
  64. package/polkadot/compliance/types.d.ts.map +1 -0
  65. package/polkadot/compliance/types.js +5 -0
  66. package/polkadot/compliance/types.js.map +1 -0
  67. package/polkadot/definitions.d.ts +11 -0
  68. package/polkadot/definitions.d.ts.map +1 -0
  69. package/polkadot/definitions.js +27 -0
  70. package/polkadot/definitions.js.map +1 -0
  71. package/polkadot/group/definitions.d.ts +25 -0
  72. package/polkadot/group/definitions.d.ts.map +1 -0
  73. package/polkadot/group/definitions.js +30 -0
  74. package/polkadot/group/definitions.js.map +1 -0
  75. package/polkadot/group/index.d.ts +2 -0
  76. package/polkadot/group/index.d.ts.map +1 -0
  77. package/polkadot/group/index.js +20 -0
  78. package/polkadot/group/index.js.map +1 -0
  79. package/polkadot/group/types.d.ts +2 -0
  80. package/polkadot/group/types.d.ts.map +1 -0
  81. package/polkadot/group/types.js +5 -0
  82. package/polkadot/group/types.js.map +1 -0
  83. package/polkadot/identity/definitions.d.ts +61 -0
  84. package/polkadot/identity/definitions.d.ts.map +1 -0
  85. package/polkadot/identity/definitions.js +124 -0
  86. package/polkadot/identity/definitions.js.map +1 -0
  87. package/polkadot/identity/index.d.ts +2 -0
  88. package/polkadot/identity/index.d.ts.map +1 -0
  89. package/polkadot/identity/index.js +20 -0
  90. package/polkadot/identity/index.js.map +1 -0
  91. package/polkadot/identity/types.d.ts +2 -0
  92. package/polkadot/identity/types.d.ts.map +1 -0
  93. package/polkadot/identity/types.js +5 -0
  94. package/polkadot/identity/types.js.map +1 -0
  95. package/polkadot/index.d.ts +2 -0
  96. package/polkadot/index.d.ts.map +1 -0
  97. package/polkadot/index.js +20 -0
  98. package/polkadot/index.js.map +1 -0
  99. package/polkadot/lookup.d.ts +4788 -0
  100. package/polkadot/lookup.d.ts.map +1 -0
  101. package/polkadot/lookup.js +5559 -0
  102. package/polkadot/lookup.js.map +1 -0
  103. package/polkadot/nft/definitions.d.ts +16 -0
  104. package/polkadot/nft/definitions.d.ts.map +1 -0
  105. package/polkadot/nft/definitions.js +39 -0
  106. package/polkadot/nft/definitions.js.map +1 -0
  107. package/polkadot/nft/index.d.ts +2 -0
  108. package/polkadot/nft/index.d.ts.map +1 -0
  109. package/polkadot/nft/index.js +20 -0
  110. package/polkadot/nft/index.js.map +1 -0
  111. package/polkadot/nft/types.d.ts +2 -0
  112. package/polkadot/nft/types.d.ts.map +1 -0
  113. package/polkadot/nft/types.js +5 -0
  114. package/polkadot/nft/types.js.map +1 -0
  115. package/polkadot/pips/definitions.d.ts +34 -0
  116. package/polkadot/pips/definitions.d.ts.map +1 -0
  117. package/polkadot/pips/definitions.js +56 -0
  118. package/polkadot/pips/definitions.js.map +1 -0
  119. package/polkadot/pips/index.d.ts +2 -0
  120. package/polkadot/pips/index.d.ts.map +1 -0
  121. package/polkadot/pips/index.js +20 -0
  122. package/polkadot/pips/index.js.map +1 -0
  123. package/polkadot/pips/types.d.ts +2 -0
  124. package/polkadot/pips/types.d.ts.map +1 -0
  125. package/polkadot/pips/types.js +5 -0
  126. package/polkadot/pips/types.js.map +1 -0
  127. package/polkadot/polymesh/definitions.d.ts +701 -0
  128. package/polkadot/polymesh/definitions.d.ts.map +1 -0
  129. package/polkadot/polymesh/definitions.js +1234 -0
  130. package/polkadot/polymesh/definitions.js.map +1 -0
  131. package/polkadot/polymesh/index.d.ts +2 -0
  132. package/polkadot/polymesh/index.d.ts.map +1 -0
  133. package/polkadot/polymesh/index.js +20 -0
  134. package/polkadot/polymesh/index.js.map +1 -0
  135. package/polkadot/polymesh/types.d.ts +790 -0
  136. package/polkadot/polymesh/types.d.ts.map +1 -0
  137. package/polkadot/polymesh/types.js +5 -0
  138. package/polkadot/polymesh/types.js.map +1 -0
  139. package/polkadot/protocolFee/definitions.d.ts +16 -0
  140. package/polkadot/protocolFee/definitions.d.ts.map +1 -0
  141. package/polkadot/protocolFee/definitions.js +24 -0
  142. package/polkadot/protocolFee/definitions.js.map +1 -0
  143. package/polkadot/protocolFee/index.d.ts +2 -0
  144. package/polkadot/protocolFee/index.d.ts.map +1 -0
  145. package/polkadot/protocolFee/index.js +20 -0
  146. package/polkadot/protocolFee/index.js.map +1 -0
  147. package/polkadot/protocolFee/types.d.ts +2 -0
  148. package/polkadot/protocolFee/types.d.ts.map +1 -0
  149. package/polkadot/protocolFee/types.js +5 -0
  150. package/polkadot/protocolFee/types.js.map +1 -0
  151. package/polkadot/registry.d.ts +366 -0
  152. package/polkadot/registry.d.ts.map +1 -0
  153. package/polkadot/registry.js +8 -0
  154. package/polkadot/registry.js.map +1 -0
  155. package/polkadot/schema.d.ts +897 -0
  156. package/polkadot/schema.d.ts.map +1 -0
  157. package/polkadot/schema.js +1612 -0
  158. package/polkadot/schema.js.map +1 -0
  159. package/polkadot/settlement/definitions.d.ts +41 -0
  160. package/polkadot/settlement/definitions.d.ts.map +1 -0
  161. package/polkadot/settlement/definitions.js +69 -0
  162. package/polkadot/settlement/definitions.js.map +1 -0
  163. package/polkadot/settlement/index.d.ts +2 -0
  164. package/polkadot/settlement/index.d.ts.map +1 -0
  165. package/polkadot/settlement/index.js +20 -0
  166. package/polkadot/settlement/index.js.map +1 -0
  167. package/polkadot/settlement/types.d.ts +2 -0
  168. package/polkadot/settlement/types.d.ts.map +1 -0
  169. package/polkadot/settlement/types.js +5 -0
  170. package/polkadot/settlement/types.js.map +1 -0
  171. package/polkadot/staking/definitions.d.ts +16 -0
  172. package/polkadot/staking/definitions.d.ts.map +1 -0
  173. package/polkadot/staking/definitions.js +19 -0
  174. package/polkadot/staking/definitions.js.map +1 -0
  175. package/polkadot/staking/index.d.ts +2 -0
  176. package/polkadot/staking/index.d.ts.map +1 -0
  177. package/polkadot/staking/index.js +20 -0
  178. package/polkadot/staking/index.js.map +1 -0
  179. package/polkadot/staking/types.d.ts +2 -0
  180. package/polkadot/staking/types.d.ts.map +1 -0
  181. package/polkadot/staking/types.js +5 -0
  182. package/polkadot/staking/types.js.map +1 -0
  183. package/polkadot/types-lookup.d.ts +5930 -0
  184. package/polkadot/types-lookup.d.ts.map +1 -0
  185. package/polkadot/types-lookup.js +8 -0
  186. package/polkadot/types-lookup.js.map +1 -0
  187. package/polkadot/types.d.ts +11 -0
  188. package/polkadot/types.d.ts.map +1 -0
  189. package/polkadot/types.js +29 -0
  190. package/polkadot/types.js.map +1 -0
  191. package/rpc/index.js +2 -2
  192. package/rpc/index.js.map +1 -1
  193. package/runtime/assetApi/v4.d.ts.map +1 -1
  194. package/runtime/assetApi/v4.js +20 -5
  195. package/runtime/assetApi/v4.js.map +1 -1
  196. package/runtime/complianceApi/v2.d.ts.map +1 -1
  197. package/runtime/complianceApi/v2.js +12 -3
  198. package/runtime/complianceApi/v2.js.map +1 -1
  199. package/runtime/identityApi/v4.d.ts.map +1 -1
  200. package/runtime/identityApi/v4.js +46 -10
  201. package/runtime/identityApi/v4.js.map +1 -1
  202. package/runtime/index.js +2 -2
  203. package/runtime/index.js.map +1 -1
  204. package/runtime/nftApi/v2.d.ts.map +1 -1
  205. package/runtime/nftApi/v2.js +16 -4
  206. package/runtime/nftApi/v2.js.map +1 -1
  207. package/runtime/pipsApi/v1.d.ts.map +1 -1
  208. package/runtime/pipsApi/v1.js +18 -3
  209. package/runtime/pipsApi/v1.js.map +1 -1
  210. package/runtime/protocolFeeApi/v1.d.ts +3 -0
  211. package/runtime/protocolFeeApi/v1.d.ts.map +1 -0
  212. package/runtime/protocolFeeApi/v1.js +16 -0
  213. package/runtime/protocolFeeApi/v1.js.map +1 -0
  214. package/runtime/settlementApi/v2.d.ts.map +1 -1
  215. package/runtime/settlementApi/v2.js +28 -6
  216. package/runtime/settlementApi/v2.js.map +1 -1
  217. package/runtime/statisticsApi/v0.js +1 -1
  218. package/runtime/statisticsApi/v0.js.map +1 -1
  219. package/types/7.0.x.json +2 -1
  220. package/types/7.3.x.json +658 -0
  221. package/types/index.d.ts +393 -0
  222. package/types/index.d.ts.map +1 -1
  223. package/types/index.js +3 -1
  224. package/types/index.js.map +1 -1
  225. package/runtime/protocolApi/v1.d.ts +0 -3
  226. package/runtime/protocolApi/v1.d.ts.map +0 -1
  227. package/runtime/protocolApi/v1.js +0 -11
  228. package/runtime/protocolApi/v1.js.map +0 -1
@@ -0,0 +1,1612 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ types: {
5
+ PolymeshAssetId: '[u8; 16]',
6
+ IdentityId: '[u8; 32]',
7
+ Ticker: '[u8; 12]',
8
+ CddId: '[u8; 32]',
9
+ PalletName: 'Text',
10
+ ExtrinsicName: 'Text',
11
+ AuthorizationNonce: 'u64',
12
+ TargetIdAuthorization: {
13
+ targetId: 'IdentityId',
14
+ nonce: 'AuthorizationNonce',
15
+ expiresAt: 'PolymeshMoment',
16
+ },
17
+ Receipt: {
18
+ uid: 'u64',
19
+ instructionId: 'InstructionId',
20
+ legId: 'LegId',
21
+ senderIdentity: 'IdentityId',
22
+ receiverIdentity: 'IdentityId',
23
+ ticker: 'Ticker',
24
+ amount: 'Balance',
25
+ },
26
+ FundraiserId: 'u64',
27
+ FundraiserReceipt: {
28
+ uid: 'u64',
29
+ fundraiserId: 'FundraiserId',
30
+ legId: 'LegId',
31
+ senderIdentity: 'IdentityId',
32
+ receiverIdentity: 'IdentityId',
33
+ ticker: 'Ticker',
34
+ amount: 'Balance',
35
+ },
36
+ AssetPermissions: {
37
+ _enum: {
38
+ Whole: '',
39
+ These: 'BTreeSet<PolymeshAssetId>',
40
+ Except: 'BTreeSet<PolymeshAssetId>',
41
+ },
42
+ },
43
+ PortfolioPermissions: {
44
+ _enum: {
45
+ Whole: '',
46
+ These: 'BTreeSet<PortfolioId>',
47
+ Except: 'BTreeSet<PortfolioId>',
48
+ },
49
+ },
50
+ ExtrinsicNames: {
51
+ _enum: {
52
+ Whole: '',
53
+ These: 'BTreeSet<ExtrinsicName>',
54
+ Except: 'BTreeSet<ExtrinsicName>',
55
+ },
56
+ },
57
+ PalletPermissions: {
58
+ extrinsics: 'ExtrinsicNames',
59
+ },
60
+ ExtrinsicPermissions: {
61
+ _enum: {
62
+ Whole: '',
63
+ These: 'BTreeMap<PalletName, PalletPermissions>',
64
+ Except: 'BTreeMap<PalletName, PalletPermissions>',
65
+ },
66
+ },
67
+ Permissions: {
68
+ asset: 'AssetPermissions',
69
+ extrinsic: 'ExtrinsicPermissions',
70
+ portfolio: 'PortfolioPermissions',
71
+ },
72
+ Signatory: {
73
+ _enum: {
74
+ Identity: 'IdentityId',
75
+ Account: 'AccountId',
76
+ },
77
+ },
78
+ SecondaryKey: {
79
+ key: 'AccountId',
80
+ permissions: 'Permissions',
81
+ },
82
+ KeyIdentityData: {
83
+ identity: 'IdentityId',
84
+ permissions: 'Option<Permissions>',
85
+ },
86
+ CountryCode: {
87
+ _enum: [
88
+ 'AF',
89
+ 'AX',
90
+ 'AL',
91
+ 'DZ',
92
+ 'AS',
93
+ 'AD',
94
+ 'AO',
95
+ 'AI',
96
+ 'AQ',
97
+ 'AG',
98
+ 'AR',
99
+ 'AM',
100
+ 'AW',
101
+ 'AU',
102
+ 'AT',
103
+ 'AZ',
104
+ 'BS',
105
+ 'BH',
106
+ 'BD',
107
+ 'BB',
108
+ 'BY',
109
+ 'BE',
110
+ 'BZ',
111
+ 'BJ',
112
+ 'BM',
113
+ 'BT',
114
+ 'BO',
115
+ 'BA',
116
+ 'BW',
117
+ 'BV',
118
+ 'BR',
119
+ 'VG',
120
+ 'IO',
121
+ 'BN',
122
+ 'BG',
123
+ 'BF',
124
+ 'BI',
125
+ 'KH',
126
+ 'CM',
127
+ 'CA',
128
+ 'CV',
129
+ 'KY',
130
+ 'CF',
131
+ 'TD',
132
+ 'CL',
133
+ 'CN',
134
+ 'HK',
135
+ 'MO',
136
+ 'CX',
137
+ 'CC',
138
+ 'CO',
139
+ 'KM',
140
+ 'CG',
141
+ 'CD',
142
+ 'CK',
143
+ 'CR',
144
+ 'CI',
145
+ 'HR',
146
+ 'CU',
147
+ 'CY',
148
+ 'CZ',
149
+ 'DK',
150
+ 'DJ',
151
+ 'DM',
152
+ 'DO',
153
+ 'EC',
154
+ 'EG',
155
+ 'SV',
156
+ 'GQ',
157
+ 'ER',
158
+ 'EE',
159
+ 'ET',
160
+ 'FK',
161
+ 'FO',
162
+ 'FJ',
163
+ 'FI',
164
+ 'FR',
165
+ 'GF',
166
+ 'PF',
167
+ 'TF',
168
+ 'GA',
169
+ 'GM',
170
+ 'GE',
171
+ 'DE',
172
+ 'GH',
173
+ 'GI',
174
+ 'GR',
175
+ 'GL',
176
+ 'GD',
177
+ 'GP',
178
+ 'GU',
179
+ 'GT',
180
+ 'GG',
181
+ 'GN',
182
+ 'GW',
183
+ 'GY',
184
+ 'HT',
185
+ 'HM',
186
+ 'VA',
187
+ 'HN',
188
+ 'HU',
189
+ 'IS',
190
+ 'IN',
191
+ 'ID',
192
+ 'IR',
193
+ 'IQ',
194
+ 'IE',
195
+ 'IM',
196
+ 'IL',
197
+ 'IT',
198
+ 'JM',
199
+ 'JP',
200
+ 'JE',
201
+ 'JO',
202
+ 'KZ',
203
+ 'KE',
204
+ 'KI',
205
+ 'KP',
206
+ 'KR',
207
+ 'KW',
208
+ 'KG',
209
+ 'LA',
210
+ 'LV',
211
+ 'LB',
212
+ 'LS',
213
+ 'LR',
214
+ 'LY',
215
+ 'LI',
216
+ 'LT',
217
+ 'LU',
218
+ 'MK',
219
+ 'MG',
220
+ 'MW',
221
+ 'MY',
222
+ 'MV',
223
+ 'ML',
224
+ 'MT',
225
+ 'MH',
226
+ 'MQ',
227
+ 'MR',
228
+ 'MU',
229
+ 'YT',
230
+ 'MX',
231
+ 'FM',
232
+ 'MD',
233
+ 'MC',
234
+ 'MN',
235
+ 'ME',
236
+ 'MS',
237
+ 'MA',
238
+ 'MZ',
239
+ 'MM',
240
+ 'NA',
241
+ 'NR',
242
+ 'NP',
243
+ 'NL',
244
+ 'AN',
245
+ 'NC',
246
+ 'NZ',
247
+ 'NI',
248
+ 'NE',
249
+ 'NG',
250
+ 'NU',
251
+ 'NF',
252
+ 'MP',
253
+ 'NO',
254
+ 'OM',
255
+ 'PK',
256
+ 'PW',
257
+ 'PS',
258
+ 'PA',
259
+ 'PG',
260
+ 'PY',
261
+ 'PE',
262
+ 'PH',
263
+ 'PN',
264
+ 'PL',
265
+ 'PT',
266
+ 'PR',
267
+ 'QA',
268
+ 'RE',
269
+ 'RO',
270
+ 'RU',
271
+ 'RW',
272
+ 'BL',
273
+ 'SH',
274
+ 'KN',
275
+ 'LC',
276
+ 'MF',
277
+ 'PM',
278
+ 'VC',
279
+ 'WS',
280
+ 'SM',
281
+ 'ST',
282
+ 'SA',
283
+ 'SN',
284
+ 'RS',
285
+ 'SC',
286
+ 'SL',
287
+ 'SG',
288
+ 'SK',
289
+ 'SI',
290
+ 'SB',
291
+ 'SO',
292
+ 'ZA',
293
+ 'GS',
294
+ 'SS',
295
+ 'ES',
296
+ 'LK',
297
+ 'SD',
298
+ 'SR',
299
+ 'SJ',
300
+ 'SZ',
301
+ 'SE',
302
+ 'CH',
303
+ 'SY',
304
+ 'TW',
305
+ 'TJ',
306
+ 'TZ',
307
+ 'TH',
308
+ 'TL',
309
+ 'TG',
310
+ 'TK',
311
+ 'TO',
312
+ 'TT',
313
+ 'TN',
314
+ 'TR',
315
+ 'TM',
316
+ 'TC',
317
+ 'TV',
318
+ 'UG',
319
+ 'UA',
320
+ 'AE',
321
+ 'GB',
322
+ 'US',
323
+ 'UM',
324
+ 'UY',
325
+ 'UZ',
326
+ 'VU',
327
+ 'VE',
328
+ 'VN',
329
+ 'VI',
330
+ 'WF',
331
+ 'EH',
332
+ 'YE',
333
+ 'ZM',
334
+ 'ZW',
335
+ 'BQ',
336
+ 'CW',
337
+ 'SX',
338
+ ],
339
+ },
340
+ Scope: {
341
+ _enum: {
342
+ Identity: 'IdentityId',
343
+ Asset: 'PolymeshAssetId',
344
+ Custom: 'Vec<u8>',
345
+ },
346
+ },
347
+ CustomClaimTypeId: 'u32',
348
+ Claim: {
349
+ _enum: {
350
+ Accredited: 'Scope',
351
+ Affiliate: 'Scope',
352
+ BuyLockup: 'Scope',
353
+ SellLockup: 'Scope',
354
+ CustomerDueDiligence: 'CddId',
355
+ KnowYourCustomer: 'Scope',
356
+ Jurisdiction: '(CountryCode, Scope)',
357
+ Exempted: 'Scope',
358
+ Blocked: 'Scope',
359
+ Custom: '(CustomClaimTypeId, Option<Scope>)',
360
+ },
361
+ },
362
+ ClaimType: {
363
+ _enum: {
364
+ Accredited: '',
365
+ Affiliate: '',
366
+ BuyLockup: '',
367
+ SellLockup: '',
368
+ CustomerDueDiligence: '',
369
+ KnowYourCustomer: '',
370
+ Jurisdiction: '',
371
+ Exempted: '',
372
+ Blocked: '',
373
+ Custom: 'CustomClaimTypeId',
374
+ },
375
+ },
376
+ IdentityClaim: {
377
+ claimIssuer: 'IdentityId',
378
+ issuanceDate: 'PolymeshMoment',
379
+ lastUpdateDate: 'PolymeshMoment',
380
+ expiry: 'Option<PolymeshMoment>',
381
+ claim: 'Claim',
382
+ },
383
+ ComplianceRequirementResult: {
384
+ senderConditions: 'Vec<ConditionResult>',
385
+ receiverConditions: 'Vec<ConditionResult>',
386
+ id: 'u32',
387
+ result: 'bool',
388
+ },
389
+ ConditionType: {
390
+ _enum: {
391
+ IsPresent: 'Claim',
392
+ IsAbsent: 'Claim',
393
+ IsAnyOf: 'Vec<Claim>',
394
+ IsNoneOf: 'Vec<Claim>',
395
+ IsIdentity: 'TargetIdentity',
396
+ },
397
+ },
398
+ TrustedFor: {
399
+ _enum: {
400
+ Any: '',
401
+ Specific: 'Vec<ClaimType>',
402
+ },
403
+ },
404
+ TrustedIssuer: {
405
+ issuer: 'IdentityId',
406
+ trustedFor: 'TrustedFor',
407
+ },
408
+ Condition: {
409
+ conditionType: 'ConditionType',
410
+ issuers: 'Vec<TrustedIssuer>',
411
+ },
412
+ ConditionResult: {
413
+ condition: 'Condition',
414
+ result: 'bool',
415
+ },
416
+ PipId: 'u32',
417
+ Authorization: {
418
+ authorizationData: 'AuthorizationData',
419
+ authorizedBy: 'IdentityId',
420
+ expiry: 'Option<PolymeshMoment>',
421
+ authId: 'u64',
422
+ count: 'u32',
423
+ },
424
+ AuthorizationData: {
425
+ _enum: {
426
+ AttestPrimaryKeyRotation: 'IdentityId',
427
+ RotatePrimaryKey: '',
428
+ TransferTicker: 'Ticker',
429
+ AddMultiSigSigner: 'AccountId',
430
+ TransferAssetOwnership: 'PolymeshAssetId',
431
+ JoinIdentity: 'Permissions',
432
+ PortfolioCustody: 'PortfolioId',
433
+ BecomeAgent: '(PolymeshAssetId, AgentGroup)',
434
+ AddRelayerPayingKey: '(AccountId32, AccountId32, u128)',
435
+ RotatePrimaryKeyToSecondary: 'Permissions',
436
+ },
437
+ },
438
+ Percentage: 'Permill',
439
+ StatClaim: {
440
+ _enum: {
441
+ Accredited: 'bool',
442
+ Affiliate: 'bool',
443
+ Jurisdiction: 'Option<CountryCode>',
444
+ },
445
+ },
446
+ TransferCondition: {
447
+ _enum: {
448
+ MaxInvestorCount: 'u64',
449
+ MaxInvestorOwnership: 'Percentage',
450
+ ClaimCount: '(StatClaim, IdentityId, u64, Option<u64>)',
451
+ ClaimOwnership: '(StatClaim, IdentityId, Percentage, Percentage)',
452
+ },
453
+ },
454
+ AssetComplianceResult: {
455
+ paused: 'bool',
456
+ requirements: 'Vec<ComplianceRequirementResult>',
457
+ result: 'bool',
458
+ },
459
+ ProtocolOp: {
460
+ _enum: [
461
+ 'AssetRegisterTicker',
462
+ 'AssetIssue',
463
+ 'AssetAddDocuments',
464
+ 'AssetCreateAsset',
465
+ 'CheckpointCreateSchedule',
466
+ 'ComplianceManagerAddComplianceRequirement',
467
+ 'IdentityCddRegisterDid',
468
+ 'IdentityAddClaim',
469
+ 'IdentityAddSecondaryKeysWithAuthorization',
470
+ 'PipsPropose',
471
+ 'ContractsPutCode',
472
+ 'CorporateBallotAttachBallot',
473
+ 'CapitalDistributionDistribute',
474
+ 'NFTCreateCollection',
475
+ 'NFTMint',
476
+ 'IdentityCreateChildIdentity',
477
+ ],
478
+ },
479
+ CddStatus: {
480
+ _enum: {
481
+ Ok: 'IdentityId',
482
+ Err: 'Vec<u8>',
483
+ },
484
+ },
485
+ AssetDidResult: {
486
+ _enum: {
487
+ Ok: 'IdentityId',
488
+ Err: 'Vec<u8>',
489
+ },
490
+ },
491
+ RpcDidRecordsSuccess: {
492
+ primaryKey: 'AccountId',
493
+ secondaryKeys: 'Vec<SecondaryKey>',
494
+ },
495
+ RpcDidRecords: {
496
+ _enum: {
497
+ Success: 'RpcDidRecordsSuccess',
498
+ IdNotFound: 'Vec<u8>',
499
+ },
500
+ },
501
+ VoteCountProposalFound: {
502
+ ayes: 'u64',
503
+ nays: 'u64',
504
+ },
505
+ VoteCount: {
506
+ _enum: {
507
+ ProposalFound: 'VoteCountProposalFound',
508
+ ProposalNotFound: '',
509
+ },
510
+ },
511
+ CappedFee: 'u64',
512
+ AuthorizationType: {
513
+ _enum: {
514
+ AttestPrimaryKeyRotation: '',
515
+ RotatePrimaryKey: '',
516
+ TransferTicker: '',
517
+ AddMultiSigSigner: '',
518
+ TransferAssetOwnership: '',
519
+ JoinIdentity: '',
520
+ PortfolioCustody: '',
521
+ BecomeAgent: '',
522
+ AddRelayerPayingKey: '',
523
+ RotatePrimaryKeyToSecondary: '',
524
+ },
525
+ },
526
+ DidStatus: {
527
+ _enum: {
528
+ Unknown: '',
529
+ Exists: '',
530
+ CddVerified: '',
531
+ },
532
+ },
533
+ PortfolioNumber: 'u64',
534
+ PortfolioKind: {
535
+ _enum: {
536
+ Default: '',
537
+ User: 'PortfolioNumber',
538
+ },
539
+ },
540
+ PortfolioId: {
541
+ did: 'IdentityId',
542
+ kind: 'PortfolioKind',
543
+ },
544
+ PolymeshMoment: 'u64',
545
+ InstructionId: 'u64',
546
+ LegId: 'u64',
547
+ TargetIdentity: {
548
+ _enum: {
549
+ ExternalAgent: '',
550
+ Specific: 'IdentityId',
551
+ },
552
+ },
553
+ CanTransferGranularReturn: {
554
+ _enum: {
555
+ Ok: 'GranularCanTransferResult',
556
+ Err: 'DispatchError',
557
+ },
558
+ },
559
+ GranularCanTransferResult: {
560
+ invalidGranularity: 'bool',
561
+ selfTransfer: 'bool',
562
+ invalidReceiverCdd: 'bool',
563
+ invalidSenderCdd: 'bool',
564
+ receiverCustodianError: 'bool',
565
+ senderCustodianError: 'bool',
566
+ senderInsufficientBalance: 'bool',
567
+ portfolioValidityResult: 'PortfolioValidityResult',
568
+ assetFrozen: 'bool',
569
+ transferConditionResult: 'Vec<TransferConditionResult>',
570
+ complianceResult: 'AssetComplianceResult',
571
+ result: 'bool',
572
+ consumedWeight: 'Option<Weight>',
573
+ },
574
+ PortfolioValidityResult: {
575
+ receiverIsSamePortfolio: 'bool',
576
+ senderPortfolioDoesNotExist: 'bool',
577
+ receiverPortfolioDoesNotExist: 'bool',
578
+ senderInsufficientBalance: 'bool',
579
+ result: 'bool',
580
+ },
581
+ TransferConditionResult: {
582
+ condition: 'TransferCondition',
583
+ result: 'bool',
584
+ },
585
+ AGId: 'u32',
586
+ AgentGroup: {
587
+ _enum: {
588
+ Full: '',
589
+ Custom: 'AGId',
590
+ ExceptMeta: '',
591
+ PolymeshV1CAA: '',
592
+ PolymeshV1PIA: '',
593
+ },
594
+ },
595
+ Member: {
596
+ id: 'IdentityId',
597
+ expiryAt: 'Option<PolymeshMoment>',
598
+ inactiveFrom: 'Option<PolymeshMoment>',
599
+ },
600
+ NFTId: 'u64',
601
+ NFTs: {
602
+ assetId: 'PolymeshAssetId',
603
+ ids: 'Vec<NFTId>',
604
+ },
605
+ FungibleLeg: {
606
+ sender: 'PortfolioId',
607
+ receiver: 'PortfolioId',
608
+ assetId: 'PolymeshAssetId',
609
+ amount: 'Balance',
610
+ },
611
+ NonFungibleLeg: {
612
+ sender: 'PortfolioId',
613
+ receiver: 'PortfolioId',
614
+ nfts: 'NFTs',
615
+ },
616
+ OffChainLeg: {
617
+ senderIdentity: 'IdentityId',
618
+ receiverIdentity: 'IdentityId',
619
+ ticker: 'Ticker',
620
+ amount: 'Balance',
621
+ },
622
+ Leg: {
623
+ _enum: {
624
+ Fungible: 'FungibleLeg',
625
+ NonFungible: 'NonFungibleLeg',
626
+ OffChain: 'OffChainLeg',
627
+ },
628
+ },
629
+ ExecuteInstructionInfo: {
630
+ fungibleTokens: 'u32',
631
+ nonFungibleTokens: 'u32',
632
+ offChainAssets: 'u32',
633
+ consumedWeight: 'Weight',
634
+ error: 'Option<String>',
635
+ },
636
+ AssetCount: {
637
+ fungibleTokens: 'u32',
638
+ nonFungibleTokens: 'u32',
639
+ offChainAssets: 'u32',
640
+ },
641
+ AffirmationCount: {
642
+ senderAssetCount: 'AssetCount',
643
+ receiverAssetCount: 'AssetCount',
644
+ offchainCount: 'u32',
645
+ },
646
+ ComplianceReport: {
647
+ anyRequirementSatisfied: 'bool',
648
+ pausedCompliance: 'bool',
649
+ requirements: 'Vec<RequirementReport>',
650
+ },
651
+ RequirementReport: {
652
+ requirementSatisfied: 'bool',
653
+ id: 'u32',
654
+ senderConditions: 'Vec<ConditionReport>',
655
+ receiverConditions: 'Vec<ConditionReport>',
656
+ },
657
+ ConditionReport: {
658
+ satisfied: 'bool',
659
+ condition: 'Condition',
660
+ },
661
+ },
662
+ rpc: {
663
+ identity: {
664
+ isIdentityHasValidCdd: {
665
+ description: 'use to tell whether the given did has valid cdd claim or not',
666
+ params: [
667
+ {
668
+ name: 'did',
669
+ type: 'IdentityId',
670
+ isOptional: false,
671
+ },
672
+ {
673
+ name: 'buffer_time',
674
+ type: 'u64',
675
+ isOptional: true,
676
+ },
677
+ {
678
+ name: 'blockHash',
679
+ type: 'Hash',
680
+ isOptional: true,
681
+ },
682
+ ],
683
+ type: 'CddStatus',
684
+ },
685
+ getDidRecords: {
686
+ description: 'Used to get the did record values for a given DID',
687
+ params: [
688
+ {
689
+ name: 'did',
690
+ type: 'IdentityId',
691
+ isOptional: false,
692
+ },
693
+ {
694
+ name: 'blockHash',
695
+ type: 'Hash',
696
+ isOptional: true,
697
+ },
698
+ ],
699
+ type: 'RpcDidRecords',
700
+ },
701
+ getDidStatus: {
702
+ description: 'Retrieve status of the DID',
703
+ params: [
704
+ {
705
+ name: 'did',
706
+ type: 'Vec<IdentityId>',
707
+ isOptional: false,
708
+ },
709
+ {
710
+ name: 'blockHash',
711
+ type: 'Hash',
712
+ isOptional: true,
713
+ },
714
+ ],
715
+ type: 'Vec<DidStatus>',
716
+ },
717
+ getFilteredAuthorizations: {
718
+ description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
719
+ params: [
720
+ {
721
+ name: 'signatory',
722
+ type: 'Signatory',
723
+ isOptional: false,
724
+ },
725
+ {
726
+ name: 'allow_expired',
727
+ type: 'bool',
728
+ isOptional: false,
729
+ },
730
+ {
731
+ name: 'auth_type',
732
+ type: 'AuthorizationType',
733
+ isOptional: true,
734
+ },
735
+ {
736
+ name: 'blockHash',
737
+ type: 'Hash',
738
+ isOptional: true,
739
+ },
740
+ ],
741
+ type: 'Vec<Authorization>',
742
+ },
743
+ getKeyIdentityData: {
744
+ description: 'Query relation between a signing key and a DID',
745
+ params: [
746
+ {
747
+ name: 'acc',
748
+ type: 'AccountId',
749
+ isOptional: false,
750
+ },
751
+ {
752
+ name: 'blockHash',
753
+ type: 'Hash',
754
+ isOptional: true,
755
+ },
756
+ ],
757
+ type: 'Option<KeyIdentityData>',
758
+ },
759
+ validCDDClaims: {
760
+ description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
761
+ params: [
762
+ {
763
+ name: 'target_identity',
764
+ type: 'IdentityId',
765
+ isOptional: false,
766
+ },
767
+ {
768
+ name: 'cdd_checker_leeway',
769
+ type: 'u64',
770
+ isOptional: true,
771
+ },
772
+ {
773
+ name: 'blockHash',
774
+ type: 'Hash',
775
+ isOptional: true,
776
+ },
777
+ ],
778
+ type: 'Vec<IdentityClaim>',
779
+ },
780
+ },
781
+ pips: {
782
+ getVotes: {
783
+ description: 'Summary of votes of a proposal given by index',
784
+ params: [
785
+ {
786
+ name: 'index',
787
+ type: 'PipId',
788
+ isOptional: false,
789
+ },
790
+ {
791
+ name: 'blockHash',
792
+ type: 'Hash',
793
+ isOptional: true,
794
+ },
795
+ ],
796
+ type: 'VoteCount',
797
+ },
798
+ proposedBy: {
799
+ description: 'Retrieves proposal indices started by address',
800
+ params: [
801
+ {
802
+ name: 'address',
803
+ type: 'AccountId',
804
+ isOptional: false,
805
+ },
806
+ {
807
+ name: 'blockHash',
808
+ type: 'Hash',
809
+ isOptional: true,
810
+ },
811
+ ],
812
+ type: 'Vec<PipId>',
813
+ },
814
+ votedOn: {
815
+ description: 'Retrieves proposal address indices voted on',
816
+ params: [
817
+ {
818
+ name: 'address',
819
+ type: 'AccountId',
820
+ isOptional: false,
821
+ },
822
+ {
823
+ name: 'blockHash',
824
+ type: 'Hash',
825
+ isOptional: true,
826
+ },
827
+ ],
828
+ type: 'Vec<PipId>',
829
+ },
830
+ },
831
+ protocolFee: {
832
+ computeFee: {
833
+ description: 'Gets the fee of a chargeable extrinsic operation',
834
+ params: [
835
+ {
836
+ name: 'op',
837
+ type: 'ProtocolOp',
838
+ isOptional: false,
839
+ },
840
+ {
841
+ name: 'blockHash',
842
+ type: 'Hash',
843
+ isOptional: true,
844
+ },
845
+ ],
846
+ type: 'CappedFee',
847
+ },
848
+ },
849
+ staking: {
850
+ getCurve: {
851
+ description: 'Retrieves curves parameters',
852
+ params: [
853
+ {
854
+ name: 'blockHash',
855
+ type: 'Hash',
856
+ isOptional: true,
857
+ },
858
+ ],
859
+ type: 'Vec<(Perbill, Perbill)>',
860
+ },
861
+ },
862
+ asset: {
863
+ transferReport: {
864
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
865
+ params: [
866
+ {
867
+ name: 'sender_portfolio',
868
+ type: 'PortfolioId',
869
+ isOptional: false,
870
+ },
871
+ {
872
+ name: 'receiver_portfolio',
873
+ type: 'PortfolioId',
874
+ isOptional: false,
875
+ },
876
+ {
877
+ name: 'asset_id',
878
+ type: 'PolymeshAssetId',
879
+ isOptional: false,
880
+ },
881
+ {
882
+ name: 'transfer_value',
883
+ type: 'Balance',
884
+ isOptional: false,
885
+ },
886
+ {
887
+ name: 'skip_locked_check',
888
+ type: 'bool',
889
+ isOptional: false,
890
+ },
891
+ {
892
+ name: 'blockHash',
893
+ type: 'Hash',
894
+ isOptional: true,
895
+ },
896
+ ],
897
+ type: 'Vec<DispatchError>',
898
+ },
899
+ },
900
+ group: {
901
+ getCDDValidMembers: {
902
+ description: 'Get the CDD members',
903
+ params: [
904
+ {
905
+ name: 'blockHash',
906
+ type: 'Hash',
907
+ isOptional: true,
908
+ },
909
+ ],
910
+ type: 'Vec<Member>',
911
+ },
912
+ getGCValidMembers: {
913
+ description: 'Get the GC members',
914
+ params: [
915
+ {
916
+ name: 'blockHash',
917
+ type: 'Hash',
918
+ isOptional: true,
919
+ },
920
+ ],
921
+ type: 'Vec<Member>',
922
+ },
923
+ },
924
+ nft: {
925
+ transferReport: {
926
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
927
+ params: [
928
+ {
929
+ name: 'sender_portfolio',
930
+ type: 'PortfolioId',
931
+ isOptional: false,
932
+ },
933
+ {
934
+ name: 'receiver_portfolio',
935
+ type: 'PortfolioId',
936
+ isOptional: false,
937
+ },
938
+ {
939
+ name: 'nfts',
940
+ type: 'NFTs',
941
+ isOptional: false,
942
+ },
943
+ {
944
+ name: 'skip_locked_check',
945
+ type: 'bool',
946
+ isOptional: false,
947
+ },
948
+ {
949
+ name: 'blockHash',
950
+ type: 'Hash',
951
+ isOptional: true,
952
+ },
953
+ ],
954
+ type: 'Vec<DispatchError>',
955
+ },
956
+ },
957
+ settlement: {
958
+ getExecuteInstructionInfo: {
959
+ description: 'Returns an ExecuteInstructionInfo instance, containing the consumed weight and the number of tokens in the instruction.',
960
+ params: [
961
+ {
962
+ name: 'instruction_id',
963
+ type: 'InstructionId',
964
+ isOptional: false,
965
+ },
966
+ {
967
+ name: 'blockHash',
968
+ type: 'Hash',
969
+ isOptional: true,
970
+ },
971
+ ],
972
+ type: 'Option<ExecuteInstructionInfo>',
973
+ },
974
+ getAffirmationCount: {
975
+ 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',
976
+ params: [
977
+ {
978
+ name: 'instruction_id',
979
+ type: 'InstructionId',
980
+ isOptional: false,
981
+ },
982
+ {
983
+ name: 'portfolios',
984
+ type: 'Vec<PortfolioId>',
985
+ isOptional: false,
986
+ },
987
+ {
988
+ name: 'blockHash',
989
+ type: 'Hash',
990
+ isOptional: true,
991
+ },
992
+ ],
993
+ type: 'AffirmationCount',
994
+ },
995
+ getExecuteInstructionReport: {
996
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
997
+ params: [
998
+ {
999
+ name: 'instruction_id',
1000
+ type: 'InstructionId',
1001
+ },
1002
+ ],
1003
+ type: 'Vec<DispatchError>',
1004
+ },
1005
+ getTransferReport: {
1006
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1007
+ params: [
1008
+ {
1009
+ name: 'leg',
1010
+ type: 'Leg',
1011
+ },
1012
+ {
1013
+ name: 'skip_locked_check',
1014
+ type: 'bool',
1015
+ },
1016
+ ],
1017
+ type: 'Vec<DispatchError>',
1018
+ },
1019
+ },
1020
+ compliance: {
1021
+ complianceReport: {
1022
+ description: 'Checks all compliance requirements for the given asset.',
1023
+ params: [
1024
+ {
1025
+ name: 'asset_id',
1026
+ type: 'PolymeshAssetId',
1027
+ },
1028
+ {
1029
+ name: 'sender_identity',
1030
+ type: 'IdentityId',
1031
+ },
1032
+ {
1033
+ name: 'receiver_identity',
1034
+ type: 'IdentityId',
1035
+ },
1036
+ ],
1037
+ type: 'Result<ComplianceReport, DispatchError>',
1038
+ },
1039
+ },
1040
+ },
1041
+ runtime: {
1042
+ AssetApi: [
1043
+ {
1044
+ methods: {
1045
+ transfer_report: {
1046
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1047
+ params: [
1048
+ {
1049
+ name: 'sender_portfolio',
1050
+ type: 'PortfolioId',
1051
+ },
1052
+ {
1053
+ name: 'receiver_portfolio',
1054
+ type: 'PortfolioId',
1055
+ },
1056
+ {
1057
+ name: 'asset_id',
1058
+ type: 'PolymeshAssetId',
1059
+ },
1060
+ {
1061
+ name: 'transfer_value',
1062
+ type: 'Balance',
1063
+ },
1064
+ {
1065
+ name: 'skip_locked_check',
1066
+ type: 'bool',
1067
+ },
1068
+ ],
1069
+ type: 'Vec<DispatchError>',
1070
+ },
1071
+ },
1072
+ version: 4,
1073
+ },
1074
+ {
1075
+ methods: {
1076
+ can_transfer_granular: {
1077
+ 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.',
1078
+ params: [
1079
+ {
1080
+ name: 'from_custodian',
1081
+ type: 'Option<IdentityId>',
1082
+ },
1083
+ {
1084
+ name: 'from_portfolio',
1085
+ type: 'PortfolioId',
1086
+ },
1087
+ {
1088
+ name: 'to_custodian',
1089
+ type: 'Option<IdentityId>',
1090
+ },
1091
+ {
1092
+ name: 'to_portfolio',
1093
+ type: 'PortfolioId',
1094
+ },
1095
+ {
1096
+ name: 'ticker',
1097
+ type: 'Ticker',
1098
+ },
1099
+ {
1100
+ name: 'value',
1101
+ type: 'Balance',
1102
+ },
1103
+ ],
1104
+ type: 'CanTransferGranularReturn',
1105
+ },
1106
+ },
1107
+ version: 3,
1108
+ },
1109
+ ],
1110
+ ComplianceApi: [
1111
+ {
1112
+ methods: {
1113
+ compliance_report: {
1114
+ description: 'Checks all compliance requirements for the given asset_id.',
1115
+ params: [
1116
+ {
1117
+ name: 'asset_id',
1118
+ type: 'PolymeshAssetId',
1119
+ },
1120
+ {
1121
+ name: 'sender_identity',
1122
+ type: 'IdentityId',
1123
+ },
1124
+ {
1125
+ name: 'receiver_identity',
1126
+ type: 'IdentityId',
1127
+ },
1128
+ ],
1129
+ type: 'Result<ComplianceReport, DispatchError>',
1130
+ },
1131
+ },
1132
+ version: 2,
1133
+ },
1134
+ {
1135
+ methods: {
1136
+ compliance_report: {
1137
+ description: 'Checks all compliance requirements for the given ticker.',
1138
+ params: [
1139
+ {
1140
+ name: 'ticker',
1141
+ type: 'Ticker',
1142
+ },
1143
+ {
1144
+ name: 'sender_identity',
1145
+ type: 'IdentityId',
1146
+ },
1147
+ {
1148
+ name: 'receiver_identity',
1149
+ type: 'IdentityId',
1150
+ },
1151
+ ],
1152
+ type: 'Result<ComplianceReport, DispatchError>',
1153
+ },
1154
+ },
1155
+ version: 1,
1156
+ },
1157
+ ],
1158
+ GroupApi: [
1159
+ {
1160
+ methods: {
1161
+ get_cdd_valid_members: {
1162
+ description: 'Get the CDD members',
1163
+ params: [],
1164
+ type: 'Vec<Member>',
1165
+ },
1166
+ get_gc_valid_members: {
1167
+ description: 'Get the GC members',
1168
+ params: [],
1169
+ type: 'Vec<Member>',
1170
+ },
1171
+ },
1172
+ version: 1,
1173
+ },
1174
+ ],
1175
+ IdentityApi: [
1176
+ {
1177
+ methods: {
1178
+ is_identity_has_valid_cdd: {
1179
+ description: 'use to tell whether the given did has valid cdd claim or not',
1180
+ params: [
1181
+ {
1182
+ name: 'did',
1183
+ type: 'IdentityId',
1184
+ },
1185
+ {
1186
+ name: 'buffer_time',
1187
+ type: 'Option<u64>',
1188
+ },
1189
+ ],
1190
+ type: 'CddStatus',
1191
+ },
1192
+ get_did_records: {
1193
+ description: 'Used to get the did record values for a given DID',
1194
+ params: [
1195
+ {
1196
+ name: 'did',
1197
+ type: 'IdentityId',
1198
+ },
1199
+ ],
1200
+ type: 'RpcDidRecords',
1201
+ },
1202
+ get_did_status: {
1203
+ description: 'Retrieve status of the DID',
1204
+ params: [
1205
+ {
1206
+ name: 'did',
1207
+ type: 'Vec<IdentityId>',
1208
+ },
1209
+ ],
1210
+ type: 'Vec<DidStatus>',
1211
+ },
1212
+ get_filtered_authorizations: {
1213
+ description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
1214
+ params: [
1215
+ {
1216
+ name: 'signatory',
1217
+ type: 'Signatory',
1218
+ },
1219
+ {
1220
+ name: 'allow_expired',
1221
+ type: 'bool',
1222
+ },
1223
+ {
1224
+ name: 'auth_type',
1225
+ type: 'Option<AuthorizationType>',
1226
+ },
1227
+ ],
1228
+ type: 'Vec<Authorization>',
1229
+ },
1230
+ get_key_identity_data: {
1231
+ description: 'Query relation between a signing key and a DID',
1232
+ params: [
1233
+ {
1234
+ name: 'acc',
1235
+ type: 'AccountId',
1236
+ },
1237
+ ],
1238
+ type: 'Option<KeyIdentityData>',
1239
+ },
1240
+ valid_cdd_claims: {
1241
+ description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
1242
+ params: [
1243
+ {
1244
+ name: 'target_identity',
1245
+ type: 'IdentityId',
1246
+ },
1247
+ {
1248
+ name: 'cdd_checker_leeway',
1249
+ type: 'Option<u64>',
1250
+ },
1251
+ ],
1252
+ type: 'Vec<IdentityClaim>',
1253
+ },
1254
+ },
1255
+ version: 4,
1256
+ },
1257
+ {
1258
+ methods: {
1259
+ is_identity_has_valid_cdd: {
1260
+ description: 'use to tell whether the given did has valid cdd claim or not',
1261
+ params: [
1262
+ {
1263
+ name: 'did',
1264
+ type: 'IdentityId',
1265
+ },
1266
+ {
1267
+ name: 'buffer_time',
1268
+ type: 'Option<u64>',
1269
+ },
1270
+ ],
1271
+ type: 'CddStatus',
1272
+ },
1273
+ get_asset_did: {
1274
+ description: 'function is used to query the given ticker DID',
1275
+ params: [
1276
+ {
1277
+ name: 'ticker',
1278
+ type: 'Ticker',
1279
+ },
1280
+ ],
1281
+ type: 'AssetDidResult',
1282
+ },
1283
+ get_did_records: {
1284
+ description: 'Used to get the did record values for a given DID',
1285
+ params: [
1286
+ {
1287
+ name: 'did',
1288
+ type: 'IdentityId',
1289
+ },
1290
+ ],
1291
+ type: 'RpcDidRecords',
1292
+ },
1293
+ get_did_status: {
1294
+ description: 'Retrieve status of the DID',
1295
+ params: [
1296
+ {
1297
+ name: 'did',
1298
+ type: 'Vec<IdentityId>',
1299
+ },
1300
+ ],
1301
+ type: 'Vec<DidStatus>',
1302
+ },
1303
+ get_filtered_authorizations: {
1304
+ description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
1305
+ params: [
1306
+ {
1307
+ name: 'signatory',
1308
+ type: 'Signatory',
1309
+ },
1310
+ {
1311
+ name: 'allow_expired',
1312
+ type: 'bool',
1313
+ },
1314
+ {
1315
+ name: 'auth_type',
1316
+ type: 'Option<AuthorizationType>',
1317
+ },
1318
+ ],
1319
+ type: 'Vec<Authorization>',
1320
+ },
1321
+ get_key_identity_data: {
1322
+ description: 'Query relation between a signing key and a DID',
1323
+ params: [
1324
+ {
1325
+ name: 'acc',
1326
+ type: 'AccountId',
1327
+ },
1328
+ ],
1329
+ type: 'Option<KeyIdentityData>',
1330
+ },
1331
+ valid_cdd_claims: {
1332
+ description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
1333
+ params: [
1334
+ {
1335
+ name: 'target_identity',
1336
+ type: 'IdentityId',
1337
+ },
1338
+ {
1339
+ name: 'cdd_checker_leeway',
1340
+ type: 'Option<u64>',
1341
+ },
1342
+ ],
1343
+ type: 'Vec<IdentityClaim>',
1344
+ },
1345
+ },
1346
+ version: 3,
1347
+ },
1348
+ ],
1349
+ NFTApi: [
1350
+ {
1351
+ methods: {
1352
+ transfer_report: {
1353
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1354
+ params: [
1355
+ {
1356
+ name: 'sender_portfolio',
1357
+ type: 'PortfolioId',
1358
+ },
1359
+ {
1360
+ name: 'receiver_portfolio',
1361
+ type: 'PortfolioId',
1362
+ },
1363
+ {
1364
+ name: 'nfts',
1365
+ type: 'NFTs',
1366
+ },
1367
+ {
1368
+ name: 'skip_locked_check',
1369
+ type: 'bool',
1370
+ },
1371
+ ],
1372
+ type: 'Vec<DispatchError>',
1373
+ },
1374
+ },
1375
+ version: 2,
1376
+ },
1377
+ {
1378
+ methods: {
1379
+ validate_nft_transfer: {
1380
+ 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.',
1381
+ params: [
1382
+ {
1383
+ name: 'sender_portfolio',
1384
+ type: 'PortfolioId',
1385
+ },
1386
+ {
1387
+ name: 'receiver_portfolio',
1388
+ type: 'PortfolioId',
1389
+ },
1390
+ {
1391
+ name: 'nfts',
1392
+ type: 'NFTs',
1393
+ },
1394
+ ],
1395
+ type: 'DispatchResult',
1396
+ },
1397
+ },
1398
+ version: 1,
1399
+ },
1400
+ ],
1401
+ PipsApi: [
1402
+ {
1403
+ methods: {
1404
+ get_votes: {
1405
+ description: 'Summary of votes of a proposal given by index',
1406
+ params: [
1407
+ {
1408
+ name: 'index',
1409
+ type: 'PipId',
1410
+ },
1411
+ ],
1412
+ type: 'VoteCount',
1413
+ },
1414
+ proposed_by: {
1415
+ description: 'Retrieves proposal indices started by address',
1416
+ params: [
1417
+ {
1418
+ name: 'address',
1419
+ type: 'AccountId',
1420
+ },
1421
+ ],
1422
+ type: 'Vec<PipId>',
1423
+ },
1424
+ voted_on: {
1425
+ description: 'Retrieves proposal address indices voted on',
1426
+ params: [
1427
+ {
1428
+ name: 'address',
1429
+ type: 'AccountId',
1430
+ },
1431
+ ],
1432
+ type: 'Vec<PipId>',
1433
+ },
1434
+ },
1435
+ version: 1,
1436
+ },
1437
+ ],
1438
+ ProtocolFeeApi: [
1439
+ {
1440
+ methods: {
1441
+ compute_fee: {
1442
+ description: 'Gets the fee of a chargeable extrinsic operation',
1443
+ params: [
1444
+ {
1445
+ name: 'op',
1446
+ type: 'ProtocolOp',
1447
+ },
1448
+ ],
1449
+ type: 'CappedFee',
1450
+ },
1451
+ },
1452
+ version: 1,
1453
+ },
1454
+ ],
1455
+ SettlementApi: [
1456
+ {
1457
+ methods: {
1458
+ get_execute_instruction_info: {
1459
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
1460
+ params: [
1461
+ {
1462
+ name: 'instruction_id',
1463
+ type: 'InstructionId',
1464
+ },
1465
+ ],
1466
+ type: 'Option<ExecuteInstructionInfo>',
1467
+ },
1468
+ get_affirmation_count: {
1469
+ 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.',
1470
+ params: [
1471
+ {
1472
+ name: 'instruction_id',
1473
+ type: 'InstructionId',
1474
+ },
1475
+ {
1476
+ name: 'portfolios',
1477
+ type: 'Vec<PortfolioId>',
1478
+ },
1479
+ ],
1480
+ type: 'AffirmationCount',
1481
+ },
1482
+ get_transfer_report: {
1483
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1484
+ params: [
1485
+ {
1486
+ name: 'leg',
1487
+ type: 'Leg',
1488
+ },
1489
+ {
1490
+ name: 'skip_locked_check',
1491
+ type: 'bool',
1492
+ },
1493
+ ],
1494
+ type: 'Vec<DispatchError>',
1495
+ },
1496
+ get_execute_instruction_report: {
1497
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
1498
+ params: [
1499
+ {
1500
+ name: 'instruction_id',
1501
+ type: 'InstructionId',
1502
+ },
1503
+ ],
1504
+ type: 'Vec<DispatchError>',
1505
+ },
1506
+ },
1507
+ version: 2,
1508
+ },
1509
+ {
1510
+ methods: {
1511
+ get_execute_instruction_info: {
1512
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
1513
+ params: [
1514
+ {
1515
+ name: 'instruction_id',
1516
+ type: 'InstructionId',
1517
+ },
1518
+ ],
1519
+ type: 'ExecuteInstructionInfo',
1520
+ },
1521
+ get_affirmation_count: {
1522
+ 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.',
1523
+ params: [
1524
+ {
1525
+ name: 'instruction_id',
1526
+ type: 'InstructionId',
1527
+ },
1528
+ {
1529
+ name: 'portfolios',
1530
+ type: 'Vec<PortfolioId>',
1531
+ },
1532
+ ],
1533
+ type: 'AffirmationCount',
1534
+ },
1535
+ get_transfer_report: {
1536
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1537
+ params: [
1538
+ {
1539
+ name: 'leg',
1540
+ type: 'Leg',
1541
+ },
1542
+ {
1543
+ name: 'skip_locked_check',
1544
+ type: 'bool',
1545
+ },
1546
+ ],
1547
+ type: 'Vec<DispatchError>',
1548
+ },
1549
+ get_execute_instruction_report: {
1550
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
1551
+ params: [
1552
+ {
1553
+ name: 'instruction_id',
1554
+ type: 'InstructionId',
1555
+ },
1556
+ ],
1557
+ type: 'Vec<DispatchError>',
1558
+ },
1559
+ },
1560
+ version: 1,
1561
+ },
1562
+ ],
1563
+ StakingApi: [
1564
+ {
1565
+ methods: {
1566
+ get_curve: {
1567
+ description: 'Retrieves curves parameters',
1568
+ params: [],
1569
+ type: 'Vec<(Perbill, Perbill)>',
1570
+ },
1571
+ },
1572
+ version: 1,
1573
+ },
1574
+ ],
1575
+ StatisticsApi: [
1576
+ {
1577
+ methods: {
1578
+ transfer_restrictions_report: {
1579
+ description: "Returns a vector containing all TransferCondition that are not being respected for the transfer. An empty vec means there's no error.",
1580
+ params: [
1581
+ {
1582
+ name: 'asset_id',
1583
+ type: 'PolymeshAssetId',
1584
+ },
1585
+ {
1586
+ name: 'sender_did',
1587
+ type: 'IdentityId',
1588
+ },
1589
+ {
1590
+ name: 'receiver_did',
1591
+ type: 'IdentityId',
1592
+ },
1593
+ {
1594
+ name: 'transfer_amount',
1595
+ type: 'Balance',
1596
+ },
1597
+ ],
1598
+ type: 'Result<Vec<TransferCondition>, DispatchError>',
1599
+ },
1600
+ },
1601
+ version: 0,
1602
+ },
1603
+ ],
1604
+ },
1605
+ signedExtensions: {
1606
+ StoreCallMetadata: {
1607
+ extrinsic: {},
1608
+ payload: {},
1609
+ },
1610
+ },
1611
+ };
1612
+ //# sourceMappingURL=schema.js.map