@canton-network/core-token-standard 1.2.0 → 1.2.2

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.cjs CHANGED
@@ -156,19 +156,20 @@ function requireModule$7 () {
156
156
  if (hasRequiredModule$7) return module$7;
157
157
  hasRequiredModule$7 = 1;
158
158
  (function (exports$1) {
159
- Object.defineProperty(exports$1, '__esModule', { value: true });
159
+ Object.defineProperty(exports$1, "__esModule", { value: true });
160
160
  /* eslint-disable-next-line no-unused-vars */
161
161
  var jtv = require$$0;
162
162
  /* eslint-disable-next-line no-unused-vars */
163
163
  var damlTypes = require$$1;
164
164
 
165
+
165
166
  exports$1.Archive = {
166
- decoder: damlTypes.lazyMemo(function () {
167
- return jtv.object({})
168
- }),
169
- encode: function (__typed__) {
170
- return {}
171
- },
167
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
168
+ encode: function (__typed__) {
169
+ return {
170
+ };
171
+ }
172
+ ,
172
173
  };
173
174
  } (module$7));
174
175
  return module$7;
@@ -182,10 +183,10 @@ function requireTemplate () {
182
183
  (function (exports$1) {
183
184
  /* eslint-disable-next-line no-unused-vars */
184
185
  function __export(m) {
185
- /* eslint-disable-next-line no-prototype-builtins */
186
+ /* eslint-disable-next-line no-prototype-builtins */
186
187
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
187
188
  }
188
- Object.defineProperty(exports$1, '__esModule', { value: true });
189
+ Object.defineProperty(exports$1, "__esModule", { value: true });
189
190
  __export(requireModule$7());
190
191
  } (Template));
191
192
  return Template;
@@ -197,7 +198,7 @@ function requireInternal () {
197
198
  if (hasRequiredInternal) return Internal;
198
199
  hasRequiredInternal = 1;
199
200
  (function (exports$1) {
200
- Object.defineProperty(exports$1, '__esModule', { value: true });
201
+ Object.defineProperty(exports$1, "__esModule", { value: true });
201
202
  var Template = requireTemplate();
202
203
  exports$1.Template = Template;
203
204
  } (Internal));
@@ -210,7 +211,7 @@ function requireDA$1 () {
210
211
  if (hasRequiredDA$1) return DA$1;
211
212
  hasRequiredDA$1 = 1;
212
213
  (function (exports$1) {
213
- Object.defineProperty(exports$1, '__esModule', { value: true });
214
+ Object.defineProperty(exports$1, "__esModule", { value: true });
214
215
  var Internal = requireInternal();
215
216
  exports$1.Internal = Internal;
216
217
  } (DA$1));
@@ -223,11 +224,10 @@ function requireLib$2 () {
223
224
  if (hasRequiredLib$2) return lib$1;
224
225
  hasRequiredLib$2 = 1;
225
226
  (function (exports$1) {
226
- Object.defineProperty(exports$1, '__esModule', { value: true });
227
+ Object.defineProperty(exports$1, "__esModule", { value: true });
227
228
  var DA = requireDA$1();
228
229
  exports$1.DA = DA;
229
- exports$1.packageId =
230
- '9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69';
230
+ exports$1.packageId = '9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69';
231
231
  } (lib$1));
232
232
  return lib$1;
233
233
  }
@@ -252,21 +252,21 @@ function requireModule$6 () {
252
252
  if (hasRequiredModule$6) return module$4;
253
253
  hasRequiredModule$6 = 1;
254
254
  (function (exports$1) {
255
- Object.defineProperty(exports$1, '__esModule', { value: true });
255
+ Object.defineProperty(exports$1, "__esModule", { value: true });
256
256
  /* eslint-disable-next-line no-unused-vars */
257
257
  var jtv = require$$0;
258
258
  /* eslint-disable-next-line no-unused-vars */
259
259
  var damlTypes = require$$1;
260
260
 
261
+
261
262
  exports$1.RelTime = {
262
- decoder: damlTypes.lazyMemo(function () {
263
- return jtv.object({ microseconds: damlTypes.Int.decoder })
264
- }),
265
- encode: function (__typed__) {
266
- return {
267
- microseconds: damlTypes.Int.encode(__typed__.microseconds),
268
- }
269
- },
263
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({microseconds: damlTypes.Int.decoder, }); }),
264
+ encode: function (__typed__) {
265
+ return {
266
+ microseconds: damlTypes.Int.encode(__typed__.microseconds),
267
+ };
268
+ }
269
+ ,
270
270
  };
271
271
  } (module$4));
272
272
  return module$4;
@@ -280,10 +280,10 @@ function requireTypes () {
280
280
  (function (exports$1) {
281
281
  /* eslint-disable-next-line no-unused-vars */
282
282
  function __export(m) {
283
- /* eslint-disable-next-line no-prototype-builtins */
283
+ /* eslint-disable-next-line no-prototype-builtins */
284
284
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
285
285
  }
286
- Object.defineProperty(exports$1, '__esModule', { value: true });
286
+ Object.defineProperty(exports$1, "__esModule", { value: true });
287
287
  __export(requireModule$6());
288
288
  } (Types));
289
289
  return Types;
@@ -295,7 +295,7 @@ function requireTime () {
295
295
  if (hasRequiredTime) return Time;
296
296
  hasRequiredTime = 1;
297
297
  (function (exports$1) {
298
- Object.defineProperty(exports$1, '__esModule', { value: true });
298
+ Object.defineProperty(exports$1, "__esModule", { value: true });
299
299
  var Types = requireTypes();
300
300
  exports$1.Types = Types;
301
301
  } (Time));
@@ -308,7 +308,7 @@ function requireDA () {
308
308
  if (hasRequiredDA) return DA;
309
309
  hasRequiredDA = 1;
310
310
  (function (exports$1) {
311
- Object.defineProperty(exports$1, '__esModule', { value: true });
311
+ Object.defineProperty(exports$1, "__esModule", { value: true });
312
312
  var Time = requireTime();
313
313
  exports$1.Time = Time;
314
314
  } (DA));
@@ -321,11 +321,10 @@ function requireLib$1 () {
321
321
  if (hasRequiredLib$1) return lib;
322
322
  hasRequiredLib$1 = 1;
323
323
  (function (exports$1) {
324
- Object.defineProperty(exports$1, '__esModule', { value: true });
324
+ Object.defineProperty(exports$1, "__esModule", { value: true });
325
325
  var DA = requireDA();
326
326
  exports$1.DA = DA;
327
- exports$1.packageId =
328
- 'b70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946';
327
+ exports$1.packageId = 'b70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946';
329
328
  } (lib));
330
329
  return lib;
331
330
  }
@@ -338,7 +337,7 @@ function requireModule$5 () {
338
337
  if (hasRequiredModule$5) return module$3;
339
338
  hasRequiredModule$5 = 1;
340
339
  (function (exports$1) {
341
- Object.defineProperty(exports$1, '__esModule', { value: true });
340
+ Object.defineProperty(exports$1, "__esModule", { value: true });
342
341
  /* eslint-disable-next-line no-unused-vars */
343
342
  var jtv = require$$0;
344
343
  /* eslint-disable-next-line no-unused-vars */
@@ -348,220 +347,101 @@ function requireModule$5 () {
348
347
  var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = requireLib$1();
349
348
 
350
349
  exports$1.AnyContract = damlTypes.assembleInterface(
351
- '#token-standard-models:Splice.Api.Token.MetadataV1:AnyContract',
352
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.MetadataV1:AnyContract',
353
- function () {
354
- return exports$1.AnyContractView
350
+ '#token-standard-models:Splice.Api.Token.MetadataV1:AnyContract',
351
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.MetadataV1:AnyContract',
352
+ function () { return exports$1.AnyContractView; },
353
+ {
354
+ Archive: {
355
+ template: function () { return exports$1.AnyContract; },
356
+ choiceName: 'Archive',
357
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
358
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
359
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
360
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
355
361
  },
356
- {
357
- Archive: {
358
- template: function () {
359
- return exports$1.AnyContract
360
- },
361
- choiceName: 'Archive',
362
- argumentDecoder: damlTypes.lazyMemo(function () {
363
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
364
- .DA.Internal.Template.Archive.decoder
365
- }),
366
- argumentEncode: function (__typed__) {
367
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
368
- __typed__
369
- )
370
- },
371
- resultDecoder: damlTypes.lazyMemo(function () {
372
- return damlTypes.Unit.decoder
373
- }),
374
- resultEncode: function (__typed__) {
375
- return damlTypes.Unit.encode(__typed__)
376
- },
377
- },
378
- }
379
- );
362
+ });
363
+
364
+
380
365
 
381
366
  exports$1.ChoiceExecutionMetadata = {
382
- decoder: damlTypes.lazyMemo(function () {
383
- return jtv.object({ meta: exports$1.Metadata.decoder })
384
- }),
385
- encode: function (__typed__) {
386
- return {
387
- meta: exports$1.Metadata.encode(__typed__.meta),
388
- }
389
- },
367
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({meta: exports$1.Metadata.decoder, }); }),
368
+ encode: function (__typed__) {
369
+ return {
370
+ meta: exports$1.Metadata.encode(__typed__.meta),
371
+ };
372
+ }
373
+ ,
390
374
  };
391
375
 
376
+
377
+
392
378
  exports$1.ExtraArgs = {
393
- decoder: damlTypes.lazyMemo(function () {
394
- return jtv.object({
395
- context: exports$1.ChoiceContext.decoder,
396
- meta: exports$1.Metadata.decoder,
397
- })
398
- }),
399
- encode: function (__typed__) {
400
- return {
401
- context: exports$1.ChoiceContext.encode(__typed__.context),
402
- meta: exports$1.Metadata.encode(__typed__.meta),
403
- }
404
- },
379
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({context: exports$1.ChoiceContext.decoder, meta: exports$1.Metadata.decoder, }); }),
380
+ encode: function (__typed__) {
381
+ return {
382
+ context: exports$1.ChoiceContext.encode(__typed__.context),
383
+ meta: exports$1.Metadata.encode(__typed__.meta),
384
+ };
385
+ }
386
+ ,
405
387
  };
406
388
 
389
+
390
+
407
391
  exports$1.Metadata = {
408
- decoder: damlTypes.lazyMemo(function () {
409
- return jtv.object({ values: damlTypes.TextMap(damlTypes.Text).decoder })
410
- }),
411
- encode: function (__typed__) {
412
- return {
413
- values: damlTypes.TextMap(damlTypes.Text).encode(__typed__.values),
414
- }
415
- },
392
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(damlTypes.Text).decoder, }); }),
393
+ encode: function (__typed__) {
394
+ return {
395
+ values: damlTypes.TextMap(damlTypes.Text).encode(__typed__.values),
396
+ };
397
+ }
398
+ ,
416
399
  };
417
400
 
401
+
402
+
418
403
  exports$1.ChoiceContext = {
419
- decoder: damlTypes.lazyMemo(function () {
420
- return jtv.object({
421
- values: damlTypes.TextMap(exports$1.AnyValue).decoder,
422
- })
423
- }),
424
- encode: function (__typed__) {
425
- return {
426
- values: damlTypes
427
- .TextMap(exports$1.AnyValue)
428
- .encode(__typed__.values),
429
- }
430
- },
404
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(exports$1.AnyValue).decoder, }); }),
405
+ encode: function (__typed__) {
406
+ return {
407
+ values: damlTypes.TextMap(exports$1.AnyValue).encode(__typed__.values),
408
+ };
409
+ }
410
+ ,
431
411
  };
432
412
 
413
+
414
+
433
415
  exports$1.AnyContractView = {
434
- decoder: damlTypes.lazyMemo(function () {
435
- return jtv.object({})
436
- }),
437
- encode: function (__typed__) {
438
- return {}
439
- },
416
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
417
+ encode: function (__typed__) {
418
+ return {
419
+ };
420
+ }
421
+ ,
440
422
  };
441
423
 
