@fairmint/open-captable-protocol-daml-js 0.2.7 → 0.2.8
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/ConvertibleIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Document/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/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 +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +142 -10
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +173 -12
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +16 -0
- package/lib/Fairmint/OpenCapTable/Types/module.js +14 -0
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.d.ts +2 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +4 -3
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "00af9885bb91cbcc2917123420fc059ff17c16cb9cb803dbb0d2cde66ad61f1b16ca11122036395d0cb97d30f33c8ff478456be0f57ab8a77228f9310c9822567243bea8d7",
|
|
4
|
+
"templateId": "518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "00c62107c31f9c1db04fdfa30bdcb786af030ebd12abdc6f813472a0751eb3e5d6ca111220252214e9ee8a77a0ddd5a30d0d9a7312b4b6231f294f0e95928cd8d3ae3ed897",
|
|
8
|
+
"templateId": "518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -31,7 +31,7 @@ export declare interface ConvertibleIssuanceInterface {
|
|
|
31
31
|
ArchiveByIssuer: damlTypes.Choice<ConvertibleIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ConvertibleIssuance, undefined>>;
|
|
32
32
|
}
|
|
33
33
|
export declare const ConvertibleIssuance:
|
|
34
|
-
damlTypes.Template<ConvertibleIssuance, undefined, '#OpenCapTable-
|
|
34
|
+
damlTypes.Template<ConvertibleIssuance, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.ConvertibleIssuance:ConvertibleIssuance'> &
|
|
35
35
|
damlTypes.ToInterface<ConvertibleIssuance, never> &
|
|
36
36
|
ConvertibleIssuanceInterface;
|
|
37
37
|
|
|
@@ -31,7 +31,7 @@ exports.ArchiveByIssuer = {
|
|
|
31
31
|
|
|
32
32
|
exports.ConvertibleIssuance = damlTypes.assembleTemplate(
|
|
33
33
|
{
|
|
34
|
-
templateId: '#OpenCapTable-
|
|
34
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.ConvertibleIssuance:ConvertibleIssuance',
|
|
35
35
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
36
36
|
keyEncode: function () { throw 'EncodeError'; },
|
|
37
37
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfConvertibleIssuanceTxData.decoder, }); }),
|
|
@@ -63,7 +63,7 @@ exports.ConvertibleIssuance = damlTypes.assembleTemplate(
|
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
damlTypes.registerTemplate(exports.ConvertibleIssuance, ['
|
|
66
|
+
damlTypes.registerTemplate(exports.ConvertibleIssuance, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -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-v21:Fairmint.OpenCapTable.Document:Document'> &
|
|
34
34
|
damlTypes.ToInterface<Document, never> &
|
|
35
35
|
DocumentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Document = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface EquityCompensationExerciseInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<EquityCompensationExercise, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<EquityCompensationExercise, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const EquityCompensationExercise:
|
|
33
|
-
damlTypes.Template<EquityCompensationExercise, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<EquityCompensationExercise, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.EquityCompensationExercise:EquityCompensationExercise'> &
|
|
34
34
|
damlTypes.ToInterface<EquityCompensationExercise, never> &
|
|
35
35
|
EquityCompensationExerciseInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.EquityCompensationExercise = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.EquityCompensationExercise:EquityCompensationExercise',
|
|
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, exercise_data: exports.OcfEquityCompensationExerciseData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.EquityCompensationExercise = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.EquityCompensationExercise, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.EquityCompensationExercise, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface EquityCompensationIssuanceInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<EquityCompensationIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<EquityCompensationIssuance, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const EquityCompensationIssuance:
|
|
33
|
-
damlTypes.Template<EquityCompensationIssuance, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<EquityCompensationIssuance, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.EquityCompensationIssuance:EquityCompensationIssuance'> &
|
|
34
34
|
damlTypes.ToInterface<EquityCompensationIssuance, never> &
|
|
35
35
|
EquityCompensationIssuanceInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.EquityCompensationIssuance = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.EquityCompensationIssuance:EquityCompensationIssuance',
|
|
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, issuance_data: exports.OcfEquityCompensationIssuanceTxData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.EquityCompensationIssuance = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.EquityCompensationIssuance, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.EquityCompensationIssuance, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -210,7 +210,7 @@ export declare interface IssuerInterface {
|
|
|
210
210
|
ArchiveByIssuer: damlTypes.Choice<Issuer, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
211
211
|
}
|
|
212
212
|
export declare const Issuer:
|
|
213
|
-
damlTypes.Template<Issuer, undefined, '#OpenCapTable-
|
|
213
|
+
damlTypes.Template<Issuer, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.Issuer:Issuer'> &
|
|
214
214
|
damlTypes.ToInterface<Issuer, never> &
|
|
215
215
|
IssuerInterface;
|
|
216
216
|
|
|
@@ -225,7 +225,7 @@ exports.CreateStockClass = {
|
|
|
225
225
|
|
|
226
226
|
exports.Issuer = damlTypes.assembleTemplate(
|
|
227
227
|
{
|
|
228
|
-
templateId: '#OpenCapTable-
|
|
228
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.Issuer:Issuer',
|
|
229
229
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
230
230
|
keyEncode: function () { throw 'EncodeError'; },
|
|
231
231
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuer_data: exports.OcfIssuerData.decoder, }); }),
|
|
@@ -377,7 +377,7 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
377
377
|
);
|
|
378
378
|
|
|
379
379
|
|
|
380
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
380
|
+
damlTypes.registerTemplate(exports.Issuer, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
381
381
|
|
|
382
382
|
|
|
383
383
|
|
|
@@ -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-v21: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-v21: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, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
86
86
|
|
|
@@ -30,7 +30,7 @@ export declare interface IssuerAuthorizedSharesAdjustmentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<IssuerAuthorizedSharesAdjustment, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<IssuerAuthorizedSharesAdjustment, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const IssuerAuthorizedSharesAdjustment:
|
|
33
|
-
damlTypes.Template<IssuerAuthorizedSharesAdjustment, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<IssuerAuthorizedSharesAdjustment, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.IssuerAuthorizedSharesAdjustment:IssuerAuthorizedSharesAdjustment'> &
|
|
34
34
|
damlTypes.ToInterface<IssuerAuthorizedSharesAdjustment, never> &
|
|
35
35
|
IssuerAuthorizedSharesAdjustmentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.IssuerAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.IssuerAuthorizedSharesAdjustment:IssuerAuthorizedSharesAdjustment',
|
|
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, adjustment_data: exports.OcfIssuerAuthorizedSharesAdjustmentData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.IssuerAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.IssuerAuthorizedSharesAdjustment, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.IssuerAuthorizedSharesAdjustment, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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-v21: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-v21: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, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
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-v21:Fairmint.OpenCapTable.Stakeholder:Stakeholder'> &
|
|
34
34
|
damlTypes.ToInterface<Stakeholder, never> &
|
|
35
35
|
StakeholderInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Stakeholder = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockCancellationInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockCancellation, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockCancellation, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockCancellation:
|
|
33
|
-
damlTypes.Template<StockCancellation, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockCancellation, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.StockCancellation:StockCancellation'> &
|
|
34
34
|
damlTypes.ToInterface<StockCancellation, never> &
|
|
35
35
|
StockCancellationInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockCancellation = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.StockCancellation:StockCancellation',
|
|
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, cancellation_data: exports.OcfStockCancellationData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockCancellation = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockCancellation, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockCancellation, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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-v21:Fairmint.OpenCapTable.StockClass:StockClass'> &
|
|
34
34
|
damlTypes.ToInterface<StockClass, never> &
|
|
35
35
|
StockClassInterface;
|
|
36
36
|
|
|
@@ -86,7 +86,7 @@ export declare const OcfConvertibleType:
|
|
|
86
86
|
export declare type OcfConvertibleIssuanceData = {
|
|
87
87
|
investment_amount: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
88
88
|
convertible_type: OcfConvertibleType;
|
|
89
|
-
conversion_triggers:
|
|
89
|
+
conversion_triggers: OcfConvertibleConversionTrigger[];
|
|
90
90
|
seniority: damlTypes.Int;
|
|
91
91
|
pro_rata: damlTypes.Optional<damlTypes.Numeric>;
|
|
92
92
|
comments: string[];
|
|
@@ -98,19 +98,151 @@ export declare const OcfConvertibleIssuanceData:
|
|
|
98
98
|
;
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
export declare type
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
export declare type OcfConvertibleConversionTrigger = {
|
|
102
|
+
type_: OcfConversionTriggerType;
|
|
103
|
+
trigger_id: string;
|
|
104
|
+
nickname: damlTypes.Optional<string>;
|
|
105
|
+
trigger_description: damlTypes.Optional<string>;
|
|
106
|
+
conversion_right: OcfConvertibleConversionRight;
|
|
107
|
+
trigger_date: damlTypes.Optional<damlTypes.Time>;
|
|
108
|
+
trigger_condition: damlTypes.Optional<string>;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export declare const OcfConvertibleConversionTrigger:
|
|
112
|
+
damlTypes.Serializable<OcfConvertibleConversionTrigger> & {
|
|
113
|
+
}
|
|
108
114
|
;
|
|
109
115
|
|
|
116
|
+
|
|
117
|
+
export declare type OcfConversionTrigger = {
|
|
118
|
+
type_: OcfConversionTriggerType;
|
|
119
|
+
trigger_id: string;
|
|
120
|
+
nickname: damlTypes.Optional<string>;
|
|
121
|
+
trigger_description: damlTypes.Optional<string>;
|
|
122
|
+
conversion_right: OcfAnyConversionRight;
|
|
123
|
+
trigger_date: damlTypes.Optional<damlTypes.Time>;
|
|
124
|
+
trigger_condition: damlTypes.Optional<string>;
|
|
125
|
+
};
|
|
126
|
+
|
|
110
127
|
export declare const OcfConversionTrigger:
|
|
111
128
|
damlTypes.Serializable<OcfConversionTrigger> & {
|
|
112
129
|
}
|
|
113
|
-
|
|
130
|
+
;
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
export declare type OcfAnyConversionRight =
|
|
134
|
+
| { tag: 'OcfRightConvertible'; value: OcfConvertibleConversionRight }
|
|
135
|
+
| { tag: 'OcfRightWarrant'; value: OcfWarrantConversionRight }
|
|
136
|
+
| { tag: 'OcfRightStockClass'; value: OcfStockClassConversionRight }
|
|
137
|
+
;
|
|
138
|
+
|
|
139
|
+
export declare const OcfAnyConversionRight:
|
|
140
|
+
damlTypes.Serializable<OcfAnyConversionRight> & {
|
|
141
|
+
}
|
|
142
|
+
;
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
export declare type OcfWarrantConversionRight = {
|
|
146
|
+
type_: string;
|
|
147
|
+
conversion_mechanism: OcfWarrantConversionMechanism;
|
|
148
|
+
converts_to_future_round: damlTypes.Optional<boolean>;
|
|
149
|
+
converts_to_stock_class_id: damlTypes.Optional<string>;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export declare const OcfWarrantConversionRight:
|
|
153
|
+
damlTypes.Serializable<OcfWarrantConversionRight> & {
|
|
154
|
+
}
|
|
155
|
+
;
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
export declare type OcfWarrantConversionMechanism =
|
|
159
|
+
| { tag: 'OcfWarrantMechanismCustom'; value: OcfWarrantConversionMechanism.OcfWarrantMechanismCustom }
|
|
160
|
+
| { tag: 'OcfWarrantMechanismPercentCapitalization'; value: OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization }
|
|
161
|
+
| { tag: 'OcfWarrantMechanismFixedAmount'; value: OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount }
|
|
162
|
+
| { tag: 'OcfWarrantMechanismValuationBased'; value: OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased }
|
|
163
|
+
| { tag: 'OcfWarrantMechanismSharePriceBased'; value: OcfWarrantConversionMechanism.OcfWarrantMechanismSharePriceBased }
|
|
164
|
+
;
|
|
165
|
+
|
|
166
|
+
export declare const OcfWarrantConversionMechanism:
|
|
167
|
+
damlTypes.Serializable<OcfWarrantConversionMechanism> & {
|
|
168
|
+
OcfWarrantMechanismCustom: damlTypes.Serializable<OcfWarrantConversionMechanism.OcfWarrantMechanismCustom>;
|
|
169
|
+
OcfWarrantMechanismPercentCapitalization: damlTypes.Serializable<OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization>;
|
|
170
|
+
OcfWarrantMechanismFixedAmount: damlTypes.Serializable<OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount>;
|
|
171
|
+
OcfWarrantMechanismValuationBased: damlTypes.Serializable<OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased>;
|
|
172
|
+
OcfWarrantMechanismSharePriceBased: damlTypes.Serializable<OcfWarrantConversionMechanism.OcfWarrantMechanismSharePriceBased>;
|
|
173
|
+
}
|
|
174
|
+
;
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
export namespace OcfWarrantConversionMechanism {
|
|
178
|
+
type OcfWarrantMechanismCustom = {
|
|
179
|
+
custom_conversion_description: string;
|
|
180
|
+
};
|
|
181
|
+
} //namespace OcfWarrantConversionMechanism
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
export namespace OcfWarrantConversionMechanism {
|
|
185
|
+
type OcfWarrantMechanismPercentCapitalization = {
|
|
186
|
+
converts_to_percent: damlTypes.Numeric;
|
|
187
|
+
capitalization_definition: damlTypes.Optional<string>;
|
|
188
|
+
capitalization_definition_rules: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules>;
|
|
189
|
+
};
|
|
190
|
+
} //namespace OcfWarrantConversionMechanism
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
export namespace OcfWarrantConversionMechanism {
|
|
194
|
+
type OcfWarrantMechanismFixedAmount = {
|
|
195
|
+
converts_to_quantity: damlTypes.Numeric;
|
|
196
|
+
};
|
|
197
|
+
} //namespace OcfWarrantConversionMechanism
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
export namespace OcfWarrantConversionMechanism {
|
|
201
|
+
type OcfWarrantMechanismValuationBased = {
|
|
202
|
+
valuation_type: string;
|
|
203
|
+
valuation_amount: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
204
|
+
capitalization_definition: damlTypes.Optional<string>;
|
|
205
|
+
capitalization_definition_rules: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules>;
|
|
206
|
+
};
|
|
207
|
+
} //namespace OcfWarrantConversionMechanism
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
export namespace OcfWarrantConversionMechanism {
|
|
211
|
+
type OcfWarrantMechanismSharePriceBased = {
|
|
212
|
+
description: string;
|
|
213
|
+
discount: boolean;
|
|
214
|
+
discount_percentage: damlTypes.Optional<damlTypes.Numeric>;
|
|
215
|
+
discount_amount: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
216
|
+
};
|
|
217
|
+
} //namespace OcfWarrantConversionMechanism
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
export declare type OcfConvertibleConversionRight = {
|
|
221
|
+
type_: string;
|
|
222
|
+
conversion_mechanism: OcfConversionMechanism;
|
|
223
|
+
converts_to_future_round: damlTypes.Optional<boolean>;
|
|
224
|
+
converts_to_stock_class_id: damlTypes.Optional<string>;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export declare const OcfConvertibleConversionRight:
|
|
228
|
+
damlTypes.Serializable<OcfConvertibleConversionRight> & {
|
|
229
|
+
}
|
|
230
|
+
;
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
export declare type OcfConversionTriggerType =
|
|
234
|
+
| 'OcfTriggerTypeAutomaticOnCondition'
|
|
235
|
+
| 'OcfTriggerTypeAutomaticOnDate'
|
|
236
|
+
| 'OcfTriggerTypeElectiveInRange'
|
|
237
|
+
| 'OcfTriggerTypeElectiveOnCondition'
|
|
238
|
+
| 'OcfTriggerTypeElectiveAtWill'
|
|
239
|
+
| 'OcfTriggerTypeUnspecified'
|
|
240
|
+
;
|
|
241
|
+
|
|
242
|
+
export declare const OcfConversionTriggerType:
|
|
243
|
+
damlTypes.Serializable<OcfConversionTriggerType> & {
|
|
244
|
+
}
|
|
245
|
+
& { readonly keys: OcfConversionTriggerType[] } & { readonly [e in OcfConversionTriggerType]: e }
|
|
114
246
|
;
|
|
115
247
|
|
|
116
248
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockClass = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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,7 +62,7 @@ exports.StockClass = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockClass, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockClass, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -109,12 +109,12 @@ 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.
|
|
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.OcfConvertibleConversionTrigger).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),
|
|
116
116
|
convertible_type: exports.OcfConvertibleType.encode(__typed__.convertible_type),
|
|
117
|
-
conversion_triggers: damlTypes.List(exports.
|
|
117
|
+
conversion_triggers: damlTypes.List(exports.OcfConvertibleConversionTrigger).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
120
|
comments: damlTypes.List(damlTypes.Text).encode(__typed__.comments),
|
|
@@ -125,15 +125,176 @@ exports.OcfConvertibleIssuanceData = {
|
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
exports.OcfConvertibleConversionTrigger = {
|
|
129
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: exports.OcfConversionTriggerType.decoder, trigger_id: damlTypes.Text.decoder, nickname: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), trigger_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), conversion_right: exports.OcfConvertibleConversionRight.decoder, trigger_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), trigger_condition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
130
|
+
encode: function (__typed__) {
|
|
131
|
+
return {
|
|
132
|
+
type_: exports.OcfConversionTriggerType.encode(__typed__.type_),
|
|
133
|
+
trigger_id: damlTypes.Text.encode(__typed__.trigger_id),
|
|
134
|
+
nickname: damlTypes.Optional(damlTypes.Text).encode(__typed__.nickname),
|
|
135
|
+
trigger_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_description),
|
|
136
|
+
conversion_right: exports.OcfConvertibleConversionRight.encode(__typed__.conversion_right),
|
|
137
|
+
trigger_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.trigger_date),
|
|
138
|
+
trigger_condition: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_condition),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
,
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
128
146
|
exports.OcfConversionTrigger = {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: exports.OcfConversionTriggerType.decoder, trigger_id: damlTypes.Text.decoder, nickname: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), trigger_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), conversion_right: exports.OcfAnyConversionRight.decoder, trigger_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), trigger_condition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
148
|
+
encode: function (__typed__) {
|
|
149
|
+
return {
|
|
150
|
+
type_: exports.OcfConversionTriggerType.encode(__typed__.type_),
|
|
151
|
+
trigger_id: damlTypes.Text.encode(__typed__.trigger_id),
|
|
152
|
+
nickname: damlTypes.Optional(damlTypes.Text).encode(__typed__.nickname),
|
|
153
|
+
trigger_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_description),
|
|
154
|
+
conversion_right: exports.OcfAnyConversionRight.encode(__typed__.conversion_right),
|
|
155
|
+
trigger_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.trigger_date),
|
|
156
|
+
trigger_condition: damlTypes.Optional(damlTypes.Text).encode(__typed__.trigger_condition),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
,
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
exports.OcfAnyConversionRight = {
|
|
165
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfRightConvertible'), value: exports.OcfConvertibleConversionRight.decoder, }), jtv.object({tag: jtv.constant('OcfRightWarrant'), value: exports.OcfWarrantConversionRight.decoder, }), jtv.object({tag: jtv.constant('OcfRightStockClass'), value: exports.OcfStockClassConversionRight.decoder, })); }),
|
|
166
|
+
encode: function (__typed__) {
|
|
167
|
+
switch(__typed__.tag) {
|
|
168
|
+
case 'OcfRightConvertible': return {tag: __typed__.tag, value: exports.OcfConvertibleConversionRight.encode(__typed__.value)};
|
|
169
|
+
case 'OcfRightWarrant': return {tag: __typed__.tag, value: exports.OcfWarrantConversionRight.encode(__typed__.value)};
|
|
170
|
+
case 'OcfRightStockClass': return {tag: __typed__.tag, value: exports.OcfStockClassConversionRight.encode(__typed__.value)};
|
|
171
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfAnyConversionRight';
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
,
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
exports.OcfWarrantConversionRight = {
|
|
180
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.OcfWarrantConversionMechanism.decoder, converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
181
|
+
encode: function (__typed__) {
|
|
182
|
+
return {
|
|
183
|
+
type_: damlTypes.Text.encode(__typed__.type_),
|
|
184
|
+
conversion_mechanism: exports.OcfWarrantConversionMechanism.encode(__typed__.conversion_mechanism),
|
|
185
|
+
converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
|
|
186
|
+
converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
,
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
exports.OcfWarrantConversionMechanism = {
|
|
195
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfWarrantMechanismCustom'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismCustom.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismPercentCapitalization'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismFixedAmount'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismValuationBased'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased.decoder, }), jtv.object({tag: jtv.constant('OcfWarrantMechanismSharePriceBased'), value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismSharePriceBased.decoder, })); }),
|
|
196
|
+
encode: function (__typed__) {
|
|
197
|
+
switch(__typed__.tag) {
|
|
198
|
+
case 'OcfWarrantMechanismCustom': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismCustom.encode(__typed__.value)};
|
|
199
|
+
case 'OcfWarrantMechanismPercentCapitalization': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismPercentCapitalization.encode(__typed__.value)};
|
|
200
|
+
case 'OcfWarrantMechanismFixedAmount': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismFixedAmount.encode(__typed__.value)};
|
|
201
|
+
case 'OcfWarrantMechanismValuationBased': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismValuationBased.encode(__typed__.value)};
|
|
202
|
+
case 'OcfWarrantMechanismSharePriceBased': return {tag: __typed__.tag, value: exports.OcfWarrantConversionMechanism.OcfWarrantMechanismSharePriceBased.encode(__typed__.value)};
|
|
203
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfWarrantConversionMechanism';
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
,
|
|
207
|
+
OcfWarrantMechanismCustom:({
|
|
208
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({custom_conversion_description: damlTypes.Text.decoder, }); }),
|
|
209
|
+
encode: function (__typed__) {
|
|
210
|
+
return {
|
|
211
|
+
custom_conversion_description: damlTypes.Text.encode(__typed__.custom_conversion_description),
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
,
|
|
215
|
+
}),
|
|
216
|
+
OcfWarrantMechanismPercentCapitalization:({
|
|
217
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_percent: damlTypes.Numeric(10).decoder, capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).decoder), }); }),
|
|
218
|
+
encode: function (__typed__) {
|
|
219
|
+
return {
|
|
220
|
+
converts_to_percent: damlTypes.Numeric(10).encode(__typed__.converts_to_percent),
|
|
221
|
+
capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
|
|
222
|
+
capitalization_definition_rules: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
,
|
|
226
|
+
}),
|
|
227
|
+
OcfWarrantMechanismFixedAmount:({
|
|
228
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({converts_to_quantity: damlTypes.Numeric(10).decoder, }); }),
|
|
229
|
+
encode: function (__typed__) {
|
|
230
|
+
return {
|
|
231
|
+
converts_to_quantity: damlTypes.Numeric(10).encode(__typed__.converts_to_quantity),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
,
|
|
235
|
+
}),
|
|
236
|
+
OcfWarrantMechanismValuationBased:({
|
|
237
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({valuation_type: damlTypes.Text.decoder, valuation_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), capitalization_definition: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), capitalization_definition_rules: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).decoder), }); }),
|
|
238
|
+
encode: function (__typed__) {
|
|
239
|
+
return {
|
|
240
|
+
valuation_type: damlTypes.Text.encode(__typed__.valuation_type),
|
|
241
|
+
valuation_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.valuation_amount),
|
|
242
|
+
capitalization_definition: damlTypes.Optional(damlTypes.Text).encode(__typed__.capitalization_definition),
|
|
243
|
+
capitalization_definition_rules: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfCapitalizationDefinitionRules).encode(__typed__.capitalization_definition_rules),
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
,
|
|
247
|
+
}),
|
|
248
|
+
OcfWarrantMechanismSharePriceBased:({
|
|
249
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({description: damlTypes.Text.decoder, discount: damlTypes.Bool.decoder, discount_percentage: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), discount_amount: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), }); }),
|
|
250
|
+
encode: function (__typed__) {
|
|
251
|
+
return {
|
|
252
|
+
description: damlTypes.Text.encode(__typed__.description),
|
|
253
|
+
discount: damlTypes.Bool.encode(__typed__.discount),
|
|
254
|
+
discount_percentage: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_percentage),
|
|
255
|
+
discount_amount: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.discount_amount),
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
,
|
|
259
|
+
}),
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
exports.OcfConvertibleConversionRight = {
|
|
275
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.OcfConversionMechanism.decoder, converts_to_future_round: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), converts_to_stock_class_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
276
|
+
encode: function (__typed__) {
|
|
277
|
+
return {
|
|
278
|
+
type_: damlTypes.Text.encode(__typed__.type_),
|
|
279
|
+
conversion_mechanism: exports.OcfConversionMechanism.encode(__typed__.conversion_mechanism),
|
|
280
|
+
converts_to_future_round: damlTypes.Optional(damlTypes.Bool).encode(__typed__.converts_to_future_round),
|
|
281
|
+
converts_to_stock_class_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.converts_to_stock_class_id),
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
,
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
exports.OcfConversionTriggerType = {
|
|
290
|
+
OcfTriggerTypeAutomaticOnCondition: 'OcfTriggerTypeAutomaticOnCondition',
|
|
291
|
+
OcfTriggerTypeAutomaticOnDate: 'OcfTriggerTypeAutomaticOnDate',
|
|
292
|
+
OcfTriggerTypeElectiveInRange: 'OcfTriggerTypeElectiveInRange',
|
|
293
|
+
OcfTriggerTypeElectiveOnCondition: 'OcfTriggerTypeElectiveOnCondition',
|
|
294
|
+
OcfTriggerTypeElectiveAtWill: 'OcfTriggerTypeElectiveAtWill',
|
|
295
|
+
OcfTriggerTypeUnspecified: 'OcfTriggerTypeUnspecified',
|
|
296
|
+
keys: ['OcfTriggerTypeAutomaticOnCondition','OcfTriggerTypeAutomaticOnDate','OcfTriggerTypeElectiveInRange','OcfTriggerTypeElectiveOnCondition','OcfTriggerTypeElectiveAtWill','OcfTriggerTypeUnspecified',],
|
|
297
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeAutomaticOnCondition), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeAutomaticOnDate), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeElectiveInRange), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeElectiveOnCondition), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeElectiveAtWill), jtv.constant(exports.OcfConversionTriggerType.OcfTriggerTypeUnspecified)); }),
|
|
137
298
|
encode: function (__typed__) { return __typed__; },
|
|
138
299
|
};
|
|
139
300
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockClassAuthorizedSharesAdjustmentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockClassAuthorizedSharesAdjustment, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockClassAuthorizedSharesAdjustment, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockClassAuthorizedSharesAdjustment:
|
|
33
|
-
damlTypes.Template<StockClassAuthorizedSharesAdjustment, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockClassAuthorizedSharesAdjustment, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.StockClassAuthorizedSharesAdjustment:StockClassAuthorizedSharesAdjustment'> &
|
|
34
34
|
damlTypes.ToInterface<StockClassAuthorizedSharesAdjustment, never> &
|
|
35
35
|
StockClassAuthorizedSharesAdjustmentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockClassAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.StockClassAuthorizedSharesAdjustment:StockClassAuthorizedSharesAdjustment',
|
|
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, adjustment_data: exports.OcfStockClassAuthorizedSharesAdjustmentData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockClassAuthorizedSharesAdjustment = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockClassAuthorizedSharesAdjustment, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockClassAuthorizedSharesAdjustment, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockIssuanceInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockIssuance, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockIssuance:
|
|
33
|
-
damlTypes.Template<StockIssuance, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockIssuance, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.StockIssuance:StockIssuance'> &
|
|
34
34
|
damlTypes.ToInterface<StockIssuance, never> &
|
|
35
35
|
StockIssuanceInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockIssuance = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.StockIssuance:StockIssuance',
|
|
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, issuance_data: exports.OcfStockIssuanceData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockIssuance = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockIssuance, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockIssuance, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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-v21:Fairmint.OpenCapTable.StockLegendTemplate:StockLegendTemplate'> &
|
|
34
34
|
damlTypes.ToInterface<StockLegendTemplate, never> &
|
|
35
35
|
StockLegendTemplateInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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,7 +62,7 @@ exports.StockLegendTemplate = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockLegendTemplate, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockLegendTemplate, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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-v21:Fairmint.OpenCapTable.StockPlan:StockPlan'> &
|
|
34
34
|
damlTypes.ToInterface<StockPlan, never> &
|
|
35
35
|
StockPlanInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockPlan = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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,7 +62,7 @@ exports.StockPlan = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockPlan, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockPlan, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -30,7 +30,7 @@ export declare interface StockPlanPoolAdjustmentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<StockPlanPoolAdjustment, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPlanPoolAdjustment, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const StockPlanPoolAdjustment:
|
|
33
|
-
damlTypes.Template<StockPlanPoolAdjustment, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<StockPlanPoolAdjustment, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.StockPlanPoolAdjustment:StockPlanPoolAdjustment'> &
|
|
34
34
|
damlTypes.ToInterface<StockPlanPoolAdjustment, never> &
|
|
35
35
|
StockPlanPoolAdjustmentInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockPlanPoolAdjustment = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.StockPlanPoolAdjustment:StockPlanPoolAdjustment',
|
|
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, adjustment_data: exports.OcfStockPlanPoolAdjustmentData.decoder, }); }),
|
|
@@ -62,7 +62,7 @@ exports.StockPlanPoolAdjustment = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.StockPlanPoolAdjustment, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.StockPlanPoolAdjustment, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -72,6 +72,22 @@ export declare const OcfSecurityExemption:
|
|
|
72
72
|
;
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
export declare type OcfQuantitySourceType =
|
|
76
|
+
| 'OcfQuantityHumanEstimated'
|
|
77
|
+
| 'OcfQuantityMachineEstimated'
|
|
78
|
+
| 'OcfQuantityUnspecified'
|
|
79
|
+
| 'OcfQuantityInstrumentFixed'
|
|
80
|
+
| 'OcfQuantityInstrumentMax'
|
|
81
|
+
| 'OcfQuantityInstrumentMin'
|
|
82
|
+
;
|
|
83
|
+
|
|
84
|
+
export declare const OcfQuantitySourceType:
|
|
85
|
+
damlTypes.Serializable<OcfQuantitySourceType> & {
|
|
86
|
+
}
|
|
87
|
+
& { readonly keys: OcfQuantitySourceType[] } & { readonly [e in OcfQuantitySourceType]: e }
|
|
88
|
+
;
|
|
89
|
+
|
|
90
|
+
|
|
75
91
|
export declare type OcfStakeholderRelationshipType =
|
|
76
92
|
| 'OcfRelEmployee'
|
|
77
93
|
| 'OcfRelAdvisor'
|
|
@@ -88,6 +88,20 @@ exports.OcfSecurityExemption = {
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
+
exports.OcfQuantitySourceType = {
|
|
92
|
+
OcfQuantityHumanEstimated: 'OcfQuantityHumanEstimated',
|
|
93
|
+
OcfQuantityMachineEstimated: 'OcfQuantityMachineEstimated',
|
|
94
|
+
OcfQuantityUnspecified: 'OcfQuantityUnspecified',
|
|
95
|
+
OcfQuantityInstrumentFixed: 'OcfQuantityInstrumentFixed',
|
|
96
|
+
OcfQuantityInstrumentMax: 'OcfQuantityInstrumentMax',
|
|
97
|
+
OcfQuantityInstrumentMin: 'OcfQuantityInstrumentMin',
|
|
98
|
+
keys: ['OcfQuantityHumanEstimated','OcfQuantityMachineEstimated','OcfQuantityUnspecified','OcfQuantityInstrumentFixed','OcfQuantityInstrumentMax','OcfQuantityInstrumentMin',],
|
|
99
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfQuantitySourceType.OcfQuantityHumanEstimated), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityMachineEstimated), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityUnspecified), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentFixed), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentMax), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentMin)); }),
|
|
100
|
+
encode: function (__typed__) { return __typed__; },
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
91
105
|
exports.OcfStakeholderRelationshipType = {
|
|
92
106
|
OcfRelEmployee: 'OcfRelEmployee',
|
|
93
107
|
OcfRelAdvisor: 'OcfRelAdvisor',
|
|
@@ -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-v21:Fairmint.OpenCapTable.Valuation:Valuation'> &
|
|
34
34
|
damlTypes.ToInterface<Valuation, never> &
|
|
35
35
|
ValuationInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Valuation = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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,7 +62,7 @@ exports.Valuation = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.Valuation, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.Valuation, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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-v21:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
34
34
|
damlTypes.ToInterface<VestingTerms, never> &
|
|
35
35
|
VestingTermsInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v21: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,7 +62,7 @@ exports.VestingTerms = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.VestingTerms, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -31,7 +31,7 @@ export declare interface WarrantIssuanceInterface {
|
|
|
31
31
|
ArchiveByIssuer: damlTypes.Choice<WarrantIssuance, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<WarrantIssuance, undefined>>;
|
|
32
32
|
}
|
|
33
33
|
export declare const WarrantIssuance:
|
|
34
|
-
damlTypes.Template<WarrantIssuance, undefined, '#OpenCapTable-
|
|
34
|
+
damlTypes.Template<WarrantIssuance, undefined, '#OpenCapTable-v21:Fairmint.OpenCapTable.WarrantIssuance:WarrantIssuance'> &
|
|
35
35
|
damlTypes.ToInterface<WarrantIssuance, never> &
|
|
36
36
|
WarrantIssuanceInterface;
|
|
37
37
|
|
|
@@ -55,6 +55,7 @@ export declare type OcfWarrantIssuanceData = {
|
|
|
55
55
|
consideration_text: damlTypes.Optional<string>;
|
|
56
56
|
security_law_exemptions: Fairmint_OpenCapTable_Types.OcfSecurityExemption[];
|
|
57
57
|
quantity: damlTypes.Optional<damlTypes.Numeric>;
|
|
58
|
+
quantity_source: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfQuantitySourceType>;
|
|
58
59
|
exercise_price: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfMonetary>;
|
|
59
60
|
purchase_price: Fairmint_OpenCapTable_Types.OcfMonetary;
|
|
60
61
|
exercise_triggers: Fairmint_OpenCapTable_StockClass.OcfConversionTrigger[];
|
|
@@ -31,7 +31,7 @@ exports.ArchiveByIssuer = {
|
|
|
31
31
|
|
|
32
32
|
exports.WarrantIssuance = damlTypes.assembleTemplate(
|
|
33
33
|
{
|
|
34
|
-
templateId: '#OpenCapTable-
|
|
34
|
+
templateId: '#OpenCapTable-v21:Fairmint.OpenCapTable.WarrantIssuance:WarrantIssuance',
|
|
35
35
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
36
36
|
keyEncode: function () { throw 'EncodeError'; },
|
|
37
37
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuance_data: exports.OcfWarrantIssuanceData.decoder, }); }),
|
|
@@ -63,12 +63,12 @@ exports.WarrantIssuance = damlTypes.assembleTemplate(
|
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
damlTypes.registerTemplate(exports.WarrantIssuance, ['
|
|
66
|
+
damlTypes.registerTemplate(exports.WarrantIssuance, ['518ba8058bd64b8446358329d9ee8de7d87c9baae88477f5344ad9e127197a19', '#OpenCapTable-v21']);
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
exports.OcfWarrantIssuanceData = {
|
|
71
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, security_id: damlTypes.Text.decoder, custom_id: damlTypes.Text.decoder, stakeholder_id: damlTypes.Text.decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).decoder, quantity: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), exercise_price: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), purchase_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, exercise_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.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), vestings: damlTypes.List(Fairmint_OpenCapTable_Types.OcfVesting).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
71
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({ocf_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, security_id: damlTypes.Text.decoder, custom_id: damlTypes.Text.decoder, stakeholder_id: damlTypes.Text.decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), consideration_text: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).decoder, quantity: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), quantity_source: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfQuantitySourceType).decoder), exercise_price: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).decoder), purchase_price: Fairmint_OpenCapTable_Types.OcfMonetary.decoder, exercise_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.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), vestings: damlTypes.List(Fairmint_OpenCapTable_Types.OcfVesting).decoder, comments: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
72
72
|
encode: function (__typed__) {
|
|
73
73
|
return {
|
|
74
74
|
ocf_id: damlTypes.Text.encode(__typed__.ocf_id),
|
|
@@ -81,6 +81,7 @@ exports.OcfWarrantIssuanceData = {
|
|
|
81
81
|
consideration_text: damlTypes.Optional(damlTypes.Text).encode(__typed__.consideration_text),
|
|
82
82
|
security_law_exemptions: damlTypes.List(Fairmint_OpenCapTable_Types.OcfSecurityExemption).encode(__typed__.security_law_exemptions),
|
|
83
83
|
quantity: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.quantity),
|
|
84
|
+
quantity_source: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfQuantitySourceType).encode(__typed__.quantity_source),
|
|
84
85
|
exercise_price: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfMonetary).encode(__typed__.exercise_price),
|
|
85
86
|
purchase_price: Fairmint_OpenCapTable_Types.OcfMonetary.encode(__typed__.purchase_price),
|
|
86
87
|
exercise_triggers: damlTypes.List(Fairmint_OpenCapTable_StockClass.OcfConversionTrigger).encode(__typed__.exercise_triggers),
|
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.8",
|
|
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-v21 && 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",
|