@fairmint/open-captable-protocol-daml-js 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/ocp-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +12 -0
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +22 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- 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.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/index.d.ts +2 -0
- package/lib/Fairmint/OpenCapTable/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "005f04b0b5ed0d8000bdc3d555e0a9c9d58388fed96501f8c557394c78bf3f27aeca111220969f8e6c8ead619264f9446e9566f306a8ed9986cb1f3f5b403aedf99b68b407",
|
|
4
|
+
"templateId": "c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "001c1c1d8eefb511d237285bd1134bc51fd452b487a54ab314fec5c4258126db1dca111220b756b11fc90b570b9cdaf9bdee131d888ef0f413ee08f078b2fbd9db1e2c13c6",
|
|
8
|
+
"templateId": "c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -62,7 +62,7 @@ exports.Document = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Document, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Document, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -12,6 +12,7 @@ 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';
|
|
@@ -26,6 +27,16 @@ export declare const ArchiveByIssuer:
|
|
|
26
27
|
;
|
|
27
28
|
|
|
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> & {
|
|
36
|
+
}
|
|
37
|
+
;
|
|
38
|
+
|
|
39
|
+
|
|
29
40
|
export declare type CreateDocument = {
|
|
30
41
|
document_data: Fairmint_OpenCapTable_Document.OcfDocument;
|
|
31
42
|
};
|
|
@@ -98,6 +109,7 @@ 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
|
}
|
|
@@ -17,6 +17,7 @@ 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');
|
|
@@ -34,6 +35,18 @@ exports.ArchiveByIssuer = {
|
|
|
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__) {
|
|
@@ -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',
|
|
@@ -188,7 +209,7 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
188
209
|
);
|
|
189
210
|
|
|
190
211
|
|
|
191
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
212
|
+
damlTypes.registerTemplate(exports.Issuer, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
192
213
|
|
|
193
214
|
|
|
194
215
|
|
|
@@ -82,5 +82,5 @@ exports.IssuerAuthorization = damlTypes.assembleTemplate(
|
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
damlTypes.registerTemplate(exports.IssuerAuthorization, ['
|
|
85
|
+
damlTypes.registerTemplate(exports.IssuerAuthorization, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
86
86
|
|
|
@@ -64,5 +64,5 @@ exports.OcpFactory = damlTypes.assembleTemplate(
|
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
damlTypes.registerTemplate(exports.OcpFactory, ['
|
|
67
|
+
damlTypes.registerTemplate(exports.OcpFactory, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
68
68
|
|
|
@@ -62,7 +62,7 @@ exports.Stakeholder = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Stakeholder, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Stakeholder, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -62,7 +62,7 @@ exports.StockClass = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockClass, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockClass, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#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
|
+
|
|
@@ -62,7 +62,7 @@ exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockLegendTemplate, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockLegendTemplate, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -62,7 +62,7 @@ exports.StockPlan = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockPlan, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockPlan, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -62,7 +62,7 @@ exports.Valuation = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Valuation, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Valuation, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -62,7 +62,7 @@ exports.VestingTerms = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.VestingTerms, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['c9c950eb0c70229ec7e8b1013aca5f9b8d2dbf5dcc46ce420bdc806ad9ce7607', '#OpenCapTable-v18']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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');
|
package/package.json
CHANGED