424
+
425
+
442
426
  exports$1.AnyValue = {
443
- decoder: damlTypes.lazyMemo(function () {
444
- return jtv.oneOf(
445
- jtv.object({
446
- tag: jtv.constant('AV_Text'),
447
- value: damlTypes.Text.decoder,
448
- }),
449
- jtv.object({
450
- tag: jtv.constant('AV_Int'),
451
- value: damlTypes.Int.decoder,
452
- }),
453
- jtv.object({
454
- tag: jtv.constant('AV_Decimal'),
455
- value: damlTypes.Numeric(10).decoder,
456
- }),
457
- jtv.object({
458
- tag: jtv.constant('AV_Bool'),
459
- value: damlTypes.Bool.decoder,
460
- }),
461
- jtv.object({
462
- tag: jtv.constant('AV_Date'),
463
- value: damlTypes.Date.decoder,
464
- }),
465
- jtv.object({
466
- tag: jtv.constant('AV_Time'),
467
- value: damlTypes.Time.decoder,
468
- }),
469
- jtv.object({
470
- tag: jtv.constant('AV_RelTime'),
471
- value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946
472
- .DA.Time.Types.RelTime.decoder,
473
- }),
474
- jtv.object({
475
- tag: jtv.constant('AV_Party'),
476
- value: damlTypes.Party.decoder,
477
- }),
478
- jtv.object({
479
- tag: jtv.constant('AV_ContractId'),
480
- value: damlTypes.ContractId(exports$1.AnyContract).decoder,
481
- }),
482
- jtv.object({
483
- tag: jtv.constant('AV_List'),
484
- value: damlTypes.List(exports$1.AnyValue).decoder,
485
- }),
486
- jtv.object({
487
- tag: jtv.constant('AV_Map'),
488
- value: damlTypes.TextMap(exports$1.AnyValue).decoder,
489
- })
490
- )
491
- }),
492
- encode: function (__typed__) {
493
- switch (__typed__.tag) {
494
- case 'AV_Text':
495
- return {
496
- tag: __typed__.tag,
497
- value: damlTypes.Text.encode(__typed__.value),
498
- }
499
- case 'AV_Int':
500
- return {
501
- tag: __typed__.tag,
502
- value: damlTypes.Int.encode(__typed__.value),
503
- }
504
- case 'AV_Decimal':
505
- return {
506
- tag: __typed__.tag,
507
- value: damlTypes.Numeric(10).encode(__typed__.value),
508
- }
509
- case 'AV_Bool':
510
- return {
511
- tag: __typed__.tag,
512
- value: damlTypes.Bool.encode(__typed__.value),
513
- }
514
- case 'AV_Date':
515
- return {
516
- tag: __typed__.tag,
517
- value: damlTypes.Date.encode(__typed__.value),
518
- }
519
- case 'AV_Time':
520
- return {
521
- tag: __typed__.tag,
522
- value: damlTypes.Time.encode(__typed__.value),
523
- }
524
- case 'AV_RelTime':
525
- return {
526
- tag: __typed__.tag,
527
- value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(
528
- __typed__.value
529
- ),
530
- }
531
- case 'AV_Party':
532
- return {
533
- tag: __typed__.tag,
534
- value: damlTypes.Party.encode(__typed__.value),
535
- }
536
- case 'AV_ContractId':
537
- return {
538
- tag: __typed__.tag,
539
- value: damlTypes
540
- .ContractId(exports$1.AnyContract)
541
- .encode(__typed__.value),
542
- }
543
- case 'AV_List':
544
- return {
545
- tag: __typed__.tag,
546
- value: damlTypes
547
- .List(exports$1.AnyValue)
548
- .encode(__typed__.value),
549
- }
550
- case 'AV_Map':
551
- return {
552
- tag: __typed__.tag,
553
- value: damlTypes
554
- .TextMap(exports$1.AnyValue)
555
- .encode(__typed__.value),
556
- }
557
- default:
558
- throw (
559
- 'unrecognized type tag: ' +
560
- __typed__.tag +
561
- ' while serializing a value of type AnyValue'
562
- )
563
- }
564
- },
427
+ 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$1.AnyContract).decoder, }), jtv.object({tag: jtv.constant('AV_List'), value: damlTypes.List(exports$1.AnyValue).decoder, }), jtv.object({tag: jtv.constant('AV_Map'), value: damlTypes.TextMap(exports$1.AnyValue).decoder, })); }),
428
+ encode: function (__typed__) {
429
+ switch(__typed__.tag) {
430
+ case 'AV_Text': return {tag: __typed__.tag, value: damlTypes.Text.encode(__typed__.value)};
431
+ case 'AV_Int': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
432
+ case 'AV_Decimal': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
433
+ case 'AV_Bool': return {tag: __typed__.tag, value: damlTypes.Bool.encode(__typed__.value)};
434
+ case 'AV_Date': return {tag: __typed__.tag, value: damlTypes.Date.encode(__typed__.value)};
435
+ case 'AV_Time': return {tag: __typed__.tag, value: damlTypes.Time.encode(__typed__.value)};
436
+ case 'AV_RelTime': return {tag: __typed__.tag, value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.value)};
437
+ case 'AV_Party': return {tag: __typed__.tag, value: damlTypes.Party.encode(__typed__.value)};
438
+ case 'AV_ContractId': return {tag: __typed__.tag, value: damlTypes.ContractId(exports$1.AnyContract).encode(__typed__.value)};
439
+ case 'AV_List': return {tag: __typed__.tag, value: damlTypes.List(exports$1.AnyValue).encode(__typed__.value)};
440
+ case 'AV_Map': return {tag: __typed__.tag, value: damlTypes.TextMap(exports$1.AnyValue).encode(__typed__.value)};
441
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AnyValue';
442
+ }
443
+ }
444
+ ,
565
445
  };
566
446
  } (module$3));
567
447
  return module$3;
@@ -573,7 +453,7 @@ function requireModule$4 () {
573
453
  if (hasRequiredModule$4) return module$5;
574
454
  hasRequiredModule$4 = 1;
575
455
  (function (exports$1) {
576
- Object.defineProperty(exports$1, '__esModule', { value: true });
456
+ Object.defineProperty(exports$1, "__esModule", { value: true });
577
457
  /* eslint-disable-next-line no-unused-vars */
578
458
  var jtv = require$$0;
579
459
  /* eslint-disable-next-line no-unused-vars */
@@ -585,113 +465,62 @@ function requireModule$4 () {
585
465
  var Splice_Api_Token_MetadataV1 = requireModule$5();
586
466
 
587
467
  exports$1.Holding = damlTypes.assembleInterface(
588
- '#token-standard-models:Splice.Api.Token.HoldingV1:Holding',
589
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.HoldingV1:Holding',
590
- function () {
591
- return exports$1.HoldingView
468
+ '#token-standard-models:Splice.Api.Token.HoldingV1:Holding',
469
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.HoldingV1:Holding',
470
+ function () { return exports$1.HoldingView; },
471
+ {
472
+ Archive: {
473
+ template: function () { return exports$1.Holding; },
474
+ choiceName: 'Archive',
475
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
476
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
477
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
478
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
592
479
  },
593
- {
594
- Archive: {
595
- template: function () {
596
- return exports$1.Holding
597
- },
598
- choiceName: 'Archive',
599
- argumentDecoder: damlTypes.lazyMemo(function () {
600
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
601
- .DA.Internal.Template.Archive.decoder
602
- }),
603
- argumentEncode: function (__typed__) {
604
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
605
- __typed__
606
- )
607
- },
608
- resultDecoder: damlTypes.lazyMemo(function () {
609
- return damlTypes.Unit.decoder
610
- }),
611
- resultEncode: function (__typed__) {
612
- return damlTypes.Unit.encode(__typed__)
613
- },
614
- },
615
- }
616
- );
480
+ });
481
+
482
+
617
483
 
618
484
  exports$1.HoldingView = {
619
- decoder: damlTypes.lazyMemo(function () {
620
- return jtv.object({
621
- owner: damlTypes.Party.decoder,
622
- instrumentId: exports$1.InstrumentId.decoder,
623
- amount: damlTypes.Numeric(10).decoder,
624
- lock: jtv.Decoder.withDefault(
625
- null,
626
- damlTypes.Optional(exports$1.Lock).decoder
627
- ),
628
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
629
- })
630
- }),
631
- encode: function (__typed__) {
632
- return {
633
- owner: damlTypes.Party.encode(__typed__.owner),
634
- instrumentId: exports$1.InstrumentId.encode(__typed__.instrumentId),
635
- amount: damlTypes.Numeric(10).encode(__typed__.amount),
636
- lock: damlTypes.Optional(exports$1.Lock).encode(__typed__.lock),
637
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
638
- }
639
- },
485
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({owner: damlTypes.Party.decoder, instrumentId: exports$1.InstrumentId.decoder, amount: damlTypes.Numeric(10).decoder, lock: jtv.Decoder.withDefault(null, damlTypes.Optional(exports$1.Lock).decoder), meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
486
+ encode: function (__typed__) {
487
+ return {
488
+ owner: damlTypes.Party.encode(__typed__.owner),
489
+ instrumentId: exports$1.InstrumentId.encode(__typed__.instrumentId),
490
+ amount: damlTypes.Numeric(10).encode(__typed__.amount),
491
+ lock: damlTypes.Optional(exports$1.Lock).encode(__typed__.lock),
492
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
493
+ };
494
+ }
495
+ ,
640
496
  };
641
497
 
498
+
499
+
642
500
  exports$1.Lock = {
643
- decoder: damlTypes.lazyMemo(function () {
644
- return jtv.object({
645
- holders: damlTypes.List(damlTypes.Party).decoder,
646
- expiresAt: jtv.Decoder.withDefault(
647
- null,
648
- damlTypes.Optional(damlTypes.Time).decoder
649
- ),
650
- expiresAfter: jtv.Decoder.withDefault(
651
- null,
652
- damlTypes.Optional(
653
- pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946
654
- .DA.Time.Types.RelTime
655
- ).decoder
656
- ),
657
- context: jtv.Decoder.withDefault(
658
- null,
659
- damlTypes.Optional(damlTypes.Text).decoder
660
- ),
661
- })
662
- }),
663
- encode: function (__typed__) {
664
- return {
665
- holders: damlTypes.List(damlTypes.Party).encode(__typed__.holders),
666
- expiresAt: damlTypes
667
- .Optional(damlTypes.Time)
668
- .encode(__typed__.expiresAt),
669
- expiresAfter: damlTypes
670
- .Optional(
671
- pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946
672
- .DA.Time.Types.RelTime
673
- )
674
- .encode(__typed__.expiresAfter),
675
- context: damlTypes
676
- .Optional(damlTypes.Text)
677
- .encode(__typed__.context),
678
- }
679
- },
501
+ 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), }); }),
502
+ encode: function (__typed__) {
503
+ return {
504
+ holders: damlTypes.List(damlTypes.Party).encode(__typed__.holders),
505
+ expiresAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.expiresAt),
506
+ expiresAfter: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.expiresAfter),
507
+ context: damlTypes.Optional(damlTypes.Text).encode(__typed__.context),
508
+ };
509
+ }
510
+ ,
680
511
  };
681
512
 
513
+
514
+
682
515
  exports$1.InstrumentId = {
683
- decoder: damlTypes.lazyMemo(function () {
684
- return jtv.object({
685
- admin: damlTypes.Party.decoder,
686
- id: damlTypes.Text.decoder,
687
- })
688
- }),
689
- encode: function (__typed__) {
690
- return {
691
- admin: damlTypes.Party.encode(__typed__.admin),
692
- id: damlTypes.Text.encode(__typed__.id),
693
- }
694
- },
516
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, id: damlTypes.Text.decoder, }); }),
517
+ encode: function (__typed__) {
518
+ return {
519
+ admin: damlTypes.Party.encode(__typed__.admin),
520
+ id: damlTypes.Text.encode(__typed__.id),
521
+ };
522
+ }
523
+ ,
695
524
  };
696
525
  } (module$5));
697
526
  return module$5;
