@fairmint/open-captable-protocol-daml-js 0.2.146 → 0.2.147

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.
Files changed (41) hide show
  1. package/lib/DA/Set/Types/index.d.ts +1 -0
  2. package/lib/DA/Set/Types/index.js +8 -0
  3. package/lib/DA/Set/Types/module.d.ts +15 -0
  4. package/lib/DA/Set/Types/module.js +23 -0
  5. package/lib/DA/Set/index.d.ts +2 -0
  6. package/lib/DA/Set/index.js +9 -0
  7. package/lib/DA/index.d.ts +1 -0
  8. package/lib/DA/index.js +2 -0
  9. package/lib/Nft/Reference/V1/NftAsset/module.d.ts +1 -1
  10. package/lib/Nft/Reference/V1/NftAsset/module.js +1 -1
  11. package/lib/Nft/Reference/V1/NftRegistry/module.d.ts +1 -1
  12. package/lib/Nft/Reference/V1/NftRegistry/module.js +1 -1
  13. package/lib/Nft/Reference/V1/ReceiveAuthorization/module.d.ts +1 -1
  14. package/lib/Nft/Reference/V1/ReceiveAuthorization/module.js +1 -1
  15. package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
  16. package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
  17. package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +147 -0
  18. package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
  19. package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
  20. package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
  21. package/lib/Splice/Api/Token/AllocationV1/module.d.ts +151 -0
  22. package/lib/Splice/Api/Token/AllocationV1/module.js +205 -0
  23. package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
  24. package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
  25. package/lib/Splice/Api/Token/HoldingV1/module.d.ts +58 -0
  26. package/lib/Splice/Api/Token/HoldingV1/module.js +75 -0
  27. package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
  28. package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
  29. package/lib/Splice/Api/Token/MetadataV1/module.d.ts +89 -0
  30. package/lib/Splice/Api/Token/MetadataV1/module.js +113 -0
  31. package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
  32. package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
  33. package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +200 -0
  34. package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
  35. package/lib/Splice/Api/Token/index.d.ts +5 -0
  36. package/lib/Splice/Api/Token/index.js +17 -0
  37. package/lib/Splice/Api/index.d.ts +1 -0
  38. package/lib/Splice/Api/index.js +2 -0
  39. package/lib/nft-api-v01-package-namespace.d.ts +4 -0
  40. package/lib/nft-api-v01-package-namespace.js +4 -0
  41. package/package.json +3 -2
@@ -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,15 @@
1
+ // Generated from DA/Set/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
+
8
+ export declare type Set<k> = {
9
+ map: damlTypes.Map<k, {}>;
10
+ };
11
+
12
+ export declare const Set :
13
+ (<k>(k: damlTypes.Serializable<k>) => damlTypes.Serializable<Set<k>>) & {
14
+ };
15
+
@@ -0,0 +1,23 @@
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
+
13
+
14
+ exports.Set = function (k) { return ({
15
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({map: damlTypes.Map(k, damlTypes.Unit).decoder, }); }),
16
+ encode: function (__typed__) {
17
+ return {
18
+ map: damlTypes.Map(k, damlTypes.Unit).encode(__typed__.map),
19
+ };
20
+ }
21
+ ,
22
+ }); };
23
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -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;
package/lib/DA/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * as Internal from './Internal';
2
+ export * as Set from './Set';
2
3
  export * as Time from './Time';
3
4
  export * as Types from './Types';
