@fairmint/open-captable-protocol-daml-js 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/ocp-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/Document/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/Document/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/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +20 -10
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +26 -14
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/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/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/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mainnet": {
|
|
3
|
-
"ocpFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"ocpFactoryContractId": "0050f165743debe2a5ae9d185237d8aabe3381c6515169517b4c96d4c68b754e13ca111220f9dd514c0f93d333095bab80f4c12a29750de3c6c0ffec5d36c9354c1fd69c4a",
|
|
4
|
+
"templateId": "d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
5
5
|
},
|
|
6
6
|
"devnet": {
|
|
7
|
-
"ocpFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"ocpFactoryContractId": "00ca2497ecf4db2527891cf34cf7749b2966b2e54baa365f6adad546c23be2e7d2ca111220074d281f707dfb90a8ba27a24fd30d75757381703731b49c25f2de9c39420291",
|
|
8
|
+
"templateId": "d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -30,7 +30,7 @@ export declare interface DocumentInterface {
|
|
|
30
30
|
ArchiveByIssuer: damlTypes.Choice<Document, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const Document:
|
|
33
|
-
damlTypes.Template<Document, undefined, '#OpenCapTable-
|
|
33
|
+
damlTypes.Template<Document, undefined, '#OpenCapTable-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -102,7 +102,7 @@ export declare interface IssuerInterface {
|
|
|
102
102
|
ArchiveIssuer: damlTypes.Choice<Issuer, ArchiveIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
103
103
|
}
|
|
104
104
|
export declare const Issuer:
|
|
105
|
-
damlTypes.Template<Issuer, undefined, '#OpenCapTable-
|
|
105
|
+
damlTypes.Template<Issuer, undefined, '#OpenCapTable-v17:Fairmint.OpenCapTable.Issuer:Issuer'> &
|
|
106
106
|
damlTypes.ToInterface<Issuer, never> &
|
|
107
107
|
IssuerInterface;
|
|
108
108
|
|
|
@@ -108,7 +108,7 @@ exports.CreateStockClass = {
|
|
|
108
108
|
|
|
109
109
|
exports.Issuer = damlTypes.assembleTemplate(
|
|
110
110
|
{
|
|
111
|
-
templateId: '#OpenCapTable-
|
|
111
|
+
templateId: '#OpenCapTable-v17:Fairmint.OpenCapTable.Issuer:Issuer',
|
|
112
112
|
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
113
113
|
keyEncode: function () { throw 'EncodeError'; },
|
|
114
114
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, issuer_data: exports.OcfIssuerData.decoder, }); }),
|
|
@@ -188,7 +188,7 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
188
188
|
);
|
|
189
189
|
|
|
190
190
|
|
|
191
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
191
|
+
damlTypes.registerTemplate(exports.Issuer, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
|
|
@@ -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-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
86
86
|
|
|
@@ -32,7 +32,7 @@ export declare interface OcpFactoryInterface {
|
|
|
32
32
|
AuthorizeIssuer: damlTypes.Choice<OcpFactory, AuthorizeIssuer, damlTypes.ContractId<Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<OcpFactory, undefined>>;
|
|
33
33
|
}
|
|
34
34
|
export declare const OcpFactory:
|
|
35
|
-
damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-
|
|
35
|
+
damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
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-v17:Fairmint.OpenCapTable.Stakeholder:Stakeholder'> &
|
|
34
34
|
damlTypes.ToInterface<Stakeholder, never> &
|
|
35
35
|
StakeholderInterface;
|
|
36
36
|
|
|
@@ -75,9 +75,8 @@ export declare const OcfStakeholderType:
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
export declare type OcfContactInfoWithoutName = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
|
|
78
|
+
phone_numbers: Fairmint_OpenCapTable_Types.OcfPhone[];
|
|
79
|
+
emails: Fairmint_OpenCapTable_Types.OcfEmail[];
|
|
81
80
|
};
|
|
82
81
|
|
|
83
82
|
export declare const OcfContactInfoWithoutName:
|
|
@@ -87,10 +86,9 @@ export declare const OcfContactInfoWithoutName:
|
|
|
87
86
|
|
|
88
87
|
|
|
89
88
|
export declare type OcfContactInfo = {
|
|
90
|
-
name:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
|
|
89
|
+
name: OcfName;
|
|
90
|
+
phone_numbers: Fairmint_OpenCapTable_Types.OcfPhone[];
|
|
91
|
+
emails: Fairmint_OpenCapTable_Types.OcfEmail[];
|
|
94
92
|
};
|
|
95
93
|
|
|
96
94
|
export declare const OcfContactInfo:
|
|
@@ -99,11 +97,23 @@ export declare const OcfContactInfo:
|
|
|
99
97
|
;
|
|
100
98
|
|
|
101
99
|
|
|
100
|
+
export declare type OcfName = {
|
|
101
|
+
legal_name: string;
|
|
102
|
+
first_name: damlTypes.Optional<string>;
|
|
103
|
+
last_name: damlTypes.Optional<string>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export declare const OcfName:
|
|
107
|
+
damlTypes.Serializable<OcfName> & {
|
|
108
|
+
}
|
|
109
|
+
;
|
|
110
|
+
|
|
111
|
+
|
|
102
112
|
export declare type OcfStakeholderData = {
|
|
103
|
-
name:
|
|
113
|
+
name: OcfName;
|
|
104
114
|
stakeholder_type: OcfStakeholderType;
|
|
105
115
|
issuer_assigned_id: damlTypes.Optional<string>;
|
|
106
|
-
current_relationships:
|
|
116
|
+
current_relationships: Fairmint_OpenCapTable_Types.OcfStakeholderRelationshipType[];
|
|
107
117
|
current_status: damlTypes.Optional<OcfStakeholderStatusType>;
|
|
108
118
|
primary_contact: damlTypes.Optional<OcfContactInfo>;
|
|
109
119
|
contact_info: damlTypes.Optional<OcfContactInfoWithoutName>;
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.Stakeholder = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -94,12 +94,11 @@ exports.OcfStakeholderType = {
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
exports.OcfContactInfoWithoutName = {
|
|
97
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({
|
|
97
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).decoder, emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).decoder, }); }),
|
|
98
98
|
encode: function (__typed__) {
|
|
99
99
|
return {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
address: damlTypes.Optional(Fairmint_OpenCapTable_Types.OcfAddress).encode(__typed__.address),
|
|
100
|
+
phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).encode(__typed__.phone_numbers),
|
|
101
|
+
emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).encode(__typed__.emails),
|
|
103
102
|
};
|
|
104
103
|
}
|
|
105
104
|
,
|
|
@@ -108,13 +107,26 @@ exports.OcfContactInfoWithoutName = {
|
|
|
108
107
|
|
|
109
108
|
|
|
110
109
|
exports.OcfContactInfo = {
|
|
111
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name:
|
|
110
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: exports.OcfName.decoder, phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).decoder, emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).decoder, }); }),
|
|
112
111
|
encode: function (__typed__) {
|
|
113
112
|
return {
|
|
114
|
-
name:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
name: exports.OcfName.encode(__typed__.name),
|
|
114
|
+
phone_numbers: damlTypes.List(Fairmint_OpenCapTable_Types.OcfPhone).encode(__typed__.phone_numbers),
|
|
115
|
+
emails: damlTypes.List(Fairmint_OpenCapTable_Types.OcfEmail).encode(__typed__.emails),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
,
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
exports.OcfName = {
|
|
124
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, first_name: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), last_name: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
125
|
+
encode: function (__typed__) {
|
|
126
|
+
return {
|
|
127
|
+
legal_name: damlTypes.Text.encode(__typed__.legal_name),
|
|
128
|
+
first_name: damlTypes.Optional(damlTypes.Text).encode(__typed__.first_name),
|
|
129
|
+
last_name: damlTypes.Optional(damlTypes.Text).encode(__typed__.last_name),
|
|
118
130
|
};
|
|
119
131
|
}
|
|
120
132
|
,
|
|
@@ -123,13 +135,13 @@ exports.OcfContactInfo = {
|
|
|
123
135
|
|
|
124
136
|
|
|
125
137
|
exports.OcfStakeholderData = {
|
|
126
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name:
|
|
138
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: exports.OcfName.decoder, stakeholder_type: exports.OcfStakeholderType.decoder, issuer_assigned_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), current_relationships: damlTypes.List(Fairmint_OpenCapTable_Types.OcfStakeholderRelationshipType).decoder, current_status: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStakeholderStatusType).decoder), primary_contact: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfo).decoder), contact_info: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfoWithoutName).decoder), addresses: damlTypes.List(Fairmint_OpenCapTable_Types.OcfAddress).decoder, tax_ids: damlTypes.List(Fairmint_OpenCapTable_Types.OcfTaxID).decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
127
139
|
encode: function (__typed__) {
|
|
128
140
|
return {
|
|
129
|
-
name:
|
|
141
|
+
name: exports.OcfName.encode(__typed__.name),
|
|
130
142
|
stakeholder_type: exports.OcfStakeholderType.encode(__typed__.stakeholder_type),
|
|
131
143
|
issuer_assigned_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.issuer_assigned_id),
|
|
132
|
-
current_relationships: damlTypes.List(
|
|
144
|
+
current_relationships: damlTypes.List(Fairmint_OpenCapTable_Types.OcfStakeholderRelationshipType).encode(__typed__.current_relationships),
|
|
133
145
|
current_status: damlTypes.Optional(exports.OcfStakeholderStatusType).encode(__typed__.current_status),
|
|
134
146
|
primary_contact: damlTypes.Optional(exports.OcfContactInfo).encode(__typed__.primary_contact),
|
|
135
147
|
contact_info: damlTypes.Optional(exports.OcfContactInfoWithoutName).encode(__typed__.contact_info),
|
|
@@ -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-v17:Fairmint.OpenCapTable.StockClass:StockClass'> &
|
|
34
34
|
damlTypes.ToInterface<StockClass, never> &
|
|
35
35
|
StockClassInterface;
|
|
36
36
|
|
|
@@ -30,7 +30,7 @@ exports.ArchiveByIssuer = {
|
|
|
30
30
|
|
|
31
31
|
exports.StockClass = damlTypes.assembleTemplate(
|
|
32
32
|
{
|
|
33
|
-
templateId: '#OpenCapTable-
|
|
33
|
+
templateId: '#OpenCapTable-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
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-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
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-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -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-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
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-v17: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-v17: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, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "daml build --all",
|
|
35
35
|
"build:ts": "tsc",
|
|
36
36
|
"clean": "daml clean --all",
|
|
37
|
-
"codegen": "npm run build && cd OpenCapTable-
|
|
37
|
+
"codegen": "npm run build && cd OpenCapTable-v17 && 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",
|