@@ -703,7 +532,7 @@ function requireModule$3 () {
703
532
  if (hasRequiredModule$3) return module$6;
704
533
  hasRequiredModule$3 = 1;
705
534
  (function (exports$1) {
706
- Object.defineProperty(exports$1, '__esModule', { value: true });
535
+ Object.defineProperty(exports$1, "__esModule", { value: true });
707
536
  /* eslint-disable-next-line no-unused-vars */
708
537
  var jtv = require$$0;
709
538
  /* eslint-disable-next-line no-unused-vars */
@@ -715,312 +544,192 @@ function requireModule$3 () {
715
544
  var Splice_Api_Token_MetadataV1 = requireModule$5();
716
545
 
717
546
  exports$1.Allocation = damlTypes.assembleInterface(
718
- '#token-standard-models:Splice.Api.Token.AllocationV1:Allocation',
719
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationV1:Allocation',
720
- function () {
721
- return exports$1.AllocationView
547
+ '#token-standard-models:Splice.Api.Token.AllocationV1:Allocation',
548
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationV1:Allocation',
549
+ function () { return exports$1.AllocationView; },
550
+ {
551
+ Archive: {
552
+ template: function () { return exports$1.Allocation; },
553
+ choiceName: 'Archive',
554
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
555
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
556
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
557
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
722
558
  },
723
- {
724
- Archive: {
725
- template: function () {
726
- return exports$1.Allocation
727
- },
728
- choiceName: 'Archive',
729
- argumentDecoder: damlTypes.lazyMemo(function () {
730
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
731
- .DA.Internal.Template.Archive.decoder
732
- }),
733
- argumentEncode: function (__typed__) {
734
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
735
- __typed__
736
- )
737
- },
738
- resultDecoder: damlTypes.lazyMemo(function () {
739
- return damlTypes.Unit.decoder
740
- }),
741
- resultEncode: function (__typed__) {
742
- return damlTypes.Unit.encode(__typed__)
743
- },
744
- },
745
- Allocation_Withdraw: {
746
- template: function () {
747
- return exports$1.Allocation
748
- },
749
- choiceName: 'Allocation_Withdraw',
750
- argumentDecoder: damlTypes.lazyMemo(function () {
751
- return exports$1.Allocation_Withdraw.decoder
752
- }),
753
- argumentEncode: function (__typed__) {
754
- return exports$1.Allocation_Withdraw.encode(__typed__)
755
- },
756
- resultDecoder: damlTypes.lazyMemo(function () {
757
- return exports$1.Allocation_WithdrawResult.decoder
758
- }),
759
- resultEncode: function (__typed__) {
760
- return exports$1.Allocation_WithdrawResult.encode(__typed__)
761
- },
762
- },
763
- Allocation_Cancel: {
764
- template: function () {
765
- return exports$1.Allocation
766
- },
767
- choiceName: 'Allocation_Cancel',
768
- argumentDecoder: damlTypes.lazyMemo(function () {
769
- return exports$1.Allocation_Cancel.decoder
770
- }),
771
- argumentEncode: function (__typed__) {
772
- return exports$1.Allocation_Cancel.encode(__typed__)
773
- },
774
- resultDecoder: damlTypes.lazyMemo(function () {
775
- return exports$1.Allocation_CancelResult.decoder
776
- }),
777
- resultEncode: function (__typed__) {
778
- return exports$1.Allocation_CancelResult.encode(__typed__)
779
- },
780
- },
781
- Allocation_ExecuteTransfer: {
782
- template: function () {
783
- return exports$1.Allocation
784
- },
785
- choiceName: 'Allocation_ExecuteTransfer',
786
- argumentDecoder: damlTypes.lazyMemo(function () {
787
- return exports$1.Allocation_ExecuteTransfer.decoder
788
- }),
789
- argumentEncode: function (__typed__) {
790
- return exports$1.Allocation_ExecuteTransfer.encode(__typed__)
791
- },
792
- resultDecoder: damlTypes.lazyMemo(function () {
793
- return exports$1.Allocation_ExecuteTransferResult.decoder
794
- }),
795
- resultEncode: function (__typed__) {
796
- return exports$1.Allocation_ExecuteTransferResult.encode(
797
- __typed__
798
- )
799
- },
800
- },
801
- }
802
- );
559
+ Allocation_Withdraw: {
560
+ template: function () { return exports$1.Allocation; },
561
+ choiceName: 'Allocation_Withdraw',
562
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.Allocation_Withdraw.decoder; }),
563
+ argumentEncode: function (__typed__) { return exports$1.Allocation_Withdraw.encode(__typed__); },
564
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.Allocation_WithdrawResult.decoder; }),
565
+ resultEncode: function (__typed__) { return exports$1.Allocation_WithdrawResult.encode(__typed__); },
566
+ },
567
+ Allocation_Cancel: {
568
+ template: function () { return exports$1.Allocation; },
569
+ choiceName: 'Allocation_Cancel',
570
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.Allocation_Cancel.decoder; }),
571
+ argumentEncode: function (__typed__) { return exports$1.Allocation_Cancel.encode(__typed__); },
572
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.Allocation_CancelResult.decoder; }),
573
+ resultEncode: function (__typed__) { return exports$1.Allocation_CancelResult.encode(__typed__); },
574
+ },
575
+ Allocation_ExecuteTransfer: {
576
+ template: function () { return exports$1.Allocation; },
577
+ choiceName: 'Allocation_ExecuteTransfer',
578
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.Allocation_ExecuteTransfer.decoder; }),
579
+ argumentEncode: function (__typed__) { return exports$1.Allocation_ExecuteTransfer.encode(__typed__); },
580
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.Allocation_ExecuteTransferResult.decoder; }),
581
+ resultEncode: function (__typed__) { return exports$1.Allocation_ExecuteTransferResult.encode(__typed__); },
582
+ },
583
+ });
584
+
585
+
803
586
 
804
587
  exports$1.Allocation_WithdrawResult = {
805
- decoder: damlTypes.lazyMemo(function () {
806
- return jtv.object({
807
- senderHoldingCids: damlTypes.List(
808
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
809
- ).decoder,
810
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
811
- })
812
- }),
813
- encode: function (__typed__) {
814
- return {
815
- senderHoldingCids: damlTypes
816
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
817
- .encode(__typed__.senderHoldingCids),
818
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
819
- }
820
- },
588
+ 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, }); }),
589
+ encode: function (__typed__) {
590
+ return {
591
+ senderHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderHoldingCids),
592
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
593
+ };
594
+ }
595
+ ,
821
596
  };
822
597
 
598
+
599
+
823
600
  exports$1.Allocation_CancelResult = {
824
- decoder: damlTypes.lazyMemo(function () {
825
- return jtv.object({
826
- senderHoldingCids: damlTypes.List(
827
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
828
- ).decoder,
829
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
830
- })
831
- }),
832
- encode: function (__typed__) {
833
- return {
834
- senderHoldingCids: damlTypes
835
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
836
- .encode(__typed__.senderHoldingCids),
837
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
838
- }
839
- },
601
+ 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, }); }),
602
+ encode: function (__typed__) {
603
+ return {
604
+ senderHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderHoldingCids),
605
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
606
+ };
607
+ }
608
+ ,
840
609
  };
841
610
 
611
+
612
+
842
613
  exports$1.Allocation_ExecuteTransferResult = {
843
- decoder: damlTypes.lazyMemo(function () {
844
- return jtv.object({
845
- senderHoldingCids: damlTypes.List(
846
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
847
- ).decoder,
848
- receiverHoldingCids: damlTypes.List(
849
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
850
- ).decoder,
851
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
852
- })
853
- }),
854
- encode: function (__typed__) {
855
- return {
856
- senderHoldingCids: damlTypes
857
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
858
- .encode(__typed__.senderHoldingCids),
859
- receiverHoldingCids: damlTypes
860
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
861
- .encode(__typed__.receiverHoldingCids),
862
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
863
- }
864
- },
614
+ 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, }); }),
615
+ encode: function (__typed__) {
616
+ return {
617
+ senderHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderHoldingCids),
618
+ receiverHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.receiverHoldingCids),
619
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
620
+ };
621
+ }
622
+ ,
865
623
  };
866
624
 
625
+
626
+
867
627
  exports$1.Allocation_Withdraw = {
868
- decoder: damlTypes.lazyMemo(function () {
869
- return jtv.object({
870
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
871
- })
872
- }),
873
- encode: function (__typed__) {
874
- return {
875
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
876
- __typed__.extraArgs
877
- ),
878
- }
879
- },
628
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
629
+ encode: function (__typed__) {
630
+ return {
631
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
632
+ };
633
+ }
634
+ ,
880
635
  };
881
636
 
637
+
638
+
882
639
  exports$1.Allocation_Cancel = {
883
- decoder: damlTypes.lazyMemo(function () {
884
- return jtv.object({
885
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
886
- })
887
- }),
888
- encode: function (__typed__) {
889
- return {
890
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
891
- __typed__.extraArgs
892
- ),
893
- }
894
- },
640
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
641
+ encode: function (__typed__) {
642
+ return {
643
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
644
+ };
645
+ }
646
+ ,
895
647
  };
896
648
 
649
+
650
+
897
651
  exports$1.Allocation_ExecuteTransfer = {
898
- decoder: damlTypes.lazyMemo(function () {
899
- return jtv.object({
900
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
901
- })
902
- }),
903
- encode: function (__typed__) {
904
- return {
905
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
906
- __typed__.extraArgs
907
- ),
908
- }
909
- },
652
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
653
+ encode: function (__typed__) {
654
+ return {
655
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
656
+ };
657
+ }
658
+ ,
910
659
  };
911
660
 
661
+
662
+
912
663
  exports$1.AllocationView = {
913
- decoder: damlTypes.lazyMemo(function () {
914
- return jtv.object({
915
- allocation: exports$1.AllocationSpecification.decoder,
916
- holdingCids: damlTypes.List(
917
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
918
- ).decoder,
919
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
920
- })
921
- }),
922
- encode: function (__typed__) {
923
- return {
924
- allocation: exports$1.AllocationSpecification.encode(
925
- __typed__.allocation
926
- ),
927
- holdingCids: damlTypes
928
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
929
- .encode(__typed__.holdingCids),
930
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
931
- }
932
- },
664
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({allocation: exports$1.AllocationSpecification.decoder, holdingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
665
+ encode: function (__typed__) {
666
+ return {
667
+ allocation: exports$1.AllocationSpecification.encode(__typed__.allocation),
668
+ holdingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.holdingCids),
669
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
670
+ };
671
+ }
672
+ ,
933
673
  };
934
674
 
675
+
676
+
935
677
  exports$1.AllocationSpecification = {
936
- decoder: damlTypes.lazyMemo(function () {
937
- return jtv.object({
938
- settlement: exports$1.SettlementInfo.decoder,
939
- transferLegId: damlTypes.Text.decoder,
940
- transferLeg: exports$1.TransferLeg.decoder,
941
- })
942
- }),
943
- encode: function (__typed__) {
944
- return {
945
- settlement: exports$1.SettlementInfo.encode(__typed__.settlement),
946
- transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
947
- transferLeg: exports$1.TransferLeg.encode(__typed__.transferLeg),
948
- }
949
- },
678
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: exports$1.SettlementInfo.decoder, transferLegId: damlTypes.Text.decoder, transferLeg: exports$1.TransferLeg.decoder, }); }),
679
+ encode: function (__typed__) {
680
+ return {
681
+ settlement: exports$1.SettlementInfo.encode(__typed__.settlement),
682
+ transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
683
+ transferLeg: exports$1.TransferLeg.encode(__typed__.transferLeg),
684
+ };
685
+ }
686
+ ,
950
687
  };
951
688
 
689
+
690
+
952
691
  exports$1.TransferLeg = {
953
- decoder: damlTypes.lazyMemo(function () {
954
- return jtv.object({
955
- sender: damlTypes.Party.decoder,
956
- receiver: damlTypes.Party.decoder,
957
- amount: damlTypes.Numeric(10).decoder,
958
- instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.decoder,
959
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
960
- })
961
- }),
962
- encode: function (__typed__) {
963
- return {
964
- sender: damlTypes.Party.encode(__typed__.sender),
965
- receiver: damlTypes.Party.encode(__typed__.receiver),
966
- amount: damlTypes.Numeric(10).encode(__typed__.amount),
967
- instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.encode(
968
- __typed__.instrumentId
969
- ),
970
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
971
- }
972
- },
692
+ 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, }); }),
693
+ encode: function (__typed__) {
694
+ return {
695
+ sender: damlTypes.Party.encode(__typed__.sender),
696
+ receiver: damlTypes.Party.encode(__typed__.receiver),
697
+ amount: damlTypes.Numeric(10).encode(__typed__.amount),
698
+ instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.encode(__typed__.instrumentId),
699
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
700
+ };
701
+ }
702
+ ,
973
703
  };
974
704
 
