@fairmint/open-captable-protocol-daml-js 0.0.12 → 0.0.14
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/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +12 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +27 -7
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPosition/module.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/ocp-factory-contract-id.json +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,16 @@ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
|
|
|
12
12
|
import * as Fairmint_OpenCapTable_OcfObjects from '../../../Fairmint/OpenCapTable/OcfObjects/module';
|
|
13
13
|
import * as Fairmint_OpenCapTable_StockClass from '../../../Fairmint/OpenCapTable/StockClass/module';
|
|
14
14
|
|
|
15
|
+
export declare type UpdateIssuerData = {
|
|
16
|
+
new_issuer_data: Fairmint_OpenCapTable_OcfObjects.OcfIssuerData;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare const UpdateIssuerData:
|
|
20
|
+
damlTypes.Serializable<UpdateIssuerData> & {
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
|
|
24
|
+
|
|
15
25
|
export declare type CreateStockClass = {
|
|
16
26
|
stock_class_data: Fairmint_OpenCapTable_OcfObjects.OcfStockClassData;
|
|
17
27
|
};
|
|
@@ -29,8 +39,9 @@ export declare type Issuer = {
|
|
|
29
39
|
};
|
|
30
40
|
|
|
31
41
|
export declare interface IssuerInterface {
|
|
32
|
-
Archive: damlTypes.Choice<Issuer, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
33
42
|
CreateStockClass: damlTypes.Choice<Issuer, CreateStockClass, damlTypes.ContractId<Fairmint_OpenCapTable_StockClass.StockClass>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
43
|
+
Archive: damlTypes.Choice<Issuer, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
44
|
+
UpdateIssuerData: damlTypes.Choice<Issuer, UpdateIssuerData, damlTypes.ContractId<Issuer>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
|
|
34
45
|
}
|
|
35
46
|
export declare const Issuer:
|
|
36
47
|
damlTypes.Template<Issuer, undefined, '#OpenCapTable-v02:Fairmint.OpenCapTable.Issuer:Issuer'> &
|
|
@@ -18,6 +18,18 @@ var Fairmint_OpenCapTable_OcfObjects = require('../../../Fairmint/OpenCapTable/O
|
|
|
18
18
|
var Fairmint_OpenCapTable_StockClass = require('../../../Fairmint/OpenCapTable/StockClass/module');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
exports.UpdateIssuerData = {
|
|
22
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({new_issuer_data: Fairmint_OpenCapTable_OcfObjects.OcfIssuerData.decoder, }); }),
|
|
23
|
+
encode: function (__typed__) {
|
|
24
|
+
return {
|
|
25
|
+
new_issuer_data: Fairmint_OpenCapTable_OcfObjects.OcfIssuerData.encode(__typed__.new_issuer_data),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
21
33
|
exports.CreateStockClass = {
|
|
22
34
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({stock_class_data: Fairmint_OpenCapTable_OcfObjects.OcfStockClassData.decoder, }); }),
|
|
23
35
|
encode: function (__typed__) {
|
|
@@ -44,6 +56,14 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
44
56
|
};
|
|
45
57
|
}
|
|
46
58
|
,
|
|
59
|
+
CreateStockClass: {
|
|
60
|
+
template: function () { return exports.Issuer; },
|
|
61
|
+
choiceName: 'CreateStockClass',
|
|
62
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.CreateStockClass.decoder; }),
|
|
63
|
+
argumentEncode: function (__typed__) { return exports.CreateStockClass.encode(__typed__); },
|
|
64
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).decoder; }),
|
|
65
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(Fairmint_OpenCapTable_StockClass.StockClass).encode(__typed__); },
|
|
66
|
+
},
|
|
47
67
|
Archive: {
|
|
48
68
|
template: function () { return exports.Issuer; },
|
|
49
69
|
choiceName: 'Archive',
|
|
@@ -52,18 +72,18 @@ exports.Issuer = damlTypes.assembleTemplate(
|
|
|
52
72
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
53
73
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
54
74
|
},
|
|
55
|
-
|
|
75
|
+
UpdateIssuerData: {
|
|
56
76
|
template: function () { return exports.Issuer; },
|
|
57
|
-
choiceName: '
|
|
58
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.
|
|
59
|
-
argumentEncode: function (__typed__) { return exports.
|
|
60
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(
|
|
61
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(
|
|
77
|
+
choiceName: 'UpdateIssuerData',
|
|
78
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.UpdateIssuerData.decoder; }),
|
|
79
|
+
argumentEncode: function (__typed__) { return exports.UpdateIssuerData.encode(__typed__); },
|
|
80
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Issuer).decoder; }),
|
|
81
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Issuer).encode(__typed__); },
|
|
62
82
|
},
|
|
63
83
|
}
|
|
64
84
|
|
|
65
85
|
);
|
|
66
86
|
|
|
67
87
|
|
|
68
|
-
damlTypes.registerTemplate(exports.Issuer, ['
|
|
88
|
+
damlTypes.registerTemplate(exports.Issuer, ['bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738', '#OpenCapTable-v02']);
|
|
69
89
|
|
|
@@ -83,5 +83,5 @@ exports.IssuerAuthorization = damlTypes.assembleTemplate(
|
|
|
83
83
|
);
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
damlTypes.registerTemplate(exports.IssuerAuthorization, ['
|
|
86
|
+
damlTypes.registerTemplate(exports.IssuerAuthorization, ['bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738', '#OpenCapTable-v02']);
|
|
87
87
|
|
|
@@ -62,5 +62,5 @@ exports.OcpFactory = damlTypes.assembleTemplate(
|
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
damlTypes.registerTemplate(exports.OcpFactory, ['
|
|
65
|
+
damlTypes.registerTemplate(exports.OcpFactory, ['bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738', '#OpenCapTable-v02']);
|
|
66
66
|
|
|
@@ -67,5 +67,5 @@ exports.StockClass = damlTypes.assembleTemplate(
|
|
|
67
67
|
);
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
damlTypes.registerTemplate(exports.StockClass, ['
|
|
70
|
+
damlTypes.registerTemplate(exports.StockClass, ['bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738', '#OpenCapTable-v02']);
|
|
71
71
|
|
|
@@ -65,7 +65,7 @@ exports.StockTransferProposal = damlTypes.assembleTemplate(
|
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
damlTypes.registerTemplate(exports.StockTransferProposal, ['
|
|
68
|
+
damlTypes.registerTemplate(exports.StockTransferProposal, ['bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738', '#OpenCapTable-v02']);
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -117,5 +117,5 @@ exports.StockPosition = damlTypes.assembleTemplate(
|
|
|
117
117
|
);
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
damlTypes.registerTemplate(exports.StockPosition, ['
|
|
120
|
+
damlTypes.registerTemplate(exports.StockPosition, ['bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738', '#OpenCapTable-v02']);
|
|
121
121
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as Fairmint from './Fairmint';
|
|
2
2
|
import * as DA from './DA';
|
|
3
3
|
export { Fairmint, DA } ;
|
|
4
|
-
export declare const packageId = '
|
|
4
|
+
export declare const packageId = 'bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738';
|
package/lib/index.js
CHANGED
|
@@ -9,4 +9,4 @@ var Fairmint = require('./Fairmint');
|
|
|
9
9
|
exports.Fairmint = Fairmint;
|
|
10
10
|
var DA = require('./DA');
|
|
11
11
|
exports.DA = DA;
|
|
12
|
-
exports.packageId = '
|
|
12
|
+
exports.packageId = 'bca88412711546841e7cebb8b49c804dd931f92a80258f2caaa0af2c213ab738';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ocpFactoryContractId": "
|
|
2
|
+
"ocpFactoryContractId": "00d2a27721772338e4ba408562a88a12224d027181c5e375ce2c6687eec739123dca11122033b8da37e17ee918e38457577594b5fb0db83048182010939b3b58261bde32d7",
|
|
3
3
|
"templateId": "#OpenCapTable-v02:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
|
|
4
4
|
}
|