@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,50 @@
|
|
|
1
|
+
// Generated from Fairmint/OpenCapTable/Valuation.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
12
|
+
|
|
13
|
+
import * as Fairmint_OpenCapTable_StockClass from '../../../Fairmint/OpenCapTable/StockClass/module';
|
|
14
|
+
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
15
|
+
|
|
16
|
+
export declare type UpdateValuationData = {
|
|
17
|
+
new_valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const UpdateValuationData:
|
|
21
|
+
damlTypes.Serializable<UpdateValuationData> & {
|
|
22
|
+
}
|
|
23
|
+
;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export declare type Valuation = {
|
|
27
|
+
issuer: damlTypes.Party;
|
|
28
|
+
system_operator: damlTypes.Party;
|
|
29
|
+
featured_app_right: damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight>;
|
|
30
|
+
stock_class: damlTypes.ContractId<Fairmint_OpenCapTable_StockClass.StockClass>;
|
|
31
|
+
valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare interface ValuationInterface {
|
|
35
|
+
Archive: damlTypes.Choice<Valuation, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Valuation, undefined>>;
|
|
36
|
+
UpdateValuationData: damlTypes.Choice<Valuation, UpdateValuationData, damlTypes.ContractId<Valuation>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Valuation, undefined>>;
|
|
37
|
+
}
|
|
38
|
+
export declare const Valuation:
|
|
39
|
+
damlTypes.Template<Valuation, undefined, '#OpenCapTable-v12:Fairmint.OpenCapTable.Valuation:Valuation'> &
|
|
40
|
+
damlTypes.ToInterface<Valuation, never> &
|
|
41
|
+
ValuationInterface;
|
|
42
|
+
|
|
43
|
+
export declare namespace Valuation {
|
|
44
|
+
export type CreateEvent = damlLedger.CreateEvent<Valuation, undefined, typeof Valuation.templateId>
|
|
45
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<Valuation, typeof Valuation.templateId>
|
|
46
|
+
export type Event = damlLedger.Event<Valuation, undefined, typeof Valuation.templateId>
|
|
47
|
+
export type QueryResult = damlLedger.QueryResult<Valuation, undefined, typeof Valuation.templateId>
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
|
|
21
|
+
|
|
22
|
+
exports.UpdateValuationData = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({new_valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData.decoder, }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
new_valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData.encode(__typed__.new_valuation_data),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.Valuation = damlTypes.assembleTemplate(
|
|
35
|
+
{
|
|
36
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.Valuation:Valuation',
|
|
37
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
38
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
39
|
+
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_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder, valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData.decoder, }); }),
|
|
40
|
+
encode: function (__typed__) {
|
|
41
|
+
return {
|
|
42
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
43
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
44
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
45
|
+
stock_class: damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).encode(__typed__.stock_class),
|
|
46
|
+
valuation_data: Fairmint_OpenCapTable_Types.OcfValuationData.encode(__typed__.valuation_data),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
,
|
|
50
|
+
Archive: {
|
|
51
|
+
template: function () { return exports.Valuation; },
|
|
52
|
+
choiceName: 'Archive',
|
|
53
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
54
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
55
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
56
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
57
|
+
},
|
|
58
|
+
UpdateValuationData: {
|
|
59
|
+
template: function () { return exports.Valuation; },
|
|
60
|
+
choiceName: 'UpdateValuationData',
|
|
61
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.UpdateValuationData.decoder; }),
|
|
62
|
+
argumentEncode: function (__typed__) { return exports.UpdateValuationData.encode(__typed__); },
|
|
63
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Valuation).decoder; }),
|
|
64
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Valuation).encode(__typed__); },
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
damlTypes.registerTemplate(exports.Valuation, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
72
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Generated from Fairmint/OpenCapTable/VestingTerms.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
12
|
+
|
|
13
|
+
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
14
|
+
|
|
15
|
+
export declare type UpdateVestingTerms = {
|
|
16
|
+
new_vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare const UpdateVestingTerms:
|
|
20
|
+
damlTypes.Serializable<UpdateVestingTerms> & {
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export declare type VestingTerms = {
|
|
26
|
+
issuer: damlTypes.Party;
|
|
27
|
+
system_operator: damlTypes.Party;
|
|
28
|
+
featured_app_right: damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight>;
|
|
29
|
+
vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export declare interface VestingTermsInterface {
|
|
33
|
+
Archive: damlTypes.Choice<VestingTerms, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
34
|
+
UpdateVestingTerms: damlTypes.Choice<VestingTerms, UpdateVestingTerms, damlTypes.ContractId<VestingTerms>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<VestingTerms, undefined>>;
|
|
35
|
+
}
|
|
36
|
+
export declare const VestingTerms:
|
|
37
|
+
damlTypes.Template<VestingTerms, undefined, '#OpenCapTable-v12:Fairmint.OpenCapTable.VestingTerms:VestingTerms'> &
|
|
38
|
+
damlTypes.ToInterface<VestingTerms, never> &
|
|
39
|
+
VestingTermsInterface;
|
|
40
|
+
|
|
41
|
+
export declare namespace VestingTerms {
|
|
42
|
+
export type CreateEvent = damlLedger.CreateEvent<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
43
|
+
export type ArchiveEvent = damlLedger.ArchiveEvent<VestingTerms, typeof VestingTerms.templateId>
|
|
44
|
+
export type Event = damlLedger.Event<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
45
|
+
export type QueryResult = damlLedger.QueryResult<VestingTerms, undefined, typeof VestingTerms.templateId>
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.UpdateVestingTerms = {
|
|
22
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({new_vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData.decoder, }); }),
|
|
23
|
+
encode: function (__typed__) {
|
|
24
|
+
return {
|
|
25
|
+
new_vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData.encode(__typed__.new_vesting_terms_data),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.VestingTerms = damlTypes.assembleTemplate(
|
|
34
|
+
{
|
|
35
|
+
templateId: '#OpenCapTable-v12:Fairmint.OpenCapTable.VestingTerms:VestingTerms',
|
|
36
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
37
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
38
|
+
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, vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData.decoder, }); }),
|
|
39
|
+
encode: function (__typed__) {
|
|
40
|
+
return {
|
|
41
|
+
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
42
|
+
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
43
|
+
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
44
|
+
vesting_terms_data: Fairmint_OpenCapTable_Types.OcfVestingTermsData.encode(__typed__.vesting_terms_data),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
,
|
|
48
|
+
Archive: {
|
|
49
|
+
template: function () { return exports.VestingTerms; },
|
|
50
|
+
choiceName: 'Archive',
|
|
51
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
52
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
53
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
54
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
55
|
+
},
|
|
56
|
+
UpdateVestingTerms: {
|
|
57
|
+
template: function () { return exports.VestingTerms; },
|
|
58
|
+
choiceName: 'UpdateVestingTerms',
|
|
59
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.UpdateVestingTerms.decoder; }),
|
|
60
|
+
argumentEncode: function (__typed__) { return exports.UpdateVestingTerms.encode(__typed__); },
|
|
61
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.VestingTerms).decoder; }),
|
|
62
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.VestingTerms).encode(__typed__); },
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
damlTypes.registerTemplate(exports.VestingTerms, ['14af9af7110ec2847e9a3e482f6ca1b480704c603c3e96b0cafa095fe58cd1f0', '#OpenCapTable-v12']);
|
|
70
|
+
|
|
@@ -4,9 +4,17 @@ import * as IssuerAuthorization from './IssuerAuthorization';
|
|
|
4
4
|
export { IssuerAuthorization } ;
|
|
5
5
|
import * as OcpFactory from './OcpFactory';
|
|
6
6
|
export { OcpFactory } ;
|
|
7
|
+
import * as Stakeholder from './Stakeholder';
|
|
8
|
+
export { Stakeholder } ;
|
|
7
9
|
import * as StockClass from './StockClass';
|
|
8
10
|
export { StockClass } ;
|
|
9
|
-
import * as
|
|
10
|
-
export {
|
|
11
|
+
import * as StockLegendTemplate from './StockLegendTemplate';
|
|
12
|
+
export { StockLegendTemplate } ;
|
|
13
|
+
import * as StockPlan from './StockPlan';
|
|
14
|
+
export { StockPlan } ;
|
|
11
15
|
import * as Types from './Types';
|
|
12
16
|
export { Types } ;
|
|
17
|
+
import * as Valuation from './Valuation';
|
|
18
|
+
export { Valuation } ;
|
|
19
|
+
import * as VestingTerms from './VestingTerms';
|
|
20
|
+
export { VestingTerms } ;
|
|
@@ -11,9 +11,17 @@ var IssuerAuthorization = require('./IssuerAuthorization');
|
|
|
11
11
|
exports.IssuerAuthorization = IssuerAuthorization;
|
|
12
12
|
var OcpFactory = require('./OcpFactory');
|
|
13
13
|
exports.OcpFactory = OcpFactory;
|
|
14
|
+
var Stakeholder = require('./Stakeholder');
|
|
15
|
+
exports.Stakeholder = Stakeholder;
|
|
14
16
|
var StockClass = require('./StockClass');
|
|
15
17
|
exports.StockClass = StockClass;
|
|
16
|
-
var
|
|
17
|
-
exports.
|
|
18
|
+
var StockLegendTemplate = require('./StockLegendTemplate');
|
|
19
|
+
exports.StockLegendTemplate = StockLegendTemplate;
|
|
20
|
+
var StockPlan = require('./StockPlan');
|
|
21
|
+
exports.StockPlan = StockPlan;
|
|
18
22
|
var Types = require('./Types');
|
|
19
23
|
exports.Types = Types;
|
|
24
|
+
var Valuation = require('./Valuation');
|
|
25
|
+
exports.Valuation = Valuation;
|
|
26
|
+
var VestingTerms = require('./VestingTerms');
|
|
27
|
+
exports.VestingTerms = VestingTerms;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
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-v12 && 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",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@daml/ledger": "^2.10.2",
|
|
53
53
|
"@daml/types": "^2.10.2",
|
|
54
|
-
"@fairmint/canton-node-sdk": "^0.0.
|
|
54
|
+
"@fairmint/canton-node-sdk": "^0.0.85"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^24.2.0",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// Generated from Fairmint/OpenCapTable/StockPosition.daml
|
|
2
|
-
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
-
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
-
import * as damlTypes from '@daml/types';
|
|
7
|
-
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
-
import * as damlLedger from '@daml/ledger';
|
|
9
|
-
|
|
10
|
-
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
-
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
12
|
-
|
|
13
|
-
import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
|
|
14
|
-
|
|
15
|
-
export declare type AcceptTransfer = {
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export declare const AcceptTransfer:
|
|
19
|
-
damlTypes.Serializable<AcceptTransfer> & {
|
|
20
|
-
}
|
|
21
|
-
;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare type StockTransferProposal = {
|
|
25
|
-
system_operator: damlTypes.Party;
|
|
26
|
-
issuer: damlTypes.Party;
|
|
27
|
-
owner: damlTypes.Party;
|
|
28
|
-
recipient: damlTypes.Party;
|
|
29
|
-
quantity: damlTypes.Int;
|
|
30
|
-
featured_app_right: damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight>;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export declare interface StockTransferProposalInterface {
|
|
34
|
-
Archive: damlTypes.Choice<StockTransferProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockTransferProposal, undefined>>;
|
|
35
|
-
AcceptTransfer: damlTypes.Choice<StockTransferProposal, AcceptTransfer, damlTypes.ContractId<StockPosition>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockTransferProposal, undefined>>;
|
|
36
|
-
}
|
|
37
|
-
export declare const StockTransferProposal:
|
|
38
|
-
damlTypes.Template<StockTransferProposal, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockTransferProposal'> &
|
|
39
|
-
damlTypes.ToInterface<StockTransferProposal, never> &
|
|
40
|
-
StockTransferProposalInterface;
|
|
41
|
-
|
|
42
|
-
export declare namespace StockTransferProposal {
|
|
43
|
-
export type CreateEvent = damlLedger.CreateEvent<StockTransferProposal, undefined, typeof StockTransferProposal.templateId>
|
|
44
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<StockTransferProposal, typeof StockTransferProposal.templateId>
|
|
45
|
-
export type Event = damlLedger.Event<StockTransferProposal, undefined, typeof StockTransferProposal.templateId>
|
|
46
|
-
export type QueryResult = damlLedger.QueryResult<StockTransferProposal, undefined, typeof StockTransferProposal.templateId>
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export declare type ProposeTransfer = {
|
|
52
|
-
transfer: Fairmint_OpenCapTable_Types.TransferOperation;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export declare const ProposeTransfer:
|
|
56
|
-
damlTypes.Serializable<ProposeTransfer> & {
|
|
57
|
-
}
|
|
58
|
-
;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export declare type StockPosition = {
|
|
62
|
-
system_operator: damlTypes.Party;
|
|
63
|
-
issuer: damlTypes.Party;
|
|
64
|
-
owner: damlTypes.Party;
|
|
65
|
-
quantity: damlTypes.Int;
|
|
66
|
-
featured_app_right: damlTypes.ContractId<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight>;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export declare interface StockPositionInterface {
|
|
70
|
-
ProposeTransfer: damlTypes.Choice<StockPosition, ProposeTransfer, damlTypes.ContractId<StockTransferProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPosition, undefined>>;
|
|
71
|
-
Archive: damlTypes.Choice<StockPosition, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPosition, undefined>>;
|
|
72
|
-
}
|
|
73
|
-
export declare const StockPosition:
|
|
74
|
-
damlTypes.Template<StockPosition, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockPosition'> &
|
|
75
|
-
damlTypes.ToInterface<StockPosition, never> &
|
|
76
|
-
StockPositionInterface;
|
|
77
|
-
|
|
78
|
-
export declare namespace StockPosition {
|
|
79
|
-
export type CreateEvent = damlLedger.CreateEvent<StockPosition, undefined, typeof StockPosition.templateId>
|
|
80
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<StockPosition, typeof StockPosition.templateId>
|
|
81
|
-
export type Event = damlLedger.Event<StockPosition, undefined, typeof StockPosition.templateId>
|
|
82
|
-
export type QueryResult = damlLedger.QueryResult<StockPosition, undefined, typeof StockPosition.templateId>
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
@@ -1,124 +0,0 @@
|
|
|
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_Types = require('../../../Fairmint/OpenCapTable/Types/module');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.AcceptTransfer = {
|
|
22
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
23
|
-
encode: function (__typed__) {
|
|
24
|
-
return {
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.StockTransferProposal = damlTypes.assembleTemplate(
|
|
33
|
-
{
|
|
34
|
-
templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockTransferProposal',
|
|
35
|
-
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
36
|
-
keyEncode: function () { throw 'EncodeError'; },
|
|
37
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, issuer: damlTypes.Party.decoder, owner: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, quantity: damlTypes.Int.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
|
|
38
|
-
encode: function (__typed__) {
|
|
39
|
-
return {
|
|
40
|
-
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
41
|
-
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
42
|
-
owner: damlTypes.Party.encode(__typed__.owner),
|
|
43
|
-
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
44
|
-
quantity: damlTypes.Int.encode(__typed__.quantity),
|
|
45
|
-
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
,
|
|
49
|
-
Archive: {
|
|
50
|
-
template: function () { return exports.StockTransferProposal; },
|
|
51
|
-
choiceName: 'Archive',
|
|
52
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
53
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
54
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
55
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
56
|
-
},
|
|
57
|
-
AcceptTransfer: {
|
|
58
|
-
template: function () { return exports.StockTransferProposal; },
|
|
59
|
-
choiceName: 'AcceptTransfer',
|
|
60
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AcceptTransfer.decoder; }),
|
|
61
|
-
argumentEncode: function (__typed__) { return exports.AcceptTransfer.encode(__typed__); },
|
|
62
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.StockPosition).decoder; }),
|
|
63
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.StockPosition).encode(__typed__); },
|
|
64
|
-
},
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
damlTypes.registerTemplate(exports.StockTransferProposal, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
exports.ProposeTransfer = {
|
|
75
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({transfer: Fairmint_OpenCapTable_Types.TransferOperation.decoder, }); }),
|
|
76
|
-
encode: function (__typed__) {
|
|
77
|
-
return {
|
|
78
|
-
transfer: Fairmint_OpenCapTable_Types.TransferOperation.encode(__typed__.transfer),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
,
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
exports.StockPosition = damlTypes.assembleTemplate(
|
|
87
|
-
{
|
|
88
|
-
templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockPosition',
|
|
89
|
-
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
90
|
-
keyEncode: function () { throw 'EncodeError'; },
|
|
91
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, issuer: damlTypes.Party.decoder, owner: damlTypes.Party.decoder, quantity: damlTypes.Int.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
|
|
92
|
-
encode: function (__typed__) {
|
|
93
|
-
return {
|
|
94
|
-
system_operator: damlTypes.Party.encode(__typed__.system_operator),
|
|
95
|
-
issuer: damlTypes.Party.encode(__typed__.issuer),
|
|
96
|
-
owner: damlTypes.Party.encode(__typed__.owner),
|
|
97
|
-
quantity: damlTypes.Int.encode(__typed__.quantity),
|
|
98
|
-
featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).encode(__typed__.featured_app_right),
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
,
|
|
102
|
-
ProposeTransfer: {
|
|
103
|
-
template: function () { return exports.StockPosition; },
|
|
104
|
-
choiceName: 'ProposeTransfer',
|
|
105
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposeTransfer.decoder; }),
|
|
106
|
-
argumentEncode: function (__typed__) { return exports.ProposeTransfer.encode(__typed__); },
|
|
107
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.StockTransferProposal).decoder; }),
|
|
108
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.StockTransferProposal).encode(__typed__); },
|
|
109
|
-
},
|
|
110
|
-
Archive: {
|
|
111
|
-
template: function () { return exports.StockPosition; },
|
|
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.StockPosition, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
|
|
124
|
-
|
|
File without changes
|
|
File without changes
|