705
+
706
+
975
707
  exports$1.SettlementInfo = {
976
- decoder: damlTypes.lazyMemo(function () {
977
- return jtv.object({
978
- executor: damlTypes.Party.decoder,
979
- settlementRef: exports$1.Reference.decoder,
980
- requestedAt: damlTypes.Time.decoder,
981
- allocateBefore: damlTypes.Time.decoder,
982
- settleBefore: damlTypes.Time.decoder,
983
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
984
- })
985
- }),
986
- encode: function (__typed__) {
987
- return {
988
- executor: damlTypes.Party.encode(__typed__.executor),
989
- settlementRef: exports$1.Reference.encode(__typed__.settlementRef),
990
- requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
991
- allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
992
- settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
993
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
994
- }
995
- },
708
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({executor: damlTypes.Party.decoder, settlementRef: exports$1.Reference.decoder, requestedAt: damlTypes.Time.decoder, allocateBefore: damlTypes.Time.decoder, settleBefore: damlTypes.Time.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
709
+ encode: function (__typed__) {
710
+ return {
711
+ executor: damlTypes.Party.encode(__typed__.executor),
712
+ settlementRef: exports$1.Reference.encode(__typed__.settlementRef),
713
+ requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
714
+ allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
715
+ settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
716
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
717
+ };
718
+ }
719
+ ,
996
720
  };
997
721
 
722
+
723
+
998
724
  exports$1.Reference = {
999
- decoder: damlTypes.lazyMemo(function () {
1000
- return jtv.object({
1001
- id: damlTypes.Text.decoder,
1002
- cid: jtv.Decoder.withDefault(
1003
- null,
1004
- damlTypes.Optional(
1005
- damlTypes.ContractId(
1006
- Splice_Api_Token_MetadataV1.AnyContract
1007
- )
1008
- ).decoder
1009
- ),
1010
- })
1011
- }),
1012
- encode: function (__typed__) {
1013
- return {
1014
- id: damlTypes.Text.encode(__typed__.id),
1015
- cid: damlTypes
1016
- .Optional(
1017
- damlTypes.ContractId(
1018
- Splice_Api_Token_MetadataV1.AnyContract
1019
- )
1020
- )
1021
- .encode(__typed__.cid),
1022
- }
1023
- },
725
+ 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), }); }),
726
+ encode: function (__typed__) {
727
+ return {
728
+ id: damlTypes.Text.encode(__typed__.id),
729
+ cid: damlTypes.Optional(damlTypes.ContractId(Splice_Api_Token_MetadataV1.AnyContract)).encode(__typed__.cid),
730
+ };
731
+ }
732
+ ,
1024
733
  };
1025
734
  } (module$6));
1026
735
  return module$6;
@@ -1032,7 +741,7 @@ function requireModule$2 () {
1032
741
  if (hasRequiredModule$2) return module$8;
1033
742
  hasRequiredModule$2 = 1;
1034
743
  (function (exports$1) {
1035
- Object.defineProperty(exports$1, '__esModule', { value: true });
744
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1036
745
  /* eslint-disable-next-line no-unused-vars */
1037
746
  var jtv = require$$0;
1038
747
  /* eslint-disable-next-line no-unused-vars */
@@ -1045,378 +754,201 @@ function requireModule$2 () {
1045
754
  var Splice_Api_Token_MetadataV1 = requireModule$5();
1046
755
 
1047
756
  exports$1.AllocationFactory = damlTypes.assembleInterface(
1048
- '#token-standard-models:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
1049
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
1050
- function () {
1051
- return exports$1.AllocationFactoryView
757
+ '#token-standard-models:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
758
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
759
+ function () { return exports$1.AllocationFactoryView; },
760
+ {
761
+ Archive: {
762
+ template: function () { return exports$1.AllocationFactory; },
763
+ choiceName: 'Archive',
764
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
765
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
766
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
767
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
768
+ },
769
+ AllocationFactory_Allocate: {
770
+ template: function () { return exports$1.AllocationFactory; },
771
+ choiceName: 'AllocationFactory_Allocate',
772
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationFactory_Allocate.decoder; }),
773
+ argumentEncode: function (__typed__) { return exports$1.AllocationFactory_Allocate.encode(__typed__); },
774
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationInstructionResult.decoder; }),
775
+ resultEncode: function (__typed__) { return exports$1.AllocationInstructionResult.encode(__typed__); },
1052
776
  },
1053
- {
1054
- Archive: {
1055
- template: function () {
1056
- return exports$1.AllocationFactory
1057
- },
1058
- choiceName: 'Archive',
1059
- argumentDecoder: damlTypes.lazyMemo(function () {
1060
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
1061
- .DA.Internal.Template.Archive.decoder
1062
- }),
1063
- argumentEncode: function (__typed__) {
1064
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
1065
- __typed__
1066
- )
1067
- },
1068
- resultDecoder: damlTypes.lazyMemo(function () {
1069
- return damlTypes.Unit.decoder
1070
- }),
1071
- resultEncode: function (__typed__) {
1072
- return damlTypes.Unit.encode(__typed__)
1073
- },
1074
- },
1075
- AllocationFactory_Allocate: {
1076
- template: function () {
1077
- return exports$1.AllocationFactory
1078
- },
1079
- choiceName: 'AllocationFactory_Allocate',
1080
- argumentDecoder: damlTypes.lazyMemo(function () {
1081
- return exports$1.AllocationFactory_Allocate.decoder
1082
- }),
1083
- argumentEncode: function (__typed__) {
1084
- return exports$1.AllocationFactory_Allocate.encode(__typed__)
1085
- },
1086
- resultDecoder: damlTypes.lazyMemo(function () {
1087
- return exports$1.AllocationInstructionResult.decoder
1088
- }),
1089
- resultEncode: function (__typed__) {
1090
- return exports$1.AllocationInstructionResult.encode(__typed__)
1091
- },
1092
- },
1093
- AllocationFactory_PublicFetch: {
1094
- template: function () {
1095
- return exports$1.AllocationFactory
1096
- },
1097
- choiceName: 'AllocationFactory_PublicFetch',
1098
- argumentDecoder: damlTypes.lazyMemo(function () {
1099
- return exports$1.AllocationFactory_PublicFetch.decoder
1100
- }),
1101
- argumentEncode: function (__typed__) {
1102
- return exports$1.AllocationFactory_PublicFetch.encode(__typed__)
1103
- },
1104
- resultDecoder: damlTypes.lazyMemo(function () {
1105
- return exports$1.AllocationFactoryView.decoder
1106
- }),
1107
- resultEncode: function (__typed__) {
1108
- return exports$1.AllocationFactoryView.encode(__typed__)
1109
- },
1110
- },
1111
- }
1112
- );
777
+ AllocationFactory_PublicFetch: {
778
+ template: function () { return exports$1.AllocationFactory; },
779
+ choiceName: 'AllocationFactory_PublicFetch',
780
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationFactory_PublicFetch.decoder; }),
781
+ argumentEncode: function (__typed__) { return exports$1.AllocationFactory_PublicFetch.encode(__typed__); },
782
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationFactoryView.decoder; }),
783
+ resultEncode: function (__typed__) { return exports$1.AllocationFactoryView.encode(__typed__); },
784
+ },
785
+ });
786
+
1113
787
 
1114
788
  exports$1.AllocationInstruction = damlTypes.assembleInterface(
1115
- '#token-standard-models:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
1116
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
1117
- function () {
1118
- return exports$1.AllocationInstructionView
789
+ '#token-standard-models:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
790
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
791
+ function () { return exports$1.AllocationInstructionView; },
792
+ {
793
+ Archive: {
794
+ template: function () { return exports$1.AllocationInstruction; },
795
+ choiceName: 'Archive',
796
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
797
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
798
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
799
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
1119
800
  },
1120
- {
1121
- Archive: {
1122
- template: function () {
1123
- return exports$1.AllocationInstruction
1124
- },
1125
- choiceName: 'Archive',
1126
- argumentDecoder: damlTypes.lazyMemo(function () {
1127
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
1128
- .DA.Internal.Template.Archive.decoder
1129
- }),
1130
- argumentEncode: function (__typed__) {
1131
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
1132
- __typed__
1133
- )
1134
- },
1135
- resultDecoder: damlTypes.lazyMemo(function () {
1136
- return damlTypes.Unit.decoder
1137
- }),
1138
- resultEncode: function (__typed__) {
1139
- return damlTypes.Unit.encode(__typed__)
1140
- },
1141
- },
1142
- AllocationInstruction_Withdraw: {
1143
- template: function () {
1144
- return exports$1.AllocationInstruction
1145
- },
1146
- choiceName: 'AllocationInstruction_Withdraw',
1147
- argumentDecoder: damlTypes.lazyMemo(function () {
1148
- return exports$1.AllocationInstruction_Withdraw.decoder
1149
- }),
1150
- argumentEncode: function (__typed__) {
1151
- return exports$1.AllocationInstruction_Withdraw.encode(__typed__)
1152
- },
1153
- resultDecoder: damlTypes.lazyMemo(function () {
1154
- return exports$1.AllocationInstructionResult.decoder
1155
- }),
1156
- resultEncode: function (__typed__) {
1157
- return exports$1.AllocationInstructionResult.encode(__typed__)
1158
- },
1159
- },
1160
- AllocationInstruction_Update: {
1161
- template: function () {
1162
- return exports$1.AllocationInstruction
1163
- },
1164
- choiceName: 'AllocationInstruction_Update',
1165
- argumentDecoder: damlTypes.lazyMemo(function () {
1166
- return exports$1.AllocationInstruction_Update.decoder
1167
- }),
1168
- argumentEncode: function (__typed__) {
1169
- return exports$1.AllocationInstruction_Update.encode(__typed__)
1170
- },
1171
- resultDecoder: damlTypes.lazyMemo(function () {
1172
- return exports$1.AllocationInstructionResult.decoder
1173
- }),
1174
- resultEncode: function (__typed__) {
1175
- return exports$1.AllocationInstructionResult.encode(__typed__)
1176
- },
1177
- },
1178
- }
1179
- );
801
+ AllocationInstruction_Withdraw: {
802
+ template: function () { return exports$1.AllocationInstruction; },
803
+ choiceName: 'AllocationInstruction_Withdraw',
804
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationInstruction_Withdraw.decoder; }),
805
+ argumentEncode: function (__typed__) { return exports$1.AllocationInstruction_Withdraw.encode(__typed__); },
806
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationInstructionResult.decoder; }),
807
+ resultEncode: function (__typed__) { return exports$1.AllocationInstructionResult.encode(__typed__); },
808
+ },
809
+ AllocationInstruction_Update: {
810
+ template: function () { return exports$1.AllocationInstruction; },
811
+ choiceName: 'AllocationInstruction_Update',
812
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationInstruction_Update.decoder; }),
813
+ argumentEncode: function (__typed__) { return exports$1.AllocationInstruction_Update.encode(__typed__); },
814
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationInstructionResult.decoder; }),
815
+ resultEncode: function (__typed__) { return exports$1.AllocationInstructionResult.encode(__typed__); },
816
+ },
817
+ });
818
+
819
+
1180
820
 
1181
821
  exports$1.AllocationInstructionResult_Output = {
1182
- decoder: damlTypes.lazyMemo(function () {
1183
- return jtv.oneOf(
1184
- jtv.object({
1185
- tag: jtv.constant('AllocationInstructionResult_Pending'),
1186
- value: exports$1.AllocationInstructionResult_Output
1187
- .AllocationInstructionResult_Pending.decoder,
1188
- }),
1189
- jtv.object({
1190
- tag: jtv.constant('AllocationInstructionResult_Completed'),
1191
- value: exports$1.AllocationInstructionResult_Output
1192
- .AllocationInstructionResult_Completed.decoder,
1193
- }),
1194
- jtv.object({
1195
- tag: jtv.constant('AllocationInstructionResult_Failed'),
1196
- value: damlTypes.Unit.decoder,
1197
- })
1198
- )
1199
- }),
822
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AllocationInstructionResult_Pending'), value: exports$1.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Completed'), value: exports$1.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
823
+ encode: function (__typed__) {
824
+ switch(__typed__.tag) {
825
+ case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports$1.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
826
+ case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports$1.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
827
+ case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
828
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
829
+ }
830
+ }
831
+ ,
832
+ AllocationInstructionResult_Pending:({
833
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationInstructionCid: damlTypes.ContractId(exports$1.AllocationInstruction).decoder, }); }),
1200
834
  encode: function (__typed__) {
1201
- switch (__typed__.tag) {
1202
- case 'AllocationInstructionResult_Pending':
1203
- return {
1204
- tag: __typed__.tag,
1205
- value: exports$1.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(
1206
- __typed__.value
1207
- ),
1208
- }
1209
- case 'AllocationInstructionResult_Completed':
1210
- return {
1211
- tag: __typed__.tag,
1212
- value: exports$1.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(
1213
- __typed__.value
1214
- ),
1215
- }
1216
- case 'AllocationInstructionResult_Failed':
1217
- return {
1218
- tag: __typed__.tag,
1219
- value: damlTypes.Unit.encode(__typed__.value),
1220
- }
1221
- default:
1222
- throw (
1223
- 'unrecognized type tag: ' +
1224
- __typed__.tag +
1225
- ' while serializing a value of type AllocationInstructionResult_Output'
1226
- )
1227
- }
1228
- },
1229
- AllocationInstructionResult_Pending: {
1230
- decoder: damlTypes.lazyMemo(function () {
1231
- return jtv.object({
1232
- allocationInstructionCid: damlTypes.ContractId(
1233
- exports$1.AllocationInstruction
1234
- ).decoder,
1235
- })
1236
- }),
1237
- encode: function (__typed__) {
1238
- return {
1239
- allocationInstructionCid: damlTypes
1240
- .ContractId(exports$1.AllocationInstruction)
1241
- .encode(__typed__.allocationInstructionCid),
1242
- }
1243
- },
1244
- },
1245
- AllocationInstructionResult_Completed: {
1246
- decoder: damlTypes.lazyMemo(function () {
1247
- return jtv.object({
1248
- allocationCid: damlTypes.ContractId(
1249
- Splice_Api_Token_AllocationV1.Allocation
1250
- ).decoder,
1251
- })
1252
- }),
1253
- encode: function (__typed__) {
1254
- return {
1255
- allocationCid: damlTypes
1256
- .ContractId(Splice_Api_Token_AllocationV1.Allocation)
1257
- .encode(__typed__.allocationCid),
1258
- }
1259
- },
1260
- },
835
+ return {
836
+ allocationInstructionCid: damlTypes.ContractId(exports$1.AllocationInstruction).encode(__typed__.allocationInstructionCid),
837
+ };
838
+ }
839
+ ,
840
+ }),
841
+ AllocationInstructionResult_Completed:({
842
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationCid: damlTypes.ContractId(Splice_Api_Token_AllocationV1.Allocation).decoder, }); }),
843
+ encode: function (__typed__) {
844
+ return {
845
+ allocationCid: damlTypes.ContractId(Splice_Api_Token_AllocationV1.Allocation).encode(__typed__.allocationCid),
846
+ };
847
+ }
848
+ ,
849
+ }),
1261
850
  };
