@fairmint/open-captable-protocol-daml-js 0.2.1 → 0.2.3
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 +20 -7
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +32 -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 +3 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +5 -4
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +5 -4
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +9 -8
- package/lib/Fairmint/OpenCapTable/StockIssuance/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/StockIssuance/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.d.ts +96 -0
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +120 -0
- 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/OpenCapTable/index.d.ts +2 -0
- package/lib/Fairmint/OpenCapTable/index.js +2 -0
- package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +1 -1
- package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "0084786bdbbf12ce9078484f1edf7bb899721f45873d31a17c59fb375015785f38ca111220e28f487434cc466705e1703f15d34285c68e2e60fe884366ab552f57573e2d5b",
|
|
4
|
+
"templateId": "56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "00c0286f109f7743e7e118855f68fe916c7cb4685aca96614c2c5de1587c9d91ffca11122023d311104349417d5043f7b82f42883b95a94c0485af46b89876d91513739f2b",
|
|
8
|
+
"templateId": "56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427: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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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
|
,
|
|
@@ -12,16 +12,27 @@ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
|
|
|
12
12
|
import * as Fairmint_OpenCapTable_Document from '../../../Fairmint/OpenCapTable/Document/module';
|
|
13
13
|
import * as Fairmint_OpenCapTable_Stakeholder from '../../../Fairmint/OpenCapTable/Stakeholder/module';
|
|
14
14
|
import * as Fairmint_OpenCapTable_StockClass from '../../../Fairmint/OpenCapTable/StockClass/module';
|
|
15
|
+
import * as Fairmint_OpenCapTable_StockIssuance from '../../../Fairmint/OpenCapTable/StockIssuance/module';
|
|
15
16
|
import * as Fairmint_OpenCapTable_StockLegendTemplate from '../../../Fairmint/OpenCapTable/StockLegendTemplate/module';
|
|
16
17
|
import * as Fairmint_OpenCapTable_StockPlan from '../../../Fairmint/OpenCapTable/StockPlan/module';
|
|
17
18
|
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
18
19
|
import * as Fairmint_OpenCapTable_VestingTerms from '../../../Fairmint/OpenCapTable/VestingTerms/module';
|
|
19
20
|
|
|
20
|
-
export declare type
|
|
21
|
+
export declare type ArchiveByIssuer = {
|
|
21
22
|
};
|
|
22
23
|
|
|
23
|
-
export declare const
|
|
24
|
-
damlTypes.Serializable<
|
|
24
|
+
export declare const ArchiveByIssuer:
|
|
25
|
+
damlTypes.Serializable<ArchiveByIssuer> & {
|
|
26
|
+
}
|
|
27
|
+
;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export declare type CreateStockIssuance = {
|
|
31
|
+
issuance_data: Fairmint_OpenCapTable_StockIssuance.OcfStockIssuanceData;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const CreateStockIssuance:
|
|
35
|
+
damlTypes.Serializable<CreateStockIssuance> & {
|
|
25
36
|
}
|
|
26
37
|
;
|
|
27
38
|
|
|
@@ -98,11 +109,12 @@ export declare interface IssuerInterface {
|
|
|
98
109
|
CreateStockPlan: damlTypes.Choice<Issuer, CreateStockPlan, damlTypes.ContractId<Fairmint_OpenCapTable_StockPlan.StockPlan>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
99
110
|
CreateVestingTerms: damlTypes.Choice<Issuer, CreateVestingTerms, damlTypes.ContractId<Fairmint_OpenCapTable_VestingTerms.VestingTerms>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
100
111
|
CreateDocument: damlTypes.Choice<Issuer, CreateDocument, damlTypes.ContractId<Fairmint_OpenCapTable_Document.Document>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
112
|
+
CreateStockIssuance: damlTypes.Choice<Issuer, CreateStockIssuance, damlTypes.ContractId<Fairmint_OpenCapTable_StockIssuance.StockIssuance>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
101
113
|
Archive: damlTypes.Choice<Issuer, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
102
|
-
|
|
114
|
+
ArchiveByIssuer: damlTypes.Choice<Issuer, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
103
115
|
}
|
|
104
116
|
export declare const Issuer:
|
|
105
|
-
damlTypes.Template<Issuer, undefined, '#OpenCapTable-
|
|
117
|
+
damlTypes.Template<Issuer, undefined, '#OpenCapTable-v18:Fairmint.OpenCapTable.Issuer:Issuer'> &
|
|
106
118
|
damlTypes.ToInterface<Issuer, never> &
|
|
107
119
|
IssuerInterface;
|
|
108
120
|
|
|
@@ -139,18 +151,19 @@ export declare const OcfAuthorizedShares:
|
|
|
139
151
|
|
|
140
152
|
|
|
141
153
|
export declare type OcfIssuerData = {
|
|
154
|
+
ocf_id: string;
|
|
142
155
|
legal_name: string;
|
|
143
156
|
formation_date: damlTypes.Optional<damlTypes.Time>;
|
|
144
157
|
country_of_formation: string;
|
|
145
158
|
dba: damlTypes.Optional<string>;
|
|
146
159
|
country_subdivision_of_formation: damlTypes.Optional<string>;
|
|
147
160
|
country_subdivision_name_of_formation: damlTypes.Optional<string>;
|
|
148
|
-
tax_ids:
|
|
161
|
+
tax_ids: Fairmint_OpenCapTable_Types.OcfTaxID[];
|
|
149
162
|
email: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfEmail>;
|
|
150
163
|
phone: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfPhone>;
|
|
151
164
|
address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
|
|
152
165
|
initial_shares_authorized: damlTypes.Optional<OcfInitialSharesAuthorized>;
|
|
153
|
-
comments:
|
|
166
|
+
comments: string[];
|
|
154
167
|
};
|
|
155
168
|
|
|
156
169
|
export declare const OcfIssuerData:
|
|
@@ -17,13 +17,14 @@ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requir
|
|
|
17
17
|
var Fairmint_OpenCapTable_Document = require('../../../Fairmint/OpenCapTable/Document/module');
|
|
18
18
|
var Fairmint_OpenCapTable_Stakeholder = require('../../../Fairmint/OpenCapTable/Stakeholder/module');
|
|
19
19
|
var Fairmint_OpenCapTable_StockClass = require('../../../Fairmint/OpenCapTable/StockClass/module');
|
|
20
|
+
var Fairmint_OpenCapTable_StockIssuance = require('../../../Fairmint/OpenCapTable/StockIssuance/module');
|
|
20
21
|
var Fairmint_OpenCapTable_StockLegendTemplate = require('../../../Fairmint/OpenCapTable/StockLegendTemplate/module');
|
|
21
22
|
var Fairmint_OpenCapTable_StockPlan = require('../../../Fairmint/OpenCapTable/StockPlan/module');
|
|
22
23
|
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
23
24
|
var Fairmint_OpenCapTable_VestingTerms = require('../../../Fairmint/OpenCapTable/VestingTerms/module');
|
|
24
25
|
|
|
25
26
|
|
|
26
|
-
exports.
|
|
27
|
+
exports.ArchiveByIssuer = {
|
|
27
28
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
28
29
|
encode: function (__typed__) {
|
|
29
30
|
return {
|
|
@@ -34,6 +35,18 @@ exports.ArchiveIssuer = {
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
|
|
38
|
+
exports.CreateStockIssuance = {
|
|
39
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuance_data: Fairmint_OpenCapTable_StockIssuance.OcfStockIssuanceData.decoder, }); }),
|
|
40
|
+
encode: function (__typed__) {
|
|
41
|
+
return {
|
|
42
|
+
issuance_data: Fairmint_OpenCapTable_StockIssuance.OcfStockIssuanceData.encode(__typed__.issuance_data),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
37
50
|
exports.CreateDocument = {
|
|
38
51
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({document_data: Fairmint_OpenCapTable_Document.OcfDocument.decoder, }); }),
|
|
39
52
|
encode: function (__typed__) {
|
|
@@ -108,7 +121,7 @@ exports.CreateStockClass = {
|
|
|
108
121
|
|
|
109
122
|
exports.Issuer = damlTypes.assembleTemplate(
|
|
110
123
|
{
|
|
111
|
-
templateId: '#OpenCapTable-
|
|
124
|
+
templateId: '#OpenCapTable-v18:Fairmint.OpenCapTable.Issuer:Issuer',
|
|
112
125
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
113
126
|
keyEncode: function () { throw 'EncodeError'; },
|
|
114
127
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuer_data: exports.OcfIssuerData.decoder, }); }),
|
|
@@ -167,6 +180,14 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
167
180
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(Fairmint_OpenCapTable_Document.Document).decoder; }),
|
|
168
181
|
resultEncode: function (__typed__) { return damlTypes.ContractId(Fairmint_OpenCapTable_Document.Document).encode(__typed__); },
|
|
169
182
|
},
|
|
183
|
+
CreateStockIssuance: {
|
|
184
|
+
template: function () { return exports.Issuer; },
|
|
185
|
+
choiceName: 'CreateStockIssuance',
|
|
186
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.CreateStockIssuance.decoder; }),
|
|
187
|
+
argumentEncode: function (__typed__) { return exports.CreateStockIssuance.encode(__typed__); },
|
|
188
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(Fairmint_OpenCapTable_StockIssuance.StockIssuance).decoder; }),
|
|
189
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(Fairmint_OpenCapTable_StockIssuance.StockIssuance).encode(__typed__); },
|
|
190
|
+
},
|
|
170
191
|
Archive: {
|
|
171
192
|
template: function () { return exports.Issuer; },
|
|
172
193
|
choiceName: 'Archive',
|
|
@@ -175,11 +196,11 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
175
196
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
176
197
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
177
198
|
},
|
|
178
|
-
|
|
199
|
+
ArchiveByIssuer: {
|
|
179
200
|
template: function () { return exports.Issuer; },
|
|
180
|
-
choiceName: '
|
|
181
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.
|
|
182
|
-
argumentEncode: function (__typed__) { return exports.
|
|
201
|
+
choiceName: 'ArchiveByIssuer',
|
|
202
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ArchiveByIssuer.decoder; }),
|
|
203
|
+
argumentEncode: function (__typed__) { return exports.ArchiveByIssuer.encode(__typed__); },
|
|
183
204
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
184
205
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
185
206
|
},
|
|
@@ -188,7 +209,7 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
188
209
|
);
|
|
189
210
|
|
|
190
211
|
|
|
191
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
212
|
+
damlTypes.registerTemplate(exports.Issuer, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#OpenCapTable-v18']);
|
|
192
213
|
|
|
193
214
|
|
|
194
215
|
|
|
@@ -217,21 +238,22 @@ exports.OcfAuthorizedShares = {
|
|
|
217
238
|
|
|
218
239
|
|
|
219
240
|
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:
|
|
241
|
+
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
242
|
encode: function (__typed__) {
|
|
222
243
|
return {
|
|
244
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
223
245
|
legal_name: damlTypes.Text.encode(__typed__.legal_name),
|
|
224
246
|
formation_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.formation_date),
|
|
225
247
|
country_of_formation: damlTypes.Text.encode(__typed__.country_of_formation),
|
|
226
248
|
dba: damlTypes.Optional(damlTypes.Text).encode(__typed__.dba),
|
|
227
249
|
country_subdivision_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_of_formation),
|
|
228
250
|
country_subdivision_name_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_name_of_formation),
|
|
229
|
-
tax_ids: damlTypes.
|
|
251
|
+
tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).encode(__typed__.tax_ids),
|
|
230
252
|
email: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfEmail).encode(__typed__.email),
|
|
231
253
|
phone: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfPhone).encode(__typed__.phone),
|
|
232
254
|
address: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfAddress).encode(__typed__.address),
|
|
233
255
|
initial_shares_authorized: damlTypes.Optional(exports.OcfInitialSharesAuthorized).encode(__typed__.initial_shares_authorized),
|
|
234
|
-
comments: damlTypes.
|
|
256
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
235
257
|
};
|
|
236
258
|
}
|
|
237
259
|
,
|
|
@@ -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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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
|
|
|
@@ -110,6 +110,7 @@ export declare const OcfName:
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
export declare type OcfStakeholderData = {
|
|
113
|
+
ocf_id: string;
|
|
113
114
|
name: OcfName;
|
|
114
115
|
stakeholder_type: OcfStakeholderType;
|
|
115
116
|
issuer_assigned_id: damlTypes.Optional<string>;
|
|
@@ -119,7 +120,7 @@ export declare type OcfStakeholderData = {
|
|
|
119
120
|
contact_info: damlTypes.Optional<OcfContactInfoWithoutName>;
|
|
120
121
|
addresses: Fairmint_OpenCapTable_Types.OcfAddress[];
|
|
121
122
|
tax_ids: Fairmint_OpenCapTable_Types.OcfTaxID[];
|
|
122
|
-
comments:
|
|
123
|
+
comments: string[];
|
|
123
124
|
};
|
|
124
125
|
|
|
125
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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -135,9 +135,10 @@ exports.OcfName = {
|
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
exports.OcfStakeholderData = {
|
|
138
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({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:
|
|
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, }); }),
|
|
139
139
|
encode: function (__typed__) {
|
|
140
140
|
return {
|
|
141
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
141
142
|
name: exports.OcfName.encode(__typed__.name),
|
|
142
143
|
stakeholder_type: exports.OcfStakeholderType.encode(__typed__.stakeholder_type),
|
|
143
144
|
issuer_assigned_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.issuer_assigned_id),
|
|
@@ -147,7 +148,7 @@ exports.OcfStakeholderData = {
|
|
|
147
148
|
contact_info: damlTypes.Optional(exports.OcfContactInfoWithoutName).encode(__typed__.contact_info),
|
|
148
149
|
addresses: damlTypes.List(Fairmint_OpenCapTable_Types.OcfAddress).encode(__typed__.addresses),
|
|
149
150
|
tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).encode(__typed__.tax_ids),
|
|
150
|
-
comments: damlTypes.
|
|
151
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
151
152
|
};
|
|
152
153
|
}
|
|
153
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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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
|
,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// Generated from Fairmint/OpenCapTable/StockIssuance.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
11
|
+
|
|
12
|
+
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
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 StockIssuance = {
|
|
24
|
+
context: Fairmint_OpenCapTable_Types.Context;
|
|
25
|
+
issuance_data: OcfStockIssuanceData;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare interface StockIssuanceInterface {
|
|
29
|
+
Archive: damlTypes.Choice<StockIssuance, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockIssuance, undefined>>;
|
|
30
|
+
ArchiveByIssuer: damlTypes.Choice<StockIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockIssuance, undefined>>;
|
|
31
|
+
}
|
|
32
|
+
export declare const StockIssuance:
|
|
33
|
+
damlTypes.Template<StockIssuance, undefined, '#OpenCapTable-v18:Fairmint.OpenCapTable.StockIssuance:StockIssuance'> &
|
|
34
|
+
damlTypes.ToInterface<StockIssuance, never> &
|
|
35
|
+
StockIssuanceInterface;
|
|
36
|
+
|
|
37
|
+
export declare namespace StockIssuance {
|
|
38
|
+
export type CreateEvent = damlLedger.CreateEvent<StockIssuance, undefined, typeof StockIssuance.templateId>
|
|
39
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<StockIssuance, typeof StockIssuance.templateId>
|
|
40
|
+
export type Event = damlLedger.Event<StockIssuance, undefined, typeof StockIssuance.templateId>
|
|
41
|
+
export type QueryResult = damlLedger.QueryResult<StockIssuance, undefined, typeof StockIssuance.templateId>
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
export declare type OcfStockIssuanceType =
|
|
47
|
+
| 'OcfStockIssuanceRSA'
|
|
48
|
+
| 'OcfStockIssuanceFounders'
|
|
49
|
+
;
|
|
50
|
+
|
|
51
|
+
export declare const OcfStockIssuanceType:
|
|
52
|
+
damlTypes.Serializable<OcfStockIssuanceType> & {
|
|
53
|
+
}
|
|
54
|
+
& { readonly keys: OcfStockIssuanceType[] } & { readonly [e in OcfStockIssuanceType]: e }
|
|
55
|
+
;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
export declare type OcfVestingSimple = {
|
|
59
|
+
date: damlTypes.Time;
|
|
60
|
+
amount: damlTypes.Numeric;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare const OcfVestingSimple:
|
|
64
|
+
damlTypes.Serializable<OcfVestingSimple> & {
|
|
65
|
+
}
|
|
66
|
+
;
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
export declare type OcfStockIssuanceData = {
|
|
70
|
+
ocf_id: string;
|
|
71
|
+
date: damlTypes.Time;
|
|
72
|
+
security_id: string;
|
|
73
|
+
custom_id: string;
|
|
74
|
+
stakeholder_id: string;
|
|
75
|
+
board_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
76
|
+
stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
|
|
77
|
+
consideration_text: damlTypes.Optional<string>;
|
|
78
|
+
security_law_exemptions: Fairmint_OpenCapTable_Types.OcfSecurityExemption[];
|
|
79
|
+
stock_class_id: string;
|
|
80
|
+
stock_plan_id: damlTypes.Optional<string>;
|
|
81
|
+
share_numbers_issued: Fairmint_OpenCapTable_Types.OcfShareNumberRange[];
|
|
82
|
+
share_price: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
83
|
+
quantity: damlTypes.Numeric;
|
|
84
|
+
vesting_terms_id: damlTypes.Optional<string>;
|
|
85
|
+
vestings: OcfVestingSimple[];
|
|
86
|
+
cost_basis: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
87
|
+
stock_legend_ids: string[];
|
|
88
|
+
issuance_type: damlTypes.Optional<OcfStockIssuanceType>;
|
|
89
|
+
comments: string[];
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export declare const OcfStockIssuanceData:
|
|
93
|
+
damlTypes.Serializable<OcfStockIssuanceData> & {
|
|
94
|
+
}
|
|
95
|
+
;
|
|
96
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
16
|
+
|
|
17
|
+
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
18
|
+
|
|
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.StockIssuance = damlTypes.assembleTemplate(
|
|
32
|
+
{
|
|
33
|
+
templateId: '#OpenCapTable-v18:Fairmint.OpenCapTable.StockIssuance:StockIssuance',
|
|
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, issuance_data: exports.OcfStockIssuanceData.decoder, }); }),
|
|
37
|
+
encode: function (__typed__) {
|
|
38
|
+
return {
|
|
39
|
+
context: Fairmint_OpenCapTable_Types.Context.encode(__typed__.context),
|
|
40
|
+
issuance_data: exports.OcfStockIssuanceData.encode(__typed__.issuance_data),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
,
|
|
44
|
+
Archive: {
|
|
45
|
+
template: function () { return exports.StockIssuance; },
|
|
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.StockIssuance; },
|
|
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.StockIssuance, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#OpenCapTable-v18']);
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
exports.OcfStockIssuanceType = {
|
|
70
|
+
OcfStockIssuanceRSA: 'OcfStockIssuanceRSA',
|
|
71
|
+
OcfStockIssuanceFounders: 'OcfStockIssuanceFounders',
|
|
72
|
+
keys: ['OcfStockIssuanceRSA','OcfStockIssuanceFounders',],
|
|
73
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStockIssuanceType.OcfStockIssuanceRSA), jtv.constant(exports.OcfStockIssuanceType.OcfStockIssuanceFounders)); }),
|
|
74
|
+
encode: function (__typed__) { return __typed__; },
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.OcfVestingSimple = {
|
|
80
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, amount: damlTypes.Numeric(10).decoder, }); }),
|
|
81
|
+
encode: function (__typed__) {
|
|
82
|
+
return {
|
|
83
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
84
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
exports.OcfStockIssuanceData = {
|
|
93
|
+
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, stock_class_id: damlTypes.Text.decoder, stock_plan_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), share_numbers_issued: damlTypes.List(Fairmint_OpenCapTable_Types.OcfShareNumberRange).decoder, share_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, quantity: damlTypes.Numeric(10).decoder, vesting_terms_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), vestings: damlTypes.List(exports.OcfVestingSimple).decoder, cost_basis: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), stock_legend_ids: damlTypes.List(damlTypes.Text).decoder, issuance_type: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStockIssuanceType).decoder), comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
94
|
+
encode: function (__typed__) {
|
|
95
|
+
return {
|
|
96
|
+
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
97
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
98
|
+
security_id: damlTypes.Text.encode(__typed__.security_id),
|
|
99
|
+
custom_id: damlTypes.Text.encode(__typed__.custom_id),
|
|
100
|
+
stakeholder_id: damlTypes.Text.encode(__typed__.stakeholder_id),
|
|
101
|
+
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
102
|
+
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
103
|
+
consideration_text: damlTypes.Optional(damlTypes.Text).encode(__typed__.consideration_text),
|
|
104
|
+
security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).encode(__typed__.security_law_exemptions),
|
|
105
|
+
stock_class_id: damlTypes.Text.encode(__typed__.stock_class_id),
|
|
106
|
+
stock_plan_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.stock_plan_id),
|
|
107
|
+
share_numbers_issued: damlTypes.List(Fairmint_OpenCapTable_Types.OcfShareNumberRange).encode(__typed__.share_numbers_issued),
|
|
108
|
+
share_price: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.share_price),
|
|
109
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
110
|
+
vesting_terms_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.vesting_terms_id),
|
|
111
|
+
vestings: damlTypes.List(exports.OcfVestingSimple).encode(__typed__.vestings),
|
|
112
|
+
cost_basis: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.cost_basis),
|
|
113
|
+
stock_legend_ids: damlTypes.List(damlTypes.Text).encode(__typed__.stock_legend_ids),
|
|
114
|
+
issuance_type: damlTypes.Optional(exports.OcfStockIssuanceType).encode(__typed__.issuance_type),
|
|
115
|
+
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
,
|
|
119
|
+
};
|
|
120
|
+
|
|
@@ -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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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, ['56ebbc05b3e387e0941bd8aa638d66109358c63e08d6955d87c98ffa0d005427', '#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
|
,
|
|
@@ -10,6 +10,8 @@ import * as Stakeholder from './Stakeholder';
|
|
|
10
10
|
export { Stakeholder } ;
|
|
11
11
|
import * as StockClass from './StockClass';
|
|
12
12
|
export { StockClass } ;
|
|
13
|
+
import * as StockIssuance from './StockIssuance';
|
|
14
|
+
export { StockIssuance } ;
|
|
13
15
|
import * as StockLegendTemplate from './StockLegendTemplate';
|
|
14
16
|
export { StockLegendTemplate } ;
|
|
15
17
|
import * as StockPlan from './StockPlan';
|
|
@@ -17,6 +17,8 @@ var Stakeholder = require('./Stakeholder');
|
|
|
17
17
|
exports.Stakeholder = Stakeholder;
|
|
18
18
|
var StockClass = require('./StockClass');
|
|
19
19
|
exports.StockClass = StockClass;
|
|
20
|
+
var StockIssuance = require('./StockIssuance');
|
|
21
|
+
exports.StockIssuance = StockIssuance;
|
|
20
22
|
var StockLegendTemplate = require('./StockLegendTemplate');
|
|
21
23
|
exports.StockLegendTemplate = StockLegendTemplate;
|
|
22
24
|
var StockPlan = require('./StockPlan');
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "daml build --all",
|
|
35
35
|
"build:ts": "tsc",
|
|
36
36
|
"clean": "daml clean --all",
|
|
37
|
-
"codegen": "npm run build && cd OpenCapTable-
|
|
37
|
+
"codegen": "npm run build && cd OpenCapTable-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",
|