@fairmint/open-captable-protocol-daml-js 0.2.9 → 0.2.11
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/README.md +65 -0
- package/generated/ocp-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.d.ts +41 -26
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +46 -29
- package/lib/Fairmint/OpenCapTable/Document/module.d.ts +37 -37
- package/lib/Fairmint/OpenCapTable/Document/module.js +56 -56
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.d.ts +17 -17
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +20 -20
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.d.ts +31 -31
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +34 -34
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +116 -116
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +173 -173
- 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 +18 -18
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +22 -22
- 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 +38 -38
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +56 -56
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.d.ts +18 -18
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +22 -22
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +25 -282
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +28 -314
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.d.ts +18 -18
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +22 -22
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.d.ts +42 -53
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +43 -56
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +14 -14
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +17 -17
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +32 -32
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +33 -33
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.d.ts +18 -18
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +22 -22
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +409 -89
- package/lib/Fairmint/OpenCapTable/Types/module.js +449 -89
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +30 -30
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +31 -31
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +78 -70
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +102 -91
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.d.ts +28 -29
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +31 -32
- package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +1 -1
- package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +1 -1
- package/package.json +3 -3
|
@@ -11,6 +11,35 @@ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
|
|
|
11
11
|
|
|
12
12
|
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
13
13
|
|
|
14
|
+
export declare type OcfValuationType =
|
|
15
|
+
| 'OcfValuationType409A'
|
|
16
|
+
;
|
|
17
|
+
|
|
18
|
+
export declare const OcfValuationType:
|
|
19
|
+
damlTypes.Serializable<OcfValuationType> & {
|
|
20
|
+
}
|
|
21
|
+
& { readonly keys: OcfValuationType[] } & { readonly [e in OcfValuationType]: e }
|
|
22
|
+
;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export declare type OcfValuationData = {
|
|
26
|
+
id: string;
|
|
27
|
+
effective_date: damlTypes.Time;
|
|
28
|
+
price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
29
|
+
stock_class_id: string;
|
|
30
|
+
valuation_type: OcfValuationType;
|
|
31
|
+
comments: string[];
|
|
32
|
+
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
33
|
+
provider: damlTypes.Optional<string>;
|
|
34
|
+
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export declare const OcfValuationData:
|
|
38
|
+
damlTypes.Serializable<OcfValuationData> & {
|
|
39
|
+
}
|
|
40
|
+
;
|
|
41
|
+
|
|
42
|
+
|
|
14
43
|
export declare type ArchiveByIssuer = {
|
|
15
44
|
};
|
|
16
45
|
|
|
@@ -30,7 +59,7 @@ export declare interface ValuationInterface {
|
|
|
30
59
|
ArchiveByIssuer: damlTypes.Choice<Valuation, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Valuation, undefined>>;
|
|
31
60
|
}
|
|
32
61
|
export declare const Valuation:
|
|
33
|
-
damlTypes.Template<Valuation, undefined, '#OpenCapTable-
|
|
62
|
+
damlTypes.Template<Valuation, undefined, '#OpenCapTable-v24:Fairmint.OpenCapTable.Valuation:Valuation'> &
|
|
34
63
|
damlTypes.ToInterface<Valuation, never> &
|
|
35
64
|
ValuationInterface;
|
|
36
65
|
|
|
@@ -42,32 +71,3 @@ export declare namespace Valuation {
|
|
|
42
71
|
}
|
|
43
72
|
|
|
44
73
|
|
|
45
|
-
|
|
46
|
-
export declare type OcfValuationData = {
|
|
47
|
-
ocf_id: string;
|
|
48
|
-
provider: damlTypes.Optional<string>;
|
|
49
|
-
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
50
|
-
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
51
|
-
comments: string[];
|
|
52
|
-
price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
53
|
-
effective_date: damlTypes.Time;
|
|
54
|
-
valuation_type: OcfValuationType;
|
|
55
|
-
stock_class_id: string;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export declare const OcfValuationData:
|
|
59
|
-
damlTypes.Serializable<OcfValuationData> & {
|
|
60
|
-
}
|
|
61
|
-
;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export declare type OcfValuationType =
|
|
65
|
-
| 'OcfValuationType409A'
|
|
66
|
-
;
|
|
67
|
-
|
|
68
|
-
export declare const OcfValuationType:
|
|
69
|
-
damlTypes.Serializable<OcfValuationType> & {
|
|
70
|
-
}
|
|
71
|
-
& { readonly keys: OcfValuationType[] } & { readonly [e in OcfValuationType]: e }
|
|
72
|
-
;
|
|
73
|
-
|
|
@@ -17,6 +17,35 @@ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requir
|
|
|
17
17
|
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
exports.OcfValuationType = {
|
|
21
|
+
OcfValuationType409A: 'OcfValuationType409A',
|
|
22
|
+
keys: ['OcfValuationType409A',],
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfValuationType.OcfValuationType409A)); }),
|
|
24
|
+
encode: function (__typed__) { return __typed__; },
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.OcfValuationData = {
|
|
30
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, effective_date: damlTypes.Time.decoder, price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, stock_class_id: damlTypes.Text.decoder, valuation_type: exports.OcfValuationType.decoder, comments: damlTypes.List(damlTypes.Text).decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), provider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
31
|
+
encode: function (__typed__) {
|
|
32
|
+
return {
|
|
33
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
34
|
+
effective_date: damlTypes.Time.encode(__typed__.effective_date),
|
|
35
|
+
price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.price_per_share),
|
|
36
|
+
stock_class_id: damlTypes.Text.encode(__typed__.stock_class_id),
|
|
37
|
+
valuation_type: exports.OcfValuationType.encode(__typed__.valuation_type),
|
|
38
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
39
|
+
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
40
|
+
provider: damlTypes.Optional(damlTypes.Text).encode(__typed__.provider),
|
|
41
|
+
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
20
49
|
exports.ArchiveByIssuer = {
|
|
21
50
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
22
51
|
encode: function (__typed__) {
|
|
@@ -30,7 +59,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
59
|
|
|
31
60
|
exports.Valuation = damlTypes.assembleTemplate(
|
|
32
61
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
62
|
+
templateId: '#OpenCapTable-v24:Fairmint.OpenCapTable.Valuation:Valuation',
|
|
34
63
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
64
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
65
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, valuation_data: exports.OcfValuationData.decoder, }); }),
|
|
@@ -62,34 +91,5 @@ exports.Valuation = damlTypes.assembleTemplate(
|
|
|
62
91
|
);
|
|
63
92
|
|
|
64
93
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Valuation, ['
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.OcfValuationData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, provider: jtv.Decoder.withDefault(null, damlTypes.Optional(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), comments: damlTypes.List(damlTypes.Text).decoder, price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, effective_date: damlTypes.Time.decoder, valuation_type: exports.OcfValuationType.decoder, stock_class_id: damlTypes.Text.decoder, }); }),
|
|
71
|
-
encode: function (__typed__) {
|
|
72
|
-
return {
|
|
73
|
-
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
74
|
-
provider: damlTypes.Optional(damlTypes.Text).encode(__typed__.provider),
|
|
75
|
-
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
76
|
-
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
77
|
-
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
78
|
-
price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.price_per_share),
|
|
79
|
-
effective_date: damlTypes.Time.encode(__typed__.effective_date),
|
|
80
|
-
valuation_type: exports.OcfValuationType.encode(__typed__.valuation_type),
|
|
81
|
-
stock_class_id: damlTypes.Text.encode(__typed__.stock_class_id),
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
,
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
exports.OcfValuationType = {
|
|
90
|
-
OcfValuationType409A: 'OcfValuationType409A',
|
|
91
|
-
keys: ['OcfValuationType409A',],
|
|
92
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfValuationType.OcfValuationType409A)); }),
|
|
93
|
-
encode: function (__typed__) { return __typed__; },
|
|
94
|
-
};
|
|
94
|
+
damlTypes.registerTemplate(exports.Valuation, ['2a4643064cabdaa1562186b34da3c4de4e3a0b03c82a66d634e8fc4bd974aaa5', '#OpenCapTable-v24']);
|
|
95
95
|
|
|
@@ -11,60 +11,13 @@ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
|
|
|
11
11
|
|
|
12
12
|
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
13
13
|
|
|
14
|
-
export declare type ArchiveByIssuer = {
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export declare const ArchiveByIssuer:
|
|
18
|
-
damlTypes.Serializable<ArchiveByIssuer> & {
|
|
19
|
-
}
|
|
20
|
-
;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare type VestingTerms = {
|
|
24
|
-
context: Fairmint_OpenCapTable_Types.Context;
|
|
25
|
-
vesting_terms_data: OcfVestingTermsData;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export declare interface VestingTermsInterface {
|
|
29
|
-
Archive: damlTypes.Choice<VestingTerms, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
30
|
-
ArchiveByIssuer: damlTypes.Choice<VestingTerms, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
31
|
-
}
|
|
32
|
-
export declare const VestingTerms:
|
|
33
|
-
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-v22:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
34
|
-
damlTypes.ToInterface<VestingTerms, never> &
|
|
35
|
-
VestingTermsInterface;
|
|
36
|
-
|
|
37
|
-
export declare namespace VestingTerms {
|
|
38
|
-
export type CreateEvent = damlLedger.CreateEvent<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
39
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<VestingTerms, typeof VestingTerms.templateId>
|
|
40
|
-
export type Event = damlLedger.Event<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
41
|
-
export type QueryResult = damlLedger.QueryResult<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare type OcfVestingTermsData = {
|
|
47
|
-
ocf_id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
description: string;
|
|
50
|
-
allocation_type: OcfAllocationType;
|
|
51
|
-
vesting_conditions: OcfVestingCondition[];
|
|
52
|
-
comments: string[];
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export declare const OcfVestingTermsData:
|
|
56
|
-
damlTypes.Serializable<OcfVestingTermsData> & {
|
|
57
|
-
}
|
|
58
|
-
;
|
|
59
|
-
|
|
60
|
-
|
|
61
14
|
export declare type OcfVestingCondition = {
|
|
62
|
-
|
|
15
|
+
id: string;
|
|
16
|
+
trigger: OcfVestingTrigger;
|
|
17
|
+
next_condition_ids: string[];
|
|
63
18
|
description: damlTypes.Optional<string>;
|
|
64
19
|
portion: damlTypes.Optional<OcfVestingConditionPortion>;
|
|
65
20
|
quantity: damlTypes.Optional<damlTypes.Numeric>;
|
|
66
|
-
trigger: OcfVestingTrigger;
|
|
67
|
-
next_condition_ids: string[];
|
|
68
21
|
};
|
|
69
22
|
|
|
70
23
|
export declare const OcfVestingCondition:
|
|
@@ -73,23 +26,6 @@ export declare const OcfVestingCondition:
|
|
|
73
26
|
;
|
|
74
27
|
|
|
75
28
|
|
|
76
|
-
export declare type OcfAllocationType =
|
|
77
|
-
| 'OcfAllocationCumulativeRounding'
|
|
78
|
-
| 'OcfAllocationCumulativeRoundDown'
|
|
79
|
-
| 'OcfAllocationFrontLoaded'
|
|
80
|
-
| 'OcfAllocationBackLoaded'
|
|
81
|
-
| 'OcfAllocationFrontLoadedToSingleTranche'
|
|
82
|
-
| 'OcfAllocationBackLoadedToSingleTranche'
|
|
83
|
-
| 'OcfAllocationFractional'
|
|
84
|
-
;
|
|
85
|
-
|
|
86
|
-
export declare const OcfAllocationType:
|
|
87
|
-
damlTypes.Serializable<OcfAllocationType> & {
|
|
88
|
-
}
|
|
89
|
-
& { readonly keys: OcfAllocationType[] } & { readonly [e in OcfAllocationType]: e }
|
|
90
|
-
;
|
|
91
|
-
|
|
92
|
-
|
|
93
29
|
export declare type OcfVestingConditionPortion = {
|
|
94
30
|
numerator: damlTypes.Numeric;
|
|
95
31
|
denominator: damlTypes.Numeric;
|
|
@@ -104,18 +40,26 @@ export declare const OcfVestingConditionPortion:
|
|
|
104
40
|
|
|
105
41
|
export declare type OcfVestingTrigger =
|
|
106
42
|
| { tag: 'OcfVestingStartTrigger'; value: {} }
|
|
107
|
-
| { tag: 'OcfVestingScheduleAbsoluteTrigger'; value:
|
|
43
|
+
| { tag: 'OcfVestingScheduleAbsoluteTrigger'; value: OcfVestingTrigger.OcfVestingScheduleAbsoluteTrigger }
|
|
108
44
|
| { tag: 'OcfVestingScheduleRelativeTrigger'; value: OcfVestingTrigger.OcfVestingScheduleRelativeTrigger }
|
|
109
45
|
| { tag: 'OcfVestingEventTrigger'; value: {} }
|
|
110
46
|
;
|
|
111
47
|
|
|
112
48
|
export declare const OcfVestingTrigger:
|
|
113
49
|
damlTypes.Serializable<OcfVestingTrigger> & {
|
|
50
|
+
OcfVestingScheduleAbsoluteTrigger: damlTypes.Serializable<OcfVestingTrigger.OcfVestingScheduleAbsoluteTrigger>;
|
|
114
51
|
OcfVestingScheduleRelativeTrigger: damlTypes.Serializable<OcfVestingTrigger.OcfVestingScheduleRelativeTrigger>;
|
|
115
52
|
}
|
|
116
53
|
;
|
|
117
54
|
|
|
118
55
|
|
|
56
|
+
export namespace OcfVestingTrigger {
|
|
57
|
+
type OcfVestingScheduleAbsoluteTrigger = {
|
|
58
|
+
date: damlTypes.Time;
|
|
59
|
+
};
|
|
60
|
+
} //namespace OcfVestingTrigger
|
|
61
|
+
|
|
62
|
+
|
|
119
63
|
export namespace OcfVestingTrigger {
|
|
120
64
|
type OcfVestingScheduleRelativeTrigger = {
|
|
121
65
|
period: OcfVestingPeriod;
|
|
@@ -139,7 +83,7 @@ export declare const OcfVestingPeriod:
|
|
|
139
83
|
|
|
140
84
|
export namespace OcfVestingPeriod {
|
|
141
85
|
type OcfVestingPeriodDays = {
|
|
142
|
-
|
|
86
|
+
length_: damlTypes.Int;
|
|
143
87
|
occurrences: damlTypes.Int;
|
|
144
88
|
cliff_installment: damlTypes.Optional<damlTypes.Int>;
|
|
145
89
|
};
|
|
@@ -148,7 +92,7 @@ export namespace OcfVestingPeriod {
|
|
|
148
92
|
|
|
149
93
|
export namespace OcfVestingPeriod {
|
|
150
94
|
type OcfVestingPeriodMonths = {
|
|
151
|
-
|
|
95
|
+
length_: damlTypes.Int;
|
|
152
96
|
occurrences: damlTypes.Int;
|
|
153
97
|
day_of_month: OcfVestingDayOfMonth;
|
|
154
98
|
cliff_installment: damlTypes.Optional<damlTypes.Int>;
|
|
@@ -197,3 +141,67 @@ export declare const OcfVestingDayOfMonth:
|
|
|
197
141
|
& { readonly keys: OcfVestingDayOfMonth[] } & { readonly [e in OcfVestingDayOfMonth]: e }
|
|
198
142
|
;
|
|
199
143
|
|
|
144
|
+
|
|
145
|
+
export declare type OcfAllocationType =
|
|
146
|
+
| 'OcfAllocationCumulativeRounding'
|
|
147
|
+
| 'OcfAllocationCumulativeRoundDown'
|
|
148
|
+
| 'OcfAllocationFrontLoaded'
|
|
149
|
+
| 'OcfAllocationBackLoaded'
|
|
150
|
+
| 'OcfAllocationFrontLoadedToSingleTranche'
|
|
151
|
+
| 'OcfAllocationBackLoadedToSingleTranche'
|
|
152
|
+
| 'OcfAllocationFractional'
|
|
153
|
+
;
|
|
154
|
+
|
|
155
|
+
export declare const OcfAllocationType:
|
|
156
|
+
damlTypes.Serializable<OcfAllocationType> & {
|
|
157
|
+
}
|
|
158
|
+
& { readonly keys: OcfAllocationType[] } & { readonly [e in OcfAllocationType]: e }
|
|
159
|
+
;
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
export declare type OcfVestingTermsData = {
|
|
163
|
+
id: string;
|
|
164
|
+
allocation_type: OcfAllocationType;
|
|
165
|
+
description: string;
|
|
166
|
+
name: string;
|
|
167
|
+
comments: string[];
|
|
168
|
+
vesting_conditions: OcfVestingCondition[];
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export declare const OcfVestingTermsData:
|
|
172
|
+
damlTypes.Serializable<OcfVestingTermsData> & {
|
|
173
|
+
}
|
|
174
|
+
;
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
export declare type ArchiveByIssuer = {
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare const ArchiveByIssuer:
|
|
181
|
+
damlTypes.Serializable<ArchiveByIssuer> & {
|
|
182
|
+
}
|
|
183
|
+
;
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
export declare type VestingTerms = {
|
|
187
|
+
context: Fairmint_OpenCapTable_Types.Context;
|
|
188
|
+
vesting_terms_data: OcfVestingTermsData;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export declare interface VestingTermsInterface {
|
|
192
|
+
Archive: damlTypes.Choice<VestingTerms, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
193
|
+
ArchiveByIssuer: damlTypes.Choice<VestingTerms, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
194
|
+
}
|
|
195
|
+
export declare const VestingTerms:
|
|
196
|
+
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-v24:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
197
|
+
damlTypes.ToInterface<VestingTerms, never> &
|
|
198
|
+
VestingTermsInterface;
|
|
199
|
+
|
|
200
|
+
export declare namespace VestingTerms {
|
|
201
|
+
export type CreateEvent = damlLedger.CreateEvent<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
202
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<VestingTerms, typeof VestingTerms.templateId>
|
|
203
|
+
export type Event = damlLedger.Event<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
204
|
+
export type QueryResult = damlLedger.QueryResult<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
|
|
@@ -17,82 +17,16 @@ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requir
|
|
|
17
17
|
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.ArchiveByIssuer = {
|
|
21
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
22
|
-
encode: function (__typed__) {
|
|
23
|
-
return {
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
32
|
-
{
|
|
33
|
-
templateId: '#OpenCapTable-v22:Fairmint.OpenCapTable.VestingTerms:VestingTerms',
|
|
34
|
-
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
|
-
keyEncode: function () { throw 'EncodeError'; },
|
|
36
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, vesting_terms_data: exports.OcfVestingTermsData.decoder, }); }),
|
|
37
|
-
encode: function (__typed__) {
|
|
38
|
-
return {
|
|
39
|
-
context: Fairmint_OpenCapTable_Types.Context.encode(__typed__.context),
|
|
40
|
-
vesting_terms_data: exports.OcfVestingTermsData.encode(__typed__.vesting_terms_data),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
,
|
|
44
|
-
Archive: {
|
|
45
|
-
template: function () { return exports.VestingTerms; },
|
|
46
|
-
choiceName: 'Archive',
|
|
47
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
48
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
49
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
50
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
51
|
-
},
|
|
52
|
-
ArchiveByIssuer: {
|
|
53
|
-
template: function () { return exports.VestingTerms; },
|
|
54
|
-
choiceName: 'ArchiveByIssuer',
|
|
55
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ArchiveByIssuer.decoder; }),
|
|
56
|
-
argumentEncode: function (__typed__) { return exports.ArchiveByIssuer.encode(__typed__); },
|
|
57
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
58
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
59
|
-
},
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
damlTypes.registerTemplate(exports.VestingTerms, ['c3614dff0d0574cbb00d6141ef5a71909a44a16e19667adb3abdb572ee7f0b4d', '#OpenCapTable-v22']);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.OcfVestingTermsData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, name: damlTypes.Text.decoder, description: damlTypes.Text.decoder, allocation_type: exports.OcfAllocationType.decoder, vesting_conditions: damlTypes.List(exports.OcfVestingCondition).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
71
|
-
encode: function (__typed__) {
|
|
72
|
-
return {
|
|
73
|
-
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
74
|
-
name: damlTypes.Text.encode(__typed__.name),
|
|
75
|
-
description: damlTypes.Text.encode(__typed__.description),
|
|
76
|
-
allocation_type: exports.OcfAllocationType.encode(__typed__.allocation_type),
|
|
77
|
-
vesting_conditions: damlTypes.List(exports.OcfVestingCondition).encode(__typed__.vesting_conditions),
|
|
78
|
-
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
,
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
20
|
exports.OcfVestingCondition = {
|
|
87
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, trigger: exports.OcfVestingTrigger.decoder, next_condition_ids: damlTypes.List(damlTypes.Text).decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), portion: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfVestingConditionPortion).decoder), quantity: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), }); }),
|
|
88
22
|
encode: function (__typed__) {
|
|
89
23
|
return {
|
|
90
|
-
|
|
24
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
25
|
+
trigger: exports.OcfVestingTrigger.encode(__typed__.trigger),
|
|
26
|
+
next_condition_ids: damlTypes.List(damlTypes.Text).encode(__typed__.next_condition_ids),
|
|
91
27
|
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
92
28
|
portion: damlTypes.Optional(exports.OcfVestingConditionPortion).encode(__typed__.portion),
|
|
93
29
|
quantity: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.quantity),
|
|
94
|
-
trigger: exports.OcfVestingTrigger.encode(__typed__.trigger),
|
|
95
|
-
next_condition_ids: damlTypes.List(damlTypes.Text).encode(__typed__.next_condition_ids),
|
|
96
30
|
};
|
|
97
31
|
}
|
|
98
32
|
,
|
|
@@ -100,21 +34,6 @@ exports.OcfVestingCondition = {
|
|
|
100
34
|
|
|
101
35
|
|
|
102
36
|
|
|
103
|
-
exports.OcfAllocationType = {
|
|
104
|
-
OcfAllocationCumulativeRounding: 'OcfAllocationCumulativeRounding',
|
|
105
|
-
OcfAllocationCumulativeRoundDown: 'OcfAllocationCumulativeRoundDown',
|
|
106
|
-
OcfAllocationFrontLoaded: 'OcfAllocationFrontLoaded',
|
|
107
|
-
OcfAllocationBackLoaded: 'OcfAllocationBackLoaded',
|
|
108
|
-
OcfAllocationFrontLoadedToSingleTranche: 'OcfAllocationFrontLoadedToSingleTranche',
|
|
109
|
-
OcfAllocationBackLoadedToSingleTranche: 'OcfAllocationBackLoadedToSingleTranche',
|
|
110
|
-
OcfAllocationFractional: 'OcfAllocationFractional',
|
|
111
|
-
keys: ['OcfAllocationCumulativeRounding','OcfAllocationCumulativeRoundDown','OcfAllocationFrontLoaded','OcfAllocationBackLoaded','OcfAllocationFrontLoadedToSingleTranche','OcfAllocationBackLoadedToSingleTranche','OcfAllocationFractional',],
|
|
112
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAllocationType.OcfAllocationCumulativeRounding), jtv.constant(exports.OcfAllocationType.OcfAllocationCumulativeRoundDown), jtv.constant(exports.OcfAllocationType.OcfAllocationFrontLoaded), jtv.constant(exports.OcfAllocationType.OcfAllocationBackLoaded), jtv.constant(exports.OcfAllocationType.OcfAllocationFrontLoadedToSingleTranche), jtv.constant(exports.OcfAllocationType.OcfAllocationBackLoadedToSingleTranche), jtv.constant(exports.OcfAllocationType.OcfAllocationFractional)); }),
|
|
113
|
-
encode: function (__typed__) { return __typed__; },
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
37
|
exports.OcfVestingConditionPortion = {
|
|
119
38
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({numerator: damlTypes.Numeric(10).decoder, denominator: damlTypes.Numeric(10).decoder, remainder: damlTypes.Bool.decoder, }); }),
|
|
120
39
|
encode: function (__typed__) {
|
|
@@ -130,17 +49,26 @@ exports.OcfVestingConditionPortion = {
|
|
|
130
49
|
|
|
131
50
|
|
|
132
51
|
exports.OcfVestingTrigger = {
|
|
133
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfVestingStartTrigger'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('OcfVestingScheduleAbsoluteTrigger'), value:
|
|
52
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfVestingStartTrigger'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('OcfVestingScheduleAbsoluteTrigger'), value: exports.OcfVestingTrigger.OcfVestingScheduleAbsoluteTrigger.decoder, }), jtv.object({tag: jtv.constant('OcfVestingScheduleRelativeTrigger'), value: exports.OcfVestingTrigger.OcfVestingScheduleRelativeTrigger.decoder, }), jtv.object({tag: jtv.constant('OcfVestingEventTrigger'), value: damlTypes.Unit.decoder, })); }),
|
|
134
53
|
encode: function (__typed__) {
|
|
135
54
|
switch(__typed__.tag) {
|
|
136
55
|
case 'OcfVestingStartTrigger': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
137
|
-
case 'OcfVestingScheduleAbsoluteTrigger': return {tag: __typed__.tag, value:
|
|
56
|
+
case 'OcfVestingScheduleAbsoluteTrigger': return {tag: __typed__.tag, value: exports.OcfVestingTrigger.OcfVestingScheduleAbsoluteTrigger.encode(__typed__.value)};
|
|
138
57
|
case 'OcfVestingScheduleRelativeTrigger': return {tag: __typed__.tag, value: exports.OcfVestingTrigger.OcfVestingScheduleRelativeTrigger.encode(__typed__.value)};
|
|
139
58
|
case 'OcfVestingEventTrigger': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
140
59
|
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfVestingTrigger';
|
|
141
60
|
}
|
|
142
61
|
}
|
|
143
62
|
,
|
|
63
|
+
OcfVestingScheduleAbsoluteTrigger:({
|
|
64
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, }); }),
|
|
65
|
+
encode: function (__typed__) {
|
|
66
|
+
return {
|
|
67
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
,
|
|
71
|
+
}),
|
|
144
72
|
OcfVestingScheduleRelativeTrigger:({
|
|
145
73
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({period: exports.OcfVestingPeriod.decoder, relative_to_condition_id: damlTypes.Text.decoder, }); }),
|
|
146
74
|
encode: function (__typed__) {
|
|
@@ -157,6 +85,8 @@ exports.OcfVestingTrigger = {
|
|
|
157
85
|
|
|
158
86
|
|
|
159
87
|
|
|
88
|
+
|
|
89
|
+
|
|
160
90
|
exports.OcfVestingPeriod = {
|
|
161
91
|
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfVestingPeriodDays'), value: exports.OcfVestingPeriod.OcfVestingPeriodDays.decoder, }), jtv.object({tag: jtv.constant('OcfVestingPeriodMonths'), value: exports.OcfVestingPeriod.OcfVestingPeriodMonths.decoder, })); }),
|
|
162
92
|
encode: function (__typed__) {
|
|
@@ -168,10 +98,10 @@ exports.OcfVestingPeriod = {
|
|
|
168
98
|
}
|
|
169
99
|
,
|
|
170
100
|
OcfVestingPeriodDays:({
|
|
171
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
101
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({length_: damlTypes.Int.decoder, occurrences: damlTypes.Int.decoder, cliff_installment: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Int).decoder), }); }),
|
|
172
102
|
encode: function (__typed__) {
|
|
173
103
|
return {
|
|
174
|
-
|
|
104
|
+
length_: damlTypes.Int.encode(__typed__.length_),
|
|
175
105
|
occurrences: damlTypes.Int.encode(__typed__.occurrences),
|
|
176
106
|
cliff_installment: damlTypes.Optional(damlTypes.Int).encode(__typed__.cliff_installment),
|
|
177
107
|
};
|
|
@@ -179,10 +109,10 @@ exports.OcfVestingPeriod = {
|
|
|
179
109
|
,
|
|
180
110
|
}),
|
|
181
111
|
OcfVestingPeriodMonths:({
|
|
182
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
112
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({length_: damlTypes.Int.decoder, occurrences: damlTypes.Int.decoder, day_of_month: exports.OcfVestingDayOfMonth.decoder, cliff_installment: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Int).decoder), }); }),
|
|
183
113
|
encode: function (__typed__) {
|
|
184
114
|
return {
|
|
185
|
-
|
|
115
|
+
length_: damlTypes.Int.encode(__typed__.length_),
|
|
186
116
|
occurrences: damlTypes.Int.encode(__typed__.occurrences),
|
|
187
117
|
day_of_month: exports.OcfVestingDayOfMonth.encode(__typed__.day_of_month),
|
|
188
118
|
cliff_installment: damlTypes.Optional(damlTypes.Int).encode(__typed__.cliff_installment),
|
|
@@ -236,3 +166,84 @@ exports.OcfVestingDayOfMonth = {
|
|
|
236
166
|
encode: function (__typed__) { return __typed__; },
|
|
237
167
|
};
|
|
238
168
|
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
exports.OcfAllocationType = {
|
|
172
|
+
OcfAllocationCumulativeRounding: 'OcfAllocationCumulativeRounding',
|
|
173
|
+
OcfAllocationCumulativeRoundDown: 'OcfAllocationCumulativeRoundDown',
|
|
174
|
+
OcfAllocationFrontLoaded: 'OcfAllocationFrontLoaded',
|
|
175
|
+
OcfAllocationBackLoaded: 'OcfAllocationBackLoaded',
|
|
176
|
+
OcfAllocationFrontLoadedToSingleTranche: 'OcfAllocationFrontLoadedToSingleTranche',
|
|
177
|
+
OcfAllocationBackLoadedToSingleTranche: 'OcfAllocationBackLoadedToSingleTranche',
|
|
178
|
+
OcfAllocationFractional: 'OcfAllocationFractional',
|
|
179
|
+
keys: ['OcfAllocationCumulativeRounding','OcfAllocationCumulativeRoundDown','OcfAllocationFrontLoaded','OcfAllocationBackLoaded','OcfAllocationFrontLoadedToSingleTranche','OcfAllocationBackLoadedToSingleTranche','OcfAllocationFractional',],
|
|
180
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAllocationType.OcfAllocationCumulativeRounding), jtv.constant(exports.OcfAllocationType.OcfAllocationCumulativeRoundDown), jtv.constant(exports.OcfAllocationType.OcfAllocationFrontLoaded), jtv.constant(exports.OcfAllocationType.OcfAllocationBackLoaded), jtv.constant(exports.OcfAllocationType.OcfAllocationFrontLoadedToSingleTranche), jtv.constant(exports.OcfAllocationType.OcfAllocationBackLoadedToSingleTranche), jtv.constant(exports.OcfAllocationType.OcfAllocationFractional)); }),
|
|
181
|
+
encode: function (__typed__) { return __typed__; },
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
exports.OcfVestingTermsData = {
|
|
187
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, allocation_type: exports.OcfAllocationType.decoder, description: damlTypes.Text.decoder, name: damlTypes.Text.decoder, comments: damlTypes.List(damlTypes.Text).decoder, vesting_conditions: damlTypes.List(exports.OcfVestingCondition).decoder, }); }),
|
|
188
|
+
encode: function (__typed__) {
|
|
189
|
+
return {
|
|
190
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
191
|
+
allocation_type: exports.OcfAllocationType.encode(__typed__.allocation_type),
|
|
192
|
+
description: damlTypes.Text.encode(__typed__.description),
|
|
193
|
+
name: damlTypes.Text.encode(__typed__.name),
|
|
194
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
195
|
+
vesting_conditions: damlTypes.List(exports.OcfVestingCondition).encode(__typed__.vesting_conditions),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
exports.ArchiveByIssuer = {
|
|
204
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
205
|
+
encode: function (__typed__) {
|
|
206
|
+
return {
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
,
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
215
|
+
{
|
|
216
|
+
templateId: '#OpenCapTable-v24:Fairmint.OpenCapTable.VestingTerms:VestingTerms',
|
|
217
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
218
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
219
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, vesting_terms_data: exports.OcfVestingTermsData.decoder, }); }),
|
|
220
|
+
encode: function (__typed__) {
|
|
221
|
+
return {
|
|
222
|
+
context: Fairmint_OpenCapTable_Types.Context.encode(__typed__.context),
|
|
223
|
+
vesting_terms_data: exports.OcfVestingTermsData.encode(__typed__.vesting_terms_data),
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
,
|
|
227
|
+
Archive: {
|
|
228
|
+
template: function () { return exports.VestingTerms; },
|
|
229
|
+
choiceName: 'Archive',
|
|
230
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
231
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
232
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
233
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
234
|
+
},
|
|
235
|
+
ArchiveByIssuer: {
|
|
236
|
+
template: function () { return exports.VestingTerms; },
|
|
237
|
+
choiceName: 'ArchiveByIssuer',
|
|
238
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ArchiveByIssuer.decoder; }),
|
|
239
|
+
argumentEncode: function (__typed__) { return exports.ArchiveByIssuer.encode(__typed__); },
|
|
240
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
241
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
242
|
+
},
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['2a4643064cabdaa1562186b34da3c4de4e3a0b03c82a66d634e8fc4bd974aaa5', '#OpenCapTable-v24']);
|
|
249
|
+
|