1262
851
 
852
+
853
+
854
+
855
+
856
+
857
+
1263
858
  exports$1.AllocationInstructionResult = {
1264
- decoder: damlTypes.lazyMemo(function () {
1265
- return jtv.object({
1266
- output: exports$1.AllocationInstructionResult_Output.decoder,
1267
- senderChangeCids: damlTypes.List(
1268
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
1269
- ).decoder,
1270
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
1271
- })
1272
- }),
1273
- encode: function (__typed__) {
1274
- return {
1275
- output: exports$1.AllocationInstructionResult_Output.encode(
1276
- __typed__.output
1277
- ),
1278
- senderChangeCids: damlTypes
1279
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
1280
- .encode(__typed__.senderChangeCids),
1281
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1282
- }
1283
- },
859
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports$1.AllocationInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
860
+ encode: function (__typed__) {
861
+ return {
862
+ output: exports$1.AllocationInstructionResult_Output.encode(__typed__.output),
863
+ senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderChangeCids),
864
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
865
+ };
866
+ }
867
+ ,
1284
868
  };
1285
869
 
870
+
871
+
1286
872
  exports$1.AllocationFactory_PublicFetch = {
1287
- decoder: damlTypes.lazyMemo(function () {
1288
- return jtv.object({
1289
- expectedAdmin: damlTypes.Party.decoder,
1290
- actor: damlTypes.Party.decoder,
1291
- })
1292
- }),
1293
- encode: function (__typed__) {
1294
- return {
1295
- expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
1296
- actor: damlTypes.Party.encode(__typed__.actor),
1297
- }
1298
- },
873
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
874
+ encode: function (__typed__) {
875
+ return {
876
+ expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
877
+ actor: damlTypes.Party.encode(__typed__.actor),
878
+ };
879
+ }
880
+ ,
1299
881
  };
1300
882
 
883
+
884
+
1301
885
  exports$1.AllocationFactory_Allocate = {
1302
- decoder: damlTypes.lazyMemo(function () {
1303
- return jtv.object({
1304
- expectedAdmin: damlTypes.Party.decoder,
1305
- allocation:
1306
- Splice_Api_Token_AllocationV1.AllocationSpecification.decoder,
1307
- requestedAt: damlTypes.Time.decoder,
1308
- inputHoldingCids: damlTypes.List(
1309
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
1310
- ).decoder,
1311
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1312
- })
1313
- }),
1314
- encode: function (__typed__) {
1315
- return {
1316
- expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
1317
- allocation:
1318
- Splice_Api_Token_AllocationV1.AllocationSpecification.encode(
1319
- __typed__.allocation
1320
- ),
1321
- requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
1322
- inputHoldingCids: damlTypes
1323
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
1324
- .encode(__typed__.inputHoldingCids),
1325
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1326
- __typed__.extraArgs
1327
- ),
1328
- }
1329
- },
886
+ 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, }); }),
887
+ encode: function (__typed__) {
888
+ return {
889
+ expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
890
+ allocation: Splice_Api_Token_AllocationV1.AllocationSpecification.encode(__typed__.allocation),
891
+ requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
892
+ inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
893
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
894
+ };
895
+ }
896
+ ,
1330
897
  };
1331
898
 
899
+
900
+
1332
901
  exports$1.AllocationFactoryView = {
1333
- decoder: damlTypes.lazyMemo(function () {
1334
- return jtv.object({
1335
- admin: damlTypes.Party.decoder,
1336
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
1337
- })
1338
- }),
1339
- encode: function (__typed__) {
1340
- return {
1341
- admin: damlTypes.Party.encode(__typed__.admin),
1342
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1343
- }
1344
- },
902
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
903
+ encode: function (__typed__) {
904
+ return {
905
+ admin: damlTypes.Party.encode(__typed__.admin),
906
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
907
+ };
908
+ }
909
+ ,
1345
910
  };
1346
911
 
912
+
913
+
1347
914
  exports$1.AllocationInstruction_Update = {
1348
- decoder: damlTypes.lazyMemo(function () {
1349
- return jtv.object({
1350
- extraActors: damlTypes.List(damlTypes.Party).decoder,
1351
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1352
- })
1353
- }),
1354
- encode: function (__typed__) {
1355
- return {
1356
- extraActors: damlTypes
1357
- .List(damlTypes.Party)
1358
- .encode(__typed__.extraActors),
1359
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1360
- __typed__.extraArgs
1361
- ),
1362
- }
1363
- },
915
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
916
+ encode: function (__typed__) {
917
+ return {
918
+ extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
919
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
920
+ };
921
+ }
922
+ ,
1364
923
  };
1365
924
 
925
+
926
+
1366
927
  exports$1.AllocationInstruction_Withdraw = {
1367
- decoder: damlTypes.lazyMemo(function () {
1368
- return jtv.object({
1369
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1370
- })
1371
- }),
1372
- encode: function (__typed__) {
1373
- return {
1374
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1375
- __typed__.extraArgs
1376
- ),
1377
- }
1378
- },
928
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
929
+ encode: function (__typed__) {
930
+ return {
931
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
932
+ };
933
+ }
934
+ ,
1379
935
  };
1380
936
 
937
+
938
+
1381
939
  exports$1.AllocationInstructionView = {
1382
- decoder: damlTypes.lazyMemo(function () {
1383
- return jtv.object({
1384
- originalInstructionCid: jtv.Decoder.withDefault(
1385
- null,
1386
- damlTypes.Optional(
1387
- damlTypes.ContractId(exports$1.AllocationInstruction)
1388
- ).decoder
1389
- ),
1390
- allocation:
1391
- Splice_Api_Token_AllocationV1.AllocationSpecification.decoder,
1392
- pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text)
1393
- .decoder,
1394
- requestedAt: damlTypes.Time.decoder,
1395
- inputHoldingCids: damlTypes.List(
1396
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
1397
- ).decoder,
1398
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
1399
- })
1400
- }),
1401
- encode: function (__typed__) {
1402
- return {
1403
- originalInstructionCid: damlTypes
1404
- .Optional(damlTypes.ContractId(exports$1.AllocationInstruction))
1405
- .encode(__typed__.originalInstructionCid),
1406
- allocation:
1407
- Splice_Api_Token_AllocationV1.AllocationSpecification.encode(
1408
- __typed__.allocation
1409
- ),
1410
- pendingActions: damlTypes
1411
- .Map(damlTypes.Party, damlTypes.Text)
1412
- .encode(__typed__.pendingActions),
1413
- requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
1414
- inputHoldingCids: damlTypes
1415
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
1416
- .encode(__typed__.inputHoldingCids),
1417
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1418
- }
1419
- },
940
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports$1.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, }); }),
941
+ encode: function (__typed__) {
942
+ return {
943
+ originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports$1.AllocationInstruction)).encode(__typed__.originalInstructionCid),
944
+ allocation: Splice_Api_Token_AllocationV1.AllocationSpecification.encode(__typed__.allocation),
945
+ pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
946
+ requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
947
+ inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
948
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
949
+ };
950
+ }
951
+ ,
1420
952
  };
1421
953
  } (module$8));
1422
954
  return module$8;
@@ -1430,10 +962,10 @@ function requireAllocationInstructionV1 () {
1430
962
  (function (exports$1) {
1431
963
  /* eslint-disable-next-line no-unused-vars */
1432
964
  function __export(m) {
1433
- /* eslint-disable-next-line no-prototype-builtins */
965
+ /* eslint-disable-next-line no-prototype-builtins */
1434
966
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
1435
967
  }
1436
- Object.defineProperty(exports$1, '__esModule', { value: true });
968
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1437
969
  __export(requireModule$2());
1438
970
  } (AllocationInstructionV1$1));
1439
971
  return AllocationInstructionV1$1;
@@ -1449,7 +981,7 @@ function requireModule$1 () {
1449
981
  if (hasRequiredModule$1) return module$2;
1450
982
  hasRequiredModule$1 = 1;
1451
983
  (function (exports$1) {
1452
- Object.defineProperty(exports$1, '__esModule', { value: true });
984
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1453
985
  /* eslint-disable-next-line no-unused-vars */
1454
986
  var jtv = require$$0;
1455
987
  /* eslint-disable-next-line no-unused-vars */
@@ -1461,131 +993,73 @@ function requireModule$1 () {
1461
993
  var Splice_Api_Token_MetadataV1 = requireModule$5();
1462
994
 
1463
995
  exports$1.AllocationRequest = damlTypes.assembleInterface(
1464
- '#token-standard-models:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
1465
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
1466
- function () {
1467
- return exports$1.AllocationRequestView
996
+ '#token-standard-models:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
997
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
998
+ function () { return exports$1.AllocationRequestView; },
999
+ {
1000
+ Archive: {
1001
+ template: function () { return exports$1.AllocationRequest; },
1002
+ choiceName: 'Archive',
1003
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
1004
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
1005
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
1006
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
1007
+ },
1008
+ AllocationRequest_Reject: {
1009
+ template: function () { return exports$1.AllocationRequest; },
1010
+ choiceName: 'AllocationRequest_Reject',
1011
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationRequest_Reject.decoder; }),
1012
+ argumentEncode: function (__typed__) { return exports$1.AllocationRequest_Reject.encode(__typed__); },
1013
+ resultDecoder: damlTypes.lazyMemo(function () { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.decoder; }),
1014
+ resultEncode: function (__typed__) { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.encode(__typed__); },
1468
1015
  },
1469
- {
1470
- Archive: {
1471
- template: function () {
1472
- return exports$1.AllocationRequest
1473
- },
1474
- choiceName: 'Archive',
1475
- argumentDecoder: damlTypes.lazyMemo(function () {
1476
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
1477
- .DA.Internal.Template.Archive.decoder
1478
- }),
1479
- argumentEncode: function (__typed__) {
1480
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
1481
- __typed__
1482
- )
1483
- },
1484
- resultDecoder: damlTypes.lazyMemo(function () {
1485
- return damlTypes.Unit.decoder
1486
- }),
1487
- resultEncode: function (__typed__) {
1488
- return damlTypes.Unit.encode(__typed__)
1489
- },
1490
- },
1491
- AllocationRequest_Reject: {
1492
- template: function () {
1493
- return exports$1.AllocationRequest
1494
- },
1495
- choiceName: 'AllocationRequest_Reject',
1496
- argumentDecoder: damlTypes.lazyMemo(function () {
1497
- return exports$1.AllocationRequest_Reject.decoder
1498
- }),
1499
- argumentEncode: function (__typed__) {
1500
- return exports$1.AllocationRequest_Reject.encode(__typed__)
1501
- },
1502
- resultDecoder: damlTypes.lazyMemo(function () {
1503
- return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata
1504
- .decoder
1505
- }),
1506
- resultEncode: function (__typed__) {
1507
- return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.encode(
1508
- __typed__
1509
- )
1510
- },
1511
- },
1512
- AllocationRequest_Withdraw: {
1513
- template: function () {
1514
- return exports$1.AllocationRequest
1515
- },
1516
- choiceName: 'AllocationRequest_Withdraw',
1517
- argumentDecoder: damlTypes.lazyMemo(function () {
1518
- return exports$1.AllocationRequest_Withdraw.decoder
1519
- }),
1520
- argumentEncode: function (__typed__) {
1521
- return exports$1.AllocationRequest_Withdraw.encode(__typed__)
1522
- },
1523
- resultDecoder: damlTypes.lazyMemo(function () {
1524
- return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata
1525
- .decoder
1526
- }),
1527
- resultEncode: function (__typed__) {
1528
- return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.encode(
1529
- __typed__
1530
- )
1531
- },
1532
- },
1533
- }
1534
- );
1016
+ AllocationRequest_Withdraw: {
1017
+ template: function () { return exports$1.AllocationRequest; },
1018
+ choiceName: 'AllocationRequest_Withdraw',
1019
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.AllocationRequest_Withdraw.decoder; }),
1020
+ argumentEncode: function (__typed__) { return exports$1.AllocationRequest_Withdraw.encode(__typed__); },
1021
+ resultDecoder: damlTypes.lazyMemo(function () { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.decoder; }),
1022
+ resultEncode: function (__typed__) { return Splice_Api_Token_MetadataV1.ChoiceExecutionMetadata.encode(__typed__); },
1023
+ },
1024
+ });
1025
+
1026
+
1535
1027
 
