@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
|
@@ -13,6 +13,171 @@ var damlTypes = require('@daml/types');
|
|
|
13
13
|
var damlLedger = require('@daml/ledger');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
exports.OcfCapitalizationDefinitionRules = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({include_outstanding_shares: damlTypes.Bool.decoder, include_outstanding_options: damlTypes.Bool.decoder, include_outstanding_unissued_options: damlTypes.Bool.decoder, include_this_security: damlTypes.Bool.decoder, include_other_converting_securities: damlTypes.Bool.decoder, include_option_pool_topup_for_promised_options: damlTypes.Bool.decoder, include_additional_option_pool_topup: damlTypes.Bool.decoder, include_new_money: damlTypes.Bool.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
include_outstanding_shares: damlTypes.Bool.encode(__typed__.include_outstanding_shares),
|
|
21
|
+
include_outstanding_options: damlTypes.Bool.encode(__typed__.include_outstanding_options),
|
|
22
|
+
include_outstanding_unissued_options: damlTypes.Bool.encode(__typed__.include_outstanding_unissued_options),
|
|
23
|
+
include_this_security: damlTypes.Bool.encode(__typed__.include_this_security),
|
|
24
|
+
include_other_converting_securities: damlTypes.Bool.encode(__typed__.include_other_converting_securities),
|
|
25
|
+
include_option_pool_topup_for_promised_options: damlTypes.Bool.encode(__typed__.include_option_pool_topup_for_promised_options),
|
|
26
|
+
include_additional_option_pool_topup: damlTypes.Bool.encode(__typed__.include_additional_option_pool_topup),
|
|
27
|
+
include_new_money: damlTypes.Bool.encode(__typed__.include_new_money),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.OcfCapitalizationDefinition = {
|
|
36
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({include_stock_class_ids: damlTypes.List(damlTypes.Text).decoder, include_stock_plans_ids: damlTypes.List(damlTypes.Text).decoder, include_security_ids: damlTypes.List(damlTypes.Text).decoder, exclude_security_ids: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
37
|
+
encode: function (__typed__) {
|
|
38
|
+
return {
|
|
39
|
+
include_stock_class_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_stock_class_ids),
|
|
40
|
+
include_stock_plans_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_stock_plans_ids),
|
|
41
|
+
include_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.include_security_ids),
|
|
42
|
+
exclude_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.exclude_security_ids),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
exports.OcfStockParent = {
|
|
51
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({parent_object_type: exports.OcfParentSecurityType.decoder, parent_object_id: damlTypes.Text.decoder, }); }),
|
|
52
|
+
encode: function (__typed__) {
|
|
53
|
+
return {
|
|
54
|
+
parent_object_type: exports.OcfParentSecurityType.encode(__typed__.parent_object_type),
|
|
55
|
+
parent_object_id: damlTypes.Text.encode(__typed__.parent_object_id),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
exports.OcfShareNumberRange = {
|
|
64
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({starting_share_number: damlTypes.Numeric(10).decoder, ending_share_number: damlTypes.Numeric(10).decoder, }); }),
|
|
65
|
+
encode: function (__typed__) {
|
|
66
|
+
return {
|
|
67
|
+
starting_share_number: damlTypes.Numeric(10).encode(__typed__.starting_share_number),
|
|
68
|
+
ending_share_number: damlTypes.Numeric(10).encode(__typed__.ending_share_number),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
,
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
exports.OcfSecurityExemption = {
|
|
77
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({description: damlTypes.Text.decoder, jurisdiction: damlTypes.Text.decoder, }); }),
|
|
78
|
+
encode: function (__typed__) {
|
|
79
|
+
return {
|
|
80
|
+
description: damlTypes.Text.encode(__typed__.description),
|
|
81
|
+
jurisdiction: damlTypes.Text.encode(__typed__.jurisdiction),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
exports.OcfObjectReference = {
|
|
90
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({object_type: exports.OcfObjectType.decoder, object_id: damlTypes.Text.decoder, }); }),
|
|
91
|
+
encode: function (__typed__) {
|
|
92
|
+
return {
|
|
93
|
+
object_type: exports.OcfObjectType.encode(__typed__.object_type),
|
|
94
|
+
object_id: damlTypes.Text.encode(__typed__.object_id),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
exports.OcfStakeholderRelationshipType = {
|
|
103
|
+
OcfRelEmployee: 'OcfRelEmployee',
|
|
104
|
+
OcfRelAdvisor: 'OcfRelAdvisor',
|
|
105
|
+
OcfRelInvestor: 'OcfRelInvestor',
|
|
106
|
+
OcfRelFounder: 'OcfRelFounder',
|
|
107
|
+
OcfRelBoardMember: 'OcfRelBoardMember',
|
|
108
|
+
OcfRelOfficer: 'OcfRelOfficer',
|
|
109
|
+
OcfRelOther: 'OcfRelOther',
|
|
110
|
+
keys: ['OcfRelEmployee','OcfRelAdvisor','OcfRelInvestor','OcfRelFounder','OcfRelBoardMember','OcfRelOfficer','OcfRelOther',],
|
|
111
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelEmployee), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelAdvisor), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelInvestor), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelFounder), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelBoardMember), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelOfficer), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelOther)); }),
|
|
112
|
+
encode: function (__typed__) { return __typed__; },
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
exports.OcfObjectType = {
|
|
118
|
+
OcfObjIssuer: 'OcfObjIssuer',
|
|
119
|
+
OcfObjStakeholder: 'OcfObjStakeholder',
|
|
120
|
+
OcfObjStockClass: 'OcfObjStockClass',
|
|
121
|
+
OcfObjStockLegendTemplate: 'OcfObjStockLegendTemplate',
|
|
122
|
+
OcfObjStockPlan: 'OcfObjStockPlan',
|
|
123
|
+
OcfObjValuation: 'OcfObjValuation',
|
|
124
|
+
OcfObjVestingTerms: 'OcfObjVestingTerms',
|
|
125
|
+
OcfObjFinancing: 'OcfObjFinancing',
|
|
126
|
+
OcfObjDocument: 'OcfObjDocument',
|
|
127
|
+
OcfObjCeStakeholderRelationship: 'OcfObjCeStakeholderRelationship',
|
|
128
|
+
OcfObjCeStakeholderStatus: 'OcfObjCeStakeholderStatus',
|
|
129
|
+
OcfObjTxIssuerAuthorizedSharesAdjustment: 'OcfObjTxIssuerAuthorizedSharesAdjustment',
|
|
130
|
+
OcfObjTxStockClassConversionRatioAdjustment: 'OcfObjTxStockClassConversionRatioAdjustment',
|
|
131
|
+
OcfObjTxStockClassAuthorizedSharesAdjustment: 'OcfObjTxStockClassAuthorizedSharesAdjustment',
|
|
132
|
+
OcfObjTxStockClassSplit: 'OcfObjTxStockClassSplit',
|
|
133
|
+
OcfObjTxStockPlanPoolAdjustment: 'OcfObjTxStockPlanPoolAdjustment',
|
|
134
|
+
OcfObjTxStockPlanReturnToPool: 'OcfObjTxStockPlanReturnToPool',
|
|
135
|
+
OcfObjTxConvertibleAcceptance: 'OcfObjTxConvertibleAcceptance',
|
|
136
|
+
OcfObjTxConvertibleCancellation: 'OcfObjTxConvertibleCancellation',
|
|
137
|
+
OcfObjTxConvertibleConversion: 'OcfObjTxConvertibleConversion',
|
|
138
|
+
OcfObjTxConvertibleIssuance: 'OcfObjTxConvertibleIssuance',
|
|
139
|
+
OcfObjTxConvertibleRetraction: 'OcfObjTxConvertibleRetraction',
|
|
140
|
+
OcfObjTxConvertibleTransfer: 'OcfObjTxConvertibleTransfer',
|
|
141
|
+
OcfObjTxEquityCompensationAcceptance: 'OcfObjTxEquityCompensationAcceptance',
|
|
142
|
+
OcfObjTxEquityCompensationCancellation: 'OcfObjTxEquityCompensationCancellation',
|
|
143
|
+
OcfObjTxEquityCompensationExercise: 'OcfObjTxEquityCompensationExercise',
|
|
144
|
+
OcfObjTxEquityCompensationIssuance: 'OcfObjTxEquityCompensationIssuance',
|
|
145
|
+
OcfObjTxEquityCompensationRelease: 'OcfObjTxEquityCompensationRelease',
|
|
146
|
+
OcfObjTxEquityCompensationRetraction: 'OcfObjTxEquityCompensationRetraction',
|
|
147
|
+
OcfObjTxEquityCompensationTransfer: 'OcfObjTxEquityCompensationTransfer',
|
|
148
|
+
OcfObjTxEquityCompensationRepricing: 'OcfObjTxEquityCompensationRepricing',
|
|
149
|
+
OcfObjTxPlanSecurityAcceptance: 'OcfObjTxPlanSecurityAcceptance',
|
|
150
|
+
OcfObjTxPlanSecurityCancellation: 'OcfObjTxPlanSecurityCancellation',
|
|
151
|
+
OcfObjTxPlanSecurityExercise: 'OcfObjTxPlanSecurityExercise',
|
|
152
|
+
OcfObjTxPlanSecurityIssuance: 'OcfObjTxPlanSecurityIssuance',
|
|
153
|
+
OcfObjTxPlanSecurityRelease: 'OcfObjTxPlanSecurityRelease',
|
|
154
|
+
OcfObjTxPlanSecurityRetraction: 'OcfObjTxPlanSecurityRetraction',
|
|
155
|
+
OcfObjTxPlanSecurityTransfer: 'OcfObjTxPlanSecurityTransfer',
|
|
156
|
+
OcfObjTxStockAcceptance: 'OcfObjTxStockAcceptance',
|
|
157
|
+
OcfObjTxStockCancellation: 'OcfObjTxStockCancellation',
|
|
158
|
+
OcfObjTxStockConversion: 'OcfObjTxStockConversion',
|
|
159
|
+
OcfObjTxStockIssuance: 'OcfObjTxStockIssuance',
|
|
160
|
+
OcfObjTxStockReissuance: 'OcfObjTxStockReissuance',
|
|
161
|
+
OcfObjTxStockConsolidation: 'OcfObjTxStockConsolidation',
|
|
162
|
+
OcfObjTxStockRepurchase: 'OcfObjTxStockRepurchase',
|
|
163
|
+
OcfObjTxStockRetraction: 'OcfObjTxStockRetraction',
|
|
164
|
+
OcfObjTxStockTransfer: 'OcfObjTxStockTransfer',
|
|
165
|
+
OcfObjTxWarrantAcceptance: 'OcfObjTxWarrantAcceptance',
|
|
166
|
+
OcfObjTxWarrantCancellation: 'OcfObjTxWarrantCancellation',
|
|
167
|
+
OcfObjTxWarrantExercise: 'OcfObjTxWarrantExercise',
|
|
168
|
+
OcfObjTxWarrantIssuance: 'OcfObjTxWarrantIssuance',
|
|
169
|
+
OcfObjTxWarrantRetraction: 'OcfObjTxWarrantRetraction',
|
|
170
|
+
OcfObjTxWarrantTransfer: 'OcfObjTxWarrantTransfer',
|
|
171
|
+
OcfObjTxVestingAcceleration: 'OcfObjTxVestingAcceleration',
|
|
172
|
+
OcfObjTxVestingStart: 'OcfObjTxVestingStart',
|
|
173
|
+
OcfObjTxVestingEvent: 'OcfObjTxVestingEvent',
|
|
174
|
+
keys: ['OcfObjIssuer','OcfObjStakeholder','OcfObjStockClass','OcfObjStockLegendTemplate','OcfObjStockPlan','OcfObjValuation','OcfObjVestingTerms','OcfObjFinancing','OcfObjDocument','OcfObjCeStakeholderRelationship','OcfObjCeStakeholderStatus','OcfObjTxIssuerAuthorizedSharesAdjustment','OcfObjTxStockClassConversionRatioAdjustment','OcfObjTxStockClassAuthorizedSharesAdjustment','OcfObjTxStockClassSplit','OcfObjTxStockPlanPoolAdjustment','OcfObjTxStockPlanReturnToPool','OcfObjTxConvertibleAcceptance','OcfObjTxConvertibleCancellation','OcfObjTxConvertibleConversion','OcfObjTxConvertibleIssuance','OcfObjTxConvertibleRetraction','OcfObjTxConvertibleTransfer','OcfObjTxEquityCompensationAcceptance','OcfObjTxEquityCompensationCancellation','OcfObjTxEquityCompensationExercise','OcfObjTxEquityCompensationIssuance','OcfObjTxEquityCompensationRelease','OcfObjTxEquityCompensationRetraction','OcfObjTxEquityCompensationTransfer','OcfObjTxEquityCompensationRepricing','OcfObjTxPlanSecurityAcceptance','OcfObjTxPlanSecurityCancellation','OcfObjTxPlanSecurityExercise','OcfObjTxPlanSecurityIssuance','OcfObjTxPlanSecurityRelease','OcfObjTxPlanSecurityRetraction','OcfObjTxPlanSecurityTransfer','OcfObjTxStockAcceptance','OcfObjTxStockCancellation','OcfObjTxStockConversion','OcfObjTxStockIssuance','OcfObjTxStockReissuance','OcfObjTxStockConsolidation','OcfObjTxStockRepurchase','OcfObjTxStockRetraction','OcfObjTxStockTransfer','OcfObjTxWarrantAcceptance','OcfObjTxWarrantCancellation','OcfObjTxWarrantExercise','OcfObjTxWarrantIssuance','OcfObjTxWarrantRetraction','OcfObjTxWarrantTransfer','OcfObjTxVestingAcceleration','OcfObjTxVestingStart','OcfObjTxVestingEvent',],
|
|
175
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfObjectType.OcfObjIssuer), jtv.constant(exports.OcfObjectType.OcfObjStakeholder), jtv.constant(exports.OcfObjectType.OcfObjStockClass), jtv.constant(exports.OcfObjectType.OcfObjStockLegendTemplate), jtv.constant(exports.OcfObjectType.OcfObjStockPlan), jtv.constant(exports.OcfObjectType.OcfObjValuation), jtv.constant(exports.OcfObjectType.OcfObjVestingTerms), jtv.constant(exports.OcfObjectType.OcfObjFinancing), jtv.constant(exports.OcfObjectType.OcfObjDocument), jtv.constant(exports.OcfObjectType.OcfObjCeStakeholderRelationship), jtv.constant(exports.OcfObjectType.OcfObjCeStakeholderStatus), jtv.constant(exports.OcfObjectType.OcfObjTxIssuerAuthorizedSharesAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockClassConversionRatioAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockClassAuthorizedSharesAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockClassSplit), jtv.constant(exports.OcfObjectType.OcfObjTxStockPlanPoolAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockPlanReturnToPool), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleConversion), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationExercise), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationRelease), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationRepricing), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityExercise), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityRelease), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxStockAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxStockCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxStockConversion), jtv.constant(exports.OcfObjectType.OcfObjTxStockIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxStockReissuance), jtv.constant(exports.OcfObjectType.OcfObjTxStockConsolidation), jtv.constant(exports.OcfObjectType.OcfObjTxStockRepurchase), jtv.constant(exports.OcfObjectType.OcfObjTxStockRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxStockTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantExercise), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxVestingAcceleration), jtv.constant(exports.OcfObjectType.OcfObjTxVestingStart), jtv.constant(exports.OcfObjectType.OcfObjTxVestingEvent)); }),
|
|
176
|
+
encode: function (__typed__) { return __typed__; },
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
16
181
|
exports.TransferOperation = {
|
|
17
182
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({recipient: damlTypes.Party.decoder, quantity: damlTypes.Numeric(10).decoder, }); }),
|
|
18
183
|
encode: function (__typed__) {
|
|
@@ -27,13 +192,14 @@ exports.TransferOperation = {
|
|
|
27
192
|
|
|
28
193
|
|
|
29
194
|
exports.OcfStakeholderData = {
|
|
30
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, stakeholder_type: exports.OcfStakeholderType.decoder, issuer_assigned_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
|
|
195
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, stakeholder_type: exports.OcfStakeholderType.decoder, issuer_assigned_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), current_relationships: damlTypes.List(damlTypes.Text).decoder, current_status: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStakeholderStatusType).decoder), primary_contact: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfo).decoder), contact_info: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfoWithoutName).decoder), addresses: damlTypes.List(exports.OcfAddress).decoder, tax_ids: damlTypes.List(exports.OcfTaxID).decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
31
196
|
encode: function (__typed__) {
|
|
32
197
|
return {
|
|
33
198
|
name: damlTypes.Text.encode(__typed__.name),
|
|
34
199
|
stakeholder_type: exports.OcfStakeholderType.encode(__typed__.stakeholder_type),
|
|
35
200
|
issuer_assigned_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.issuer_assigned_id),
|
|
36
|
-
|
|
201
|
+
current_relationships: damlTypes.List(damlTypes.Text).encode(__typed__.current_relationships),
|
|
202
|
+
current_status: damlTypes.Optional(exports.OcfStakeholderStatusType).encode(__typed__.current_status),
|
|
37
203
|
primary_contact: damlTypes.Optional(exports.OcfContactInfo).encode(__typed__.primary_contact),
|
|
38
204
|
contact_info: damlTypes.Optional(exports.OcfContactInfoWithoutName).encode(__typed__.contact_info),
|
|
39
205
|
addresses: damlTypes.List(exports.OcfAddress).encode(__typed__.addresses),
|
|
@@ -72,7 +238,7 @@ exports.OcfStockClassData = {
|
|
|
72
238
|
|
|
73
239
|
|
|
74
240
|
exports.OcfIssuerData = {
|
|
75
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).decoder), email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(
|
|
241
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_name_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).decoder), email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfPhone).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), initial_shares_authorized: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfInitialSharesAuthorized).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
76
242
|
encode: function (__typed__) {
|
|
77
243
|
return {
|
|
78
244
|
legal_name: damlTypes.Text.encode(__typed__.legal_name),
|
|
@@ -80,11 +246,12 @@ exports.OcfIssuerData = {
|
|
|
80
246
|
country_of_formation: damlTypes.Text.encode(__typed__.country_of_formation),
|
|
81
247
|
dba: damlTypes.Optional(damlTypes.Text).encode(__typed__.dba),
|
|
82
248
|
country_subdivision_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_of_formation),
|
|
249
|
+
country_subdivision_name_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_name_of_formation),
|
|
83
250
|
tax_ids: damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).encode(__typed__.tax_ids),
|
|
84
251
|
email: damlTypes.Optional(exports.OcfEmail).encode(__typed__.email),
|
|
85
|
-
phone: damlTypes.Optional(
|
|
252
|
+
phone: damlTypes.Optional(exports.OcfPhone).encode(__typed__.phone),
|
|
86
253
|
address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
|
|
87
|
-
initial_shares_authorized: damlTypes.Optional(
|
|
254
|
+
initial_shares_authorized: damlTypes.Optional(exports.OcfInitialSharesAuthorized).encode(__typed__.initial_shares_authorized),
|
|
88
255
|
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
89
256
|
};
|
|
90
257
|
}
|
|
@@ -93,6 +260,23 @@ exports.OcfIssuerData = {
|
|
|
93
260
|
|
|
94
261
|
|
|
95
262
|
|
|
263
|
+
exports.OcfStakeholderStatusType = {
|
|
264
|
+
OcfStakeholderStatusActive: 'OcfStakeholderStatusActive',
|
|
265
|
+
OcfStakeholderStatusLeaveOfAbsence: 'OcfStakeholderStatusLeaveOfAbsence',
|
|
266
|
+
OcfStakeholderStatusTerminationVoluntaryOther: 'OcfStakeholderStatusTerminationVoluntaryOther',
|
|
267
|
+
OcfStakeholderStatusTerminationVoluntaryGoodCause: 'OcfStakeholderStatusTerminationVoluntaryGoodCause',
|
|
268
|
+
OcfStakeholderStatusTerminationVoluntaryRetirement: 'OcfStakeholderStatusTerminationVoluntaryRetirement',
|
|
269
|
+
OcfStakeholderStatusTerminationInvoluntaryOther: 'OcfStakeholderStatusTerminationInvoluntaryOther',
|
|
270
|
+
OcfStakeholderStatusTerminationInvoluntaryDeath: 'OcfStakeholderStatusTerminationInvoluntaryDeath',
|
|
271
|
+
OcfStakeholderStatusTerminationInvoluntaryDisability: 'OcfStakeholderStatusTerminationInvoluntaryDisability',
|
|
272
|
+
OcfStakeholderStatusTerminationInvoluntaryWithCause: 'OcfStakeholderStatusTerminationInvoluntaryWithCause',
|
|
273
|
+
keys: ['OcfStakeholderStatusActive','OcfStakeholderStatusLeaveOfAbsence','OcfStakeholderStatusTerminationVoluntaryOther','OcfStakeholderStatusTerminationVoluntaryGoodCause','OcfStakeholderStatusTerminationVoluntaryRetirement','OcfStakeholderStatusTerminationInvoluntaryOther','OcfStakeholderStatusTerminationInvoluntaryDeath','OcfStakeholderStatusTerminationInvoluntaryDisability','OcfStakeholderStatusTerminationInvoluntaryWithCause',],
|
|
274
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusActive), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusLeaveOfAbsence), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationVoluntaryOther), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationVoluntaryGoodCause), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationVoluntaryRetirement), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationInvoluntaryOther), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationInvoluntaryDeath), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationInvoluntaryDisability), jtv.constant(exports.OcfStakeholderStatusType.OcfStakeholderStatusTerminationInvoluntaryWithCause)); }),
|
|
275
|
+
encode: function (__typed__) { return __typed__; },
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
96
280
|
exports.OcfStakeholderType = {
|
|
97
281
|
OcfStakeholderTypeIndividual: 'OcfStakeholderTypeIndividual',
|
|
98
282
|
OcfStakeholderTypeInstitution: 'OcfStakeholderTypeInstitution',
|
|
@@ -104,11 +288,11 @@ exports.OcfStakeholderType = {
|
|
|
104
288
|
|
|
105
289
|
|
|
106
290
|
exports.OcfContactInfoWithoutName = {
|
|
107
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(
|
|
291
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfPhone).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), }); }),
|
|
108
292
|
encode: function (__typed__) {
|
|
109
293
|
return {
|
|
110
294
|
email: damlTypes.Optional(exports.OcfEmail).encode(__typed__.email),
|
|
111
|
-
phone: damlTypes.Optional(
|
|
295
|
+
phone: damlTypes.Optional(exports.OcfPhone).encode(__typed__.phone),
|
|
112
296
|
address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
|
|
113
297
|
};
|
|
114
298
|
}
|
|
@@ -118,12 +302,12 @@ exports.OcfContactInfoWithoutName = {
|
|
|
118
302
|
|
|
119
303
|
|
|
120
304
|
exports.OcfContactInfo = {
|
|
121
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(
|
|
305
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfPhone).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), }); }),
|
|
122
306
|
encode: function (__typed__) {
|
|
123
307
|
return {
|
|
124
308
|
name: damlTypes.Text.encode(__typed__.name),
|
|
125
309
|
email: damlTypes.Optional(exports.OcfEmail).encode(__typed__.email),
|
|
126
|
-
phone: damlTypes.Optional(
|
|
310
|
+
phone: damlTypes.Optional(exports.OcfPhone).encode(__typed__.phone),
|
|
127
311
|
address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
|
|
128
312
|
};
|
|
129
313
|
}
|
|
@@ -393,6 +577,72 @@ exports.OcfValuationType = {
|
|
|
393
577
|
|
|
394
578
|
|
|
395
579
|
|
|
580
|
+
exports.OcfValuationBasedFormulaType = {
|
|
581
|
+
OcfValuationFormulaFixed: 'OcfValuationFormulaFixed',
|
|
582
|
+
OcfValuationFormulaActual: 'OcfValuationFormulaActual',
|
|
583
|
+
OcfValuationFormulaCap: 'OcfValuationFormulaCap',
|
|
584
|
+
keys: ['OcfValuationFormulaFixed','OcfValuationFormulaActual','OcfValuationFormulaCap',],
|
|
585
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationFormulaFixed), jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationFormulaActual), jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationFormulaCap)); }),
|
|
586
|
+
encode: function (__typed__) { return __typed__; },
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
exports.OcfStockIssuanceType = {
|
|
592
|
+
OcfStockIssuanceRSA: 'OcfStockIssuanceRSA',
|
|
593
|
+
OcfStockIssuanceFounders: 'OcfStockIssuanceFounders',
|
|
594
|
+
keys: ['OcfStockIssuanceRSA','OcfStockIssuanceFounders',],
|
|
595
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStockIssuanceType.OcfStockIssuanceRSA), jtv.constant(exports.OcfStockIssuanceType.OcfStockIssuanceFounders)); }),
|
|
596
|
+
encode: function (__typed__) { return __typed__; },
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
exports.OcfQuantitySourceType = {
|
|
602
|
+
OcfQuantityHumanEstimated: 'OcfQuantityHumanEstimated',
|
|
603
|
+
OcfQuantityMachineEstimated: 'OcfQuantityMachineEstimated',
|
|
604
|
+
OcfQuantityUnspecified: 'OcfQuantityUnspecified',
|
|
605
|
+
OcfQuantityInstrumentFixed: 'OcfQuantityInstrumentFixed',
|
|
606
|
+
OcfQuantityInstrumentMax: 'OcfQuantityInstrumentMax',
|
|
607
|
+
OcfQuantityInstrumentMin: 'OcfQuantityInstrumentMin',
|
|
608
|
+
keys: ['OcfQuantityHumanEstimated','OcfQuantityMachineEstimated','OcfQuantityUnspecified','OcfQuantityInstrumentFixed','OcfQuantityInstrumentMax','OcfQuantityInstrumentMin',],
|
|
609
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfQuantitySourceType.OcfQuantityHumanEstimated), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityMachineEstimated), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityUnspecified), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentFixed), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentMax), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentMin)); }),
|
|
610
|
+
encode: function (__typed__) { return __typed__; },
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
exports.OcfFinancing = {
|
|
616
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, issuance_ids: damlTypes.List(damlTypes.Text).decoder, date: damlTypes.Time.decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
617
|
+
encode: function (__typed__) {
|
|
618
|
+
return {
|
|
619
|
+
name: damlTypes.Text.encode(__typed__.name),
|
|
620
|
+
issuance_ids: damlTypes.List(damlTypes.Text).encode(__typed__.issuance_ids),
|
|
621
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
622
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
,
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
exports.OcfDocument = {
|
|
631
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({path: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), uri: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), md5: damlTypes.Text.decoder, related_objects: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
632
|
+
encode: function (__typed__) {
|
|
633
|
+
return {
|
|
634
|
+
path: damlTypes.Optional(damlTypes.Text).encode(__typed__.path),
|
|
635
|
+
uri: damlTypes.Optional(damlTypes.Text).encode(__typed__.uri),
|
|
636
|
+
md5: damlTypes.Text.encode(__typed__.md5),
|
|
637
|
+
related_objects: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.related_objects),
|
|
638
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
,
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
396
646
|
exports.OcfStockClassConversionRight = {
|
|
397
647
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.OcfConversionMechanism.decoder, conversion_trigger: exports.OcfConversionTrigger.decoder, converts_to_stock_class_id: damlTypes.Text.decoder, ratio: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfRatio).decoder), percent_of_capitalization: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), reference_share_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), reference_valuation_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), discount_rate: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), floor_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), ceiling_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), custom_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), expires_at: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
398
648
|
encode: function (__typed__) {
|
|
@@ -433,10 +683,14 @@ exports.OcfRatio = {
|
|
|
433
683
|
|
|
434
684
|
|
|
435
685
|
exports.OcfConversionTrigger = {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
686
|
+
OcfTriggerAutomaticOnCondition: 'OcfTriggerAutomaticOnCondition',
|
|
687
|
+
OcfTriggerAutomaticOnDate: 'OcfTriggerAutomaticOnDate',
|
|
688
|
+
OcfTriggerElectiveInRange: 'OcfTriggerElectiveInRange',
|
|
689
|
+
OcfTriggerElectiveOnCondition: 'OcfTriggerElectiveOnCondition',
|
|
690
|
+
OcfTriggerElectiveAtWill: 'OcfTriggerElectiveAtWill',
|
|
691
|
+
OcfTriggerUnspecified: 'OcfTriggerUnspecified',
|
|
692
|
+
keys: ['OcfTriggerAutomaticOnCondition','OcfTriggerAutomaticOnDate','OcfTriggerElectiveInRange','OcfTriggerElectiveOnCondition','OcfTriggerElectiveAtWill','OcfTriggerUnspecified',],
|
|
693
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionTrigger.OcfTriggerAutomaticOnCondition), jtv.constant(exports.OcfConversionTrigger.OcfTriggerAutomaticOnDate), jtv.constant(exports.OcfConversionTrigger.OcfTriggerElectiveInRange), jtv.constant(exports.OcfConversionTrigger.OcfTriggerElectiveOnCondition), jtv.constant(exports.OcfConversionTrigger.OcfTriggerElectiveAtWill), jtv.constant(exports.OcfConversionTrigger.OcfTriggerUnspecified)); }),
|
|
440
694
|
encode: function (__typed__) { return __typed__; },
|
|
441
695
|
};
|
|
442
696
|
|
|
@@ -546,6 +800,19 @@ exports.OcfTaxID = {
|
|
|
546
800
|
|
|
547
801
|
|
|
548
802
|
|
|
803
|
+
exports.OcfPhone = {
|
|
804
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({phone_type: exports.OcfPhoneType.decoder, phone_number: damlTypes.Text.decoder, }); }),
|
|
805
|
+
encode: function (__typed__) {
|
|
806
|
+
return {
|
|
807
|
+
phone_type: exports.OcfPhoneType.encode(__typed__.phone_type),
|
|
808
|
+
phone_number: damlTypes.Text.encode(__typed__.phone_number),
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
,
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
549
816
|
exports.OcfEmail = {
|
|
550
817
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({email_type: exports.OcfEmailType.decoder, email_address: damlTypes.Text.decoder, }); }),
|
|
551
818
|
encode: function (__typed__) {
|
|
@@ -562,8 +829,9 @@ exports.OcfEmail = {
|
|
|
562
829
|
exports.OcfEmailType = {
|
|
563
830
|
OcfEmailTypeBusiness: 'OcfEmailTypeBusiness',
|
|
564
831
|
OcfEmailTypePersonal: 'OcfEmailTypePersonal',
|
|
565
|
-
|
|
566
|
-
|
|
832
|
+
OcfEmailTypeOther: 'OcfEmailTypeOther',
|
|
833
|
+
keys: ['OcfEmailTypeBusiness','OcfEmailTypePersonal','OcfEmailTypeOther',],
|
|
834
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfEmailType.OcfEmailTypeBusiness), jtv.constant(exports.OcfEmailType.OcfEmailTypePersonal), jtv.constant(exports.OcfEmailType.OcfEmailTypeOther)); }),
|
|
567
835
|
encode: function (__typed__) { return __typed__; },
|
|
568
836
|
};
|
|
569
837
|
|
|
@@ -675,8 +943,10 @@ exports.OcfFileType = {
|
|
|
675
943
|
OcfTransactionsFile: 'OcfTransactionsFile',
|
|
676
944
|
OcfValuationsFile: 'OcfValuationsFile',
|
|
677
945
|
OcfVestingTermsFile: 'OcfVestingTermsFile',
|
|
678
|
-
|
|
679
|
-
|
|
946
|
+
OcfFinancingsFile: 'OcfFinancingsFile',
|
|
947
|
+
OcfDocumentsFile: 'OcfDocumentsFile',
|
|
948
|
+
keys: ['OcfManifestFile','OcfStakeholdersFile','OcfStockClassesFile','OcfStockLegendTemplatesFile','OcfStockPlansFile','OcfTransactionsFile','OcfValuationsFile','OcfVestingTermsFile','OcfFinancingsFile','OcfDocumentsFile',],
|
|
949
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfFileType.OcfManifestFile), jtv.constant(exports.OcfFileType.OcfStakeholdersFile), jtv.constant(exports.OcfFileType.OcfStockClassesFile), jtv.constant(exports.OcfFileType.OcfStockLegendTemplatesFile), jtv.constant(exports.OcfFileType.OcfStockPlansFile), jtv.constant(exports.OcfFileType.OcfTransactionsFile), jtv.constant(exports.OcfFileType.OcfValuationsFile), jtv.constant(exports.OcfFileType.OcfVestingTermsFile), jtv.constant(exports.OcfFileType.OcfFinancingsFile), jtv.constant(exports.OcfFileType.OcfDocumentsFile)); }),
|
|
680
950
|
encode: function (__typed__) { return __typed__; },
|
|
681
951
|
};
|
|
682
952
|
|
|
@@ -36,7 +36,7 @@ export declare interface ValuationInterface {
|
|
|
36
36
|
UpdateValuationData: damlTypes.Choice<Valuation, UpdateValuationData, damlTypes.ContractId<Valuation>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Valuation, undefined>>;
|
|
37
37
|
}
|
|
38
38
|
export declare const Valuation:
|
|
39
|
-
damlTypes.Template<Valuation, undefined, '#OpenCapTable-
|
|
39
|
+
damlTypes.Template<Valuation, undefined, '#OpenCapTable-v14:Fairmint.OpenCapTable.Valuation:Valuation'> &
|
|
40
40
|
damlTypes.ToInterface<Valuation, never> &
|
|
41
41
|
ValuationInterface;
|
|
42
42
|
|
|
@@ -33,7 +33,7 @@ exports.UpdateValuationData = {
|
|
|
33
33
|
|
|
34
34
|
exports.Valuation = damlTypes.assembleTemplate(
|
|
35
35
|
{
|
|
36
|
-
templateId: '#OpenCapTable-
|
|
36
|
+
templateId: '#OpenCapTable-v14:Fairmint.OpenCapTable.Valuation:Valuation',
|
|
37
37
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
38
38
|
keyEncode: function () { throw 'EncodeError'; },
|
|
39
39
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder, valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData.decoder, }); }),
|
|
@@ -68,5 +68,5 @@ exports.Valuation = damlTypes.assembleTemplate(
|
|
|
68
68
|
);
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
damlTypes.registerTemplate(exports.Valuation, ['
|
|
71
|
+
damlTypes.registerTemplate(exports.Valuation, ['6cddafea5c34952f50277575e8e941838a693ae4770ba3cba82aafe5ac89b4c5', '#OpenCapTable-v14']);
|
|
72
72
|
|
|
@@ -34,7 +34,7 @@ export declare interface VestingTermsInterface {
|
|
|
34
34
|
UpdateVestingTerms: damlTypes.Choice<VestingTerms, UpdateVestingTerms, damlTypes.ContractId<VestingTerms>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
35
35
|
}
|
|
36
36
|
export declare const VestingTerms:
|
|
37
|
-
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-
|
|
37
|
+
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-v14:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
38
38
|
damlTypes.ToInterface<VestingTerms, never> &
|
|
39
39
|
VestingTermsInterface;
|
|
40
40
|
|
|
@@ -32,7 +32,7 @@ exports.UpdateVestingTerms = {
|
|
|
32
32
|
|
|
33
33
|
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
34
34
|
{
|
|
35
|
-
templateId: '#OpenCapTable-
|
|
35
|
+
templateId: '#OpenCapTable-v14:Fairmint.OpenCapTable.VestingTerms:VestingTerms',
|
|
36
36
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
37
37
|
keyEncode: function () { throw 'EncodeError'; },
|
|
38
38
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData.decoder, }); }),
|
|
@@ -66,5 +66,5 @@ exports.VestingTerms = damlTypes.assembleTemplate(
|
|
|
66
66
|
);
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
damlTypes.registerTemplate(exports.VestingTerms, ['
|
|
69
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['6cddafea5c34952f50277575e8e941838a693ae4770ba3cba82aafe5ac89b4c5', '#OpenCapTable-v14']);
|
|
70
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "daml build --all",
|
|
35
35
|
"build:ts": "tsc",
|
|
36
36
|
"clean": "daml clean --all",
|
|
37
|
-
"codegen": "npm run build && cd OpenCapTable-
|
|
37
|
+
"codegen": "npm run build && cd OpenCapTable-v14 && daml codegen js && cd .. && cd OpenCapTableShared-v01 && daml codegen js && cd .. && cd OpenCapTableReports-v01 && daml codegen js && cd .. && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && npm run build:ts",
|
|
38
38
|
"test": "cd Test && daml test",
|
|
39
39
|
"test:imports": "tsx scripts/test-imports.ts",
|
|
40
40
|
"upload-dar:ocp": "npm run build && ts-node scripts/upload-dar.ts --network devnet && ts-node scripts/upload-dar.ts --network mainnet",
|