@polymeshassociation/polymesh-sdk 25.0.1-beta.1 → 25.1.0-alpha.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 (66) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/api/client/Claims.d.ts.map +1 -1
  3. package/api/client/Claims.js +1 -1
  4. package/api/client/Claims.js.map +1 -1
  5. package/api/client/Polymesh.d.ts.map +1 -1
  6. package/api/client/Polymesh.js +1 -1
  7. package/api/client/Polymesh.js.map +1 -1
  8. package/npm-package/polymeshassociation-polymesh-sdk-25.1.0-alpha.2.tgz +0 -0
  9. package/package.json +2 -2
  10. package/polkadot/asset/definitions.js +2 -2
  11. package/polkadot/asset/definitions.js.map +1 -1
  12. package/polkadot/augment-api-errors.d.ts +8 -0
  13. package/polkadot/augment-api-errors.d.ts.map +1 -1
  14. package/polkadot/augment-api-rpc.d.ts +5 -6
  15. package/polkadot/augment-api-rpc.d.ts.map +1 -1
  16. package/polkadot/augment-api-runtime.d.ts +140 -3
  17. package/polkadot/augment-api-runtime.d.ts.map +1 -1
  18. package/polkadot/augment-types.d.ts +4 -1
  19. package/polkadot/augment-types.d.ts.map +1 -1
  20. package/polkadot/identity/definitions.js +3 -3
  21. package/polkadot/identity/definitions.js.map +1 -1
  22. package/polkadot/lookup.d.ts.map +1 -1
  23. package/polkadot/lookup.js +2 -0
  24. package/polkadot/lookup.js.map +1 -1
  25. package/polkadot/polymesh/definitions.d.ts +406 -104
  26. package/polkadot/polymesh/definitions.d.ts.map +1 -1
  27. package/polkadot/polymesh/definitions.js +654 -104
  28. package/polkadot/polymesh/definitions.js.map +1 -1
  29. package/polkadot/polymesh/types.d.ts +122 -104
  30. package/polkadot/polymesh/types.d.ts.map +1 -1
  31. package/polkadot/schema.d.ts +206 -110
  32. package/polkadot/schema.d.ts.map +1 -1
  33. package/polkadot/schema.js +361 -131
  34. package/polkadot/schema.js.map +1 -1
  35. package/polkadot/settlement/definitions.js +1 -1
  36. package/polkadot/settlement/definitions.js.map +1 -1
  37. package/polkadot/types-lookup.d.ts +3 -1
  38. package/polkadot/types-lookup.d.ts.map +1 -1
  39. package/utils/conversion.d.ts.map +1 -1
  40. package/utils/conversion.js +43 -24
  41. package/utils/conversion.js.map +1 -1
  42. package/npm-package/polymeshassociation-polymesh-sdk-25.0.1-beta.1.tgz +0 -0
  43. package/polkadot/compliance/definitions.d.ts +0 -16
  44. package/polkadot/compliance/definitions.d.ts.map +0 -1
  45. package/polkadot/compliance/definitions.js +0 -35
  46. package/polkadot/compliance/definitions.js.map +0 -1
  47. package/polkadot/compliance/index.d.ts +0 -2
  48. package/polkadot/compliance/index.d.ts.map +0 -1
  49. package/polkadot/compliance/index.js +0 -20
  50. package/polkadot/compliance/index.js.map +0 -1
  51. package/polkadot/compliance/types.d.ts +0 -2
  52. package/polkadot/compliance/types.d.ts.map +0 -1
  53. package/polkadot/compliance/types.js +0 -5
  54. package/polkadot/compliance/types.js.map +0 -1
  55. package/polkadot/portfolio/definitions.d.ts +0 -25
  56. package/polkadot/portfolio/definitions.d.ts.map +0 -1
  57. package/polkadot/portfolio/definitions.js +0 -31
  58. package/polkadot/portfolio/definitions.js.map +0 -1
  59. package/polkadot/portfolio/index.d.ts +0 -2
  60. package/polkadot/portfolio/index.d.ts.map +0 -1
  61. package/polkadot/portfolio/index.js +0 -20
  62. package/polkadot/portfolio/index.js.map +0 -1
  63. package/polkadot/portfolio/types.d.ts +0 -2
  64. package/polkadot/portfolio/types.d.ts.map +0 -1
  65. package/polkadot/portfolio/types.js +0 -5
  66. package/polkadot/portfolio/types.js.map +0 -1
