@fairmint/open-captable-protocol-daml-js 0.1.0 → 0.1.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/generated/ocp-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +246 -5
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +353 -10
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +81 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +116 -2
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +90 -10
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +134 -20
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +128 -8
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +187 -16
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +271 -7
- package/lib/Fairmint/OpenCapTable/Types/module.js +287 -17
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +2 -2
- package/package.json +2 -2
|
@@ -7,6 +7,163 @@ import * as damlTypes from '@daml/types';
|
|
|
7
7
|
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
8
|
import * as damlLedger from '@daml/ledger';
|
|
9
9
|
|
|
10
|
+
export declare type OcfCapitalizationDefinitionRules = {
|
|
11
|
+
include_outstanding_shares: boolean;
|
|
12
|
+
include_outstanding_options: boolean;
|
|
13
|
+
include_outstanding_unissued_options: boolean;
|
|
14
|
+
include_this_security: boolean;
|
|
15
|
+
include_other_converting_securities: boolean;
|
|
16
|
+
include_option_pool_topup_for_promised_options: boolean;
|
|
17
|
+
include_additional_option_pool_topup: boolean;
|
|
18
|
+
include_new_money: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export declare const OcfCapitalizationDefinitionRules:
|
|
22
|
+
damlTypes.Serializable<OcfCapitalizationDefinitionRules> & {
|
|
23
|
+
}
|
|
24
|
+
;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare type OcfCapitalizationDefinition = {
|
|
28
|
+
include_stock_class_ids: string[];
|
|
29
|
+
include_stock_plans_ids: string[];
|
|
30
|
+
include_security_ids: string[];
|
|
31
|
+
exclude_security_ids: string[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const OcfCapitalizationDefinition:
|
|
35
|
+
damlTypes.Serializable<OcfCapitalizationDefinition> & {
|
|
36
|
+
}
|
|
37
|
+
;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
export declare type OcfStockParent = {
|
|
41
|
+
parent_object_type: OcfParentSecurityType;
|
|
42
|
+
parent_object_id: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export declare const OcfStockParent:
|
|
46
|
+
damlTypes.Serializable<OcfStockParent> & {
|
|
47
|
+
}
|
|
48
|
+
;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export declare type OcfShareNumberRange = {
|
|
52
|
+
starting_share_number: damlTypes.Numeric;
|
|
53
|
+
ending_share_number: damlTypes.Numeric;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export declare const OcfShareNumberRange:
|
|
57
|
+
damlTypes.Serializable<OcfShareNumberRange> & {
|
|
58
|
+
}
|
|
59
|
+
;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export declare type OcfSecurityExemption = {
|
|
63
|
+
description: string;
|
|
64
|
+
jurisdiction: string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export declare const OcfSecurityExemption:
|
|
68
|
+
damlTypes.Serializable<OcfSecurityExemption> & {
|
|
69
|
+
}
|
|
70
|
+
;
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
export declare type OcfObjectReference = {
|
|
74
|
+
object_type: OcfObjectType;
|
|
75
|
+
object_id: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export declare const OcfObjectReference:
|
|
79
|
+
damlTypes.Serializable<OcfObjectReference> & {
|
|
80
|
+
}
|
|
81
|
+
;
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
export declare type OcfStakeholderRelationshipType =
|
|
85
|
+
| 'OcfRelEmployee'
|
|
86
|
+
| 'OcfRelAdvisor'
|
|
87
|
+
| 'OcfRelInvestor'
|
|
88
|
+
| 'OcfRelFounder'
|
|
89
|
+
| 'OcfRelBoardMember'
|
|
90
|
+
| 'OcfRelOfficer'
|
|
91
|
+
| 'OcfRelOther'
|
|
92
|
+
;
|
|
93
|
+
|
|
94
|
+
export declare const OcfStakeholderRelationshipType:
|
|
95
|
+
damlTypes.Serializable<OcfStakeholderRelationshipType> & {
|
|
96
|
+
}
|
|
97
|
+
& { readonly keys: OcfStakeholderRelationshipType[] } & { readonly [e in OcfStakeholderRelationshipType]: e }
|
|
98
|
+
;
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
export declare type OcfObjectType =
|
|
102
|
+
| 'OcfObjIssuer'
|
|
103
|
+
| 'OcfObjStakeholder'
|
|
104
|
+
| 'OcfObjStockClass'
|
|
105
|
+
| 'OcfObjStockLegendTemplate'
|
|
106
|
+
| 'OcfObjStockPlan'
|
|
107
|
+
| 'OcfObjValuation'
|
|
108
|
+
| 'OcfObjVestingTerms'
|
|
109
|
+
| 'OcfObjFinancing'
|
|
110
|
+
| 'OcfObjDocument'
|
|
111
|
+
| 'OcfObjCeStakeholderRelationship'
|
|
112
|
+
| 'OcfObjCeStakeholderStatus'
|
|
113
|
+
| 'OcfObjTxIssuerAuthorizedSharesAdjustment'
|
|
114
|
+
| 'OcfObjTxStockClassConversionRatioAdjustment'
|
|
115
|
+
| 'OcfObjTxStockClassAuthorizedSharesAdjustment'
|
|
116
|
+
| 'OcfObjTxStockClassSplit'
|
|
117
|
+
| 'OcfObjTxStockPlanPoolAdjustment'
|
|
118
|
+
| 'OcfObjTxStockPlanReturnToPool'
|
|
119
|
+
| 'OcfObjTxConvertibleAcceptance'
|
|
120
|
+
| 'OcfObjTxConvertibleCancellation'
|
|
121
|
+
| 'OcfObjTxConvertibleConversion'
|
|
122
|
+
| 'OcfObjTxConvertibleIssuance'
|
|
123
|
+
| 'OcfObjTxConvertibleRetraction'
|
|
124
|
+
| 'OcfObjTxConvertibleTransfer'
|
|
125
|
+
| 'OcfObjTxEquityCompensationAcceptance'
|
|
126
|
+
| 'OcfObjTxEquityCompensationCancellation'
|
|
127
|
+
| 'OcfObjTxEquityCompensationExercise'
|
|
128
|
+
| 'OcfObjTxEquityCompensationIssuance'
|
|
129
|
+
| 'OcfObjTxEquityCompensationRelease'
|
|
130
|
+
| 'OcfObjTxEquityCompensationRetraction'
|
|
131
|
+
| 'OcfObjTxEquityCompensationTransfer'
|
|
132
|
+
| 'OcfObjTxEquityCompensationRepricing'
|
|
133
|
+
| 'OcfObjTxPlanSecurityAcceptance'
|
|
134
|
+
| 'OcfObjTxPlanSecurityCancellation'
|
|
135
|
+
| 'OcfObjTxPlanSecurityExercise'
|
|
136
|
+
| 'OcfObjTxPlanSecurityIssuance'
|
|
137
|
+
| 'OcfObjTxPlanSecurityRelease'
|
|
138
|
+
| 'OcfObjTxPlanSecurityRetraction'
|
|
139
|
+
| 'OcfObjTxPlanSecurityTransfer'
|
|
140
|
+
| 'OcfObjTxStockAcceptance'
|
|
141
|
+
| 'OcfObjTxStockCancellation'
|
|
142
|
+
| 'OcfObjTxStockConversion'
|
|
143
|
+
| 'OcfObjTxStockIssuance'
|
|
144
|
+
| 'OcfObjTxStockReissuance'
|
|
145
|
+
| 'OcfObjTxStockConsolidation'
|
|
146
|
+
| 'OcfObjTxStockRepurchase'
|
|
147
|
+
| 'OcfObjTxStockRetraction'
|
|
148
|
+
| 'OcfObjTxStockTransfer'
|
|
149
|
+
| 'OcfObjTxWarrantAcceptance'
|
|
150
|
+
| 'OcfObjTxWarrantCancellation'
|
|
151
|
+
| 'OcfObjTxWarrantExercise'
|
|
152
|
+
| 'OcfObjTxWarrantIssuance'
|
|
153
|
+
| 'OcfObjTxWarrantRetraction'
|
|
154
|
+
| 'OcfObjTxWarrantTransfer'
|
|
155
|
+
| 'OcfObjTxVestingAcceleration'
|
|
156
|
+
| 'OcfObjTxVestingStart'
|
|
157
|
+
| 'OcfObjTxVestingEvent'
|
|
158
|
+
;
|
|
159
|
+
|
|
160
|
+
export declare const OcfObjectType:
|
|
161
|
+
damlTypes.Serializable<OcfObjectType> & {
|
|
162
|
+
}
|
|
163
|
+
& { readonly keys: OcfObjectType[] } & { readonly [e in OcfObjectType]: e }
|
|
164
|
+
;
|
|
165
|
+
|
|
166
|
+
|
|
10
167
|
export declare type TransferOperation = {
|
|
11
168
|
recipient: damlTypes.Party;
|
|
12
169
|
quantity: damlTypes.Numeric;
|
|
@@ -22,7 +179,8 @@ export declare type OcfStakeholderData = {
|
|
|
22
179
|
name: string;
|
|
23
180
|
stakeholder_type: OcfStakeholderType;
|
|
24
181
|
issuer_assigned_id: damlTypes.Optional<string>;
|
|
25
|
-
|
|
182
|
+
current_relationships: string[];
|
|
183
|
+
current_status: damlTypes.Optional<OcfStakeholderStatusType>;
|
|
26
184
|
primary_contact: damlTypes.Optional<OcfContactInfo>;
|
|
27
185
|
contact_info: damlTypes.Optional<OcfContactInfoWithoutName>;
|
|
28
186
|
addresses: OcfAddress[];
|
|
@@ -65,11 +223,12 @@ export declare type OcfIssuerData = {
|
|
|
65
223
|
country_of_formation: string;
|
|
66
224
|
dba: damlTypes.Optional<string>;
|
|
67
225
|
country_subdivision_of_formation: damlTypes.Optional<string>;
|
|
226
|
+
country_subdivision_name_of_formation: damlTypes.Optional<string>;
|
|
68
227
|
tax_ids: damlTypes.Optional<OcfTaxID[]>;
|
|
69
228
|
email: damlTypes.Optional<OcfEmail>;
|
|
70
|
-
phone: damlTypes.Optional<
|
|
229
|
+
phone: damlTypes.Optional<OcfPhone>;
|
|
71
230
|
address: damlTypes.Optional<OcfAddress>;
|
|
72
|
-
initial_shares_authorized: damlTypes.Optional<
|
|
231
|
+
initial_shares_authorized: damlTypes.Optional<OcfInitialSharesAuthorized>;
|
|
73
232
|
comments: damlTypes.Optional<string[]>;
|
|
74
233
|
};
|
|
75
234
|
|
|
@@ -79,6 +238,25 @@ export declare const OcfIssuerData:
|
|
|
79
238
|
;
|
|
80
239
|
|
|
81
240
|
|
|
241
|
+
export declare type OcfStakeholderStatusType =
|
|
242
|
+
| 'OcfStakeholderStatusActive'
|
|
243
|
+
| 'OcfStakeholderStatusLeaveOfAbsence'
|
|
244
|
+
| 'OcfStakeholderStatusTerminationVoluntaryOther'
|
|
245
|
+
| 'OcfStakeholderStatusTerminationVoluntaryGoodCause'
|
|
246
|
+
| 'OcfStakeholderStatusTerminationVoluntaryRetirement'
|
|
247
|
+
| 'OcfStakeholderStatusTerminationInvoluntaryOther'
|
|
248
|
+
| 'OcfStakeholderStatusTerminationInvoluntaryDeath'
|
|
249
|
+
| 'OcfStakeholderStatusTerminationInvoluntaryDisability'
|
|
250
|
+
| 'OcfStakeholderStatusTerminationInvoluntaryWithCause'
|
|
251
|
+
;
|
|
252
|
+
|
|
253
|
+
export declare const OcfStakeholderStatusType:
|
|
254
|
+
damlTypes.Serializable<OcfStakeholderStatusType> & {
|
|
255
|
+
}
|
|
256
|
+
& { readonly keys: OcfStakeholderStatusType[] } & { readonly [e in OcfStakeholderStatusType]: e }
|
|
257
|
+
;
|
|
258
|
+
|
|
259
|
+
|
|
82
260
|
export declare type OcfStakeholderType =
|
|
83
261
|
| 'OcfStakeholderTypeIndividual'
|
|
84
262
|
| 'OcfStakeholderTypeInstitution'
|
|
@@ -93,7 +271,7 @@ export declare const OcfStakeholderType:
|
|
|
93
271
|
|
|
94
272
|
export declare type OcfContactInfoWithoutName = {
|
|
95
273
|
email: damlTypes.Optional<OcfEmail>;
|
|
96
|
-
phone: damlTypes.Optional<
|
|
274
|
+
phone: damlTypes.Optional<OcfPhone>;
|
|
97
275
|
address: damlTypes.Optional<OcfAddress>;
|
|
98
276
|
};
|
|
99
277
|
|
|
@@ -106,7 +284,7 @@ export declare const OcfContactInfoWithoutName:
|
|
|
106
284
|
export declare type OcfContactInfo = {
|
|
107
285
|
name: string;
|
|
108
286
|
email: damlTypes.Optional<OcfEmail>;
|
|
109
|
-
phone: damlTypes.Optional<
|
|
287
|
+
phone: damlTypes.Optional<OcfPhone>;
|
|
110
288
|
address: damlTypes.Optional<OcfAddress>;
|
|
111
289
|
};
|
|
112
290
|
|
|
@@ -362,6 +540,74 @@ export declare const OcfValuationType:
|
|
|
362
540
|
;
|
|
363
541
|
|
|
364
542
|
|
|
543
|
+
export declare type OcfValuationBasedFormulaType =
|
|
544
|
+
| 'OcfValuationFormulaFixed'
|
|
545
|
+
| 'OcfValuationFormulaActual'
|
|
546
|
+
| 'OcfValuationFormulaCap'
|
|
547
|
+
;
|
|
548
|
+
|
|
549
|
+
export declare const OcfValuationBasedFormulaType:
|
|
550
|
+
damlTypes.Serializable<OcfValuationBasedFormulaType> & {
|
|
551
|
+
}
|
|
552
|
+
& { readonly keys: OcfValuationBasedFormulaType[] } & { readonly [e in OcfValuationBasedFormulaType]: e }
|
|
553
|
+
;
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
export declare type OcfStockIssuanceType =
|
|
557
|
+
| 'OcfStockIssuanceRSA'
|
|
558
|
+
| 'OcfStockIssuanceFounders'
|
|
559
|
+
;
|
|
560
|
+
|
|
561
|
+
export declare const OcfStockIssuanceType:
|
|
562
|
+
damlTypes.Serializable<OcfStockIssuanceType> & {
|
|
563
|
+
}
|
|
564
|
+
& { readonly keys: OcfStockIssuanceType[] } & { readonly [e in OcfStockIssuanceType]: e }
|
|
565
|
+
;
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
export declare type OcfQuantitySourceType =
|
|
569
|
+
| 'OcfQuantityHumanEstimated'
|
|
570
|
+
| 'OcfQuantityMachineEstimated'
|
|
571
|
+
| 'OcfQuantityUnspecified'
|
|
572
|
+
| 'OcfQuantityInstrumentFixed'
|
|
573
|
+
| 'OcfQuantityInstrumentMax'
|
|
574
|
+
| 'OcfQuantityInstrumentMin'
|
|
575
|
+
;
|
|
576
|
+
|
|
577
|
+
export declare const OcfQuantitySourceType:
|
|
578
|
+
damlTypes.Serializable<OcfQuantitySourceType> & {
|
|
579
|
+
}
|
|
580
|
+
& { readonly keys: OcfQuantitySourceType[] } & { readonly [e in OcfQuantitySourceType]: e }
|
|
581
|
+
;
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
export declare type OcfFinancing = {
|
|
585
|
+
name: string;
|
|
586
|
+
issuance_ids: string[];
|
|
587
|
+
date: damlTypes.Time;
|
|
588
|
+
comments: damlTypes.Optional<string[]>;
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
export declare const OcfFinancing:
|
|
592
|
+
damlTypes.Serializable<OcfFinancing> & {
|
|
593
|
+
}
|
|
594
|
+
;
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
export declare type OcfDocument = {
|
|
598
|
+
path: damlTypes.Optional<string>;
|
|
599
|
+
uri: damlTypes.Optional<string>;
|
|
600
|
+
md5: string;
|
|
601
|
+
related_objects: damlTypes.Optional<string[]>;
|
|
602
|
+
comments: damlTypes.Optional<string[]>;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
export declare const OcfDocument:
|
|
606
|
+
damlTypes.Serializable<OcfDocument> & {
|
|
607
|
+
}
|
|
608
|
+
;
|
|
609
|
+
|
|
610
|
+
|
|
365
611
|
export declare type OcfStockClassConversionRight = {
|
|
366
612
|
type_: string;
|
|
367
613
|
conversion_mechanism: OcfConversionMechanism;
|
|
@@ -398,8 +644,12 @@ export declare const OcfRatio:
|
|
|
398
644
|
|
|
399
645
|
|
|
400
646
|
export declare type OcfConversionTrigger =
|
|
401
|
-
| '
|
|
402
|
-
| '
|
|
647
|
+
| 'OcfTriggerAutomaticOnCondition'
|
|
648
|
+
| 'OcfTriggerAutomaticOnDate'
|
|
649
|
+
| 'OcfTriggerElectiveInRange'
|
|
650
|
+
| 'OcfTriggerElectiveOnCondition'
|
|
651
|
+
| 'OcfTriggerElectiveAtWill'
|
|
652
|
+
| 'OcfTriggerUnspecified'
|
|
403
653
|
;
|
|
404
654
|
|
|
405
655
|
export declare const OcfConversionTrigger:
|
|
@@ -512,6 +762,17 @@ export declare const OcfTaxID:
|
|
|
512
762
|
;
|
|
513
763
|
|
|
514
764
|
|
|
765
|
+
export declare type OcfPhone = {
|
|
766
|
+
phone_type: OcfPhoneType;
|
|
767
|
+
phone_number: string;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export declare const OcfPhone:
|
|
771
|
+
damlTypes.Serializable<OcfPhone> & {
|
|
772
|
+
}
|
|
773
|
+
;
|
|
774
|
+
|
|
775
|
+
|
|
515
776
|
export declare type OcfEmail = {
|
|
516
777
|
email_type: OcfEmailType;
|
|
517
778
|
email_address: string;
|
|
@@ -526,6 +787,7 @@ export declare const OcfEmail:
|
|
|
526
787
|
export declare type OcfEmailType =
|
|
527
788
|
| 'OcfEmailTypeBusiness'
|
|
528
789
|
| 'OcfEmailTypePersonal'
|
|
790
|
+
| 'OcfEmailTypeOther'
|
|
529
791
|
;
|
|
530
792
|
|
|
531
793
|
export declare const OcfEmailType:
|
|
@@ -643,6 +905,8 @@ export declare type OcfFileType =
|
|
|
643
905
|
| 'OcfTransactionsFile'
|
|
644
906
|
| 'OcfValuationsFile'
|
|
645
907
|
| 'OcfVestingTermsFile'
|
|
908
|
+
| 'OcfFinancingsFile'
|
|
909
|
+
| 'OcfDocumentsFile'
|
|
646
910
|
;
|
|
647
911
|
|
|
648
912
|
export declare const OcfFileType:
|