@fairmint/open-captable-protocol-daml-js 0.0.41 → 0.1.0
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/Issuer/module.d.ts +222 -2
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +341 -8
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +49 -0
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +71 -0
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +340 -4
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +487 -7
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +48 -0
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +70 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +332 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +482 -0
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +510 -3
- package/lib/Fairmint/OpenCapTable/Types/module.js +523 -9
- package/lib/Fairmint/OpenCapTable/Valuation/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/Valuation/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +50 -0
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +72 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +48 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +70 -0
- package/lib/Fairmint/OpenCapTable/index.d.ts +10 -2
- package/lib/Fairmint/OpenCapTable/index.js +10 -2
- package/package.json +3 -3
- package/lib/Fairmint/OpenCapTable/StockPosition/module.d.ts +0 -85
- package/lib/Fairmint/OpenCapTable/StockPosition/module.js +0 -124
- /package/lib/Fairmint/OpenCapTable/{StockPosition → Stakeholder}/index.d.ts +0 -0
- /package/lib/Fairmint/OpenCapTable/{StockPosition → Stakeholder}/index.js +0 -0
|
@@ -0,0 +1,482 @@
|
|
|
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 pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
17
|
+
|
|
18
|
+
var Fairmint_OpenCapTable_StockClass = require('../../../Fairmint/OpenCapTable/StockClass/module');
|
|
19
|
+
var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
20
|
+
var Fairmint_OpenCapTable_VestingTerms = require('../../../Fairmint/OpenCapTable/VestingTerms/module');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.PlanSecurityExerciseEvent = damlTypes.assembleTemplate(
|
|
24
|
+
{
|
|
25
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityExerciseEvent',
|
|
26
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
27
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
28
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).decoder, stakeholder: damlTypes.Party.decoder, stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder, quantity: damlTypes.Numeric(10).decoder, date: damlTypes.Time.decoder, }); }),
|
|
29
|
+
encode: function (__typed__) {
|
|
30
|
+
return {
|
|
31
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
32
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
33
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
34
|
+
plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__.plan_security),
|
|
35
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
36
|
+
stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).encode(__typed__.stock_class),
|
|
37
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
38
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
,
|
|
42
|
+
Archive: {
|
|
43
|
+
template: function () { return exports.PlanSecurityExerciseEvent; },
|
|
44
|
+
choiceName: 'Archive',
|
|
45
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
46
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
47
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
48
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
damlTypes.registerTemplate(exports.PlanSecurityExerciseEvent, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
exports.PlanSecurityRetraction = damlTypes.assembleTemplate(
|
|
60
|
+
{
|
|
61
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityRetraction',
|
|
62
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
63
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
64
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).decoder, stakeholder: damlTypes.Party.decoder, date: damlTypes.Time.decoder, }); }),
|
|
65
|
+
encode: function (__typed__) {
|
|
66
|
+
return {
|
|
67
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
68
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
69
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
70
|
+
plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__.plan_security),
|
|
71
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
72
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
,
|
|
76
|
+
Archive: {
|
|
77
|
+
template: function () { return exports.PlanSecurityRetraction; },
|
|
78
|
+
choiceName: 'Archive',
|
|
79
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
80
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
81
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
82
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
damlTypes.registerTemplate(exports.PlanSecurityRetraction, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
exports.PlanSecurityRelease = damlTypes.assembleTemplate(
|
|
94
|
+
{
|
|
95
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityRelease',
|
|
96
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
97
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
98
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).decoder, stakeholder: damlTypes.Party.decoder, date: damlTypes.Time.decoder, }); }),
|
|
99
|
+
encode: function (__typed__) {
|
|
100
|
+
return {
|
|
101
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
102
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
103
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
104
|
+
plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__.plan_security),
|
|
105
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
106
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
,
|
|
110
|
+
Archive: {
|
|
111
|
+
template: function () { return exports.PlanSecurityRelease; },
|
|
112
|
+
choiceName: 'Archive',
|
|
113
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
114
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
115
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
116
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
117
|
+
},
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
damlTypes.registerTemplate(exports.PlanSecurityRelease, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
exports.PlanSecurityCancellation = damlTypes.assembleTemplate(
|
|
128
|
+
{
|
|
129
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityCancellation',
|
|
130
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
131
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
132
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).decoder, stakeholder: damlTypes.Party.decoder, date: damlTypes.Time.decoder, }); }),
|
|
133
|
+
encode: function (__typed__) {
|
|
134
|
+
return {
|
|
135
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
136
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
137
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
138
|
+
plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__.plan_security),
|
|
139
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
140
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
,
|
|
144
|
+
Archive: {
|
|
145
|
+
template: function () { return exports.PlanSecurityCancellation; },
|
|
146
|
+
choiceName: 'Archive',
|
|
147
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
148
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
149
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
150
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
151
|
+
},
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
damlTypes.registerTemplate(exports.PlanSecurityCancellation, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
exports.PlanSecurityAcceptance = damlTypes.assembleTemplate(
|
|
162
|
+
{
|
|
163
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityAcceptance',
|
|
164
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
165
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
166
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).decoder, stakeholder: damlTypes.Party.decoder, date: damlTypes.Time.decoder, }); }),
|
|
167
|
+
encode: function (__typed__) {
|
|
168
|
+
return {
|
|
169
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
170
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
171
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
172
|
+
plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__.plan_security),
|
|
173
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
174
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
,
|
|
178
|
+
Archive: {
|
|
179
|
+
template: function () { return exports.PlanSecurityAcceptance; },
|
|
180
|
+
choiceName: 'Archive',
|
|
181
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
182
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
183
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
184
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
185
|
+
},
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
damlTypes.registerTemplate(exports.PlanSecurityAcceptance, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
exports.PlanSecurityVestingStart = damlTypes.assembleTemplate(
|
|
196
|
+
{
|
|
197
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityVestingStart',
|
|
198
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
199
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
200
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).decoder, vesting_condition_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, }); }),
|
|
201
|
+
encode: function (__typed__) {
|
|
202
|
+
return {
|
|
203
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
204
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
205
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
206
|
+
plan_security: damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__.plan_security),
|
|
207
|
+
vesting_condition_id: damlTypes.Text.encode(__typed__.vesting_condition_id),
|
|
208
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
,
|
|
212
|
+
Archive: {
|
|
213
|
+
template: function () { return exports.PlanSecurityVestingStart; },
|
|
214
|
+
choiceName: 'Archive',
|
|
215
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
216
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
217
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
218
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
219
|
+
},
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
);
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
damlTypes.registerTemplate(exports.PlanSecurityVestingStart, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
exports.IssuePlanSecurity = {
|
|
230
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({stakeholder: damlTypes.Party.decoder, issuance_data: Fairmint_OpenCapTable_Types.OcfEquityCompensationIssuanceData.decoder, stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder, vesting_terms: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(Fairmint_OpenCapTable_VestingTerms.VestingTerms)).decoder), }); }),
|
|
231
|
+
encode: function (__typed__) {
|
|
232
|
+
return {
|
|
233
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
234
|
+
issuance_data: Fairmint_OpenCapTable_Types.OcfEquityCompensationIssuanceData.encode(__typed__.issuance_data),
|
|
235
|
+
stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).encode(__typed__.stock_class),
|
|
236
|
+
vesting_terms: damlTypes.Optional(damlTypes.ContractId(Fairmint_OpenCapTable_VestingTerms.VestingTerms)).encode(__typed__.vesting_terms),
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
,
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
exports.UpdateStockPlan = {
|
|
245
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({new_plan_data: Fairmint_OpenCapTable_Types.OcfStockPlanData.decoder, new_stock_classes: damlTypes.List(damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass)).decoder, }); }),
|
|
246
|
+
encode: function (__typed__) {
|
|
247
|
+
return {
|
|
248
|
+
new_plan_data: Fairmint_OpenCapTable_Types.OcfStockPlanData.encode(__typed__.new_plan_data),
|
|
249
|
+
new_stock_classes: damlTypes.List(damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass)).encode(__typed__.new_stock_classes),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
,
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
exports.StockPlan = damlTypes.assembleTemplate(
|
|
258
|
+
{
|
|
259
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:StockPlan',
|
|
260
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
261
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
262
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, stock_classes: damlTypes.List(damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass)).decoder, plan_data: Fairmint_OpenCapTable_Types.OcfStockPlanData.decoder, }); }),
|
|
263
|
+
encode: function (__typed__) {
|
|
264
|
+
return {
|
|
265
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
266
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
267
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
268
|
+
stock_classes: damlTypes.List(damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass)).encode(__typed__.stock_classes),
|
|
269
|
+
plan_data: Fairmint_OpenCapTable_Types.OcfStockPlanData.encode(__typed__.plan_data),
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
,
|
|
273
|
+
Archive: {
|
|
274
|
+
template: function () { return exports.StockPlan; },
|
|
275
|
+
choiceName: 'Archive',
|
|
276
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
277
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
278
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
279
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
280
|
+
},
|
|
281
|
+
UpdateStockPlan: {
|
|
282
|
+
template: function () { return exports.StockPlan; },
|
|
283
|
+
choiceName: 'UpdateStockPlan',
|
|
284
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.UpdateStockPlan.decoder; }),
|
|
285
|
+
argumentEncode: function (__typed__) { return exports.UpdateStockPlan.encode(__typed__); },
|
|
286
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.StockPlan).decoder; }),
|
|
287
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.StockPlan).encode(__typed__); },
|
|
288
|
+
},
|
|
289
|
+
IssuePlanSecurity: {
|
|
290
|
+
template: function () { return exports.StockPlan; },
|
|
291
|
+
choiceName: 'IssuePlanSecurity',
|
|
292
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.IssuePlanSecurity.decoder; }),
|
|
293
|
+
argumentEncode: function (__typed__) { return exports.IssuePlanSecurity.encode(__typed__); },
|
|
294
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityGrant).decoder; }),
|
|
295
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__); },
|
|
296
|
+
},
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
damlTypes.registerTemplate(exports.StockPlan, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
exports.ExerciseGrant = {
|
|
307
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder, quantity: damlTypes.Numeric(10).decoder, date: damlTypes.Time.decoder, }); }),
|
|
308
|
+
encode: function (__typed__) {
|
|
309
|
+
return {
|
|
310
|
+
stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).encode(__typed__.stock_class),
|
|
311
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
312
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
,
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
exports.RetractGrant = {
|
|
321
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, }); }),
|
|
322
|
+
encode: function (__typed__) {
|
|
323
|
+
return {
|
|
324
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
,
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
exports.ReleaseGrant = {
|
|
333
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, }); }),
|
|
334
|
+
encode: function (__typed__) {
|
|
335
|
+
return {
|
|
336
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
,
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
exports.CancelGrant = {
|
|
345
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, }); }),
|
|
346
|
+
encode: function (__typed__) {
|
|
347
|
+
return {
|
|
348
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
,
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
exports.AcceptGrant = {
|
|
357
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, }); }),
|
|
358
|
+
encode: function (__typed__) {
|
|
359
|
+
return {
|
|
360
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
,
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
exports.StartVesting = {
|
|
369
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({vesting_condition_id: damlTypes.Text.decoder, date: damlTypes.Time.decoder, }); }),
|
|
370
|
+
encode: function (__typed__) {
|
|
371
|
+
return {
|
|
372
|
+
vesting_condition_id: damlTypes.Text.encode(__typed__.vesting_condition_id),
|
|
373
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
,
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
exports.UpdateIssuanceData = {
|
|
382
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({new_issuance_data: Fairmint_OpenCapTable_Types.OcfEquityCompensationIssuanceData.decoder, }); }),
|
|
383
|
+
encode: function (__typed__) {
|
|
384
|
+
return {
|
|
385
|
+
new_issuance_data: Fairmint_OpenCapTable_Types.OcfEquityCompensationIssuanceData.encode(__typed__.new_issuance_data),
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
,
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
exports.PlanSecurityGrant = damlTypes.assembleTemplate(
|
|
394
|
+
{
|
|
395
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.StockPlan:PlanSecurityGrant',
|
|
396
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
397
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
398
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, stock_plan: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.StockPlan)).decoder), stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder, stakeholder: damlTypes.Party.decoder, vesting_terms: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(Fairmint_OpenCapTable_VestingTerms.VestingTerms)).decoder), issuance_data: Fairmint_OpenCapTable_Types.OcfEquityCompensationIssuanceData.decoder, }); }),
|
|
399
|
+
encode: function (__typed__) {
|
|
400
|
+
return {
|
|
401
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
402
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
403
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
404
|
+
stock_plan: damlTypes.Optional(damlTypes.ContractId(exports.StockPlan)).encode(__typed__.stock_plan),
|
|
405
|
+
stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).encode(__typed__.stock_class),
|
|
406
|
+
stakeholder: damlTypes.Party.encode(__typed__.stakeholder),
|
|
407
|
+
vesting_terms: damlTypes.Optional(damlTypes.ContractId(Fairmint_OpenCapTable_VestingTerms.VestingTerms)).encode(__typed__.vesting_terms),
|
|
408
|
+
issuance_data: Fairmint_OpenCapTable_Types.OcfEquityCompensationIssuanceData.encode(__typed__.issuance_data),
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
,
|
|
412
|
+
StartVesting: {
|
|
413
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
414
|
+
choiceName: 'StartVesting',
|
|
415
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.StartVesting.decoder; }),
|
|
416
|
+
argumentEncode: function (__typed__) { return exports.StartVesting.encode(__typed__); },
|
|
417
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityVestingStart).decoder; }),
|
|
418
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityVestingStart).encode(__typed__); },
|
|
419
|
+
},
|
|
420
|
+
Archive: {
|
|
421
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
422
|
+
choiceName: 'Archive',
|
|
423
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
424
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
425
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
426
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
427
|
+
},
|
|
428
|
+
ExerciseGrant: {
|
|
429
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
430
|
+
choiceName: 'ExerciseGrant',
|
|
431
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ExerciseGrant.decoder; }),
|
|
432
|
+
argumentEncode: function (__typed__) { return exports.ExerciseGrant.encode(__typed__); },
|
|
433
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockPosition).decoder; }),
|
|
434
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockPosition).encode(__typed__); },
|
|
435
|
+
},
|
|
436
|
+
UpdateIssuanceData: {
|
|
437
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
438
|
+
choiceName: 'UpdateIssuanceData',
|
|
439
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.UpdateIssuanceData.decoder; }),
|
|
440
|
+
argumentEncode: function (__typed__) { return exports.UpdateIssuanceData.encode(__typed__); },
|
|
441
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityGrant).decoder; }),
|
|
442
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityGrant).encode(__typed__); },
|
|
443
|
+
},
|
|
444
|
+
AcceptGrant: {
|
|
445
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
446
|
+
choiceName: 'AcceptGrant',
|
|
447
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AcceptGrant.decoder; }),
|
|
448
|
+
argumentEncode: function (__typed__) { return exports.AcceptGrant.encode(__typed__); },
|
|
449
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityAcceptance).decoder; }),
|
|
450
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityAcceptance).encode(__typed__); },
|
|
451
|
+
},
|
|
452
|
+
CancelGrant: {
|
|
453
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
454
|
+
choiceName: 'CancelGrant',
|
|
455
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.CancelGrant.decoder; }),
|
|
456
|
+
argumentEncode: function (__typed__) { return exports.CancelGrant.encode(__typed__); },
|
|
457
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityCancellation).decoder; }),
|
|
458
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityCancellation).encode(__typed__); },
|
|
459
|
+
},
|
|
460
|
+
ReleaseGrant: {
|
|
461
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
462
|
+
choiceName: 'ReleaseGrant',
|
|
463
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ReleaseGrant.decoder; }),
|
|
464
|
+
argumentEncode: function (__typed__) { return exports.ReleaseGrant.encode(__typed__); },
|
|
465
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityRelease).decoder; }),
|
|
466
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityRelease).encode(__typed__); },
|
|
467
|
+
},
|
|
468
|
+
RetractGrant: {
|
|
469
|
+
template: function () { return exports.PlanSecurityGrant; },
|
|
470
|
+
choiceName: 'RetractGrant',
|
|
471
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.RetractGrant.decoder; }),
|
|
472
|
+
argumentEncode: function (__typed__) { return exports.RetractGrant.encode(__typed__); },
|
|
473
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PlanSecurityRetraction).decoder; }),
|
|
474
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PlanSecurityRetraction).encode(__typed__); },
|
|
475
|
+
},
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
);
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
damlTypes.registerTemplate(exports.PlanSecurityGrant, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
482
|
+
|