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