@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.
- package/CHANGELOG.md +2 -2
- package/api/client/Claims.d.ts.map +1 -1
- package/api/client/Claims.js +1 -1
- package/api/client/Claims.js.map +1 -1
- package/api/client/Polymesh.d.ts.map +1 -1
- package/api/client/Polymesh.js +1 -1
- package/api/client/Polymesh.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-25.1.0-alpha.2.tgz +0 -0
- package/package.json +2 -2
- package/polkadot/asset/definitions.js +2 -2
- package/polkadot/asset/definitions.js.map +1 -1
- package/polkadot/augment-api-errors.d.ts +8 -0
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +5 -6
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +140 -3
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +4 -1
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/identity/definitions.js +3 -3
- package/polkadot/identity/definitions.js.map +1 -1
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +2 -0
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +406 -104
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +654 -104
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +122 -104
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/schema.d.ts +206 -110
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +361 -131
- package/polkadot/schema.js.map +1 -1
- package/polkadot/settlement/definitions.js +1 -1
- package/polkadot/settlement/definitions.js.map +1 -1
- package/polkadot/types-lookup.d.ts +3 -1
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +43 -24
- package/utils/conversion.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-25.0.1-beta.1.tgz +0 -0
- package/polkadot/compliance/definitions.d.ts +0 -16
- package/polkadot/compliance/definitions.d.ts.map +0 -1
- package/polkadot/compliance/definitions.js +0 -35
- package/polkadot/compliance/definitions.js.map +0 -1
- package/polkadot/compliance/index.d.ts +0 -2
- package/polkadot/compliance/index.d.ts.map +0 -1
- package/polkadot/compliance/index.js +0 -20
- package/polkadot/compliance/index.js.map +0 -1
- package/polkadot/compliance/types.d.ts +0 -2
- package/polkadot/compliance/types.d.ts.map +0 -1
- package/polkadot/compliance/types.js +0 -5
- package/polkadot/compliance/types.js.map +0 -1
- package/polkadot/portfolio/definitions.d.ts +0 -25
- package/polkadot/portfolio/definitions.d.ts.map +0 -1
- package/polkadot/portfolio/definitions.js +0 -31
- package/polkadot/portfolio/definitions.js.map +0 -1
- package/polkadot/portfolio/index.d.ts +0 -2
- package/polkadot/portfolio/index.d.ts.map +0 -1
- package/polkadot/portfolio/index.js +0 -20
- package/polkadot/portfolio/index.js.map +0 -1
- package/polkadot/portfolio/types.d.ts +0 -2
- package/polkadot/portfolio/types.d.ts.map +0 -1
- package/polkadot/portfolio/types.js +0 -5
- package/polkadot/portfolio/types.js.map +0 -1
package/polkadot/schema.js
CHANGED
|
@@ -32,10 +32,10 @@ exports.default = {
|
|
|
32
32
|
DocumentType: 'Text',
|
|
33
33
|
Document: {
|
|
34
34
|
uri: 'DocumentUri',
|
|
35
|
-
|
|
35
|
+
contentHash: 'DocumentHash',
|
|
36
36
|
name: 'DocumentName',
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
79
|
-
|
|
78
|
+
totalSupply: 'Balance',
|
|
79
|
+
ownerDid: 'IdentityId',
|
|
80
80
|
divisible: 'bool',
|
|
81
|
-
|
|
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
|
-
|
|
102
|
+
lockStatus: 'AssetMetadataLockStatus',
|
|
103
103
|
},
|
|
104
104
|
AssetMetadataDescription: 'Text',
|
|
105
105
|
AssetMetadataSpec: {
|
|
106
106
|
url: 'Option<Url>',
|
|
107
107
|
description: 'Option<AssetMetadataDescription>',
|
|
108
|
-
|
|
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
|
-
|
|
135
|
-
|
|
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
|
-
|
|
161
|
-
|
|
160
|
+
secondaryKey: 'SecondaryKey',
|
|
161
|
+
authSignature: 'H512',
|
|
162
162
|
},
|
|
163
163
|
Subsidy: {
|
|
164
|
-
|
|
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
|
-
|
|
183
|
-
|
|
182
|
+
targetId: 'IdentityId',
|
|
183
|
+
secondaryKey: 'SecondaryKey',
|
|
184
184
|
},
|
|
185
185
|
DidRecord: {
|
|
186
|
-
|
|
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
|
-
|
|
491
|
-
|
|
492
|
-
|
|
490
|
+
claimIssuer: 'IdentityId',
|
|
491
|
+
issuanceDate: 'Moment',
|
|
492
|
+
lastUpdateDate: 'Moment',
|
|
493
493
|
expiry: 'Option<Moment>',
|
|
494
494
|
claim: 'Claim',
|
|
495
495
|
},
|
|
496
496
|
ComplianceRequirement: {
|
|
497
|
-
|
|
498
|
-
|
|
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
|
-
|
|
535
|
+
targetId: 'IdentityId',
|
|
536
536
|
nonce: 'u64',
|
|
537
|
-
|
|
537
|
+
expiresAt: 'Moment',
|
|
538
538
|
},
|
|
539
539
|
TickerRegistration: {
|
|
540
540
|
owner: 'IdentityId',
|
|
541
541
|
expiry: 'Option<Moment>',
|
|
542
542
|
},
|
|
543
543
|
TickerRegistrationConfig: {
|
|
544
|
-
|
|
545
|
-
|
|
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
|
-
|
|
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
|
-
|
|
583
|
-
|
|
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
|
-
|
|
606
|
-
|
|
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
|
-
|
|
648
|
-
|
|
647
|
+
authorizationData: 'AuthorizationData',
|
|
648
|
+
authorizedBy: 'IdentityId',
|
|
649
649
|
expiry: 'Option<Moment>',
|
|
650
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
747
|
+
deactivatedAt: 'Moment',
|
|
748
748
|
expiry: 'Option<Moment>',
|
|
749
749
|
},
|
|
750
750
|
VotingResult: {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
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
|
-
|
|
790
|
-
|
|
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
|
-
|
|
817
|
-
|
|
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
|
-
|
|
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
|
-
|
|
947
|
-
|
|
946
|
+
instructionId: 'InstructionId',
|
|
947
|
+
venueId: 'VenueId',
|
|
948
948
|
status: 'InstructionStatus',
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
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
|
-
|
|
956
|
+
venueType: 'VenueType',
|
|
957
957
|
},
|
|
958
958
|
Receipt: {
|
|
959
|
-
|
|
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
|
-
|
|
968
|
-
|
|
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
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1012
|
+
offeringPortfolio: 'PortfolioId',
|
|
1013
|
+
offeringAsset: 'Ticker',
|
|
1014
|
+
raisingPortfolio: 'PortfolioId',
|
|
1015
|
+
raisingAsset: 'Ticker',
|
|
1016
1016
|
tiers: 'Vec<FundraiserTier>',
|
|
1017
|
-
|
|
1017
|
+
venueId: 'VenueId',
|
|
1018
1018
|
start: 'Moment',
|
|
1019
1019
|
end: 'Option<Moment>',
|
|
1020
1020
|
status: 'FundraiserStatus',
|
|
1021
|
-
|
|
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
|
-
|
|
1065
|
-
|
|
1064
|
+
declDate: 'Moment',
|
|
1065
|
+
recordDate: 'Option<RecordDate>',
|
|
1066
1066
|
targets: 'TargetIdentities',
|
|
1067
|
-
|
|
1068
|
-
|
|
1067
|
+
defaultWithholdingTax: 'Tax',
|
|
1068
|
+
withholdingTax: 'Vec<(IdentityId, Tax)>',
|
|
1069
1069
|
},
|
|
1070
1070
|
InitiateCorporateActionArgs: {
|
|
1071
1071
|
ticker: 'Ticker',
|
|
1072
1072
|
kind: 'CAKind',
|
|
1073
|
-
|
|
1074
|
-
|
|
1073
|
+
declDate: 'Moment',
|
|
1074
|
+
recordDate: 'Option<RecordDateSpec>',
|
|
1075
1075
|
details: 'CADetails',
|
|
1076
1076
|
targets: 'Option<TargetIdentities>',
|
|
1077
|
-
|
|
1078
|
-
|
|
1077
|
+
defaultWithholdingTax: 'Option<Tax>',
|
|
1078
|
+
withholdingTax: 'Option<Vec<(IdentityId, Tax)>>',
|
|
1079
1079
|
},
|
|
1080
1080
|
LocalCAId: 'u32',
|
|
1081
1081
|
CAId: {
|
|
1082
1082
|
ticker: 'Ticker',
|
|
1083
|
-
|
|
1083
|
+
localId: 'LocalCAId',
|
|
1084
1084
|
},
|
|
1085
1085
|
Distribution: {
|
|
1086
1086
|
from: 'PortfolioId',
|
|
1087
1087
|
currency: 'Ticker',
|
|
1088
|
-
|
|
1088
|
+
perShare: 'Balance',
|
|
1089
1089
|
amount: 'Balance',
|
|
1090
1090
|
remaining: 'Balance',
|
|
1091
1091
|
reclaimed: 'bool',
|
|
1092
|
-
|
|
1093
|
-
|
|
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
|
-
|
|
1104
|
-
|
|
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
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
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
|
-
|
|
1125
|
+
consumedWeight: 'Option<Weight>',
|
|
1126
1126
|
},
|
|
1127
1127
|
PortfolioValidityResult: {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
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
|
-
|
|
1151
|
-
|
|
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
|
-
|
|
1185
|
-
|
|
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
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1222
|
+
fungibleTokens: 'u32',
|
|
1223
|
+
nonFungibleTokens: 'u32',
|
|
1224
|
+
offChainAssets: 'u32',
|
|
1225
1225
|
},
|
|
1226
1226
|
AffirmationCount: {
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
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: '
|
|
1327
|
+
name: 'allow_expired',
|
|
1313
1328
|
type: 'bool',
|
|
1314
1329
|
isOptional: false,
|
|
1315
1330
|
},
|
|
1316
1331
|
{
|
|
1317
|
-
name: '
|
|
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<
|
|
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<
|
|
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<
|
|
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: '
|
|
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: '
|
|
1616
|
-
type: 'Option<
|
|
1661
|
+
name: 'fromCustodian',
|
|
1662
|
+
type: 'Option<IdentityId>',
|
|
1617
1663
|
},
|
|
1618
1664
|
{
|
|
1619
|
-
name: '
|
|
1665
|
+
name: 'fromPortfolio',
|
|
1620
1666
|
type: 'PortfolioId',
|
|
1621
1667
|
},
|
|
1622
1668
|
{
|
|
1623
|
-
name: '
|
|
1624
|
-
type: 'Option<
|
|
1669
|
+
name: 'toCustodian',
|
|
1670
|
+
type: 'Option<IdentityId>',
|
|
1625
1671
|
},
|
|
1626
1672
|
{
|
|
1627
|
-
name: '
|
|
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: '
|
|
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: '
|
|
1841
|
+
type: 'Signatory',
|
|
1715
1842
|
},
|
|
1716
1843
|
{
|
|
1717
|
-
name: '
|
|
1844
|
+
name: 'allowExpired',
|
|
1718
1845
|
type: 'bool',
|
|
1719
1846
|
},
|
|
1720
1847
|
{
|
|
1721
|
-
name: '
|
|
1848
|
+
name: 'authType',
|
|
1722
1849
|
type: 'Option<AuthorizationType>',
|
|
1723
1850
|
},
|
|
1724
1851
|
],
|
|
1725
|
-
type: 'Vec<
|
|
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: '
|
|
1868
|
+
name: 'targetIdentity',
|
|
1742
1869
|
type: 'IdentityId',
|
|
1743
1870
|
},
|
|
1744
1871
|
{
|
|
1745
|
-
name: '
|
|
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: '
|
|
1916
|
+
name: 'senderPortfolio',
|
|
1763
1917
|
type: 'PortfolioId',
|
|
1764
1918
|
},
|
|
1765
1919
|
{
|
|
1766
|
-
name: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
2142
|
+
name: 'senderIdentity',
|
|
1913
2143
|
type: 'IdentityId',
|
|
1914
2144
|
},
|
|
1915
2145
|
{
|
|
1916
|
-
name: '
|
|
2146
|
+
name: 'receiverIdentity',
|
|
1917
2147
|
type: 'IdentityId',
|
|
1918
2148
|
},
|
|
1919
2149
|
],
|