@polymeshassociation/polymesh-types 5.11.0 → 5.12.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.
@@ -0,0 +1,631 @@
1
+ {
2
+ "AssetID": "[u8; 16]",
3
+ "IdentityId": "[u8; 32]",
4
+ "Ticker": "[u8; 12]",
5
+ "CddId": "[u8; 32]",
6
+ "PalletName": "Text",
7
+ "ExtrinsicName": "Text",
8
+ "AssetPermissions": {
9
+ "_enum": {
10
+ "Whole": "",
11
+ "These": "Vec<AssetID>",
12
+ "Except": "Vec<AssetID>"
13
+ }
14
+ },
15
+ "PortfolioPermissions": {
16
+ "_enum": {
17
+ "Whole": "",
18
+ "These": "Vec<PortfolioId>",
19
+ "Except": "Vec<PortfolioId>"
20
+ }
21
+ },
22
+ "ExtrinsicNames": {
23
+ "_enum": {
24
+ "Whole": "",
25
+ "These": "Vec<ExtrinsicName>",
26
+ "Except": "Vec<ExtrinsicName>"
27
+ }
28
+ },
29
+ "PalletPermissions": {
30
+ "extrinsics": "ExtrinsicNames"
31
+ },
32
+ "ExtrinsicPermissions": {
33
+ "_enum": {
34
+ "Whole": "",
35
+ "These": "Vec<(PalletName, PalletPermissions)>",
36
+ "Except": "Vec<(PalletName, PalletPermissions)>"
37
+ }
38
+ },
39
+ "Permissions": {
40
+ "asset": "AssetPermissions",
41
+ "extrinsic": "ExtrinsicPermissions",
42
+ "portfolio": "PortfolioPermissions"
43
+ },
44
+ "Signatory": {
45
+ "_enum": {
46
+ "Identity": "IdentityId",
47
+ "Account": "AccountId"
48
+ }
49
+ },
50
+ "SecondaryKey": {
51
+ "key": "AccountId",
52
+ "permissions": "Permissions"
53
+ },
54
+ "KeyIdentityData": {
55
+ "identity": "IdentityId",
56
+ "permissions": "Option<Permissions>"
57
+ },
58
+ "CountryCode": {
59
+ "_enum": [
60
+ "AF",
61
+ "AX",
62
+ "AL",
63
+ "DZ",
64
+ "AS",
65
+ "AD",
66
+ "AO",
67
+ "AI",
68
+ "AQ",
69
+ "AG",
70
+ "AR",
71
+ "AM",
72
+ "AW",
73
+ "AU",
74
+ "AT",
75
+ "AZ",
76
+ "BS",
77
+ "BH",
78
+ "BD",
79
+ "BB",
80
+ "BY",
81
+ "BE",
82
+ "BZ",
83
+ "BJ",
84
+ "BM",
85
+ "BT",
86
+ "BO",
87
+ "BA",
88
+ "BW",
89
+ "BV",
90
+ "BR",
91
+ "VG",
92
+ "IO",
93
+ "BN",
94
+ "BG",
95
+ "BF",
96
+ "BI",
97
+ "KH",
98
+ "CM",
99
+ "CA",
100
+ "CV",
101
+ "KY",
102
+ "CF",
103
+ "TD",
104
+ "CL",
105
+ "CN",
106
+ "HK",
107
+ "MO",
108
+ "CX",
109
+ "CC",
110
+ "CO",
111
+ "KM",
112
+ "CG",
113
+ "CD",
114
+ "CK",
115
+ "CR",
116
+ "CI",
117
+ "HR",
118
+ "CU",
119
+ "CY",
120
+ "CZ",
121
+ "DK",
122
+ "DJ",
123
+ "DM",
124
+ "DO",
125
+ "EC",
126
+ "EG",
127
+ "SV",
128
+ "GQ",
129
+ "ER",
130
+ "EE",
131
+ "ET",
132
+ "FK",
133
+ "FO",
134
+ "FJ",
135
+ "FI",
136
+ "FR",
137
+ "GF",
138
+ "PF",
139
+ "TF",
140
+ "GA",
141
+ "GM",
142
+ "GE",
143
+ "DE",
144
+ "GH",
145
+ "GI",
146
+ "GR",
147
+ "GL",
148
+ "GD",
149
+ "GP",
150
+ "GU",
151
+ "GT",
152
+ "GG",
153
+ "GN",
154
+ "GW",
155
+ "GY",
156
+ "HT",
157
+ "HM",
158
+ "VA",
159
+ "HN",
160
+ "HU",
161
+ "IS",
162
+ "IN",
163
+ "ID",
164
+ "IR",
165
+ "IQ",
166
+ "IE",
167
+ "IM",
168
+ "IL",
169
+ "IT",
170
+ "JM",
171
+ "JP",
172
+ "JE",
173
+ "JO",
174
+ "KZ",
175
+ "KE",
176
+ "KI",
177
+ "KP",
178
+ "KR",
179
+ "KW",
180
+ "KG",
181
+ "LA",
182
+ "LV",
183
+ "LB",
184
+ "LS",
185
+ "LR",
186
+ "LY",
187
+ "LI",
188
+ "LT",
189
+ "LU",
190
+ "MK",
191
+ "MG",
192
+ "MW",
193
+ "MY",
194
+ "MV",
195
+ "ML",
196
+ "MT",
197
+ "MH",
198
+ "MQ",
199
+ "MR",
200
+ "MU",
201
+ "YT",
202
+ "MX",
203
+ "FM",
204
+ "MD",
205
+ "MC",
206
+ "MN",
207
+ "ME",
208
+ "MS",
209
+ "MA",
210
+ "MZ",
211
+ "MM",
212
+ "NA",
213
+ "NR",
214
+ "NP",
215
+ "NL",
216
+ "AN",
217
+ "NC",
218
+ "NZ",
219
+ "NI",
220
+ "NE",
221
+ "NG",
222
+ "NU",
223
+ "NF",
224
+ "MP",
225
+ "NO",
226
+ "OM",
227
+ "PK",
228
+ "PW",
229
+ "PS",
230
+ "PA",
231
+ "PG",
232
+ "PY",
233
+ "PE",
234
+ "PH",
235
+ "PN",
236
+ "PL",
237
+ "PT",
238
+ "PR",
239
+ "QA",
240
+ "RE",
241
+ "RO",
242
+ "RU",
243
+ "RW",
244
+ "BL",
245
+ "SH",
246
+ "KN",
247
+ "LC",
248
+ "MF",
249
+ "PM",
250
+ "VC",
251
+ "WS",
252
+ "SM",
253
+ "ST",
254
+ "SA",
255
+ "SN",
256
+ "RS",
257
+ "SC",
258
+ "SL",
259
+ "SG",
260
+ "SK",
261
+ "SI",
262
+ "SB",
263
+ "SO",
264
+ "ZA",
265
+ "GS",
266
+ "SS",
267
+ "ES",
268
+ "LK",
269
+ "SD",
270
+ "SR",
271
+ "SJ",
272
+ "SZ",
273
+ "SE",
274
+ "CH",
275
+ "SY",
276
+ "TW",
277
+ "TJ",
278
+ "TZ",
279
+ "TH",
280
+ "TL",
281
+ "TG",
282
+ "TK",
283
+ "TO",
284
+ "TT",
285
+ "TN",
286
+ "TR",
287
+ "TM",
288
+ "TC",
289
+ "TV",
290
+ "UG",
291
+ "UA",
292
+ "AE",
293
+ "GB",
294
+ "US",
295
+ "UM",
296
+ "UY",
297
+ "UZ",
298
+ "VU",
299
+ "VE",
300
+ "VN",
301
+ "VI",
302
+ "WF",
303
+ "EH",
304
+ "YE",
305
+ "ZM",
306
+ "ZW",
307
+ "BQ",
308
+ "CW",
309
+ "SX"
310
+ ]
311
+ },
312
+ "Scope": {
313
+ "_enum": {
314
+ "Identity": "IdentityId",
315
+ "Asset": "AssetID",
316
+ "Custom": "Vec<u8>"
317
+ }
318
+ },
319
+ "CustomClaimTypeId": "u32",
320
+ "Claim": {
321
+ "_enum": {
322
+ "Accredited": "Scope",
323
+ "Affiliate": "Scope",
324
+ "BuyLockup": "Scope",
325
+ "SellLockup": "Scope",
326
+ "CustomerDueDiligence": "CddId",
327
+ "KnowYourCustomer": "Scope",
328
+ "Jurisdiction": "(CountryCode, Scope)",
329
+ "Exempted": "Scope",
330
+ "Blocked": "Scope",
331
+ "Custom": "(CustomClaimTypeId, Option<Scope>)"
332
+ }
333
+ },
334
+ "ClaimType": {
335
+ "_enum": {
336
+ "Accredited": "",
337
+ "Affiliate": "",
338
+ "BuyLockup": "",
339
+ "SellLockup": "",
340
+ "CustomerDueDiligence": "",
341
+ "KnowYourCustomer": "",
342
+ "Jurisdiction": "",
343
+ "Exempted": "",
344
+ "Blocked": "",
345
+ "Custom": "CustomClaimTypeId"
346
+ }
347
+ },
348
+ "IdentityClaim": {
349
+ "claim_issuer": "IdentityId",
350
+ "issuance_date": "Moment",
351
+ "last_update_date": "Moment",
352
+ "expiry": "Option<Moment>",
353
+ "claim": "Claim"
354
+ },
355
+ "ComplianceRequirementResult": {
356
+ "sender_conditions": "Vec<ConditionResult>",
357
+ "receiver_conditions": "Vec<ConditionResult>",
358
+ "id": "u32",
359
+ "result": "bool"
360
+ },
361
+ "ConditionType": {
362
+ "_enum": {
363
+ "IsPresent": "Claim",
364
+ "IsAbsent": "Claim",
365
+ "IsAnyOf": "Vec<Claim>",
366
+ "IsNoneOf": "Vec<Claim>",
367
+ "IsIdentity": "TargetIdentity"
368
+ }
369
+ },
370
+ "TrustedFor": {
371
+ "_enum": {
372
+ "Any": "",
373
+ "Specific": "Vec<ClaimType>"
374
+ }
375
+ },
376
+ "TrustedIssuer": {
377
+ "issuer": "IdentityId",
378
+ "trusted_for": "TrustedFor"
379
+ },
380
+ "Condition": {
381
+ "condition_type": "ConditionType",
382
+ "issuers": "Vec<TrustedIssuer>"
383
+ },
384
+ "ConditionResult": {
385
+ "condition": "Condition",
386
+ "result": "bool"
387
+ },
388
+ "PipId": "u32",
389
+ "Authorization": {
390
+ "authorization_data": "AuthorizationData",
391
+ "authorized_by": "IdentityId",
392
+ "expiry": "Option<Moment>",
393
+ "auth_id": "u64"
394
+ },
395
+ "AuthorizationData": {
396
+ "_enum": {
397
+ "AttestPrimaryKeyRotation": "IdentityId",
398
+ "RotatePrimaryKey": "",
399
+ "TransferTicker": "Ticker",
400
+ "AddMultiSigSigner": "AccountId",
401
+ "TransferAssetOwnership": "AssetID",
402
+ "JoinIdentity": "Permissions",
403
+ "PortfolioCustody": "PortfolioId",
404
+ "BecomeAgent": "(AssetID, AgentGroup)",
405
+ "AddRelayerPayingKey": "(AccountId, AccountId, Balance)",
406
+ "RotatePrimaryKeyToSecondary": "Permissions"
407
+ }
408
+ },
409
+ "Percentage": "Permill",
410
+ "StatClaim": {
411
+ "_enum": {
412
+ "Accredited": "bool",
413
+ "Affiliate": "bool",
414
+ "Jurisdiction": "Option<CountryCode>"
415
+ }
416
+ },
417
+ "TransferCondition": {
418
+ "_enum": {
419
+ "MaxInvestorCount": "u64",
420
+ "MaxInvestorOwnership": "Percentage",
421
+ "ClaimCount": "(StatClaim, IdentityId, u64, Option<u64>)",
422
+ "ClaimOwnership": "(StatClaim, IdentityId, Percentage, Percentage)"
423
+ }
424
+ },
425
+ "AssetComplianceResult": {
426
+ "paused": "bool",
427
+ "requirements": "Vec<ComplianceRequirementResult>",
428
+ "result": "bool"
429
+ },
430
+ "ProtocolOp": {
431
+ "_enum": [
432
+ "AssetRegisterTicker",
433
+ "AssetIssue",
434
+ "AssetAddDocuments",
435
+ "AssetCreateAsset",
436
+ "CheckpointCreateSchedule",
437
+ "ComplianceManagerAddComplianceRequirement",
438
+ "IdentityCddRegisterDid",
439
+ "IdentityAddClaim",
440
+ "IdentityAddSecondaryKeysWithAuthorization",
441
+ "PipsPropose",
442
+ "ContractsPutCode",
443
+ "CorporateBallotAttachBallot",
444
+ "CapitalDistributionDistribute",
445
+ "NFTCreateCollection",
446
+ "NFTMint",
447
+ "IdentityCreateChildIdentity"
448
+ ]
449
+ },
450
+ "CddStatus": {
451
+ "_enum": {
452
+ "Ok": "IdentityId",
453
+ "Err": "Vec<u8>"
454
+ }
455
+ },
456
+ "AssetDidResult": {
457
+ "_enum": {
458
+ "Ok": "IdentityId",
459
+ "Err": "Vec<u8>"
460
+ }
461
+ },
462
+ "RpcDidRecordsSuccess": {
463
+ "primary_key": "AccountId",
464
+ "secondary_keys": "Vec<SecondaryKey>"
465
+ },
466
+ "RpcDidRecords": {
467
+ "_enum": {
468
+ "Success": "RpcDidRecordsSuccess",
469
+ "IdNotFound": "Vec<u8>"
470
+ }
471
+ },
472
+ "VoteCountProposalFound": {
473
+ "ayes": "u64",
474
+ "nays": "u64"
475
+ },
476
+ "VoteCount": {
477
+ "_enum": {
478
+ "ProposalFound": "VoteCountProposalFound",
479
+ "ProposalNotFound": ""
480
+ }
481
+ },
482
+ "CappedFee": "u64",
483
+ "AuthorizationType": {
484
+ "_enum": {
485
+ "AttestPrimaryKeyRotation": "",
486
+ "RotatePrimaryKey": "",
487
+ "TransferTicker": "",
488
+ "AddMultiSigSigner": "",
489
+ "TransferAssetOwnership": "",
490
+ "JoinIdentity": "",
491
+ "PortfolioCustody": "",
492
+ "BecomeAgent": "",
493
+ "AddRelayerPayingKey": "",
494
+ "RotatePrimaryKeyToSecondary": ""
495
+ }
496
+ },
497
+ "DidStatus": {
498
+ "_enum": {
499
+ "Unknown": "",
500
+ "Exists": "",
501
+ "CddVerified": ""
502
+ }
503
+ },
504
+ "PortfolioNumber": "u64",
505
+ "PortfolioKind": {
506
+ "_enum": {
507
+ "Default": "",
508
+ "User": "PortfolioNumber"
509
+ }
510
+ },
511
+ "PortfolioId": {
512
+ "did": "IdentityId",
513
+ "kind": "PortfolioKind"
514
+ },
515
+ "Moment": "u64",
516
+ "InstructionId": "u64",
517
+ "TargetIdentity": {
518
+ "_enum": {
519
+ "ExternalAgent": "",
520
+ "Specific": "IdentityId"
521
+ }
522
+ },
523
+ "CanTransferGranularReturn": {
524
+ "_enum": {
525
+ "Ok": "GranularCanTransferResult",
526
+ "Err": "DispatchError"
527
+ }
528
+ },
529
+ "GranularCanTransferResult": {
530
+ "invalid_granularity": "bool",
531
+ "self_transfer": "bool",
532
+ "invalid_receiver_cdd": "bool",
533
+ "invalid_sender_cdd": "bool",
534
+ "receiver_custodian_error": "bool",
535
+ "sender_custodian_error": "bool",
536
+ "sender_insufficient_balance": "bool",
537
+ "portfolio_validity_result": "PortfolioValidityResult",
538
+ "asset_frozen": "bool",
539
+ "transfer_condition_result": "Vec<TransferConditionResult>",
540
+ "compliance_result": "AssetComplianceResult",
541
+ "result": "bool",
542
+ "consumed_weight": "Option<Weight>"
543
+ },
544
+ "PortfolioValidityResult": {
545
+ "receiver_is_same_portfolio": "bool",
546
+ "sender_portfolio_does_not_exist": "bool",
547
+ "receiver_portfolio_does_not_exist": "bool",
548
+ "sender_insufficient_balance": "bool",
549
+ "result": "bool"
550
+ },
551
+ "TransferConditionResult": {
552
+ "condition": "TransferCondition",
553
+ "result": "bool"
554
+ },
555
+ "AGId": "u32",
556
+ "AgentGroup": {
557
+ "_enum": {
558
+ "Full": "",
559
+ "Custom": "AGId",
560
+ "ExceptMeta": "",
561
+ "PolymeshV1CAA": "",
562
+ "PolymeshV1PIA": ""
563
+ }
564
+ },
565
+ "Member": {
566
+ "id": "IdentityId",
567
+ "expiry_at": "Option<Moment>",
568
+ "inactive_from": "Option<Moment>"
569
+ },
570
+ "NFTId": "u64",
571
+ "NFTs": {
572
+ "asset_id": "AssetID",
573
+ "ids": "Vec<NFTId>"
574
+ },
575
+ "FungibleLeg": {
576
+ "sender": "PortfolioId",
577
+ "receiver": "PortfolioId",
578
+ "asset_id": "AssetID",
579
+ "amount": "Balance"
580
+ },
581
+ "NonFungibleLeg": {
582
+ "sender": "PortfolioId",
583
+ "receiver": "PortfolioId",
584
+ "nfts": "NFTs"
585
+ },
586
+ "OffChainLeg": {
587
+ "sender_identity": "IdentityId",
588
+ "receiver_identity": "IdentityId",
589
+ "asset_id": "AssetID",
590
+ "amount": "Balance"
591
+ },
592
+ "Leg": {
593
+ "_enum": {
594
+ "Fungible": "FungibleLeg",
595
+ "NonFungible": "NonFungibleLeg",
596
+ "OffChain": "OffChainLeg"
597
+ }
598
+ },
599
+ "ExecuteInstructionInfo": {
600
+ "fungible_tokens": "u32",
601
+ "non_fungible_tokens": "u32",
602
+ "off_chain_assets": "u32",
603
+ "consumed_weight": "Weight",
604
+ "error": "Option<String>"
605
+ },
606
+ "AssetCount": {
607
+ "fungible_tokens": "u32",
608
+ "non_fungible_tokens": "u32",
609
+ "off_chain_assets": "u32"
610
+ },
611
+ "AffirmationCount": {
612
+ "sender_asset_count": "AssetCount",
613
+ "receiver_asset_count": "AssetCount",
614
+ "offchain_count": "u32"
615
+ },
616
+ "ComplianceReport": {
617
+ "any_requirement_satistifed": "bool",
618
+ "paused_compliance": "bool",
619
+ "requirements": "Vec<RequirementReport>"
620
+ },
621
+ "RequirementReport": {
622
+ "requirement_satisfied": "bool",
623
+ "id": "u32",
624
+ "sender_conditions": "Vec<ConditionReport>",
625
+ "receiver_conditions": "Vec<ConditionReport>"
626
+ },
627
+ "ConditionReport": {
628
+ "satisfied": "bool",
629
+ "condition": "Condition"
630
+ }
631
+ }