1536
1028
  exports$1.AllocationRequestView = {
1537
- decoder: damlTypes.lazyMemo(function () {
1538
- return jtv.object({
1539
- settlement: Splice_Api_Token_AllocationV1.SettlementInfo.decoder,
1540
- transferLegs: damlTypes.TextMap(
1541
- Splice_Api_Token_AllocationV1.TransferLeg
1542
- ).decoder,
1543
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
1544
- })
1545
- }),
1546
- encode: function (__typed__) {
1547
- return {
1548
- settlement: Splice_Api_Token_AllocationV1.SettlementInfo.encode(
1549
- __typed__.settlement
1550
- ),
1551
- transferLegs: damlTypes
1552
- .TextMap(Splice_Api_Token_AllocationV1.TransferLeg)
1553
- .encode(__typed__.transferLegs),
1554
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1555
- }
1556
- },
1029
+ 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, }); }),
1030
+ encode: function (__typed__) {
1031
+ return {
1032
+ settlement: Splice_Api_Token_AllocationV1.SettlementInfo.encode(__typed__.settlement),
1033
+ transferLegs: damlTypes.TextMap(Splice_Api_Token_AllocationV1.TransferLeg).encode(__typed__.transferLegs),
1034
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1035
+ };
1036
+ }
1037
+ ,
1557
1038
  };
1558
1039
 
1040
+
1041
+
1559
1042
  exports$1.AllocationRequest_Withdraw = {
1560
- decoder: damlTypes.lazyMemo(function () {
1561
- return jtv.object({
1562
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1563
- })
1564
- }),
1565
- encode: function (__typed__) {
1566
- return {
1567
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1568
- __typed__.extraArgs
1569
- ),
1570
- }
1571
- },
1043
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1044
+ encode: function (__typed__) {
1045
+ return {
1046
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1047
+ };
1048
+ }
1049
+ ,
1572
1050
  };
1573
1051
 
1052
+
1053
+
1574
1054
  exports$1.AllocationRequest_Reject = {
1575
- decoder: damlTypes.lazyMemo(function () {
1576
- return jtv.object({
1577
- actor: damlTypes.Party.decoder,
1578
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1579
- })
1580
- }),
1581
- encode: function (__typed__) {
1582
- return {
1583
- actor: damlTypes.Party.encode(__typed__.actor),
1584
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1585
- __typed__.extraArgs
1586
- ),
1587
- }
1588
- },
1055
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1056
+ encode: function (__typed__) {
1057
+ return {
1058
+ actor: damlTypes.Party.encode(__typed__.actor),
1059
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1060
+ };
1061
+ }
1062
+ ,
1589
1063
  };
1590
1064
  } (module$2));
1591
1065
  return module$2;
@@ -1599,10 +1073,10 @@ function requireAllocationRequestV1 () {
1599
1073
  (function (exports$1) {
1600
1074
  /* eslint-disable-next-line no-unused-vars */
1601
1075
  function __export(m) {
1602
- /* eslint-disable-next-line no-prototype-builtins */
1076
+ /* eslint-disable-next-line no-prototype-builtins */
1603
1077
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
1604
1078
  }
1605
- Object.defineProperty(exports$1, '__esModule', { value: true });
1079
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1606
1080
  __export(requireModule$1());
1607
1081
  } (AllocationRequestV1$1));
1608
1082
  return AllocationRequestV1$1;
@@ -1618,10 +1092,10 @@ function requireAllocationV1 () {
1618
1092
  (function (exports$1) {
1619
1093
  /* eslint-disable-next-line no-unused-vars */
1620
1094
  function __export(m) {
1621
- /* eslint-disable-next-line no-prototype-builtins */
1095
+ /* eslint-disable-next-line no-prototype-builtins */
1622
1096
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
1623
1097
  }
1624
- Object.defineProperty(exports$1, '__esModule', { value: true });
1098
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1625
1099
  __export(requireModule$3());
1626
1100
  } (AllocationV1$1));
1627
1101
  return AllocationV1$1;
@@ -1637,10 +1111,10 @@ function requireHoldingV1 () {
1637
1111
  (function (exports$1) {
1638
1112
  /* eslint-disable-next-line no-unused-vars */
1639
1113
  function __export(m) {
1640
- /* eslint-disable-next-line no-prototype-builtins */
1114
+ /* eslint-disable-next-line no-prototype-builtins */
1641
1115
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
1642
1116
  }
1643
- Object.defineProperty(exports$1, '__esModule', { value: true });
1117
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1644
1118
  __export(requireModule$4());
1645
1119
  } (HoldingV1$1));
1646
1120
  return HoldingV1$1;
@@ -1656,10 +1130,10 @@ function requireMetadataV1 () {
1656
1130
  (function (exports$1) {
1657
1131
  /* eslint-disable-next-line no-unused-vars */
1658
1132
  function __export(m) {
1659
- /* eslint-disable-next-line no-prototype-builtins */
1133
+ /* eslint-disable-next-line no-prototype-builtins */
1660
1134
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
1661
1135
  }
1662
- Object.defineProperty(exports$1, '__esModule', { value: true });
1136
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1663
1137
  __export(requireModule$5());
1664
1138
  } (MetadataV1$1));
1665
1139
  return MetadataV1$1;
@@ -1675,7 +1149,7 @@ function requireModule () {
1675
1149
  if (hasRequiredModule) return module$1;
1676
1150
  hasRequiredModule = 1;
1677
1151
  (function (exports$1) {
1678
- Object.defineProperty(exports$1, '__esModule', { value: true });
1152
+ Object.defineProperty(exports$1, "__esModule", { value: true });
1679
1153
  /* eslint-disable-next-line no-unused-vars */
1680
1154
  var jtv = require$$0;
1681
1155
  /* eslint-disable-next-line no-unused-vars */
@@ -1687,505 +1161,281 @@ function requireModule () {
1687
1161
  var Splice_Api_Token_MetadataV1 = requireModule$5();
1688
1162
 
1689
1163
  exports$1.TransferFactory = damlTypes.assembleInterface(
1690
- '#token-standard-models:Splice.Api.Token.TransferInstructionV1:TransferFactory',
1691
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.TransferInstructionV1:TransferFactory',
1692
- function () {
1693
- return exports$1.TransferFactoryView
1164
+ '#token-standard-models:Splice.Api.Token.TransferInstructionV1:TransferFactory',
1165
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.TransferInstructionV1:TransferFactory',
1166
+ function () { return exports$1.TransferFactoryView; },
1167
+ {
1168
+ Archive: {
1169
+ template: function () { return exports$1.TransferFactory; },
1170
+ choiceName: 'Archive',
1171
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
1172
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
1173
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
1174
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
1175
+ },
1176
+ TransferFactory_Transfer: {
1177
+ template: function () { return exports$1.TransferFactory; },
1178
+ choiceName: 'TransferFactory_Transfer',
1179
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferFactory_Transfer.decoder; }),
1180
+ argumentEncode: function (__typed__) { return exports$1.TransferFactory_Transfer.encode(__typed__); },
1181
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstructionResult.decoder; }),
1182
+ resultEncode: function (__typed__) { return exports$1.TransferInstructionResult.encode(__typed__); },
1183
+ },
1184
+ TransferFactory_PublicFetch: {
1185
+ template: function () { return exports$1.TransferFactory; },
1186
+ choiceName: 'TransferFactory_PublicFetch',
1187
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferFactory_PublicFetch.decoder; }),
1188
+ argumentEncode: function (__typed__) { return exports$1.TransferFactory_PublicFetch.encode(__typed__); },
1189
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferFactoryView.decoder; }),
1190
+ resultEncode: function (__typed__) { return exports$1.TransferFactoryView.encode(__typed__); },
1694
1191
  },
1695
- {
1696
- Archive: {
1697
- template: function () {
1698
- return exports$1.TransferFactory
1699
- },
1700
- choiceName: 'Archive',
1701
- argumentDecoder: damlTypes.lazyMemo(function () {
1702
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
1703
- .DA.Internal.Template.Archive.decoder
1704
- }),
1705
- argumentEncode: function (__typed__) {
1706
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
1707
- __typed__
1708
- )
1709
- },
1710
- resultDecoder: damlTypes.lazyMemo(function () {
1711
- return damlTypes.Unit.decoder
1712
- }),
1713
- resultEncode: function (__typed__) {
1714
- return damlTypes.Unit.encode(__typed__)
1715
- },
1716
- },
1717
- TransferFactory_Transfer: {
1718
- template: function () {
1719
- return exports$1.TransferFactory
1720
- },
1721
- choiceName: 'TransferFactory_Transfer',
1722
- argumentDecoder: damlTypes.lazyMemo(function () {
1723
- return exports$1.TransferFactory_Transfer.decoder
1724
- }),
1725
- argumentEncode: function (__typed__) {
1726
- return exports$1.TransferFactory_Transfer.encode(__typed__)
1727
- },
1728
- resultDecoder: damlTypes.lazyMemo(function () {
1729
- return exports$1.TransferInstructionResult.decoder
1730
- }),
1731
- resultEncode: function (__typed__) {
1732
- return exports$1.TransferInstructionResult.encode(__typed__)
1733
- },
1734
- },
1735
- TransferFactory_PublicFetch: {
1736
- template: function () {
1737
- return exports$1.TransferFactory
1738
- },
1739
- choiceName: 'TransferFactory_PublicFetch',
1740
- argumentDecoder: damlTypes.lazyMemo(function () {
1741
- return exports$1.TransferFactory_PublicFetch.decoder
1742
- }),
1743
- argumentEncode: function (__typed__) {
1744
- return exports$1.TransferFactory_PublicFetch.encode(__typed__)
1745
- },
1746
- resultDecoder: damlTypes.lazyMemo(function () {
1747
- return exports$1.TransferFactoryView.decoder
1748
- }),
1749
- resultEncode: function (__typed__) {
1750
- return exports$1.TransferFactoryView.encode(__typed__)
1751
- },
1752
- },
1753
- }
1754
- );
1192
+ });
1193
+
1755
1194
 
