@fairmint/open-captable-protocol-daml-js 0.2.41 → 0.2.42

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.
@@ -148,7 +148,7 @@ exports.Airdrop = damlTypes.assembleTemplate(
148
148
  );
149
149
 
150
150
 
151
- damlTypes.registerTemplate(exports.Airdrop, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
151
+ damlTypes.registerTemplate(exports.Airdrop, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#CantonPayments']);
152
152
 
153
153
 
154
154
 
@@ -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,70 @@
1
+ // Generated from CantonPayments/Airdrop/SimpleAirdrop.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 pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../..';
11
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
12
+
13
+ export declare type SimpleAirdrop_Execute = {
14
+ recipientSpecs: RecipientSpec[];
15
+ initialAmuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
16
+ openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
17
+ amountPerTransfer: damlTypes.Numeric;
18
+ };
19
+
20
+ export declare const SimpleAirdrop_Execute:
21
+ damlTypes.Serializable<SimpleAirdrop_Execute> & {
22
+ }
23
+ ;
24
+
25
+
26
+ export declare type SimpleAirdrop = {
27
+ config: SimpleAirdropConfig;
28
+ };
29
+
30
+ export declare interface SimpleAirdropInterface {
31
+ Archive: damlTypes.Choice<SimpleAirdrop, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SimpleAirdrop, undefined>>;
32
+ SimpleAirdrop_Execute: damlTypes.Choice<SimpleAirdrop, SimpleAirdrop_Execute, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SimpleAirdrop, undefined>>;
33
+ }
34
+ export declare const SimpleAirdrop:
35
+ damlTypes.Template<SimpleAirdrop, undefined, '#CantonPayments:CantonPayments.Airdrop.SimpleAirdrop:SimpleAirdrop'> &
36
+ damlTypes.ToInterface<SimpleAirdrop, never> &
37
+ SimpleAirdropInterface;
38
+
39
+ export declare namespace SimpleAirdrop {
40
+ export type CreateEvent = damlLedger.CreateEvent<SimpleAirdrop, undefined, typeof SimpleAirdrop.templateId>
41
+ export type ArchiveEvent = damlLedger.ArchiveEvent<SimpleAirdrop, typeof SimpleAirdrop.templateId>
42
+ export type Event = damlLedger.Event<SimpleAirdrop, undefined, typeof SimpleAirdrop.templateId>
43
+ export type QueryResult = damlLedger.QueryResult<SimpleAirdrop, undefined, typeof SimpleAirdrop.templateId>
44
+ }
45
+
46
+
47
+
48
+ export declare type SimpleAirdropConfig = {
49
+ sender: damlTypes.Party;
50
+ featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
51
+ amuletRulesCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>;
52
+ dso: damlTypes.Party;
53
+ };
54
+
55
+ export declare const SimpleAirdropConfig:
56
+ damlTypes.Serializable<SimpleAirdropConfig> & {
57
+ }
58
+ ;
59
+
60
+
61
+ export declare type RecipientSpec = {
62
+ transferPreapprovalCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferPreapproval>;
63
+ numberOfTransfers: damlTypes.Int;
64
+ };
65
+
66
+ export declare const RecipientSpec:
67
+ damlTypes.Serializable<RecipientSpec> & {
68
+ }
69
+ ;
70
+
@@ -0,0 +1,96 @@
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 pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
16
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
17
+
18
+
19
+ exports.SimpleAirdrop_Execute = {
20
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({recipientSpecs: damlTypes.List(exports.RecipientSpec).decoder, initialAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).decoder, amountPerTransfer: damlTypes.Numeric(10).decoder, }); }),
21
+ encode: function (__typed__) {
22
+ return {
23
+ recipientSpecs: damlTypes.List(exports.RecipientSpec).encode(__typed__.recipientSpecs),
24
+ initialAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.initialAmuletInputs),
25
+ openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).encode(__typed__.openMiningRoundCid),
26
+ amountPerTransfer: damlTypes.Numeric(10).encode(__typed__.amountPerTransfer),
27
+ };
28
+ }
29
+ ,
30
+ };
31
+
32
+
33
+
34
+ exports.SimpleAirdrop = damlTypes.assembleTemplate(
35
+ {
36
+ templateId: '#CantonPayments:CantonPayments.Airdrop.SimpleAirdrop:SimpleAirdrop',
37
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
38
+ keyEncode: function () { throw 'EncodeError'; },
39
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({config: exports.SimpleAirdropConfig.decoder, }); }),
40
+ encode: function (__typed__) {
41
+ return {
42
+ config: exports.SimpleAirdropConfig.encode(__typed__.config),
43
+ };
44
+ }
45
+ ,
46
+ Archive: {
47
+ template: function () { return exports.SimpleAirdrop; },
48
+ choiceName: 'Archive',
49
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
50
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
51
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
52
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
53
+ },
54
+ SimpleAirdrop_Execute: {
55
+ template: function () { return exports.SimpleAirdrop; },
56
+ choiceName: 'SimpleAirdrop_Execute',
57
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.SimpleAirdrop_Execute.decoder; }),
58
+ argumentEncode: function (__typed__) { return exports.SimpleAirdrop_Execute.encode(__typed__); },
59
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
60
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
61
+ },
62
+ }
63
+
64
+ );
65
+
66
+
67
+ damlTypes.registerTemplate(exports.SimpleAirdrop, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#CantonPayments']);
68
+
69
+
70
+
71
+ exports.SimpleAirdropConfig = {
72
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).decoder, dso: damlTypes.Party.decoder, }); }),
73
+ encode: function (__typed__) {
74
+ return {
75
+ sender: damlTypes.Party.encode(__typed__.sender),
76
+ featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
77
+ amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).encode(__typed__.amuletRulesCid),
78
+ dso: damlTypes.Party.encode(__typed__.dso),
79
+ };
80
+ }
81
+ ,
82
+ };
83
+
84
+
85
+
86
+ exports.RecipientSpec = {
87
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({transferPreapprovalCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferPreapproval).decoder, numberOfTransfers: damlTypes.Int.decoder, }); }),
88
+ encode: function (__typed__) {
89
+ return {
90
+ transferPreapprovalCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferPreapproval).encode(__typed__.transferPreapprovalCid),
91
+ numberOfTransfers: damlTypes.Int.encode(__typed__.numberOfTransfers),
92
+ };
93
+ }
94
+ ,
95
+ };
96
+
@@ -1,2 +1,4 @@
1
1
  import * as Airdrop from './Airdrop';
