@fairmint/open-captable-protocol-daml-js 0.2.40 → 0.2.41
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/CantonPayments/Airdrop/Airdrop/module.d.ts +11 -0
- package/lib/CantonPayments/Airdrop/Airdrop/module.js +22 -2
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/PartyMigrationProposal/module.js +1 -1
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +1 -1
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +1 -1
- package/package.json +3 -3
|
@@ -16,6 +16,7 @@ export declare type Airdrop_Execute = {
|
|
|
16
16
|
initialAmuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
17
17
|
openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
|
|
18
18
|
amountPerTransfer: damlTypes.Numeric;
|
|
19
|
+
amuletRules: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>>;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export declare const Airdrop_Execute:
|
|
@@ -45,6 +46,15 @@ export declare const Airdrop_AddObservers:
|
|
|
45
46
|
;
|
|
46
47
|
|
|
47
48
|
|
|
49
|
+
export declare type Airdrop_Archive = {
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export declare const Airdrop_Archive:
|
|
53
|
+
damlTypes.Serializable<Airdrop_Archive> & {
|
|
54
|
+
}
|
|
55
|
+
;
|
|
56
|
+
|
|
57
|
+
|
|
48
58
|
export declare type Airdrop_UpdateConfig = {
|
|
49
59
|
newConfig: AirdropConfig;
|
|
50
60
|
};
|
|
@@ -63,6 +73,7 @@ export declare type Airdrop = {
|
|
|
63
73
|
|
|
64
74
|
export declare interface AirdropInterface {
|
|
65
75
|
Airdrop_UpdateConfig: damlTypes.Choice<Airdrop, Airdrop_UpdateConfig, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Airdrop, undefined>>;
|
|
76
|
+
Airdrop_Archive: damlTypes.Choice<Airdrop, Airdrop_Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Airdrop, undefined>>;
|
|
66
77
|
Airdrop_AddObservers: damlTypes.Choice<Airdrop, Airdrop_AddObservers, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Airdrop, undefined>>;
|
|
67
78
|
Airdrop_Join: damlTypes.Choice<Airdrop, Airdrop_Join, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Airdrop, undefined>>;
|
|
68
79
|
Airdrop_Execute: damlTypes.Choice<Airdrop, Airdrop_Execute, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Airdrop, undefined>>;
|
|
@@ -18,13 +18,14 @@ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requir
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
exports.Airdrop_Execute = {
|
|
21
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferSpecs: damlTypes.List(exports.RecipientTransferSpec).decoder, initialAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).decoder, amountPerTransfer: damlTypes.Numeric(10).decoder, }); }),
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferSpecs: damlTypes.List(exports.RecipientTransferSpec).decoder, initialAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).decoder, amountPerTransfer: damlTypes.Numeric(10).decoder, amuletRules: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules)).decoder), }); }),
|
|
22
22
|
encode: function (__typed__) {
|
|
23
23
|
return {
|
|
24
24
|
transferSpecs: damlTypes.List(exports.RecipientTransferSpec).encode(__typed__.transferSpecs),
|
|
25
25
|
initialAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.initialAmuletInputs),
|
|
26
26
|
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
27
27
|
amountPerTransfer: damlTypes.Numeric(10).encode(__typed__.amountPerTransfer),
|
|
28
|
+
amuletRules: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules)).encode(__typed__.amuletRules),
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
,
|
|
@@ -57,6 +58,17 @@ exports.Airdrop_AddObservers = {
|
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
|
|
61
|
+
exports.Airdrop_Archive = {
|
|
62
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
63
|
+
encode: function (__typed__) {
|
|
64
|
+
return {
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
,
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
60
72
|
exports.Airdrop_UpdateConfig = {
|
|
61
73
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({newConfig: exports.AirdropConfig.decoder, }); }),
|
|
62
74
|
encode: function (__typed__) {
|
|
@@ -91,6 +103,14 @@ exports.Airdrop = damlTypes.assembleTemplate(
|
|
|
91
103
|
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
92
104
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
93
105
|
},
|
|
106
|
+
Airdrop_Archive: {
|
|
107
|
+
template: function () { return exports.Airdrop; },
|
|
108
|
+
choiceName: 'Airdrop_Archive',
|
|
109
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Airdrop_Archive.decoder; }),
|
|
110
|
+
argumentEncode: function (__typed__) { return exports.Airdrop_Archive.encode(__typed__); },
|
|
111
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
112
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
113
|
+
},
|
|
94
114
|
Airdrop_AddObservers: {
|
|
95
115
|
template: function () { return exports.Airdrop; },
|
|
96
116
|
choiceName: 'Airdrop_AddObservers',
|
|
@@ -128,7 +148,7 @@ exports.Airdrop = damlTypes.assembleTemplate(
|
|
|
128
148
|
);
|
|
129
149
|
|
|
130
150
|
|
|
131
|
-
damlTypes.registerTemplate(exports.Airdrop, ['
|
|
151
|
+
damlTypes.registerTemplate(exports.Airdrop, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
|
|
132
152
|
|
|
133
153
|
|
|
134
154
|
|
|
@@ -119,7 +119,7 @@ exports.PaymentStreamChangeProposal = damlTypes.assembleTemplate(
|
|
|
119
119
|
);
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
damlTypes.registerTemplate(exports.PaymentStreamChangeProposal, ['
|
|
122
|
+
damlTypes.registerTemplate(exports.PaymentStreamChangeProposal, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
@@ -350,5 +350,5 @@ exports.ActivePaymentStream = damlTypes.assembleTemplate(
|
|
|
350
350
|
);
|
|
351
351
|
|
|
352
352
|
|
|
353
|
-
damlTypes.registerTemplate(exports.ActivePaymentStream, ['
|
|
353
|
+
damlTypes.registerTemplate(exports.ActivePaymentStream, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
|
|
354
354
|
|
|
@@ -133,5 +133,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
|
133
133
|
);
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['
|
|
136
|
+
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
|
|
137
137
|
|
|
@@ -70,5 +70,5 @@ exports.PaymentStreamFactory = damlTypes.assembleTemplate(
|
|
|
70
70
|
);
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
damlTypes.registerTemplate(exports.PaymentStreamFactory, ['
|
|
73
|
+
damlTypes.registerTemplate(exports.PaymentStreamFactory, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
|
|
74
74
|
|
|
@@ -157,5 +157,5 @@ exports.ProposedPaymentStream = damlTypes.assembleTemplate(
|
|
|
157
157
|
);
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
damlTypes.registerTemplate(exports.ProposedPaymentStream, ['
|
|
160
|
+
damlTypes.registerTemplate(exports.ProposedPaymentStream, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
|
|
161
161
|
|
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.41",
|
|
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",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@daml/ledger": "^2.10.2",
|
|
63
63
|
"@daml/types": "^2.10.2",
|
|
64
|
-
"@fairmint/canton-node-sdk": "^0.0.
|
|
64
|
+
"@fairmint/canton-node-sdk": "^0.0.113"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@types/node": "^24.
|
|
67
|
+
"@types/node": "^24.9.1",
|
|
68
68
|
"ts-node": "^10.9.2",
|
|
69
69
|
"tsx": "^4.19.2",
|
|
70
70
|
"typescript": "^5.9.2",
|