1756
1195
  exports$1.TransferInstruction = damlTypes.assembleInterface(
1757
- '#token-standard-models:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
1758
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
1759
- function () {
1760
- return exports$1.TransferInstructionView
1196
+ '#token-standard-models:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
1197
+ '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
1198
+ function () { return exports$1.TransferInstructionView; },
1199
+ {
1200
+ Archive: {
1201
+ template: function () { return exports$1.TransferInstruction; },
1202
+ choiceName: 'Archive',
1203
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
1204
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
1205
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
1206
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
1207
+ },
1208
+ TransferInstruction_Accept: {
1209
+ template: function () { return exports$1.TransferInstruction; },
1210
+ choiceName: 'TransferInstruction_Accept',
1211
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstruction_Accept.decoder; }),
1212
+ argumentEncode: function (__typed__) { return exports$1.TransferInstruction_Accept.encode(__typed__); },
1213
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstructionResult.decoder; }),
1214
+ resultEncode: function (__typed__) { return exports$1.TransferInstructionResult.encode(__typed__); },
1215
+ },
1216
+ TransferInstruction_Reject: {
1217
+ template: function () { return exports$1.TransferInstruction; },
1218
+ choiceName: 'TransferInstruction_Reject',
1219
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstruction_Reject.decoder; }),
1220
+ argumentEncode: function (__typed__) { return exports$1.TransferInstruction_Reject.encode(__typed__); },
1221
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstructionResult.decoder; }),
1222
+ resultEncode: function (__typed__) { return exports$1.TransferInstructionResult.encode(__typed__); },
1223
+ },
1224
+ TransferInstruction_Withdraw: {
1225
+ template: function () { return exports$1.TransferInstruction; },
1226
+ choiceName: 'TransferInstruction_Withdraw',
1227
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstruction_Withdraw.decoder; }),
1228
+ argumentEncode: function (__typed__) { return exports$1.TransferInstruction_Withdraw.encode(__typed__); },
1229
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstructionResult.decoder; }),
1230
+ resultEncode: function (__typed__) { return exports$1.TransferInstructionResult.encode(__typed__); },
1761
1231
  },
1762
- {
1763
- Archive: {
1764
- template: function () {
1765
- return exports$1.TransferInstruction
1766
- },
1767
- choiceName: 'Archive',
1768
- argumentDecoder: damlTypes.lazyMemo(function () {
1769
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
1770
- .DA.Internal.Template.Archive.decoder
1771
- }),
1772
- argumentEncode: function (__typed__) {
1773
- return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(
1774
- __typed__
1775
- )
1776
- },
1777
- resultDecoder: damlTypes.lazyMemo(function () {
1778
- return damlTypes.Unit.decoder
1779
- }),
1780
- resultEncode: function (__typed__) {
1781
- return damlTypes.Unit.encode(__typed__)
1782
- },
1783
- },
1784
- TransferInstruction_Accept: {
1785
- template: function () {
1786
- return exports$1.TransferInstruction
1787
- },
1788
- choiceName: 'TransferInstruction_Accept',
1789
- argumentDecoder: damlTypes.lazyMemo(function () {
1790
- return exports$1.TransferInstruction_Accept.decoder
1791
- }),
1792
- argumentEncode: function (__typed__) {
1793
- return exports$1.TransferInstruction_Accept.encode(__typed__)
1794
- },
1795
- resultDecoder: damlTypes.lazyMemo(function () {
1796
- return exports$1.TransferInstructionResult.decoder
1797
- }),
1798
- resultEncode: function (__typed__) {
1799
- return exports$1.TransferInstructionResult.encode(__typed__)
1800
- },
1801
- },
1802
- TransferInstruction_Reject: {
1803
- template: function () {
1804
- return exports$1.TransferInstruction
1805
- },
1806
- choiceName: 'TransferInstruction_Reject',
1807
- argumentDecoder: damlTypes.lazyMemo(function () {
1808
- return exports$1.TransferInstruction_Reject.decoder
1809
- }),
1810
- argumentEncode: function (__typed__) {
1811
- return exports$1.TransferInstruction_Reject.encode(__typed__)
1812
- },
1813
- resultDecoder: damlTypes.lazyMemo(function () {
1814
- return exports$1.TransferInstructionResult.decoder
1815
- }),
1816
- resultEncode: function (__typed__) {
1817
- return exports$1.TransferInstructionResult.encode(__typed__)
1818
- },
1819
- },
1820
- TransferInstruction_Withdraw: {
1821
- template: function () {
1822
- return exports$1.TransferInstruction
1823
- },
1824
- choiceName: 'TransferInstruction_Withdraw',
1825
- argumentDecoder: damlTypes.lazyMemo(function () {
1826
- return exports$1.TransferInstruction_Withdraw.decoder
1827
- }),
1828
- argumentEncode: function (__typed__) {
1829
- return exports$1.TransferInstruction_Withdraw.encode(__typed__)
1830
- },
1831
- resultDecoder: damlTypes.lazyMemo(function () {
1832
- return exports$1.TransferInstructionResult.decoder
1833
- }),
1834
- resultEncode: function (__typed__) {
1835
- return exports$1.TransferInstructionResult.encode(__typed__)
1836
- },
1837
- },
1838
- TransferInstruction_Update: {
1839
- template: function () {
1840
- return exports$1.TransferInstruction
1841
- },
1842
- choiceName: 'TransferInstruction_Update',
1843
- argumentDecoder: damlTypes.lazyMemo(function () {
1844
- return exports$1.TransferInstruction_Update.decoder
1845
- }),
1846
- argumentEncode: function (__typed__) {
1847
- return exports$1.TransferInstruction_Update.encode(__typed__)
1848
- },
1849
- resultDecoder: damlTypes.lazyMemo(function () {
1850
- return exports$1.TransferInstructionResult.decoder
1851
- }),
1852
- resultEncode: function (__typed__) {
1853
- return exports$1.TransferInstructionResult.encode(__typed__)
1854
- },
1855
- },
1856
- }
1857
- );
1232
+ TransferInstruction_Update: {
1233
+ template: function () { return exports$1.TransferInstruction; },
1234
+ choiceName: 'TransferInstruction_Update',
1235
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstruction_Update.decoder; }),
1236
+ argumentEncode: function (__typed__) { return exports$1.TransferInstruction_Update.encode(__typed__); },
1237
+ resultDecoder: damlTypes.lazyMemo(function () { return exports$1.TransferInstructionResult.decoder; }),
1238
+ resultEncode: function (__typed__) { return exports$1.TransferInstructionResult.encode(__typed__); },
1239
+ },
1240
+ });
1241
+
1242
+
1858
1243
 
1859
1244
  exports$1.TransferFactoryView = {
1860
- decoder: damlTypes.lazyMemo(function () {
1861
- return jtv.object({
1862
- admin: damlTypes.Party.decoder,
1863
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
1864
- })
1865
- }),
1866
- encode: function (__typed__) {
1867
- return {
1868
- admin: damlTypes.Party.encode(__typed__.admin),
1869
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1870
- }
1871
- },
1245
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
1246
+ encode: function (__typed__) {
1247
+ return {
1248
+ admin: damlTypes.Party.encode(__typed__.admin),
1249
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1250
+ };
1251
+ }
1252
+ ,
1872
1253
  };
1873
1254
 
1255
+
1256
+
1874
1257
  exports$1.TransferFactory_PublicFetch = {
1875
- decoder: damlTypes.lazyMemo(function () {
1876
- return jtv.object({
1877
- expectedAdmin: damlTypes.Party.decoder,
1878
- actor: damlTypes.Party.decoder,
1879
- })
1880
- }),
1881
- encode: function (__typed__) {
1882
- return {
1883
- expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
1884
- actor: damlTypes.Party.encode(__typed__.actor),
1885
- }
1886
- },
1258
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
1259
+ encode: function (__typed__) {
1260
+ return {
1261
+ expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
1262
+ actor: damlTypes.Party.encode(__typed__.actor),
1263
+ };
1264
+ }
1265
+ ,
1887
1266
  };
1888
1267
 
1268
+
1269
+
1889
1270
  exports$1.TransferFactory_Transfer = {
1890
- decoder: damlTypes.lazyMemo(function () {
1891
- return jtv.object({
1892
- expectedAdmin: damlTypes.Party.decoder,
1893
- transfer: exports$1.Transfer.decoder,
1894
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1895
- })
1896
- }),
1897
- encode: function (__typed__) {
1898
- return {
1899
- expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
1900
- transfer: exports$1.Transfer.encode(__typed__.transfer),
1901
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1902
- __typed__.extraArgs
1903
- ),
1904
- }
1905
- },
1271
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, transfer: exports$1.Transfer.decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1272
+ encode: function (__typed__) {
1273
+ return {
1274
+ expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
1275
+ transfer: exports$1.Transfer.encode(__typed__.transfer),
1276
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1277
+ };
1278
+ }
1279
+ ,
1906
1280
  };
1907
1281
 
1282
+
1283
+
1908
1284
  exports$1.TransferInstruction_Update = {
1909
- decoder: damlTypes.lazyMemo(function () {
1910
- return jtv.object({
1911
- extraActors: damlTypes.List(damlTypes.Party).decoder,
1912
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1913
- })
1914
- }),
1915
- encode: function (__typed__) {
1916
- return {
1917
- extraActors: damlTypes
1918
- .List(damlTypes.Party)
1919
- .encode(__typed__.extraActors),
1920
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1921
- __typed__.extraArgs
1922
- ),
1923
- }
1924
- },
1285
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1286
+ encode: function (__typed__) {
1287
+ return {
1288
+ extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
1289
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1290
+ };
1291
+ }
1292
+ ,
1925
1293
  };
1926
1294
 
1295
+
1296
+
1927
1297
  exports$1.TransferInstruction_Withdraw = {
1928
- decoder: damlTypes.lazyMemo(function () {
1929
- return jtv.object({
1930
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1931
- })
1932
- }),
1933
- encode: function (__typed__) {
1934
- return {
1935
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1936
- __typed__.extraArgs
1937
- ),
1938
- }
1939
- },
1298
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1299
+ encode: function (__typed__) {
1300
+ return {
1301
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1302
+ };
1303
+ }
1304
+ ,
1940
1305
  };
1941
1306
 
1307
+
1308
+
1942
1309
  exports$1.TransferInstruction_Reject = {
1943
- decoder: damlTypes.lazyMemo(function () {
1944
- return jtv.object({
1945
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1946
- })
1947
- }),
1948
- encode: function (__typed__) {
1949
- return {
1950
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1951
- __typed__.extraArgs
1952
- ),
1953
- }
1954
- },
1310
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1311
+ encode: function (__typed__) {
1312
+ return {
1313
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1314
+ };
1315
+ }
1316
+ ,
1955
1317
  };
1956
1318
 
1319
+
1320
+
1957
1321
  exports$1.TransferInstruction_Accept = {
1958
- decoder: damlTypes.lazyMemo(function () {
1959
- return jtv.object({
1960
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder,
1961
- })
1962
- }),
1963
- encode: function (__typed__) {
1964
- return {
1965
- extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(
1966
- __typed__.extraArgs
1967
- ),
1968
- }
1969
- },
1322
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
1323
+ encode: function (__typed__) {
1324
+ return {
1325
+ extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
1326
+ };
1327
+ }
1328
+ ,
1970
1329
  };
1971
1330
 
1331
+
1332
+
1972
1333
  exports$1.TransferInstructionView = {
1973
- decoder: damlTypes.lazyMemo(function () {
1974
- return jtv.object({
1975
- originalInstructionCid: jtv.Decoder.withDefault(
1976
- null,
1977
- damlTypes.Optional(
1978
- damlTypes.ContractId(exports$1.TransferInstruction)
1979
- ).decoder
1980
- ),
1981
- transfer: exports$1.Transfer.decoder,
1982
- status: exports$1.TransferInstructionStatus.decoder,
1983
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
1984
- })
1985
- }),
1986
- encode: function (__typed__) {
1987
- return {
1988
- originalInstructionCid: damlTypes
1989
- .Optional(damlTypes.ContractId(exports$1.TransferInstruction))
1990
- .encode(__typed__.originalInstructionCid),
1991
- transfer: exports$1.Transfer.encode(__typed__.transfer),
1992
- status: exports$1.TransferInstructionStatus.encode(__typed__.status),
1993
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1994
- }
1995
- },
1334
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports$1.TransferInstruction)).decoder), transfer: exports$1.Transfer.decoder, status: exports$1.TransferInstructionStatus.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
1335
+ encode: function (__typed__) {
1336
+ return {
1337
+ originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports$1.TransferInstruction)).encode(__typed__.originalInstructionCid),
1338
+ transfer: exports$1.Transfer.encode(__typed__.transfer),
1339
+ status: exports$1.TransferInstructionStatus.encode(__typed__.status),
1340
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1341
+ };
1342
+ }
1343
+ ,
1996
1344
  };
1997
1345
 
