@canton-network/core-token-standard 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.js +1387 -906
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1386 -903
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +503 -612
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1387 -906
- package/dist/index.js.map +1 -1
- package/dist/interface-ids.const.d.ts.map +1 -1
- package/dist/models/Splice/Api/Token/index.d.ts +8 -0
- package/dist/models/Splice/Api/Token/index.d.ts.map +1 -0
- package/dist/models/Splice/Api/index.d.ts +3 -0
- package/dist/models/Splice/Api/index.d.ts.map +1 -0
- package/dist/models/Splice/index.d.ts +3 -0
- package/dist/models/Splice/index.d.ts.map +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/types.d.ts +10 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -2,6 +2,21 @@ import createClient from 'openapi-fetch';
|
|
|
2
2
|
import * as jsonTypeValidation from '@mojotech/json-type-validation';
|
|
3
3
|
import * as lodash from 'lodash';
|
|
4
4
|
|
|
5
|
+
function _mergeNamespaces(n, m) {
|
|
6
|
+
m.forEach(function (e) {
|
|
7
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !(k in n)) {
|
|
9
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return e[k]; }
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
return Object.freeze(n);
|
|
18
|
+
}
|
|
19
|
+
|
|
5
20
|
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
6
21
|
// SPDX-License-Identifier: Apache-2.0
|
|
7
22
|
class TokenStandardClient {
|
|
@@ -56,6 +71,7 @@ class TokenStandardClient {
|
|
|
56
71
|
|
|
57
72
|
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
58
73
|
// SPDX-License-Identifier: Apache-2.0
|
|
74
|
+
// `satisfies` keeps the widening literal type of the public declarations
|
|
59
75
|
const ALLOCATION_FACTORY_INTERFACE_ID = '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory';
|
|
60
76
|
const ALLOCATION_INSTRUCTION_INTERFACE_ID = '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction';
|
|
61
77
|
const ALLOCATION_REQUEST_INTERFACE_ID = '#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest';
|
|
@@ -71,6 +87,10 @@ const MERGE_DELEGATION_BATCH_MERGE_UTILITY = '#splice-util-token-standard-wallet
|
|
|
71
87
|
|
|
72
88
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
73
89
|
|
|
90
|
+
function getDefaultExportFromCjs (x) {
|
|
91
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
92
|
+
}
|
|
93
|
+
|
|
74
94
|
function getAugmentedNamespace(n) {
|
|
75
95
|
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
76
96
|
var f = n.default;
|
|
@@ -100,17 +120,7 @@ function getAugmentedNamespace(n) {
|
|
|
100
120
|
return a;
|
|
101
121
|
}
|
|
102
122
|
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
var Splice = {};
|
|
106
|
-
|
|
107
|
-
var Api = {};
|
|
108
|
-
|
|
109
|
-
var Token = {};
|
|
110
|
-
|
|
111
|
-
var AllocationInstructionV1$1 = {};
|
|
112
|
-
|
|
113
|
-
var module$8 = {};
|
|
123
|
+
var module$k = {};
|
|
114
124
|
|
|
115
125
|
var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(jsonTypeValidation);
|
|
116
126
|
|
|
@@ -2871,7 +2881,7 @@ function requireTypes$1 () {
|
|
|
2871
2881
|
exports.assembleInterface = assembleInterface;
|
|
2872
2882
|
exports.memo = memo;
|
|
2873
2883
|
exports.lazyMemo = lazyMemo;
|
|
2874
|
-
// Copyright (c)
|
|
2884
|
+
// Copyright (c) 2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2875
2885
|
// SPDX-License-Identifier: Apache-2.0
|
|
2876
2886
|
var jtv = __importStar(require$$0);
|
|
2877
2887
|
var lodash_1 = __importDefault(require$$1);
|
|
@@ -2895,7 +2905,7 @@ function requireTypes$1 () {
|
|
|
2895
2905
|
* @internal
|
|
2896
2906
|
*/
|
|
2897
2907
|
function assembleInterface(templateId, templatIdWithPackageId, decoderSource, choices) {
|
|
2898
|
-
return __assign({ templateId: templateId, templateIdWithPackageId: templatIdWithPackageId, componentVersionString: "3.
|
|
2908
|
+
return __assign({ templateId: templateId, templateIdWithPackageId: templatIdWithPackageId, componentVersionString: "3.6.2",
|
|
2899
2909
|
// `Interface<I> &` is a phantom intersection
|
|
2900
2910
|
decoder: lazyMemo(function () { return decoderSource().decoder; }), keyDecoder: jtv.succeed(undefined) }, choices);
|
|
2901
2911
|
}
|
|
@@ -3219,7 +3229,19 @@ function requireTypes$1 () {
|
|
|
3219
3229
|
return types;
|
|
3220
3230
|
}
|
|
3221
3231
|
|
|
3222
|
-
var lib$
|
|
3232
|
+
var lib$4 = {};
|
|
3233
|
+
|
|
3234
|
+
var Splice$2 = {};
|
|
3235
|
+
|
|
3236
|
+
var Api$2 = {};
|
|
3237
|
+
|
|
3238
|
+
var Token$2 = {};
|
|
3239
|
+
|
|
3240
|
+
var MetadataV1$1 = {};
|
|
3241
|
+
|
|
3242
|
+
var module$j = {};
|
|
3243
|
+
|
|
3244
|
+
var lib$3 = {};
|
|
3223
3245
|
|
|
3224
3246
|
var DA$1 = {};
|
|
3225
3247
|
|
|
@@ -3227,31 +3249,32 @@ var Internal = {};
|
|
|
3227
3249
|
|
|
3228
3250
|
var Template = {};
|
|
3229
3251
|
|
|
3230
|
-
var module$
|
|
3252
|
+
var module$i = {};
|
|
3231
3253
|
|
|
3232
3254
|
var hasRequiredModule$7;
|
|
3233
3255
|
|
|
3234
3256
|
function requireModule$7 () {
|
|
3235
|
-
if (hasRequiredModule$7) return module$
|
|
3257
|
+
if (hasRequiredModule$7) return module$i;
|
|
3236
3258
|
hasRequiredModule$7 = 1;
|
|
3237
3259
|
(function (exports) {
|
|
3238
3260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3261
|
+
|
|
3239
3262
|
/* eslint-disable-next-line no-unused-vars */
|
|
3240
3263
|
var jtv = require$$0$1;
|
|
3241
3264
|
/* eslint-disable-next-line no-unused-vars */
|
|
3242
3265
|
var damlTypes = requireTypes$1();
|
|
3243
3266
|
|
|
3244
|
-
|
|
3245
3267
|
exports.Archive = {
|
|
3246
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3268
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3269
|
+
return jtv.object({
|
|
3270
|
+
});
|
|
3271
|
+
}),
|
|
3247
3272
|
encode: function (__typed__) {
|
|
3248
|
-
|
|
3249
|
-
}
|
|
3250
|
-
}
|
|
3251
|
-
,
|
|
3273
|
+
return {};
|
|
3274
|
+
},
|
|
3252
3275
|
};
|
|
3253
|
-
} (module$
|
|
3254
|
-
return module$
|
|
3276
|
+
} (module$i));
|
|
3277
|
+
return module$i;
|
|
3255
3278
|
}
|
|
3256
3279
|
|
|
3257
3280
|
var hasRequiredTemplate;
|
|
@@ -3266,6 +3289,7 @@ function requireTemplate () {
|
|
|
3266
3289
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
3267
3290
|
}
|
|
3268
3291
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3292
|
+
|
|
3269
3293
|
__export(requireModule$7());
|
|
3270
3294
|
} (Template));
|
|
3271
3295
|
return Template;
|
|
@@ -3278,7 +3302,9 @@ function requireInternal () {
|
|
|
3278
3302
|
hasRequiredInternal = 1;
|
|
3279
3303
|
(function (exports) {
|
|
3280
3304
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3305
|
+
|
|
3281
3306
|
var Template = requireTemplate();
|
|
3307
|
+
|
|
3282
3308
|
exports.Template = Template;
|
|
3283
3309
|
} (Internal));
|
|
3284
3310
|
return Internal;
|
|
@@ -3291,31 +3317,32 @@ function requireDA$1 () {
|
|
|
3291
3317
|
hasRequiredDA$1 = 1;
|
|
3292
3318
|
(function (exports) {
|
|
3293
3319
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3320
|
+
|
|
3294
3321
|
var Internal = requireInternal();
|
|
3322
|
+
|
|
3295
3323
|
exports.Internal = Internal;
|
|
3296
3324
|
} (DA$1));
|
|
3297
3325
|
return DA$1;
|
|
3298
3326
|
}
|
|
3299
3327
|
|
|
3300
|
-
var hasRequiredLib$
|
|
3328
|
+
var hasRequiredLib$4;
|
|
3301
3329
|
|
|
3302
|
-
function requireLib$
|
|
3303
|
-
if (hasRequiredLib$
|
|
3304
|
-
hasRequiredLib$
|
|
3330
|
+
function requireLib$4 () {
|
|
3331
|
+
if (hasRequiredLib$4) return lib$3;
|
|
3332
|
+
hasRequiredLib$4 = 1;
|
|
3305
3333
|
(function (exports) {
|
|
3306
3334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3335
|
+
|
|
3307
3336
|
var DA = requireDA$1();
|
|
3337
|
+
|
|
3308
3338
|
exports.DA = DA;
|
|
3339
|
+
|
|
3309
3340
|
exports.packageId = '9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69';
|
|
3310
|
-
} (lib$
|
|
3311
|
-
return lib$
|
|
3341
|
+
} (lib$3));
|
|
3342
|
+
return lib$3;
|
|
3312
3343
|
}
|
|
3313
3344
|
|
|
3314
|
-
var
|
|
3315
|
-
|
|
3316
|
-
var module$5 = {};
|
|
3317
|
-
|
|
3318
|
-
var lib = {};
|
|
3345
|
+
var lib$2 = {};
|
|
3319
3346
|
|
|
3320
3347
|
var DA = {};
|
|
3321
3348
|
|
|
@@ -3323,32 +3350,35 @@ var Time = {};
|
|
|
3323
3350
|
|
|
3324
3351
|
var Types = {};
|
|
3325
3352
|
|
|
3326
|
-
var module$
|
|
3353
|
+
var module$h = {};
|
|
3327
3354
|
|
|
3328
3355
|
var hasRequiredModule$6;
|
|
3329
3356
|
|
|
3330
3357
|
function requireModule$6 () {
|
|
3331
|
-
if (hasRequiredModule$6) return module$
|
|
3358
|
+
if (hasRequiredModule$6) return module$h;
|
|
3332
3359
|
hasRequiredModule$6 = 1;
|
|
3333
3360
|
(function (exports) {
|
|
3334
3361
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3362
|
+
|
|
3335
3363
|
/* eslint-disable-next-line no-unused-vars */
|
|
3336
3364
|
var jtv = require$$0$1;
|
|
3337
3365
|
/* eslint-disable-next-line no-unused-vars */
|
|
3338
3366
|
var damlTypes = requireTypes$1();
|
|
3339
3367
|
|
|
3340
|
-
|
|
3341
3368
|
exports.RelTime = {
|
|
3342
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3369
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3370
|
+
return jtv.object({
|
|
3371
|
+
microseconds: damlTypes.Int.decoder,
|
|
3372
|
+
});
|
|
3373
|
+
}),
|
|
3343
3374
|
encode: function (__typed__) {
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
,
|
|
3375
|
+
return {
|
|
3376
|
+
microseconds: damlTypes.Int.encode(__typed__.microseconds),
|
|
3377
|
+
};
|
|
3378
|
+
},
|
|
3349
3379
|
};
|
|
3350
|
-
} (module$
|
|
3351
|
-
return module$
|
|
3380
|
+
} (module$h));
|
|
3381
|
+
return module$h;
|
|
3352
3382
|
}
|
|
3353
3383
|
|
|
3354
3384
|
var hasRequiredTypes;
|
|
@@ -3363,6 +3393,7 @@ function requireTypes () {
|
|
|
3363
3393
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
3364
3394
|
}
|
|
3365
3395
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3396
|
+
|
|
3366
3397
|
__export(requireModule$6());
|
|
3367
3398
|
} (Types));
|
|
3368
3399
|
return Types;
|
|
@@ -3375,7 +3406,9 @@ function requireTime () {
|
|
|
3375
3406
|
hasRequiredTime = 1;
|
|
3376
3407
|
(function (exports) {
|
|
3377
3408
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3409
|
+
|
|
3378
3410
|
var Types = requireTypes();
|
|
3411
|
+
|
|
3379
3412
|
exports.Types = Types;
|
|
3380
3413
|
} (Time));
|
|
3381
3414
|
return Time;
|
|
@@ -3388,1234 +3421,1682 @@ function requireDA () {
|
|
|
3388
3421
|
hasRequiredDA = 1;
|
|
3389
3422
|
(function (exports) {
|
|
3390
3423
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3424
|
+
|
|
3391
3425
|
var Time = requireTime();
|
|
3426
|
+
|
|
3392
3427
|
exports.Time = Time;
|
|
3393
3428
|
} (DA));
|
|
3394
3429
|
return DA;
|
|
3395
3430
|
}
|
|
3396
3431
|
|
|
3397
|
-
var hasRequiredLib$
|
|
3432
|
+
var hasRequiredLib$3;
|
|
3398
3433
|
|
|
3399
|
-
function requireLib$
|
|
3400
|
-
if (hasRequiredLib$
|
|
3401
|
-
hasRequiredLib$
|
|
3434
|
+
function requireLib$3 () {
|
|
3435
|
+
if (hasRequiredLib$3) return lib$2;
|
|
3436
|
+
hasRequiredLib$3 = 1;
|
|
3402
3437
|
(function (exports) {
|
|
3403
3438
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3439
|
+
|
|
3404
3440
|
var DA = requireDA();
|
|
3441
|
+
|
|
3405
3442
|
exports.DA = DA;
|
|
3443
|
+
|
|
3406
3444
|
exports.packageId = 'b70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946';
|
|
3407
|
-
} (lib));
|
|
3408
|
-
return lib;
|
|
3445
|
+
} (lib$2));
|
|
3446
|
+
return lib$2;
|
|
3409
3447
|
}
|
|
3410
3448
|
|
|
3411
|
-
var module$3 = {};
|
|
3412
|
-
|
|
3413
3449
|
var hasRequiredModule$5;
|
|
3414
3450
|
|
|
3415
3451
|
function requireModule$5 () {
|
|
3416
|
-
if (hasRequiredModule$5) return module$
|
|
3452
|
+
if (hasRequiredModule$5) return module$j;
|
|
3417
3453
|
hasRequiredModule$5 = 1;
|
|
3418
3454
|
(function (exports) {
|
|
3419
3455
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3456
|
+
|
|
3420
3457
|
/* eslint-disable-next-line no-unused-vars */
|
|
3421
3458
|
var jtv = require$$0$1;
|
|
3422
3459
|
/* eslint-disable-next-line no-unused-vars */
|
|
3423
3460
|
var damlTypes = requireTypes$1();
|
|
3424
3461
|
|
|
3425
|
-
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$
|
|
3426
|
-
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = requireLib$
|
|
3462
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$4();
|
|
3463
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = requireLib$3();
|
|
3427
3464
|
|
|
3428
3465
|
exports.AnyContract = damlTypes.assembleInterface(
|
|
3429
|
-
'#token-
|
|
3430
|
-
'
|
|
3466
|
+
'#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract',
|
|
3467
|
+
'#4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f:Splice.Api.Token.MetadataV1:AnyContract',
|
|
3431
3468
|
function () { return exports.AnyContractView; },
|
|
3432
3469
|
{
|
|
3433
3470
|
Archive: {
|
|
3434
3471
|
template: function () { return exports.AnyContract; },
|
|
3435
3472
|
choiceName: 'Archive',
|
|
3436
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3473
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3474
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
3475
|
+
}),
|
|
3437
3476
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
3438
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3477
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3478
|
+
return damlTypes.Unit.decoder;
|
|
3479
|
+
}),
|
|
3439
3480
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
3440
3481
|
},
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3482
|
+
}
|
|
3483
|
+
);
|
|
3443
3484
|
|
|
3485
|
+
exports.AnyContractView = {
|
|
3486
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3487
|
+
return jtv.object({
|
|
3488
|
+
});
|
|
3489
|
+
}),
|
|
3490
|
+
encode: function (__typed__) {
|
|
3491
|
+
return {};
|
|
3492
|
+
},
|
|
3493
|
+
};
|
|
3444
3494
|
|
|
3445
|
-
exports.
|
|
3446
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3495
|
+
exports.AnyValue = {
|
|
3496
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3497
|
+
return jtv.oneOf(
|
|
3498
|
+
jtv.object({
|
|
3499
|
+
tag: jtv.constant("AV_Text"),
|
|
3500
|
+
value: damlTypes.Text.decoder,
|
|
3501
|
+
}),
|
|
3502
|
+
jtv.object({
|
|
3503
|
+
tag: jtv.constant("AV_Int"),
|
|
3504
|
+
value: damlTypes.Int.decoder,
|
|
3505
|
+
}),
|
|
3506
|
+
jtv.object({
|
|
3507
|
+
tag: jtv.constant("AV_Decimal"),
|
|
3508
|
+
value: damlTypes.Numeric(10).decoder,
|
|
3509
|
+
}),
|
|
3510
|
+
jtv.object({
|
|
3511
|
+
tag: jtv.constant("AV_Bool"),
|
|
3512
|
+
value: damlTypes.Bool.decoder,
|
|
3513
|
+
}),
|
|
3514
|
+
jtv.object({
|
|
3515
|
+
tag: jtv.constant("AV_Date"),
|
|
3516
|
+
value: damlTypes.Date.decoder,
|
|
3517
|
+
}),
|
|
3518
|
+
jtv.object({
|
|
3519
|
+
tag: jtv.constant("AV_Time"),
|
|
3520
|
+
value: damlTypes.Time.decoder,
|
|
3521
|
+
}),
|
|
3522
|
+
jtv.object({
|
|
3523
|
+
tag: jtv.constant("AV_RelTime"),
|
|
3524
|
+
value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder,
|
|
3525
|
+
}),
|
|
3526
|
+
jtv.object({
|
|
3527
|
+
tag: jtv.constant("AV_Party"),
|
|
3528
|
+
value: damlTypes.Party.decoder,
|
|
3529
|
+
}),
|
|
3530
|
+
jtv.object({
|
|
3531
|
+
tag: jtv.constant("AV_ContractId"),
|
|
3532
|
+
value: damlTypes.ContractId(exports.AnyContract).decoder,
|
|
3533
|
+
}),
|
|
3534
|
+
jtv.object({
|
|
3535
|
+
tag: jtv.constant("AV_List"),
|
|
3536
|
+
value: damlTypes.List(exports.AnyValue).decoder,
|
|
3537
|
+
}),
|
|
3538
|
+
jtv.object({
|
|
3539
|
+
tag: jtv.constant("AV_Map"),
|
|
3540
|
+
value: damlTypes.TextMap(exports.AnyValue).decoder,
|
|
3541
|
+
}),
|
|
3542
|
+
);
|
|
3543
|
+
}),
|
|
3447
3544
|
encode: function (__typed__) {
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3545
|
+
switch(__typed__.tag) {
|
|
3546
|
+
case 'AV_Text': return {tag: __typed__.tag, value: damlTypes.Text.encode(__typed__.value)};
|
|
3547
|
+
case 'AV_Int': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
|
|
3548
|
+
case 'AV_Decimal': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
3549
|
+
case 'AV_Bool': return {tag: __typed__.tag, value: damlTypes.Bool.encode(__typed__.value)};
|
|
3550
|
+
case 'AV_Date': return {tag: __typed__.tag, value: damlTypes.Date.encode(__typed__.value)};
|
|
3551
|
+
case 'AV_Time': return {tag: __typed__.tag, value: damlTypes.Time.encode(__typed__.value)};
|
|
3552
|
+
case 'AV_RelTime': return {tag: __typed__.tag, value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.value)};
|
|
3553
|
+
case 'AV_Party': return {tag: __typed__.tag, value: damlTypes.Party.encode(__typed__.value)};
|
|
3554
|
+
case 'AV_ContractId': return {tag: __typed__.tag, value: damlTypes.ContractId(exports.AnyContract).encode(__typed__.value)};
|
|
3555
|
+
case 'AV_List': return {tag: __typed__.tag, value: damlTypes.List(exports.AnyValue).encode(__typed__.value)};
|
|
3556
|
+
case 'AV_Map': return {tag: __typed__.tag, value: damlTypes.TextMap(exports.AnyValue).encode(__typed__.value)};
|
|
3557
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AnyValue';
|
|
3558
|
+
}
|
|
3559
|
+
},
|
|
3453
3560
|
};
|
|
3454
3561
|
|
|
3562
|
+
exports.ChoiceContext = {
|
|
3563
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3564
|
+
return jtv.object({
|
|
3565
|
+
values: damlTypes.TextMap(exports.AnyValue).decoder,
|
|
3566
|
+
});
|
|
3567
|
+
}),
|
|
3568
|
+
encode: function (__typed__) {
|
|
3569
|
+
return {
|
|
3570
|
+
values: damlTypes.TextMap(exports.AnyValue).encode(__typed__.values),
|
|
3571
|
+
};
|
|
3572
|
+
},
|
|
3573
|
+
};
|
|
3455
3574
|
|
|
3575
|
+
exports.ChoiceExecutionMetadata = {
|
|
3576
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3577
|
+
return jtv.object({
|
|
3578
|
+
meta: exports.Metadata.decoder,
|
|
3579
|
+
});
|
|
3580
|
+
}),
|
|
3581
|
+
encode: function (__typed__) {
|
|
3582
|
+
return {
|
|
3583
|
+
meta: exports.Metadata.encode(__typed__.meta),
|
|
3584
|
+
};
|
|
3585
|
+
},
|
|
3586
|
+
};
|
|
3456
3587
|
|
|
3457
3588
|
exports.ExtraArgs = {
|
|
3458
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3589
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3590
|
+
return jtv.object({
|
|
3591
|
+
context: exports.ChoiceContext.decoder,
|
|
3592
|
+
meta: exports.Metadata.decoder,
|
|
3593
|
+
});
|
|
3594
|
+
}),
|
|
3459
3595
|
encode: function (__typed__) {
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
,
|
|
3596
|
+
return {
|
|
3597
|
+
context: exports.ChoiceContext.encode(__typed__.context),
|
|
3598
|
+
meta: exports.Metadata.encode(__typed__.meta),
|
|
3599
|
+
};
|
|
3600
|
+
},
|
|
3466
3601
|
};
|
|
3467
3602
|
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
3603
|
exports.Metadata = {
|
|
3471
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3604
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3605
|
+
return jtv.object({
|
|
3606
|
+
values: damlTypes.TextMap(damlTypes.Text).decoder,
|
|
3607
|
+
});
|
|
3608
|
+
}),
|
|
3472
3609
|
encode: function (__typed__) {
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3610
|
+
return {
|
|
3611
|
+
values: damlTypes.TextMap(damlTypes.Text).encode(__typed__.values),
|
|
3612
|
+
};
|
|
3613
|
+
},
|
|
3614
|
+
};
|
|
3615
|
+
} (module$j));
|
|
3616
|
+
return module$j;
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
var hasRequiredMetadataV1;
|
|
3620
|
+
|
|
3621
|
+
function requireMetadataV1 () {
|
|
3622
|
+
if (hasRequiredMetadataV1) return MetadataV1$1;
|
|
3623
|
+
hasRequiredMetadataV1 = 1;
|
|
3624
|
+
(function (exports) {
|
|
3625
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3626
|
+
function __export(m) {
|
|
3627
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
3628
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
3476
3629
|
}
|
|
3477
|
-
,
|
|
3478
|
-
};
|
|
3630
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3479
3631
|
|
|
3632
|
+
__export(requireModule$5());
|
|
3633
|
+
} (MetadataV1$1));
|
|
3634
|
+
return MetadataV1$1;
|
|
3635
|
+
}
|
|
3480
3636
|
|
|
3637
|
+
var hasRequiredToken$2;
|
|
3481
3638
|
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
};
|
|
3488
|
-
}
|
|
3489
|
-
,
|
|
3490
|
-
};
|
|
3639
|
+
function requireToken$2 () {
|
|
3640
|
+
if (hasRequiredToken$2) return Token$2;
|
|
3641
|
+
hasRequiredToken$2 = 1;
|
|
3642
|
+
(function (exports) {
|
|
3643
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3491
3644
|
|
|
3645
|
+
var MetadataV1 = requireMetadataV1();
|
|
3492
3646
|
|
|
3647
|
+
exports.MetadataV1 = MetadataV1;
|
|
3648
|
+
} (Token$2));
|
|
3649
|
+
return Token$2;
|
|
3650
|
+
}
|
|
3493
3651
|
|
|
3494
|
-
|
|
3495
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
3496
|
-
encode: function (__typed__) {
|
|
3497
|
-
return {
|
|
3498
|
-
};
|
|
3499
|
-
}
|
|
3500
|
-
,
|
|
3501
|
-
};
|
|
3652
|
+
var hasRequiredApi$2;
|
|
3502
3653
|
|
|
3654
|
+
function requireApi$2 () {
|
|
3655
|
+
if (hasRequiredApi$2) return Api$2;
|
|
3656
|
+
hasRequiredApi$2 = 1;
|
|
3657
|
+
(function (exports) {
|
|
3658
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3503
3659
|
|
|
3660
|
+
var Token = requireToken$2();
|
|
3504
3661
|
|
|
3505
|
-
exports.
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3662
|
+
exports.Token = Token;
|
|
3663
|
+
} (Api$2));
|
|
3664
|
+
return Api$2;
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
var hasRequiredSplice$2;
|
|
3668
|
+
|
|
3669
|
+
function requireSplice$2 () {
|
|
3670
|
+
if (hasRequiredSplice$2) return Splice$2;
|
|
3671
|
+
hasRequiredSplice$2 = 1;
|
|
3672
|
+
(function (exports) {
|
|
3673
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3674
|
+
|
|
3675
|
+
var Api = requireApi$2();
|
|
3676
|
+
|
|
3677
|
+
exports.Api = Api;
|
|
3678
|
+
} (Splice$2));
|
|
3679
|
+
return Splice$2;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
var hasRequiredLib$2;
|
|
3683
|
+
|
|
3684
|
+
function requireLib$2 () {
|
|
3685
|
+
if (hasRequiredLib$2) return lib$4;
|
|
3686
|
+
hasRequiredLib$2 = 1;
|
|
3687
|
+
(function (exports) {
|
|
3688
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3689
|
+
|
|
3690
|
+
var Splice = requireSplice$2();
|
|
3691
|
+
|
|
3692
|
+
exports.Splice = Splice;
|
|
3693
|
+
|
|
3694
|
+
exports.packageId = '4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f';
|
|
3695
|
+
} (lib$4));
|
|
3696
|
+
return lib$4;
|
|
3527
3697
|
}
|
|
3528
3698
|
|
|
3699
|
+
var lib$1 = {};
|
|
3700
|
+
|
|
3701
|
+
var Splice$1 = {};
|
|
3702
|
+
|
|
3703
|
+
var Api$1 = {};
|
|
3704
|
+
|
|
3705
|
+
var Token$1 = {};
|
|
3706
|
+
|
|
3707
|
+
var HoldingV1$1 = {};
|
|
3708
|
+
|
|
3709
|
+
var module$g = {};
|
|
3710
|
+
|
|
3529
3711
|
var hasRequiredModule$4;
|
|
3530
3712
|
|
|
3531
3713
|
function requireModule$4 () {
|
|
3532
|
-
if (hasRequiredModule$4) return module$
|
|
3714
|
+
if (hasRequiredModule$4) return module$g;
|
|
3533
3715
|
hasRequiredModule$4 = 1;
|
|
3534
3716
|
(function (exports) {
|
|
3535
3717
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3718
|
+
|
|
3536
3719
|
/* eslint-disable-next-line no-unused-vars */
|
|
3537
3720
|
var jtv = require$$0$1;
|
|
3538
3721
|
/* eslint-disable-next-line no-unused-vars */
|
|
3539
3722
|
var damlTypes = requireTypes$1();
|
|
3540
3723
|
|
|
3541
|
-
var
|
|
3542
|
-
var
|
|
3543
|
-
|
|
3544
|
-
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
3724
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = requireLib$2();
|
|
3725
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$4();
|
|
3726
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = requireLib$3();
|
|
3545
3727
|
|
|
3546
3728
|
exports.Holding = damlTypes.assembleInterface(
|
|
3547
|
-
'#token-
|
|
3548
|
-
'
|
|
3729
|
+
'#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding',
|
|
3730
|
+
'#718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b:Splice.Api.Token.HoldingV1:Holding',
|
|
3549
3731
|
function () { return exports.HoldingView; },
|
|
3550
3732
|
{
|
|
3551
3733
|
Archive: {
|
|
3552
3734
|
template: function () { return exports.Holding; },
|
|
3553
3735
|
choiceName: 'Archive',
|
|
3554
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3736
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3737
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
3738
|
+
}),
|
|
3555
3739
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
3556
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3740
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3741
|
+
return damlTypes.Unit.decoder;
|
|
3742
|
+
}),
|
|
3557
3743
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
3558
3744
|
},
|
|
3559
|
-
}
|
|
3560
|
-
|
|
3561
|
-
|
|
3745
|
+
}
|
|
3746
|
+
);
|
|
3562
3747
|
|
|
3563
3748
|
exports.HoldingView = {
|
|
3564
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3749
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3750
|
+
return jtv.object({
|
|
3751
|
+
owner: damlTypes.Party.decoder,
|
|
3752
|
+
instrumentId: exports.InstrumentId.decoder,
|
|
3753
|
+
amount: damlTypes.Numeric(10).decoder,
|
|
3754
|
+
lock: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.Lock).decoder),
|
|
3755
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
3756
|
+
});
|
|
3757
|
+
}),
|
|
3565
3758
|
encode: function (__typed__) {
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
,
|
|
3759
|
+
return {
|
|
3760
|
+
owner: damlTypes.Party.encode(__typed__.owner),
|
|
3761
|
+
instrumentId: exports.InstrumentId.encode(__typed__.instrumentId),
|
|
3762
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
3763
|
+
lock: damlTypes.Optional(exports.Lock).encode(__typed__.lock),
|
|
3764
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
3765
|
+
};
|
|
3766
|
+
},
|
|
3575
3767
|
};
|
|
3576
3768
|
|
|
3577
|
-
|
|
3769
|
+
exports.InstrumentId = {
|
|
3770
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3771
|
+
return jtv.object({
|
|
3772
|
+
admin: damlTypes.Party.decoder,
|
|
3773
|
+
id: damlTypes.Text.decoder,
|
|
3774
|
+
});
|
|
3775
|
+
}),
|
|
3776
|
+
encode: function (__typed__) {
|
|
3777
|
+
return {
|
|
3778
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
3779
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
3780
|
+
};
|
|
3781
|
+
},
|
|
3782
|
+
};
|
|
3578
3783
|
|
|
3579
3784
|
exports.Lock = {
|
|
3580
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3785
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3786
|
+
return jtv.object({
|
|
3787
|
+
holders: damlTypes.List(damlTypes.Party).decoder,
|
|
3788
|
+
expiresAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder),
|
|
3789
|
+
expiresAfter: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder),
|
|
3790
|
+
context: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder),
|
|
3791
|
+
});
|
|
3792
|
+
}),
|
|
3581
3793
|
encode: function (__typed__) {
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3794
|
+
return {
|
|
3795
|
+
holders: damlTypes.List(damlTypes.Party).encode(__typed__.holders),
|
|
3796
|
+
expiresAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.expiresAt),
|
|
3797
|
+
expiresAfter: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.expiresAfter),
|
|
3798
|
+
context: damlTypes.Optional(damlTypes.Text).encode(__typed__.context),
|
|
3799
|
+
};
|
|
3800
|
+
},
|
|
3801
|
+
};
|
|
3802
|
+
} (module$g));
|
|
3803
|
+
return module$g;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
var hasRequiredHoldingV1;
|
|
3807
|
+
|
|
3808
|
+
function requireHoldingV1 () {
|
|
3809
|
+
if (hasRequiredHoldingV1) return HoldingV1$1;
|
|
3810
|
+
hasRequiredHoldingV1 = 1;
|
|
3811
|
+
(function (exports) {
|
|
3812
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3813
|
+
function __export(m) {
|
|
3814
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
3815
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
3588
3816
|
}
|
|
3589
|
-
,
|
|
3590
|
-
};
|
|
3817
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3591
3818
|
|
|
3819
|
+
__export(requireModule$4());
|
|
3820
|
+
} (HoldingV1$1));
|
|
3821
|
+
return HoldingV1$1;
|
|
3822
|
+
}
|
|
3592
3823
|
|
|
3824
|
+
var hasRequiredToken$1;
|
|
3593
3825
|
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
return module$5;
|
|
3826
|
+
function requireToken$1 () {
|
|
3827
|
+
if (hasRequiredToken$1) return Token$1;
|
|
3828
|
+
hasRequiredToken$1 = 1;
|
|
3829
|
+
(function (exports) {
|
|
3830
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3831
|
+
|
|
3832
|
+
var HoldingV1 = requireHoldingV1();
|
|
3833
|
+
|
|
3834
|
+
exports.HoldingV1 = HoldingV1;
|
|
3835
|
+
} (Token$1));
|
|
3836
|
+
return Token$1;
|
|
3606
3837
|
}
|
|
3607
3838
|
|
|
3608
|
-
var
|
|
3839
|
+
var hasRequiredApi$1;
|
|
3609
3840
|
|
|
3610
|
-
function
|
|
3611
|
-
if (
|
|
3612
|
-
|
|
3841
|
+
function requireApi$1 () {
|
|
3842
|
+
if (hasRequiredApi$1) return Api$1;
|
|
3843
|
+
hasRequiredApi$1 = 1;
|
|
3613
3844
|
(function (exports) {
|
|
3614
3845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3615
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
3616
|
-
var jtv = require$$0$1;
|
|
3617
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
3618
|
-
var damlTypes = requireTypes$1();
|
|
3619
3846
|
|
|
3620
|
-
var
|
|
3847
|
+
var Token = requireToken$1();
|
|
3621
3848
|
|
|
3622
|
-
|
|
3623
|
-
|
|
3849
|
+
exports.Token = Token;
|
|
3850
|
+
} (Api$1));
|
|
3851
|
+
return Api$1;
|
|
3852
|
+
}
|
|
3624
3853
|
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3854
|
+
var hasRequiredSplice$1;
|
|
3855
|
+
|
|
3856
|
+
function requireSplice$1 () {
|
|
3857
|
+
if (hasRequiredSplice$1) return Splice$1;
|
|
3858
|
+
hasRequiredSplice$1 = 1;
|
|
3859
|
+
(function (exports) {
|
|
3860
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3861
|
+
|
|
3862
|
+
var Api = requireApi$1();
|
|
3863
|
+
|
|
3864
|
+
exports.Api = Api;
|
|
3865
|
+
} (Splice$1));
|
|
3866
|
+
return Splice$1;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
var hasRequiredLib$1;
|
|
3870
|
+
|
|
3871
|
+
function requireLib$1 () {
|
|
3872
|
+
if (hasRequiredLib$1) return lib$1;
|
|
3873
|
+
hasRequiredLib$1 = 1;
|
|
3874
|
+
(function (exports) {
|
|
3875
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3876
|
+
|
|
3877
|
+
var Splice = requireSplice$1();
|
|
3878
|
+
|
|
3879
|
+
exports.Splice = Splice;
|
|
3880
|
+
|
|
3881
|
+
exports.packageId = '718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b';
|
|
3882
|
+
} (lib$1));
|
|
3883
|
+
return lib$1;
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
var lib = {};
|
|
3887
|
+
|
|
3888
|
+
var Splice = {};
|
|
3889
|
+
|
|
3890
|
+
var Api = {};
|
|
3891
|
+
|
|
3892
|
+
var Token = {};
|
|
3893
|
+
|
|
3894
|
+
var AllocationV1$1 = {};
|
|
3895
|
+
|
|
3896
|
+
var module$f = {};
|
|
3897
|
+
|
|
3898
|
+
var hasRequiredModule$3;
|
|
3899
|
+
|
|
3900
|
+
function requireModule$3 () {
|
|
3901
|
+
if (hasRequiredModule$3) return module$f;
|
|
3902
|
+
hasRequiredModule$3 = 1;
|
|
3903
|
+
(function (exports) {
|
|
3904
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3905
|
+
|
|
3906
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3907
|
+
var jtv = require$$0$1;
|
|
3908
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3909
|
+
var damlTypes = requireTypes$1();
|
|
3910
|
+
|
|
3911
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = requireLib$2();
|
|
3912
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = requireLib$1();
|
|
3913
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$4();
|
|
3914
|
+
|
|
3915
|
+
exports.Allocation = damlTypes.assembleInterface(
|
|
3916
|
+
'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation',
|
|
3917
|
+
'#93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d:Splice.Api.Token.AllocationV1:Allocation',
|
|
3918
|
+
function () { return exports.AllocationView; },
|
|
3919
|
+
{
|
|
3646
3920
|
Allocation_Cancel: {
|
|
3647
3921
|
template: function () { return exports.Allocation; },
|
|
3648
3922
|
choiceName: 'Allocation_Cancel',
|
|
3649
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3923
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3924
|
+
return exports.Allocation_Cancel.decoder;
|
|
3925
|
+
}),
|
|
3650
3926
|
argumentEncode: function (__typed__) { return exports.Allocation_Cancel.encode(__typed__); },
|
|
3651
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3927
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3928
|
+
return exports.Allocation_CancelResult.decoder;
|
|
3929
|
+
}),
|
|
3652
3930
|
resultEncode: function (__typed__) { return exports.Allocation_CancelResult.encode(__typed__); },
|
|
3653
3931
|
},
|
|
3654
3932
|
Allocation_ExecuteTransfer: {
|
|
3655
3933
|
template: function () { return exports.Allocation; },
|
|
3656
3934
|
choiceName: 'Allocation_ExecuteTransfer',
|
|
3657
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3935
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3936
|
+
return exports.Allocation_ExecuteTransfer.decoder;
|
|
3937
|
+
}),
|
|
3658
3938
|
argumentEncode: function (__typed__) { return exports.Allocation_ExecuteTransfer.encode(__typed__); },
|
|
3659
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3939
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3940
|
+
return exports.Allocation_ExecuteTransferResult.decoder;
|
|
3941
|
+
}),
|
|
3660
3942
|
resultEncode: function (__typed__) { return exports.Allocation_ExecuteTransferResult.encode(__typed__); },
|
|
3661
3943
|
},
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3944
|
+
Allocation_Withdraw: {
|
|
3945
|
+
template: function () { return exports.Allocation; },
|
|
3946
|
+
choiceName: 'Allocation_Withdraw',
|
|
3947
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3948
|
+
return exports.Allocation_Withdraw.decoder;
|
|
3949
|
+
}),
|
|
3950
|
+
argumentEncode: function (__typed__) { return exports.Allocation_Withdraw.encode(__typed__); },
|
|
3951
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3952
|
+
return exports.Allocation_WithdrawResult.decoder;
|
|
3953
|
+
}),
|
|
3954
|
+
resultEncode: function (__typed__) { return exports.Allocation_WithdrawResult.encode(__typed__); },
|
|
3955
|
+
},
|
|
3956
|
+
Archive: {
|
|
3957
|
+
template: function () { return exports.Allocation; },
|
|
3958
|
+
choiceName: 'Archive',
|
|
3959
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3960
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
3961
|
+
}),
|
|
3962
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
3963
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
3964
|
+
return damlTypes.Unit.decoder;
|
|
3965
|
+
}),
|
|
3966
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
3967
|
+
},
|
|
3968
|
+
}
|
|
3969
|
+
);
|
|
3665
3970
|
|
|
3666
|
-
exports.
|
|
3667
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
3971
|
+
exports.AllocationSpecification = {
|
|
3972
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3973
|
+
return jtv.object({
|
|
3974
|
+
settlement: exports.SettlementInfo.decoder,
|
|
3975
|
+
transferLegId: damlTypes.Text.decoder,
|
|
3976
|
+
transferLeg: exports.TransferLeg.decoder,
|
|
3977
|
+
});
|
|
3978
|
+
}),
|
|
3668
3979
|
encode: function (__typed__) {
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3980
|
+
return {
|
|
3981
|
+
settlement: exports.SettlementInfo.encode(__typed__.settlement),
|
|
3982
|
+
transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
|
|
3983
|
+
transferLeg: exports.TransferLeg.encode(__typed__.transferLeg),
|
|
3984
|
+
};
|
|
3985
|
+
},
|
|
3675
3986
|
};
|
|
3676
3987
|
|
|
3988
|
+
exports.AllocationView = {
|
|
3989
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
3990
|
+
return jtv.object({
|
|
3991
|
+
allocation: exports.AllocationSpecification.decoder,
|
|
3992
|
+
holdingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
3993
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
3994
|
+
});
|
|
3995
|
+
}),
|
|
3996
|
+
encode: function (__typed__) {
|
|
3997
|
+
return {
|
|
3998
|
+
allocation: exports.AllocationSpecification.encode(__typed__.allocation),
|
|
3999
|
+
holdingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.holdingCids),
|
|
4000
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4001
|
+
};
|
|
4002
|
+
},
|
|
4003
|
+
};
|
|
3677
4004
|
|
|
4005
|
+
exports.Allocation_Cancel = {
|
|
4006
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4007
|
+
return jtv.object({
|
|
4008
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4009
|
+
});
|
|
4010
|
+
}),
|
|
4011
|
+
encode: function (__typed__) {
|
|
4012
|
+
return {
|
|
4013
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4014
|
+
};
|
|
4015
|
+
},
|
|
4016
|
+
};
|
|
3678
4017
|
|
|
3679
4018
|
exports.Allocation_CancelResult = {
|
|
3680
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4019
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4020
|
+
return jtv.object({
|
|
4021
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4022
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4023
|
+
});
|
|
4024
|
+
}),
|
|
3681
4025
|
encode: function (__typed__) {
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
,
|
|
4026
|
+
return {
|
|
4027
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderHoldingCids),
|
|
4028
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4029
|
+
};
|
|
4030
|
+
},
|
|
3688
4031
|
};
|
|
3689
4032
|
|
|
3690
|
-
|
|
4033
|
+
exports.Allocation_ExecuteTransfer = {
|
|
4034
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4035
|
+
return jtv.object({
|
|
4036
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4037
|
+
});
|
|
4038
|
+
}),
|
|
4039
|
+
encode: function (__typed__) {
|
|
4040
|
+
return {
|
|
4041
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4042
|
+
};
|
|
4043
|
+
},
|
|
4044
|
+
};
|
|
3691
4045
|
|
|
3692
4046
|
exports.Allocation_ExecuteTransferResult = {
|
|
3693
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4047
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4048
|
+
return jtv.object({
|
|
4049
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4050
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4051
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4052
|
+
});
|
|
4053
|
+
}),
|
|
3694
4054
|
encode: function (__typed__) {
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
,
|
|
4055
|
+
return {
|
|
4056
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderHoldingCids),
|
|
4057
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.receiverHoldingCids),
|
|
4058
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4059
|
+
};
|
|
4060
|
+
},
|
|
3702
4061
|
};
|
|
3703
4062
|
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
4063
|
exports.Allocation_Withdraw = {
|
|
3707
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4064
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4065
|
+
return jtv.object({
|
|
4066
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4067
|
+
});
|
|
4068
|
+
}),
|
|
3708
4069
|
encode: function (__typed__) {
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
,
|
|
4070
|
+
return {
|
|
4071
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4072
|
+
};
|
|
4073
|
+
},
|
|
3714
4074
|
};
|
|
3715
4075
|
|
|
4076
|
+
exports.Allocation_WithdrawResult = {
|
|
4077
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4078
|
+
return jtv.object({
|
|
4079
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4080
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4081
|
+
});
|
|
4082
|
+
}),
|
|
4083
|
+
encode: function (__typed__) {
|
|
4084
|
+
return {
|
|
4085
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderHoldingCids),
|
|
4086
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4087
|
+
};
|
|
4088
|
+
},
|
|
4089
|
+
};
|
|
3716
4090
|
|
|
4091
|
+
exports.Reference = {
|
|
4092
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4093
|
+
return jtv.object({
|
|
4094
|
+
id: damlTypes.Text.decoder,
|
|
4095
|
+
cid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.AnyContract)).decoder),
|
|
4096
|
+
});
|
|
4097
|
+
}),
|
|
4098
|
+
encode: function (__typed__) {
|
|
4099
|
+
return {
|
|
4100
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
4101
|
+
cid: damlTypes.Optional(damlTypes.ContractId(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.AnyContract)).encode(__typed__.cid),
|
|
4102
|
+
};
|
|
4103
|
+
},
|
|
4104
|
+
};
|
|
3717
4105
|
|
|
3718
|
-
exports.
|
|
3719
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4106
|
+
exports.SettlementInfo = {
|
|
4107
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4108
|
+
return jtv.object({
|
|
4109
|
+
executor: damlTypes.Party.decoder,
|
|
4110
|
+
settlementRef: exports.Reference.decoder,
|
|
4111
|
+
requestedAt: damlTypes.Time.decoder,
|
|
4112
|
+
allocateBefore: damlTypes.Time.decoder,
|
|
4113
|
+
settleBefore: damlTypes.Time.decoder,
|
|
4114
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4115
|
+
});
|
|
4116
|
+
}),
|
|
3720
4117
|
encode: function (__typed__) {
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
4118
|
+
return {
|
|
4119
|
+
executor: damlTypes.Party.encode(__typed__.executor),
|
|
4120
|
+
settlementRef: exports.Reference.encode(__typed__.settlementRef),
|
|
4121
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
4122
|
+
allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
|
|
4123
|
+
settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
|
|
4124
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4125
|
+
};
|
|
4126
|
+
},
|
|
3726
4127
|
};
|
|
3727
4128
|
|
|
4129
|
+
exports.TransferLeg = {
|
|
4130
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4131
|
+
return jtv.object({
|
|
4132
|
+
sender: damlTypes.Party.decoder,
|
|
4133
|
+
receiver: damlTypes.Party.decoder,
|
|
4134
|
+
amount: damlTypes.Numeric(10).decoder,
|
|
4135
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId.decoder,
|
|
4136
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4137
|
+
});
|
|
4138
|
+
}),
|
|
4139
|
+
encode: function (__typed__) {
|
|
4140
|
+
return {
|
|
4141
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
4142
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
4143
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
4144
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId.encode(__typed__.instrumentId),
|
|
4145
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4146
|
+
};
|
|
4147
|
+
},
|
|
4148
|
+
};
|
|
4149
|
+
} (module$f));
|
|
4150
|
+
return module$f;
|
|
4151
|
+
}
|
|
3728
4152
|
|
|
4153
|
+
var hasRequiredAllocationV1;
|
|
3729
4154
|
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
4155
|
+
function requireAllocationV1 () {
|
|
4156
|
+
if (hasRequiredAllocationV1) return AllocationV1$1;
|
|
4157
|
+
hasRequiredAllocationV1 = 1;
|
|
4158
|
+
(function (exports) {
|
|
4159
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
4160
|
+
function __export(m) {
|
|
4161
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
4162
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
3736
4163
|
}
|
|
3737
|
-
,
|
|
3738
|
-
};
|
|
4164
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3739
4165
|
|
|
4166
|
+
__export(requireModule$3());
|
|
4167
|
+
} (AllocationV1$1));
|
|
4168
|
+
return AllocationV1$1;
|
|
4169
|
+
}
|
|
3740
4170
|
|
|
4171
|
+
var hasRequiredToken;
|
|
3741
4172
|
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
holdingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.holdingCids),
|
|
3748
|
-
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
3749
|
-
};
|
|
3750
|
-
}
|
|
3751
|
-
,
|
|
3752
|
-
};
|
|
4173
|
+
function requireToken () {
|
|
4174
|
+
if (hasRequiredToken) return Token;
|
|
4175
|
+
hasRequiredToken = 1;
|
|
4176
|
+
(function (exports) {
|
|
4177
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3753
4178
|
|
|
4179
|
+
var AllocationV1 = requireAllocationV1();
|
|
3754
4180
|
|
|
4181
|
+
exports.AllocationV1 = AllocationV1;
|
|
4182
|
+
} (Token));
|
|
4183
|
+
return Token;
|
|
4184
|
+
}
|
|
3755
4185
|
|
|
3756
|
-
|
|
3757
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: exports.SettlementInfo.decoder, transferLegId: damlTypes.Text.decoder, transferLeg: exports.TransferLeg.decoder, }); }),
|
|
3758
|
-
encode: function (__typed__) {
|
|
3759
|
-
return {
|
|
3760
|
-
settlement: exports.SettlementInfo.encode(__typed__.settlement),
|
|
3761
|
-
transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
|
|
3762
|
-
transferLeg: exports.TransferLeg.encode(__typed__.transferLeg),
|
|
3763
|
-
};
|
|
3764
|
-
}
|
|
3765
|
-
,
|
|
3766
|
-
};
|
|
4186
|
+
var hasRequiredApi;
|
|
3767
4187
|
|
|
4188
|
+
function requireApi () {
|
|
4189
|
+
if (hasRequiredApi) return Api;
|
|
4190
|
+
hasRequiredApi = 1;
|
|
4191
|
+
(function (exports) {
|
|
4192
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3768
4193
|
|
|
4194
|
+
var Token = requireToken();
|
|
3769
4195
|
|
|
3770
|
-
exports.
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
sender: damlTypes.Party.encode(__typed__.sender),
|
|
3775
|
-
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
3776
|
-
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
3777
|
-
instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.encode(__typed__.instrumentId),
|
|
3778
|
-
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
3779
|
-
};
|
|
3780
|
-
}
|
|
3781
|
-
,
|
|
3782
|
-
};
|
|
4196
|
+
exports.Token = Token;
|
|
4197
|
+
} (Api));
|
|
4198
|
+
return Api;
|
|
4199
|
+
}
|
|
3783
4200
|
|
|
4201
|
+
var hasRequiredSplice;
|
|
3784
4202
|
|
|
4203
|
+
function requireSplice () {
|
|
4204
|
+
if (hasRequiredSplice) return Splice;
|
|
4205
|
+
hasRequiredSplice = 1;
|
|
4206
|
+
(function (exports) {
|
|
4207
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3785
4208
|
|
|
3786
|
-
|
|
3787
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({executor: damlTypes.Party.decoder, settlementRef: exports.Reference.decoder, requestedAt: damlTypes.Time.decoder, allocateBefore: damlTypes.Time.decoder, settleBefore: damlTypes.Time.decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
3788
|
-
encode: function (__typed__) {
|
|
3789
|
-
return {
|
|
3790
|
-
executor: damlTypes.Party.encode(__typed__.executor),
|
|
3791
|
-
settlementRef: exports.Reference.encode(__typed__.settlementRef),
|
|
3792
|
-
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
3793
|
-
allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
|
|
3794
|
-
settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
|
|
3795
|
-
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
3796
|
-
};
|
|
3797
|
-
}
|
|
3798
|
-
,
|
|
3799
|
-
};
|
|
4209
|
+
var Api = requireApi();
|
|
3800
4210
|
|
|
4211
|
+
exports.Api = Api;
|
|
4212
|
+
} (Splice));
|
|
4213
|
+
return Splice;
|
|
4214
|
+
}
|
|
3801
4215
|
|
|
4216
|
+
var hasRequiredLib;
|
|
3802
4217
|
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
4218
|
+
function requireLib () {
|
|
4219
|
+
if (hasRequiredLib) return lib;
|
|
4220
|
+
hasRequiredLib = 1;
|
|
4221
|
+
(function (exports) {
|
|
4222
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4223
|
+
|
|
4224
|
+
var Splice = requireSplice();
|
|
4225
|
+
|
|
4226
|
+
exports.Splice = Splice;
|
|
4227
|
+
|
|
4228
|
+
exports.packageId = '93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d';
|
|
4229
|
+
} (lib));
|
|
4230
|
+
return lib;
|
|
3815
4231
|
}
|
|
3816
4232
|
|
|
3817
4233
|
var hasRequiredModule$2;
|
|
3818
4234
|
|
|
3819
4235
|
function requireModule$2 () {
|
|
3820
|
-
if (hasRequiredModule$2) return module$
|
|
4236
|
+
if (hasRequiredModule$2) return module$k;
|
|
3821
4237
|
hasRequiredModule$2 = 1;
|
|
3822
4238
|
(function (exports) {
|
|
3823
4239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4240
|
+
|
|
3824
4241
|
/* eslint-disable-next-line no-unused-vars */
|
|
3825
4242
|
var jtv = require$$0$1;
|
|
3826
4243
|
/* eslint-disable-next-line no-unused-vars */
|
|
3827
4244
|
var damlTypes = requireTypes$1();
|
|
3828
4245
|
|
|
3829
|
-
var
|
|
3830
|
-
|
|
3831
|
-
var
|
|
3832
|
-
var
|
|
3833
|
-
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
4246
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = requireLib$2();
|
|
4247
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = requireLib$1();
|
|
4248
|
+
var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = requireLib();
|
|
4249
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$4();
|
|
3834
4250
|
|
|
3835
4251
|
exports.AllocationFactory = damlTypes.assembleInterface(
|
|
3836
|
-
'#token-
|
|
3837
|
-
'
|
|
4252
|
+
'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
4253
|
+
'#275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationFactory',
|
|
3838
4254
|
function () { return exports.AllocationFactoryView; },
|
|
3839
4255
|
{
|
|
3840
|
-
Archive: {
|
|
3841
|
-
template: function () { return exports.AllocationFactory; },
|
|
3842
|
-
choiceName: 'Archive',
|
|
3843
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
3844
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
3845
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
3846
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
3847
|
-
},
|
|
3848
4256
|
AllocationFactory_Allocate: {
|
|
3849
4257
|
template: function () { return exports.AllocationFactory; },
|
|
3850
4258
|
choiceName: 'AllocationFactory_Allocate',
|
|
3851
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4259
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4260
|
+
return exports.AllocationFactory_Allocate.decoder;
|
|
4261
|
+
}),
|
|
3852
4262
|
argumentEncode: function (__typed__) { return exports.AllocationFactory_Allocate.encode(__typed__); },
|
|
3853
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4263
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4264
|
+
return exports.AllocationInstructionResult.decoder;
|
|
4265
|
+
}),
|
|
3854
4266
|
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
3855
4267
|
},
|
|
3856
4268
|
AllocationFactory_PublicFetch: {
|
|
3857
4269
|
template: function () { return exports.AllocationFactory; },
|
|
3858
4270
|
choiceName: 'AllocationFactory_PublicFetch',
|
|
3859
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4271
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4272
|
+
return exports.AllocationFactory_PublicFetch.decoder;
|
|
4273
|
+
}),
|
|
3860
4274
|
argumentEncode: function (__typed__) { return exports.AllocationFactory_PublicFetch.encode(__typed__); },
|
|
3861
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4275
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4276
|
+
return exports.AllocationFactoryView.decoder;
|
|
4277
|
+
}),
|
|
3862
4278
|
resultEncode: function (__typed__) { return exports.AllocationFactoryView.encode(__typed__); },
|
|
3863
4279
|
},
|
|
3864
|
-
|
|
3865
|
-
|
|
4280
|
+
Archive: {
|
|
4281
|
+
template: function () { return exports.AllocationFactory; },
|
|
4282
|
+
choiceName: 'Archive',
|
|
4283
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4284
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
4285
|
+
}),
|
|
4286
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
4287
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4288
|
+
return damlTypes.Unit.decoder;
|
|
4289
|
+
}),
|
|
4290
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
4291
|
+
},
|
|
4292
|
+
}
|
|
4293
|
+
);
|
|
3866
4294
|
|
|
3867
4295
|
exports.AllocationInstruction = damlTypes.assembleInterface(
|
|
3868
|
-
'#token-
|
|
3869
|
-
'
|
|
4296
|
+
'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
4297
|
+
'#275064aacfe99cea72ee0c80563936129563776f67415ef9f13e4297eecbc520:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction',
|
|
3870
4298
|
function () { return exports.AllocationInstructionView; },
|
|
3871
4299
|
{
|
|
3872
|
-
|
|
4300
|
+
AllocationInstruction_Update: {
|
|
3873
4301
|
template: function () { return exports.AllocationInstruction; },
|
|
3874
|
-
choiceName: '
|
|
3875
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
4302
|
+
choiceName: 'AllocationInstruction_Update',
|
|
4303
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4304
|
+
return exports.AllocationInstruction_Update.decoder;
|
|
4305
|
+
}),
|
|
4306
|
+
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Update.encode(__typed__); },
|
|
4307
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4308
|
+
return exports.AllocationInstructionResult.decoder;
|
|
4309
|
+
}),
|
|
4310
|
+
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
3879
4311
|
},
|
|
3880
4312
|
AllocationInstruction_Withdraw: {
|
|
3881
4313
|
template: function () { return exports.AllocationInstruction; },
|
|
3882
4314
|
choiceName: 'AllocationInstruction_Withdraw',
|
|
3883
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4315
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4316
|
+
return exports.AllocationInstruction_Withdraw.decoder;
|
|
4317
|
+
}),
|
|
3884
4318
|
argumentEncode: function (__typed__) { return exports.AllocationInstruction_Withdraw.encode(__typed__); },
|
|
3885
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4319
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4320
|
+
return exports.AllocationInstructionResult.decoder;
|
|
4321
|
+
}),
|
|
3886
4322
|
resultEncode: function (__typed__) { return exports.AllocationInstructionResult.encode(__typed__); },
|
|
3887
4323
|
},
|
|
3888
|
-
|
|
4324
|
+
Archive: {
|
|
3889
4325
|
template: function () { return exports.AllocationInstruction; },
|
|
3890
|
-
choiceName: '
|
|
3891
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
4326
|
+
choiceName: 'Archive',
|
|
4327
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4328
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
4329
|
+
}),
|
|
4330
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
4331
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4332
|
+
return damlTypes.Unit.decoder;
|
|
4333
|
+
}),
|
|
4334
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
3895
4335
|
},
|
|
3896
|
-
});
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
exports.AllocationInstructionResult_Output = {
|
|
3901
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AllocationInstructionResult_Pending'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Completed'), value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('AllocationInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
3902
|
-
encode: function (__typed__) {
|
|
3903
|
-
switch(__typed__.tag) {
|
|
3904
|
-
case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
|
|
3905
|
-
case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
|
|
3906
|
-
case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
3907
|
-
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
|
|
3908
4336
|
}
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
}
|
|
3918
|
-
,
|
|
3919
|
-
}),
|
|
3920
|
-
AllocationInstructionResult_Completed:({
|
|
3921
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocationCid: damlTypes.ContractId(Splice_Api_Token_AllocationV1.Allocation).decoder, }); }),
|
|
3922
|
-
encode: function (__typed__) {
|
|
3923
|
-
return {
|
|
3924
|
-
allocationCid: damlTypes.ContractId(Splice_Api_Token_AllocationV1.Allocation).encode(__typed__.allocationCid),
|
|
3925
|
-
};
|
|
3926
|
-
}
|
|
3927
|
-
,
|
|
4337
|
+
);
|
|
4338
|
+
|
|
4339
|
+
exports.AllocationFactoryView = {
|
|
4340
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4341
|
+
return jtv.object({
|
|
4342
|
+
admin: damlTypes.Party.decoder,
|
|
4343
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4344
|
+
});
|
|
3928
4345
|
}),
|
|
4346
|
+
encode: function (__typed__) {
|
|
4347
|
+
return {
|
|
4348
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
4349
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4350
|
+
};
|
|
4351
|
+
},
|
|
3929
4352
|
};
|
|
3930
4353
|
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
4354
|
+
exports.AllocationFactory_Allocate = {
|
|
4355
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4356
|
+
return jtv.object({
|
|
4357
|
+
expectedAdmin: damlTypes.Party.decoder,
|
|
4358
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.decoder,
|
|
4359
|
+
requestedAt: damlTypes.Time.decoder,
|
|
4360
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4361
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4362
|
+
});
|
|
4363
|
+
}),
|
|
3939
4364
|
encode: function (__typed__) {
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
4365
|
+
return {
|
|
4366
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
4367
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.encode(__typed__.allocation),
|
|
4368
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
4369
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
4370
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4371
|
+
};
|
|
4372
|
+
},
|
|
3947
4373
|
};
|
|
3948
4374
|
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
4375
|
exports.AllocationFactory_PublicFetch = {
|
|
3952
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4376
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4377
|
+
return jtv.object({
|
|
4378
|
+
expectedAdmin: damlTypes.Party.decoder,
|
|
4379
|
+
actor: damlTypes.Party.decoder,
|
|
4380
|
+
});
|
|
4381
|
+
}),
|
|
3953
4382
|
encode: function (__typed__) {
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
,
|
|
4383
|
+
return {
|
|
4384
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
4385
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
4386
|
+
};
|
|
4387
|
+
},
|
|
3960
4388
|
};
|
|
3961
4389
|
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
4390
|
+
exports.AllocationInstructionResult = {
|
|
4391
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4392
|
+
return jtv.object({
|
|
4393
|
+
output: exports.AllocationInstructionResult_Output.decoder,
|
|
4394
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4395
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4396
|
+
});
|
|
4397
|
+
}),
|
|
3966
4398
|
encode: function (__typed__) {
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
};
|
|
3974
|
-
}
|
|
3975
|
-
,
|
|
4399
|
+
return {
|
|
4400
|
+
output: exports.AllocationInstructionResult_Output.encode(__typed__.output),
|
|
4401
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderChangeCids),
|
|
4402
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4403
|
+
};
|
|
4404
|
+
},
|
|
3976
4405
|
};
|
|
3977
4406
|
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
4407
|
+
exports.AllocationInstructionResult_Output = {
|
|
4408
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4409
|
+
return jtv.oneOf(
|
|
4410
|
+
jtv.object({
|
|
4411
|
+
tag: jtv.constant("AllocationInstructionResult_Pending"),
|
|
4412
|
+
value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.decoder,
|
|
4413
|
+
}),
|
|
4414
|
+
jtv.object({
|
|
4415
|
+
tag: jtv.constant("AllocationInstructionResult_Completed"),
|
|
4416
|
+
value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.decoder,
|
|
4417
|
+
}),
|
|
4418
|
+
jtv.object({
|
|
4419
|
+
tag: jtv.constant("AllocationInstructionResult_Failed"),
|
|
4420
|
+
value: damlTypes.Unit.decoder,
|
|
4421
|
+
}),
|
|
4422
|
+
);
|
|
4423
|
+
}),
|
|
3982
4424
|
encode: function (__typed__) {
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
4425
|
+
switch(__typed__.tag) {
|
|
4426
|
+
case 'AllocationInstructionResult_Pending': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Pending.encode(__typed__.value)};
|
|
4427
|
+
case 'AllocationInstructionResult_Completed': return {tag: __typed__.tag, value: exports.AllocationInstructionResult_Output.AllocationInstructionResult_Completed.encode(__typed__.value)};
|
|
4428
|
+
case 'AllocationInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
4429
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AllocationInstructionResult_Output';
|
|
4430
|
+
}
|
|
4431
|
+
},
|
|
4432
|
+
AllocationInstructionResult_Completed: {
|
|
4433
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4434
|
+
return jtv.object({
|
|
4435
|
+
allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.Allocation).decoder,
|
|
4436
|
+
});
|
|
4437
|
+
}),
|
|
4438
|
+
encode: function (__typed__) {
|
|
4439
|
+
return {
|
|
4440
|
+
allocationCid: damlTypes.ContractId(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.Allocation).encode(__typed__.allocationCid),
|
|
4441
|
+
};
|
|
4442
|
+
},
|
|
4443
|
+
},
|
|
4444
|
+
AllocationInstructionResult_Pending: {
|
|
4445
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4446
|
+
return jtv.object({
|
|
4447
|
+
allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).decoder,
|
|
4448
|
+
});
|
|
4449
|
+
}),
|
|
4450
|
+
encode: function (__typed__) {
|
|
4451
|
+
return {
|
|
4452
|
+
allocationInstructionCid: damlTypes.ContractId(exports.AllocationInstruction).encode(__typed__.allocationInstructionCid),
|
|
4453
|
+
};
|
|
4454
|
+
},
|
|
4455
|
+
},
|
|
3989
4456
|
};
|
|
3990
4457
|
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
4458
|
+
exports.AllocationInstructionView = {
|
|
4459
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4460
|
+
return jtv.object({
|
|
4461
|
+
originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).decoder),
|
|
4462
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.decoder,
|
|
4463
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder,
|
|
4464
|
+
requestedAt: damlTypes.Time.decoder,
|
|
4465
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4466
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4467
|
+
});
|
|
4468
|
+
}),
|
|
3995
4469
|
encode: function (__typed__) {
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4470
|
+
return {
|
|
4471
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.AllocationInstruction)).encode(__typed__.originalInstructionCid),
|
|
4472
|
+
allocation: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.AllocationSpecification.encode(__typed__.allocation),
|
|
4473
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
4474
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
4475
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
4476
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4477
|
+
};
|
|
4478
|
+
},
|
|
4002
4479
|
};
|
|
4003
4480
|
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4481
|
+
exports.AllocationInstruction_Update = {
|
|
4482
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4483
|
+
return jtv.object({
|
|
4484
|
+
extraActors: damlTypes.List(damlTypes.Party).decoder,
|
|
4485
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4486
|
+
});
|
|
4487
|
+
}),
|
|
4008
4488
|
encode: function (__typed__) {
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4489
|
+
return {
|
|
4490
|
+
extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
|
|
4491
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4492
|
+
};
|
|
4493
|
+
},
|
|
4014
4494
|
};
|
|
4015
4495
|
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4496
|
+
exports.AllocationInstruction_Withdraw = {
|
|
4497
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4498
|
+
return jtv.object({
|
|
4499
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4500
|
+
});
|
|
4501
|
+
}),
|
|
4020
4502
|
encode: function (__typed__) {
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
4026
|
-
inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
4027
|
-
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
4028
|
-
};
|
|
4029
|
-
}
|
|
4030
|
-
,
|
|
4503
|
+
return {
|
|
4504
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4505
|
+
};
|
|
4506
|
+
},
|
|
4031
4507
|
};
|
|
4032
|
-
} (module$
|
|
4033
|
-
return module$
|
|
4508
|
+
} (module$k));
|
|
4509
|
+
return module$k;
|
|
4034
4510
|
}
|
|
4035
4511
|
|
|
4036
|
-
var
|
|
4037
|
-
|
|
4038
|
-
function requireAllocationInstructionV1 () {
|
|
4039
|
-
if (hasRequiredAllocationInstructionV1) return AllocationInstructionV1$1;
|
|
4040
|
-
hasRequiredAllocationInstructionV1 = 1;
|
|
4041
|
-
(function (exports) {
|
|
4042
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
4043
|
-
function __export(m) {
|
|
4044
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
4045
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4046
|
-
}
|
|
4047
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4048
|
-
__export(requireModule$2());
|
|
4049
|
-
} (AllocationInstructionV1$1));
|
|
4050
|
-
return AllocationInstructionV1$1;
|
|
4051
|
-
}
|
|
4512
|
+
var moduleExports$5 = requireModule$2();
|
|
4513
|
+
var module$d = /*@__PURE__*/getDefaultExportFromCjs(moduleExports$5);
|
|
4052
4514
|
|
|
4053
|
-
var
|
|
4515
|
+
var module$e = /*#__PURE__*/_mergeNamespaces({
|
|
4516
|
+
__proto__: null,
|
|
4517
|
+
default: module$d
|
|
4518
|
+
}, [moduleExports$5]);
|
|
4054
4519
|
|
|
4055
|
-
var module$
|
|
4520
|
+
var module$c = {};
|
|
4056
4521
|
|
|
4057
4522
|
var hasRequiredModule$1;
|
|
4058
4523
|
|
|
4059
4524
|
function requireModule$1 () {
|
|
4060
|
-
if (hasRequiredModule$1) return module$
|
|
4525
|
+
if (hasRequiredModule$1) return module$c;
|
|
4061
4526
|
hasRequiredModule$1 = 1;
|
|
4062
4527
|
(function (exports) {
|
|
4063
4528
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4529
|
+
|
|
4064
4530
|
/* eslint-disable-next-line no-unused-vars */
|
|
4065
4531
|
var jtv = require$$0$1;
|
|
4066
4532
|
/* eslint-disable-next-line no-unused-vars */
|
|
4067
4533
|
var damlTypes = requireTypes$1();
|
|
4068
4534
|
|
|
4069
|
-
var
|
|
4070
|
-
|
|
4071
|
-
var
|
|
4072
|
-
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
4535
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = requireLib$2();
|
|
4536
|
+
var pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d = requireLib();
|
|
4537
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$4();
|
|
4073
4538
|
|
|
4074
4539
|
exports.AllocationRequest = damlTypes.assembleInterface(
|
|
4075
|
-
'#token-
|
|
4076
|
-
'
|
|
4540
|
+
'#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
|
|
4541
|
+
'#6fe848530b2404017c4a12874c956ad7d5c8a419ee9b040f96b5c13172d2e193:Splice.Api.Token.AllocationRequestV1:AllocationRequest',
|
|
4077
4542
|
function () { return exports.AllocationRequestView; },
|
|
4078
4543
|
{
|
|
4079
|
-
Archive: {
|
|
4080
|
-
template: function () { return exports.AllocationRequest; },
|
|
4081
|
-
choiceName: 'Archive',
|
|
4082
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
4083
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
4084
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
4085
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
4086
|
-
},
|
|
4087
4544
|
AllocationRequest_Reject: {
|
|
4088
4545
|
template: function () { return exports.AllocationRequest; },
|
|
4089
4546
|
choiceName: 'AllocationRequest_Reject',
|
|
4090
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4547
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4548
|
+
return exports.AllocationRequest_Reject.decoder;
|
|
4549
|
+
}),
|
|
4091
4550
|
argumentEncode: function (__typed__) { return exports.AllocationRequest_Reject.encode(__typed__); },
|
|
4092
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4093
|
-
|
|
4551
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4552
|
+
return pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ChoiceExecutionMetadata.decoder;
|
|
4553
|
+
}),
|
|
4554
|
+
resultEncode: function (__typed__) { return pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ChoiceExecutionMetadata.encode(__typed__); },
|
|
4094
4555
|
},
|
|
4095
4556
|
AllocationRequest_Withdraw: {
|
|
4096
4557
|
template: function () { return exports.AllocationRequest; },
|
|
4097
4558
|
choiceName: 'AllocationRequest_Withdraw',
|
|
4098
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4559
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4560
|
+
return exports.AllocationRequest_Withdraw.decoder;
|
|
4561
|
+
}),
|
|
4099
4562
|
argumentEncode: function (__typed__) { return exports.AllocationRequest_Withdraw.encode(__typed__); },
|
|
4100
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4101
|
-
|
|
4563
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4564
|
+
return pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ChoiceExecutionMetadata.decoder;
|
|
4565
|
+
}),
|
|
4566
|
+
resultEncode: function (__typed__) { return pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ChoiceExecutionMetadata.encode(__typed__); },
|
|
4102
4567
|
},
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4568
|
+
Archive: {
|
|
4569
|
+
template: function () { return exports.AllocationRequest; },
|
|
4570
|
+
choiceName: 'Archive',
|
|
4571
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4572
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
4573
|
+
}),
|
|
4574
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
4575
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4576
|
+
return damlTypes.Unit.decoder;
|
|
4577
|
+
}),
|
|
4578
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
4579
|
+
},
|
|
4580
|
+
}
|
|
4581
|
+
);
|
|
4106
4582
|
|
|
4107
4583
|
exports.AllocationRequestView = {
|
|
4108
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4584
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4585
|
+
return jtv.object({
|
|
4586
|
+
settlement: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.SettlementInfo.decoder,
|
|
4587
|
+
transferLegs: damlTypes.TextMap(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.TransferLeg).decoder,
|
|
4588
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4589
|
+
});
|
|
4590
|
+
}),
|
|
4109
4591
|
encode: function (__typed__) {
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
,
|
|
4592
|
+
return {
|
|
4593
|
+
settlement: pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.SettlementInfo.encode(__typed__.settlement),
|
|
4594
|
+
transferLegs: damlTypes.TextMap(pkg93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d.Splice.Api.Token.AllocationV1.TransferLeg).encode(__typed__.transferLegs),
|
|
4595
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4596
|
+
};
|
|
4597
|
+
},
|
|
4117
4598
|
};
|
|
4118
4599
|
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4600
|
+
exports.AllocationRequest_Reject = {
|
|
4601
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4602
|
+
return jtv.object({
|
|
4603
|
+
actor: damlTypes.Party.decoder,
|
|
4604
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4605
|
+
});
|
|
4606
|
+
}),
|
|
4123
4607
|
encode: function (__typed__) {
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4608
|
+
return {
|
|
4609
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
4610
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4611
|
+
};
|
|
4612
|
+
},
|
|
4129
4613
|
};
|
|
4130
4614
|
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4615
|
+
exports.AllocationRequest_Withdraw = {
|
|
4616
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4617
|
+
return jtv.object({
|
|
4618
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4619
|
+
});
|
|
4620
|
+
}),
|
|
4135
4621
|
encode: function (__typed__) {
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
}
|
|
4140
|
-
}
|
|
4141
|
-
,
|
|
4622
|
+
return {
|
|
4623
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4624
|
+
};
|
|
4625
|
+
},
|
|
4142
4626
|
};
|
|
4143
|
-
} (module$
|
|
4144
|
-
return module$
|
|
4145
|
-
}
|
|
4146
|
-
|
|
4147
|
-
var hasRequiredAllocationRequestV1;
|
|
4148
|
-
|
|
4149
|
-
function requireAllocationRequestV1 () {
|
|
4150
|
-
if (hasRequiredAllocationRequestV1) return AllocationRequestV1$1;
|
|
4151
|
-
hasRequiredAllocationRequestV1 = 1;
|
|
4152
|
-
(function (exports) {
|
|
4153
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
4154
|
-
function __export(m) {
|
|
4155
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
4156
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4157
|
-
}
|
|
4158
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4159
|
-
__export(requireModule$1());
|
|
4160
|
-
} (AllocationRequestV1$1));
|
|
4161
|
-
return AllocationRequestV1$1;
|
|
4627
|
+
} (module$c));
|
|
4628
|
+
return module$c;
|
|
4162
4629
|
}
|
|
4163
4630
|
|
|
4164
|
-
var
|
|
4165
|
-
|
|
4166
|
-
var hasRequiredAllocationV1;
|
|
4167
|
-
|
|
4168
|
-
function requireAllocationV1 () {
|
|
4169
|
-
if (hasRequiredAllocationV1) return AllocationV1$1;
|
|
4170
|
-
hasRequiredAllocationV1 = 1;
|
|
4171
|
-
(function (exports) {
|
|
4172
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
4173
|
-
function __export(m) {
|
|
4174
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
4175
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4176
|
-
}
|
|
4177
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4178
|
-
__export(requireModule$3());
|
|
4179
|
-
} (AllocationV1$1));
|
|
4180
|
-
return AllocationV1$1;
|
|
4181
|
-
}
|
|
4182
|
-
|
|
4183
|
-
var HoldingV1$1 = {};
|
|
4184
|
-
|
|
4185
|
-
var hasRequiredHoldingV1;
|
|
4186
|
-
|
|
4187
|
-
function requireHoldingV1 () {
|
|
4188
|
-
if (hasRequiredHoldingV1) return HoldingV1$1;
|
|
4189
|
-
hasRequiredHoldingV1 = 1;
|
|
4190
|
-
(function (exports) {
|
|
4191
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
4192
|
-
function __export(m) {
|
|
4193
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
4194
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4195
|
-
}
|
|
4196
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4197
|
-
__export(requireModule$4());
|
|
4198
|
-
} (HoldingV1$1));
|
|
4199
|
-
return HoldingV1$1;
|
|
4200
|
-
}
|
|
4201
|
-
|
|
4202
|
-
var MetadataV1$1 = {};
|
|
4203
|
-
|
|
4204
|
-
var hasRequiredMetadataV1;
|
|
4205
|
-
|
|
4206
|
-
function requireMetadataV1 () {
|
|
4207
|
-
if (hasRequiredMetadataV1) return MetadataV1$1;
|
|
4208
|
-
hasRequiredMetadataV1 = 1;
|
|
4209
|
-
(function (exports) {
|
|
4210
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
4211
|
-
function __export(m) {
|
|
4212
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
4213
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4214
|
-
}
|
|
4215
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4216
|
-
__export(requireModule$5());
|
|
4217
|
-
} (MetadataV1$1));
|
|
4218
|
-
return MetadataV1$1;
|
|
4219
|
-
}
|
|
4631
|
+
var moduleExports$4 = requireModule$1();
|
|
4632
|
+
var module$a = /*@__PURE__*/getDefaultExportFromCjs(moduleExports$4);
|
|
4220
4633
|
|
|
4221
|
-
var
|
|
4634
|
+
var module$b = /*#__PURE__*/_mergeNamespaces({
|
|
4635
|
+
__proto__: null,
|
|
4636
|
+
default: module$a
|
|
4637
|
+
}, [moduleExports$4]);
|
|
4638
|
+
|
|
4639
|
+
var moduleExports$3 = requireModule$3();
|
|
4640
|
+
var module$8 = /*@__PURE__*/getDefaultExportFromCjs(moduleExports$3);
|
|
4641
|
+
|
|
4642
|
+
var module$9 = /*#__PURE__*/_mergeNamespaces({
|
|
4643
|
+
__proto__: null,
|
|
4644
|
+
default: module$8
|
|
4645
|
+
}, [moduleExports$3]);
|
|
4646
|
+
|
|
4647
|
+
var moduleExports$2 = requireModule$4();
|
|
4648
|
+
var module$6 = /*@__PURE__*/getDefaultExportFromCjs(moduleExports$2);
|
|
4649
|
+
|
|
4650
|
+
var module$7 = /*#__PURE__*/_mergeNamespaces({
|
|
4651
|
+
__proto__: null,
|
|
4652
|
+
default: module$6
|
|
4653
|
+
}, [moduleExports$2]);
|
|
4654
|
+
|
|
4655
|
+
var moduleExports$1 = requireModule$5();
|
|
4656
|
+
var module$4 = /*@__PURE__*/getDefaultExportFromCjs(moduleExports$1);
|
|
4222
4657
|
|
|
4223
|
-
var module$
|
|
4658
|
+
var module$5 = /*#__PURE__*/_mergeNamespaces({
|
|
4659
|
+
__proto__: null,
|
|
4660
|
+
default: module$4
|
|
4661
|
+
}, [moduleExports$1]);
|
|
4662
|
+
|
|
4663
|
+
var module$3 = {};
|
|
4224
4664
|
|
|
4225
4665
|
var hasRequiredModule;
|
|
4226
4666
|
|
|
4227
4667
|
function requireModule () {
|
|
4228
|
-
if (hasRequiredModule) return module$
|
|
4668
|
+
if (hasRequiredModule) return module$3;
|
|
4229
4669
|
hasRequiredModule = 1;
|
|
4230
4670
|
(function (exports) {
|
|
4231
4671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4672
|
+
|
|
4232
4673
|
/* eslint-disable-next-line no-unused-vars */
|
|
4233
4674
|
var jtv = require$$0$1;
|
|
4234
4675
|
/* eslint-disable-next-line no-unused-vars */
|
|
4235
4676
|
var damlTypes = requireTypes$1();
|
|
4236
4677
|
|
|
4237
|
-
var
|
|
4238
|
-
|
|
4239
|
-
var
|
|
4240
|
-
var Splice_Api_Token_MetadataV1 = requireModule$5();
|
|
4678
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = requireLib$2();
|
|
4679
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = requireLib$1();
|
|
4680
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = requireLib$4();
|
|
4241
4681
|
|
|
4242
4682
|
exports.TransferFactory = damlTypes.assembleInterface(
|
|
4243
|
-
'#token-
|
|
4244
|
-
'
|
|
4683
|
+
'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
4684
|
+
'#55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
4245
4685
|
function () { return exports.TransferFactoryView; },
|
|
4246
4686
|
{
|
|
4247
4687
|
Archive: {
|
|
4248
4688
|
template: function () { return exports.TransferFactory; },
|
|
4249
4689
|
choiceName: 'Archive',
|
|
4250
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4690
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4691
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
4692
|
+
}),
|
|
4251
4693
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
4252
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4694
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4695
|
+
return damlTypes.Unit.decoder;
|
|
4696
|
+
}),
|
|
4253
4697
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
4254
4698
|
},
|
|
4255
|
-
TransferFactory_Transfer: {
|
|
4256
|
-
template: function () { return exports.TransferFactory; },
|
|
4257
|
-
choiceName: 'TransferFactory_Transfer',
|
|
4258
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_Transfer.decoder; }),
|
|
4259
|
-
argumentEncode: function (__typed__) { return exports.TransferFactory_Transfer.encode(__typed__); },
|
|
4260
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
4261
|
-
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
4262
|
-
},
|
|
4263
4699
|
TransferFactory_PublicFetch: {
|
|
4264
4700
|
template: function () { return exports.TransferFactory; },
|
|
4265
4701
|
choiceName: 'TransferFactory_PublicFetch',
|
|
4266
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4702
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4703
|
+
return exports.TransferFactory_PublicFetch.decoder;
|
|
4704
|
+
}),
|
|
4267
4705
|
argumentEncode: function (__typed__) { return exports.TransferFactory_PublicFetch.encode(__typed__); },
|
|
4268
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4706
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4707
|
+
return exports.TransferFactoryView.decoder;
|
|
4708
|
+
}),
|
|
4269
4709
|
resultEncode: function (__typed__) { return exports.TransferFactoryView.encode(__typed__); },
|
|
4270
4710
|
},
|
|
4271
|
-
|
|
4272
|
-
|
|
4711
|
+
TransferFactory_Transfer: {
|
|
4712
|
+
template: function () { return exports.TransferFactory; },
|
|
4713
|
+
choiceName: 'TransferFactory_Transfer',
|
|
4714
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4715
|
+
return exports.TransferFactory_Transfer.decoder;
|
|
4716
|
+
}),
|
|
4717
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_Transfer.encode(__typed__); },
|
|
4718
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4719
|
+
return exports.TransferInstructionResult.decoder;
|
|
4720
|
+
}),
|
|
4721
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
4722
|
+
},
|
|
4723
|
+
}
|
|
4724
|
+
);
|
|
4273
4725
|
|
|
4274
4726
|
exports.TransferInstruction = damlTypes.assembleInterface(
|
|
4275
|
-
'#token-
|
|
4276
|
-
'
|
|
4727
|
+
'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
4728
|
+
'#55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
4277
4729
|
function () { return exports.TransferInstructionView; },
|
|
4278
4730
|
{
|
|
4279
4731
|
Archive: {
|
|
4280
4732
|
template: function () { return exports.TransferInstruction; },
|
|
4281
4733
|
choiceName: 'Archive',
|
|
4282
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4734
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4735
|
+
return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder;
|
|
4736
|
+
}),
|
|
4283
4737
|
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
4284
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4738
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4739
|
+
return damlTypes.Unit.decoder;
|
|
4740
|
+
}),
|
|
4285
4741
|
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
4286
4742
|
},
|
|
4287
4743
|
TransferInstruction_Accept: {
|
|
4288
4744
|
template: function () { return exports.TransferInstruction; },
|
|
4289
4745
|
choiceName: 'TransferInstruction_Accept',
|
|
4290
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4746
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4747
|
+
return exports.TransferInstruction_Accept.decoder;
|
|
4748
|
+
}),
|
|
4291
4749
|
argumentEncode: function (__typed__) { return exports.TransferInstruction_Accept.encode(__typed__); },
|
|
4292
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4750
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4751
|
+
return exports.TransferInstructionResult.decoder;
|
|
4752
|
+
}),
|
|
4293
4753
|
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
4294
4754
|
},
|
|
4295
4755
|
TransferInstruction_Reject: {
|
|
4296
4756
|
template: function () { return exports.TransferInstruction; },
|
|
4297
4757
|
choiceName: 'TransferInstruction_Reject',
|
|
4298
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4758
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4759
|
+
return exports.TransferInstruction_Reject.decoder;
|
|
4760
|
+
}),
|
|
4299
4761
|
argumentEncode: function (__typed__) { return exports.TransferInstruction_Reject.encode(__typed__); },
|
|
4300
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
TransferInstruction_Withdraw: {
|
|
4304
|
-
template: function () { return exports.TransferInstruction; },
|
|
4305
|
-
choiceName: 'TransferInstruction_Withdraw',
|
|
4306
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Withdraw.decoder; }),
|
|
4307
|
-
argumentEncode: function (__typed__) { return exports.TransferInstruction_Withdraw.encode(__typed__); },
|
|
4308
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
4762
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4763
|
+
return exports.TransferInstructionResult.decoder;
|
|
4764
|
+
}),
|
|
4309
4765
|
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
4310
4766
|
},
|
|
4311
4767
|
TransferInstruction_Update: {
|
|
4312
4768
|
template: function () { return exports.TransferInstruction; },
|
|
4313
4769
|
choiceName: 'TransferInstruction_Update',
|
|
4314
|
-
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4770
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4771
|
+
return exports.TransferInstruction_Update.decoder;
|
|
4772
|
+
}),
|
|
4315
4773
|
argumentEncode: function (__typed__) { return exports.TransferInstruction_Update.encode(__typed__); },
|
|
4316
|
-
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4774
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4775
|
+
return exports.TransferInstructionResult.decoder;
|
|
4776
|
+
}),
|
|
4317
4777
|
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
4318
4778
|
},
|
|
4319
|
-
|
|
4320
|
-
|
|
4779
|
+
TransferInstruction_Withdraw: {
|
|
4780
|
+
template: function () { return exports.TransferInstruction; },
|
|
4781
|
+
choiceName: 'TransferInstruction_Withdraw',
|
|
4782
|
+
argumentDecoder: damlTypes.lazyMemo(function () {
|
|
4783
|
+
return exports.TransferInstruction_Withdraw.decoder;
|
|
4784
|
+
}),
|
|
4785
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Withdraw.encode(__typed__); },
|
|
4786
|
+
resultDecoder: damlTypes.lazyMemo(function () {
|
|
4787
|
+
return exports.TransferInstructionResult.decoder;
|
|
4788
|
+
}),
|
|
4789
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
4790
|
+
},
|
|
4791
|
+
}
|
|
4792
|
+
);
|
|
4321
4793
|
|
|
4794
|
+
exports.Transfer = {
|
|
4795
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4796
|
+
return jtv.object({
|
|
4797
|
+
sender: damlTypes.Party.decoder,
|
|
4798
|
+
receiver: damlTypes.Party.decoder,
|
|
4799
|
+
amount: damlTypes.Numeric(10).decoder,
|
|
4800
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId.decoder,
|
|
4801
|
+
requestedAt: damlTypes.Time.decoder,
|
|
4802
|
+
executeBefore: damlTypes.Time.decoder,
|
|
4803
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4804
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4805
|
+
});
|
|
4806
|
+
}),
|
|
4807
|
+
encode: function (__typed__) {
|
|
4808
|
+
return {
|
|
4809
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
4810
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
4811
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
4812
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId.encode(__typed__.instrumentId),
|
|
4813
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
4814
|
+
executeBefore: damlTypes.Time.encode(__typed__.executeBefore),
|
|
4815
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
4816
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4817
|
+
};
|
|
4818
|
+
},
|
|
4819
|
+
};
|
|
4322
4820
|
|
|
4323
4821
|
exports.TransferFactoryView = {
|
|
4324
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4822
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4823
|
+
return jtv.object({
|
|
4824
|
+
admin: damlTypes.Party.decoder,
|
|
4825
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4826
|
+
});
|
|
4827
|
+
}),
|
|
4325
4828
|
encode: function (__typed__) {
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
,
|
|
4829
|
+
return {
|
|
4830
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
4831
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4832
|
+
};
|
|
4833
|
+
},
|
|
4332
4834
|
};
|
|
4333
4835
|
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
4836
|
exports.TransferFactory_PublicFetch = {
|
|
4337
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4837
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4838
|
+
return jtv.object({
|
|
4839
|
+
expectedAdmin: damlTypes.Party.decoder,
|
|
4840
|
+
actor: damlTypes.Party.decoder,
|
|
4841
|
+
});
|
|
4842
|
+
}),
|
|
4338
4843
|
encode: function (__typed__) {
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
,
|
|
4844
|
+
return {
|
|
4845
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
4846
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
4847
|
+
};
|
|
4848
|
+
},
|
|
4345
4849
|
};
|
|
4346
4850
|
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
4851
|
exports.TransferFactory_Transfer = {
|
|
4350
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
}
|
|
4357
|
-
}
|
|
4358
|
-
,
|
|
4359
|
-
};
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
exports.TransferInstruction_Update = {
|
|
4364
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: Splice_Api_Token_MetadataV1.ExtraArgs.decoder, }); }),
|
|
4852
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4853
|
+
return jtv.object({
|
|
4854
|
+
expectedAdmin: damlTypes.Party.decoder,
|
|
4855
|
+
transfer: exports.Transfer.decoder,
|
|
4856
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4857
|
+
});
|
|
4858
|
+
}),
|
|
4365
4859
|
encode: function (__typed__) {
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4860
|
+
return {
|
|
4861
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
4862
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
4863
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4864
|
+
};
|
|
4865
|
+
},
|
|
4372
4866
|
};
|
|
4373
4867
|
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4868
|
+
exports.TransferInstructionResult = {
|
|
4869
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4870
|
+
return jtv.object({
|
|
4871
|
+
output: exports.TransferInstructionResult_Output.decoder,
|
|
4872
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4873
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4874
|
+
});
|
|
4875
|
+
}),
|
|
4378
4876
|
encode: function (__typed__) {
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4877
|
+
return {
|
|
4878
|
+
output: exports.TransferInstructionResult_Output.encode(__typed__.output),
|
|
4879
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.senderChangeCids),
|
|
4880
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4881
|
+
};
|
|
4882
|
+
},
|
|
4384
4883
|
};
|
|
4385
4884
|
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4885
|
+
exports.TransferInstructionResult_Output = {
|
|
4886
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4887
|
+
return jtv.oneOf(
|
|
4888
|
+
jtv.object({
|
|
4889
|
+
tag: jtv.constant("TransferInstructionResult_Pending"),
|
|
4890
|
+
value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.decoder,
|
|
4891
|
+
}),
|
|
4892
|
+
jtv.object({
|
|
4893
|
+
tag: jtv.constant("TransferInstructionResult_Completed"),
|
|
4894
|
+
value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.decoder,
|
|
4895
|
+
}),
|
|
4896
|
+
jtv.object({
|
|
4897
|
+
tag: jtv.constant("TransferInstructionResult_Failed"),
|
|
4898
|
+
value: damlTypes.Unit.decoder,
|
|
4899
|
+
}),
|
|
4900
|
+
);
|
|
4901
|
+
}),
|
|
4390
4902
|
encode: function (__typed__) {
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4903
|
+
switch(__typed__.tag) {
|
|
4904
|
+
case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(__typed__.value)};
|
|
4905
|
+
case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(__typed__.value)};
|
|
4906
|
+
case 'TransferInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
4907
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionResult_Output';
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
TransferInstructionResult_Completed: {
|
|
4911
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4912
|
+
return jtv.object({
|
|
4913
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).decoder,
|
|
4914
|
+
});
|
|
4915
|
+
}),
|
|
4916
|
+
encode: function (__typed__) {
|
|
4917
|
+
return {
|
|
4918
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding)).encode(__typed__.receiverHoldingCids),
|
|
4919
|
+
};
|
|
4920
|
+
},
|
|
4921
|
+
},
|
|
4922
|
+
TransferInstructionResult_Pending: {
|
|
4923
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4924
|
+
return jtv.object({
|
|
4925
|
+
transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).decoder,
|
|
4926
|
+
});
|
|
4927
|
+
}),
|
|
4928
|
+
encode: function (__typed__) {
|
|
4929
|
+
return {
|
|
4930
|
+
transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).encode(__typed__.transferInstructionCid),
|
|
4931
|
+
};
|
|
4932
|
+
},
|
|
4933
|
+
},
|
|
4396
4934
|
};
|
|
4397
4935
|
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4936
|
+
exports.TransferInstructionStatus = {
|
|
4937
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4938
|
+
return jtv.oneOf(
|
|
4939
|
+
jtv.object({
|
|
4940
|
+
tag: jtv.constant("TransferPendingReceiverAcceptance"),
|
|
4941
|
+
value: damlTypes.Unit.decoder,
|
|
4942
|
+
}),
|
|
4943
|
+
jtv.object({
|
|
4944
|
+
tag: jtv.constant("TransferPendingInternalWorkflow"),
|
|
4945
|
+
value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.decoder,
|
|
4946
|
+
}),
|
|
4947
|
+
);
|
|
4948
|
+
}),
|
|
4402
4949
|
encode: function (__typed__) {
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4950
|
+
switch(__typed__.tag) {
|
|
4951
|
+
case 'TransferPendingReceiverAcceptance': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
4952
|
+
case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(__typed__.value)};
|
|
4953
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionStatus';
|
|
4954
|
+
}
|
|
4955
|
+
},
|
|
4956
|
+
TransferPendingInternalWorkflow: {
|
|
4957
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4958
|
+
return jtv.object({
|
|
4959
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder,
|
|
4960
|
+
});
|
|
4961
|
+
}),
|
|
4962
|
+
encode: function (__typed__) {
|
|
4963
|
+
return {
|
|
4964
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
4965
|
+
};
|
|
4966
|
+
},
|
|
4967
|
+
},
|
|
4408
4968
|
};
|
|
4409
4969
|
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
4970
|
exports.TransferInstructionView = {
|
|
4413
|
-
decoder: damlTypes.lazyMemo(function () {
|
|
4971
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4972
|
+
return jtv.object({
|
|
4973
|
+
originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).decoder),
|
|
4974
|
+
transfer: exports.Transfer.decoder,
|
|
4975
|
+
status: exports.TransferInstructionStatus.decoder,
|
|
4976
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.decoder,
|
|
4977
|
+
});
|
|
4978
|
+
}),
|
|
4414
4979
|
encode: function (__typed__) {
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
,
|
|
4980
|
+
return {
|
|
4981
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).encode(__typed__.originalInstructionCid),
|
|
4982
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
4983
|
+
status: exports.TransferInstructionStatus.encode(__typed__.status),
|
|
4984
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata.encode(__typed__.meta),
|
|
4985
|
+
};
|
|
4986
|
+
},
|
|
4423
4987
|
};
|
|
4424
4988
|
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
switch(__typed__.tag) {
|
|
4431
|
-
case 'TransferPendingReceiverAcceptance': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
4432
|
-
case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(__typed__.value)};
|
|
4433
|
-
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionStatus';
|
|
4434
|
-
}
|
|
4435
|
-
}
|
|
4436
|
-
,
|
|
4437
|
-
TransferPendingInternalWorkflow:({
|
|
4438
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, }); }),
|
|
4439
|
-
encode: function (__typed__) {
|
|
4440
|
-
return {
|
|
4441
|
-
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
4442
|
-
};
|
|
4443
|
-
}
|
|
4444
|
-
,
|
|
4989
|
+
exports.TransferInstruction_Accept = {
|
|
4990
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
4991
|
+
return jtv.object({
|
|
4992
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
4993
|
+
});
|
|
4445
4994
|
}),
|
|
4995
|
+
encode: function (__typed__) {
|
|
4996
|
+
return {
|
|
4997
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
4998
|
+
};
|
|
4999
|
+
},
|
|
4446
5000
|
};
|
|
4447
5001
|
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferInstructionResult_Pending'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Completed'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
4454
|
-
encode: function (__typed__) {
|
|
4455
|
-
switch(__typed__.tag) {
|
|
4456
|
-
case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(__typed__.value)};
|
|
4457
|
-
case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(__typed__.value)};
|
|
4458
|
-
case 'TransferInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
4459
|
-
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionResult_Output';
|
|
4460
|
-
}
|
|
4461
|
-
}
|
|
4462
|
-
,
|
|
4463
|
-
TransferInstructionResult_Pending:({
|
|
4464
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).decoder, }); }),
|
|
4465
|
-
encode: function (__typed__) {
|
|
4466
|
-
return {
|
|
4467
|
-
transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).encode(__typed__.transferInstructionCid),
|
|
4468
|
-
};
|
|
4469
|
-
}
|
|
4470
|
-
,
|
|
4471
|
-
}),
|
|
4472
|
-
TransferInstructionResult_Completed:({
|
|
4473
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({receiverHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, }); }),
|
|
4474
|
-
encode: function (__typed__) {
|
|
4475
|
-
return {
|
|
4476
|
-
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.receiverHoldingCids),
|
|
4477
|
-
};
|
|
4478
|
-
}
|
|
4479
|
-
,
|
|
5002
|
+
exports.TransferInstruction_Reject = {
|
|
5003
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
5004
|
+
return jtv.object({
|
|
5005
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
5006
|
+
});
|
|
4480
5007
|
}),
|
|
5008
|
+
encode: function (__typed__) {
|
|
5009
|
+
return {
|
|
5010
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
5011
|
+
};
|
|
5012
|
+
},
|
|
4481
5013
|
};
|
|
4482
5014
|
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.TransferInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).decoder, meta: Splice_Api_Token_MetadataV1.Metadata.decoder, }); }),
|
|
5015
|
+
exports.TransferInstruction_Update = {
|
|
5016
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
5017
|
+
return jtv.object({
|
|
5018
|
+
extraActors: damlTypes.List(damlTypes.Party).decoder,
|
|
5019
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
5020
|
+
});
|
|
5021
|
+
}),
|
|
4491
5022
|
encode: function (__typed__) {
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
}
|
|
4497
|
-
}
|
|
4498
|
-
,
|
|
5023
|
+
return {
|
|
5024
|
+
extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
|
|
5025
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
5026
|
+
};
|
|
5027
|
+
},
|
|
4499
5028
|
};
|
|
4500
5029
|
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
5030
|
+
exports.TransferInstruction_Withdraw = {
|
|
5031
|
+
decoder: damlTypes.lazyMemo(function () {
|
|
5032
|
+
return jtv.object({
|
|
5033
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.decoder,
|
|
5034
|
+
});
|
|
5035
|
+
}),
|
|
4505
5036
|
encode: function (__typed__) {
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
instrumentId: Splice_Api_Token_HoldingV1.InstrumentId.encode(__typed__.instrumentId),
|
|
4511
|
-
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
4512
|
-
executeBefore: damlTypes.Time.encode(__typed__.executeBefore),
|
|
4513
|
-
inputHoldingCids: damlTypes.List(damlTypes.ContractId(Splice_Api_Token_HoldingV1.Holding)).encode(__typed__.inputHoldingCids),
|
|
4514
|
-
meta: Splice_Api_Token_MetadataV1.Metadata.encode(__typed__.meta),
|
|
4515
|
-
};
|
|
4516
|
-
}
|
|
4517
|
-
,
|
|
5037
|
+
return {
|
|
5038
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs.encode(__typed__.extraArgs),
|
|
5039
|
+
};
|
|
5040
|
+
},
|
|
4518
5041
|
};
|
|
4519
|
-
} (module$
|
|
4520
|
-
return module$
|
|
4521
|
-
}
|
|
4522
|
-
|
|
4523
|
-
var hasRequiredTransferInstructionV1;
|
|
4524
|
-
|
|
4525
|
-
function requireTransferInstructionV1 () {
|
|
4526
|
-
if (hasRequiredTransferInstructionV1) return TransferInstructionV1$1;
|
|
4527
|
-
hasRequiredTransferInstructionV1 = 1;
|
|
4528
|
-
(function (exports) {
|
|
4529
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
4530
|
-
function __export(m) {
|
|
4531
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
4532
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4533
|
-
}
|
|
4534
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4535
|
-
__export(requireModule());
|
|
4536
|
-
} (TransferInstructionV1$1));
|
|
4537
|
-
return TransferInstructionV1$1;
|
|
4538
|
-
}
|
|
4539
|
-
|
|
4540
|
-
var hasRequiredToken;
|
|
4541
|
-
|
|
4542
|
-
function requireToken () {
|
|
4543
|
-
if (hasRequiredToken) return Token;
|
|
4544
|
-
hasRequiredToken = 1;
|
|
4545
|
-
(function (exports) {
|
|
4546
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4547
|
-
var AllocationInstructionV1 = requireAllocationInstructionV1();
|
|
4548
|
-
exports.AllocationInstructionV1 = AllocationInstructionV1;
|
|
4549
|
-
var AllocationRequestV1 = requireAllocationRequestV1();
|
|
4550
|
-
exports.AllocationRequestV1 = AllocationRequestV1;
|
|
4551
|
-
var AllocationV1 = requireAllocationV1();
|
|
4552
|
-
exports.AllocationV1 = AllocationV1;
|
|
4553
|
-
var HoldingV1 = requireHoldingV1();
|
|
4554
|
-
exports.HoldingV1 = HoldingV1;
|
|
4555
|
-
var MetadataV1 = requireMetadataV1();
|
|
4556
|
-
exports.MetadataV1 = MetadataV1;
|
|
4557
|
-
var TransferInstructionV1 = requireTransferInstructionV1();
|
|
4558
|
-
exports.TransferInstructionV1 = TransferInstructionV1;
|
|
4559
|
-
} (Token));
|
|
4560
|
-
return Token;
|
|
5042
|
+
} (module$3));
|
|
5043
|
+
return module$3;
|
|
4561
5044
|
}
|
|
4562
5045
|
|
|
4563
|
-
var
|
|
4564
|
-
|
|
4565
|
-
function requireApi () {
|
|
4566
|
-
if (hasRequiredApi) return Api;
|
|
4567
|
-
hasRequiredApi = 1;
|
|
4568
|
-
(function (exports) {
|
|
4569
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4570
|
-
var Token = requireToken();
|
|
4571
|
-
exports.Token = Token;
|
|
4572
|
-
} (Api));
|
|
4573
|
-
return Api;
|
|
4574
|
-
}
|
|
5046
|
+
var moduleExports = requireModule();
|
|
5047
|
+
var module$1 = /*@__PURE__*/getDefaultExportFromCjs(moduleExports);
|
|
4575
5048
|
|
|
4576
|
-
var
|
|
5049
|
+
var module$2 = /*#__PURE__*/_mergeNamespaces({
|
|
5050
|
+
__proto__: null,
|
|
5051
|
+
default: module$1
|
|
5052
|
+
}, [moduleExports]);
|
|
4577
5053
|
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
hasRequiredSplice = 1;
|
|
4581
|
-
(function (exports) {
|
|
4582
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4583
|
-
var Api = requireApi();
|
|
4584
|
-
exports.Api = Api;
|
|
4585
|
-
} (Splice));
|
|
4586
|
-
return Splice;
|
|
4587
|
-
}
|
|
5054
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
5055
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4588
5056
|
|
|
4589
|
-
var
|
|
5057
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
5058
|
+
__proto__: null,
|
|
5059
|
+
AllocationInstructionV1: module$e,
|
|
5060
|
+
AllocationRequestV1: module$b,
|
|
5061
|
+
AllocationV1: module$9,
|
|
5062
|
+
HoldingV1: module$7,
|
|
5063
|
+
MetadataV1: module$5,
|
|
5064
|
+
TransferInstructionV1: module$2
|
|
5065
|
+
});
|
|
4590
5066
|
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
hasRequiredLib = 1;
|
|
4594
|
-
(function (exports) {
|
|
4595
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4596
|
-
var Splice = requireSplice();
|
|
4597
|
-
exports.Splice = Splice;
|
|
4598
|
-
exports.packageId = 'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4';
|
|
4599
|
-
} (lib$2));
|
|
4600
|
-
return lib$2;
|
|
4601
|
-
}
|
|
5067
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
5068
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4602
5069
|
|
|
4603
|
-
var
|
|
5070
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
5071
|
+
__proto__: null,
|
|
5072
|
+
Token: index$3
|
|
5073
|
+
});
|
|
4604
5074
|
|
|
4605
|
-
|
|
5075
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
5076
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4606
5077
|
|
|
4607
|
-
var
|
|
5078
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5079
|
+
__proto__: null,
|
|
5080
|
+
Api: index$2
|
|
5081
|
+
});
|
|
4608
5082
|
|
|
4609
|
-
|
|
5083
|
+
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
5084
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5085
|
+
// Mirrors the layout of the former merged `token-standard-models` codegen package.
|
|
5086
|
+
/**
|
|
5087
|
+
* @deprecated ID of the former merged codegen package, which is not deployed on any ledger.
|
|
5088
|
+
* Each token standard interface lives in its own `splice-api-token-*` package.
|
|
5089
|
+
*/
|
|
5090
|
+
const packageId = 'b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4';
|
|
4610
5091
|
|
|
4611
5092
|
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
4612
5093
|
// SPDX-License-Identifier: Apache-2.0
|
|
4613
|
-
const TransferInstructionV1 =
|
|
4614
|
-
const AllocationInstructionV1 =
|
|
4615
|
-
const AllocationRequestV1 =
|
|
4616
|
-
const AllocationV1 =
|
|
4617
|
-
const HoldingV1 =
|
|
4618
|
-
const MetadataV1 =
|
|
5094
|
+
const TransferInstructionV1 = module$2;
|
|
5095
|
+
const AllocationInstructionV1 = module$e;
|
|
5096
|
+
const AllocationRequestV1 = module$b;
|
|
5097
|
+
const AllocationV1 = module$9;
|
|
5098
|
+
const HoldingV1 = module$7;
|
|
5099
|
+
const MetadataV1 = module$5;
|
|
4619
5100
|
|
|
4620
5101
|
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
4621
5102
|
// SPDX-License-Identifier: Apache-2.0
|
|
@@ -4656,10 +5137,10 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
4656
5137
|
TransferInstructionV1: transferInstructionV1
|
|
4657
5138
|
});
|
|
4658
5139
|
|
|
4659
|
-
var Allocation = moduleExports.Allocation;
|
|
4660
|
-
var AllocationFactory = moduleExports$
|
|
4661
|
-
var AllocationInstruction = moduleExports$
|
|
4662
|
-
var TransferFactory = moduleExports
|
|
4663
|
-
var TransferInstruction = moduleExports
|
|
4664
|
-
export { ALLOCATION_FACTORY_INTERFACE_ID, ALLOCATION_INSTRUCTION_INTERFACE_ID, ALLOCATION_INTERFACE_ID, ALLOCATION_REQUEST_INTERFACE_ID, Allocation, AllocationFactory, AllocationInstruction, AllocationInstructionV1, AllocationRequestV1, AllocationV1, FEATURED_APP_DELEGATE_PROXY_INTERFACE_ID, HOLDING_INTERFACE_ID, HoldingV1, MERGE_DELEGATION_BATCH_MERGE_UTILITY, MERGE_DELEGATION_PROPOSAL_TEMPLATE_ID, MERGE_DELEGATION_TEMPLATE_ID, METADATA_INTERFACE_ID, MetadataV1, index as OffLedger, TRANSFER_FACTORY_INTERFACE_ID, TRANSFER_INSTRUCTION_INTERFACE_ID, TokenStandardClient, TransferFactory, TransferInstruction, TransferInstructionV1 };
|
|
5140
|
+
var Allocation = moduleExports$3.Allocation;
|
|
5141
|
+
var AllocationFactory = moduleExports$5.AllocationFactory;
|
|
5142
|
+
var AllocationInstruction = moduleExports$5.AllocationInstruction;
|
|
5143
|
+
var TransferFactory = moduleExports.TransferFactory;
|
|
5144
|
+
var TransferInstruction = moduleExports.TransferInstruction;
|
|
5145
|
+
export { ALLOCATION_FACTORY_INTERFACE_ID, ALLOCATION_INSTRUCTION_INTERFACE_ID, ALLOCATION_INTERFACE_ID, ALLOCATION_REQUEST_INTERFACE_ID, Allocation, AllocationFactory, AllocationInstruction, AllocationInstructionV1, AllocationRequestV1, AllocationV1, FEATURED_APP_DELEGATE_PROXY_INTERFACE_ID, HOLDING_INTERFACE_ID, HoldingV1, MERGE_DELEGATION_BATCH_MERGE_UTILITY, MERGE_DELEGATION_PROPOSAL_TEMPLATE_ID, MERGE_DELEGATION_TEMPLATE_ID, METADATA_INTERFACE_ID, MetadataV1, index as OffLedger, index$1 as Splice, TRANSFER_FACTORY_INTERFACE_ID, TRANSFER_INSTRUCTION_INTERFACE_ID, TokenStandardClient, TransferFactory, TransferInstruction, TransferInstructionV1, packageId };
|
|
4665
5146
|
//# sourceMappingURL=index.js.map
|