@fairmint/open-captable-protocol-daml-js 0.2.104 → 0.2.106
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/{OpenCapTable-v28/.daml/dist/OpenCapTable-v28-0.0.1.dar → OpenCapTable-v29/.daml/dist/OpenCapTable-v29-0.0.1.dar} +0 -0
- package/README.md +5 -5
- package/generated/ocp-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/CapTable/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/CapTable/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/Document/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.d.ts +5 -4
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +8 -7
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.d.ts +2 -25
- package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +5 -29
- package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.d.ts +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +5 -5
- package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +3 -3
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +36 -0
- package/lib/Fairmint/OpenCapTable/Types/module.js +35 -0
- package/package.json +4 -4
|
@@ -817,3 +817,38 @@ exports.OcfPhoneType = {
|
|
|
817
817
|
encode: function (__typed__) { return __typed__; },
|
|
818
818
|
};
|
|
819
819
|
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
exports.OcfOptionGrantType = {
|
|
823
|
+
OcfOptionNSO: 'OcfOptionNSO',
|
|
824
|
+
OcfOptionISO: 'OcfOptionISO',
|
|
825
|
+
OcfOptionINTL: 'OcfOptionINTL',
|
|
826
|
+
keys: ['OcfOptionNSO','OcfOptionISO','OcfOptionINTL',],
|
|
827
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfOptionGrantType.OcfOptionNSO), jtv.constant(exports.OcfOptionGrantType.OcfOptionISO), jtv.constant(exports.OcfOptionGrantType.OcfOptionINTL)); }),
|
|
828
|
+
encode: function (__typed__) { return __typed__; },
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
exports.OcfInitialSharesAuthorized = {
|
|
834
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfInitialSharesNumeric'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('OcfInitialSharesEnum'), value: exports.OcfAuthorizedShares.decoder, })); }),
|
|
835
|
+
encode: function (__typed__) {
|
|
836
|
+
switch(__typed__.tag) {
|
|
837
|
+
case 'OcfInitialSharesNumeric': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
838
|
+
case 'OcfInitialSharesEnum': return {tag: __typed__.tag, value: exports.OcfAuthorizedShares.encode(__typed__.value)};
|
|
839
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfInitialSharesAuthorized';
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
,
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
exports.OcfAuthorizedShares = {
|
|
848
|
+
OcfAuthorizedSharesNotApplicable: 'OcfAuthorizedSharesNotApplicable',
|
|
849
|
+
OcfAuthorizedSharesUnlimited: 'OcfAuthorizedSharesUnlimited',
|
|
850
|
+
keys: ['OcfAuthorizedSharesNotApplicable','OcfAuthorizedSharesUnlimited',],
|
|
851
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAuthorizedShares.OcfAuthorizedSharesNotApplicable), jtv.constant(exports.OcfAuthorizedShares.OcfAuthorizedSharesUnlimited)); }),
|
|
852
|
+
encode: function (__typed__) { return __typed__; },
|
|
853
|
+
};
|
|
854
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/open-captable-protocol-daml-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.106",
|
|
4
4
|
"description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"daml",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"generated/reports-factory-contract-id.json.d.ts",
|
|
62
62
|
"generated/paymentStreams-factory-contract-id.json",
|
|
63
63
|
"generated/paymentStreams-factory-contract-id.json.d.ts",
|
|
64
|
-
"OpenCapTable-
|
|
64
|
+
"OpenCapTable-v29/.daml/dist/OpenCapTable-v29-0.0.1.dar"
|
|
65
65
|
],
|
|
66
66
|
"scripts": {
|
|
67
67
|
"backup-dar": "tsx scripts/backup-dar.ts",
|
|
68
68
|
"build": "tsx scripts/codegen/generate-captable.ts && cd Test && PATH=\"$HOME/.dpm/bin:$PATH\" dpm build",
|
|
69
69
|
"build:ts": "tsc",
|
|
70
|
-
"clean": "for pkg in Shared OpenCapTableReports-v01 OpenCapTable-
|
|
71
|
-
"codegen": "npm run build && cd OpenCapTable-
|
|
70
|
+
"clean": "for pkg in Shared OpenCapTableReports-v01 OpenCapTable-v29 OpenCapTableProofOfOwnership-v01 CantonPayments CouponMinter Test; do (cd $pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm clean); done",
|
|
71
|
+
"codegen": "npm run build && cd OpenCapTable-v29 && PATH=\"$HOME/.dpm/bin:$PATH\" dpm codegen-js && cd .. && cd Shared && PATH=\"$HOME/.dpm/bin:$PATH\" dpm codegen-js && cd .. && cd OpenCapTableReports-v01 && PATH=\"$HOME/.dpm/bin:$PATH\" dpm codegen-js && cd .. && cd CantonPayments && PATH=\"$HOME/.dpm/bin:$PATH\" dpm codegen-js && cd .. && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && tsx scripts/fix-splice-refs.ts && npm run build:ts",
|
|
72
72
|
"create-couponMinter": "tsx scripts/create-couponMinter.ts",
|
|
73
73
|
"create-factory:ocp": "npm run codegen && tsx scripts/create-ocp-factory.ts --network devnet && tsx scripts/create-ocp-factory.ts --network mainnet",
|
|
74
74
|
"create-factory:paymentStreams": "npm run codegen && tsx scripts/create-paymentStreams-factory.ts --network devnet && tsx scripts/create-paymentStreams-factory.ts --network mainnet",
|