@canton-network/core-token-standard 1.6.0 → 1.7.0
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/dist/index.browser.js +264 -264
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +264 -264
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +264 -264
- package/dist/index.js.map +1 -1
- package/package.json +14 -10
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function getAugmentedNamespace(n) {
|
|
|
77
77
|
var isInstance = false;
|
|
78
78
|
try {
|
|
79
79
|
isInstance = this instanceof a;
|
|
80
|
-
} catch {}
|
|
80
|
+
} catch (e) {}
|
|
81
81
|
if (isInstance) {
|
|
82
82
|
return Reflect.construct(f, arguments, this.constructor);
|
|
83
83
|
}
|
|
@@ -129,15 +129,15 @@ var hasRequiredModule$7;
|
|
|
129
129
|
function requireModule$7 () {
|
|
130
130
|
if (hasRequiredModule$7) return module$7;
|
|
131
131
|
hasRequiredModule$7 = 1;
|
|
132
|
-
(function (exports
|
|
133
|
-
Object.defineProperty(exports
|
|
132
|
+
(function (exports) {
|
|
133
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
134
134
|
/* eslint-disable-next-line no-unused-vars */
|
|
135
135
|
var jtv = require$$0;
|
|
136
136
|
/* eslint-disable-next-line no-unused-vars */
|
|
137
137
|
var damlTypes = require$$1;
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
exports
|
|
140
|
+
exports.Archive = {
|
|
141
141
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
142
142
|
encode: function (__typed__) {
|
|
143
143
|
return {
|
|
@@ -154,13 +154,13 @@ var hasRequiredTemplate;
|
|
|
154
154
|
function requireTemplate () {
|
|
155
155
|
if (hasRequiredTemplate) return Template;
|
|
156
156
|
hasRequiredTemplate = 1;
|
|
157
|
-
(function (exports
|
|
157
|
+
(function (exports) {
|
|
158
158
|
/* eslint-disable-next-line no-unused-vars */
|
|
159
159
|
function __export(m) {
|
|
160
160
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
161
|
-
for (var p in m) if (!exports
|
|
161
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
162
162
|
}
|
|
163
|
-
Object.defineProperty(exports
|
|
163
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
164
164
|
__export(requireModule$7());
|
|
165
165
|
} (Template));
|
|
166
166
|
return Template;
|
|
@@ -171,10 +171,10 @@ var hasRequiredInternal;
|
|
|
171
171
|
function requireInternal () {
|
|
172
172
|
if (hasRequiredInternal) return Internal;
|
|
173
173
|
hasRequiredInternal = 1;
|
|
174
|
-
(function (exports
|
|
175
|
-
Object.defineProperty(exports
|
|
174
|
+
(function (exports) {
|
|
175
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176
176
|
var Template = requireTemplate();
|
|
177
|
-
exports
|
|
177
|
+
exports.Template = Template;
|
|
178
178
|
} (Internal));
|
|
179
179
|
return Internal;
|
|
180
180
|
}
|
|
@@ -184,10 +184,10 @@ var hasRequiredDA$1;
|
|
|
184
184
|
function requireDA$1 () {
|
|
185
185
|
if (hasRequiredDA$1) return DA$1;
|
|
186
186
|
hasRequiredDA$1 = 1;
|
|
187
|
-
(function (exports
|
|
188
|
-
Object.defineProperty(exports
|
|
187
|
+
(function (exports) {
|
|
188
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
189
189
|
var Internal = requireInternal();
|
|
190
|
-
exports
|
|
190
|
+
exports.Internal = Internal;
|
|
191
191
|
} (DA$1));
|
|
192
192
|
return DA$1;
|
|
193
193
|
}
|
|
@@ -197,11 +197,11 @@ var hasRequiredLib$2;
|
|
|
197
197
|
function requireLib$2 () {
|
|
198
198
|
if (hasRequiredLib$2) return lib$1;
|
|
199
199
|
hasRequiredLib$2 = 1;
|
|
200
|
-
(function (exports
|
|
201
|
-
Object.defineProperty(exports
|
|
200
|
+
(function (exports) {
|
|
201
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
202
202
|
var DA = requireDA$1();
|
|
203
|
-
exports
|
|
204
|
-
exports
|
|
203
|
+
exports.DA = DA;
|
|
204
|
+
exports.packageId = '9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69';
|
|
205
205
|
} (lib$1));
|
|
206
206
|
return lib$1;
|
|
207
207
|
}
|
|
@@ -225,15 +225,15 @@ var hasRequiredModule$6;
|
|
|
225
225
|
function requireModule$6 () {
|
|
226
226
|
if (hasRequiredModule$6) return module$4;
|
|
227
227
|
hasRequiredModule$6 = 1;
|
|
228
|
-
(function (exports
|
|
229
|
-
Object.defineProperty(exports
|
|
228
|
+
(function (exports) {
|
|
229
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
230
230
|
/* eslint-disable-next-line no-unused-vars */
|
|
231
231
|
var jtv = require$$0;
|
|
232
232
|
/* eslint-disable-next-line no-unused-vars */
|
|
233
233
|
var damlTypes = require$$1;
|
|
234
234
|
|
|
235
235
|
|
|
236
|
-
exports
|
|
236
|
+
exports.RelTime = {
|
|
237
237
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({microseconds: damlTypes.Int.decoder, }); }),
|
|
238
238
|
encode: function (__typed__) {
|
|
239
239
|
return {
|
|
@@ -251,13 +251,13 @@ var hasRequiredTypes;
|
|
|
251
251
|
function requireTypes () {
|
|
252
252
|
if (hasRequiredTypes) return Types;
|
|
253
253
|
hasRequiredTypes = 1;
|
|
254
|
-
(function (exports
|
|
254
|
+
(function (exports) {
|
|
255
255
|
/* eslint-disable-next-line no-unused-vars */
|
|
256
256
|
function __export(m) {
|
|
257
257
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
258
|
-
for (var p in m) if (!exports
|
|
258
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
259
259
|
}
|
|
260
|
-
Object.defineProperty(exports
|
|
260
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
261
261
|
__export(requireModule$6());
|
|
262
262
|
} (Types));
|
|
263
263
|
return Types;
|
|
@@ -268,10 +268,10 @@ var hasRequiredTime;
|
|
|
268
268
|
function requireTime () {
|
|
269
269
|
if (hasRequiredTime) return Time;
|
|
270
270
|
hasRequiredTime = 1;
|
|
271
|
-
(function (exports
|
|
272
|
-
Object.defineProperty(exports
|
|
271
|
+
(function (exports) {
|
|
272
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
273
273
|
var Types = requireTypes();
|
|
274
|
-
exports
|
|
274
|
+
exports.Types = Types;
|
|
275
275
|
} (Time));
|
|
276
276
|
return Time;
|
|
277
277
|
}
|
|
@@ -281,10 +281,10 @@ var hasRequiredDA;
|
|
|
281
281
|
function requireDA () {
|
|
282
282
|
if (hasRequiredDA) return DA;
|
|
283
283
|
hasRequiredDA = 1;
|
|
284
|
-
(function (exports
|
|
285
|
-
Object.defineProperty(exports
|
|
284
|
+
(function (exports) {
|
|
285
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
286
286
|
var Time = requireTime();
|
|
287
|
-
exports
|
|
287
|
+
exports.Time = Time;
|
|
288
288
|
} (DA));
|
|
289
289
|
return DA;
|
|
290
290
|
}
|
|
@@ -294,11 +294,11 @@ var hasRequiredLib$1;
|
|
|
294
294
|
function requireLib$1 () {
|
|
295
295
|
if (hasRequiredLib$1) return lib;
|
|
296
296
|
hasRequiredLib$1 = 1;
|
|
297
|
-
(function (exports
|
|
298
|
-
Object.defineProperty(exports
|
|
297
|
+
(function (exports) {
|
|
298
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
299
299
|
var DA = requireDA();
|
|
300
|
-
exports
|
|
301
|
-
exports
|
|
300
|
+
exports.DA = DA;
|
|
301
|
+
exports.packageId = 'b70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946';
|
|
302
302
|
} (lib));
|
|
303
303
|
return lib;
|
|
304
304
|
}
|
|
@@ -310,8 +310,8 @@ var hasRequiredModule$5;
|
|
|
310
310
|
function requireModule$5 () {
|
|
311
311
|
if (hasRequiredModule$5) return module$3;
|
|
312
312
|
hasRequiredModule$5 = 1;
|
|
313
|
-
(function (exports
|
|
314
|
-
Object.defineProperty(exports
|
|
313
|
+
(function (exports) {
|
|
314
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
315
315
|
/* eslint-disable-next-line no-unused-vars */
|
|
316
316
|
var jtv = require$$0;
|
|
317
317
|
/* eslint-disable-next-line no-unused-vars */
|
|
@@ -320,13 +320,13 @@ function requireModule$5 () {
|
|
|
320
320
|
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$2();
|
|
321
321
|
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = requireLib$1();
|
|
322
322
|
|
|
323
|
-
exports
|
|
323
|
+
exports.AnyContract = damlTypes.assembleInterface(
|
|
324
324
|
'#token-standard-models:Splice.Api.Token.MetadataV1:AnyContract',
|
|
325
325
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.MetadataV1:AnyContract',
|
|
326
|
-
function () { return exports
|
|
326
|
+
function () { return exports.AnyContractView; },
|
|
327
327
|
{
|
|
328
328
|
Archive: {
|
|
329
|
-
template: function () { return exports
|
|
329
|
+
template: function () { return exports.AnyContract; },
|
|
330
330
|
choiceName: 'Archive',
|
|
331
331
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
332
332
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -337,11 +337,11 @@ function requireModule$5 () {
|
|
|
337
337
|
|
|
338
338
|
|
|
339
339
|
|
|
340
|
-
exports
|
|
341
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({meta: exports
|
|
340
|
+
exports.ChoiceExecutionMetadata = {
|
|
341
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({meta: exports.Metadata.decoder, }); }),
|
|
342
342
|
encode: function (__typed__) {
|
|
343
343
|
return {
|
|
344
|
-
meta: exports
|
|
344
|
+
meta: exports.Metadata.encode(__typed__.meta),
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
,
|
|
@@ -349,12 +349,12 @@ function requireModule$5 () {
|
|
|
349
349
|
|
|
350
350
|
|
|
351
351
|
|
|
352
|
-
exports
|
|
353
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: exports
|
|
352
|
+
exports.ExtraArgs = {
|
|
353
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: exports.ChoiceContext.decoder, meta: exports.Metadata.decoder, }); }),
|
|
354
354
|
encode: function (__typed__) {
|
|
355
355
|
return {
|
|
356
|
-
context: exports
|
|
357
|
-
meta: exports
|
|
356
|
+
context: exports.ChoiceContext.encode(__typed__.context),
|
|
357
|
+
meta: exports.Metadata.encode(__typed__.meta),
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
,
|
|
@@ -362,7 +362,7 @@ function requireModule$5 () {
|
|
|
362
362
|
|
|
363
363
|
|
|
364
364
|
|
|
365
|
-
exports
|
|
365
|
+
exports.Metadata = {
|
|
366
366
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(damlTypes.Text).decoder, }); }),
|
|
367
367
|
encode: function (__typed__) {
|
|
368
368
|
return {
|
|
@@ -374,11 +374,11 @@ function requireModule$5 () {
|
|
|
374
374
|
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
exports
|
|
378
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(exports
|
|
377
|
+
exports.ChoiceContext = {
|
|
378
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(exports.AnyValue).decoder, }); }),
|
|
379
379
|
encode: function (__typed__) {
|
|
380
380
|
return {
|
|
381
|
-
values: damlTypes.TextMap(exports
|
|
381
|
+
values: damlTypes.TextMap(exports.AnyValue).encode(__typed__.values),
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
,
|
|
@@ -386,7 +386,7 @@ function requireModule$5 () {
|
|
|
386
386
|
|
|
387
387
|
|
|
388
388
|
|
|
389
|
-
exports
|
|
389
|
+
exports.AnyContractView = {
|
|
390
390
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
391
391
|
encode: function (__typed__) {
|
|
392
392
|
return {
|
|
@@ -397,8 +397,8 @@ function requireModule$5 () {
|
|
|
397
397
|
|
|
398
398
|
|
|
399
399
|
|
|
400
|
-
exports
|
|
401
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AV_Text'), value: damlTypes.Text.decoder, }), jtv.object({tag: jtv.constant('AV_Int'), value: damlTypes.Int.decoder, }), jtv.object({tag: jtv.constant('AV_Decimal'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('AV_Bool'), value: damlTypes.Bool.decoder, }), jtv.object({tag: jtv.constant('AV_Date'), value: damlTypes.Date.decoder, }), jtv.object({tag: jtv.constant('AV_Time'), value: damlTypes.Time.decoder, }), jtv.object({tag: jtv.constant('AV_RelTime'), value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, }), jtv.object({tag: jtv.constant('AV_Party'), value: damlTypes.Party.decoder, }), jtv.object({tag: jtv.constant('AV_ContractId'), value: damlTypes.ContractId(exports
|
|
400
|
+
exports.AnyValue = {
|
|
401
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AV_Text'), value: damlTypes.Text.decoder, }), jtv.object({tag: jtv.constant('AV_Int'), value: damlTypes.Int.decoder, }), jtv.object({tag: jtv.constant('AV_Decimal'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('AV_Bool'), value: damlTypes.Bool.decoder, }), jtv.object({tag: jtv.constant('AV_Date'), value: damlTypes.Date.decoder, }), jtv.object({tag: jtv.constant('AV_Time'), value: damlTypes.Time.decoder, }), jtv.object({tag: jtv.constant('AV_RelTime'), value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, }), jtv.object({tag: jtv.constant('AV_Party'), value: damlTypes.Party.decoder, }), jtv.object({tag: jtv.constant('AV_ContractId'), value: damlTypes.ContractId(exports.AnyContract).decoder, }), jtv.object({tag: jtv.constant('AV_List'), value: damlTypes.List(exports.AnyValue).decoder, }), jtv.object({tag: jtv.constant('AV_Map'), value: damlTypes.TextMap(exports.AnyValue).decoder, })); }),
|
|
402
402
|
encode: function (__typed__) {
|
|
403
403
|
switch(__typed__.tag) {
|
|
404
404
|
case 'AV_Text': return {tag: __typed__.tag, value: damlTypes.Text.encode(__typed__.value)};
|
|
@@ -409,9 +409,9 @@ function requireModule$5 () {
|
|
|
409
409
|
case 'AV_Time': return {tag: __typed__.tag, value: damlTypes.Time.encode(__typed__.value)};
|
|
410
410
|
case 'AV_RelTime': return {tag: __typed__.tag, value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.value)};
|
|
411
411
|
case 'AV_Party': return {tag: __typed__.tag, value: damlTypes.Party.encode(__typed__.value)};
|
|
412
|
-
case 'AV_ContractId': return {tag: __typed__.tag, value: damlTypes.ContractId(exports
|
|
413
|
-
case 'AV_List': return {tag: __typed__.tag, value: damlTypes.List(exports
|
|
414
|
-
case 'AV_Map': return {tag: __typed__.tag, value: damlTypes.TextMap(exports
|
|
412
|
+
case 'AV_ContractId': return {tag: __typed__.tag, value: damlTypes.ContractId(exports.AnyContract).encode(__typed__.value)};
|
|
413
|
+
case 'AV_List': return {tag: __typed__.tag, value: damlTypes.List(exports.AnyValue).encode(__typed__.value)};
|
|
414
|
+
case 'AV_Map': return {tag: __typed__.tag, value: damlTypes.TextMap(exports.AnyValue).encode(__typed__.value)};
|
|
415
415
|
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AnyValue';
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -426,8 +426,8 @@ var hasRequiredModule$4;
|
|
|
426
426
|
function requireModule$4 () {
|
|
427
427
|
if (hasRequiredModule$4) return module$5;
|
|
428
428
|
hasRequiredModule$4 = 1;
|
|
429
|
-
(function (exports
|
|
430
|
-
Object.defineProperty(exports
|
|
429
|
+
(function (exports) {
|
|
430
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
431
431
|
/* eslint-disable-next-line no-unused-vars */
|
|
432
432
|
var jtv = require$$0;
|
|
433
433
|
/* eslint-disable-next-line no-unused-vars */
|
|
@@ -438,13 +438,13 @@ function requireModule$4 () {
|
|
|
438
438
|
|
|
439
439
|
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
440
440
|
|
|
441
|
-
exports
|
|
441
|
+
exports.Holding = damlTypes.assembleInterface(
|
|
442
442
|
'#token-standard-models:Splice.Api.Token.HoldingV1:Holding',
|
|
443
443
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.HoldingV1:Holding',
|
|
444
|
-
function () { return exports
|
|
444
|
+
function () { return exports.HoldingView; },
|
|
445
445
|
{
|
|
446
446
|
Archive: {
|
|
447
|
-
template: function () { return exports
|
|
447
|
+
template: function () { return exports.Holding; },
|
|
448
448
|
choiceName: 'Archive',
|
|
449
449
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
450
450
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -455,14 +455,14 @@ function requireModule$4 () {
|
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
|
|
458
|
-
exports
|
|
459
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({owner: damlTypes.Party.decoder, instrumentId: exports
|
|
458
|
+
exports.HoldingView = {
|
|
459
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({owner: damlTypes.Party.decoder, instrumentId: exports.InstrumentId.decoder, amount: damlTypes.Numeric(10).decoder, lock: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.Lock).decoder), meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
460
460
|
encode: function (__typed__) {
|
|
461
461
|
return {
|
|
462
462
|
owner: damlTypes.Party.encode(__typed__.owner),
|
|
463
|
-
instrumentId: exports
|
|
463
|
+
instrumentId: exports.InstrumentId.encode(__typed__.instrumentId),
|
|
464
464
|
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
465
|
-
lock: damlTypes.Optional(exports
|
|
465
|
+
lock: damlTypes.Optional(exports.Lock).encode(__typed__.lock),
|
|
466
466
|
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
467
467
|
};
|
|
468
468
|
}
|
|
@@ -471,7 +471,7 @@ function requireModule$4 () {
|
|
|
471
471
|
|
|
472
472
|
|
|
473
473
|
|
|
474
|
-
exports
|
|
474
|
+
exports.Lock = {
|
|
475
475
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({holders: damlTypes.List(damlTypes.Party).decoder, expiresAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), expiresAfter: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), context: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
476
476
|
encode: function (__typed__) {
|
|
477
477
|
return {
|
|
@@ -486,7 +486,7 @@ function requireModule$4 () {
|
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
|
|
489
|
-
exports
|
|
489
|
+
exports.InstrumentId = {
|
|
490
490
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, id: damlTypes.Text.decoder, }); }),
|
|
491
491
|
encode: function (__typed__) {
|
|
492
492
|
return {
|
|
@@ -505,8 +505,8 @@ var hasRequiredModule$3;
|
|
|
505
505
|
function requireModule$3 () {
|
|
506
506
|
if (hasRequiredModule$3) return module$6;
|
|
507
507
|
hasRequiredModule$3 = 1;
|
|
508
|
-
(function (exports
|
|
509
|
-
Object.defineProperty(exports
|
|
508
|
+
(function (exports) {
|
|
509
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
510
510
|
/* eslint-disable-next-line no-unused-vars */
|
|
511
511
|
var jtv = require$$0;
|
|
512
512
|
/* eslint-disable-next-line no-unused-vars */
|
|
@@ -517,13 +517,13 @@ function requireModule$3 () {
|
|
|
517
517
|
var Splice_Api_Token_HoldingV1 = requireModule$4();
|
|
518
518
|
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
519
519
|
|
|
520
|
-
exports
|
|
520
|
+
exports.Allocation = damlTypes.assembleInterface(
|
|
521
521
|
'#token-standard-models:Splice.Api.Token.AllocationV1:Allocation',
|
|
522
522
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.AllocationV1:Allocation',
|
|
523
|
-
function () { return exports
|
|
523
|
+
function () { return exports.AllocationView; },
|
|
524
524
|
{
|
|
525
525
|
Archive: {
|
|
526
|
-
template: function () { return exports
|
|
526
|
+
template: function () { return exports.Allocation; },
|
|
527
527
|
choiceName: 'Archive',
|
|
528
528
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
529
529
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -531,34 +531,34 @@ function requireModule$3 () {
|
|
|
531
531
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
532
532
|
},
|
|
533
533
|
Allocation_Withdraw: {
|
|
534
|
-
template: function () { return exports
|
|
534
|
+
template: function () { return exports.Allocation; },
|
|
535
535
|
choiceName: 'Allocation_Withdraw',
|
|
536
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
537
|
-
argumentEncode: function (__typed__) { return exports
|
|
538
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
539
|
-
resultEncode: function (__typed__) { return exports
|
|
536
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_Withdraw.decoder; }),
|
|
537
|
+
argumentEncode: function (__typed__) { return exports.Allocation_Withdraw.encode(__typed__); },
|
|
538
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_WithdrawResult.decoder; }),
|
|
539
|
+
resultEncode: function (__typed__) { return exports.Allocation_WithdrawResult.encode(__typed__); },
|
|
540
540
|
},
|
|
541
541
|
Allocation_Cancel: {
|
|
542
|
-
template: function () { return exports
|
|
542
|
+
template: function () { return exports.Allocation; },
|
|
543
543
|
choiceName: 'Allocation_Cancel',
|
|
544
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
545
|
-
argumentEncode: function (__typed__) { return exports
|
|
546
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
547
|
-
resultEncode: function (__typed__) { return exports
|
|
544
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_Cancel.decoder; }),
|
|
545
|
+
argumentEncode: function (__typed__) { return exports.Allocation_Cancel.encode(__typed__); },
|
|
546
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_CancelResult.decoder; }),
|
|
547
|
+
resultEncode: function (__typed__) { return exports.Allocation_CancelResult.encode(__typed__); },
|
|
548
548
|
},
|
|
549
549
|
Allocation_ExecuteTransfer: {
|
|
550
|
-
template: function () { return exports
|
|
550
|
+
template: function () { return exports.Allocation; },
|
|
551
551
|
choiceName: 'Allocation_ExecuteTransfer',
|
|
552
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
553
|
-
argumentEncode: function (__typed__) { return exports
|
|
554
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
555
|
-
resultEncode: function (__typed__) { return exports
|
|
552
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_ExecuteTransfer.decoder; }),
|
|
553
|
+
argumentEncode: function (__typed__) { return exports.Allocation_ExecuteTransfer.encode(__typed__); },
|
|
554
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_ExecuteTransferResult.decoder; }),
|
|
555
|
+
resultEncode: function (__typed__) { return exports.Allocation_ExecuteTransferResult.encode(__typed__); },
|
|
556
556
|
},
|
|
557
557
|
});
|
|
558
558
|
|
|
559
559
|
|
|
560
560
|
|
|
561
|
-
exports
|
|
561
|
+
exports.Allocation_WithdrawResult = {
|
|
562
562
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
563
563
|
encode: function (__typed__) {
|
|
564
564
|
return {
|
|
@@ -571,7 +571,7 @@ function requireModule$3 () {
|
|
|
571
571
|
|
|
572
572
|
|
|
573
573
|
|
|
574
|
-
exports
|
|
574
|
+
exports.Allocation_CancelResult = {
|
|
575
575
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
576
576
|
encode: function (__typed__) {
|
|
577
577
|
return {
|
|
@@ -584,7 +584,7 @@ function requireModule$3 () {
|
|
|
584
584
|
|
|
585
585
|
|
|
586
586
|
|
|
587
|
-
exports
|
|
587
|
+
exports.Allocation_ExecuteTransferResult = {
|
|
588
588
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, receiverHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
589
589
|
encode: function (__typed__) {
|
|
590
590
|
return {
|
|
@@ -598,7 +598,7 @@ function requireModule$3 () {
|
|
|
598
598
|
|
|
599
599
|
|
|
600
600
|
|
|
601
|
-
exports
|
|
601
|
+
exports.Allocation_Withdraw = {
|
|
602
602
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
603
603
|
encode: function (__typed__) {
|
|
604
604
|
return {
|
|
@@ -610,7 +610,7 @@ function requireModule$3 () {
|
|
|
610
610
|
|
|
611
611
|
|
|
612
612
|
|
|
613
|
-
exports
|
|
613
|
+
exports.Allocation_Cancel = {
|
|
614
614
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
615
615
|
encode: function (__typed__) {
|
|
616
616
|
return {
|
|
@@ -622,7 +622,7 @@ function requireModule$3 () {
|
|
|
622
622
|
|
|
623
623
|
|
|
624
624
|
|
|
625
|
-
exports
|
|
625
|
+
exports.Allocation_ExecuteTransfer = {
|
|
626
626
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
627
627
|
encode: function (__typed__) {
|
|
628
628
|
return {
|
|
@@ -634,11 +634,11 @@ function requireModule$3 () {
|
|
|
634
634
|
|
|
635
635
|
|
|
636
636
|
|
|
637
|
-
exports
|
|
638
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocation: exports
|
|
637
|
+
exports.AllocationView = {
|
|
638
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocation: exports.AllocationSpecification.decoder, holdingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
639
639
|
encode: function (__typed__) {
|
|
640
640
|
return {
|
|
641
|
-
allocation: exports
|
|
641
|
+
allocation: exports.AllocationSpecification.encode(__typed__.allocation),
|
|
642
642
|
holdingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.holdingCids),
|
|
643
643
|
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
644
644
|
};
|
|
@@ -648,13 +648,13 @@ function requireModule$3 () {
|
|
|
648
648
|
|
|
649
649
|
|
|
650
650
|
|
|
651
|
-
exports
|
|
652
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: exports
|
|
651
|
+
exports.AllocationSpecification = {
|
|
652
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: exports.SettlementInfo.decoder, transferLegId: damlTypes.Text.decoder, transferLeg: exports.TransferLeg.decoder, }); }),
|
|
653
653
|
encode: function (__typed__) {
|
|
654
654
|
return {
|
|
655
|
-
settlement: exports
|
|
655
|
+
settlement: exports.SettlementInfo.encode(__typed__.settlement),
|
|
656
656
|
transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
|
|
657
|
-
transferLeg: exports
|
|
657
|
+
transferLeg: exports.TransferLeg.encode(__typed__.transferLeg),
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
,
|
|
@@ -662,7 +662,7 @@ function requireModule$3 () {
|
|
|
662
662
|
|
|
663
663
|
|
|
664
664
|
|
|
665
|
-
exports
|
|
665
|
+
exports.TransferLeg = {
|
|
666
666
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
667
667
|
encode: function (__typed__) {
|
|
668
668
|
return {
|
|
@@ -678,12 +678,12 @@ function requireModule$3 () {
|
|
|
678
678
|
|
|
679
679
|
|
|
680
680
|
|
|
681
|
-
exports
|
|
682
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({executor: damlTypes.Party.decoder, settlementRef: exports
|
|
681
|
+
exports.SettlementInfo = {
|
|
682
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({executor: damlTypes.Party.decoder, settlementRef: exports.Reference.decoder, requestedAt: damlTypes.Time.decoder, allocateBefore: damlTypes.Time.decoder, settleBefore: damlTypes.Time.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
683
683
|
encode: function (__typed__) {
|
|
684
684
|
return {
|
|
685
685
|
executor: damlTypes.Party.encode(__typed__.executor),
|
|
686
|
-
settlementRef: exports
|
|
686
|
+
settlementRef: exports.Reference.encode(__typed__.settlementRef),
|
|
687
687
|
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
688
688
|
allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
|
|
689
689
|
settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
|
|
@@ -695,7 +695,7 @@ function requireModule$3 () {
|
|
|
695
695
|
|
|
696
696
|
|
|
697
697
|
|
|
698
|
-
exports
|
|
698
|
+
exports.Reference = {
|
|
699
699
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, cid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(Splice_Api_Token_MetadataV1.AnyContract)).decoder), }); }),
|
|
700
700
|
encode: function (__typed__) {
|
|
701
701
|
return {
|
|
@@ -714,8 +714,8 @@ var hasRequiredModule$2;
|
|
|
714
714
|
function requireModule$2 () {
|
|
715
715
|
if (hasRequiredModule$2) return module$8;
|
|
716
716
|
hasRequiredModule$2 = 1;
|
|
717
|
-
(function (exports
|
|
718
|
-
Object.defineProperty(exports
|
|
717
|
+
(function (exports) {
|
|
718
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
719
719
|
/* eslint-disable-next-line no-unused-vars */
|
|
720
720
|
var jtv = require$$0;
|
|
721
721
|
/* eslint-disable-next-line no-unused-vars */
|
|
@@ -727,13 +727,13 @@ function requireModule$2 () {
|
|
|
727
727
|
var Splice_Api_Token_HoldingV1 = requireModule$4();
|
|
728
728
|
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
729
729
|
|
|
730
|
-
exports
|
|
730
|
+
exports.AllocationFactory = damlTypes.assembleInterface(
|
|
731
731
|
'#token-standard-models:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
732
732
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
733
|
-
function () { return exports
|
|
733
|
+
function () { return exports.AllocationFactoryView; },
|
|
734
734
|
{
|
|
735
735
|
Archive: {
|
|
736
|
-
template: function () { return exports
|
|
736
|
+
template: function () { return exports.AllocationFactory; },
|
|
737
737
|
choiceName: 'Archive',
|
|
738
738
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
739
739
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -741,31 +741,31 @@ function requireModule$2 () {
|
|
|
741
741
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
742
742
|
},
|
|
743
743
|
AllocationFactory_Allocate: {
|
|
744
|
-
template: function () { return exports
|
|
744
|
+
template: function () { return exports.AllocationFactory; },
|
|
745
745
|
choiceName: 'AllocationFactory_Allocate',
|
|
746
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
747
|
-
argumentEncode: function (__typed__) { return exports
|
|
748
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
749
|
-
resultEncode: function (__typed__) { return exports
|
|
746
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_Allocate.decoder; }),
|
|
747
|
+
argumentEncode: function (__typed__) { return exports.AllocationFactory_Allocate.encode(__typed__); },
|
|
748
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
749
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
750
750
|
},
|
|
751
751
|
AllocationFactory_PublicFetch: {
|
|
752
|
-
template: function () { return exports
|
|
752
|
+
template: function () { return exports.AllocationFactory; },
|
|
753
753
|
choiceName: 'AllocationFactory_PublicFetch',
|
|
754
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
755
|
-
argumentEncode: function (__typed__) { return exports
|
|
756
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
757
|
-
resultEncode: function (__typed__) { return exports
|
|
754
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactory_PublicFetch.decoder; }),
|
|
755
|
+
argumentEncode: function (__typed__) { return exports.AllocationFactory_PublicFetch.encode(__typed__); },
|
|
756
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationFactoryView.decoder; }),
|
|
757
|
+
resultEncode: function (__typed__) { return exports.AllocationFactoryView.encode(__typed__); },
|
|
758
758
|
},
|
|
759
759
|
});
|
|
760
760
|
|
|
761
761
|
|
|
762
|
-
exports
|
|
762
|
+
exports.AllocationInstruction = damlTypes.assembleInterface(
|
|
763
763
|
'#token-standard-models:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
764
764
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
765
|
-
function () { return exports
|
|
765
|
+
function () { return exports.AllocationInstructionView; },
|
|
766
766
|
{
|
|
767
767
|
Archive: {
|
|
768
|
-
template: function () { return exports
|
|
768
|
+
template: function () { return exports.AllocationInstruction; },
|
|
769
769
|
choiceName: 'Archive',
|
|
770
770
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
771
771
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -773,41 +773,41 @@ function requireModule$2 () {
|
|
|
773
773
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
774
774
|
},
|
|
775
775
|
AllocationInstruction_Withdraw: {
|
|
776
|
-
template: function () { return exports
|
|
776
|
+
template: function () { return exports.AllocationInstruction; },
|
|
777
777
|
choiceName: 'AllocationInstruction_Withdraw',
|
|
778
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
779
|
-
argumentEncode: function (__typed__) { return exports
|
|
780
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
781
|
-
resultEncode: function (__typed__) { return exports
|
|
778
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Withdraw.decoder; }),
|
|
779
|
+
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Withdraw.encode(__typed__); },
|
|
780
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
781
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
782
782
|
},
|
|
783
783
|
AllocationInstruction_Update: {
|
|
784
|
-
template: function () { return exports
|
|
784
|
+
template: function () { return exports.AllocationInstruction; },
|
|
785
785
|
choiceName: 'AllocationInstruction_Update',
|
|
786
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
787
|
-
argumentEncode: function (__typed__) { return exports
|
|
788
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
789
|
-
resultEncode: function (__typed__) { return exports
|
|
786
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstruction_Update.decoder; }),
|
|
787
|
+
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Update.encode(__typed__); },
|
|
788
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.AllocationInstructionResult.decoder; }),
|
|
789
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
790
790
|
},
|
|
791
791
|
});
|
|
792
792
|
|
|
793
793
|
|
|
794
794
|
|
|
795
|
-
exports
|
|
796
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AllocationInstructionResult_Pending'), value: exports
|
|
795
|
+
exports.AllocationInstructionResult_Output = {
|
|
796
|
+
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, })); }),
|
|
797
797
|
encode: function (__typed__) {
|
|
798
798
|
switch(__typed__.tag) {
|
|
799
|
-
case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports
|
|
800
|
-
case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports
|
|
799
|
+
case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
|
|
800
|
+
case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
|
|
801
801
|
case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
802
802
|
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
,
|
|
806
806
|
AllocationInstructionResult_Pending:({
|
|
807
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationInstructionCid: damlTypes.ContractId(exports
|
|
807
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).decoder, }); }),
|
|
808
808
|
encode: function (__typed__) {
|
|
809
809
|
return {
|
|
810
|
-
allocationInstructionCid: damlTypes.ContractId(exports
|
|
810
|
+
allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).encode(__typed__.allocationInstructionCid),
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
813
|
,
|
|
@@ -829,11 +829,11 @@ function requireModule$2 () {
|
|
|
829
829
|
|
|
830
830
|
|
|
831
831
|
|
|
832
|
-
exports
|
|
833
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports
|
|
832
|
+
exports.AllocationInstructionResult = {
|
|
833
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.AllocationInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
834
834
|
encode: function (__typed__) {
|
|
835
835
|
return {
|
|
836
|
-
output: exports
|
|
836
|
+
output: exports.AllocationInstructionResult_Output.encode(__typed__.output),
|
|
837
837
|
senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderChangeCids),
|
|
838
838
|
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
839
839
|
};
|
|
@@ -843,7 +843,7 @@ function requireModule$2 () {
|
|
|
843
843
|
|
|
844
844
|
|
|
845
845
|
|
|
846
|
-
exports
|
|
846
|
+
exports.AllocationFactory_PublicFetch = {
|
|
847
847
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
|
|
848
848
|
encode: function (__typed__) {
|
|
849
849
|
return {
|
|
@@ -856,7 +856,7 @@ function requireModule$2 () {
|
|
|
856
856
|
|
|
857
857
|
|
|
858
858
|
|
|
859
|
-
exports
|
|
859
|
+
exports.AllocationFactory_Allocate = {
|
|
860
860
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, allocation: Splice_Api_Token_AllocationV1.AllocationSpecification.decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
861
861
|
encode: function (__typed__) {
|
|
862
862
|
return {
|
|
@@ -872,7 +872,7 @@ function requireModule$2 () {
|
|
|
872
872
|
|
|
873
873
|
|
|
874
874
|
|
|
875
|
-
exports
|
|
875
|
+
exports.AllocationFactoryView = {
|
|
876
876
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
877
877
|
encode: function (__typed__) {
|
|
878
878
|
return {
|
|
@@ -885,7 +885,7 @@ function requireModule$2 () {
|
|
|
885
885
|
|
|
886
886
|
|
|
887
887
|
|
|
888
|
-
exports
|
|
888
|
+
exports.AllocationInstruction_Update = {
|
|
889
889
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
890
890
|
encode: function (__typed__) {
|
|
891
891
|
return {
|
|
@@ -898,7 +898,7 @@ function requireModule$2 () {
|
|
|
898
898
|
|
|
899
899
|
|
|
900
900
|
|
|
901
|
-
exports
|
|
901
|
+
exports.AllocationInstruction_Withdraw = {
|
|
902
902
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
903
903
|
encode: function (__typed__) {
|
|
904
904
|
return {
|
|
@@ -910,11 +910,11 @@ function requireModule$2 () {
|
|
|
910
910
|
|
|
911
911
|
|
|
912
912
|
|
|
913
|
-
exports
|
|
914
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports
|
|
913
|
+
exports.AllocationInstructionView = {
|
|
914
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).decoder), allocation: Splice_Api_Token_AllocationV1.AllocationSpecification.decoder, pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, requestedAt: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
915
915
|
encode: function (__typed__) {
|
|
916
916
|
return {
|
|
917
|
-
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports
|
|
917
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).encode(__typed__.originalInstructionCid),
|
|
918
918
|
allocation: Splice_Api_Token_AllocationV1.AllocationSpecification.encode(__typed__.allocation),
|
|
919
919
|
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
920
920
|
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
@@ -933,13 +933,13 @@ var hasRequiredAllocationInstructionV1;
|
|
|
933
933
|
function requireAllocationInstructionV1 () {
|
|
934
934
|
if (hasRequiredAllocationInstructionV1) return AllocationInstructionV1$1;
|
|
935
935
|
hasRequiredAllocationInstructionV1 = 1;
|
|
936
|
-
(function (exports
|
|
936
|
+
(function (exports) {
|
|
937
937
|
/* eslint-disable-next-line no-unused-vars */
|
|
938
938
|
function __export(m) {
|
|
939
939
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
940
|
-
for (var p in m) if (!exports
|
|
940
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
941
941
|
}
|
|
942
|
-
Object.defineProperty(exports
|
|
942
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
943
943
|
__export(requireModule$2());
|
|
944
944
|
} (AllocationInstructionV1$1));
|
|
945
945
|
return AllocationInstructionV1$1;
|
|
@@ -954,8 +954,8 @@ var hasRequiredModule$1;
|
|
|
954
954
|
function requireModule$1 () {
|
|
955
955
|
if (hasRequiredModule$1) return module$2;
|
|
956
956
|
hasRequiredModule$1 = 1;
|
|
957
|
-
(function (exports
|
|
958
|
-
Object.defineProperty(exports
|
|
957
|
+
(function (exports) {
|
|
958
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
959
959
|
/* eslint-disable-next-line no-unused-vars */
|
|
960
960
|
var jtv = require$$0;
|
|
961
961
|
/* eslint-disable-next-line no-unused-vars */
|
|
@@ -966,13 +966,13 @@ function requireModule$1 () {
|
|
|
966
966
|
var Splice_Api_Token_AllocationV1 = requireModule$3();
|
|
967
967
|
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
968
968
|
|
|
969
|
-
exports
|
|
969
|
+
exports.AllocationRequest = damlTypes.assembleInterface(
|
|
970
970
|
'#token-standard-models:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
|
|
971
971
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
|
|
972
|
-
function () { return exports
|
|
972
|
+
function () { return exports.AllocationRequestView; },
|
|
973
973
|
{
|
|
974
974
|
Archive: {
|
|
975
|
-
template: function () { return exports
|
|
975
|
+
template: function () { return exports.AllocationRequest; },
|
|
976
976
|
choiceName: 'Archive',
|
|
977
977
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
978
978
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -980,18 +980,18 @@ function requireModule$1 () {
|
|
|
980
980
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
981
981
|
},
|
|
982
982
|
AllocationRequest_Reject: {
|
|
983
|
-
template: function () { return exports
|
|
983
|
+
template: function () { return exports.AllocationRequest; },
|
|
984
984
|
choiceName: 'AllocationRequest_Reject',
|
|
985
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
986
|
-
argumentEncode: function (__typed__) { return exports
|
|
985
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationRequest_Reject.decoder; }),
|
|
986
|
+
argumentEncode: function (__typed__) { return exports.AllocationRequest_Reject.encode(__typed__); },
|
|
987
987
|
resultDecoder: damlTypes.lazyMemo(function () { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.decoder; }),
|
|
988
988
|
resultEncode: function (__typed__) { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.encode(__typed__); },
|
|
989
989
|
},
|
|
990
990
|
AllocationRequest_Withdraw: {
|
|
991
|
-
template: function () { return exports
|
|
991
|
+
template: function () { return exports.AllocationRequest; },
|
|
992
992
|
choiceName: 'AllocationRequest_Withdraw',
|
|
993
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
994
|
-
argumentEncode: function (__typed__) { return exports
|
|
993
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.AllocationRequest_Withdraw.decoder; }),
|
|
994
|
+
argumentEncode: function (__typed__) { return exports.AllocationRequest_Withdraw.encode(__typed__); },
|
|
995
995
|
resultDecoder: damlTypes.lazyMemo(function () { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.decoder; }),
|
|
996
996
|
resultEncode: function (__typed__) { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.encode(__typed__); },
|
|
997
997
|
},
|
|
@@ -999,7 +999,7 @@ function requireModule$1 () {
|
|
|
999
999
|
|
|
1000
1000
|
|
|
1001
1001
|
|
|
1002
|
-
exports
|
|
1002
|
+
exports.AllocationRequestView = {
|
|
1003
1003
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: Splice_Api_Token_AllocationV1.SettlementInfo.decoder, transferLegs: damlTypes.TextMap(Splice_Api_Token_AllocationV1.TransferLeg).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
1004
1004
|
encode: function (__typed__) {
|
|
1005
1005
|
return {
|
|
@@ -1013,7 +1013,7 @@ function requireModule$1 () {
|
|
|
1013
1013
|
|
|
1014
1014
|
|
|
1015
1015
|
|
|
1016
|
-
exports
|
|
1016
|
+
exports.AllocationRequest_Withdraw = {
|
|
1017
1017
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1018
1018
|
encode: function (__typed__) {
|
|
1019
1019
|
return {
|
|
@@ -1025,7 +1025,7 @@ function requireModule$1 () {
|
|
|
1025
1025
|
|
|
1026
1026
|
|
|
1027
1027
|
|
|
1028
|
-
exports
|
|
1028
|
+
exports.AllocationRequest_Reject = {
|
|
1029
1029
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1030
1030
|
encode: function (__typed__) {
|
|
1031
1031
|
return {
|
|
@@ -1044,13 +1044,13 @@ var hasRequiredAllocationRequestV1;
|
|
|
1044
1044
|
function requireAllocationRequestV1 () {
|
|
1045
1045
|
if (hasRequiredAllocationRequestV1) return AllocationRequestV1$1;
|
|
1046
1046
|
hasRequiredAllocationRequestV1 = 1;
|
|
1047
|
-
(function (exports
|
|
1047
|
+
(function (exports) {
|
|
1048
1048
|
/* eslint-disable-next-line no-unused-vars */
|
|
1049
1049
|
function __export(m) {
|
|
1050
1050
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
1051
|
-
for (var p in m) if (!exports
|
|
1051
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
1052
1052
|
}
|
|
1053
|
-
Object.defineProperty(exports
|
|
1053
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1054
1054
|
__export(requireModule$1());
|
|
1055
1055
|
} (AllocationRequestV1$1));
|
|
1056
1056
|
return AllocationRequestV1$1;
|
|
@@ -1063,13 +1063,13 @@ var hasRequiredAllocationV1;
|
|
|
1063
1063
|
function requireAllocationV1 () {
|
|
1064
1064
|
if (hasRequiredAllocationV1) return AllocationV1$1;
|
|
1065
1065
|
hasRequiredAllocationV1 = 1;
|
|
1066
|
-
(function (exports
|
|
1066
|
+
(function (exports) {
|
|
1067
1067
|
/* eslint-disable-next-line no-unused-vars */
|
|
1068
1068
|
function __export(m) {
|
|
1069
1069
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
1070
|
-
for (var p in m) if (!exports
|
|
1070
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
1071
1071
|
}
|
|
1072
|
-
Object.defineProperty(exports
|
|
1072
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1073
1073
|
__export(requireModule$3());
|
|
1074
1074
|
} (AllocationV1$1));
|
|
1075
1075
|
return AllocationV1$1;
|
|
@@ -1082,13 +1082,13 @@ var hasRequiredHoldingV1;
|
|
|
1082
1082
|
function requireHoldingV1 () {
|
|
1083
1083
|
if (hasRequiredHoldingV1) return HoldingV1$1;
|
|
1084
1084
|
hasRequiredHoldingV1 = 1;
|
|
1085
|
-
(function (exports
|
|
1085
|
+
(function (exports) {
|
|
1086
1086
|
/* eslint-disable-next-line no-unused-vars */
|
|
1087
1087
|
function __export(m) {
|
|
1088
1088
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
1089
|
-
for (var p in m) if (!exports
|
|
1089
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
1090
1090
|
}
|
|
1091
|
-
Object.defineProperty(exports
|
|
1091
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1092
1092
|
__export(requireModule$4());
|
|
1093
1093
|
} (HoldingV1$1));
|
|
1094
1094
|
return HoldingV1$1;
|
|
@@ -1101,13 +1101,13 @@ var hasRequiredMetadataV1;
|
|
|
1101
1101
|
function requireMetadataV1 () {
|
|
1102
1102
|
if (hasRequiredMetadataV1) return MetadataV1$1;
|
|
1103
1103
|
hasRequiredMetadataV1 = 1;
|
|
1104
|
-
(function (exports
|
|
1104
|
+
(function (exports) {
|
|
1105
1105
|
/* eslint-disable-next-line no-unused-vars */
|
|
1106
1106
|
function __export(m) {
|
|
1107
1107
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
1108
|
-
for (var p in m) if (!exports
|
|
1108
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
1109
1109
|
}
|
|
1110
|
-
Object.defineProperty(exports
|
|
1110
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1111
1111
|
__export(requireModule$5());
|
|
1112
1112
|
} (MetadataV1$1));
|
|
1113
1113
|
return MetadataV1$1;
|
|
@@ -1122,8 +1122,8 @@ var hasRequiredModule;
|
|
|
1122
1122
|
function requireModule () {
|
|
1123
1123
|
if (hasRequiredModule) return module$1;
|
|
1124
1124
|
hasRequiredModule = 1;
|
|
1125
|
-
(function (exports
|
|
1126
|
-
Object.defineProperty(exports
|
|
1125
|
+
(function (exports) {
|
|
1126
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1127
1127
|
/* eslint-disable-next-line no-unused-vars */
|
|
1128
1128
|
var jtv = require$$0;
|
|
1129
1129
|
/* eslint-disable-next-line no-unused-vars */
|
|
@@ -1134,13 +1134,13 @@ function requireModule () {
|
|
|
1134
1134
|
var Splice_Api_Token_HoldingV1 = requireModule$4();
|
|
1135
1135
|
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
1136
1136
|
|
|
1137
|
-
exports
|
|
1137
|
+
exports.TransferFactory = damlTypes.assembleInterface(
|
|
1138
1138
|
'#token-standard-models:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
1139
1139
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
1140
|
-
function () { return exports
|
|
1140
|
+
function () { return exports.TransferFactoryView; },
|
|
1141
1141
|
{
|
|
1142
1142
|
Archive: {
|
|
1143
|
-
template: function () { return exports
|
|
1143
|
+
template: function () { return exports.TransferFactory; },
|
|
1144
1144
|
choiceName: 'Archive',
|
|
1145
1145
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
1146
1146
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -1148,31 +1148,31 @@ function requireModule () {
|
|
|
1148
1148
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
1149
1149
|
},
|
|
1150
1150
|
TransferFactory_Transfer: {
|
|
1151
|
-
template: function () { return exports
|
|
1151
|
+
template: function () { return exports.TransferFactory; },
|
|
1152
1152
|
choiceName: 'TransferFactory_Transfer',
|
|
1153
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1154
|
-
argumentEncode: function (__typed__) { return exports
|
|
1155
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1156
|
-
resultEncode: function (__typed__) { return exports
|
|
1153
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_Transfer.decoder; }),
|
|
1154
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_Transfer.encode(__typed__); },
|
|
1155
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
1156
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
1157
1157
|
},
|
|
1158
1158
|
TransferFactory_PublicFetch: {
|
|
1159
|
-
template: function () { return exports
|
|
1159
|
+
template: function () { return exports.TransferFactory; },
|
|
1160
1160
|
choiceName: 'TransferFactory_PublicFetch',
|
|
1161
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1162
|
-
argumentEncode: function (__typed__) { return exports
|
|
1163
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1164
|
-
resultEncode: function (__typed__) { return exports
|
|
1161
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_PublicFetch.decoder; }),
|
|
1162
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_PublicFetch.encode(__typed__); },
|
|
1163
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactoryView.decoder; }),
|
|
1164
|
+
resultEncode: function (__typed__) { return exports.TransferFactoryView.encode(__typed__); },
|
|
1165
1165
|
},
|
|
1166
1166
|
});
|
|
1167
1167
|
|
|
1168
1168
|
|
|
1169
|
-
exports
|
|
1169
|
+
exports.TransferInstruction = damlTypes.assembleInterface(
|
|
1170
1170
|
'#token-standard-models:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
1171
1171
|
'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
1172
|
-
function () { return exports
|
|
1172
|
+
function () { return exports.TransferInstructionView; },
|
|
1173
1173
|
{
|
|
1174
1174
|
Archive: {
|
|
1175
|
-
template: function () { return exports
|
|
1175
|
+
template: function () { return exports.TransferInstruction; },
|
|
1176
1176
|
choiceName: 'Archive',
|
|
1177
1177
|
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
1178
1178
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
@@ -1180,42 +1180,42 @@ function requireModule () {
|
|
|
1180
1180
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
1181
1181
|
},
|
|
1182
1182
|
TransferInstruction_Accept: {
|
|
1183
|
-
template: function () { return exports
|
|
1183
|
+
template: function () { return exports.TransferInstruction; },
|
|
1184
1184
|
choiceName: 'TransferInstruction_Accept',
|
|
1185
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1186
|
-
argumentEncode: function (__typed__) { return exports
|
|
1187
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1188
|
-
resultEncode: function (__typed__) { return exports
|
|
1185
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Accept.decoder; }),
|
|
1186
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Accept.encode(__typed__); },
|
|
1187
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
1188
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
1189
1189
|
},
|
|
1190
1190
|
TransferInstruction_Reject: {
|
|
1191
|
-
template: function () { return exports
|
|
1191
|
+
template: function () { return exports.TransferInstruction; },
|
|
1192
1192
|
choiceName: 'TransferInstruction_Reject',
|
|
1193
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1194
|
-
argumentEncode: function (__typed__) { return exports
|
|
1195
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1196
|
-
resultEncode: function (__typed__) { return exports
|
|
1193
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Reject.decoder; }),
|
|
1194
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Reject.encode(__typed__); },
|
|
1195
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
1196
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
1197
1197
|
},
|
|
1198
1198
|
TransferInstruction_Withdraw: {
|
|
1199
|
-
template: function () { return exports
|
|
1199
|
+
template: function () { return exports.TransferInstruction; },
|
|
1200
1200
|
choiceName: 'TransferInstruction_Withdraw',
|
|
1201
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1202
|
-
argumentEncode: function (__typed__) { return exports
|
|
1203
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1204
|
-
resultEncode: function (__typed__) { return exports
|
|
1201
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Withdraw.decoder; }),
|
|
1202
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Withdraw.encode(__typed__); },
|
|
1203
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
1204
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
1205
1205
|
},
|
|
1206
1206
|
TransferInstruction_Update: {
|
|
1207
|
-
template: function () { return exports
|
|
1207
|
+
template: function () { return exports.TransferInstruction; },
|
|
1208
1208
|
choiceName: 'TransferInstruction_Update',
|
|
1209
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1210
|
-
argumentEncode: function (__typed__) { return exports
|
|
1211
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports
|
|
1212
|
-
resultEncode: function (__typed__) { return exports
|
|
1209
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Update.decoder; }),
|
|
1210
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Update.encode(__typed__); },
|
|
1211
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
1212
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
1213
1213
|
},
|
|
1214
1214
|
});
|
|
1215
1215
|
|
|
1216
1216
|
|
|
1217
1217
|
|
|
1218
|
-
exports
|
|
1218
|
+
exports.TransferFactoryView = {
|
|
1219
1219
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
1220
1220
|
encode: function (__typed__) {
|
|
1221
1221
|
return {
|
|
@@ -1228,7 +1228,7 @@ function requireModule () {
|
|
|
1228
1228
|
|
|
1229
1229
|
|
|
1230
1230
|
|
|
1231
|
-
exports
|
|
1231
|
+
exports.TransferFactory_PublicFetch = {
|
|
1232
1232
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
|
|
1233
1233
|
encode: function (__typed__) {
|
|
1234
1234
|
return {
|
|
@@ -1241,12 +1241,12 @@ function requireModule () {
|
|
|
1241
1241
|
|
|
1242
1242
|
|
|
1243
1243
|
|
|
1244
|
-
exports
|
|
1245
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, transfer: exports
|
|
1244
|
+
exports.TransferFactory_Transfer = {
|
|
1245
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, transfer: exports.Transfer.decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1246
1246
|
encode: function (__typed__) {
|
|
1247
1247
|
return {
|
|
1248
1248
|
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
1249
|
-
transfer: exports
|
|
1249
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
1250
1250
|
extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
1251
1251
|
};
|
|
1252
1252
|
}
|
|
@@ -1255,7 +1255,7 @@ function requireModule () {
|
|
|
1255
1255
|
|
|
1256
1256
|
|
|
1257
1257
|
|
|
1258
|
-
exports
|
|
1258
|
+
exports.TransferInstruction_Update = {
|
|
1259
1259
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1260
1260
|
encode: function (__typed__) {
|
|
1261
1261
|
return {
|
|
@@ -1268,7 +1268,7 @@ function requireModule () {
|
|
|
1268
1268
|
|
|
1269
1269
|
|
|
1270
1270
|
|
|
1271
|
-
exports
|
|
1271
|
+
exports.TransferInstruction_Withdraw = {
|
|
1272
1272
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1273
1273
|
encode: function (__typed__) {
|
|
1274
1274
|
return {
|
|
@@ -1280,7 +1280,7 @@ function requireModule () {
|
|
|
1280
1280
|
|
|
1281
1281
|
|
|
1282
1282
|
|
|
1283
|
-
exports
|
|
1283
|
+
exports.TransferInstruction_Reject = {
|
|
1284
1284
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1285
1285
|
encode: function (__typed__) {
|
|
1286
1286
|
return {
|
|
@@ -1292,7 +1292,7 @@ function requireModule () {
|
|
|
1292
1292
|
|
|
1293
1293
|
|
|
1294
1294
|
|
|
1295
|
-
exports
|
|
1295
|
+
exports.TransferInstruction_Accept = {
|
|
1296
1296
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
1297
1297
|
encode: function (__typed__) {
|
|
1298
1298
|
return {
|
|
@@ -1304,13 +1304,13 @@ function requireModule () {
|
|
|
1304
1304
|
|
|
1305
1305
|
|
|
1306
1306
|
|
|
1307
|
-
exports
|
|
1308
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports
|
|
1307
|
+
exports.TransferInstructionView = {
|
|
1308
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).decoder), transfer: exports.Transfer.decoder, status: exports.TransferInstructionStatus.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
1309
1309
|
encode: function (__typed__) {
|
|
1310
1310
|
return {
|
|
1311
|
-
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports
|
|
1312
|
-
transfer: exports
|
|
1313
|
-
status: exports
|
|
1311
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).encode(__typed__.originalInstructionCid),
|
|
1312
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
1313
|
+
status: exports.TransferInstructionStatus.encode(__typed__.status),
|
|
1314
1314
|
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
1315
1315
|
};
|
|
1316
1316
|
}
|
|
@@ -1319,12 +1319,12 @@ function requireModule () {
|
|
|
1319
1319
|
|
|
1320
1320
|
|
|
1321
1321
|
|
|
1322
|
-
exports
|
|
1323
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferPendingReceiverAcceptance'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('TransferPendingInternalWorkflow'), value: exports
|
|
1322
|
+
exports.TransferInstructionStatus = {
|
|
1323
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferPendingReceiverAcceptance'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('TransferPendingInternalWorkflow'), value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.decoder, })); }),
|
|
1324
1324
|
encode: function (__typed__) {
|
|
1325
1325
|
switch(__typed__.tag) {
|
|
1326
1326
|
case 'TransferPendingReceiverAcceptance': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
1327
|
-
case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports
|
|
1327
|
+
case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(__typed__.value)};
|
|
1328
1328
|
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionStatus';
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
@@ -1344,22 +1344,22 @@ function requireModule () {
|
|
|
1344
1344
|
|
|
1345
1345
|
|
|
1346
1346
|
|
|
1347
|
-
exports
|
|
1348
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferInstructionResult_Pending'), value: exports
|
|
1347
|
+
exports.TransferInstructionResult_Output = {
|
|
1348
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferInstructionResult_Pending'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Completed'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
1349
1349
|
encode: function (__typed__) {
|
|
1350
1350
|
switch(__typed__.tag) {
|
|
1351
|
-
case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports
|
|
1352
|
-
case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports
|
|
1351
|
+
case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(__typed__.value)};
|
|
1352
|
+
case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(__typed__.value)};
|
|
1353
1353
|
case 'TransferInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
1354
1354
|
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionResult_Output';
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
1357
|
,
|
|
1358
1358
|
TransferInstructionResult_Pending:({
|
|
1359
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferInstructionCid: damlTypes.ContractId(exports
|
|
1359
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).decoder, }); }),
|
|
1360
1360
|
encode: function (__typed__) {
|
|
1361
1361
|
return {
|
|
1362
|
-
transferInstructionCid: damlTypes.ContractId(exports
|
|
1362
|
+
transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).encode(__typed__.transferInstructionCid),
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
1365
|
,
|
|
@@ -1381,11 +1381,11 @@ function requireModule () {
|
|
|
1381
1381
|
|
|
1382
1382
|
|
|
1383
1383
|
|
|
1384
|
-
exports
|
|
1385
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports
|
|
1384
|
+
exports.TransferInstructionResult = {
|
|
1385
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.TransferInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
1386
1386
|
encode: function (__typed__) {
|
|
1387
1387
|
return {
|
|
1388
|
-
output: exports
|
|
1388
|
+
output: exports.TransferInstructionResult_Output.encode(__typed__.output),
|
|
1389
1389
|
senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderChangeCids),
|
|
1390
1390
|
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
1391
1391
|
};
|
|
@@ -1395,7 +1395,7 @@ function requireModule () {
|
|
|
1395
1395
|
|
|
1396
1396
|
|
|
1397
1397
|
|
|
1398
|
-
exports
|
|
1398
|
+
exports.Transfer = {
|
|
1399
1399
|
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.decoder, requestedAt: damlTypes.Time.decoder, executeBefore: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
1400
1400
|
encode: function (__typed__) {
|
|
1401
1401
|
return {
|
|
@@ -1420,13 +1420,13 @@ var hasRequiredTransferInstructionV1;
|
|
|
1420
1420
|
function requireTransferInstructionV1 () {
|
|
1421
1421
|
if (hasRequiredTransferInstructionV1) return TransferInstructionV1$1;
|
|
1422
1422
|
hasRequiredTransferInstructionV1 = 1;
|
|
1423
|
-
(function (exports
|
|
1423
|
+
(function (exports) {
|
|
1424
1424
|
/* eslint-disable-next-line no-unused-vars */
|
|
1425
1425
|
function __export(m) {
|
|
1426
1426
|
/* eslint-disable-next-line no-prototype-builtins */
|
|
1427
|
-
for (var p in m) if (!exports
|
|
1427
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
1428
1428
|
}
|
|
1429
|
-
Object.defineProperty(exports
|
|
1429
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1430
1430
|
__export(requireModule());
|
|
1431
1431
|
} (TransferInstructionV1$1));
|
|
1432
1432
|
return TransferInstructionV1$1;
|
|
@@ -1437,20 +1437,20 @@ var hasRequiredToken;
|
|
|
1437
1437
|
function requireToken () {
|
|
1438
1438
|
if (hasRequiredToken) return Token;
|
|
1439
1439
|
hasRequiredToken = 1;
|
|
1440
|
-
(function (exports
|
|
1441
|
-
Object.defineProperty(exports
|
|
1440
|
+
(function (exports) {
|
|
1441
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1442
1442
|
var AllocationInstructionV1 = requireAllocationInstructionV1();
|
|
1443
|
-
exports
|
|
1443
|
+
exports.AllocationInstructionV1 = AllocationInstructionV1;
|
|
1444
1444
|
var AllocationRequestV1 = requireAllocationRequestV1();
|
|
1445
|
-
exports
|
|
1445
|
+
exports.AllocationRequestV1 = AllocationRequestV1;
|
|
1446
1446
|
var AllocationV1 = requireAllocationV1();
|
|
1447
|
-
exports
|
|
1447
|
+
exports.AllocationV1 = AllocationV1;
|
|
1448
1448
|
var HoldingV1 = requireHoldingV1();
|
|
1449
|
-
exports
|
|
1449
|
+
exports.HoldingV1 = HoldingV1;
|
|
1450
1450
|
var MetadataV1 = requireMetadataV1();
|
|
1451
|
-
exports
|
|
1451
|
+
exports.MetadataV1 = MetadataV1;
|
|
1452
1452
|
var TransferInstructionV1 = requireTransferInstructionV1();
|
|
1453
|
-
exports
|
|
1453
|
+
exports.TransferInstructionV1 = TransferInstructionV1;
|
|
1454
1454
|
} (Token));
|
|
1455
1455
|
return Token;
|
|
1456
1456
|
}
|
|
@@ -1460,10 +1460,10 @@ var hasRequiredApi;
|
|
|
1460
1460
|
function requireApi () {
|
|
1461
1461
|
if (hasRequiredApi) return Api;
|
|
1462
1462
|
hasRequiredApi = 1;
|
|
1463
|
-
(function (exports
|
|
1464
|
-
Object.defineProperty(exports
|
|
1463
|
+
(function (exports) {
|
|
1464
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1465
1465
|
var Token = requireToken();
|
|
1466
|
-
exports
|
|
1466
|
+
exports.Token = Token;
|
|
1467
1467
|
} (Api));
|
|
1468
1468
|
return Api;
|
|
1469
1469
|
}
|
|
@@ -1473,10 +1473,10 @@ var hasRequiredSplice;
|
|
|
1473
1473
|
function requireSplice () {
|
|
1474
1474
|
if (hasRequiredSplice) return Splice;
|
|
1475
1475
|
hasRequiredSplice = 1;
|
|
1476
|
-
(function (exports
|
|
1477
|
-
Object.defineProperty(exports
|
|
1476
|
+
(function (exports) {
|
|
1477
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1478
1478
|
var Api = requireApi();
|
|
1479
|
-
exports
|
|
1479
|
+
exports.Api = Api;
|
|
1480
1480
|
} (Splice));
|
|
1481
1481
|
return Splice;
|
|
1482
1482
|
}
|
|
@@ -1486,11 +1486,11 @@ var hasRequiredLib;
|
|
|
1486
1486
|
function requireLib () {
|
|
1487
1487
|
if (hasRequiredLib) return lib$2;
|
|
1488
1488
|
hasRequiredLib = 1;
|
|
1489
|
-
(function (exports
|
|
1490
|
-
Object.defineProperty(exports
|
|
1489
|
+
(function (exports) {
|
|
1490
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1491
1491
|
var Splice = requireSplice();
|
|
1492
|
-
exports
|
|
1493
|
-
exports
|
|
1492
|
+
exports.Splice = Splice;
|
|
1493
|
+
exports.packageId = 'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4';
|
|
1494
1494
|
} (lib$2));
|
|
1495
1495
|
return lib$2;
|
|
1496
1496
|
}
|