@@ -3,6 +3,541 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable @typescript-eslint/naming-convention */
4
4
  exports.default = {
5
5
  rpc: {},
6
+ runtime: {
7
+ AssetApi: [
8
+ {
9
+ methods: {
10
+ transfer_report: {
11
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
12
+ params: [
13
+ {
14
+ name: 'senderPortfolio',
15
+ type: 'PortfolioId',
16
+ },
17
+ {
18
+ name: 'receiverPortfolio',
19
+ type: 'PortfolioId',
20
+ },
21
+ {
22
+ name: 'assetId',
23
+ type: 'AssetID',
24
+ },
25
+ {
26
+ name: 'transferValue',
27
+ type: 'Balance',
28
+ },
29
+ {
30
+ name: 'skipLockedCheck',
31
+ type: 'bool',
32
+ },
33
+ ],
34
+ type: 'Vec<DispatchError>',
35
+ },
36
+ },
37
+ version: 4,
38
+ },
39
+ {
40
+ methods: {
41
+ can_transfer_granular: {
42
+ 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.',
43
+ params: [
44
+ {
45
+ name: 'fromCustodian',
46
+ type: 'Option<IdentityId>',
47
+ },
48
+ {
49
+ name: 'fromPortfolio',
50
+ type: 'PortfolioId',
51
+ },
52
+ {
53
+ name: 'toCustodian',
54
+ type: 'Option<IdentityId>',
55
+ },
56
+ {
57
+ name: 'toPortfolio',
58
+ type: 'PortfolioId',
59
+ },
60
+ {
61
+ name: 'ticker',
62
+ type: 'Ticker',
63
+ },
64
+ {
65
+ name: 'value',
66
+ type: 'Balance',
67
+ },
68
+ ],
69
+ type: 'CanTransferGranularReturn',
70
+ },
71
+ },
72
+ version: 3,
73
+ },
74
+ ],
75
+ GroupApi: [
76
+ {
77
+ methods: {
78
+ get_cdd_valid_members: {
79
+ description: 'Get the CDD members',
80
+ params: [],
81
+ type: 'Vec<Member>',
82
+ },
83
+ get_gc_valid_members: {
84
+ description: 'Get the GC members',
85
+ params: [],
86
+ type: 'Vec<Member>',
87
+ },
88
+ },
89
+ version: 1,
90
+ },
91
+ ],
92
+ IdentityApi: [
93
+ {
94
+ methods: {
95
+ is_identity_has_valid_cdd: {
96
+ description: 'use to tell whether the given did has valid cdd claim or not',
97
+ params: [
98
+ {
99
+ name: 'did',
100
+ type: 'IdentityId',
101
+ },
102
+ {
103
+ name: 'bufferTime',
104
+ type: 'Option<u64>',
105
+ },
106
+ ],
107
+ type: 'CddStatus',
108
+ },
109
+ get_did_records: {
110
+ description: 'Used to get the did record values for a given DID',
111
+ params: [
112
+ {
113
+ name: 'did',
114
+ type: 'IdentityId',
115
+ },
116
+ ],
117
+ type: 'RpcDidRecords',
118
+ },
119
+ get_did_status: {
120
+ description: 'Retrieve status of the DID',
121
+ params: [
122
+ {
123
+ name: 'did',
124
+ type: 'Vec<IdentityId>',
125
+ },
126
+ ],
127
+ type: 'Vec<DidStatus>',
128
+ },
129
+ get_filtered_authorizations: {
130
+ description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
131
+ params: [
132
+ {
133
+ name: 'signatory',
134
+ type: 'Signatory',
135
+ },
136
+ {
137
+ name: 'allowExpired',
138
+ type: 'bool',
139
+ },
140
+ {
141
+ name: 'authType',
142
+ type: 'Option<AuthorizationType>',
143
+ },
144
+ ],
145
+ type: 'Vec<Authorization>',
146
+ },
147
+ get_key_identity_data: {
148
+ description: 'Query relation between a signing key and a DID',
149
+ params: [
150
+ {
151
+ name: 'acc',
152
+ type: 'AccountId',
153
+ },
154
+ ],
155
+ type: 'Option<KeyIdentityData>',
156
+ },
157
+ valid_cdd_claims: {
158
+ description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
159
+ params: [
160
+ {
161
+ name: 'targetIdentity',
162
+ type: 'IdentityId',
163
+ },
164
+ {
165
+ name: 'cddCheckerLeeway',
166
+ type: 'Option<u64>',
167
+ },
168
+ ],
169
+ type: 'Vec<IdentityClaim>',
170
+ },
171
+ },
172
+ version: 4,
173
+ },
174
+ {
175
+ methods: {
176
+ is_identity_has_valid_cdd: {
177
+ description: 'use to tell whether the given did has valid cdd claim or not',
178
+ params: [
179
+ {
180
+ name: 'did',
181
+ type: 'IdentityId',
182
+ },
183
+ {
184
+ name: 'bufferTime',
185
+ type: 'Option<u64>',
186
+ },
187
+ ],
188
+ type: 'CddStatus',
189
+ },
190
+ get_asset_did: {
191
+ description: 'function is used to query the given ticker DID',
192
+ params: [
193
+ {
194
+ name: 'ticker',
195
+ type: 'Ticker',
196
+ },
197
+ ],
198
+ type: 'AssetDidResult',
199
+ },
200
+ get_did_records: {
201
+ description: 'Used to get the did record values for a given DID',
202
+ params: [
203
+ {
204
+ name: 'did',
205
+ type: 'IdentityId',
206
+ },
207
+ ],
208
+ type: 'RpcDidRecords',
209
+ },
210
+ get_did_status: {
211
+ description: 'Retrieve status of the DID',
212
+ params: [
213
+ {
214
+ name: 'did',
215
+ type: 'Vec<IdentityId>',
216
+ },
217
+ ],
218
+ type: 'Vec<DidStatus>',
219
+ },
220
+ get_filtered_authorizations: {
221
+ description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
222
+ params: [
223
+ {
224
+ name: 'signatory',
225
+ type: 'Signatory',
226
+ },
227
+ {
228
+ name: 'allowExpired',
229
+ type: 'bool',
230
+ },
231
+ {
232
+ name: 'authType',
233
+ type: 'Option<AuthorizationType>',
234
+ },
235
+ ],
236
+ type: 'Vec<Authorization>',
237
+ },
238
+ get_key_identity_data: {
239
+ description: 'Query relation between a signing key and a DID',
240
+ params: [
241
+ {
242
+ name: 'acc',
243
+ type: 'AccountId',
244
+ },
245
+ ],
246
+ type: 'Option<KeyIdentityData>',
247
+ },
248
+ valid_cdd_claims: {
249
+ description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
250
+ params: [
251
+ {
252
+ name: 'targetIdentity',
253
+ type: 'IdentityId',
254
+ },
255
+ {
256
+ name: 'cddCheckerLeeway',
257
+ type: 'Option<u64>',
258
+ },
259
+ ],
260
+ type: 'Vec<IdentityClaim>',
261
+ },
262
+ },
263
+ version: 3,
264
+ },
265
+ ],
266
+ NFTApi: [
267
+ {
268
+ methods: {
269
+ transfer_report: {
270
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
271
+ params: [
272
+ {
273
+ name: 'senderPortfolio',
274
+ type: 'PortfolioId',
275
+ },
276
+ {
277
+ name: 'receiverPortfolio',
278
+ type: 'PortfolioId',
279
+ },
280
+ {
281
+ name: 'nfts',
282
+ type: 'NFTs',
283
+ },
284
+ {
285
+ name: 'skipLockedCheck',
286
+ type: 'bool',
287
+ },
288
+ ],
289
+ type: 'Vec<DispatchError>',
290
+ },
291
+ },
292
+ version: 2,
293
+ },
294
+ {
295
+ methods: {
296
+ validate_nft_transfer: {
297
+ 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.',
298
+ params: [
299
+ {
300
+ name: 'senderPortfolio',
301
+ type: 'PortfolioId',
302
+ },
303
+ {
304
+ name: 'receiverPortfolio',
305
+ type: 'PortfolioId',
306
+ },
307
+ {
308
+ name: 'nfts',
309
+ type: 'NFTs',
310
+ },
311
+ ],
312
+ type: 'DispatchResult',
313
+ },
314
+ },
315
+ version: 1,
316
+ },
317
+ ],
318
+ SettlementApi: [
319
+ {
320
+ methods: {
321
+ get_execute_instruction_info: {
322
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
323
+ params: [
324
+ {
325
+ name: 'instructionId',
326
+ type: 'InstructionId',
327
+ },
328
+ ],
329
+ type: 'Option<ExecuteInstructionInfo>',
330
+ },
331
+ get_affirmation_count: {
332
+ 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.',
333
+ params: [
334
+ {
335
+ name: 'instructionId',
336
+ type: 'InstructionId',
337
+ },
338
+ {
339
+ name: 'portfolios',
340
+ type: 'Vec<PortfolioId>',
341
+ },
342
+ ],
343
+ type: 'AffirmationCount',
344
+ },
345
+ get_transfer_report: {
346
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
347
+ params: [
348
+ {
349
+ name: 'leg',
350
+ type: 'Leg',
351
+ },
352
+ {
353
+ name: 'skipLockedCheck',
354
+ type: 'bool',
355
+ },
356
+ ],
357
+ type: 'Vec<DispatchError>',
358
+ },
359
+ get_execute_instruction_report: {
360
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
361
+ params: [
362
+ {
363
+ name: 'instructionId',
364
+ type: 'InstructionId',
365
+ },
366
+ ],
367
+ type: 'Vec<DispatchError>',
368
+ },
369
+ },
370
+ version: 2,
371
+ },
372
+ {
373
+ methods: {
374
+ get_execute_instruction_info: {
375
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
376
+ params: [
377
+ {
378
+ name: 'instructionId',
379
+ type: 'InstructionId',
380
+ },
381
+ ],
382
+ type: 'ExecuteInstructionInfo',
383
+ },
384
+ get_affirmation_count: {
385
+ 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.',
386
+ params: [
387
+ {
388
+ name: 'instructionId',
389
+ type: 'InstructionId',
390
+ },
391
+ {
392
+ name: 'portfolios',
393
+ type: 'Vec<PortfolioId>',
394
+ },
395
+ ],
396
+ type: 'AffirmationCount',
397
+ },
398
+ get_transfer_report: {
399
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
400
+ params: [
401
+ {
402
+ name: 'leg',
403
+ type: 'Leg',
404
+ },
405
+ {
406
+ name: 'skipLockedCheck',
407
+ type: 'bool',
408
+ },
409
+ ],
410
+ type: 'Vec<DispatchError>',
411
+ },
412
+ get_execute_instruction_report: {
413
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
414
+ params: [
415
+ {
416
+ name: 'instructionId',
417
+ type: 'InstructionId',
418
+ },
419
+ ],
420
+ type: 'Vec<DispatchError>',
421
+ },
422
+ },
423
+ version: 1,
424
+ },
425
+ ],
426
+ PipsApi: [
427
+ {
428
+ methods: {
429
+ get_votes: {
430
+ description: 'Summary of votes of a proposal given by index',
431
+ params: [
432
+ {
433
+ name: 'index',
434
+ type: 'PipId',
435
+ },
436
+ ],
437
+ type: 'VoteCount',
438
+ },
439
+ proposed_by: {
440
+ description: 'Retrieves proposal indices started by address',
441
+ params: [
442
+ {
443
+ name: 'address',
444
+ type: 'AccountId',
445
+ },
446
+ ],
447
+ type: 'Vec<PipId>',
448
+ },
449
+ voted_on: {
450
+ description: 'Retrieves proposal address indices voted on',
451
+ params: [
452
+ {
453
+ name: 'address',
454
+ type: 'AccountId',
455
+ },
456
+ ],
457
+ type: 'Vec<PipId>',
458
+ },
459
+ },
460
+ version: 1,
461
+ },
462
+ ],
463
+ ProtocolFeeApi: [
464
+ {
465
+ methods: {
466
+ compute_fee: {
467
+ description: 'Gets the fee of a chargeable extrinsic operation',
468
+ params: [
469
+ {
470
+ name: 'op',
471
+ type: 'ProtocolOp',
472
+ },
473
+ ],
474
+ type: 'CappedFee',
475
+ },
476
+ },
477
+ version: 1,
478
+ },
479
+ ],
480
+ StakingApi: [
481
+ {
482
+ methods: {
483
+ get_curve: {
484
+ description: 'Retrieves curves parameters',
485
+ params: [],
486
+ type: 'Vec<(Perbill, Perbill)>',
487
+ },
488
+ },
489
+ version: 1,
490
+ },
491
+ ],
492
+ ComplianceApi: [
493
+ {
494
+ methods: {
495
+ compliance_report: {
496
+ description: 'Checks all compliance requirements for the given asset_id.',
497
+ params: [
498
+ {
499
+ name: 'assetId',
500
+ type: 'AssetID',
501
+ },
502
+ {
503
+ name: 'senderIdentity',
504
+ type: 'IdentityId',
505
+ },
506
+ {
507
+ name: 'receiverIdentity',
508
+ type: 'IdentityId',
509
+ },
510
+ ],
511
+ type: 'Result<ComplianceReport, DispatchError>',
512
+ },
513
+ },
514
+ version: 2,
515
+ },
516
+ {
517
+ methods: {
518
+ compliance_report: {
519
+ description: 'Checks all compliance requirements for the given ticker.',
520
+ params: [
521
+ {
522
+ name: 'ticker',
523
+ type: 'Ticker',
524
+ },
525
+ {
526
+ name: 'senderIdentity',
527
+ type: 'IdentityId',
528
+ },
529
+ {
530
+ name: 'receiverIdentity',
531
+ type: 'IdentityId',
532
+ },
533
+ ],
534
+ type: 'Result<ComplianceReport, DispatchError>',
535
+ },
536
+ },
537
+ version: 1,
538
+ },
539
+ ],
540
+ },
6
541
  types: {
7
542
  Address: 'MultiAddress',
8
543
  LookupSource: 'MultiAddress',
@@ -33,10 +568,10 @@ exports.default = {
33
568
  DocumentType: 'Text',
34
569
  Document: {
35
570
  uri: 'DocumentUri',
36
- content_hash: 'DocumentHash',
571
+ contentHash: 'DocumentHash',
37
572
  name: 'DocumentName',
38
- doc_type: 'Option<DocumentType>',
39
- filing_date: 'Option<Moment>',
573
+ docType: 'Option<DocumentType>',
574
+ filingDate: 'Option<Moment>',
40
575
  },
41
576
  Version: 'u8',
42
577
  CustomAssetTypeId: 'u32',
@@ -76,10 +611,10 @@ exports.default = {
76
611
  FundingRoundName: 'Text',
77
612
  VenueDetails: 'Text',
78
613
  SecurityToken: {
79
- total_supply: 'Balance',
80
- owner_did: 'IdentityId',
614
+ totalSupply: 'Balance',
615
+ ownerDid: 'IdentityId',
81
616
  divisible: 'bool',
82
- asset_type: 'AssetType',
617
+ assetType: 'AssetType',
83
618
  },
84
619
  AssetMetadataName: 'Text',
85
620
  AssetMetadataValue: 'Vec<u8>',
@@ -100,13 +635,13 @@ exports.default = {
100
635
  },
101
636
  AssetMetadataValueDetail: {
102
637
  expire: 'Option<Moment>',
103
- lock_status: 'AssetMetadataLockStatus',
638
+ lockStatus: 'AssetMetadataLockStatus',
104
639
  },
105
640
  AssetMetadataDescription: 'Text',
106
641
  AssetMetadataSpec: {
107
642
  url: 'Option<Url>',
108
643
  description: 'Option<AssetMetadataDescription>',
109
- type_def: 'Option<Vec<u8>>',
644
+ typeDef: 'Option<Vec<u8>>',
110
645
  },
111
646
  PalletName: 'Text',
112
647
  DispatchableName: 'Text',
@@ -132,8 +667,8 @@ exports.default = {
132
667
  },
133
668
  },
134
669
  PalletPermissions: {
135
- pallet_name: 'PalletName',
136
- dispatchable_names: 'DispatchableNames',
670
+ palletName: 'PalletName',
671
+ dispatchableNames: 'DispatchableNames',
137
672
  },
138
673
  ExtrinsicPermissions: {
139
674
  _enum: {
@@ -158,11 +693,11 @@ exports.default = {
158
693
  permissions: 'Permissions',
159
694
  },
160
695
  SecondaryKeyWithAuth: {
161
- secondary_key: 'SecondaryKey',
162
- auth_signature: 'H512',
696
+ secondaryKey: 'SecondaryKey',
697
+ authSignature: 'H512',
163
698
  },
164
699
  Subsidy: {
165
- paying_key: 'AccountId',
700
+ payingKey: 'AccountId',
166
701
  remaining: 'Balance',
167
702
  },
168
703
  IdentityRole: {
@@ -180,11 +715,11 @@ exports.default = {
180
715
  ],
181
716
  },
182
717
  PreAuthorizedKeyInfo: {
183
- target_id: 'IdentityId',
184
- secondary_key: 'SecondaryKey',
718
+ targetId: 'IdentityId',
719
+ secondaryKey: 'SecondaryKey',
185
720
  },
186
721
  DidRecord: {
187
- primary_key: 'Option<AccountId>',
722
+ primaryKey: 'Option<AccountId>',
188
723
  },
189
724
  KeyRecord: {
190
725
  _enum: {
@@ -488,15 +1023,15 @@ exports.default = {
488
1023
  },
489
1024
  },
490
1025
  IdentityClaim: {
491
- claim_issuer: 'IdentityId',
492
- issuance_date: 'Moment',
493
- last_update_date: 'Moment',
1026
+ claimIssuer: 'IdentityId',
1027
+ issuanceDate: 'Moment',
1028
+ lastUpdateDate: 'Moment',
494
1029
  expiry: 'Option<Moment>',
495
1030
  claim: 'Claim',
496
1031
  },
497
1032
  ComplianceRequirement: {
498
- sender_conditions: 'Vec<Condition>',
499
- receiver_conditions: 'Vec<Condition>',
1033
+ senderConditions: 'Vec<Condition>',
1034
+ receiverConditions: 'Vec<Condition>',
500
1035
  id: 'u32',
501
1036
  },
502
1037
  ComplianceRequirementResult: {
@@ -533,17 +1068,17 @@ exports.default = {
533
1068
  result: 'bool',
534
1069
  },
535
1070
  TargetIdAuthorization: {
536
- target_id: 'IdentityId',
1071
+ targetId: 'IdentityId',
537
1072
  nonce: 'u64',
538
- expires_at: 'Moment',
1073
+ expiresAt: 'Moment',
539
1074
  },
540
1075
  TickerRegistration: {
541
1076
  owner: 'IdentityId',
542
1077
  expiry: 'Option<Moment>',
543
1078
  },
544
1079
  TickerRegistrationConfig: {
545
- max_ticker_length: 'u8',
546
- registration_length: 'Option<Moment>',
1080
+ maxTickerLength: 'u8',
1081
+ registrationLength: 'Option<Moment>',
547
1082
  },
548
1083
  EthereumAddress: '[u8; 20]',
549
1084
  EcdsaSignature: '[u8; 65]',
@@ -552,7 +1087,7 @@ exports.default = {
552
1087
  ChoiceTitle: 'Text',
553
1088
  Motion: {
554
1089
  title: 'MotionTitle',
555
- info_link: 'MotionInfoLink',
1090
+ infoLink: 'MotionInfoLink',
556
1091
  choices: 'Vec<ChoiceTitle>',
557
1092
  },
558
1093
  BallotTitle: 'Text',
@@ -580,8 +1115,8 @@ exports.default = {
580
1115
  id: 'PipId',
581
1116
  url: 'Option<Url>',
582
1117
  description: 'Option<PipDescription>',
583
- created_at: 'BlockNumber',
584
- transaction_version: 'u32',
1118
+ createdAt: 'BlockNumber',
1119
+ transactionVersion: 'u32',
585
1120
  expiry: 'MaybeBlock',
586
1121
  },
587
1122
  Proposer: {
@@ -603,8 +1138,8 @@ exports.default = {
603
1138
  },
604
1139
  SnapshotId: 'u32',
605
1140
  SnapshotMetadata: {
606
- created_at: 'BlockNumber',
607
- made_by: 'AccountId',
1141
+ createdAt: 'BlockNumber',
1142
+ madeBy: 'AccountId',
608
1143
  id: 'SnapshotId',
609
1144
  },
610
1145
  SnapshotResult: {
@@ -645,10 +1180,10 @@ exports.default = {
645
1180
  },
646
1181
  OffChainSignature: 'MultiSignature',
647
1182
  Authorization: {
648
- authorization_data: 'AuthorizationData',
649
- authorized_by: 'IdentityId',
1183
+ authorizationData: 'AuthorizationData',
1184
+ authorizedBy: 'IdentityId',
650
1185
  expiry: 'Option<Moment>',
651
- auth_id: 'u64',
1186
+ authId: 'u64',
652
1187
  },
653
1188
  AuthorizationData: {
654
1189
  _enum: {
@@ -674,7 +1209,7 @@ exports.default = {
674
1209
  nonce: 'u32',
675
1210
  recipient: 'AccountId',
676
1211
  amount: 'Balance',
677
- tx_hash: 'H256',
1212
+ txHash: 'H256',
678
1213
  },
679
1214
  AssetScope: {
680
1215
  _enum: {
@@ -686,7 +1221,7 @@ exports.default = {
686
1221
  },
687
1222
  StatType: {
688
1223
  op: 'StatOpType',
689
- claim_issuer: 'Option<(ClaimType, IdentityId)>',
1224
+ claimIssuer: 'Option<(ClaimType, IdentityId)>',
690
1225
  },
691
1226
  StatClaim: {
692
1227
  _enum: {
@@ -697,7 +1232,7 @@ exports.default = {
697
1232
  },
698
1233
  Stat1stKey: {
699
1234
  asset: 'AssetScope',
700
- stat_type: 'StatType',
1235
+ statType: 'StatType',
701
1236
  },
702
1237
  Stat2ndKey: {
703
1238
  _enum: {
@@ -724,7 +1259,7 @@ exports.default = {
724
1259
  TransferConditionExemptKey: {
725
1260
  asset: 'AssetScope',
726
1261
  op: 'StatOpType',
727
- claim_type: 'Option<ClaimType>',
1262
+ claimType: 'Option<ClaimType>',
728
1263
  },
729
1264
  AssetCompliance: {
730
1265
  paused: 'bool',
@@ -737,7 +1272,7 @@ exports.default = {
737
1272
  },
738
1273
  Claim1stKey: {
739
1274
  target: 'IdentityId',
740
- claim_type: 'ClaimType',
1275
+ claimType: 'ClaimType',
741
1276
  },
742
1277
  Claim2ndKey: {
743
1278
  issuer: 'IdentityId',
@@ -745,14 +1280,14 @@ exports.default = {
745
1280
  },
746
1281
  InactiveMember: {
747
1282
  id: 'IdentityId',
748
- deactivated_at: 'Moment',
1283
+ deactivatedAt: 'Moment',
749
1284
  expiry: 'Option<Moment>',
750
1285
  },
751
1286
  VotingResult: {
752
- ayes_count: 'u32',
753
- ayes_stake: 'Balance',
754
- nays_count: 'u32',
755
- nays_stake: 'Balance',
1287
+ ayesCount: 'u32',
1288
+ ayesStake: 'Balance',
1289
+ naysCount: 'u32',
1290
+ naysStake: 'Balance',
756
1291
  },
757
1292
  ProtocolOp: {
758
1293
  _enum: [
@@ -787,8 +1322,8 @@ exports.default = {
787
1322
  },
788
1323
  },
789
1324
  RpcDidRecordsSuccess: {
790
- primary_key: 'AccountId',
791
- secondary_keys: 'Vec<SecondaryKey>',
1325
+ primaryKey: 'AccountId',
1326
+ secondaryKeys: 'Vec<SecondaryKey>',
792
1327
  },
793
1328
  RpcDidRecords: {
794
1329
  _enum: {
@@ -814,8 +1349,8 @@ exports.default = {
814
1349
  BridgeTxDetail: {
815
1350
  amount: 'Balance',
816
1351
  status: 'BridgeTxStatus',
817
- execution_block: 'BlockNumber',
818
- tx_hash: 'H256',
1352
+ executionBlock: 'BlockNumber',
1353
+ txHash: 'H256',
819
1354
  },
820
1355
  BridgeTxStatus: {
821
1356
  _enum: {
@@ -858,7 +1393,7 @@ exports.default = {
858
1393
  rejections: 'u64',
859
1394
  status: 'ProposalStatus',
860
1395
  expiry: 'Option<Moment>',
861
- auto_close: 'bool',
1396
+ autoClose: 'bool',
862
1397
  },
863
1398
  ProposalStatus: {
864
1399
  _enum: {
@@ -944,20 +1479,20 @@ exports.default = {
944
1479
  LegId: 'u64',
945
1480
  InstructionId: 'u64',
946
1481
  Instruction: {
947
- instruction_id: 'InstructionId',
948
- venue_id: 'VenueId',
1482
+ instructionId: 'InstructionId',
1483
+ venueId: 'VenueId',
949
1484
  status: 'InstructionStatus',
950
- settlement_type: 'SettlementType',
951
- created_at: 'Option<Moment>',
952
- trade_date: 'Option<Moment>',
953
- value_date: 'Option<Moment>',
1485
+ settlementType: 'SettlementType',
1486
+ createdAt: 'Option<Moment>',
1487
+ tradeDate: 'Option<Moment>',
1488
+ valueDate: 'Option<Moment>',
954
1489
  },
955
1490
  Venue: {
956
1491
  creator: 'IdentityId',
957
- venue_type: 'VenueType',
1492
+ venueType: 'VenueType',
958
1493
  },
959
1494
  Receipt: {
960
- receipt_uid: 'u64',
1495
+ receiptUid: 'u64',
961
1496
  from: 'PortfolioId',
962
1497
  to: 'PortfolioId',
963
1498
  asset: 'Ticker',
@@ -965,8 +1500,8 @@ exports.default = {
965
1500
  },
966
1501
  ReceiptMetadata: 'Text',
967
1502
  ReceiptDetails: {
968
- receipt_uid: 'u64',
969
- leg_id: 'LegId',
1503
+ receiptUid: 'u64',
1504
+ legId: 'LegId',
970
1505
  signer: 'AccountId',
971
1506
  signature: 'OffChainSignature',
972
1507
  metadata: 'ReceiptMetadata',
@@ -1010,16 +1545,16 @@ exports.default = {
1010
1545
  },
1011
1546
  Fundraiser: {
1012
1547
  creator: 'IdentityId',
1013
- offering_portfolio: 'PortfolioId',
1014
- offering_asset: 'Ticker',
1015
- raising_portfolio: 'PortfolioId',
1016
- raising_asset: 'Ticker',
1548
+ offeringPortfolio: 'PortfolioId',
1549
+ offeringAsset: 'Ticker',
1550
+ raisingPortfolio: 'PortfolioId',
1551
+ raisingAsset: 'Ticker',
1017
1552
  tiers: 'Vec<FundraiserTier>',
1018
- venue_id: 'VenueId',
1553
+ venueId: 'VenueId',
1019
1554
  start: 'Moment',
1020
1555
  end: 'Option<Moment>',
1021
1556
  status: 'FundraiserStatus',
1022
- minimum_investment: 'Balance',
1557
+ minimumInvestment: 'Balance',
1023
1558
  },
1024
1559
  VenueId: 'u64',
1025
1560
  VenueType: {
@@ -1062,36 +1597,36 @@ exports.default = {
1062
1597
  },
1063
1598
  CorporateAction: {
1064
1599
  kind: 'CAKind',
1065
- decl_date: 'Moment',
1066
- record_date: 'Option<RecordDate>',
1600
+ declDate: 'Moment',
1601
+ recordDate: 'Option<RecordDate>',
1067
1602
  targets: 'TargetIdentities',
1068
- default_withholding_tax: 'Tax',
1069
- withholding_tax: 'Vec<(IdentityId, Tax)>',
1603
+ defaultWithholdingTax: 'Tax',
1604
+ withholdingTax: 'Vec<(IdentityId, Tax)>',
1070
1605
  },
1071
1606
  InitiateCorporateActionArgs: {
1072
1607
  ticker: 'Ticker',
1073
1608
  kind: 'CAKind',
1074
- decl_date: 'Moment',
1075
- record_date: 'Option<RecordDateSpec>',
1609
+ declDate: 'Moment',
1610
+ recordDate: 'Option<RecordDateSpec>',
1076
1611
  details: 'CADetails',
1077
1612
  targets: 'Option<TargetIdentities>',
1078
- default_withholding_tax: 'Option<Tax>',
1079
- withholding_tax: 'Option<Vec<(IdentityId, Tax)>>',
1613
+ defaultWithholdingTax: 'Option<Tax>',
1614
+ withholdingTax: 'Option<Vec<(IdentityId, Tax)>>',
1080
1615
  },
1081
1616
  LocalCAId: 'u32',
1082
1617
  CAId: {
1083
1618
  ticker: 'Ticker',
1084
- local_id: 'LocalCAId',
1619
+ localId: 'LocalCAId',
1085
1620
  },
1086
1621
  Distribution: {
1087
1622
  from: 'PortfolioId',
1088
1623
  currency: 'Ticker',
1089
- per_share: 'Balance',
1624
+ perShare: 'Balance',
1090
1625
  amount: 'Balance',
1091
1626
  remaining: 'Balance',
1092
1627
  reclaimed: 'bool',
1093
- payment_at: 'Moment',
1094
- expires_at: 'Option<Moment>',
1628
+ paymentAt: 'Moment',
1629
+ expiresAt: 'Option<Moment>',
1095
1630
  },
1096
1631
  SlashingSwitch: {
1097
1632
  _enum: ['Validator', 'ValidatorAndNominator', 'None'],
@@ -1101,8 +1636,8 @@ exports.default = {
1101
1636
  price: 'Balance',
1102
1637
  },
1103
1638
  PermissionedIdentityPrefs: {
1104
- intended_count: 'u32',
1105
- running_count: 'u32',
1639
+ intendedCount: 'u32',
1640
+ runningCount: 'u32',
1106
1641
  },
1107
1642
  CanTransferGranularReturn: {
1108
1643
  _enum: {
@@ -1111,25 +1646,25 @@ exports.default = {
1111
1646
  },
1112
1647
  },
1113
1648
  GranularCanTransferResult: {
1114
- invalid_granularity: 'bool',
1115
- self_transfer: 'bool',
1116
- invalid_receiver_cdd: 'bool',
1117
- invalid_sender_cdd: 'bool',
1118
- receiver_custodian_error: 'bool',
1119
- sender_custodian_error: 'bool',
1120
- sender_insufficient_balance: 'bool',
1121
- portfolio_validity_result: 'PortfolioValidityResult',
1122
- asset_frozen: 'bool',
1123
- transfer_condition_result: 'Vec<TransferConditionResult>',
1124
- compliance_result: 'AssetComplianceResult',
1649
+ invalidGranularity: 'bool',
1650
+ selfTransfer: 'bool',
1651
+ invalidReceiverCdd: 'bool',
1652
+ invalidSenderCdd: 'bool',
1653
+ receiverCustodianError: 'bool',
1654
+ senderCustodianError: 'bool',
1655
+ senderInsufficientBalance: 'bool',
1656
+ portfolioValidityResult: 'PortfolioValidityResult',
1657
+ assetFrozen: 'bool',
1658
+ transferConditionResult: 'Vec<TransferConditionResult>',
1659
+ complianceResult: 'AssetComplianceResult',
1125
1660
  result: 'bool',
1126
- consumed_weight: 'Option<Weight>',
1661
+ consumedWeight: 'Option<Weight>',
1127
1662
  },
1128
1663
  PortfolioValidityResult: {
1129
- receiver_is_same_portfolio: 'bool',
1130
- sender_portfolio_does_not_exist: 'bool',
1131
- receiver_portfolio_does_not_exist: 'bool',
1132
- sender_insufficient_balance: 'bool',
1664
+ receiverIsSamePortfolio: 'bool',
1665
+ senderPortfolioDoesNotExist: 'bool',
1666
+ receiverPortfolioDoesNotExist: 'bool',
1667
+ senderInsufficientBalance: 'bool',
1133
1668
  result: 'bool',
1134
1669
  },
1135
1670
  TransferConditionResult: {
@@ -1148,8 +1683,8 @@ exports.default = {
1148
1683
  },
1149
1684
  Member: {
1150
1685
  id: 'IdentityId',
1151
- expiry_at: 'Option<Moment>',
1152
- inactive_from: 'Option<Moment>',
1686
+ expiryAt: 'Option<Moment>',
1687
+ inactiveFrom: 'Option<Moment>',
1153
1688
  },
1154
1689
  ItnRewardStatus: {
1155
1690
  _enum: {
@@ -1182,8 +1717,8 @@ exports.default = {
1182
1717
  nfts: 'NFTs',
1183
1718
  },
1184
1719
  OffChainLeg: {
1185
- sender_identity: 'IdentityId',
1186
- receiver_identity: 'IdentityId',
1720
+ senderIdentity: 'IdentityId',
1721
+ receiverIdentity: 'IdentityId',
1187
1722
  ticker: 'Ticker',
1188
1723
  amount: 'Balance',
1189
1724
  },
@@ -1220,14 +1755,29 @@ exports.default = {
1220
1755
  error: 'Option<String>',
1221
1756
  },
1222
1757
  AssetCount: {
1223
- fungible: 'u32',
1224
- non_fungible: 'u32',
1225
- off_chain: 'u32',
1758
+ fungibleTokens: 'u32',
1759
+ nonFungibleTokens: 'u32',
1760
+ offChainAssets: 'u32',
1226
1761
  },
1227
1762
  AffirmationCount: {
1228
- sender_asset_count: 'AssetCount',
1229
- receiver_asset_count: 'AssetCount',
1230
- offchain_count: 'u32',
1763
+ senderAssetCount: 'AssetCount',
1764
+ receiverAssetCount: 'AssetCount',
1765
+ offchainCount: 'u32',
1766
+ },
1767
+ ComplianceReport: {
1768
+ anyRequirementSatistifed: 'bool',
1769
+ pausedCompliance: 'bool',
1770
+ requirements: 'Vec<RequirementReport>',
1771
+ },
1772
+ RequirementReport: {
1773
+ requirementSatisfied: 'bool',
1774
+ id: 'u32',
1775
+ senderConditions: 'Vec<ConditionReport>',
1776
+ receiverConditions: 'Vec<ConditionReport>',
1777
+ },
1778
+ ConditionReport: {
1779
+ satisfied: 'bool',
1780
+ condition: 'Condition',
1231
1781
  },
1232
1782
  },
1233
1783
  };