@fairmint/open-captable-protocol-daml-js 0.2.24 → 0.2.25
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/subscriptions-factory-contract-id.json +4 -4
- package/lib/DA/Date/Types/index.d.ts +1 -0
- package/lib/DA/Date/Types/index.js +8 -0
- package/lib/DA/Date/Types/module.d.ts +47 -0
- package/lib/DA/Date/Types/module.js +48 -0
- package/lib/DA/Date/index.d.ts +2 -0
- package/lib/DA/Date/index.js +9 -0
- package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
- package/lib/DA/Exception/ArithmeticError/index.js +8 -0
- package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
- package/lib/DA/Exception/ArithmeticError/module.js +25 -0
- package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
- package/lib/DA/Exception/AssertionFailed/index.js +8 -0
- package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
- package/lib/DA/Exception/AssertionFailed/module.js +25 -0
- package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
- package/lib/DA/Exception/GeneralError/index.js +8 -0
- package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
- package/lib/DA/Exception/GeneralError/module.js +25 -0
- package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
- package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
- package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
- package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
- package/lib/DA/Exception/index.d.ts +2 -0
- package/lib/DA/Exception/index.js +9 -0
- package/lib/DA/Internal/Down/index.d.ts +1 -0
- package/lib/DA/Internal/Down/index.js +8 -0
- package/lib/DA/Internal/Down/module.d.ts +17 -0
- package/lib/DA/Internal/Down/module.js +25 -0
- package/lib/DA/Logic/Types/index.d.ts +1 -0
- package/lib/DA/Logic/Types/index.js +8 -0
- package/lib/DA/Logic/Types/module.d.ts +20 -0
- package/lib/DA/Logic/Types/module.js +29 -0
- package/lib/DA/Logic/index.d.ts +2 -0
- package/lib/DA/Logic/index.js +9 -0
- package/lib/DA/Monoid/Types/index.d.ts +1 -0
- package/lib/DA/Monoid/Types/index.js +8 -0
- package/lib/DA/Monoid/Types/module.d.ts +46 -0
- package/lib/DA/Monoid/Types/module.js +61 -0
- package/lib/DA/Monoid/index.d.ts +2 -0
- package/lib/DA/Monoid/index.js +9 -0
- package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
- package/lib/DA/NonEmpty/Types/index.js +8 -0
- package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
- package/lib/DA/NonEmpty/Types/module.js +26 -0
- package/lib/DA/NonEmpty/index.d.ts +2 -0
- package/lib/DA/NonEmpty/index.js +9 -0
- package/lib/DA/Random/Types/index.d.ts +1 -0
- package/lib/DA/Random/Types/index.js +8 -0
- package/lib/DA/Random/Types/module.d.ts +18 -0
- package/lib/DA/Random/Types/module.js +26 -0
- package/lib/DA/Random/index.d.ts +2 -0
- package/lib/DA/Random/index.js +9 -0
- package/lib/DA/Semigroup/Types/index.d.ts +1 -0
- package/lib/DA/Semigroup/Types/index.js +8 -0
- package/lib/DA/Semigroup/Types/module.d.ts +26 -0
- package/lib/DA/Semigroup/Types/module.js +37 -0
- package/lib/DA/Semigroup/index.d.ts +2 -0
- package/lib/DA/Semigroup/index.js +9 -0
- package/lib/DA/Stack/Types/index.d.ts +1 -0
- package/lib/DA/Stack/Types/index.js +8 -0
- package/lib/DA/Stack/Types/module.d.ts +24 -0
- package/lib/DA/Stack/Types/module.js +31 -0
- package/lib/DA/Stack/index.d.ts +2 -0
- package/lib/DA/Stack/index.js +9 -0
- package/lib/DA/Validation/Types/index.d.ts +1 -0
- package/lib/DA/Validation/Types/index.js +8 -0
- package/lib/DA/Validation/Types/module.d.ts +20 -0
- package/lib/DA/Validation/Types/module.js +29 -0
- package/lib/DA/Validation/index.d.ts +2 -0
- package/lib/DA/Validation/index.js +9 -0
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +2 -2
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.js +1 -1
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +1 -1
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +1 -1
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.js +2 -1
- package/lib/Splice/Api/Token/index.d.ts +2 -0
- package/lib/Splice/Api/Token/index.js +9 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devnet": {
|
|
3
|
-
"subscriptionsFactoryContractId": "
|
|
4
|
-
"templateId": "
|
|
3
|
+
"subscriptionsFactoryContractId": "00967194ed30dd989495adeb6c3f76d30eb6a7dfea91ec3b5bca26547bd141bb2fca111220e24c040da2ae69d775698d2ae7bf2dedb7c29ce3aa219ee89f9ea43ddc171b1a",
|
|
4
|
+
"templateId": "029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory"
|
|
5
5
|
},
|
|
6
6
|
"mainnet": {
|
|
7
|
-
"subscriptionsFactoryContractId": "
|
|
8
|
-
"templateId": "
|
|
7
|
+
"subscriptionsFactoryContractId": "006115fcffa8a4c53f989e09ac0e9f283a263a732d439f4981e05f059ec73755d9ca111220fa2186baa66fe635f0c54b542efcbdf0e293ef2bb41a5a844bec1d45384306de",
|
|
8
|
+
"templateId": "029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -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,47 @@
|
|
|
1
|
+
// Generated from DA/Date/Types.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
|
+
export declare type DayOfWeek =
|
|
11
|
+
| 'Monday'
|
|
12
|
+
| 'Tuesday'
|
|
13
|
+
| 'Wednesday'
|
|
14
|
+
| 'Thursday'
|
|
15
|
+
| 'Friday'
|
|
16
|
+
| 'Saturday'
|
|
17
|
+
| 'Sunday'
|
|
18
|
+
;
|
|
19
|
+
|
|
20
|
+
export declare const DayOfWeek:
|
|
21
|
+
damlTypes.Serializable<DayOfWeek> & {
|
|
22
|
+
}
|
|
23
|
+
& { readonly keys: DayOfWeek[] } & { readonly [e in DayOfWeek]: e }
|
|
24
|
+
;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare type Month =
|
|
28
|
+
| 'Jan'
|
|
29
|
+
| 'Feb'
|
|
30
|
+
| 'Mar'
|
|
31
|
+
| 'Apr'
|
|
32
|
+
| 'May'
|
|
33
|
+
| 'Jun'
|
|
34
|
+
| 'Jul'
|
|
35
|
+
| 'Aug'
|
|
36
|
+
| 'Sep'
|
|
37
|
+
| 'Oct'
|
|
38
|
+
| 'Nov'
|
|
39
|
+
| 'Dec'
|
|
40
|
+
;
|
|
41
|
+
|
|
42
|
+
export declare const Month:
|
|
43
|
+
damlTypes.Serializable<Month> & {
|
|
44
|
+
}
|
|
45
|
+
& { readonly keys: Month[] } & { readonly [e in Month]: e }
|
|
46
|
+
;
|
|
47
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
16
|
+
exports.DayOfWeek = {
|
|
17
|
+
Monday: 'Monday',
|
|
18
|
+
Tuesday: 'Tuesday',
|
|
19
|
+
Wednesday: 'Wednesday',
|
|
20
|
+
Thursday: 'Thursday',
|
|
21
|
+
Friday: 'Friday',
|
|
22
|
+
Saturday: 'Saturday',
|
|
23
|
+
Sunday: 'Sunday',
|
|
24
|
+
keys: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday',],
|
|
25
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.DayOfWeek.Monday), jtv.constant(exports.DayOfWeek.Tuesday), jtv.constant(exports.DayOfWeek.Wednesday), jtv.constant(exports.DayOfWeek.Thursday), jtv.constant(exports.DayOfWeek.Friday), jtv.constant(exports.DayOfWeek.Saturday), jtv.constant(exports.DayOfWeek.Sunday)); }),
|
|
26
|
+
encode: function (__typed__) { return __typed__; },
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.Month = {
|
|
32
|
+
Jan: 'Jan',
|
|
33
|
+
Feb: 'Feb',
|
|
34
|
+
Mar: 'Mar',
|
|
35
|
+
Apr: 'Apr',
|
|
36
|
+
May: 'May',
|
|
37
|
+
Jun: 'Jun',
|
|
38
|
+
Jul: 'Jul',
|
|
39
|
+
Aug: 'Aug',
|
|
40
|
+
Sep: 'Sep',
|
|
41
|
+
Oct: 'Oct',
|
|
42
|
+
Nov: 'Nov',
|
|
43
|
+
Dec: 'Dec',
|
|
44
|
+
keys: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',],
|
|
45
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.Month.Jan), jtv.constant(exports.Month.Feb), jtv.constant(exports.Month.Mar), jtv.constant(exports.Month.Apr), jtv.constant(exports.Month.May), jtv.constant(exports.Month.Jun), jtv.constant(exports.Month.Jul), jtv.constant(exports.Month.Aug), jtv.constant(exports.Month.Sep), jtv.constant(exports.Month.Oct), jtv.constant(exports.Month.Nov), jtv.constant(exports.Month.Dec)); }),
|
|
46
|
+
encode: function (__typed__) { return __typed__; },
|
|
47
|
+
};
|
|
48
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,18 @@
|
|
|
1
|
+
// Generated from DA/Exception/ArithmeticError.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
|
+
export declare type ArithmeticError = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const ArithmeticError:
|
|
15
|
+
damlTypes.Serializable<ArithmeticError> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
16
|
+
exports.ArithmeticError = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
message: damlTypes.Text.encode(__typed__.message),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -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,18 @@
|
|
|
1
|
+
// Generated from DA/Exception/AssertionFailed.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
|
+
export declare type AssertionFailed = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const AssertionFailed:
|
|
15
|
+
damlTypes.Serializable<AssertionFailed> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
16
|
+
exports.AssertionFailed = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
message: damlTypes.Text.encode(__typed__.message),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -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,18 @@
|
|
|
1
|
+
// Generated from DA/Exception/GeneralError.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
|
+
export declare type GeneralError = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const GeneralError:
|
|
15
|
+
damlTypes.Serializable<GeneralError> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
16
|
+
exports.GeneralError = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
message: damlTypes.Text.encode(__typed__.message),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -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,18 @@
|
|
|
1
|
+
// Generated from DA/Exception/PreconditionFailed.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
|
+
export declare type PreconditionFailed = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const PreconditionFailed:
|
|
15
|
+
damlTypes.Serializable<PreconditionFailed> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
16
|
+
exports.PreconditionFailed = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({message: damlTypes.Text.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
message: damlTypes.Text.encode(__typed__.message),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var PreconditionFailed = require('./PreconditionFailed');
|
|
9
|
+
exports.PreconditionFailed = PreconditionFailed;
|
|
@@ -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,17 @@
|
|
|
1
|
+
// Generated from DA/Internal/Down.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
|
+
export declare type Down<a> = {
|
|
11
|
+
unpack: a;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const Down :
|
|
15
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Down<a>>) & {
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
16
|
+
exports.Down = function (a) { return ({
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
unpack: a.encode(__typed__.unpack),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
}); };
|
|
25
|
+
|
|
@@ -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,20 @@
|
|
|
1
|
+
// Generated from DA/Logic/Types.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
|
+
export declare type Formula<a> =
|
|
11
|
+
| { tag: 'Proposition'; value: a }
|
|
12
|
+
| { tag: 'Negation'; value: Formula<a> }
|
|
13
|
+
| { tag: 'Conjunction'; value: Formula<a>[] }
|
|
14
|
+
| { tag: 'Disjunction'; value: Formula<a>[] }
|
|
15
|
+
;
|
|
16
|
+
|
|
17
|
+
export declare const Formula :
|
|
18
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Formula<a>>) & {
|
|
19
|
+
};
|
|
20
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
|
|
16
|
+
exports.Formula = function (a) { return ({
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Proposition'), value: a.decoder, }), jtv.object({tag: jtv.constant('Negation'), value: exports.Formula(a).decoder, }), jtv.object({tag: jtv.constant('Conjunction'), value: damlTypes.List(exports.Formula(a)).decoder, }), jtv.object({tag: jtv.constant('Disjunction'), value: damlTypes.List(exports.Formula(a)).decoder, })); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
switch(__typed__.tag) {
|
|
20
|
+
case 'Proposition': return {tag: __typed__.tag, value: a.encode(__typed__.value)};
|
|
21
|
+
case 'Negation': return {tag: __typed__.tag, value: exports.Formula(a).encode(__typed__.value)};
|
|
22
|
+
case 'Conjunction': return {tag: __typed__.tag, value: damlTypes.List(exports.Formula(a)).encode(__typed__.value)};
|
|
23
|
+
case 'Disjunction': return {tag: __typed__.tag, value: damlTypes.List(exports.Formula(a)).encode(__typed__.value)};
|
|
24
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Formula';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
,
|
|
28
|
+
}); };
|
|
29
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,46 @@
|
|
|
1
|
+
// Generated from DA/Monoid/Types.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
|
+
export declare type All = {
|
|
11
|
+
getAll: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const All:
|
|
15
|
+
damlTypes.Serializable<All> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export declare type Any = {
|
|
21
|
+
getAny: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare const Any:
|
|
25
|
+
damlTypes.Serializable<Any> & {
|
|
26
|
+
}
|
|
27
|
+
;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export declare type Sum<a> = {
|
|
31
|
+
unpack: a;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const Sum :
|
|
35
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Sum<a>>) & {
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export declare type Product<a> = {
|
|
40
|
+
unpack: a;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export declare const Product :
|
|
44
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Product<a>>) & {
|
|
45
|
+
};
|
|
46
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
|
|
16
|
+
exports.All = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({getAll: damlTypes.Bool.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
getAll: damlTypes.Bool.encode(__typed__.getAll),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.Any = {
|
|
29
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({getAny: damlTypes.Bool.decoder, }); }),
|
|
30
|
+
encode: function (__typed__) {
|
|
31
|
+
return {
|
|
32
|
+
getAny: damlTypes.Bool.encode(__typed__.getAny),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
,
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.Sum = function (a) { return ({
|
|
41
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
|
|
42
|
+
encode: function (__typed__) {
|
|
43
|
+
return {
|
|
44
|
+
unpack: a.encode(__typed__.unpack),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
,
|
|
48
|
+
}); };
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
exports.Product = function (a) { return ({
|
|
53
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
|
|
54
|
+
encode: function (__typed__) {
|
|
55
|
+
return {
|
|
56
|
+
unpack: a.encode(__typed__.unpack),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
,
|
|
60
|
+
}); };
|
|
61
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,18 @@
|
|
|
1
|
+
// Generated from DA/NonEmpty/Types.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
|
+
export declare type NonEmpty<a> = {
|
|
11
|
+
hd: a;
|
|
12
|
+
tl: a[];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export declare const NonEmpty :
|
|
16
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<NonEmpty<a>>) & {
|
|
17
|
+
};
|
|
18
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
|
|
16
|
+
exports.NonEmpty = function (a) { return ({
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({hd: a.decoder, tl: damlTypes.List(a).decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
hd: a.encode(__typed__.hd),
|
|
21
|
+
tl: damlTypes.List(a).encode(__typed__.tl),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
,
|
|
25
|
+
}); };
|
|
26
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,18 @@
|
|
|
1
|
+
// Generated from DA/Random/Types.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
|
+
export declare type Minstd =
|
|
11
|
+
| { tag: 'Minstd'; value: damlTypes.Int }
|
|
12
|
+
;
|
|
13
|
+
|
|
14
|
+
export declare const Minstd:
|
|
15
|
+
damlTypes.Serializable<Minstd> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
|
|
16
|
+
exports.Minstd = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Minstd'), value: damlTypes.Int.decoder, })); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
switch(__typed__.tag) {
|
|
20
|
+
case 'Minstd': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
|
|
21
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Minstd';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
,
|
|
25
|
+
};
|
|
26
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,26 @@
|
|
|
1
|
+
// Generated from DA/Semigroup/Types.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
|
+
export declare type Min<a> = {
|
|
11
|
+
unpack: a;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const Min :
|
|
15
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Min<a>>) & {
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export declare type Max<a> = {
|
|
20
|
+
unpack: a;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export declare const Max :
|
|
24
|
+
(<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Max<a>>) & {
|
|
25
|
+
};
|
|
26
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
|
|
16
|
+
exports.Min = function (a) { return ({
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
unpack: a.encode(__typed__.unpack),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
}); };
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.Max = function (a) { return ({
|
|
29
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
|
|
30
|
+
encode: function (__typed__) {
|
|
31
|
+
return {
|
|
32
|
+
unpack: a.encode(__typed__.unpack),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
,
|
|
36
|
+
}); };
|
|
37
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,24 @@
|
|
|
1
|
+
// Generated from DA/Stack/Types.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
|
+
export declare type SrcLoc = {
|
|
11
|
+
srcLocPackage: string;
|
|
12
|
+
srcLocModule: string;
|
|
13
|
+
srcLocFile: string;
|
|
14
|
+
srcLocStartLine: damlTypes.Int;
|
|
15
|
+
srcLocStartCol: damlTypes.Int;
|
|
16
|
+
srcLocEndLine: damlTypes.Int;
|
|
17
|
+
srcLocEndCol: damlTypes.Int;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare const SrcLoc:
|
|
21
|
+
damlTypes.Serializable<SrcLoc> & {
|
|
22
|
+
}
|
|
23
|
+
;
|
|
24
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
|
16
|
+
exports.SrcLoc = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({srcLocPackage: damlTypes.Text.decoder, srcLocModule: damlTypes.Text.decoder, srcLocFile: damlTypes.Text.decoder, srcLocStartLine: damlTypes.Int.decoder, srcLocStartCol: damlTypes.Int.decoder, srcLocEndLine: damlTypes.Int.decoder, srcLocEndCol: damlTypes.Int.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
srcLocPackage: damlTypes.Text.encode(__typed__.srcLocPackage),
|
|
21
|
+
srcLocModule: damlTypes.Text.encode(__typed__.srcLocModule),
|
|
22
|
+
srcLocFile: damlTypes.Text.encode(__typed__.srcLocFile),
|
|
23
|
+
srcLocStartLine: damlTypes.Int.encode(__typed__.srcLocStartLine),
|
|
24
|
+
srcLocStartCol: damlTypes.Int.encode(__typed__.srcLocStartCol),
|
|
25
|
+
srcLocEndLine: damlTypes.Int.encode(__typed__.srcLocEndLine),
|
|
26
|
+
srcLocEndCol: damlTypes.Int.encode(__typed__.srcLocEndCol),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
,
|
|
30
|
+
};
|
|
31
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -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,20 @@
|
|
|
1
|
+
// Generated from DA/Validation/Types.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 pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a from '@daml.js/daml-stdlib-DA-NonEmpty-Types-1.0.0';
|
|
11
|
+
|
|
12
|
+
export declare type Validation<errs, a> =
|
|
13
|
+
| { tag: 'Errors'; value: pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a.DA.NonEmpty.Types.NonEmpty<errs> }
|
|
14
|
+
| { tag: 'Success'; value: a }
|
|
15
|
+
;
|
|
16
|
+
|
|
17
|
+
export declare const Validation :
|
|
18
|
+
(<errs, a>(errs: damlTypes.Serializable<errs>, a: damlTypes.Serializable<a>) => damlTypes.Serializable<Validation<errs, a>>) & {
|
|
19
|
+
};
|
|
20
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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 pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a = require('@daml.js/daml-stdlib-DA-NonEmpty-Types-1.0.0');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Validation = function (errs, a) { return ({
|
|
19
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Errors'), value: pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a.DA.NonEmpty.Types.NonEmpty(errs).decoder, }), jtv.object({tag: jtv.constant('Success'), value: a.decoder, })); }),
|
|
20
|
+
encode: function (__typed__) {
|
|
21
|
+
switch(__typed__.tag) {
|
|
22
|
+
case 'Errors': return {tag: __typed__.tag, value: pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a.DA.NonEmpty.Types.NonEmpty(errs).encode(__typed__.value)};
|
|
23
|
+
case 'Success': return {tag: __typed__.tag, value: a.encode(__typed__.value)};
|
|
24
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Validation';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
,
|
|
28
|
+
}); };
|
|
29
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var Types = require('./Types');
|
|
9
|
+
exports.Types = Types;
|
|
@@ -118,7 +118,7 @@ exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
|
|
|
118
118
|
);
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['
|
|
121
|
+
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b', '#Subscriptions-v05']);
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
@@ -348,5 +348,5 @@ exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
|
348
348
|
);
|
|
349
349
|
|
|
350
350
|
|
|
351
|
-
damlTypes.registerTemplate(exports.ActiveSubscription, ['
|
|
351
|
+
damlTypes.registerTemplate(exports.ActiveSubscription, ['029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b', '#Subscriptions-v05']);
|
|
352
352
|
|
|
@@ -131,5 +131,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
|
|
|
131
131
|
);
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['
|
|
134
|
+
damlTypes.registerTemplate(exports.PartyMigrationProposal, ['029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b', '#Subscriptions-v05']);
|
|
135
135
|
|
|
@@ -140,5 +140,5 @@ exports.ProposedSubscription = damlTypes.assembleTemplate(
|
|
|
140
140
|
);
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
damlTypes.registerTemplate(exports.ProposedSubscription, ['
|
|
143
|
+
damlTypes.registerTemplate(exports.ProposedSubscription, ['029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b', '#Subscriptions-v05']);
|
|
144
144
|
|
|
@@ -65,5 +65,5 @@ exports.SubscriptionFactory = damlTypes.assembleTemplate(
|
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
damlTypes.registerTemplate(exports.SubscriptionFactory, ['
|
|
68
|
+
damlTypes.registerTemplate(exports.SubscriptionFactory, ['029777615406212cb6a91089eecd60a61f10e01cd5731299a767de680bb82f3b', '#Subscriptions-v05']);
|
|
69
69
|
|
|
@@ -12,6 +12,7 @@ import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1
|
|
|
12
12
|
export declare type PaymentContext = {
|
|
13
13
|
amuletRulesCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>;
|
|
14
14
|
openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
|
|
15
|
+
featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export declare const PaymentContext:
|
|
@@ -16,11 +16,12 @@ var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = requir
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
exports.PaymentContext = {
|
|
19
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).decoder, }); }),
|
|
19
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
|
|
20
20
|
encode: function (__typed__) {
|
|
21
21
|
return {
|
|
22
22
|
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
23
23
|
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
24
|
+
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
,
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
var TransferInstructionV1 = require('./TransferInstructionV1');
|
|
9
|
+
exports.TransferInstructionV1 = TransferInstructionV1;
|
package/package.json
CHANGED