2
2
  export { Airdrop } ;
3
+ import * as SimpleAirdrop from './SimpleAirdrop';
4
+ export { SimpleAirdrop } ;
@@ -7,3 +7,5 @@ function __export(m) {
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  var Airdrop = require('./Airdrop');
9
9
  exports.Airdrop = Airdrop;
10
+ var SimpleAirdrop = require('./SimpleAirdrop');
11
+ exports.SimpleAirdrop = SimpleAirdrop;
@@ -119,7 +119,7 @@ exports.PaymentStreamChangeProposal = damlTypes.assembleTemplate(
119
119
  );
120
120
 
121
121
 
122
- damlTypes.registerTemplate(exports.PaymentStreamChangeProposal, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
122
+ damlTypes.registerTemplate(exports.PaymentStreamChangeProposal, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#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, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
353
+ damlTypes.registerTemplate(exports.ActivePaymentStream, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#CantonPayments']);
354
354
 
@@ -133,5 +133,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
133
133
  );
134
134
 
135
135
 
136
- damlTypes.registerTemplate(exports.PartyMigrationProposal, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
136
+ damlTypes.registerTemplate(exports.PartyMigrationProposal, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#CantonPayments']);
137
137
 
@@ -70,5 +70,5 @@ exports.PaymentStreamFactory = damlTypes.assembleTemplate(
70
70
  );
71
71
 
72
72
 
73
- damlTypes.registerTemplate(exports.PaymentStreamFactory, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
73
+ damlTypes.registerTemplate(exports.PaymentStreamFactory, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#CantonPayments']);
74
74
 
@@ -157,5 +157,5 @@ exports.ProposedPaymentStream = damlTypes.assembleTemplate(
157
157
  );
158
158
 
159
159
 
160
- damlTypes.registerTemplate(exports.ProposedPaymentStream, ['5dd7073153ed5cd910aec8e020380127ee4a8910cf82469b762bb32c33dd3ed4', '#CantonPayments']);
160
+ damlTypes.registerTemplate(exports.ProposedPaymentStream, ['d047e7758916e2daf819ba3daa10201c9db65367ab8b95229f1fd72ebb16d3d1', '#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.41",
3
+ "version": "0.2.42",
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",