package/lib/DA/index.js CHANGED
@@ -7,6 +7,8 @@ function __export(m) {
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  var Internal = require('./Internal');
9
9
  exports.Internal = Internal;
10
+ var Set = require('./Set');
11
+ exports.Set = Set;
10
12
  var Time = require('./Time');
11
13
  exports.Time = Time;
12
14
  var Types = require('./Types');
@@ -6,7 +6,7 @@ import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
8
  import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
9
- import * as pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../index.js';
9
+ import * as pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../nft-api-v01-package-namespace.js';
10
10
 
11
11
  import * as Nft_Reference_V1_ReceiveAuthorization from '../../../../Nft/Reference/V1/ReceiveAuthorization/module';
12
12
 
@@ -11,7 +11,7 @@ var jtv = require('@mojotech/json-type-validation');
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
13
  var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
14
- var pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../index.js');
14
+ var pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../nft-api-v01-package-namespace.js');
15
15
 
16
16
  var Nft_Reference_V1_ReceiveAuthorization = require('../../../../Nft/Reference/V1/ReceiveAuthorization/module');
17
17
 
@@ -6,7 +6,7 @@ import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
8
  import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
9
- import * as pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../index.js';
9
+ import * as pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../nft-api-v01-package-namespace.js';
10
10
 
11
11
  export declare type Mint = {
12
12
  holder: damlTypes.Party;
@@ -11,7 +11,7 @@ var jtv = require('@mojotech/json-type-validation');
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
13
  var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
14
- var pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../index.js');
14
+ var pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../nft-api-v01-package-namespace.js');
15
15
 
16
16
 
17
17
  exports.Mint = {
@@ -6,7 +6,7 @@ import * as jtv from '@mojotech/json-type-validation';
6
6
  import * as damlTypes from '@daml/types';
7
7
 
8
8
  import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
9
- import * as pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../index.js';
9
+ import * as pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../nft-api-v01-package-namespace.js';
10
10
 
11
11
  export declare type Revoke = {
12
12
  };
@@ -11,7 +11,7 @@ var jtv = require('@mojotech/json-type-validation');
11
11
  var damlTypes = require('@daml/types');
12
12
 
13
13
  var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
14
- var pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../index.js');
14
+ var pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../nft-api-v01-package-namespace.js');
15
15
 
16
16
 
17
17
  exports.Revoke = {
@@ -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,147 @@
1
+ // Generated from Splice/Api/Token/AllocationInstructionV1.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
+
8
+ import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
9
+ import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
10
+ import * as pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d from '../AllocationV1';
11
+ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
12
+
13
+ export declare type AllocationFactory = damlTypes.Interface<'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> & AllocationFactoryView;
14
+ export declare interface AllocationFactoryInterface {
15
+ Archive: damlTypes.Choice<AllocationFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
16
+ AllocationFactory_Allocate: damlTypes.Choice<AllocationFactory, AllocationFactory_Allocate, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
17
+ AllocationFactory_PublicFetch: damlTypes.Choice<AllocationFactory, AllocationFactory_PublicFetch, AllocationFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
18
+ }
19
+ export declare const AllocationFactory:
20
+ damlTypes.InterfaceCompanion<AllocationFactory, undefined, '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> &
21
+ damlTypes.FromTemplate<AllocationFactory, unknown> &
22
+ AllocationFactoryInterface;
23
+
24
+
25
+ export declare type AllocationInstruction = damlTypes.Interface<'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction'> & AllocationInstructionView;
26
+ export declare interface AllocationInstructionInterface {
27
+ Archive: damlTypes.Choice<AllocationInstruction, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
28
+ AllocationInstruction_Withdraw: damlTypes.Choice<AllocationInstruction, AllocationInstruction_Withdraw, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
29
+ AllocationInstruction_Update: damlTypes.Choice<AllocationInstruction, AllocationInstruction_Update, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
30
+ }
31
+ export declare const AllocationInstruction:
32
+ damlTypes.InterfaceCompanion<AllocationInstruction, undefined, '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction'> &
33
+ damlTypes.FromTemplate<AllocationInstruction, unknown> &
34
+ AllocationInstructionInterface;
35
+
36
+
37
+ export declare type AllocationInstructionResult_Output =
38
+ | { tag: 'AllocationInstructionResult_Pending'; value: AllocationInstructionResult_Output.AllocationInstructionResult_Pending }
39
+ | { tag: 'AllocationInstructionResult_Completed'; value: AllocationInstructionResult_Output.AllocationInstructionResult_Completed }
40
+ | { tag: 'AllocationInstructionResult_Failed'; value: {} }
41
+ ;
42
+
43
+ export declare const AllocationInstructionResult_Output:
44
+ damlTypes.Serializable<AllocationInstructionResult_Output> & {
45
+ AllocationInstructionResult_Pending: damlTypes.Serializable<AllocationInstructionResult_Output.AllocationInstructionResult_Pending>;
46
+ AllocationInstructionResult_Completed: damlTypes.Serializable<AllocationInstructionResult_Output.AllocationInstructionResult_Completed>;
47
+ }
48
+ ;
49
+
50
+
51
+ export namespace AllocationInstructionResult_Output {
52
+ type AllocationInstructionResult_Pending = {
53
+ allocationInstructionCid: damlTypes.ContractId<AllocationInstruction>;
54
+ };
55
+ } //namespace AllocationInstructionResult_Output
56
+
57
+
58
+ export namespace AllocationInstructionResult_Output {
59
+ type AllocationInstructionResult_Completed = {
60
+ allocationCid: damlTypes.ContractId<pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.Allocation>;
61
+ };
62
+ } //namespace AllocationInstructionResult_Output
63
+
64
+
65
+ export declare type AllocationInstructionResult = {
66
+ output: AllocationInstructionResult_Output;
67
+ senderChangeCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
68
+ meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
69
+ };
70
+
71
+ export declare const AllocationInstructionResult:
72
+ damlTypes.Serializable<AllocationInstructionResult> & {
73
+ }
74
+ ;
75
+
76
+
77
+ export declare type AllocationFactory_PublicFetch = {
78
+ expectedAdmin: damlTypes.Party;
79
+ actor: damlTypes.Party;
80
+ };
81
+
82
+ export declare const AllocationFactory_PublicFetch:
83
+ damlTypes.Serializable<AllocationFactory_PublicFetch> & {
84
+ }
85
+ ;
86
+
87
+
88
+ export declare type AllocationFactory_Allocate = {
89
+ expectedAdmin: damlTypes.Party;
90
+ allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification;
91
+ requestedAt: damlTypes.Time;
92
+ inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
93
+ extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
94
+ };
95
+
96
+ export declare const AllocationFactory_Allocate:
97
+ damlTypes.Serializable<AllocationFactory_Allocate> & {
98
+ }
99
+ ;
100
+
101
+
102
+ export declare type AllocationFactoryView = {
103
+ admin: damlTypes.Party;
104
+ meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
105
+ };
106
+
107
+ export declare const AllocationFactoryView:
108
+ damlTypes.Serializable<AllocationFactoryView> & {
109
+ }
110
+ ;
111
+
112
+
113
+ export declare type AllocationInstruction_Update = {
114
+ extraActors: damlTypes.Party[];
115
+ extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
116
+ };
117
+
118
+ export declare const AllocationInstruction_Update:
119
+ damlTypes.Serializable<AllocationInstruction_Update> & {
120
+ }
121
+ ;
122
+
123
+
124
+ export declare type AllocationInstruction_Withdraw = {
125
+ extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
126
+ };
127
+
128
+ export declare const AllocationInstruction_Withdraw:
129
+ damlTypes.Serializable<AllocationInstruction_Withdraw> & {
130
+ }
131
+ ;
132
+
133
+
134
+ export declare type AllocationInstructionView = {
135
+ originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<AllocationInstruction>>;
136
+ allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification;
137
+ pendingActions: damlTypes.Map<damlTypes.Party, string>;
138
+ requestedAt: damlTypes.Time;
139
+ inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
140
+ meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
141
+ };
142
+
143
+ export declare const AllocationInstructionView:
144
+ damlTypes.Serializable<AllocationInstructionView> & {
145
+ }
146
+ ;
147
+
@@ -0,0 +1,215 @@
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
+
13
+ var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
14
+ var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
15
+ var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = require('../AllocationV1');
16
+ var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
17
+
18
+ exports.AllocationFactory = damlTypes.assembleInterface(
19
+ '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
20
+ '275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
21
+ function () { return exports.AllocationFactoryView; },
22
+ {
23
+ Archive: {
24
+ template: function () { return exports.AllocationFactory; },
25
+ choiceName: 'Archive',
26
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
27
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
28
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
29
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
30
+ },
31
+ AllocationFactory_Allocate: {
32
+ template: function () { return exports.AllocationFactory; },
33
+ choiceName: 'AllocationFactory_Allocate',
34
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_Allocate.decoder; }),
35
+ argumentEncode: function (__typed__) { return exports.AllocationFactory_Allocate.encode(__typed__); },
36
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
37
+ resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
38
+ },
39
+ AllocationFactory_PublicFetch: {
40
+ template: function () { return exports.AllocationFactory; },
41
+ choiceName: 'AllocationFactory_PublicFetch',
42
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_PublicFetch.decoder; }),
43
+ argumentEncode: function (__typed__) { return exports.AllocationFactory_PublicFetch.encode(__typed__); },
44
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactoryView.decoder; }),
45
+ resultEncode: function (__typed__) { return exports.AllocationFactoryView.encode(__typed__); },
46
+ },
47
+ });
48
+
49
+
50
+ exports.AllocationInstruction = damlTypes.assembleInterface(
51
+ '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
52
+ '275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
53
+ function () { return exports.AllocationInstructionView; },
54
+ {
55
+ Archive: {
56
+ template: function () { return exports.AllocationInstruction; },
57
+ choiceName: 'Archive',
58
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
59
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
60
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
61
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
62
+ },
63
+ AllocationInstruction_Withdraw: {
64
+ template: function () { return exports.AllocationInstruction; },
65
+ choiceName: 'AllocationInstruction_Withdraw',
66
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Withdraw.decoder; }),
67
+ argumentEncode: function (__typed__) { return exports.AllocationInstruction_Withdraw.encode(__typed__); },
68
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
69
+ resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
70
+ },
71
+ AllocationInstruction_Update: {
72
+ template: function () { return exports.AllocationInstruction; },
73
+ choiceName: 'AllocationInstruction_Update',
74
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Update.decoder; }),
75
+ argumentEncode: function (__typed__) { return exports.AllocationInstruction_Update.encode(__typed__); },
76
+ resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
77
+ resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
78
+ },
79
+ });
80
+
81
+
82
+
83
+ exports.AllocationInstructionResult_Output = {
84
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AllocationInstructionResult_Pending'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Completed'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
85
+ encode: function (__typed__) {
86
+ switch(__typed__.tag) {
87
+ case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
88
+ case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
89
+ case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
90
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
91
+ }
92
+ }
93
+ ,
94
+ AllocationInstructionResult_Pending:({
95
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).decoder, }); }),
96
+ encode: function (__typed__) {
97
+ return {
98
+ allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).encode(__typed__.allocationInstructionCid),
99
+ };
100
+ }
101
+ ,
102
+ }),
103
+ AllocationInstructionResult_Completed:({
104
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Allocation).decoder, }); }),
105
+ encode: function (__typed__) {
106
+ return {
107
+ allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Allocation).encode(__typed__.allocationCid),
108
+ };
109
+ }
110
+ ,
111
+ }),
112
+ };
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ exports.AllocationInstructionResult = {
121
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.AllocationInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
122
+ encode: function (__typed__) {
123
+ return {
124
+ output: exports.AllocationInstructionResult_Output.encode(__typed__.output),
125
+ senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderChangeCids),
126
+ meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
127
+ };
128
+ }
129
+ ,
130
+ };
131
+
132
+
133
+
134
+ exports.AllocationFactory_PublicFetch = {
135
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
136
+ encode: function (__typed__) {
137
+ return {
138
+ expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
139
+ actor: damlTypes.Party.encode(__typed__.actor),
140
+ };
141
+ }
142
+ ,
143
+ };
144
+
145
+
146
+
147
+ exports.AllocationFactory_Allocate = {
148
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
149
+ encode: function (__typed__) {
150
+ return {
151
+ expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
152
+ allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.encode(__typed__.allocation),
153
+ requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
154
+ inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.inputHoldingCids),
155
+ extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
156
+ };
157
+ }
158
+ ,
159
+ };
160
+
161
+
162
+
163
+ exports.AllocationFactoryView = {
164
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
165
+ encode: function (__typed__) {
166
+ return {
167
+ admin: damlTypes.Party.encode(__typed__.admin),
168
+ meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
169
+ };
170
+ }
171
+ ,
172
+ };
173
+
174
+
175
+
176
+ exports.AllocationInstruction_Update = {
177
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
178
+ encode: function (__typed__) {
179
+ return {
180
+ extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
181
+ extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
182
+ };
183
+ }
184
+ ,
185
+ };
186
+
187
+
188
+
189
+ exports.AllocationInstruction_Withdraw = {
190
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
191
+ encode: function (__typed__) {
192
+ return {
193
+ extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
194
+ };
195
+ }
196
+ ,
197
+ };
198
+
199
+
200
+
201
+ exports.AllocationInstructionView = {
202
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).decoder), allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.decoder, pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
203
+ encode: function (__typed__) {
204
+ return {
205
+ originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).encode(__typed__.originalInstructionCid),
206
+ allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.AllocationSpecification.encode(__typed__.allocation),
207
+ pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
208
+ requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
209
+ inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.inputHoldingCids),
210
+ meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
211
+ };
212
+ }
213
+ ,
214
+ };
215
+
@@ -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'));