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