1346
+
1347
+
1998
1348
  exports$1.TransferInstructionStatus = {
1999
- decoder: damlTypes.lazyMemo(function () {
2000
- return jtv.oneOf(
2001
- jtv.object({
2002
- tag: jtv.constant('TransferPendingReceiverAcceptance'),
2003
- value: damlTypes.Unit.decoder,
2004
- }),
2005
- jtv.object({
2006
- tag: jtv.constant('TransferPendingInternalWorkflow'),
2007
- value: exports$1.TransferInstructionStatus
2008
- .TransferPendingInternalWorkflow.decoder,
2009
- })
2010
- )
2011
- }),
1349
+ 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$1.TransferInstructionStatus.TransferPendingInternalWorkflow.decoder, })); }),
1350
+ encode: function (__typed__) {
1351
+ switch(__typed__.tag) {
1352
+ case 'TransferPendingReceiverAcceptance': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
1353
+ case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports$1.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(__typed__.value)};
1354
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionStatus';
1355
+ }
1356
+ }
1357
+ ,
1358
+ TransferPendingInternalWorkflow:({
1359
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, }); }),
2012
1360
  encode: function (__typed__) {
2013
- switch (__typed__.tag) {
2014
- case 'TransferPendingReceiverAcceptance':
2015
- return {
2016
- tag: __typed__.tag,
2017
- value: damlTypes.Unit.encode(__typed__.value),
2018
- }
2019
- case 'TransferPendingInternalWorkflow':
2020
- return {
2021
- tag: __typed__.tag,
2022
- value: exports$1.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(
2023
- __typed__.value
2024
- ),
2025
- }
2026
- default:
2027
- throw (
2028
- 'unrecognized type tag: ' +
2029
- __typed__.tag +
2030
- ' while serializing a value of type TransferInstructionStatus'
2031
- )
2032
- }
2033
- },
2034
- TransferPendingInternalWorkflow: {
2035
- decoder: damlTypes.lazyMemo(function () {
2036
- return jtv.object({
2037
- pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text)
2038
- .decoder,
2039
- })
2040
- }),
2041
- encode: function (__typed__) {
2042
- return {
2043
- pendingActions: damlTypes
2044
- .Map(damlTypes.Party, damlTypes.Text)
2045
- .encode(__typed__.pendingActions),
2046
- }
2047
- },
2048
- },
1361
+ return {
1362
+ pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
1363
+ };
1364
+ }
1365
+ ,
1366
+ }),
2049
1367
  };
2050
1368
 
1369
+
1370
+
1371
+
1372
+
2051
1373
  exports$1.TransferInstructionResult_Output = {
2052
- decoder: damlTypes.lazyMemo(function () {
2053
- return jtv.oneOf(
2054
- jtv.object({
2055
- tag: jtv.constant('TransferInstructionResult_Pending'),
2056
- value: exports$1.TransferInstructionResult_Output
2057
- .TransferInstructionResult_Pending.decoder,
2058
- }),
2059
- jtv.object({
2060
- tag: jtv.constant('TransferInstructionResult_Completed'),
2061
- value: exports$1.TransferInstructionResult_Output
2062
- .TransferInstructionResult_Completed.decoder,
2063
- }),
2064
- jtv.object({
2065
- tag: jtv.constant('TransferInstructionResult_Failed'),
2066
- value: damlTypes.Unit.decoder,
2067
- })
2068
- )
2069
- }),
1374
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferInstructionResult_Pending'), value: exports$1.TransferInstructionResult_Output.TransferInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Completed'), value: exports$1.TransferInstructionResult_Output.TransferInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
1375
+ encode: function (__typed__) {
1376
+ switch(__typed__.tag) {
1377
+ case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports$1.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(__typed__.value)};
1378
+ case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports$1.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(__typed__.value)};
1379
+ case 'TransferInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
1380
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionResult_Output';
1381
+ }
1382
+ }
1383
+ ,
1384
+ TransferInstructionResult_Pending:({
1385
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({transferInstructionCid: damlTypes.ContractId(exports$1.TransferInstruction).decoder, }); }),
2070
1386
  encode: function (__typed__) {
2071
- switch (__typed__.tag) {
2072
- case 'TransferInstructionResult_Pending':
2073
- return {
2074
- tag: __typed__.tag,
2075
- value: exports$1.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(
2076
- __typed__.value
2077
- ),
2078
- }
2079
- case 'TransferInstructionResult_Completed':
2080
- return {
2081
- tag: __typed__.tag,
2082
- value: exports$1.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(
2083
- __typed__.value
2084
- ),
2085
- }
2086
- case 'TransferInstructionResult_Failed':
2087
- return {
2088
- tag: __typed__.tag,
2089
- value: damlTypes.Unit.encode(__typed__.value),
2090
- }
2091
- default:
2092
- throw (
2093
- 'unrecognized type tag: ' +
2094
- __typed__.tag +
2095
- ' while serializing a value of type TransferInstructionResult_Output'
2096
- )
2097
- }
2098
- },
2099
- TransferInstructionResult_Pending: {
2100
- decoder: damlTypes.lazyMemo(function () {
2101
- return jtv.object({
2102
- transferInstructionCid: damlTypes.ContractId(
2103
- exports$1.TransferInstruction
2104
- ).decoder,
2105
- })
2106
- }),
2107
- encode: function (__typed__) {
2108
- return {
2109
- transferInstructionCid: damlTypes
2110
- .ContractId(exports$1.TransferInstruction)
2111
- .encode(__typed__.transferInstructionCid),
2112
- }
2113
- },
2114
- },
2115
- TransferInstructionResult_Completed: {
2116
- decoder: damlTypes.lazyMemo(function () {
2117
- return jtv.object({
2118
- receiverHoldingCids: damlTypes.List(
2119
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
2120
- ).decoder,
2121
- })
2122
- }),
2123
- encode: function (__typed__) {
2124
- return {
2125
- receiverHoldingCids: damlTypes
2126
- .List(
2127
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
2128
- )
2129
- .encode(__typed__.receiverHoldingCids),
2130
- }
2131
- },
2132
- },
1387
+ return {
1388
+ transferInstructionCid: damlTypes.ContractId(exports$1.TransferInstruction).encode(__typed__.transferInstructionCid),
1389
+ };
1390
+ }
1391
+ ,
1392
+ }),
1393
+ TransferInstructionResult_Completed:({
1394
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({receiverHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, }); }),
1395
+ encode: function (__typed__) {
1396
+ return {
1397
+ receiverHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.receiverHoldingCids),
1398
+ };
1399
+ }
1400
+ ,
1401
+ }),
2133
1402
  };
2134
1403
 
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
2135
1410
  exports$1.TransferInstructionResult = {
2136
- decoder: damlTypes.lazyMemo(function () {
2137
- return jtv.object({
2138
- output: exports$1.TransferInstructionResult_Output.decoder,
2139
- senderChangeCids: damlTypes.List(
2140
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
2141
- ).decoder,
2142
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
2143
- })
2144
- }),
2145
- encode: function (__typed__) {
2146
- return {
2147
- output: exports$1.TransferInstructionResult_Output.encode(
2148
- __typed__.output
2149
- ),
2150
- senderChangeCids: damlTypes
2151
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
2152
- .encode(__typed__.senderChangeCids),
2153
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
2154
- }
2155
- },
1411
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports$1.TransferInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
1412
+ encode: function (__typed__) {
1413
+ return {
1414
+ output: exports$1.TransferInstructionResult_Output.encode(__typed__.output),
1415
+ senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.senderChangeCids),
1416
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1417
+ };
1418
+ }
1419
+ ,
2156
1420
  };
2157
1421
 
1422
+
1423
+
2158
1424
  exports$1.Transfer = {
2159
- decoder: damlTypes.lazyMemo(function () {
2160
- return jtv.object({
2161
- sender: damlTypes.Party.decoder,
2162
- receiver: damlTypes.Party.decoder,
2163
- amount: damlTypes.Numeric(10).decoder,
2164
- instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.decoder,
2165
- requestedAt: damlTypes.Time.decoder,
2166
- executeBefore: damlTypes.Time.decoder,
2167
- inputHoldingCids: damlTypes.List(
2168
- damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)
2169
- ).decoder,
2170
- meta: Splice_Api_Token_MetadataV1.Metadata.decoder,
2171
- })
2172
- }),
2173
- encode: function (__typed__) {
2174
- return {
2175
- sender: damlTypes.Party.encode(__typed__.sender),
2176
- receiver: damlTypes.Party.encode(__typed__.receiver),
2177
- amount: damlTypes.Numeric(10).encode(__typed__.amount),
2178
- instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.encode(
2179
- __typed__.instrumentId
2180
- ),
2181
- requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
2182
- executeBefore: damlTypes.Time.encode(__typed__.executeBefore),
2183
- inputHoldingCids: damlTypes
2184
- .List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding))
2185
- .encode(__typed__.inputHoldingCids),
2186
- meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
2187
- }
2188
- },
1425
+ 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, }); }),
1426
+ encode: function (__typed__) {
1427
+ return {
1428
+ sender: damlTypes.Party.encode(__typed__.sender),
1429
+ receiver: damlTypes.Party.encode(__typed__.receiver),
1430
+ amount: damlTypes.Numeric(10).encode(__typed__.amount),
1431
+ instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.encode(__typed__.instrumentId),
1432
+ requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
1433
+ executeBefore: damlTypes.Time.encode(__typed__.executeBefore),
1434
+ inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
1435
+ meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
1436
+ };
1437
+ }
1438
+ ,
2189
1439
  };
2190
1440
  } (module$1));
2191
1441
  return module$1;
@@ -2199,10 +1449,10 @@ function requireTransferInstructionV1 () {
2199
1449
  (function (exports$1) {
2200
1450
  /* eslint-disable-next-line no-unused-vars */
2201
1451
  function __export(m) {
2202
- /* eslint-disable-next-line no-prototype-builtins */
1452
+ /* eslint-disable-next-line no-prototype-builtins */
2203
1453
  for (var p in m) if (!exports$1.hasOwnProperty(p)) exports$1[p] = m[p];
2204
1454
  }
2205
- Object.defineProperty(exports$1, '__esModule', { value: true });
1455
+ Object.defineProperty(exports$1, "__esModule", { value: true });
2206
1456
  __export(requireModule());
2207
1457
  } (TransferInstructionV1$1));
2208
1458
  return TransferInstructionV1$1;
@@ -2214,7 +1464,7 @@ function requireToken () {
2214
1464
  if (hasRequiredToken) return Token;
2215
1465
  hasRequiredToken = 1;
2216
1466
  (function (exports$1) {
2217
- Object.defineProperty(exports$1, '__esModule', { value: true });
1467
+ Object.defineProperty(exports$1, "__esModule", { value: true });
2218
1468
  var AllocationInstructionV1 = requireAllocationInstructionV1();
2219
1469
  exports$1.AllocationInstructionV1 = AllocationInstructionV1;
2220
1470
  var AllocationRequestV1 = requireAllocationRequestV1();
@@ -2237,7 +1487,7 @@ function requireApi () {
2237
1487
  if (hasRequiredApi) return Api;
2238
1488
  hasRequiredApi = 1;
2239
1489
  (function (exports$1) {
2240
- Object.defineProperty(exports$1, '__esModule', { value: true });
1490
+ Object.defineProperty(exports$1, "__esModule", { value: true });
2241
1491
  var Token = requireToken();
2242
1492
  exports$1.Token = Token;
2243
1493
  } (Api));
@@ -2250,7 +1500,7 @@ function requireSplice () {
2250
1500
  if (hasRequiredSplice) return Splice;
2251
1501
  hasRequiredSplice = 1;
2252
1502
  (function (exports$1) {
2253
- Object.defineProperty(exports$1, '__esModule', { value: true });
1503
+ Object.defineProperty(exports$1, "__esModule", { value: true });
2254
1504
  var Api = requireApi();
2255
1505
  exports$1.Api = Api;
2256
1506
  } (Splice));
@@ -2263,11 +1513,10 @@ function requireLib () {
2263
1513
  if (hasRequiredLib) return lib$2;
2264
1514
  hasRequiredLib = 1;
2265
1515
  (function (exports$1) {
2266
- Object.defineProperty(exports$1, '__esModule', { value: true });
1516
+ Object.defineProperty(exports$1, "__esModule", { value: true });
2267
1517
  var Splice = requireSplice();
2268
1518
  exports$1.Splice = Splice;
2269
- exports$1.packageId =
2270
- '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d';
1519
+ exports$1.packageId = '3c373f302ebb5531459ceca3b6f0409365d119767ffe2026a04e6bd750dae10d';
2271
1520
  } (lib$2));
2272
1521
  return lib$2;
2273
1522
  }