generated from PolymeshAssociation/typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
/
types.ts
1535 lines (1343 loc) · 39.7 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import { ITuple } from '@polkadot/types/types';
import { Enum, Option, Struct, U8aFixed, Vec } from '@polkadot/types/codec';
import { Bytes, Text, bool, u16, u32, u64, u8 } from '@polkadot/types/primitive';
import { Signature } from '@polkadot/types/interfaces/extrinsics';
import {
AccountId,
Balance,
BlockNumber,
Call,
H256,
H512,
Hash,
Perbill,
Permill,
} from '@polkadot/types/interfaces/runtime';
/** @name AffirmationStatus */
export interface AffirmationStatus extends Enum {
readonly isUnknown: boolean;
readonly isPending: boolean;
readonly isAffirmed: boolean;
readonly isRejected: boolean;
}
/** @name AssetCompliance */
export interface AssetCompliance extends Struct {
readonly is_paused: bool;
readonly requirements: Vec<ComplianceRequirement>;
}
/** @name AssetComplianceResult */
export interface AssetComplianceResult extends Struct {
readonly paused: bool;
readonly requirements: Vec<ComplianceRequirementResult>;
readonly result: bool;
}
/** @name AssetDidResult */
export interface AssetDidResult extends Enum {
readonly isOk: boolean;
readonly asOk: IdentityId;
readonly isErr: boolean;
readonly asErr: Bytes;
}
/** @name AssetIdentifier */
export interface AssetIdentifier extends Enum {
readonly isCusip: boolean;
readonly asCusip: U8aFixed;
readonly isCins: boolean;
readonly asCins: U8aFixed;
readonly isIsin: boolean;
readonly asIsin: U8aFixed;
readonly isLei: boolean;
readonly asLei: U8aFixed;
}
/** @name AssetName */
export interface AssetName extends Text {}
/** @name AssetOwnershipRelation */
export interface AssetOwnershipRelation extends Enum {
readonly isNotOwned: boolean;
readonly isTickerOwned: boolean;
readonly isAssetOwned: boolean;
}
/** @name AssetType */
export interface AssetType extends Enum {
readonly isEquityCommon: boolean;
readonly isEquityPreferred: boolean;
readonly isCommodity: boolean;
readonly isFixedIncome: boolean;
readonly isReit: boolean;
readonly isFund: boolean;
readonly isRevenueShareAgreement: boolean;
readonly isStructuredProduct: boolean;
readonly isDerivative: boolean;
readonly isCustom: boolean;
readonly asCustom: Bytes;
}
/** @name AuthIdentifier */
export interface AuthIdentifier extends Struct {
readonly signatory: Signatory;
readonly auth_id: u64;
}
/** @name Authorization */
export interface Authorization extends Struct {
readonly authorization_data: AuthorizationData;
readonly authorized_by: IdentityId;
readonly expiry: Option<Moment>;
readonly auth_id: u64;
}
/** @name AuthorizationData */
export interface AuthorizationData extends Enum {
readonly isAttestPrimaryKeyRotation: boolean;
readonly asAttestPrimaryKeyRotation: IdentityId;
readonly isRotatePrimaryKey: boolean;
readonly asRotatePrimaryKey: IdentityId;
readonly isTransferTicker: boolean;
readonly asTransferTicker: Ticker;
readonly isTransferPrimaryIssuanceAgent: boolean;
readonly asTransferPrimaryIssuanceAgent: Ticker;
readonly isAddMultiSigSigner: boolean;
readonly asAddMultiSigSigner: AccountId;
readonly isTransferAssetOwnership: boolean;
readonly asTransferAssetOwnership: Ticker;
readonly isJoinIdentity: boolean;
readonly asJoinIdentity: Permissions;
readonly isPortfolioCustody: boolean;
readonly asPortfolioCustody: PortfolioId;
readonly isCustom: boolean;
readonly asCustom: Ticker;
readonly isNoData: boolean;
readonly isTransferCorporateActionAgent: boolean;
readonly asTransferCorporateActionAgent: Ticker;
}
/** @name AuthorizationNonce */
export interface AuthorizationNonce extends u64 {}
/** @name AuthorizationType */
export interface AuthorizationType extends Enum {
readonly isAttestPrimaryKeyRotation: boolean;
readonly isRotatePrimaryKey: boolean;
readonly isTransferTicker: boolean;
readonly isTransferPrimaryIssuanceAgent: boolean;
readonly isAddMultiSigSigner: boolean;
readonly isTransferAssetOwnership: boolean;
readonly isJoinIdentity: boolean;
readonly isPortfolioCustody: boolean;
readonly isCustom: boolean;
readonly isNoData: boolean;
readonly isTransferCorporateActionAgent: boolean;
}
/** @name Ballot */
export interface Ballot extends Struct {
readonly checkpoint_id: u64;
readonly voting_start: Moment;
readonly voting_end: Moment;
readonly motions: Vec<Motion>;
}
/** @name BallotMeta */
export interface BallotMeta extends Struct {
readonly title: BallotTitle;
readonly motions: Vec<Motion>;
}
/** @name BallotTimeRange */
export interface BallotTimeRange extends Struct {
readonly start: Moment;
readonly end: Moment;
}
/** @name BallotTitle */
export interface BallotTitle extends Text {}
/** @name BallotVote */
export interface BallotVote extends Struct {
readonly power: Balance;
readonly fallback: Option<u16>;
}
/** @name BatchAddClaimItem */
export interface BatchAddClaimItem extends Struct {
readonly target: IdentityId;
readonly claim: Claim;
readonly expiry: Option<Moment>;
}
/** @name BatchRevokeClaimItem */
export interface BatchRevokeClaimItem extends Struct {
readonly target: IdentityId;
readonly claim: Claim;
}
/** @name Beneficiary */
export interface Beneficiary extends Struct {
readonly id: IdentityId;
readonly amount: Balance;
}
/** @name BridgeTx */
export interface BridgeTx extends Struct {
readonly nonce: u32;
readonly recipient: AccountId;
readonly value: Balance;
readonly tx_hash: H256;
}
/** @name BridgeTxDetail */
export interface BridgeTxDetail extends Struct {
readonly amount: Balance;
readonly status: BridgeTxStatus;
readonly execution_block: BlockNumber;
readonly tx_hash: H256;
}
/** @name BridgeTxStatus */
export interface BridgeTxStatus extends Enum {
readonly isAbsent: boolean;
readonly isPending: boolean;
readonly asPending: u8;
readonly isFrozen: boolean;
readonly isTimelocked: boolean;
readonly isHandled: boolean;
}
/** @name CACheckpoint */
export interface CACheckpoint extends Enum {
readonly isScheduled: boolean;
readonly asScheduled: ScheduleId;
readonly isExisting: boolean;
readonly asExisting: CheckpointId;
}
/** @name CADetails */
export interface CADetails extends Text {}
/** @name CAId */
export interface CAId extends Struct {
readonly ticker: Ticker;
readonly local_id: LocalCAId;
}
/** @name CAKind */
export interface CAKind extends Enum {
readonly isPredictableBenefit: boolean;
readonly isUnpredictableBenfit: boolean;
readonly isIssuerNotice: boolean;
readonly isReorganization: boolean;
readonly isOther: boolean;
}
/** @name CalendarPeriod */
export interface CalendarPeriod extends Struct {
readonly unit: CalendarUnit;
readonly amount: u64;
}
/** @name CalendarUnit */
export interface CalendarUnit extends Enum {
readonly isSecond: boolean;
readonly isMinute: boolean;
readonly isHour: boolean;
readonly isDay: boolean;
readonly isWeek: boolean;
readonly isMonth: boolean;
readonly isYear: boolean;
}
/** @name CanTransferResult */
export interface CanTransferResult extends Enum {
readonly isOk: boolean;
readonly asOk: u8;
readonly isErr: boolean;
readonly asErr: Bytes;
}
/** @name CappedFee */
export interface CappedFee extends u64 {}
/** @name CddId */
export interface CddId extends U8aFixed {}
/** @name CddStatus */
export interface CddStatus extends Enum {
readonly isOk: boolean;
readonly asOk: IdentityId;
readonly isErr: boolean;
readonly asErr: Bytes;
}
/** @name CheckpointId */
export interface CheckpointId extends u64 {}
/** @name CheckpointSchedule */
export interface CheckpointSchedule extends Struct {
readonly start: Moment;
readonly period: CalendarPeriod;
}
/** @name ChoiceTitle */
export interface ChoiceTitle extends Text {}
/** @name Claim */
export interface Claim extends Enum {
readonly isAccredited: boolean;
readonly asAccredited: Scope;
readonly isAffiliate: boolean;
readonly asAffiliate: Scope;
readonly isBuyLockup: boolean;
readonly asBuyLockup: Scope;
readonly isSellLockup: boolean;
readonly asSellLockup: Scope;
readonly isCustomerDueDiligence: boolean;
readonly asCustomerDueDiligence: CddId;
readonly isKnowYourCustomer: boolean;
readonly asKnowYourCustomer: Scope;
readonly isJurisdiction: boolean;
readonly asJurisdiction: ITuple<[CountryCode, Scope]>;
readonly isExempted: boolean;
readonly asExempted: Scope;
readonly isBlocked: boolean;
readonly asBlocked: Scope;
readonly isInvestorUniqueness: boolean;
readonly asInvestorUniqueness: ITuple<[Scope, ScopeId, CddId]>;
readonly isNoData: boolean;
}
/** @name Claim1stKey */
export interface Claim1stKey extends Struct {
readonly target: IdentityId;
readonly claim_type: ClaimType;
}
/** @name Claim2ndKey */
export interface Claim2ndKey extends Struct {
readonly issuer: IdentityId;
readonly scope: Option<Scope>;
}
/** @name ClaimType */
export interface ClaimType extends Enum {
readonly isAccredited: boolean;
readonly isAffiliate: boolean;
readonly isBuyLockup: boolean;
readonly isSellLockup: boolean;
readonly isCustomerDueDiligence: boolean;
readonly isKnowYourCustomer: boolean;
readonly isJurisdiction: boolean;
readonly isExempted: boolean;
readonly isBlocked: boolean;
readonly isInvestorUniqueness: boolean;
readonly isNoData: boolean;
}
/** @name ClassicTickerImport */
export interface ClassicTickerImport extends Struct {
readonly eth_owner: EthereumAddress;
readonly ticker: Ticker;
readonly is_contract: bool;
readonly is_created: bool;
}
/** @name ClassicTickerRegistration */
export interface ClassicTickerRegistration extends Struct {
readonly eth_owner: EthereumAddress;
readonly is_created: bool;
}
/** @name Commission */
export interface Commission extends Enum {
readonly isIndividual: boolean;
readonly isGlobal: boolean;
readonly asGlobal: u32;
}
/** @name Committee */
export interface Committee extends Enum {
readonly isTechnical: boolean;
readonly isUpgrade: boolean;
}
/** @name ComplianceRequirement */
export interface ComplianceRequirement extends Struct {
readonly sender_conditions: Vec<Condition>;
readonly receiver_conditions: Vec<Condition>;
readonly id: u32;
}
/** @name ComplianceRequirementResult */
export interface ComplianceRequirementResult extends Struct {
readonly sender_conditions: Vec<ConditionResult>;
readonly receiver_conditions: Vec<ConditionResult>;
readonly id: u32;
readonly result: bool;
}
/** @name Condition */
export interface Condition extends Struct {
readonly condition_type: ConditionType;
readonly issuers: Vec<TrustedIssuer>;
}
/** @name ConditionResult */
export interface ConditionResult extends Struct {
readonly condition: Condition;
readonly result: bool;
}
/** @name ConditionType */
export interface ConditionType extends Enum {
readonly isIsPresent: boolean;
readonly asIsPresent: Claim;
readonly isIsAbsent: boolean;
readonly asIsAbsent: Claim;
readonly isIsAnyOf: boolean;
readonly asIsAnyOf: Vec<Claim>;
readonly isIsNoneOf: boolean;
readonly asIsNoneOf: Vec<Claim>;
readonly isIsIdentity: boolean;
readonly asIsIdentity: TargetIdentity;
}
/** @name CorporateAction */
export interface CorporateAction extends Struct {
readonly kind: CAKind;
readonly decl_date: Moment;
readonly record_date: Option<RecordDate>;
readonly details: Text;
readonly targets: TargetIdentities;
readonly default_withholding_tax: Tax;
readonly withholding_tax: Vec<ITuple<[IdentityId, Tax]>>;
}
/** @name Counter */
export interface Counter extends u64 {}
/** @name CountryCode */
export interface CountryCode extends Enum {
readonly isAf: boolean;
readonly isAx: boolean;
readonly isAl: boolean;
readonly isDz: boolean;
readonly isAs: boolean;
readonly isAd: boolean;
readonly isAo: boolean;
readonly isAi: boolean;
readonly isAq: boolean;
readonly isAg: boolean;
readonly isAr: boolean;
readonly isAm: boolean;
readonly isAw: boolean;
readonly isAu: boolean;
readonly isAt: boolean;
readonly isAz: boolean;
readonly isBs: boolean;
readonly isBh: boolean;
readonly isBd: boolean;
readonly isBb: boolean;
readonly isBy: boolean;
readonly isBe: boolean;
readonly isBz: boolean;
readonly isBj: boolean;
readonly isBm: boolean;
readonly isBt: boolean;
readonly isBo: boolean;
readonly isBa: boolean;
readonly isBw: boolean;
readonly isBv: boolean;
readonly isBr: boolean;
readonly isVg: boolean;
readonly isIo: boolean;
readonly isBn: boolean;
readonly isBg: boolean;
readonly isBf: boolean;
readonly isBi: boolean;
readonly isKh: boolean;
readonly isCm: boolean;
readonly isCa: boolean;
readonly isCv: boolean;
readonly isKy: boolean;
readonly isCf: boolean;
readonly isTd: boolean;
readonly isCl: boolean;
readonly isCn: boolean;
readonly isHk: boolean;
readonly isMo: boolean;
readonly isCx: boolean;
readonly isCc: boolean;
readonly isCo: boolean;
readonly isKm: boolean;
readonly isCg: boolean;
readonly isCd: boolean;
readonly isCk: boolean;
readonly isCr: boolean;
readonly isCi: boolean;
readonly isHr: boolean;
readonly isCu: boolean;
readonly isCy: boolean;
readonly isCz: boolean;
readonly isDk: boolean;
readonly isDj: boolean;
readonly isDm: boolean;
readonly isDo: boolean;
readonly isEc: boolean;
readonly isEg: boolean;
readonly isSv: boolean;
readonly isGq: boolean;
readonly isEr: boolean;
readonly isEe: boolean;
readonly isEt: boolean;
readonly isFk: boolean;
readonly isFo: boolean;
readonly isFj: boolean;
readonly isFi: boolean;
readonly isFr: boolean;
readonly isGf: boolean;
readonly isPf: boolean;
readonly isTf: boolean;
readonly isGa: boolean;
readonly isGm: boolean;
readonly isGe: boolean;
readonly isDe: boolean;
readonly isGh: boolean;
readonly isGi: boolean;
readonly isGr: boolean;
readonly isGl: boolean;
readonly isGd: boolean;
readonly isGp: boolean;
readonly isGu: boolean;
readonly isGt: boolean;
readonly isGg: boolean;
readonly isGn: boolean;
readonly isGw: boolean;
readonly isGy: boolean;
readonly isHt: boolean;
readonly isHm: boolean;
readonly isVa: boolean;
readonly isHn: boolean;
readonly isHu: boolean;
readonly isIs: boolean;
readonly isIn: boolean;
readonly isId: boolean;
readonly isIr: boolean;
readonly isIq: boolean;
readonly isIe: boolean;
readonly isIm: boolean;
readonly isIl: boolean;
readonly isIt: boolean;
readonly isJm: boolean;
readonly isJp: boolean;
readonly isJe: boolean;
readonly isJo: boolean;
readonly isKz: boolean;
readonly isKe: boolean;
readonly isKi: boolean;
readonly isKp: boolean;
readonly isKr: boolean;
readonly isKw: boolean;
readonly isKg: boolean;
readonly isLa: boolean;
readonly isLv: boolean;
readonly isLb: boolean;
readonly isLs: boolean;
readonly isLr: boolean;
readonly isLy: boolean;
readonly isLi: boolean;
readonly isLt: boolean;
readonly isLu: boolean;
readonly isMk: boolean;
readonly isMg: boolean;
readonly isMw: boolean;
readonly isMy: boolean;
readonly isMv: boolean;
readonly isMl: boolean;
readonly isMt: boolean;
readonly isMh: boolean;
readonly isMq: boolean;
readonly isMr: boolean;
readonly isMu: boolean;
readonly isYt: boolean;
readonly isMx: boolean;
readonly isFm: boolean;
readonly isMd: boolean;
readonly isMc: boolean;
readonly isMn: boolean;
readonly isMe: boolean;
readonly isMs: boolean;
readonly isMa: boolean;
readonly isMz: boolean;
readonly isMm: boolean;
readonly isNa: boolean;
readonly isNr: boolean;
readonly isNp: boolean;
readonly isNl: boolean;
readonly isAn: boolean;
readonly isNc: boolean;
readonly isNz: boolean;
readonly isNi: boolean;
readonly isNe: boolean;
readonly isNg: boolean;
readonly isNu: boolean;
readonly isNf: boolean;
readonly isMp: boolean;
readonly isNo: boolean;
readonly isOm: boolean;
readonly isPk: boolean;
readonly isPw: boolean;
readonly isPs: boolean;
readonly isPa: boolean;
readonly isPg: boolean;
readonly isPy: boolean;
readonly isPe: boolean;
readonly isPh: boolean;
readonly isPn: boolean;
readonly isPl: boolean;
readonly isPt: boolean;
readonly isPr: boolean;
readonly isQa: boolean;
readonly isRe: boolean;
readonly isRo: boolean;
readonly isRu: boolean;
readonly isRw: boolean;
readonly isBl: boolean;
readonly isSh: boolean;
readonly isKn: boolean;
readonly isLc: boolean;
readonly isMf: boolean;
readonly isPm: boolean;
readonly isVc: boolean;
readonly isWs: boolean;
readonly isSm: boolean;
readonly isSt: boolean;
readonly isSa: boolean;
readonly isSn: boolean;
readonly isRs: boolean;
readonly isSc: boolean;
readonly isSl: boolean;
readonly isSg: boolean;
readonly isSk: boolean;
readonly isSi: boolean;
readonly isSb: boolean;
readonly isSo: boolean;
readonly isZa: boolean;
readonly isGs: boolean;
readonly isSs: boolean;
readonly isEs: boolean;
readonly isLk: boolean;
readonly isSd: boolean;
readonly isSr: boolean;
readonly isSj: boolean;
readonly isSz: boolean;
readonly isSe: boolean;
readonly isCh: boolean;
readonly isSy: boolean;
readonly isTw: boolean;
readonly isTj: boolean;
readonly isTz: boolean;
readonly isTh: boolean;
readonly isTl: boolean;
readonly isTg: boolean;
readonly isTk: boolean;
readonly isTo: boolean;
readonly isTt: boolean;
readonly isTn: boolean;
readonly isTr: boolean;
readonly isTm: boolean;
readonly isTc: boolean;
readonly isTv: boolean;
readonly isUg: boolean;
readonly isUa: boolean;
readonly isAe: boolean;
readonly isGb: boolean;
readonly isUs: boolean;
readonly isUm: boolean;
readonly isUy: boolean;
readonly isUz: boolean;
readonly isVu: boolean;
readonly isVe: boolean;
readonly isVn: boolean;
readonly isVi: boolean;
readonly isWf: boolean;
readonly isEh: boolean;
readonly isYe: boolean;
readonly isZm: boolean;
readonly isZw: boolean;
}
/** @name DepositInfo */
export interface DepositInfo extends Struct {
readonly owner: AccountId;
readonly amount: Balance;
}
/** @name DidRecord */
export interface DidRecord extends Struct {
readonly primary_key: AccountId;
readonly secondary_keys: Vec<SecondaryKey>;
}
/** @name DidRecords */
export interface DidRecords extends Enum {
readonly isSuccess: boolean;
readonly asSuccess: DidRecordsSuccess;
readonly isIdNotFound: boolean;
readonly asIdNotFound: Bytes;
}
/** @name DidRecordsSuccess */
export interface DidRecordsSuccess extends Struct {
readonly primary_key: AccountId;
readonly secondary_key: Vec<SecondaryKey>;
}
/** @name DidStatus */
export interface DidStatus extends Enum {
readonly isUnknown: boolean;
readonly isExists: boolean;
readonly isCddVerified: boolean;
}
/** @name DispatchableName */
export interface DispatchableName extends Text {}
/** @name Distribution */
export interface Distribution extends Struct {
readonly from: PortfolioId;
readonly currency: Ticker;
readonly amount: Balance;
readonly remaining: Balance;
readonly reclaimed: bool;
readonly payment_at: Moment;
readonly expires_at: Option<Moment>;
}
/** @name Dividend */
export interface Dividend extends Struct {
readonly amount: Balance;
readonly active: bool;
readonly matures_at: Option<Moment>;
readonly expires_at: Option<Moment>;
readonly payout_currency: Option<Ticker>;
readonly checkpoint_id: u64;
}
/** @name Document */
export interface Document extends Struct {
readonly uri: DocumentUri;
readonly content_hash: DocumentHash;
readonly name: DocumentName;
readonly doc_type: Option<DocumentType>;
readonly filing_date: Option<Moment>;
}
/** @name DocumentHash */
export interface DocumentHash extends Text {}
/** @name DocumentId */
export interface DocumentId extends u32 {}
/** @name DocumentName */
export interface DocumentName extends Text {}
/** @name DocumentType */
export interface DocumentType extends Text {}
/** @name DocumentUri */
export interface DocumentUri extends Text {}
/** @name EcdsaSignature */
export interface EcdsaSignature extends U8aFixed {}
/** @name EthereumAddress */
export interface EthereumAddress extends U8aFixed {}
/** @name EventDid */
export interface EventDid extends IdentityId {}
/** @name ExtensionAttributes */
export interface ExtensionAttributes extends Struct {
readonly usage_fee: Balance;
readonly version: MetaVersion;
}
/** @name ExtVersion */
export interface ExtVersion extends u32 {}
/** @name FeeOf */
export interface FeeOf extends Balance {}
/** @name FundingRoundName */
export interface FundingRoundName extends Text {}
/** @name Fundraiser */
export interface Fundraiser extends Struct {
readonly creator: IdentityId;
readonly offering_portfolio: PortfolioId;
readonly offering_asset: Ticker;
readonly raising_portfolio: PortfolioId;
readonly raising_asset: Ticker;
readonly tiers: Vec<FundraiserTier>;
readonly venue_id: u64;
readonly start: Moment;
readonly end: Option<Moment>;
readonly frozen: bool;
}
/** @name FundraiserTier */
export interface FundraiserTier extends Struct {
readonly total: Balance;
readonly price: Balance;
readonly remaining: Balance;
}
/** @name HandledTxStatus */
export interface HandledTxStatus extends Enum {
readonly isSuccess: boolean;
readonly isError: boolean;
readonly asError: Text;
}
/** @name HistoricalVotingByAddress */
export interface HistoricalVotingByAddress extends Vec<VoteByPip> {}
/** @name HistoricalVotingById */
export interface HistoricalVotingById extends Vec<ITuple<[AccountId, HistoricalVotingByAddress]>> {}
/** @name IdentityClaim */
export interface IdentityClaim extends Struct {
readonly claim_issuer: IdentityId;
readonly issuance_date: Moment;
readonly last_update_date: Moment;
readonly expiry: Option<Moment>;
readonly claim: Claim;
}
/** @name IdentityClaimKey */
export interface IdentityClaimKey extends Struct {
readonly id: IdentityId;
readonly claim_type: ClaimType;
}
/** @name IdentityId */
export interface IdentityId extends U8aFixed {}
/** @name IdentityRole */
export interface IdentityRole extends Enum {
readonly isIssuer: boolean;
readonly isSimpleTokenIssuer: boolean;
readonly isValidator: boolean;
readonly isClaimIssuer: boolean;
readonly isInvestor: boolean;
readonly isNodeRunner: boolean;
readonly isPm: boolean;
readonly isCddamlClaimIssuer: boolean;
readonly isAccreditedInvestorClaimIssuer: boolean;
readonly isVerifiedIdentityClaimIssuer: boolean;
}
/** @name InactiveMember */
export interface InactiveMember extends Struct {
readonly id: IdentityId;
readonly deactivated_at: Moment;
readonly expiry: Option<Moment>;
}
/** @name Instruction */
export interface Instruction extends Struct {
readonly instruction_id: u64;
readonly venue_id: u64;
readonly status: InstructionStatus;
readonly settlement_type: SettlementType;
readonly created_at: Option<Moment>;
readonly valid_from: Option<Moment>;
}
/** @name InstructionStatus */
export interface InstructionStatus extends Enum {
readonly isUnknown: boolean;
readonly isPending: boolean;
}
/** @name Investment */
export interface Investment extends Struct {
readonly investor_did: IdentityId;
readonly amount_paid: Balance;
readonly assets_purchased: Balance;
readonly last_purchase_date: Moment;
}
/** @name InvestorUid */
export interface InvestorUid extends U8aFixed {}
/** @name InvestorZKProofData */
export interface InvestorZKProofData extends U8aFixed {}
/** @name IssueAssetItem */
export interface IssueAssetItem extends Struct {
readonly identity_did: IdentityId;
readonly value: Balance;
}
/** @name IssueRecipient */
export interface IssueRecipient extends Enum {
readonly isAccount: boolean;
readonly asAccount: AccountId;
readonly isIdentity: boolean;
readonly asIdentity: IdentityId;
}
/** @name KeyIdentityData */
export interface KeyIdentityData extends Struct {
readonly identity: IdentityId;
readonly permissions: Option<Permissions>;
}
/** @name Leg */
export interface Leg extends Struct {
readonly from: PortfolioId;
readonly to: PortfolioId;
readonly asset: Ticker;
readonly amount: Balance;
}
/** @name LegacyPalletPermissions */
export interface LegacyPalletPermissions extends Struct {
readonly pallet_name: PalletName;
readonly total: bool;
readonly dispatchable_names: Vec<DispatchableName>;
}
/** @name LegacyPermissions */
export interface LegacyPermissions extends Struct {
readonly asset: Option<Vec<Ticker>>;
readonly extrinsic: Option<Vec<LegacyPalletPermissions>>;
readonly portfolio: Option<Vec<PortfolioId>>;
}
/** @name LegStatus */
export interface LegStatus extends Enum {
readonly isPendingTokenLock: boolean;
readonly isExecutionPending: boolean;
readonly isExecutionToBeSkipped: boolean;
readonly asExecutionToBeSkipped: ITuple<[AccountId, u64]>;
}
/** @name LocalCAId */
export interface LocalCAId extends u32 {}
/** @name MaybeBlock */
export interface MaybeBlock extends Enum {
readonly isSome: boolean;
readonly asSome: BlockNumber;
readonly isNone: boolean;
}
/** @name Memo */
export interface Memo extends U8aFixed {}
/** @name MetaDescription */
export interface MetaDescription extends Text {}
/** @name MetaUrl */
export interface MetaUrl extends Text {}
/** @name MetaVersion */
export interface MetaVersion extends u32 {}
/** @name Moment */
export interface Moment extends u64 {}
/** @name Motion */
export interface Motion extends Struct {
readonly title: MotionTitle;
readonly info_link: MotionInfoLink;
readonly choices: Vec<ChoiceTitle>;
}
/** @name MotionInfoLink */
export interface MotionInfoLink extends Text {}
/** @name MotionTitle */
export interface MotionTitle extends Text {}
/** @name MovePortfolioItem */
export interface MovePortfolioItem extends Struct {
readonly ticker: Ticker;
readonly amount: Balance;
}
/** @name OffChainSignature */
export interface OffChainSignature extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: H512;
readonly isSr25519: boolean;
readonly asSr25519: H512;
readonly isEcdsa: boolean;
readonly asEcdsa: H512;
}
/** @name OfflineSlashingParams */
export interface OfflineSlashingParams extends Struct {
readonly max_offline_percent: u32;
readonly constant: u32;
readonly max_slash_percent: u32;
}
/** @name PalletName */
export interface PalletName extends Text {}