@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
@@ -32,10 +32,10 @@ exports.default = {
32
32
  DocumentType: 'Text',
33
33
  Document: {
34
34
  uri: 'DocumentUri',
35
- content_hash: 'DocumentHash',
35
+ contentHash: 'DocumentHash',
36
36
  name: 'DocumentName',
37
- doc_type: 'Option<DocumentType>',
38
- filing_date: 'Option<Moment>',
37
+ docType: 'Option<DocumentType>',
38
+ filingDate: 'Option<Moment>',
39
39
  },
40
40
  Version: 'u8',
41
41
  CustomAssetTypeId: 'u32',
@@ -75,10 +75,10 @@ exports.default = {
75
75
  FundingRoundName: 'Text',
76
76
  VenueDetails: 'Text',
77
77
  SecurityToken: {
78
- total_supply: 'Balance',
79
- owner_did: 'IdentityId',
78
+ totalSupply: 'Balance',
79
+ ownerDid: 'IdentityId',
80
80
  divisible: 'bool',
81
- asset_type: 'AssetType',
81
+ assetType: 'AssetType',
82
82
  },
83
83
  AssetMetadataName: 'Text',
84
84
  AssetMetadataValue: 'Vec<u8>',
@@ -99,13 +99,13 @@ exports.default = {
99
99
  },
100
100
  AssetMetadataValueDetail: {
101
101
  expire: 'Option<Moment>',
102
- lock_status: 'AssetMetadataLockStatus',
102
+ lockStatus: 'AssetMetadataLockStatus',
103
103
  },
104
104
  AssetMetadataDescription: 'Text',
105
105
  AssetMetadataSpec: {
106
106
  url: 'Option<Url>',
107
107
  description: 'Option<AssetMetadataDescription>',
108
- type_def: 'Option<Vec<u8>>',
108
+ typeDef: 'Option<Vec<u8>>',
109
109
  },
110
110
  PalletName: 'Text',
111
111
  DispatchableName: 'Text',
@@ -131,8 +131,8 @@ exports.default = {
131
131
  },
132
132
  },
133
133
  PalletPermissions: {
134
- pallet_name: 'PalletName',
135
- dispatchable_names: 'DispatchableNames',
134
+ palletName: 'PalletName',
135
+ dispatchableNames: 'DispatchableNames',
136
136
  },
137
137
  ExtrinsicPermissions: {
138
138
  _enum: {
@@ -157,11 +157,11 @@ exports.default = {
157
157
  permissions: 'Permissions',
158
158
  },
159
159
  SecondaryKeyWithAuth: {
160
- secondary_key: 'SecondaryKey',
161
- auth_signature: 'H512',
160
+ secondaryKey: 'SecondaryKey',
161
+ authSignature: 'H512',
162
162
  },
163
163
  Subsidy: {
164
- paying_key: 'AccountId',
164
+ payingKey: 'AccountId',
165
165
  remaining: 'Balance',
166
166
  },
167
167
  IdentityRole: {
@@ -179,11 +179,11 @@ exports.default = {
179
179
  ],
180
180
  },
181
181
  PreAuthorizedKeyInfo: {
182
- target_id: 'IdentityId',
183
- secondary_key: 'SecondaryKey',
182
+ targetId: 'IdentityId',
183
+ secondaryKey: 'SecondaryKey',
184
184
  },
185
185
  DidRecord: {
186
- primary_key: 'Option<AccountId>',
186
+ primaryKey: 'Option<AccountId>',
187
187
  },
188
188
  KeyRecord: {
189
189
  _enum: {
@@ -487,15 +487,15 @@ exports.default = {
487
487
  },
488
488
  },
489
489
  IdentityClaim: {
490
- claim_issuer: 'IdentityId',
491
- issuance_date: 'Moment',
492
- last_update_date: 'Moment',
490
+ claimIssuer: 'IdentityId',
491
+ issuanceDate: 'Moment',
492
+ lastUpdateDate: 'Moment',
493
493
  expiry: 'Option<Moment>',
494
494
  claim: 'Claim',
495
495
  },
496
496
  ComplianceRequirement: {
497
- sender_conditions: 'Vec<Condition>',
498
- receiver_conditions: 'Vec<Condition>',
497
+ senderConditions: 'Vec<Condition>',
498
+ receiverConditions: 'Vec<Condition>',
499
499
  id: 'u32',
500
500
  },
501
501
  ComplianceRequirementResult: {
@@ -532,17 +532,17 @@ exports.default = {
532
532
  result: 'bool',
533
533
  },
534
534
  TargetIdAuthorization: {
535
- target_id: 'IdentityId',
535
+ targetId: 'IdentityId',
536
536
  nonce: 'u64',
537
- expires_at: 'Moment',
537
+ expiresAt: 'Moment',
538
538
  },
539
539
  TickerRegistration: {
540
540
  owner: 'IdentityId',
541
541
  expiry: 'Option<Moment>',
542
542
  },
543
543
  TickerRegistrationConfig: {
544
- max_ticker_length: 'u8',
545
- registration_length: 'Option<Moment>',
544
+ maxTickerLength: 'u8',
545
+ registrationLength: 'Option<Moment>',
546
546
  },
547
547
  EthereumAddress: '[u8; 20]',
548
548
  EcdsaSignature: '[u8; 65]',
@@ -551,7 +551,7 @@ exports.default = {
551
551
  ChoiceTitle: 'Text',
552
552
  Motion: {
553
553
  title: 'MotionTitle',
554
- info_link: 'MotionInfoLink',
554
+ infoLink: 'MotionInfoLink',
555
555
  choices: 'Vec<ChoiceTitle>',
556
556
  },
557
557
  BallotTitle: 'Text',
@@ -579,8 +579,8 @@ exports.default = {
579
579
  id: 'PipId',
580
580
  url: 'Option<Url>',
581
581
  description: 'Option<PipDescription>',
582
- created_at: 'BlockNumber',
583
- transaction_version: 'u32',
582
+ createdAt: 'BlockNumber',
583
+ transactionVersion: 'u32',
584
584
  expiry: 'MaybeBlock',
585
585
  },
586
586
  Proposer: {
@@ -602,8 +602,8 @@ exports.default = {
602
602
  },
603
603
  SnapshotId: 'u32',
604
604
  SnapshotMetadata: {
605
- created_at: 'BlockNumber',
606
- made_by: 'AccountId',
605
+ createdAt: 'BlockNumber',
606
+ madeBy: 'AccountId',
607
607
  id: 'SnapshotId',
608
608
  },
609
609
  SnapshotResult: {
@@ -644,10 +644,10 @@ exports.default = {
644
644
  },
645
645
  OffChainSignature: 'MultiSignature',
646
646
  Authorization: {
647
- authorization_data: 'AuthorizationData',
648
- authorized_by: 'IdentityId',
647
+ authorizationData: 'AuthorizationData',
648
+ authorizedBy: 'IdentityId',
649
649
  expiry: 'Option<Moment>',
650
- auth_id: 'u64',
650
+ authId: 'u64',
651
651
  },
652
652
  AuthorizationData: {
653
653
  _enum: {
@@ -673,7 +673,7 @@ exports.default = {
673
673
  nonce: 'u32',
674
674
  recipient: 'AccountId',
675
675
  amount: 'Balance',
676
- tx_hash: 'H256',
676
+ txHash: 'H256',
677
677
  },
678
678
  AssetScope: {
679
679
  _enum: {
@@ -685,7 +685,7 @@ exports.default = {
685
685
  },
686
686
  StatType: {
687
687
  op: 'StatOpType',
688
- claim_issuer: 'Option<(ClaimType, IdentityId)>',
688
+ claimIssuer: 'Option<(ClaimType, IdentityId)>',
689
689
  },
690
690
  StatClaim: {
691
691
  _enum: {
@@ -696,7 +696,7 @@ exports.default = {
696
696
  },
697
697
  Stat1stKey: {
698
698
  asset: 'AssetScope',
699
- stat_type: 'StatType',
699
+ statType: 'StatType',
700
700
  },
701
701
  Stat2ndKey: {
702
702
  _enum: {
@@ -723,7 +723,7 @@ exports.default = {
723
723
  TransferConditionExemptKey: {
724
724
  asset: 'AssetScope',
725
725
  op: 'StatOpType',
726
- claim_type: 'Option<ClaimType>',
726
+ claimType: 'Option<ClaimType>',
727
727
  },
728
728
  AssetCompliance: {
729
729
  paused: 'bool',
@@ -736,7 +736,7 @@ exports.default = {
736
736
  },
737
737
  Claim1stKey: {
738
738
  target: 'IdentityId',
739
- claim_type: 'ClaimType',
739
+ claimType: 'ClaimType',
740
740
  },
741
741
  Claim2ndKey: {
742
742
  issuer: 'IdentityId',
@@ -744,14 +744,14 @@ exports.default = {
744
744
  },
745
745
  InactiveMember: {
746
746
  id: 'IdentityId',
747
- deactivated_at: 'Moment',
747
+ deactivatedAt: 'Moment',
748
748
  expiry: 'Option<Moment>',
749
749
  },
750
750
  VotingResult: {
751
- ayes_count: 'u32',
752
- ayes_stake: 'Balance',
753
- nays_count: 'u32',
754
- nays_stake: 'Balance',
751
+ ayesCount: 'u32',
752
+ ayesStake: 'Balance',
753
+ naysCount: 'u32',
754
+ naysStake: 'Balance',
755
755
  },
756
756
  ProtocolOp: {
757
757
  _enum: [
@@ -786,8 +786,8 @@ exports.default = {
786
786
  },
787
787
  },
788
788
  RpcDidRecordsSuccess: {
789
- primary_key: 'AccountId',
790
- secondary_keys: 'Vec<SecondaryKey>',
789
+ primaryKey: 'AccountId',
790
+ secondaryKeys: 'Vec<SecondaryKey>',
791
791
  },
792
792
  RpcDidRecords: {
793
793
  _enum: {
@@ -813,8 +813,8 @@ exports.default = {
813
813
  BridgeTxDetail: {
814
814
  amount: 'Balance',
815
815
  status: 'BridgeTxStatus',
816
- execution_block: 'BlockNumber',
817
- tx_hash: 'H256',
816
+ executionBlock: 'BlockNumber',
817
+ txHash: 'H256',
818
818
  },
819
819
  BridgeTxStatus: {
820
820
  _enum: {
@@ -857,7 +857,7 @@ exports.default = {
857
857
  rejections: 'u64',
858
858
  status: 'ProposalStatus',
859
859
  expiry: 'Option<Moment>',
860
- auto_close: 'bool',
860
+ autoClose: 'bool',
861
861
  },
862
862
  ProposalStatus: {
863
863
  _enum: {
@@ -943,20 +943,20 @@ exports.default = {
943
943
  LegId: 'u64',
944
944
  InstructionId: 'u64',
945
945
  Instruction: {
946
- instruction_id: 'InstructionId',
947
- venue_id: 'VenueId',
946
+ instructionId: 'InstructionId',
947
+ venueId: 'VenueId',
948
948
  status: 'InstructionStatus',
949
- settlement_type: 'SettlementType',
950
- created_at: 'Option<Moment>',
951
- trade_date: 'Option<Moment>',
952
- value_date: 'Option<Moment>',
949
+ settlementType: 'SettlementType',
950
+ createdAt: 'Option<Moment>',
951
+ tradeDate: 'Option<Moment>',
952
+ valueDate: 'Option<Moment>',
953
953
  },
954
954
  Venue: {
955
955
  creator: 'IdentityId',
956
- venue_type: 'VenueType',
956
+ venueType: 'VenueType',
957
957
  },
958
958
  Receipt: {
959
- receipt_uid: 'u64',
959
+ receiptUid: 'u64',
960
960
  from: 'PortfolioId',
961
961
  to: 'PortfolioId',
962
962
  asset: 'Ticker',
@@ -964,8 +964,8 @@ exports.default = {
964
964
  },
965
965
  ReceiptMetadata: 'Text',
966
966
  ReceiptDetails: {
967
- receipt_uid: 'u64',
968
- leg_id: 'LegId',
967
+ receiptUid: 'u64',
968
+ legId: 'LegId',
969
969
  signer: 'AccountId',
970
970
  signature: 'OffChainSignature',
971
971
  metadata: 'ReceiptMetadata',
@@ -1009,16 +1009,16 @@ exports.default = {
1009
1009
  },
1010
1010
  Fundraiser: {
1011
1011
  creator: 'IdentityId',
1012
- offering_portfolio: 'PortfolioId',
1013
- offering_asset: 'Ticker',
1014
- raising_portfolio: 'PortfolioId',
1015
- raising_asset: 'Ticker',
1012
+ offeringPortfolio: 'PortfolioId',
1013
+ offeringAsset: 'Ticker',
1014
+ raisingPortfolio: 'PortfolioId',
1015
+ raisingAsset: 'Ticker',
1016
1016
  tiers: 'Vec<FundraiserTier>',
1017
- venue_id: 'VenueId',
1017
+ venueId: 'VenueId',
1018
1018
  start: 'Moment',
1019
1019
  end: 'Option<Moment>',
1020
1020
  status: 'FundraiserStatus',
1021
- minimum_investment: 'Balance',
1021
+ minimumInvestment: 'Balance',
1022
1022
  },
1023
1023
  VenueId: 'u64',
1024
1024
  VenueType: {
@@ -1061,36 +1061,36 @@ exports.default = {
1061
1061
  },
1062
1062
  CorporateAction: {
1063
1063
  kind: 'CAKind',
1064
- decl_date: 'Moment',
1065
- record_date: 'Option<RecordDate>',
1064
+ declDate: 'Moment',
1065
+ recordDate: 'Option<RecordDate>',
1066
1066
  targets: 'TargetIdentities',
1067
- default_withholding_tax: 'Tax',
1068
- withholding_tax: 'Vec<(IdentityId, Tax)>',
1067
+ defaultWithholdingTax: 'Tax',
1068
+ withholdingTax: 'Vec<(IdentityId, Tax)>',
1069
1069
  },
1070
1070
  InitiateCorporateActionArgs: {
1071
1071
  ticker: 'Ticker',
1072
1072
  kind: 'CAKind',
1073
- decl_date: 'Moment',
1074
- record_date: 'Option<RecordDateSpec>',
1073
+ declDate: 'Moment',
1074
+ recordDate: 'Option<RecordDateSpec>',
1075
1075
  details: 'CADetails',
1076
1076
  targets: 'Option<TargetIdentities>',
1077
- default_withholding_tax: 'Option<Tax>',
1078
- withholding_tax: 'Option<Vec<(IdentityId, Tax)>>',
1077
+ defaultWithholdingTax: 'Option<Tax>',
1078
+ withholdingTax: 'Option<Vec<(IdentityId, Tax)>>',
1079
1079
  },
1080
1080
  LocalCAId: 'u32',
1081
1081
  CAId: {
1082
1082
  ticker: 'Ticker',
1083
- local_id: 'LocalCAId',
1083
+ localId: 'LocalCAId',
1084
1084
  },
1085
1085
  Distribution: {
1086
1086
  from: 'PortfolioId',
1087
1087
  currency: 'Ticker',
1088
- per_share: 'Balance',
1088
+ perShare: 'Balance',
1089
1089
  amount: 'Balance',
1090
1090
  remaining: 'Balance',
1091
1091
  reclaimed: 'bool',
1092
- payment_at: 'Moment',
1093
- expires_at: 'Option<Moment>',
1092
+ paymentAt: 'Moment',
1093
+ expiresAt: 'Option<Moment>',
1094
1094
  },
1095
1095
  SlashingSwitch: {
1096
1096
  _enum: ['Validator', 'ValidatorAndNominator', 'None'],
@@ -1100,8 +1100,8 @@ exports.default = {
1100
1100
  price: 'Balance',
1101
1101
  },
1102
1102
  PermissionedIdentityPrefs: {
1103
- intended_count: 'u32',
1104
- running_count: 'u32',
1103
+ intendedCount: 'u32',
1104
+ runningCount: 'u32',
1105
1105
  },
1106
1106
  CanTransferGranularReturn: {
1107
1107
  _enum: {
@@ -1110,25 +1110,25 @@ exports.default = {
1110
1110
  },
1111
1111
  },
1112
1112
  GranularCanTransferResult: {
1113
- invalid_granularity: 'bool',
1114
- self_transfer: 'bool',
1115
- invalid_receiver_cdd: 'bool',
1116
- invalid_sender_cdd: 'bool',
1117
- receiver_custodian_error: 'bool',
1118
- sender_custodian_error: 'bool',
1119
- sender_insufficient_balance: 'bool',
1120
- portfolio_validity_result: 'PortfolioValidityResult',
1121
- asset_frozen: 'bool',
1122
- transfer_condition_result: 'Vec<TransferConditionResult>',
1123
- compliance_result: 'AssetComplianceResult',
1113
+ invalidGranularity: 'bool',
1114
+ selfTransfer: 'bool',
1115
+ invalidReceiverCdd: 'bool',
1116
+ invalidSenderCdd: 'bool',
1117
+ receiverCustodianError: 'bool',
1118
+ senderCustodianError: 'bool',
1119
+ senderInsufficientBalance: 'bool',
1120
+ portfolioValidityResult: 'PortfolioValidityResult',
1121
+ assetFrozen: 'bool',
1122
+ transferConditionResult: 'Vec<TransferConditionResult>',
1123
+ complianceResult: 'AssetComplianceResult',
1124
1124
  result: 'bool',
1125
- consumed_weight: 'Option<Weight>',
1125
+ consumedWeight: 'Option<Weight>',
1126
1126
  },
1127
1127
  PortfolioValidityResult: {
1128
- receiver_is_same_portfolio: 'bool',
1129
- sender_portfolio_does_not_exist: 'bool',
1130
- receiver_portfolio_does_not_exist: 'bool',
1131
- sender_insufficient_balance: 'bool',
1128
+ receiverIsSamePortfolio: 'bool',
1129
+ senderPortfolioDoesNotExist: 'bool',
1130
+ receiverPortfolioDoesNotExist: 'bool',
1131
+ senderInsufficientBalance: 'bool',
1132
1132
  result: 'bool',
1133
1133
  },
1134
1134
  TransferConditionResult: {
@@ -1147,8 +1147,8 @@ exports.default = {
1147
1147
  },
1148
1148
  Member: {
1149
1149
  id: 'IdentityId',
1150
- expiry_at: 'Option<Moment>',
1151
- inactive_from: 'Option<Moment>',
1150
+ expiryAt: 'Option<Moment>',
1151
+ inactiveFrom: 'Option<Moment>',
1152
1152
  },
1153
1153
  ItnRewardStatus: {
1154
1154
  _enum: {
@@ -1181,8 +1181,8 @@ exports.default = {
1181
1181
  nfts: 'NFTs',
1182
1182
  },
1183
1183
  OffChainLeg: {
1184
- sender_identity: 'IdentityId',
1185
- receiver_identity: 'IdentityId',
1184
+ senderIdentity: 'IdentityId',
1185
+ receiverIdentity: 'IdentityId',
1186
1186
  ticker: 'Ticker',
1187
1187
  amount: 'Balance',
1188
1188
  },
@@ -1219,14 +1219,29 @@ exports.default = {
1219
1219
  error: 'Option<String>',
1220
1220
  },
1221
1221
  AssetCount: {
1222
- fungible: 'u32',
1223
- non_fungible: 'u32',
1224
- off_chain: 'u32',
1222
+ fungibleTokens: 'u32',
1223
+ nonFungibleTokens: 'u32',
1224
+ offChainAssets: 'u32',
1225
1225
  },
1226
1226
  AffirmationCount: {
1227
- sender_asset_count: 'AssetCount',
1228
- receiver_asset_count: 'AssetCount',
1229
- offchain_count: 'u32',
1227
+ senderAssetCount: 'AssetCount',
1228
+ receiverAssetCount: 'AssetCount',
1229
+ offchainCount: 'u32',
1230
+ },
1231
+ ComplianceReport: {
1232
+ anyRequirementSatistifed: 'bool',
1233
+ pausedCompliance: 'bool',
1234
+ requirements: 'Vec<RequirementReport>',
1235
+ },
1236
+ RequirementReport: {
1237
+ requirementSatisfied: 'bool',
1238
+ id: 'u32',
1239
+ senderConditions: 'Vec<ConditionReport>',
1240
+ receiverConditions: 'Vec<ConditionReport>',
1241
+ },
1242
+ ConditionReport: {
1243
+ satisfied: 'bool',
1244
+ condition: 'Condition',
1230
1245
  },
1231
1246
  },
1232
1247
  rpc: {
@@ -1309,12 +1324,12 @@ exports.default = {
1309
1324
  isOptional: false,
1310
1325
  },
1311
1326
  {
1312
- name: 'allowExpired',
1327
+ name: 'allow_expired',
1313
1328
  type: 'bool',
1314
1329
  isOptional: false,
1315
1330
  },
1316
1331
  {
1317
- name: 'authType',
1332
+ name: 'auth_type',
1318
1333
  type: 'AuthorizationType',
1319
1334
  isOptional: true,
1320
1335
  },
@@ -1324,7 +1339,7 @@ exports.default = {
1324
1339
  isOptional: true,
1325
1340
  },
1326
1341
  ],
1327
- type: 'Vec<PolymeshPrimitivesAuthorization>',
1342
+ type: 'Vec<Authorization>',
1328
1343
  },
1329
1344
  getKeyIdentityData: {
1330
1345
  description: 'Query relation between a signing key and a DID',
@@ -1451,7 +1466,7 @@ exports.default = {
1451
1466
  params: [
1452
1467
  {
1453
1468
  name: 'fromCustodian',
1454
- type: 'Option<PolymeshPrimitivesIdentityId>',
1469
+ type: 'Option<IdentityId>',
1455
1470
  isOptional: false,
1456
1471
  },
1457
1472
  {
@@ -1461,7 +1476,7 @@ exports.default = {
1461
1476
  },
1462
1477
  {
1463
1478
  name: 'toCustodian',
1464
- type: 'Option<PolymeshPrimitivesIdentityId>',
1479
+ type: 'Option<IdentityId>',
1465
1480
  isOptional: false,
1466
1481
  },
1467
1482
  {
@@ -1545,7 +1560,7 @@ exports.default = {
1545
1560
  description: 'Returns an ExecuteInstructionInfo instance, containing the consumed weight and the number of tokens in the instruction.',
1546
1561
  params: [
1547
1562
  {
1548
- name: 'instructionId',
1563
+ name: 'instruction_id',
1549
1564
  type: 'InstructionId',
1550
1565
  isOptional: false,
1551
1566
  },
@@ -1606,25 +1621,56 @@ exports.default = {
1606
1621
  },
1607
1622
  runtime: {
1608
1623
  AssetApi: [
1624
+ {
1625
+ methods: {
1626
+ transfer_report: {
1627
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1628
+ params: [
1629
+ {
1630
+ name: 'senderPortfolio',
1631
+ type: 'PortfolioId',
1632
+ },
1633
+ {
1634
+ name: 'receiverPortfolio',
1635
+ type: 'PortfolioId',
1636
+ },
1637
+ {
1638
+ name: 'assetId',
1639
+ type: 'AssetID',
1640
+ },
1641
+ {
1642
+ name: 'transferValue',
1643
+ type: 'Balance',
1644
+ },
1645
+ {
1646
+ name: 'skipLockedCheck',
1647
+ type: 'bool',
1648
+ },
1649
+ ],
1650
+ type: 'Vec<DispatchError>',
1651
+ },
1652
+ },
1653
+ version: 4,
1654
+ },
1609
1655
  {
1610
1656
  methods: {
1611
1657
  can_transfer_granular: {
1612
1658
  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.',
1613
1659
  params: [
1614
1660
  {
1615
- name: 'from_custodian',
1616
- type: 'Option<PolymeshPrimitivesIdentityId>',
1661
+ name: 'fromCustodian',
1662
+ type: 'Option<IdentityId>',
1617
1663
  },
1618
1664
  {
1619
- name: 'from_portfolio',
1665
+ name: 'fromPortfolio',
1620
1666
  type: 'PortfolioId',
1621
1667
  },
1622
1668
  {
1623
- name: 'to_custodian',
1624
- type: 'Option<PolymeshPrimitivesIdentityId>',
1669
+ name: 'toCustodian',
1670
+ type: 'Option<IdentityId>',
1625
1671
  },
1626
1672
  {
1627
- name: 'to_portfolio',
1673
+ name: 'toPortfolio',
1628
1674
  type: 'PortfolioId',
1629
1675
  },
1630
1676
  {
@@ -1670,7 +1716,88 @@ exports.default = {
1670
1716
  type: 'IdentityId',
1671
1717
  },
1672
1718
  {
1673
- name: 'buffer_time',
1719
+ name: 'bufferTime',
1720
+ type: 'Option<u64>',
1721
+ },
1722
+ ],
1723
+ type: 'CddStatus',
1724
+ },
1725
+ get_did_records: {
1726
+ description: 'Used to get the did record values for a given DID',
1727
+ params: [
1728
+ {
1729
+ name: 'did',
1730
+ type: 'IdentityId',
1731
+ },
1732
+ ],
1733
+ type: 'RpcDidRecords',
1734
+ },
1735
+ get_did_status: {
1736
+ description: 'Retrieve status of the DID',
1737
+ params: [
1738
+ {
1739
+ name: 'did',
1740
+ type: 'Vec<IdentityId>',
1741
+ },
1742
+ ],
1743
+ type: 'Vec<DidStatus>',
1744
+ },
1745
+ get_filtered_authorizations: {
1746
+ description: 'Retrieve authorizations data for a given signatory and filtered using the given authorization type',
1747
+ params: [
1748
+ {
1749
+ name: 'signatory',
1750
+ type: 'Signatory',
1751
+ },
1752
+ {
1753
+ name: 'allowExpired',
1754
+ type: 'bool',
1755
+ },
1756
+ {
1757
+ name: 'authType',
1758
+ type: 'Option<AuthorizationType>',
1759
+ },
1760
+ ],
1761
+ type: 'Vec<Authorization>',
1762
+ },
1763
+ get_key_identity_data: {
1764
+ description: 'Query relation between a signing key and a DID',
1765
+ params: [
1766
+ {
1767
+ name: 'acc',
1768
+ type: 'AccountId',
1769
+ },
1770
+ ],
1771
+ type: 'Option<KeyIdentityData>',
1772
+ },
1773
+ valid_cdd_claims: {
1774
+ description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
1775
+ params: [
1776
+ {
1777
+ name: 'targetIdentity',
1778
+ type: 'IdentityId',
1779
+ },
1780
+ {
1781
+ name: 'cddCheckerLeeway',
1782
+ type: 'Option<u64>',
1783
+ },
1784
+ ],
1785
+ type: 'Vec<IdentityClaim>',
1786
+ },
1787
+ },
1788
+ version: 4,
1789
+ },
1790
+ {
1791
+ methods: {
1792
+ is_identity_has_valid_cdd: {
1793
+ description: 'use to tell whether the given did has valid cdd claim or not',
1794
+ params: [
1795
+ {
1796
+ name: 'did',
1797
+ type: 'IdentityId',
1798
+ },
1799
+ {
1800
+ name: 'bufferTime',
1674
1801
  type: 'Option<u64>',
1675
1802
  },
1676
1803
  ],
@@ -1711,18 +1838,18 @@ exports.default = {
1711
1838
  params: [
1712
1839
  {
1713
1840
  name: 'signatory',
1714
- type: 'PolymeshPrimitivesSecondaryKeySignatory',
1841
+ type: 'Signatory',
1715
1842
  },
1716
1843
  {
1717
- name: 'allow_expired',
1844
+ name: 'allowExpired',
1718
1845
  type: 'bool',
1719
1846
  },
1720
1847
  {
1721
- name: 'auth_type',
1848
+ name: 'authType',
1722
1849
  type: 'Option<AuthorizationType>',
1723
1850
  },
1724
1851
  ],
1725
- type: 'Vec<PolymeshPrimitivesAuthorization>',
1852
+ type: 'Vec<Authorization>',
1726
1853
  },
1727
1854
  get_key_identity_data: {
1728
1855
  description: 'Query relation between a signing key and a DID',
@@ -1738,11 +1865,11 @@ exports.default = {
1738
1865
  description: 'Returns all valid IdentityClaim of type CustomerDueDiligence for the given target_identity',
1739
1866
  params: [
1740
1867
  {
1741
- name: 'target_identity',
1868
+ name: 'targetIdentity',
1742
1869
  type: 'IdentityId',
1743
1870
  },
1744
1871
  {
1745
- name: 'cdd_checker_leeway',
1872
+ name: 'cddCheckerLeeway',
1746
1873
  type: 'Option<u64>',
1747
1874
  },
1748
1875
  ],
@@ -1753,17 +1880,44 @@ exports.default = {
1753
1880
  },
1754
1881
  ],
1755
1882
  NFTApi: [
1883
+ {
1884
+ methods: {
1885
+ transfer_report: {
1886
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1887
+ params: [
1888
+ {
1889
+ name: 'senderPortfolio',
1890
+ type: 'PortfolioId',
1891
+ },
1892
+ {
1893
+ name: 'receiverPortfolio',
1894
+ type: 'PortfolioId',
1895
+ },
1896
+ {
1897
+ name: 'nfts',
1898
+ type: 'NFTs',
1899
+ },
1900
+ {
1901
+ name: 'skipLockedCheck',
1902
+ type: 'bool',
1903
+ },
1904
+ ],
1905
+ type: 'Vec<DispatchError>',
1906
+ },
1907
+ },
1908
+ version: 2,
1909
+ },
1756
1910
  {
1757
1911
  methods: {
1758
1912
  validate_nft_transfer: {
1759
1913
  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.',
1760
1914
  params: [
1761
1915
  {
1762
- name: 'sender_portfolio',
1916
+ name: 'senderPortfolio',
1763
1917
  type: 'PortfolioId',
1764
1918
  },
1765
1919
  {
1766
- name: 'receiver_portfolio',
1920
+ name: 'receiverPortfolio',
1767
1921
  type: 'PortfolioId',
1768
1922
  },
1769
1923
  {
@@ -1784,7 +1938,60 @@ exports.default = {
1784
1938
  description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
1785
1939
  params: [
1786
1940
  {
1787
- name: 'instruction_id',
1941
+ name: 'instructionId',
1942
+ type: 'InstructionId',
1943
+ },
1944
+ ],
1945
+ type: 'Option<ExecuteInstructionInfo>',
1946
+ },
1947
+ get_affirmation_count: {
1948
+ 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.',
1949
+ params: [
1950
+ {
1951
+ name: 'instructionId',
1952
+ type: 'InstructionId',
1953
+ },
1954
+ {
1955
+ name: 'portfolios',
1956
+ type: 'Vec<PortfolioId>',
1957
+ },
1958
+ ],
1959
+ type: 'AffirmationCount',
1960
+ },
1961
+ get_transfer_report: {
1962
+ description: "Returns a vector containing all errors for the transfer. An empty vec means there's no error.",
1963
+ params: [
1964
+ {
1965
+ name: 'leg',
1966
+ type: 'Leg',
1967
+ },
1968
+ {
1969
+ name: 'skipLockedCheck',
1970
+ type: 'bool',
1971
+ },
1972
+ ],
1973
+ type: 'Vec<DispatchError>',
1974
+ },
1975
+ get_execute_instruction_report: {
1976
+ description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
1977
+ params: [
1978
+ {
1979
+ name: 'instructionId',
1980
+ type: 'InstructionId',
1981
+ },
1982
+ ],
1983
+ type: 'Vec<DispatchError>',
1984
+ },
1985
+ },
1986
+ version: 2,
1987
+ },
1988
+ {
1989
+ methods: {
1990
+ get_execute_instruction_info: {
1991
+ description: 'Returns an ExecuteInstructionInfo instance containing the consumed weight and the number of tokens in the instruction.',
1992
+ params: [
1993
+ {
1994
+ name: 'instructionId',
1788
1995
  type: 'InstructionId',
1789
1996
  },
1790
1997
  ],
@@ -1794,7 +2001,7 @@ exports.default = {
1794
2001
  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.',
1795
2002
  params: [
1796
2003
  {
1797
- name: 'instruction_id',
2004
+ name: 'instructionId',
1798
2005
  type: 'InstructionId',
1799
2006
  },
1800
2007
  {
@@ -1812,7 +2019,7 @@ exports.default = {
1812
2019
  type: 'Leg',
1813
2020
  },
1814
2021
  {
1815
- name: 'skip_locked_check',
2022
+ name: 'skipLockedCheck',
1816
2023
  type: 'bool',
1817
2024
  },
1818
2025
  ],
@@ -1822,7 +2029,7 @@ exports.default = {
1822
2029
  description: "Returns a vector containing all errors for the execution. An empty vec means there's no error.",
1823
2030
  params: [
1824
2031
  {
1825
- name: 'instruction_id',
2032
+ name: 'instructionId',
1826
2033
  type: 'InstructionId',
1827
2034
  },
1828
2035
  ],
@@ -1899,6 +2106,29 @@ exports.default = {
1899
2106
  },
1900
2107
  ],
1901
2108
  ComplianceApi: [
2109
+ {
2110
+ methods: {
2111
+ compliance_report: {
2112
+ description: 'Checks all compliance requirements for the given asset_id.',
2113
+ params: [
2114
+ {
2115
+ name: 'assetId',
2116
+ type: 'AssetID',
2117
+ },
2118
+ {
2119
+ name: 'senderIdentity',
2120
+ type: 'IdentityId',
2121
+ },
2122
+ {
2123
+ name: 'receiverIdentity',
2124
+ type: 'IdentityId',
2125
+ },
2126
+ ],
2127
+ type: 'Result<ComplianceReport, DispatchError>',
2128
+ },
2129
+ },
2130
+ version: 2,
2131
+ },
1902
2132
  {
1903
2133
  methods: {
1904
2134
  compliance_report: {
@@ -1909,11 +2139,11 @@ exports.default = {
1909
2139
  type: 'Ticker',
1910
2140
  },
1911
2141
  {
1912
- name: 'sender_identity',
2142
+ name: 'senderIdentity',
1913
2143
  type: 'IdentityId',
1914
2144
  },
1915
2145
  {
1916
- name: 'receiver_identity',
2146
+ name: 'receiverIdentity',
1917
2147
  type: 'IdentityId',
1918
2148
  },
1919
2149
  ],