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