@fairmint/open-captable-protocol-daml-js 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/ocp-factory-contract-id.json +4 -4
- package/generated/reports-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/Document/module.d.ts +4 -3
- package/lib/Fairmint/OpenCapTable/Document/module.js +6 -5
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +8 -7
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +11 -10
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +22 -11
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +28 -15
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +5 -4
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +9 -8
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +3 -2
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +5 -4
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +4 -2
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +6 -4
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +2 -2
- package/lib/Fairmint/OpenCapTable/Types/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +4 -2
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +6 -4
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +3 -2
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +5 -4
- package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +1 -1
- package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "008dd2acd2e94e58ead620f5c2a45c968a49f7ca864825f6d9db469cbc35c5141dca111220a1b6d078bac3abc7e61f02b6f53771b3ec18daed87aaab629358217800a6adf2",
|
|
4
|
+
"templateId": "fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "00c7fc12254350562a53d7e1c9830f6c6850b5fa1e78b522d4f63778707890b0e0ca1112203b807dde17ecb0ad8d111014ce46322f525ef4a9f74126004492a7886c899cec",
|
|
8
|
+
"templateId": "fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devnet": {
|
|
3
|
-
"reportsFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"reportsFactoryContractId": "008d81e7b1de86c135e85cc161c48e916cda9ef3141f644c18ef72a056981eda42ca111220a508df256d223113ddc1ab8b63ef150d04e21e8346b7d131d6911ef53651c247",
|
|
4
|
+
"templateId": "744f6cb0a2d757aeb9bd39eef5856d8673a73a68aad0313018a9d521c88bc662:Fairmint.OpenCapTableReports.ReportsFactory:ReportsFactory"
|
|
5
5
|
},
|
|
6
6
|
"mainnet": {
|
|
7
|
-
"reportsFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"reportsFactoryContractId": "006779dc6d8c19b65d36d8eaaa64f136680e5c90f453fd5d499386a6eb36231a8aca11122011e613ef09bfa6440b56bb9ecd7beaee48f371bfe2d1ae09917d9328771c9f80",
|
|
8
|
+
"templateId": "744f6cb0a2d757aeb9bd39eef5856d8673a73a68aad0313018a9d521c88bc662:Fairmint.OpenCapTableReports.ReportsFactory:ReportsFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -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-v18:Fairmint.OpenCapTable.Document:Document'> &
|
|
34
34
|
damlTypes.ToInterface<Document, never> &
|
|
35
35
|
DocumentInterface;
|
|
36
36
|
|
|
@@ -121,11 +121,12 @@ export declare const OcfObjectReference:
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
export declare type OcfDocument = {
|
|
124
|
+
ocf_id: string;
|
|
124
125
|
path: damlTypes.Optional<string>;
|
|
125
126
|
uri: damlTypes.Optional<string>;
|
|
126
127
|
md5: string;
|
|
127
|
-
related_objects:
|
|
128
|
-
comments:
|
|
128
|
+
related_objects: OcfObjectReference[];
|
|
129
|
+
comments: string[];
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
export declare const OcfDocument:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Document = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -144,14 +144,15 @@ exports.OcfObjectReference = {
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
exports.OcfDocument = {
|
|
147
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({path: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), uri: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), md5: damlTypes.Text.decoder, related_objects:
|
|
147
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, path: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), uri: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), md5: damlTypes.Text.decoder, related_objects: damlTypes.List(exports.OcfObjectReference).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
148
148
|
encode: function (__typed__) {
|
|
149
149
|
return {
|
|
150
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
150
151
|
path: damlTypes.Optional(damlTypes.Text).encode(__typed__.path),
|
|
151
152
|
uri: damlTypes.Optional(damlTypes.Text).encode(__typed__.uri),
|
|
152
153
|
md5: damlTypes.Text.encode(__typed__.md5),
|
|
153
|
-
related_objects: damlTypes.
|
|
154
|
-
comments: damlTypes.
|
|
154
|
+
related_objects: damlTypes.List(exports.OcfObjectReference).encode(__typed__.related_objects),
|
|
155
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
158
|
,
|
|
@@ -17,11 +17,11 @@ import * as Fairmint_OpenCapTable_StockPlan from '../../../Fairmint/OpenCapTable
|
|
|
17
17
|
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
18
18
|
import * as Fairmint_OpenCapTable_VestingTerms from '../../../Fairmint/OpenCapTable/VestingTerms/module';
|
|
19
19
|
|
|
20
|
-
export declare type
|
|
20
|
+
export declare type ArchiveByIssuer = {
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
export declare const
|
|
24
|
-
damlTypes.Serializable<
|
|
23
|
+
export declare const ArchiveByIssuer:
|
|
24
|
+
damlTypes.Serializable<ArchiveByIssuer> & {
|
|
25
25
|
}
|
|
26
26
|
;
|
|
27
27
|
|
|
@@ -99,10 +99,10 @@ export declare interface IssuerInterface {
|
|
|
99
99
|
CreateVestingTerms: damlTypes.Choice<Issuer, CreateVestingTerms, damlTypes.ContractId<Fairmint_OpenCapTable_VestingTerms.VestingTerms>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
100
100
|
CreateDocument: damlTypes.Choice<Issuer, CreateDocument, damlTypes.ContractId<Fairmint_OpenCapTable_Document.Document>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
101
101
|
Archive: damlTypes.Choice<Issuer, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
102
|
-
|
|
102
|
+
ArchiveByIssuer: damlTypes.Choice<Issuer, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
103
103
|
}
|
|
104
104
|
export declare const Issuer:
|
|
105
|
-
damlTypes.Template<Issuer, undefined, '#OpenCapTable-
|
|
105
|
+
damlTypes.Template<Issuer, undefined, '#OpenCapTable-v18:Fairmint.OpenCapTable.Issuer:Issuer'> &
|
|
106
106
|
damlTypes.ToInterface<Issuer, never> &
|
|
107
107
|
IssuerInterface;
|
|
108
108
|
|
|
@@ -139,18 +139,19 @@ export declare const OcfAuthorizedShares:
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
export declare type OcfIssuerData = {
|
|
142
|
+
ocf_id: string;
|
|
142
143
|
legal_name: string;
|
|
143
144
|
formation_date: damlTypes.Optional<damlTypes.Time>;
|
|
144
145
|
country_of_formation: string;
|
|
145
146
|
dba: damlTypes.Optional<string>;
|
|
146
147
|
country_subdivision_of_formation: damlTypes.Optional<string>;
|
|
147
148
|
country_subdivision_name_of_formation: damlTypes.Optional<string>;
|
|
148
|
-
tax_ids:
|
|
149
|
+
tax_ids: Fairmint_OpenCapTable_Types.OcfTaxID[];
|
|
149
150
|
email: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfEmail>;
|
|
150
151
|
phone: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfPhone>;
|
|
151
152
|
address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
|
|
152
153
|
initial_shares_authorized: damlTypes.Optional<OcfInitialSharesAuthorized>;
|
|
153
|
-
comments:
|
|
154
|
+
comments: string[];
|
|
154
155
|
};
|
|
155
156
|
|
|
156
157
|
export declare const OcfIssuerData:
|
|
@@ -23,7 +23,7 @@ var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/
|
|
|
23
23
|
var Fairmint_OpenCapTable_VestingTerms = require('../../../Fairmint/OpenCapTable/VestingTerms/module');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.
|
|
26
|
+
exports.ArchiveByIssuer = {
|
|
27
27
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
28
28
|
encode: function (__typed__) {
|
|
29
29
|
return {
|
|
@@ -108,7 +108,7 @@ exports.CreateStockClass = {
|
|
|
108
108
|
|
|
109
109
|
exports.Issuer = damlTypes.assembleTemplate(
|
|
110
110
|
{
|
|
111
|
-
templateId: '#OpenCapTable-
|
|
111
|
+
templateId: '#OpenCapTable-v18:Fairmint.OpenCapTable.Issuer:Issuer',
|
|
112
112
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
113
113
|
keyEncode: function () { throw 'EncodeError'; },
|
|
114
114
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuer_data: exports.OcfIssuerData.decoder, }); }),
|
|
@@ -175,11 +175,11 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
175
175
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
176
176
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
177
177
|
},
|
|
178
|
-
|
|
178
|
+
ArchiveByIssuer: {
|
|
179
179
|
template: function () { return exports.Issuer; },
|
|
180
|
-
choiceName: '
|
|
181
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.
|
|
182
|
-
argumentEncode: function (__typed__) { return exports.
|
|
180
|
+
choiceName: 'ArchiveByIssuer',
|
|
181
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ArchiveByIssuer.decoder; }),
|
|
182
|
+
argumentEncode: function (__typed__) { return exports.ArchiveByIssuer.encode(__typed__); },
|
|
183
183
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
184
184
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
185
185
|
},
|
|
@@ -188,7 +188,7 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
188
188
|
);
|
|
189
189
|
|
|
190
190
|
|
|
191
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
191
|
+
damlTypes.registerTemplate(exports.Issuer, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
|
|
@@ -217,21 +217,22 @@ exports.OcfAuthorizedShares = {
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
exports.OcfIssuerData = {
|
|
220
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_name_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids:
|
|
220
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_name_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).decoder, email: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfPhone).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfAddress).decoder), initial_shares_authorized: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfInitialSharesAuthorized).decoder), comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
221
221
|
encode: function (__typed__) {
|
|
222
222
|
return {
|
|
223
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
223
224
|
legal_name: damlTypes.Text.encode(__typed__.legal_name),
|
|
224
225
|
formation_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.formation_date),
|
|
225
226
|
country_of_formation: damlTypes.Text.encode(__typed__.country_of_formation),
|
|
226
227
|
dba: damlTypes.Optional(damlTypes.Text).encode(__typed__.dba),
|
|
227
228
|
country_subdivision_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_of_formation),
|
|
228
229
|
country_subdivision_name_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_name_of_formation),
|
|
229
|
-
tax_ids: damlTypes.
|
|
230
|
+
tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).encode(__typed__.tax_ids),
|
|
230
231
|
email: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfEmail).encode(__typed__.email),
|
|
231
232
|
phone: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfPhone).encode(__typed__.phone),
|
|
232
233
|
address: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfAddress).encode(__typed__.address),
|
|
233
234
|
initial_shares_authorized: damlTypes.Optional(exports.OcfInitialSharesAuthorized).encode(__typed__.initial_shares_authorized),
|
|
234
|
-
comments: damlTypes.
|
|
235
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
238
|
,
|
|
@@ -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-v18: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-v18: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, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
86
86
|
|
|
@@ -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-v18: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-v18: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, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
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-v18:Fairmint.OpenCapTable.Stakeholder:Stakeholder'> &
|
|
34
34
|
damlTypes.ToInterface<Stakeholder, never> &
|
|
35
35
|
StakeholderInterface;
|
|
36
36
|
|
|
@@ -75,9 +75,8 @@ export declare const OcfStakeholderType:
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
export declare type OcfContactInfoWithoutName = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
|
|
78
|
+
phone_numbers: Fairmint_OpenCapTable_Types.OcfPhone[];
|
|
79
|
+
emails: Fairmint_OpenCapTable_Types.OcfEmail[];
|
|
81
80
|
};
|
|
82
81
|
|
|
83
82
|
export declare const OcfContactInfoWithoutName:
|
|
@@ -87,10 +86,9 @@ export declare const OcfContactInfoWithoutName:
|
|
|
87
86
|
|
|
88
87
|
|
|
89
88
|
export declare type OcfContactInfo = {
|
|
90
|
-
name:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
|
|
89
|
+
name: OcfName;
|
|
90
|
+
phone_numbers: Fairmint_OpenCapTable_Types.OcfPhone[];
|
|
91
|
+
emails: Fairmint_OpenCapTable_Types.OcfEmail[];
|
|
94
92
|
};
|
|
95
93
|
|
|
96
94
|
export declare const OcfContactInfo:
|
|
@@ -99,17 +97,30 @@ export declare const OcfContactInfo:
|
|
|
99
97
|
;
|
|
100
98
|
|
|
101
99
|
|
|
100
|
+
export declare type OcfName = {
|
|
101
|
+
legal_name: string;
|
|
102
|
+
first_name: damlTypes.Optional<string>;
|
|
103
|
+
last_name: damlTypes.Optional<string>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export declare const OcfName:
|
|
107
|
+
damlTypes.Serializable<OcfName> & {
|
|
108
|
+
}
|
|
109
|
+
;
|
|
110
|
+
|
|
111
|
+
|
|
102
112
|
export declare type OcfStakeholderData = {
|
|
103
|
-
|
|
113
|
+
ocf_id: string;
|
|
114
|
+
name: OcfName;
|
|
104
115
|
stakeholder_type: OcfStakeholderType;
|
|
105
116
|
issuer_assigned_id: damlTypes.Optional<string>;
|
|
106
|
-
current_relationships:
|
|
117
|
+
current_relationships: Fairmint_OpenCapTable_Types.OcfStakeholderRelationshipType[];
|
|
107
118
|
current_status: damlTypes.Optional<OcfStakeholderStatusType>;
|
|
108
119
|
primary_contact: damlTypes.Optional<OcfContactInfo>;
|
|
109
120
|
contact_info: damlTypes.Optional<OcfContactInfoWithoutName>;
|
|
110
121
|
addresses: Fairmint_OpenCapTable_Types.OcfAddress[];
|
|
111
122
|
tax_ids: Fairmint_OpenCapTable_Types.OcfTaxID[];
|
|
112
|
-
comments:
|
|
123
|
+
comments: string[];
|
|
113
124
|
};
|
|
114
125
|
|
|
115
126
|
export declare const OcfStakeholderData:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Stakeholder = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -94,12 +94,11 @@ exports.OcfStakeholderType = {
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
exports.OcfContactInfoWithoutName = {
|
|
97
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
97
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).decoder, emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).decoder, }); }),
|
|
98
98
|
encode: function (__typed__) {
|
|
99
99
|
return {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
address: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfAddress).encode(__typed__.address),
|
|
100
|
+
phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).encode(__typed__.phone_numbers),
|
|
101
|
+
emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).encode(__typed__.emails),
|
|
103
102
|
};
|
|
104
103
|
}
|
|
105
104
|
,
|
|
@@ -108,13 +107,26 @@ exports.OcfContactInfoWithoutName = {
|
|
|
108
107
|
|
|
109
108
|
|
|
110
109
|
exports.OcfContactInfo = {
|
|
111
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name:
|
|
110
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: exports.OcfName.decoder, phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).decoder, emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).decoder, }); }),
|
|
112
111
|
encode: function (__typed__) {
|
|
113
112
|
return {
|
|
114
|
-
name:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
name: exports.OcfName.encode(__typed__.name),
|
|
114
|
+
phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).encode(__typed__.phone_numbers),
|
|
115
|
+
emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).encode(__typed__.emails),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
,
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
exports.OcfName = {
|
|
124
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, first_name: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), last_name: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
125
|
+
encode: function (__typed__) {
|
|
126
|
+
return {
|
|
127
|
+
legal_name: damlTypes.Text.encode(__typed__.legal_name),
|
|
128
|
+
first_name: damlTypes.Optional(damlTypes.Text).encode(__typed__.first_name),
|
|
129
|
+
last_name: damlTypes.Optional(damlTypes.Text).encode(__typed__.last_name),
|
|
118
130
|
};
|
|
119
131
|
}
|
|
120
132
|
,
|
|
@@ -123,19 +135,20 @@ exports.OcfContactInfo = {
|
|
|
123
135
|
|
|
124
136
|
|
|
125
137
|
exports.OcfStakeholderData = {
|
|
126
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
138
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, name: exports.OcfName.decoder, stakeholder_type: exports.OcfStakeholderType.decoder, issuer_assigned_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), current_relationships: damlTypes.List(Fairmint_OpenCapTable_Types.OcfStakeholderRelationshipType).decoder, current_status: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStakeholderStatusType).decoder), primary_contact: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfo).decoder), contact_info: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfoWithoutName).decoder), addresses: damlTypes.List(Fairmint_OpenCapTable_Types.OcfAddress).decoder, tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
127
139
|
encode: function (__typed__) {
|
|
128
140
|
return {
|
|
129
|
-
|
|
141
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
142
|
+
name: exports.OcfName.encode(__typed__.name),
|
|
130
143
|
stakeholder_type: exports.OcfStakeholderType.encode(__typed__.stakeholder_type),
|
|
131
144
|
issuer_assigned_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.issuer_assigned_id),
|
|
132
|
-
current_relationships: damlTypes.List(
|
|
145
|
+
current_relationships: damlTypes.List(Fairmint_OpenCapTable_Types.OcfStakeholderRelationshipType).encode(__typed__.current_relationships),
|
|
133
146
|
current_status: damlTypes.Optional(exports.OcfStakeholderStatusType).encode(__typed__.current_status),
|
|
134
147
|
primary_contact: damlTypes.Optional(exports.OcfContactInfo).encode(__typed__.primary_contact),
|
|
135
148
|
contact_info: damlTypes.Optional(exports.OcfContactInfoWithoutName).encode(__typed__.contact_info),
|
|
136
149
|
addresses: damlTypes.List(Fairmint_OpenCapTable_Types.OcfAddress).encode(__typed__.addresses),
|
|
137
150
|
tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).encode(__typed__.tax_ids),
|
|
138
|
-
comments: damlTypes.
|
|
151
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
139
152
|
};
|
|
140
153
|
}
|
|
141
154
|
,
|
|
@@ -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-v18:Fairmint.OpenCapTable.StockClass:StockClass'> &
|
|
34
34
|
damlTypes.ToInterface<StockClass, never> &
|
|
35
35
|
StockClassInterface;
|
|
36
36
|
|
|
@@ -50,7 +50,7 @@ export declare type OcfWarrantIssuanceData = {
|
|
|
50
50
|
exercise_triggers: OcfConversionTrigger[];
|
|
51
51
|
warrant_expiration_date: damlTypes.Optional<damlTypes.Time>;
|
|
52
52
|
vesting_terms_id: damlTypes.Optional<string>;
|
|
53
|
-
comments:
|
|
53
|
+
comments: string[];
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
export declare const OcfWarrantIssuanceData:
|
|
@@ -89,7 +89,7 @@ export declare type OcfConvertibleIssuanceData = {
|
|
|
89
89
|
conversion_triggers: OcfConversionTrigger[];
|
|
90
90
|
seniority: damlTypes.Int;
|
|
91
91
|
pro_rata: damlTypes.Optional<damlTypes.Numeric>;
|
|
92
|
-
comments:
|
|
92
|
+
comments: string[];
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
export declare const OcfConvertibleIssuanceData:
|
|
@@ -169,6 +169,7 @@ export declare const OcfStockClassType:
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
export declare type OcfStockClassData = {
|
|
172
|
+
ocf_id: string;
|
|
172
173
|
name: string;
|
|
173
174
|
class_type: OcfStockClassType;
|
|
174
175
|
default_id_prefix: string;
|
|
@@ -182,7 +183,7 @@ export declare type OcfStockClassData = {
|
|
|
182
183
|
liquidation_preference_multiple: damlTypes.Optional<damlTypes.Numeric>;
|
|
183
184
|
participation_cap_multiple: damlTypes.Optional<damlTypes.Numeric>;
|
|
184
185
|
conversion_rights: OcfStockClassConversionRight[];
|
|
185
|
-
comments:
|
|
186
|
+
comments: string[];
|
|
186
187
|
};
|
|
187
188
|
|
|
188
189
|
export declare const OcfStockClassData:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockClass = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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,12 +62,12 @@ exports.StockClass = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockClass, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockClass, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
exports.OcfWarrantIssuanceData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({quantity: damlTypes.Numeric(10).decoder, exercise_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, purchase_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, exercise_triggers: damlTypes.List(exports.OcfConversionTrigger).decoder, warrant_expiration_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), vesting_terms_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), comments:
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({quantity: damlTypes.Numeric(10).decoder, exercise_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, purchase_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, exercise_triggers: damlTypes.List(exports.OcfConversionTrigger).decoder, warrant_expiration_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), vesting_terms_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
71
71
|
encode: function (__typed__) {
|
|
72
72
|
return {
|
|
73
73
|
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
@@ -76,7 +76,7 @@ exports.OcfWarrantIssuanceData = {
|
|
|
76
76
|
exercise_triggers: damlTypes.List(exports.OcfConversionTrigger).encode(__typed__.exercise_triggers),
|
|
77
77
|
warrant_expiration_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.warrant_expiration_date),
|
|
78
78
|
vesting_terms_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.vesting_terms_id),
|
|
79
|
-
comments: damlTypes.
|
|
79
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
,
|
|
@@ -109,7 +109,7 @@ exports.OcfConvertibleType = {
|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
exports.OcfConvertibleIssuanceData = {
|
|
112
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, convertible_type: exports.OcfConvertibleType.decoder, conversion_triggers: damlTypes.List(exports.OcfConversionTrigger).decoder, seniority: damlTypes.Int.decoder, pro_rata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), comments:
|
|
112
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, convertible_type: exports.OcfConvertibleType.decoder, conversion_triggers: damlTypes.List(exports.OcfConversionTrigger).decoder, seniority: damlTypes.Int.decoder, pro_rata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
113
113
|
encode: function (__typed__) {
|
|
114
114
|
return {
|
|
115
115
|
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.investment_amount),
|
|
@@ -117,7 +117,7 @@ exports.OcfConvertibleIssuanceData = {
|
|
|
117
117
|
conversion_triggers: damlTypes.List(exports.OcfConversionTrigger).encode(__typed__.conversion_triggers),
|
|
118
118
|
seniority: damlTypes.Int.encode(__typed__.seniority),
|
|
119
119
|
pro_rata: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.pro_rata),
|
|
120
|
-
comments: damlTypes.
|
|
120
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
,
|
|
@@ -192,9 +192,10 @@ exports.OcfStockClassType = {
|
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
exports.OcfStockClassData = {
|
|
195
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, class_type: exports.OcfStockClassType.decoder, default_id_prefix: damlTypes.Text.decoder, initial_shares_authorized: damlTypes.Numeric(10).decoder, votes_per_share: damlTypes.Numeric(10).decoder, seniority: damlTypes.Numeric(10).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), par_value: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), liquidation_preference_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), participation_cap_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_rights: damlTypes.List(exports.OcfStockClassConversionRight).decoder, comments:
|
|
195
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, name: damlTypes.Text.decoder, class_type: exports.OcfStockClassType.decoder, default_id_prefix: damlTypes.Text.decoder, initial_shares_authorized: damlTypes.Numeric(10).decoder, votes_per_share: damlTypes.Numeric(10).decoder, seniority: damlTypes.Numeric(10).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), par_value: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), liquidation_preference_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), participation_cap_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_rights: damlTypes.List(exports.OcfStockClassConversionRight).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
196
196
|
encode: function (__typed__) {
|
|
197
197
|
return {
|
|
198
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
198
199
|
name: damlTypes.Text.encode(__typed__.name),
|
|
199
200
|
class_type: exports.OcfStockClassType.encode(__typed__.class_type),
|
|
200
201
|
default_id_prefix: damlTypes.Text.encode(__typed__.default_id_prefix),
|
|
@@ -208,7 +209,7 @@ exports.OcfStockClassData = {
|
|
|
208
209
|
liquidation_preference_multiple: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.liquidation_preference_multiple),
|
|
209
210
|
participation_cap_multiple: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.participation_cap_multiple),
|
|
210
211
|
conversion_rights: damlTypes.List(exports.OcfStockClassConversionRight).encode(__typed__.conversion_rights),
|
|
211
|
-
comments: damlTypes.
|
|
212
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
212
213
|
};
|
|
213
214
|
}
|
|
214
215
|
,
|
|
@@ -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-v18:Fairmint.OpenCapTable.StockLegendTemplate:StockLegendTemplate'> &
|
|
34
34
|
damlTypes.ToInterface<StockLegendTemplate, never> &
|
|
35
35
|
StockLegendTemplateInterface;
|
|
36
36
|
|
|
@@ -44,9 +44,10 @@ export declare namespace StockLegendTemplate {
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
export declare type OcfStockLegendTemplateData = {
|
|
47
|
+
ocf_id: string;
|
|
47
48
|
name: string;
|
|
48
49
|
text: string;
|
|
49
|
-
comments:
|
|
50
|
+
comments: string[];
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
export declare const OcfStockLegendTemplateData:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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,17 +62,18 @@ exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockLegendTemplate, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockLegendTemplate, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
exports.OcfStockLegendTemplateData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, name: damlTypes.Text.decoder, text: damlTypes.Text.decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
71
71
|
encode: function (__typed__) {
|
|
72
72
|
return {
|
|
73
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
73
74
|
name: damlTypes.Text.encode(__typed__.name),
|
|
74
75
|
text: damlTypes.Text.encode(__typed__.text),
|
|
75
|
-
comments: damlTypes.
|
|
76
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
,
|
|
@@ -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-v18:Fairmint.OpenCapTable.StockPlan:StockPlan'> &
|
|
34
34
|
damlTypes.ToInterface<StockPlan, never> &
|
|
35
35
|
StockPlanInterface;
|
|
36
36
|
|
|
@@ -44,12 +44,14 @@ export declare namespace StockPlan {
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
export declare type OcfStockPlanData = {
|
|
47
|
+
ocf_id: string;
|
|
47
48
|
plan_name: string;
|
|
48
49
|
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
49
50
|
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
50
51
|
initial_shares_reserved: damlTypes.Numeric;
|
|
51
52
|
default_cancellation_behavior: damlTypes.Optional<OcfStockPlanCancellationBehaviorType>;
|
|
52
|
-
|
|
53
|
+
stock_class_ids: string[];
|
|
54
|
+
comments: string[];
|
|
53
55
|
};
|
|
54
56
|
|
|
55
57
|
export declare const OcfStockPlanData:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockPlan = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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,20 +62,22 @@ exports.StockPlan = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockPlan, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockPlan, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
exports.OcfStockPlanData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({plan_name: 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), initial_shares_reserved: damlTypes.Numeric(10).decoder, default_cancellation_behavior: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStockPlanCancellationBehaviorType).decoder),
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, plan_name: 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), initial_shares_reserved: damlTypes.Numeric(10).decoder, default_cancellation_behavior: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStockPlanCancellationBehaviorType).decoder), stock_class_ids: damlTypes.List(damlTypes.Text).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
71
71
|
encode: function (__typed__) {
|
|
72
72
|
return {
|
|
73
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
73
74
|
plan_name: damlTypes.Text.encode(__typed__.plan_name),
|
|
74
75
|
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
75
76
|
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
76
77
|
initial_shares_reserved: damlTypes.Numeric(10).encode(__typed__.initial_shares_reserved),
|
|
77
78
|
default_cancellation_behavior: damlTypes.Optional(exports.OcfStockPlanCancellationBehaviorType).encode(__typed__.default_cancellation_behavior),
|
|
78
|
-
|
|
79
|
+
stock_class_ids: damlTypes.List(damlTypes.Text).encode(__typed__.stock_class_ids),
|
|
80
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
79
81
|
};
|
|
80
82
|
}
|
|
81
83
|
,
|
|
@@ -118,10 +118,10 @@ export declare type OcfEquityCompensationIssuanceData = {
|
|
|
118
118
|
exercise_price: damlTypes.Optional<OcfMonetary>;
|
|
119
119
|
base_price: damlTypes.Optional<OcfMonetary>;
|
|
120
120
|
early_exercisable: damlTypes.Optional<boolean>;
|
|
121
|
-
vestings:
|
|
121
|
+
vestings: OcfVesting[];
|
|
122
122
|
expiration_date: damlTypes.Optional<damlTypes.Time>;
|
|
123
123
|
termination_exercise_windows: OcfTerminationWindow[];
|
|
124
|
-
comments:
|
|
124
|
+
comments: string[];
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
export declare const OcfEquityCompensationIssuanceData:
|
|
@@ -131,7 +131,7 @@ exports.Context = {
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
exports.OcfEquityCompensationIssuanceData = {
|
|
134
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({compensation_type: exports.OcfCompensationType.decoder, quantity: damlTypes.Numeric(10).decoder, exercise_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), base_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), early_exercisable: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), vestings:
|
|
134
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({compensation_type: exports.OcfCompensationType.decoder, quantity: damlTypes.Numeric(10).decoder, exercise_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), base_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), early_exercisable: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), vestings: damlTypes.List(exports.OcfVesting).decoder, expiration_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), termination_exercise_windows: damlTypes.List(exports.OcfTerminationWindow).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
135
135
|
encode: function (__typed__) {
|
|
136
136
|
return {
|
|
137
137
|
compensation_type: exports.OcfCompensationType.encode(__typed__.compensation_type),
|
|
@@ -139,10 +139,10 @@ exports.OcfEquityCompensationIssuanceData = {
|
|
|
139
139
|
exercise_price: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.exercise_price),
|
|
140
140
|
base_price: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.base_price),
|
|
141
141
|
early_exercisable: damlTypes.Optional(damlTypes.Bool).encode(__typed__.early_exercisable),
|
|
142
|
-
vestings: damlTypes.
|
|
142
|
+
vestings: damlTypes.List(exports.OcfVesting).encode(__typed__.vestings),
|
|
143
143
|
expiration_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.expiration_date),
|
|
144
144
|
termination_exercise_windows: damlTypes.List(exports.OcfTerminationWindow).encode(__typed__.termination_exercise_windows),
|
|
145
|
-
comments: damlTypes.
|
|
145
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
,
|
|
@@ -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-v18:Fairmint.OpenCapTable.Valuation:Valuation'> &
|
|
34
34
|
damlTypes.ToInterface<Valuation, never> &
|
|
35
35
|
ValuationInterface;
|
|
36
36
|
|
|
@@ -44,13 +44,15 @@ export declare namespace Valuation {
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
export declare type OcfValuationData = {
|
|
47
|
+
ocf_id: string;
|
|
47
48
|
provider: damlTypes.Optional<string>;
|
|
48
49
|
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
49
50
|
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
50
|
-
comments:
|
|
51
|
+
comments: string[];
|
|
51
52
|
price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
52
53
|
effective_date: damlTypes.Time;
|
|
53
54
|
valuation_type: OcfValuationType;
|
|
55
|
+
stock_class_id: string;
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
export declare const OcfValuationData:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Valuation = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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,21 +62,23 @@ exports.Valuation = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Valuation, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Valuation, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
exports.OcfValuationData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({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:
|
|
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
71
|
encode: function (__typed__) {
|
|
72
72
|
return {
|
|
73
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
73
74
|
provider: damlTypes.Optional(damlTypes.Text).encode(__typed__.provider),
|
|
74
75
|
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
75
76
|
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
76
|
-
comments: damlTypes.
|
|
77
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
77
78
|
price_per_share: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.price_per_share),
|
|
78
79
|
effective_date: damlTypes.Time.encode(__typed__.effective_date),
|
|
79
80
|
valuation_type: exports.OcfValuationType.encode(__typed__.valuation_type),
|
|
81
|
+
stock_class_id: damlTypes.Text.encode(__typed__.stock_class_id),
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
84
|
,
|
|
@@ -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-v18:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
34
34
|
damlTypes.ToInterface<VestingTerms, never> &
|
|
35
35
|
VestingTermsInterface;
|
|
36
36
|
|
|
@@ -44,11 +44,12 @@ export declare namespace VestingTerms {
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
export declare type OcfVestingTermsData = {
|
|
47
|
+
ocf_id: string;
|
|
47
48
|
name: string;
|
|
48
49
|
description: string;
|
|
49
50
|
allocation_type: OcfAllocationType;
|
|
50
51
|
vesting_conditions: OcfVestingCondition[];
|
|
51
|
-
comments:
|
|
52
|
+
comments: string[];
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
export declare const OcfVestingTermsData:
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v18: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,19 +62,20 @@ exports.VestingTerms = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.VestingTerms, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['fe57c7b013011dcb684df105d6e46b6ec8b7bc50989677b04af97a275d9750d1', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
exports.OcfVestingTermsData = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, description: damlTypes.Text.decoder, allocation_type: exports.OcfAllocationType.decoder, vesting_conditions: damlTypes.List(exports.OcfVestingCondition).decoder, comments:
|
|
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
71
|
encode: function (__typed__) {
|
|
72
72
|
return {
|
|
73
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
73
74
|
name: damlTypes.Text.encode(__typed__.name),
|
|
74
75
|
description: damlTypes.Text.encode(__typed__.description),
|
|
75
76
|
allocation_type: exports.OcfAllocationType.encode(__typed__.allocation_type),
|
|
76
77
|
vesting_conditions: damlTypes.List(exports.OcfVestingCondition).encode(__typed__.vesting_conditions),
|
|
77
|
-
comments: damlTypes.
|
|
78
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
,
|
|
@@ -86,5 +86,5 @@ exports.CompanyValuationReport = damlTypes.assembleTemplate(
|
|
|
86
86
|
);
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
damlTypes.registerTemplate(exports.CompanyValuationReport, ['
|
|
89
|
+
damlTypes.registerTemplate(exports.CompanyValuationReport, ['744f6cb0a2d757aeb9bd39eef5856d8673a73a68aad0313018a9d521c88bc662', '#OpenCapTableReports-v01']);
|
|
90
90
|
|
|
@@ -66,5 +66,5 @@ exports.ReportsFactory = damlTypes.assembleTemplate(
|
|
|
66
66
|
);
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
damlTypes.registerTemplate(exports.ReportsFactory, ['
|
|
69
|
+
damlTypes.registerTemplate(exports.ReportsFactory, ['744f6cb0a2d757aeb9bd39eef5856d8673a73a68aad0313018a9d521c88bc662', '#OpenCapTableReports-v01']);
|
|
70
70
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings",
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
7
7
|
"exports": {
|
|
@@ -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-v18 && 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",
|