@fairmint/open-captable-protocol-daml-js 0.2.9 → 0.2.10
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/ConvertibleIssuance/module.d.ts +2 -2
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +4 -4
- package/lib/Fairmint/OpenCapTable/Document/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/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 +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +138 -2
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +153 -4
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +2 -2
- 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 +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +2 -2
- 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/lib/Fairmint/OpenCapTable/WarrantIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +2 -2
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "00ea427651bfcca7b0668385a6e9fa15852c4ce9230ad4c280ea664b5ad3d3de07ca1112206118c55f98a67a54583eb0a70526480f8153cb4108cf85e5e3ed4d930dcb4175",
|
|
4
|
+
"templateId": "b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "00f03a7250a275608375bcb1192c06b786689b1d011df6783554a52295d0dabd71ca11122030b262c77b11d8736c5bbcf590ab70301251e5783aa531a53f8f0d4bd05b2adb",
|
|
8
|
+
"templateId": "b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -31,7 +31,7 @@ export declare interface ConvertibleIssuanceInterface {
|
|
|
31
31
|
ArchiveByIssuer: damlTypes.Choice<ConvertibleIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ConvertibleIssuance, undefined>>;
|
|
32
32
|
}
|
|
33
33
|
export declare const ConvertibleIssuance:
|
|
34
|
-
damlTypes.Template<ConvertibleIssuance, undefined, '#OpenCapTable-
|
|
34
|
+
damlTypes.Template<ConvertibleIssuance, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.ConvertibleIssuance:ConvertibleIssuance'> &
|
|
35
35
|
damlTypes.ToInterface<ConvertibleIssuance, never> &
|
|
36
36
|
ConvertibleIssuanceInterface;
|
|
37
37
|
|
|
@@ -56,7 +56,7 @@ export declare type OcfConvertibleIssuanceTxData = {
|
|
|
56
56
|
security_law_exemptions: Fairmint_OpenCapTable_Types.OcfSecurityExemption[];
|
|
57
57
|
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
58
58
|
convertible_type: Fairmint_OpenCapTable_StockClass.OcfConvertibleType;
|
|
59
|
-
conversion_triggers: Fairmint_OpenCapTable_StockClass.
|
|
59
|
+
conversion_triggers: Fairmint_OpenCapTable_StockClass.OcfConvertibleConversionTrigger[];
|
|
60
60
|
pro_rata: damlTypes.Optional<damlTypes.Numeric>;
|
|
61
61
|
seniority: damlTypes.Int;
|
|
62
62
|
comments: string[];
|
|
@@ -31,7 +31,7 @@ exports.ArchiveByIssuer = {
|
|
|
31
31
|
|
|
32
32
|
exports.ConvertibleIssuance = damlTypes.assembleTemplate(
|
|
33
33
|
{
|
|
34
|
-
templateId: '#OpenCapTable-
|
|
34
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.ConvertibleIssuance:ConvertibleIssuance',
|
|
35
35
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
36
36
|
keyEncode: function () { throw 'EncodeError'; },
|
|
37
37
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfConvertibleIssuanceTxData.decoder, }); }),
|
|
@@ -63,12 +63,12 @@ exports.ConvertibleIssuance = damlTypes.assembleTemplate(
|
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
damlTypes.registerTemplate(exports.ConvertibleIssuance, ['
|
|
66
|
+
damlTypes.registerTemplate(exports.ConvertibleIssuance, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
exports.OcfConvertibleIssuanceTxData = {
|
|
71
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, security_id: damlTypes.Text.decoder, custom_id: damlTypes.Text.decoder, stakeholder_id: damlTypes.Text.decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).decoder, investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, convertible_type: Fairmint_OpenCapTable_StockClass.OcfConvertibleType.decoder, conversion_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.
|
|
71
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, security_id: damlTypes.Text.decoder, custom_id: damlTypes.Text.decoder, stakeholder_id: damlTypes.Text.decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).decoder, investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, convertible_type: Fairmint_OpenCapTable_StockClass.OcfConvertibleType.decoder, conversion_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.OcfConvertibleConversionTrigger).decoder, pro_rata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), seniority: damlTypes.Int.decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
72
72
|
encode: function (__typed__) {
|
|
73
73
|
return {
|
|
74
74
|
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
@@ -82,7 +82,7 @@ exports.OcfConvertibleIssuanceTxData = {
|
|
|
82
82
|
security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).encode(__typed__.security_law_exemptions),
|
|
83
83
|
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.investment_amount),
|
|
84
84
|
convertible_type: Fairmint_OpenCapTable_StockClass.OcfConvertibleType.encode(__typed__.convertible_type),
|
|
85
|
-
conversion_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.
|
|
85
|
+
conversion_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.OcfConvertibleConversionTrigger).encode(__typed__.conversion_triggers),
|
|
86
86
|
pro_rata: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.pro_rata),
|
|
87
87
|
seniority: damlTypes.Int.encode(__typed__.seniority),
|
|
88
88
|
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
@@ -30,7 +30,7 @@ export declare interface DocumentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<Document, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const Document:
|
|
33
|
-
damlTypes.Template<Document, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<Document, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.Document:Document'> &
|
|
34
34
|
damlTypes.ToInterface<Document, never> &
|
|
35
35
|
DocumentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Document = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.Document:Document',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, document_data: exports.OcfDocument.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.Document = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Document, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Document, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface EquityCompensationExerciseInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<EquityCompensationExercise, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<EquityCompensationExercise, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const EquityCompensationExercise:
|
|
33
|
-
damlTypes.Template<EquityCompensationExercise, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<EquityCompensationExercise, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.EquityCompensationExercise:EquityCompensationExercise'> &
|
|
34
34
|
damlTypes.ToInterface<EquityCompensationExercise, never> &
|
|
35
35
|
EquityCompensationExerciseInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.EquityCompensationExercise = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.EquityCompensationExercise:EquityCompensationExercise',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, exercise_data: exports.OcfEquityCompensationExerciseData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.EquityCompensationExercise = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.EquityCompensationExercise, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.EquityCompensationExercise, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface EquityCompensationIssuanceInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<EquityCompensationIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<EquityCompensationIssuance, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const EquityCompensationIssuance:
|
|
33
|
-
damlTypes.Template<EquityCompensationIssuance, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<EquityCompensationIssuance, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.EquityCompensationIssuance:EquityCompensationIssuance'> &
|
|
34
34
|
damlTypes.ToInterface<EquityCompensationIssuance, never> &
|
|
35
35
|
EquityCompensationIssuanceInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.EquityCompensationIssuance = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.EquityCompensationIssuance:EquityCompensationIssuance',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfEquityCompensationIssuanceTxData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.EquityCompensationIssuance = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.EquityCompensationIssuance, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.EquityCompensationIssuance, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -210,7 +210,7 @@ export declare interface IssuerInterface {
|
|
|
210
210
|
ArchiveByIssuer: damlTypes.Choice<Issuer, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
211
211
|
}
|
|
212
212
|
export declare const Issuer:
|
|
213
|
-
damlTypes.Template<Issuer, undefined, '#OpenCapTable-
|
|
213
|
+
damlTypes.Template<Issuer, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.Issuer:Issuer'> &
|
|
214
214
|
damlTypes.ToInterface<Issuer, never> &
|
|
215
215
|
IssuerInterface;
|
|
216
216
|
|
|
@@ -225,7 +225,7 @@ exports.CreateStockClass = {
|
|
|
225
225
|
|
|
226
226
|
exports.Issuer = damlTypes.assembleTemplate(
|
|
227
227
|
{
|
|
228
|
-
templateId: '#OpenCapTable-
|
|
228
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.Issuer:Issuer',
|
|
229
229
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
230
230
|
keyEncode: function () { throw 'EncodeError'; },
|
|
231
231
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuer_data: exports.OcfIssuerData.decoder, }); }),
|
|
@@ -377,7 +377,7 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
377
377
|
);
|
|
378
378
|
|
|
379
379
|
|
|
380
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
380
|
+
damlTypes.registerTemplate(exports.Issuer, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
381
381
|
|
|
382
382
|
|
|
383
383
|
|
|
@@ -41,7 +41,7 @@ export declare interface IssuerAuthorizationInterface {
|
|
|
41
41
|
WithdrawAuthorization: damlTypes.Choice<IssuerAuthorization, WithdrawAuthorization, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<IssuerAuthorization, undefined>>;
|
|
42
42
|
}
|
|
43
43
|
export declare const IssuerAuthorization:
|
|
44
|
-
damlTypes.Template<IssuerAuthorization, undefined, '#OpenCapTable-
|
|
44
|
+
damlTypes.Template<IssuerAuthorization, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization'> &
|
|
45
45
|
damlTypes.ToInterface<IssuerAuthorization, never> &
|
|
46
46
|
IssuerAuthorizationInterface;
|
|
47
47
|
|
|
@@ -43,7 +43,7 @@ exports.CreateIssuer = {
|
|
|
43
43
|
|
|
44
44
|
exports.IssuerAuthorization = damlTypes.assembleTemplate(
|
|
45
45
|
{
|
|
46
|
-
templateId: '#OpenCapTable-
|
|
46
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization',
|
|
47
47
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
48
48
|
keyEncode: function () { throw 'EncodeError'; },
|
|
49
49
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, }); }),
|
|
@@ -82,5 +82,5 @@ exports.IssuerAuthorization = damlTypes.assembleTemplate(
|
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
damlTypes.registerTemplate(exports.IssuerAuthorization, ['
|
|
85
|
+
damlTypes.registerTemplate(exports.IssuerAuthorization, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
86
86
|
|
|
@@ -30,7 +30,7 @@ export declare interface IssuerAuthorizedSharesAdjustmentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<IssuerAuthorizedSharesAdjustment, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<IssuerAuthorizedSharesAdjustment, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const IssuerAuthorizedSharesAdjustment:
|
|
33
|
-
damlTypes.Template<IssuerAuthorizedSharesAdjustment, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<IssuerAuthorizedSharesAdjustment, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.IssuerAuthorizedSharesAdjustment:IssuerAuthorizedSharesAdjustment'> &
|
|
34
34
|
damlTypes.ToInterface<IssuerAuthorizedSharesAdjustment, never> &
|
|
35
35
|
IssuerAuthorizedSharesAdjustmentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.IssuerAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.IssuerAuthorizedSharesAdjustment:IssuerAuthorizedSharesAdjustment',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, adjustment_data: exports.OcfIssuerAuthorizedSharesAdjustmentData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.IssuerAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.IssuerAuthorizedSharesAdjustment, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.IssuerAuthorizedSharesAdjustment, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -32,7 +32,7 @@ export declare interface OcpFactoryInterface {
|
|
|
32
32
|
AuthorizeIssuer: damlTypes.Choice<OcpFactory, AuthorizeIssuer, damlTypes.ContractId<Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<OcpFactory, undefined>>;
|
|
33
33
|
}
|
|
34
34
|
export declare const OcpFactory:
|
|
35
|
-
damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-
|
|
35
|
+
damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.OcpFactory:OcpFactory'> &
|
|
36
36
|
damlTypes.ToInterface<OcpFactory, never> &
|
|
37
37
|
OcpFactoryInterface;
|
|
38
38
|
|
|
@@ -32,7 +32,7 @@ exports.AuthorizeIssuer = {
|
|
|
32
32
|
|
|
33
33
|
exports.OcpFactory = damlTypes.assembleTemplate(
|
|
34
34
|
{
|
|
35
|
-
templateId: '#OpenCapTable-
|
|
35
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.OcpFactory:OcpFactory',
|
|
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({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
|
|
@@ -64,5 +64,5 @@ exports.OcpFactory = damlTypes.assembleTemplate(
|
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
damlTypes.registerTemplate(exports.OcpFactory, ['
|
|
67
|
+
damlTypes.registerTemplate(exports.OcpFactory, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StakeholderInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<Stakeholder, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Stakeholder, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const Stakeholder:
|
|
33
|
-
damlTypes.Template<Stakeholder, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<Stakeholder, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.Stakeholder:Stakeholder'> &
|
|
34
34
|
damlTypes.ToInterface<Stakeholder, never> &
|
|
35
35
|
StakeholderInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Stakeholder = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.Stakeholder:Stakeholder',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, stakeholder_data: exports.OcfStakeholderData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.Stakeholder = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Stakeholder, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Stakeholder, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockCancellationInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockCancellation, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockCancellation, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockCancellation:
|
|
33
|
-
damlTypes.Template<StockCancellation, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockCancellation, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockCancellation:StockCancellation'> &
|
|
34
34
|
damlTypes.ToInterface<StockCancellation, never> &
|
|
35
35
|
StockCancellationInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockCancellation = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockCancellation:StockCancellation',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, cancellation_data: exports.OcfStockCancellationData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockCancellation = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockCancellation, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockCancellation, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockClassInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockClass, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockClass, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockClass:
|
|
33
|
-
damlTypes.Template<StockClass, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockClass, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockClass:StockClass'> &
|
|
34
34
|
damlTypes.ToInterface<StockClass, never> &
|
|
35
35
|
StockClassInterface;
|
|
36
36
|
|
|
@@ -219,7 +219,7 @@ export namespace OcfWarrantConversionMechanism {
|
|
|
219
219
|
|
|
220
220
|
export declare type OcfConvertibleConversionRight = {
|
|
221
221
|
type_: string;
|
|
222
|
-
conversion_mechanism:
|
|
222
|
+
conversion_mechanism: OcfConvertibleConversionMechanism;
|
|
223
223
|
converts_to_future_round: damlTypes.Optional<boolean>;
|
|
224
224
|
converts_to_stock_class_id: damlTypes.Optional<string>;
|
|
225
225
|
};
|
|
@@ -230,6 +230,142 @@ export declare const OcfConvertibleConversionRight:
|
|
|
230
230
|
;
|
|
231
231
|
|
|
232
232
|
|
|
233
|
+
export declare type OcfConvertibleConversionMechanism =
|
|
234
|
+
| { tag: 'OcfConvMechSAFE'; value: OcfSAFEConversionMechanism }
|
|
235
|
+
| { tag: 'OcfConvMechNote'; value: OcfNoteConversionMechanism }
|
|
236
|
+
| { tag: 'OcfConvMechCustom'; value: OcfCustomConversionMechanism }
|
|
237
|
+
| { tag: 'OcfConvMechPercentCapitalization'; value: OcfPercentCapitalizationConversionMechanism }
|
|
238
|
+
| { tag: 'OcfConvMechFixedAmount'; value: OcfFixedAmountConversionMechanism }
|
|
239
|
+
| { tag: 'OcfConvMechSharePriceBased'; value: OcfSharePriceBasedConversionMechanism }
|
|
240
|
+
| { tag: 'OcfConvMechValuationBased'; value: OcfValuationBasedConversionMechanism }
|
|
241
|
+
| { tag: 'OcfConvMechRatio'; value: OcfRatio }
|
|
242
|
+
;
|
|
243
|
+
|
|
244
|
+
export declare const OcfConvertibleConversionMechanism:
|
|
245
|
+
damlTypes.Serializable<OcfConvertibleConversionMechanism> & {
|
|
246
|
+
}
|
|
247
|
+
;
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
export declare type OcfValuationBasedConversionMechanism = {
|
|
251
|
+
valuation_type: OcfValuationBasedFormulaType;
|
|
252
|
+
valuation_amount: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
253
|
+
capitalization_definition: damlTypes.Optional<string>;
|
|
254
|
+
capitalization_definition_rules: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules>;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export declare const OcfValuationBasedConversionMechanism:
|
|
258
|
+
damlTypes.Serializable<OcfValuationBasedConversionMechanism> & {
|
|
259
|
+
}
|
|
260
|
+
;
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
export declare type OcfValuationBasedFormulaType =
|
|
264
|
+
| 'OcfValuationCap'
|
|
265
|
+
| 'OcfValuationFixed'
|
|
266
|
+
| 'OcfValuationActual'
|
|
267
|
+
;
|
|
268
|
+
|
|
269
|
+
export declare const OcfValuationBasedFormulaType:
|
|
270
|
+
damlTypes.Serializable<OcfValuationBasedFormulaType> & {
|
|
271
|
+
}
|
|
272
|
+
& { readonly keys: OcfValuationBasedFormulaType[] } & { readonly [e in OcfValuationBasedFormulaType]: e }
|
|
273
|
+
;
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
export declare type OcfSharePriceBasedConversionMechanism = {
|
|
277
|
+
description: string;
|
|
278
|
+
discount: boolean;
|
|
279
|
+
discount_percentage: damlTypes.Optional<damlTypes.Numeric>;
|
|
280
|
+
discount_amount: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
export declare const OcfSharePriceBasedConversionMechanism:
|
|
284
|
+
damlTypes.Serializable<OcfSharePriceBasedConversionMechanism> & {
|
|
285
|
+
}
|
|
286
|
+
;
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
export declare type OcfPercentCapitalizationConversionMechanism = {
|
|
290
|
+
converts_to_percent: damlTypes.Numeric;
|
|
291
|
+
capitalization_definition: damlTypes.Optional<string>;
|
|
292
|
+
capitalization_definition_rules: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules>;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export declare const OcfPercentCapitalizationConversionMechanism:
|
|
296
|
+
damlTypes.Serializable<OcfPercentCapitalizationConversionMechanism> & {
|
|
297
|
+
}
|
|
298
|
+
;
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
export declare type OcfFixedAmountConversionMechanism = {
|
|
302
|
+
converts_to_quantity: damlTypes.Numeric;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export declare const OcfFixedAmountConversionMechanism:
|
|
306
|
+
damlTypes.Serializable<OcfFixedAmountConversionMechanism> & {
|
|
307
|
+
}
|
|
308
|
+
;
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
export declare type OcfCustomConversionMechanism = {
|
|
312
|
+
custom_conversion_description: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export declare const OcfCustomConversionMechanism:
|
|
316
|
+
damlTypes.Serializable<OcfCustomConversionMechanism> & {
|
|
317
|
+
}
|
|
318
|
+
;
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
export declare type OcfNoteConversionMechanism = {
|
|
322
|
+
interest_rates: Fairmint_OpenCapTable_Types.OcfInterestRate[];
|
|
323
|
+
day_count_convention: Fairmint_OpenCapTable_Types.OcfDayCountType;
|
|
324
|
+
interest_payout: Fairmint_OpenCapTable_Types.OcfInterestPayoutType;
|
|
325
|
+
interest_accrual_period: Fairmint_OpenCapTable_Types.OcfAccrualPeriodType;
|
|
326
|
+
compounding_type: Fairmint_OpenCapTable_Types.OcfCompoundingType;
|
|
327
|
+
conversion_discount: damlTypes.Optional<damlTypes.Numeric>;
|
|
328
|
+
conversion_valuation_cap: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
329
|
+
capitalization_definition: damlTypes.Optional<string>;
|
|
330
|
+
capitalization_definition_rules: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules>;
|
|
331
|
+
exit_multiple: damlTypes.Optional<OcfRatio>;
|
|
332
|
+
conversion_mfn: damlTypes.Optional<boolean>;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export declare const OcfNoteConversionMechanism:
|
|
336
|
+
damlTypes.Serializable<OcfNoteConversionMechanism> & {
|
|
337
|
+
}
|
|
338
|
+
;
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
export declare type OcfSAFEConversionMechanism = {
|
|
342
|
+
conversion_discount: damlTypes.Optional<damlTypes.Numeric>;
|
|
343
|
+
conversion_valuation_cap: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
344
|
+
exit_multiple: damlTypes.Optional<OcfRatio>;
|
|
345
|
+
conversion_mfn: boolean;
|
|
346
|
+
conversion_timing: damlTypes.Optional<OcfConversionTimingType>;
|
|
347
|
+
capitalization_definition: damlTypes.Optional<string>;
|
|
348
|
+
capitalization_definition_rules: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules>;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export declare const OcfSAFEConversionMechanism:
|
|
352
|
+
damlTypes.Serializable<OcfSAFEConversionMechanism> & {
|
|
353
|
+
}
|
|
354
|
+
;
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
export declare type OcfConversionTimingType =
|
|
358
|
+
| 'OcfConversionTimingPreMoney'
|
|
359
|
+
| 'OcfConversionTimingPostMoney'
|
|
360
|
+
;
|
|
361
|
+
|
|
362
|
+
export declare const OcfConversionTimingType:
|
|
363
|
+
damlTypes.Serializable<OcfConversionTimingType> & {
|
|
364
|
+
}
|
|
365
|
+
& { readonly keys: OcfConversionTimingType[] } & { readonly [e in OcfConversionTimingType]: e }
|
|
366
|
+
;
|
|
367
|
+
|
|
368
|
+
|
|
233
369
|
export declare type OcfConversionTriggerType =
|
|
234
370
|
| 'OcfTriggerTypeTypeAutomaticOnCondition'
|
|
235
371
|
| 'OcfTriggerTypeTypeAutomaticOnDate'
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockClass = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockClass:StockClass',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, stock_class_data: exports.OcfStockClassData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockClass = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockClass, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockClass, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -272,11 +272,11 @@ exports.OcfWarrantConversionMechanism = {
|
|
|
272
272
|
|
|
273
273
|
|
|
274
274
|
exports.OcfConvertibleConversionRight = {
|
|
275
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.
|
|
275
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.OcfConvertibleConversionMechanism.decoder, converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
276
276
|
encode: function (__typed__) {
|
|
277
277
|
return {
|
|
278
278
|
type_: damlTypes.Text.encode(__typed__.type_),
|
|
279
|
-
conversion_mechanism: exports.
|
|
279
|
+
conversion_mechanism: exports.OcfConvertibleConversionMechanism.encode(__typed__.conversion_mechanism),
|
|
280
280
|
converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
|
|
281
281
|
converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
|
|
282
282
|
};
|
|
@@ -286,6 +286,155 @@ exports.OcfConvertibleConversionRight = {
|
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
|
|
289
|
+
exports.OcfConvertibleConversionMechanism = {
|
|
290
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfConvMechSAFE'), value: exports.OcfSAFEConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechNote'), value: exports.OcfNoteConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechCustom'), value: exports.OcfCustomConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechPercentCapitalization'), value: exports.OcfPercentCapitalizationConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechFixedAmount'), value: exports.OcfFixedAmountConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechSharePriceBased'), value: exports.OcfSharePriceBasedConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechValuationBased'), value: exports.OcfValuationBasedConversionMechanism.decoder, }), jtv.object({tag: jtv.constant('OcfConvMechRatio'), value: exports.OcfRatio.decoder, })); }),
|
|
291
|
+
encode: function (__typed__) {
|
|
292
|
+
switch(__typed__.tag) {
|
|
293
|
+
case 'OcfConvMechSAFE': return {tag: __typed__.tag, value: exports.OcfSAFEConversionMechanism.encode(__typed__.value)};
|
|
294
|
+
case 'OcfConvMechNote': return {tag: __typed__.tag, value: exports.OcfNoteConversionMechanism.encode(__typed__.value)};
|
|
295
|
+
case 'OcfConvMechCustom': return {tag: __typed__.tag, value: exports.OcfCustomConversionMechanism.encode(__typed__.value)};
|
|
296
|
+
case 'OcfConvMechPercentCapitalization': return {tag: __typed__.tag, value: exports.OcfPercentCapitalizationConversionMechanism.encode(__typed__.value)};
|
|
297
|
+
case 'OcfConvMechFixedAmount': return {tag: __typed__.tag, value: exports.OcfFixedAmountConversionMechanism.encode(__typed__.value)};
|
|
298
|
+
case 'OcfConvMechSharePriceBased': return {tag: __typed__.tag, value: exports.OcfSharePriceBasedConversionMechanism.encode(__typed__.value)};
|
|
299
|
+
case 'OcfConvMechValuationBased': return {tag: __typed__.tag, value: exports.OcfValuationBasedConversionMechanism.encode(__typed__.value)};
|
|
300
|
+
case 'OcfConvMechRatio': return {tag: __typed__.tag, value: exports.OcfRatio.encode(__typed__.value)};
|
|
301
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfConvertibleConversionMechanism';
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
,
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
exports.OcfValuationBasedConversionMechanism = {
|
|
310
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({valuation_type: exports.OcfValuationBasedFormulaType.decoder, valuation_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).decoder), }); }),
|
|
311
|
+
encode: function (__typed__) {
|
|
312
|
+
return {
|
|
313
|
+
valuation_type: exports.OcfValuationBasedFormulaType.encode(__typed__.valuation_type),
|
|
314
|
+
valuation_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.valuation_amount),
|
|
315
|
+
capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
|
|
316
|
+
capitalization_definition_rules: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
,
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
exports.OcfValuationBasedFormulaType = {
|
|
325
|
+
OcfValuationCap: 'OcfValuationCap',
|
|
326
|
+
OcfValuationFixed: 'OcfValuationFixed',
|
|
327
|
+
OcfValuationActual: 'OcfValuationActual',
|
|
328
|
+
keys: ['OcfValuationCap','OcfValuationFixed','OcfValuationActual',],
|
|
329
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationCap), jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationFixed), jtv.constant(exports.OcfValuationBasedFormulaType.OcfValuationActual)); }),
|
|
330
|
+
encode: function (__typed__) { return __typed__; },
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
exports.OcfSharePriceBasedConversionMechanism = {
|
|
336
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({description: damlTypes.Text.decoder, discount: damlTypes.Bool.decoder, discount_percentage: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), discount_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), }); }),
|
|
337
|
+
encode: function (__typed__) {
|
|
338
|
+
return {
|
|
339
|
+
description: damlTypes.Text.encode(__typed__.description),
|
|
340
|
+
discount: damlTypes.Bool.encode(__typed__.discount),
|
|
341
|
+
discount_percentage: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_percentage),
|
|
342
|
+
discount_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.discount_amount),
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
,
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
exports.OcfPercentCapitalizationConversionMechanism = {
|
|
351
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_percent: damlTypes.Numeric(10).decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).decoder), }); }),
|
|
352
|
+
encode: function (__typed__) {
|
|
353
|
+
return {
|
|
354
|
+
converts_to_percent: damlTypes.Numeric(10).encode(__typed__.converts_to_percent),
|
|
355
|
+
capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
|
|
356
|
+
capitalization_definition_rules: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
,
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
exports.OcfFixedAmountConversionMechanism = {
|
|
365
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_quantity: damlTypes.Numeric(10).decoder, }); }),
|
|
366
|
+
encode: function (__typed__) {
|
|
367
|
+
return {
|
|
368
|
+
converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
,
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
exports.OcfCustomConversionMechanism = {
|
|
377
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({custom_conversion_description: damlTypes.Text.decoder, }); }),
|
|
378
|
+
encode: function (__typed__) {
|
|
379
|
+
return {
|
|
380
|
+
custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
,
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
exports.OcfNoteConversionMechanism = {
|
|
389
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({interest_rates: damlTypes.List(Fairmint_OpenCapTable_Types.OcfInterestRate).decoder, day_count_convention: Fairmint_OpenCapTable_Types.OcfDayCountType.decoder, interest_payout: Fairmint_OpenCapTable_Types.OcfInterestPayoutType.decoder, interest_accrual_period: Fairmint_OpenCapTable_Types.OcfAccrualPeriodType.decoder, compounding_type: Fairmint_OpenCapTable_Types.OcfCompoundingType.decoder, conversion_discount: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).decoder), exit_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfRatio).decoder), conversion_mfn: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), }); }),
|
|
390
|
+
encode: function (__typed__) {
|
|
391
|
+
return {
|
|
392
|
+
interest_rates: damlTypes.List(Fairmint_OpenCapTable_Types.OcfInterestRate).encode(__typed__.interest_rates),
|
|
393
|
+
day_count_convention: Fairmint_OpenCapTable_Types.OcfDayCountType.encode(__typed__.day_count_convention),
|
|
394
|
+
interest_payout: Fairmint_OpenCapTable_Types.OcfInterestPayoutType.encode(__typed__.interest_payout),
|
|
395
|
+
interest_accrual_period: Fairmint_OpenCapTable_Types.OcfAccrualPeriodType.encode(__typed__.interest_accrual_period),
|
|
396
|
+
compounding_type: Fairmint_OpenCapTable_Types.OcfCompoundingType.encode(__typed__.compounding_type),
|
|
397
|
+
conversion_discount: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.conversion_discount),
|
|
398
|
+
conversion_valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.conversion_valuation_cap),
|
|
399
|
+
capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
|
|
400
|
+
capitalization_definition_rules: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
|
|
401
|
+
exit_multiple: damlTypes.Optional(exports.OcfRatio).encode(__typed__.exit_multiple),
|
|
402
|
+
conversion_mfn: damlTypes.Optional(damlTypes.Bool).encode(__typed__.conversion_mfn),
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
,
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
exports.OcfSAFEConversionMechanism = {
|
|
411
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_discount: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), exit_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfRatio).decoder), conversion_mfn: damlTypes.Bool.decoder, conversion_timing: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfConversionTimingType).decoder), capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).decoder), }); }),
|
|
412
|
+
encode: function (__typed__) {
|
|
413
|
+
return {
|
|
414
|
+
conversion_discount: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.conversion_discount),
|
|
415
|
+
conversion_valuation_cap: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.conversion_valuation_cap),
|
|
416
|
+
exit_multiple: damlTypes.Optional(exports.OcfRatio).encode(__typed__.exit_multiple),
|
|
417
|
+
conversion_mfn: damlTypes.Bool.encode(__typed__.conversion_mfn),
|
|
418
|
+
conversion_timing: damlTypes.Optional(exports.OcfConversionTimingType).encode(__typed__.conversion_timing),
|
|
419
|
+
capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
|
|
420
|
+
capitalization_definition_rules: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
,
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
exports.OcfConversionTimingType = {
|
|
429
|
+
OcfConversionTimingPreMoney: 'OcfConversionTimingPreMoney',
|
|
430
|
+
OcfConversionTimingPostMoney: 'OcfConversionTimingPostMoney',
|
|
431
|
+
keys: ['OcfConversionTimingPreMoney','OcfConversionTimingPostMoney',],
|
|
432
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionTimingType.OcfConversionTimingPreMoney), jtv.constant(exports.OcfConversionTimingType.OcfConversionTimingPostMoney)); }),
|
|
433
|
+
encode: function (__typed__) { return __typed__; },
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
289
438
|
exports.OcfConversionTriggerType = {
|
|
290
439
|
OcfTriggerTypeTypeAutomaticOnCondition: 'OcfTriggerTypeTypeAutomaticOnCondition',
|
|
291
440
|
OcfTriggerTypeTypeAutomaticOnDate: 'OcfTriggerTypeTypeAutomaticOnDate',
|
|
@@ -30,7 +30,7 @@ export declare interface StockClassAuthorizedSharesAdjustmentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockClassAuthorizedSharesAdjustment, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockClassAuthorizedSharesAdjustment, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockClassAuthorizedSharesAdjustment:
|
|
33
|
-
damlTypes.Template<StockClassAuthorizedSharesAdjustment, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockClassAuthorizedSharesAdjustment, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockClassAuthorizedSharesAdjustment:StockClassAuthorizedSharesAdjustment'> &
|
|
34
34
|
damlTypes.ToInterface<StockClassAuthorizedSharesAdjustment, never> &
|
|
35
35
|
StockClassAuthorizedSharesAdjustmentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockClassAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockClassAuthorizedSharesAdjustment:StockClassAuthorizedSharesAdjustment',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, adjustment_data: exports.OcfStockClassAuthorizedSharesAdjustmentData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockClassAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockClassAuthorizedSharesAdjustment, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockClassAuthorizedSharesAdjustment, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockIssuanceInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockIssuance, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockIssuance:
|
|
33
|
-
damlTypes.Template<StockIssuance, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockIssuance, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockIssuance:StockIssuance'> &
|
|
34
34
|
damlTypes.ToInterface<StockIssuance, never> &
|
|
35
35
|
StockIssuanceInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockIssuance = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockIssuance:StockIssuance',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfStockIssuanceData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockIssuance = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockIssuance, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockIssuance, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockLegendTemplateInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockLegendTemplate, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockLegendTemplate, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockLegendTemplate:
|
|
33
|
-
damlTypes.Template<StockLegendTemplate, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockLegendTemplate, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockLegendTemplate:StockLegendTemplate'> &
|
|
34
34
|
damlTypes.ToInterface<StockLegendTemplate, never> &
|
|
35
35
|
StockLegendTemplateInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockLegendTemplate:StockLegendTemplate',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, template_data: exports.OcfStockLegendTemplateData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockLegendTemplate, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockLegendTemplate, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockPlanInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockPlan, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPlan, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockPlan:
|
|
33
|
-
damlTypes.Template<StockPlan, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockPlan, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockPlan:StockPlan'> &
|
|
34
34
|
damlTypes.ToInterface<StockPlan, never> &
|
|
35
35
|
StockPlanInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockPlan = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockPlan:StockPlan',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, plan_data: exports.OcfStockPlanData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockPlan = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockPlan, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockPlan, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockPlanPoolAdjustmentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockPlanPoolAdjustment, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPlanPoolAdjustment, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockPlanPoolAdjustment:
|
|
33
|
-
damlTypes.Template<StockPlanPoolAdjustment, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockPlanPoolAdjustment, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.StockPlanPoolAdjustment:StockPlanPoolAdjustment'> &
|
|
34
34
|
damlTypes.ToInterface<StockPlanPoolAdjustment, never> &
|
|
35
35
|
StockPlanPoolAdjustmentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockPlanPoolAdjustment = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.StockPlanPoolAdjustment:StockPlanPoolAdjustment',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, adjustment_data: exports.OcfStockPlanPoolAdjustmentData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockPlanPoolAdjustment = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockPlanPoolAdjustment, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockPlanPoolAdjustment, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface ValuationInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<Valuation, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Valuation, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const Valuation:
|
|
33
|
-
damlTypes.Template<Valuation, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<Valuation, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.Valuation:Valuation'> &
|
|
34
34
|
damlTypes.ToInterface<Valuation, never> &
|
|
35
35
|
ValuationInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Valuation = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.Valuation:Valuation',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, valuation_data: exports.OcfValuationData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.Valuation = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Valuation, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Valuation, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface VestingTermsInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<VestingTerms, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const VestingTerms:
|
|
33
|
-
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
34
34
|
damlTypes.ToInterface<VestingTerms, never> &
|
|
35
35
|
VestingTermsInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.VestingTerms:VestingTerms',
|
|
34
34
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
35
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
36
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, vesting_terms_data: exports.OcfVestingTermsData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.VestingTerms = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.VestingTerms, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -31,7 +31,7 @@ export declare interface WarrantIssuanceInterface {
|
|
|
31
31
|
ArchiveByIssuer: damlTypes.Choice<WarrantIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<WarrantIssuance, undefined>>;
|
|
32
32
|
}
|
|
33
33
|
export declare const WarrantIssuance:
|
|
34
|
-
damlTypes.Template<WarrantIssuance, undefined, '#OpenCapTable-
|
|
34
|
+
damlTypes.Template<WarrantIssuance, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.WarrantIssuance:WarrantIssuance'> &
|
|
35
35
|
damlTypes.ToInterface<WarrantIssuance, never> &
|
|
36
36
|
WarrantIssuanceInterface;
|
|
37
37
|
|
|
@@ -31,7 +31,7 @@ exports.ArchiveByIssuer = {
|
|
|
31
31
|
|
|
32
32
|
exports.WarrantIssuance = damlTypes.assembleTemplate(
|
|
33
33
|
{
|
|
34
|
-
templateId: '#OpenCapTable-
|
|
34
|
+
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.WarrantIssuance:WarrantIssuance',
|
|
35
35
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
36
36
|
keyEncode: function () { throw 'EncodeError'; },
|
|
37
37
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfWarrantIssuanceData.decoder, }); }),
|
|
@@ -63,7 +63,7 @@ exports.WarrantIssuance = damlTypes.assembleTemplate(
|
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
damlTypes.registerTemplate(exports.WarrantIssuance, ['
|
|
66
|
+
damlTypes.registerTemplate(exports.WarrantIssuance, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
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-v23 && 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",
|