@fairmint/open-captable-protocol-daml-js 0.2.10 → 0.2.12
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 -418
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +28 -463
- 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
package/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
## Shared Coding Guidelines for OCP DAML Packages
|
|
2
|
+
|
|
3
|
+
This repository contains multiple DAML packages (e.g., `OpenCapTable-v25`, `OpenCapTableReports-v01`, `OpenCapTableProofOfOwnership-v01`, `OpenCapTableShared-v01`). This document defines coding guidelines that apply to all packages.
|
|
4
|
+
|
|
5
|
+
For package-specific details about each implementation, see the README.md file in the respective package directory (e.g., `open-captable-protocol-daml/OpenCapTable-v25/README.md`).
|
|
6
|
+
|
|
7
|
+
### Global exceptions
|
|
8
|
+
|
|
9
|
+
- We use DAML `Time` instead of schema `Date` (schema excludes time) as a workaround for a JavaScript parsing issue.
|
|
10
|
+
|
|
11
|
+
### Implementation guidance
|
|
12
|
+
|
|
13
|
+
- **Non-empty Text values**:
|
|
14
|
+
- Never allow empty `Text` strings. For `Optional Text`, if provided (`Some t`), ensure `t /= ""`.
|
|
15
|
+
- For arrays of `Text`, validate each element is non-empty.
|
|
16
|
+
- **Arrays are non-optional**: Do not omit array fields. When there are no items, emit an empty array (`[]`) instead of leaving the field out.
|
|
17
|
+
- **Avoid trivial type aliases**: Do not create semantic aliases for native types (e.g., `type OcfMd5 = Text`). Prefer native types with validators. Example:
|
|
18
|
+
|
|
19
|
+
```daml
|
|
20
|
+
-- MD5
|
|
21
|
+
-- OCF: https://raw.githubusercontent.com/Open-Cap-Table-Coalition/Open-Cap-Format-OCF/main/schema/types/Md5.schema.json
|
|
22
|
+
validateOcfMd5 : Text -> Bool
|
|
23
|
+
validateOcfMd5 md5 =
|
|
24
|
+
let n = Text.length md5 in
|
|
25
|
+
n == 32 && CryptoText.isHex md5
|
|
26
|
+
```
|
|
27
|
+
- **Shared types and organization**:
|
|
28
|
+
- Define any type used by more than one template in `Types.daml` (with its validator) and import where needed.
|
|
29
|
+
- Keep template files focused; if a type is only used by a single template, define it in that template file.
|
|
30
|
+
- Do not import a template module solely to access a type; move that type to `Types.daml` instead.
|
|
31
|
+
- Within each record, maintain field ordering for readability:
|
|
32
|
+
1) `id` first
|
|
33
|
+
2) Required scalar fields (alphabetical)
|
|
34
|
+
3) Arrays (alphabetical)
|
|
35
|
+
4) Optional fields (alphabetical)
|
|
36
|
+
- This ordering applies to all types/records (not only top-level transaction objects). If a record does not have an `id`, skip step 1 and still follow required → arrays → optional with alphabetical ordering within each group.
|
|
37
|
+
- Required refers to types which are not `Optional` or an array. Keep the groups strict and correct.
|
|
38
|
+
- Use short section headers and separators to denote these groups exactly as:
|
|
39
|
+
- `-- Required fields (alphabetical)`
|
|
40
|
+
- `-- ---------------------------------`
|
|
41
|
+
- `-- Arrays (alphabetical)`
|
|
42
|
+
- `-- ---------------------------------`
|
|
43
|
+
- `-- Optional fields (alphabetical)`
|
|
44
|
+
- `-- ---------------------------------`
|
|
45
|
+
- **Declaration order in template files**: Place declarations in this order within each template file: 1) `template` block first, 2) top-level `data` (the main object record), 3) subtype `data` (helper or nested records specific to the template). Keep the two data definitions adjacent.
|
|
46
|
+
- **Validator placement**: Define the validator immediately after the corresponding `data` type it validates, in the same file. Example:
|
|
47
|
+
|
|
48
|
+
```daml
|
|
49
|
+
data OcfThing = OcfThing with field: Text deriving (Eq, Show)
|
|
50
|
+
|
|
51
|
+
validateOcfThing : OcfThing -> Bool
|
|
52
|
+
validateOcfThing t = t.field /= ""
|
|
53
|
+
```
|
|
54
|
+
- **Test helpers**: Place test helpers only in the `Test` package, never in main packages.
|
|
55
|
+
|
|
56
|
+
- **Choice ordering in templates**: When there is no clear logical lifecycle ordering, sort choice declarations alphabetically by choice name. As a convention, place create-style choices before archive-style choices (e.g., put `ArchiveByIssuer` last).
|
|
57
|
+
|
|
58
|
+
### Package-specific guidance
|
|
59
|
+
|
|
60
|
+
Each package may include additional constraints and domain guidance. Refer to:
|
|
61
|
+
|
|
62
|
+
- `open-captable-protocol-daml/OpenCapTable-v25/README.md` for Open Cap Table specifics (e.g., Issuer management patterns).
|
|
63
|
+
- Other package READMEs as applicable.
|
|
64
|
+
|
|
65
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "00183cc3d100b6011a5cec22d09e83a868a22bf94c278714586c7a68e07de18147ca1112203b9ce41645cd73a0c4c4baa988e03e3b564c4ca4d2297689deb6790336feb531",
|
|
4
|
+
"templateId": "e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "0053aaae8102e24b36cbaf751ac89ed6d30864ac475dfc094705adc3f95690a8d6ca111220e8ba67b332c676fa79d649b59fa7346e500d892042e9ebef32dfcaa82bbba941",
|
|
8
|
+
"templateId": "e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -9,9 +9,48 @@ import * as damlLedger from '@daml/ledger';
|
|
|
9
9
|
|
|
10
10
|
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
11
11
|
|
|
12
|
-
import * as Fairmint_OpenCapTable_StockClass from '../../../Fairmint/OpenCapTable/StockClass/module';
|
|
13
12
|
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
14
13
|
|
|
14
|
+
export declare type OcfConvertibleConversionTrigger = {
|
|
15
|
+
conversion_right: Fairmint_OpenCapTable_Types.OcfConvertibleConversionRight;
|
|
16
|
+
trigger_id: string;
|
|
17
|
+
type_: Fairmint_OpenCapTable_Types.OcfConversionTriggerType;
|
|
18
|
+
nickname: damlTypes.Optional<string>;
|
|
19
|
+
trigger_condition: damlTypes.Optional<string>;
|
|
20
|
+
trigger_date: damlTypes.Optional<damlTypes.Time>;
|
|
21
|
+
trigger_description: damlTypes.Optional<string>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare const OcfConvertibleConversionTrigger:
|
|
25
|
+
damlTypes.Serializable<OcfConvertibleConversionTrigger> & {
|
|
26
|
+
}
|
|
27
|
+
;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export declare type OcfConvertibleIssuanceTxData = {
|
|
31
|
+
id: string;
|
|
32
|
+
convertible_type: Fairmint_OpenCapTable_Types.OcfConvertibleType;
|
|
33
|
+
custom_id: string;
|
|
34
|
+
date: damlTypes.Time;
|
|
35
|
+
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
36
|
+
security_id: string;
|
|
37
|
+
seniority: damlTypes.Int;
|
|
38
|
+
stakeholder_id: string;
|
|
39
|
+
comments: string[];
|
|
40
|
+
conversion_triggers: OcfConvertibleConversionTrigger[];
|
|
41
|
+
security_law_exemptions: Fairmint_OpenCapTable_Types.OcfSecurityExemption[];
|
|
42
|
+
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
43
|
+
consideration_text: damlTypes.Optional<string>;
|
|
44
|
+
pro_rata: damlTypes.Optional<damlTypes.Numeric>;
|
|
45
|
+
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export declare const OcfConvertibleIssuanceTxData:
|
|
49
|
+
damlTypes.Serializable<OcfConvertibleIssuanceTxData> & {
|
|
50
|
+
}
|
|
51
|
+
;
|
|
52
|
+
|
|
53
|
+
|
|
15
54
|
export declare type ArchiveByIssuer = {
|
|
16
55
|
};
|
|
17
56
|
|
|
@@ -31,7 +70,7 @@ export declare interface ConvertibleIssuanceInterface {
|
|
|
31
70
|
ArchiveByIssuer: damlTypes.Choice<ConvertibleIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ConvertibleIssuance, undefined>>;
|
|
32
71
|
}
|
|
33
72
|
export declare const ConvertibleIssuance:
|
|
34
|
-
damlTypes.Template<ConvertibleIssuance, undefined, '#OpenCapTable-
|
|
73
|
+
damlTypes.Template<ConvertibleIssuance, undefined, '#OpenCapTable-v25:Fairmint.OpenCapTable.ConvertibleIssuance:ConvertibleIssuance'> &
|
|
35
74
|
damlTypes.ToInterface<ConvertibleIssuance, never> &
|
|
36
75
|
ConvertibleIssuanceInterface;
|
|
37
76
|
|
|
@@ -43,27 +82,3 @@ export declare namespace ConvertibleIssuance {
|
|
|
43
82
|
}
|
|
44
83
|
|
|
45
84
|
|
|
46
|
-
|
|
47
|
-
export declare type OcfConvertibleIssuanceTxData = {
|
|
48
|
-
ocf_id: string;
|
|
49
|
-
date: damlTypes.Time;
|
|
50
|
-
security_id: string;
|
|
51
|
-
custom_id: string;
|
|
52
|
-
stakeholder_id: string;
|
|
53
|
-
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
54
|
-
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
55
|
-
consideration_text: damlTypes.Optional<string>;
|
|
56
|
-
security_law_exemptions: Fairmint_OpenCapTable_Types.OcfSecurityExemption[];
|
|
57
|
-
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
58
|
-
convertible_type: Fairmint_OpenCapTable_StockClass.OcfConvertibleType;
|
|
59
|
-
conversion_triggers: Fairmint_OpenCapTable_StockClass.OcfConvertibleConversionTrigger[];
|
|
60
|
-
pro_rata: damlTypes.Optional<damlTypes.Numeric>;
|
|
61
|
-
seniority: damlTypes.Int;
|
|
62
|
-
comments: string[];
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export declare const OcfConvertibleIssuanceTxData:
|
|
66
|
-
damlTypes.Serializable<OcfConvertibleIssuanceTxData> & {
|
|
67
|
-
}
|
|
68
|
-
;
|
|
69
|
-
|
|
@@ -14,10 +14,53 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
16
16
|
|
|
17
|
-
var Fairmint_OpenCapTable_StockClass = require('../../../Fairmint/OpenCapTable/StockClass/module');
|
|
18
17
|
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
19
18
|
|
|
20
19
|
|
|
20
|
+
exports.OcfConvertibleConversionTrigger = {
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({conversion_right: Fairmint_OpenCapTable_Types.OcfConvertibleConversionRight.decoder, trigger_id: damlTypes.Text.decoder, type_: Fairmint_OpenCapTable_Types.OcfConversionTriggerType.decoder, nickname: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), trigger_condition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), trigger_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), trigger_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
22
|
+
encode: function (__typed__) {
|
|
23
|
+
return {
|
|
24
|
+
conversion_right: Fairmint_OpenCapTable_Types.OcfConvertibleConversionRight.encode(__typed__.conversion_right),
|
|
25
|
+
trigger_id: damlTypes.Text.encode(__typed__.trigger_id),
|
|
26
|
+
type_: Fairmint_OpenCapTable_Types.OcfConversionTriggerType.encode(__typed__.type_),
|
|
27
|
+
nickname: damlTypes.Optional(damlTypes.Text).encode(__typed__.nickname),
|
|
28
|
+
trigger_condition: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_condition),
|
|
29
|
+
trigger_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.trigger_date),
|
|
30
|
+
trigger_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_description),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.OcfConvertibleIssuanceTxData = {
|
|
39
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, convertible_type: Fairmint_OpenCapTable_Types.OcfConvertibleType.decoder, custom_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, security_id: damlTypes.Text.decoder, seniority: damlTypes.Int.decoder, stakeholder_id: damlTypes.Text.decoder, comments: damlTypes.List(damlTypes.Text).decoder, conversion_triggers: damlTypes.List(exports.OcfConvertibleConversionTrigger).decoder, security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), pro_rata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
40
|
+
encode: function (__typed__) {
|
|
41
|
+
return {
|
|
42
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
43
|
+
convertible_type: Fairmint_OpenCapTable_Types.OcfConvertibleType.encode(__typed__.convertible_type),
|
|
44
|
+
custom_id: damlTypes.Text.encode(__typed__.custom_id),
|
|
45
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
46
|
+
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.investment_amount),
|
|
47
|
+
security_id: damlTypes.Text.encode(__typed__.security_id),
|
|
48
|
+
seniority: damlTypes.Int.encode(__typed__.seniority),
|
|
49
|
+
stakeholder_id: damlTypes.Text.encode(__typed__.stakeholder_id),
|
|
50
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
51
|
+
conversion_triggers: damlTypes.List(exports.OcfConvertibleConversionTrigger).encode(__typed__.conversion_triggers),
|
|
52
|
+
security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).encode(__typed__.security_law_exemptions),
|
|
53
|
+
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
54
|
+
consideration_text: damlTypes.Optional(damlTypes.Text).encode(__typed__.consideration_text),
|
|
55
|
+
pro_rata: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.pro_rata),
|
|
56
|
+
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
21
64
|
exports.ArchiveByIssuer = {
|
|
22
65
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
23
66
|
encode: function (__typed__) {
|
|
@@ -31,7 +74,7 @@ exports.ArchiveByIssuer = {
|
|
|
31
74
|
|
|
32
75
|
exports.ConvertibleIssuance = damlTypes.assembleTemplate(
|
|
33
76
|
{
|
|
34
|
-
templateId: '#OpenCapTable-
|
|
77
|
+
templateId: '#OpenCapTable-v25:Fairmint.OpenCapTable.ConvertibleIssuance:ConvertibleIssuance',
|
|
35
78
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
36
79
|
keyEncode: function () { throw 'EncodeError'; },
|
|
37
80
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfConvertibleIssuanceTxData.decoder, }); }),
|
|
@@ -63,31 +106,5 @@ exports.ConvertibleIssuance = damlTypes.assembleTemplate(
|
|
|
63
106
|
);
|
|
64
107
|
|
|
65
108
|
|
|
66
|
-
damlTypes.registerTemplate(exports.ConvertibleIssuance, ['
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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.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
|
-
encode: function (__typed__) {
|
|
73
|
-
return {
|
|
74
|
-
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
75
|
-
date: damlTypes.Time.encode(__typed__.date),
|
|
76
|
-
security_id: damlTypes.Text.encode(__typed__.security_id),
|
|
77
|
-
custom_id: damlTypes.Text.encode(__typed__.custom_id),
|
|
78
|
-
stakeholder_id: damlTypes.Text.encode(__typed__.stakeholder_id),
|
|
79
|
-
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
80
|
-
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
81
|
-
consideration_text: damlTypes.Optional(damlTypes.Text).encode(__typed__.consideration_text),
|
|
82
|
-
security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).encode(__typed__.security_law_exemptions),
|
|
83
|
-
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.investment_amount),
|
|
84
|
-
convertible_type: Fairmint_OpenCapTable_StockClass.OcfConvertibleType.encode(__typed__.convertible_type),
|
|
85
|
-
conversion_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.OcfConvertibleConversionTrigger).encode(__typed__.conversion_triggers),
|
|
86
|
-
pro_rata: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.pro_rata),
|
|
87
|
-
seniority: damlTypes.Int.encode(__typed__.seniority),
|
|
88
|
-
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
,
|
|
92
|
-
};
|
|
109
|
+
damlTypes.registerTemplate(exports.ConvertibleIssuance, ['e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6', '#OpenCapTable-v25']);
|
|
93
110
|
|
|
@@ -11,38 +11,6 @@ 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 Document = {
|
|
24
|
-
context: Fairmint_OpenCapTable_Types.Context;
|
|
25
|
-
document_data: OcfDocument;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export declare interface DocumentInterface {
|
|
29
|
-
Archive: damlTypes.Choice<Document, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
|
|
30
|
-
ArchiveByIssuer: damlTypes.Choice<Document, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
|
|
31
|
-
}
|
|
32
|
-
export declare const Document:
|
|
33
|
-
damlTypes.Template<Document, undefined, '#OpenCapTable-v23:Fairmint.OpenCapTable.Document:Document'> &
|
|
34
|
-
damlTypes.ToInterface<Document, never> &
|
|
35
|
-
DocumentInterface;
|
|
36
|
-
|
|
37
|
-
export declare namespace Document {
|
|
38
|
-
export type CreateEvent = damlLedger.CreateEvent<Document, undefined, typeof Document.templateId>
|
|
39
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<Document, typeof Document.templateId>
|
|
40
|
-
export type Event = damlLedger.Event<Document, undefined, typeof Document.templateId>
|
|
41
|
-
export type QueryResult = damlLedger.QueryResult<Document, undefined, typeof Document.templateId>
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
14
|
export declare type OcfObjectType =
|
|
47
15
|
| 'OcfObjIssuer'
|
|
48
16
|
| 'OcfObjStakeholder'
|
|
@@ -110,8 +78,8 @@ export declare const OcfObjectType:
|
|
|
110
78
|
|
|
111
79
|
|
|
112
80
|
export declare type OcfObjectReference = {
|
|
113
|
-
object_type: OcfObjectType;
|
|
114
81
|
object_id: string;
|
|
82
|
+
object_type: OcfObjectType;
|
|
115
83
|
};
|
|
116
84
|
|
|
117
85
|
export declare const OcfObjectReference:
|
|
@@ -121,12 +89,12 @@ export declare const OcfObjectReference:
|
|
|
121
89
|
|
|
122
90
|
|
|
123
91
|
export declare type OcfDocument = {
|
|
124
|
-
|
|
125
|
-
path: damlTypes.Optional<string>;
|
|
126
|
-
uri: damlTypes.Optional<string>;
|
|
92
|
+
id: string;
|
|
127
93
|
md5: string;
|
|
128
|
-
related_objects: OcfObjectReference[];
|
|
129
94
|
comments: string[];
|
|
95
|
+
related_objects: OcfObjectReference[];
|
|
96
|
+
path: damlTypes.Optional<string>;
|
|
97
|
+
uri: damlTypes.Optional<string>;
|
|
130
98
|
};
|
|
131
99
|
|
|
132
100
|
export declare const OcfDocument:
|
|
@@ -134,3 +102,35 @@ export declare const OcfDocument:
|
|
|
134
102
|
}
|
|
135
103
|
;
|
|
136
104
|
|
|
105
|
+
|
|
106
|
+
export declare type ArchiveByIssuer = {
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare const ArchiveByIssuer:
|
|
110
|
+
damlTypes.Serializable<ArchiveByIssuer> & {
|
|
111
|
+
}
|
|
112
|
+
;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
export declare type Document = {
|
|
116
|
+
context: Fairmint_OpenCapTable_Types.Context;
|
|
117
|
+
document_data: OcfDocument;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export declare interface DocumentInterface {
|
|
121
|
+
Archive: damlTypes.Choice<Document, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
|
|
122
|
+
ArchiveByIssuer: damlTypes.Choice<Document, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
|
|
123
|
+
}
|
|
124
|
+
export declare const Document:
|
|
125
|
+
damlTypes.Template<Document, undefined, '#OpenCapTable-v25:Fairmint.OpenCapTable.Document:Document'> &
|
|
126
|
+
damlTypes.ToInterface<Document, never> &
|
|
127
|
+
DocumentInterface;
|
|
128
|
+
|
|
129
|
+
export declare namespace Document {
|
|
130
|
+
export type CreateEvent = damlLedger.CreateEvent<Document, undefined, typeof Document.templateId>
|
|
131
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<Document, typeof Document.templateId>
|
|
132
|
+
export type Event = damlLedger.Event<Document, undefined, typeof Document.templateId>
|
|
133
|
+
export type QueryResult = damlLedger.QueryResult<Document, undefined, typeof Document.templateId>
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
@@ -17,55 +17,6 @@ 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.Document = damlTypes.assembleTemplate(
|
|
32
|
-
{
|
|
33
|
-
templateId: '#OpenCapTable-v23:Fairmint.OpenCapTable.Document:Document',
|
|
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, document_data: exports.OcfDocument.decoder, }); }),
|
|
37
|
-
encode: function (__typed__) {
|
|
38
|
-
return {
|
|
39
|
-
context: Fairmint_OpenCapTable_Types.Context.encode(__typed__.context),
|
|
40
|
-
document_data: exports.OcfDocument.encode(__typed__.document_data),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
,
|
|
44
|
-
Archive: {
|
|
45
|
-
template: function () { return exports.Document; },
|
|
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.Document; },
|
|
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.Document, ['b74bfc2ff03ac3d7dd887b7d4ae2585d20ba35de25b42a204e98574614f42a4c', '#OpenCapTable-v23']);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
20
|
exports.OcfObjectType = {
|
|
70
21
|
OcfObjIssuer: 'OcfObjIssuer',
|
|
71
22
|
OcfObjStakeholder: 'OcfObjStakeholder',
|
|
@@ -131,11 +82,11 @@ exports.OcfObjectType = {
|
|
|
131
82
|
|
|
132
83
|
|
|
133
84
|
exports.OcfObjectReference = {
|
|
134
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
85
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({object_id: damlTypes.Text.decoder, object_type: exports.OcfObjectType.decoder, }); }),
|
|
135
86
|
encode: function (__typed__) {
|
|
136
87
|
return {
|
|
137
|
-
object_type: exports.OcfObjectType.encode(__typed__.object_type),
|
|
138
88
|
object_id: damlTypes.Text.encode(__typed__.object_id),
|
|
89
|
+
object_type: exports.OcfObjectType.encode(__typed__.object_type),
|
|
139
90
|
};
|
|
140
91
|
}
|
|
141
92
|
,
|
|
@@ -144,17 +95,66 @@ exports.OcfObjectReference = {
|
|
|
144
95
|
|
|
145
96
|
|
|
146
97
|
exports.OcfDocument = {
|
|
147
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
98
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, md5: damlTypes.Text.decoder, comments: damlTypes.List(damlTypes.Text).decoder, related_objects: damlTypes.List(exports.OcfObjectReference).decoder, path: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), uri: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
148
99
|
encode: function (__typed__) {
|
|
149
100
|
return {
|
|
150
|
-
|
|
151
|
-
path: damlTypes.Optional(damlTypes.Text).encode(__typed__.path),
|
|
152
|
-
uri: damlTypes.Optional(damlTypes.Text).encode(__typed__.uri),
|
|
101
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
153
102
|
md5: damlTypes.Text.encode(__typed__.md5),
|
|
154
|
-
related_objects: damlTypes.List(exports.OcfObjectReference).encode(__typed__.related_objects),
|
|
155
103
|
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
104
|
+
related_objects: damlTypes.List(exports.OcfObjectReference).encode(__typed__.related_objects),
|
|
105
|
+
path: damlTypes.Optional(damlTypes.Text).encode(__typed__.path),
|
|
106
|
+
uri: damlTypes.Optional(damlTypes.Text).encode(__typed__.uri),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
,
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
exports.ArchiveByIssuer = {
|
|
115
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
116
|
+
encode: function (__typed__) {
|
|
117
|
+
return {
|
|
156
118
|
};
|
|
157
119
|
}
|
|
158
120
|
,
|
|
159
121
|
};
|
|
160
122
|
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
exports.Document = damlTypes.assembleTemplate(
|
|
126
|
+
{
|
|
127
|
+
templateId: '#OpenCapTable-v25:Fairmint.OpenCapTable.Document:Document',
|
|
128
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
129
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
130
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, document_data: exports.OcfDocument.decoder, }); }),
|
|
131
|
+
encode: function (__typed__) {
|
|
132
|
+
return {
|
|
133
|
+
context: Fairmint_OpenCapTable_Types.Context.encode(__typed__.context),
|
|
134
|
+
document_data: exports.OcfDocument.encode(__typed__.document_data),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
,
|
|
138
|
+
Archive: {
|
|
139
|
+
template: function () { return exports.Document; },
|
|
140
|
+
choiceName: 'Archive',
|
|
141
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
142
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
143
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
144
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
145
|
+
},
|
|
146
|
+
ArchiveByIssuer: {
|
|
147
|
+
template: function () { return exports.Document; },
|
|
148
|
+
choiceName: 'ArchiveByIssuer',
|
|
149
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ArchiveByIssuer.decoder; }),
|
|
150
|
+
argumentEncode: function (__typed__) { return exports.ArchiveByIssuer.encode(__typed__); },
|
|
151
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
152
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
153
|
+
},
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
damlTypes.registerTemplate(exports.Document, ['e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6', '#OpenCapTable-v25']);
|
|
160
|
+
|
|
@@ -11,6 +11,22 @@ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
|
|
|
11
11
|
|
|
12
12
|
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
13
13
|
|
|
14
|
+
export declare type OcfEquityCompensationExerciseData = {
|
|
15
|
+
id: string;
|
|
16
|
+
date: damlTypes.Time;
|
|
17
|
+
quantity: damlTypes.Numeric;
|
|
18
|
+
security_id: string;
|
|
19
|
+
comments: string[];
|
|
20
|
+
resulting_security_ids: string[];
|
|
21
|
+
consideration_text: damlTypes.Optional<string>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare const OcfEquityCompensationExerciseData:
|
|
25
|
+
damlTypes.Serializable<OcfEquityCompensationExerciseData> & {
|
|
26
|
+
}
|
|
27
|
+
;
|
|
28
|
+
|
|
29
|
+
|
|
14
30
|
export declare type ArchiveByIssuer = {
|
|
15
31
|
};
|
|
16
32
|
|
|
@@ -30,7 +46,7 @@ export declare interface EquityCompensationExerciseInterface {
|
|
|
30
46
|
ArchiveByIssuer: damlTypes.Choice<EquityCompensationExercise, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<EquityCompensationExercise, undefined>>;
|
|
31
47
|
}
|
|
32
48
|
export declare const EquityCompensationExercise:
|
|
33
|
-
damlTypes.Template<EquityCompensationExercise, undefined, '#OpenCapTable-
|
|
49
|
+
damlTypes.Template<EquityCompensationExercise, undefined, '#OpenCapTable-v25:Fairmint.OpenCapTable.EquityCompensationExercise:EquityCompensationExercise'> &
|
|
34
50
|
damlTypes.ToInterface<EquityCompensationExercise, never> &
|
|
35
51
|
EquityCompensationExerciseInterface;
|
|
36
52
|
|
|
@@ -42,19 +58,3 @@ export declare namespace EquityCompensationExercise {
|
|
|
42
58
|
}
|
|
43
59
|
|
|
44
60
|
|
|
45
|
-
|
|
46
|
-
export declare type OcfEquityCompensationExerciseData = {
|
|
47
|
-
ocf_id: string;
|
|
48
|
-
date: damlTypes.Time;
|
|
49
|
-
security_id: string;
|
|
50
|
-
quantity: damlTypes.Numeric;
|
|
51
|
-
consideration_text: damlTypes.Optional<string>;
|
|
52
|
-
resulting_security_ids: string[];
|
|
53
|
-
comments: string[];
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export declare const OcfEquityCompensationExerciseData:
|
|
57
|
-
damlTypes.Serializable<OcfEquityCompensationExerciseData> & {
|
|
58
|
-
}
|
|
59
|
-
;
|
|
60
|
-
|
|
@@ -17,6 +17,24 @@ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requir
|
|
|
17
17
|
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
exports.OcfEquityCompensationExerciseData = {
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, quantity: damlTypes.Numeric(10).decoder, security_id: damlTypes.Text.decoder, comments: damlTypes.List(damlTypes.Text).decoder, resulting_security_ids: damlTypes.List(damlTypes.Text).decoder, consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
22
|
+
encode: function (__typed__) {
|
|
23
|
+
return {
|
|
24
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
25
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
26
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
27
|
+
security_id: damlTypes.Text.encode(__typed__.security_id),
|
|
28
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
29
|
+
resulting_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.resulting_security_ids),
|
|
30
|
+
consideration_text: damlTypes.Optional(damlTypes.Text).encode(__typed__.consideration_text),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
20
38
|
exports.ArchiveByIssuer = {
|
|
21
39
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
22
40
|
encode: function (__typed__) {
|
|
@@ -30,7 +48,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
48
|
|
|
31
49
|
exports.EquityCompensationExercise = damlTypes.assembleTemplate(
|
|
32
50
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
51
|
+
templateId: '#OpenCapTable-v25:Fairmint.OpenCapTable.EquityCompensationExercise:EquityCompensationExercise',
|
|
34
52
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
53
|
keyEncode: function () { throw 'EncodeError'; },
|
|
36
54
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, exercise_data: exports.OcfEquityCompensationExerciseData.decoder, }); }),
|
|
@@ -62,23 +80,5 @@ exports.EquityCompensationExercise = damlTypes.assembleTemplate(
|
|
|
62
80
|
);
|
|
63
81
|
|
|
64
82
|
|
|
65
|
-
damlTypes.registerTemplate(exports.EquityCompensationExercise, ['
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.OcfEquityCompensationExerciseData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, security_id: damlTypes.Text.decoder, quantity: damlTypes.Numeric(10).decoder, consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), resulting_security_ids: damlTypes.List(damlTypes.Text).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
71
|
-
encode: function (__typed__) {
|
|
72
|
-
return {
|
|
73
|
-
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
74
|
-
date: damlTypes.Time.encode(__typed__.date),
|
|
75
|
-
security_id: damlTypes.Text.encode(__typed__.security_id),
|
|
76
|
-
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
77
|
-
consideration_text: damlTypes.Optional(damlTypes.Text).encode(__typed__.consideration_text),
|
|
78
|
-
resulting_security_ids: damlTypes.List(damlTypes.Text).encode(__typed__.resulting_security_ids),
|
|
79
|
-
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
,
|
|
83
|
-
};
|
|
83
|
+
damlTypes.registerTemplate(exports.EquityCompensationExercise, ['e3657ab5c2090361be936cb66611f95df4abf6911c3c94172afcf2e9c26f75f6', '#OpenCapTable-v25']);
|
|
84
84
|
|