@xo-cash/types 0.0.1-development.13730885533 → 0.0.1
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.d.mts +336 -300
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -185,417 +185,423 @@ type XOInvitation = {
|
|
|
185
185
|
*/
|
|
186
186
|
type Satoshis = bigint;
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* A fungible token amount.
|
|
189
|
+
*/
|
|
190
|
+
type FungibleTokenAmount = bigint;
|
|
191
|
+
/**
|
|
192
|
+
* The set of BCH VM versions that an XO template can declare support for.
|
|
193
|
+
*/
|
|
194
|
+
type BchVmVersion = 'BCH_2020_05' | 'BCH_2021_05' | 'BCH_2022_05' | 'BCH_2023_05' | 'BCH_2024_05' | 'BCH_2025_05' | 'BCH_2026_05';
|
|
195
|
+
/**
|
|
196
|
+
* The capability of a non-fungible token.
|
|
197
|
+
* - `minting` — can create new NFTs of the same category.
|
|
198
|
+
* - `mutable` — can update its own commitment data.
|
|
199
|
+
* - `none` — commitment is immutable.
|
|
200
|
+
*/
|
|
201
|
+
type XOTemplateNftCapability = 'minting' | 'mutable' | 'none';
|
|
202
|
+
/**
|
|
203
|
+
* The standard locking script types supported on BCH and by XO.
|
|
204
|
+
*/
|
|
205
|
+
type XOTemplateLockingType = 'p2s' | 'p2pkh' | 'p2sh';
|
|
206
|
+
/**
|
|
207
|
+
* The primitive types that can be declared in an XO template.
|
|
208
|
+
* Used by constants, variables, and data fields.
|
|
209
|
+
*/
|
|
210
|
+
type XOTemplatePrimitiveType = 'boolean' | 'bytes' | 'integer' | 'bigint' | 'string' | 'private_key' | 'public_key';
|
|
211
|
+
/** Identifies a role defined in the template's roles. */
|
|
212
|
+
type XOTemplateRoleIdentifier = string;
|
|
213
|
+
/** Identifies an action defined in the template's actions. */
|
|
214
|
+
type XOTemplateActionIdentifier = string;
|
|
215
|
+
/** Identifies an input defined in the template's inputs. */
|
|
216
|
+
type XOTemplateInputIdentifier = string;
|
|
217
|
+
/** Identifies an output defined in the template's outputs. */
|
|
218
|
+
type XOTemplateOutputIdentifier = string;
|
|
219
|
+
/** Identifies a locking script defined in the template's lockingScripts. */
|
|
220
|
+
type XOTemplateLockingScriptIdentifier = string;
|
|
221
|
+
/** Identifies a script defined in the template's scripts. */
|
|
222
|
+
type XOTemplateScriptIdentifier = string;
|
|
223
|
+
/** Identifies a transaction defined in the template's transactions. */
|
|
224
|
+
type XOTemplateTransactionIdentifier = string;
|
|
225
|
+
/** Identifies a variable defined in the template's variables. */
|
|
226
|
+
type XOTemplateVariableIdentifier = string;
|
|
227
|
+
/** Identifies a constant defined in the template's constants. */
|
|
228
|
+
type XOTemplateConstantIdentifier = string;
|
|
229
|
+
/** Identifies a data field defined in the template's data. */
|
|
230
|
+
type XOTemplateDataIdentifier = string;
|
|
231
|
+
/** Identifies a secret defined in a role or action's secrets list. */
|
|
232
|
+
type XOTemplateSecretIdentifier = string;
|
|
233
|
+
/**
|
|
234
|
+
* Human-readable display properties shared by most template elements.
|
|
189
235
|
*/
|
|
190
236
|
type XOTemplateViewProperties = {
|
|
191
237
|
/**
|
|
192
|
-
* A
|
|
238
|
+
* A short human-readable label for this element.
|
|
193
239
|
*/
|
|
194
240
|
name: string;
|
|
195
241
|
/**
|
|
196
|
-
* A
|
|
242
|
+
* A human-readable explanation of what this element does and when it is relevant.
|
|
197
243
|
*/
|
|
198
244
|
description: string;
|
|
199
245
|
/**
|
|
200
|
-
* An icon for this
|
|
246
|
+
* An optional icon identifier or URL for this element.
|
|
201
247
|
*/
|
|
202
248
|
icon?: string;
|
|
203
249
|
};
|
|
204
250
|
/**
|
|
205
|
-
*
|
|
251
|
+
* The base intent structure. Describes the common data parameters shared by all intent types
|
|
252
|
+
* regardless of what they target. An optional templateIdentifier allows the intent to reference
|
|
253
|
+
* a target defined in a different template.
|
|
206
254
|
*/
|
|
207
|
-
type
|
|
255
|
+
type XOTemplateIntent = {
|
|
208
256
|
/**
|
|
209
|
-
*
|
|
257
|
+
* An optional reference to a target defined in a different template, enabling
|
|
258
|
+
* cross-template interaction.
|
|
210
259
|
*/
|
|
211
|
-
|
|
260
|
+
templateIdentifier?: string;
|
|
212
261
|
/**
|
|
213
|
-
*
|
|
262
|
+
* Identifiers for items to generate when this intent is resolved (e.g. keys or secrets).
|
|
214
263
|
*/
|
|
215
|
-
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* Generic data used in requirements, intents and state.
|
|
219
|
-
*/
|
|
220
|
-
type XOTemplateVariablesAndSecrets = {
|
|
264
|
+
generate?: Array<string>;
|
|
221
265
|
/**
|
|
222
|
-
*
|
|
266
|
+
* Variable values to apply when this intent is resolved.
|
|
223
267
|
*/
|
|
224
|
-
variables?:
|
|
268
|
+
variables?: Array<Record<XOTemplateVariableIdentifier, unknown>>;
|
|
225
269
|
/**
|
|
226
|
-
*
|
|
270
|
+
* Constant values to apply when this intent is resolved.
|
|
227
271
|
*/
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
type XOTemplateIntentParameters = XOTemplateVariablesAndSecrets & {
|
|
272
|
+
constants?: Array<Record<XOTemplateConstantIdentifier, unknown>>;
|
|
273
|
+
/**
|
|
274
|
+
* Secret values to apply when this intent is resolved.
|
|
275
|
+
*/
|
|
276
|
+
secrets?: Array<Record<XOTemplateSecretIdentifier, unknown>>;
|
|
234
277
|
/**
|
|
235
|
-
*
|
|
278
|
+
* The identifier for the intended role for this intent.
|
|
236
279
|
*/
|
|
237
|
-
|
|
280
|
+
role?: XOTemplateRoleIdentifier;
|
|
238
281
|
};
|
|
239
282
|
/**
|
|
240
|
-
*
|
|
283
|
+
* An intent that targets a specific action.
|
|
241
284
|
*/
|
|
242
|
-
type XOTemplateActionIntent =
|
|
285
|
+
type XOTemplateActionIntent = XOTemplateIntent & {
|
|
243
286
|
/**
|
|
244
287
|
* The identifier for the intended action.
|
|
245
288
|
*/
|
|
246
|
-
action:
|
|
247
|
-
/**
|
|
248
|
-
* The identifier for the intended role.
|
|
249
|
-
*/
|
|
250
|
-
role: string;
|
|
289
|
+
action: XOTemplateActionIdentifier;
|
|
251
290
|
};
|
|
252
291
|
/**
|
|
253
|
-
*
|
|
292
|
+
* An intent that targets a specific output.
|
|
254
293
|
*/
|
|
255
|
-
type XOTemplateOutputIntent =
|
|
294
|
+
type XOTemplateOutputIntent = XOTemplateIntent & {
|
|
256
295
|
/**
|
|
257
296
|
* The identifier for the intended output.
|
|
258
297
|
*/
|
|
259
|
-
output:
|
|
298
|
+
output: XOTemplateOutputIdentifier;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* An intent that targets a specific locking script.
|
|
302
|
+
*/
|
|
303
|
+
type XOTemplateLockingScriptIntent = XOTemplateIntent & {
|
|
260
304
|
/**
|
|
261
|
-
* The identifier for the intended
|
|
305
|
+
* The identifier for the intended locking script.
|
|
262
306
|
*/
|
|
263
|
-
|
|
307
|
+
lockingScript: XOTemplateLockingScriptIdentifier;
|
|
264
308
|
};
|
|
265
309
|
/**
|
|
266
|
-
* Requirements for a specific role within an action.
|
|
310
|
+
* Requirements for a specific role within an action. Describes what data or secrets
|
|
311
|
+
* the role must provide when participating.
|
|
267
312
|
*/
|
|
268
313
|
type XOTemplateActionRoleRequirements = {
|
|
269
314
|
/**
|
|
270
315
|
* List of variable identifiers required for this role.
|
|
271
316
|
*/
|
|
272
|
-
variables?:
|
|
317
|
+
variables?: Array<XOTemplateVariableIdentifier>;
|
|
273
318
|
/**
|
|
274
319
|
* List of secret identifiers required for this role.
|
|
275
320
|
*/
|
|
276
|
-
secrets?:
|
|
277
|
-
/**
|
|
278
|
-
* List of state identifiers required for this role.
|
|
279
|
-
*/
|
|
280
|
-
state?: string[];
|
|
281
|
-
/**
|
|
282
|
-
* Slot configuration for this role.
|
|
283
|
-
*/
|
|
284
|
-
slots?: XOTemplateRoleSlots;
|
|
321
|
+
secrets?: Array<XOTemplateSecretIdentifier>;
|
|
285
322
|
};
|
|
286
323
|
/**
|
|
287
|
-
* A role
|
|
324
|
+
* A role specific definition within an action.
|
|
288
325
|
*/
|
|
289
326
|
type XOTemplateActionRole = Partial<XOTemplateViewProperties> & {
|
|
290
327
|
/**
|
|
291
|
-
*
|
|
328
|
+
* Identifiers for data items that should be generated for this role
|
|
329
|
+
* when participating in the action.
|
|
330
|
+
*/
|
|
331
|
+
generate?: Array<string>;
|
|
332
|
+
/**
|
|
333
|
+
* The requirements for this role within this action.
|
|
292
334
|
*/
|
|
293
335
|
requirements?: XOTemplateActionRoleRequirements;
|
|
294
336
|
};
|
|
295
337
|
/**
|
|
296
|
-
*
|
|
338
|
+
* Slot configuration for a role. Declares how many participants of a given
|
|
339
|
+
* role are needed to satisfy the action's requirements.
|
|
297
340
|
*/
|
|
298
|
-
type
|
|
341
|
+
type XOTemplateRoleSlotsRequirements = {
|
|
299
342
|
/**
|
|
300
|
-
*
|
|
343
|
+
* Minimum number of participants required for this role.
|
|
301
344
|
*/
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Slot configuration for this role.
|
|
305
|
-
*/
|
|
306
|
-
slots: XOTemplateRoleSlots;
|
|
307
|
-
/**
|
|
308
|
-
* Optional list of variable identifiers required for this role.
|
|
309
|
-
*/
|
|
310
|
-
variables?: string[];
|
|
345
|
+
min: number;
|
|
311
346
|
/**
|
|
312
|
-
*
|
|
347
|
+
* Maximum number of participants allowed for this role. Undefined means unlimited.
|
|
313
348
|
*/
|
|
314
|
-
|
|
349
|
+
max?: number;
|
|
315
350
|
};
|
|
316
351
|
/**
|
|
317
|
-
*
|
|
352
|
+
* A role entry in an action's requirements block.
|
|
353
|
+
* Declares which role must participate and how many slots are needed.
|
|
318
354
|
*/
|
|
319
|
-
type
|
|
355
|
+
type XOTemplateRoleSlot = {
|
|
320
356
|
/**
|
|
321
|
-
*
|
|
322
|
-
* - `boolean`: Whether satoshis should be included in the balance.
|
|
323
|
-
* - `Satoshis`: A specific amount of satoshis to include in the balance.
|
|
324
|
-
* - `string`: A CashASM evaluation expression that resolves to a satoshi amount.
|
|
357
|
+
* The role identifier that this requirement applies to.
|
|
325
358
|
*/
|
|
326
|
-
|
|
359
|
+
role: XOTemplateRoleIdentifier;
|
|
327
360
|
/**
|
|
328
|
-
*
|
|
361
|
+
* Slot configuration specifying how many participants of this role are required.
|
|
329
362
|
*/
|
|
330
|
-
|
|
363
|
+
slots: XOTemplateRoleSlotsRequirements;
|
|
331
364
|
};
|
|
332
365
|
/**
|
|
333
|
-
*
|
|
366
|
+
* Requirements for an action. Declares which roles must participate and what secrets must be available.
|
|
334
367
|
*/
|
|
335
|
-
type
|
|
368
|
+
type XOTemplateActionRequirements = {
|
|
336
369
|
/**
|
|
337
|
-
* The
|
|
370
|
+
* The participants for this action.
|
|
338
371
|
*/
|
|
339
|
-
|
|
372
|
+
participants?: Array<XOTemplateRoleSlot>;
|
|
340
373
|
/**
|
|
341
|
-
* The
|
|
374
|
+
* The secrets required for this action.
|
|
342
375
|
*/
|
|
343
|
-
|
|
376
|
+
secrets?: Array<XOTemplateSecretIdentifier>;
|
|
344
377
|
};
|
|
345
378
|
/**
|
|
346
|
-
*
|
|
379
|
+
* An action within a template.
|
|
347
380
|
*/
|
|
348
|
-
type
|
|
381
|
+
type XOTemplateAction = XOTemplateViewProperties & {
|
|
349
382
|
/**
|
|
350
|
-
* The
|
|
383
|
+
* The roles for this action.
|
|
351
384
|
*/
|
|
352
|
-
|
|
385
|
+
roles?: Record<XOTemplateRoleIdentifier, XOTemplateActionRole>;
|
|
353
386
|
/**
|
|
354
|
-
* The
|
|
387
|
+
* The requirements for this action.
|
|
355
388
|
*/
|
|
356
|
-
|
|
389
|
+
requirements?: XOTemplateActionRequirements;
|
|
357
390
|
/**
|
|
358
|
-
*
|
|
391
|
+
* Conditions that must be met for this action to be available.
|
|
392
|
+
*
|
|
393
|
+
* @todo More work needs to be done on this field.
|
|
359
394
|
*/
|
|
360
|
-
|
|
361
|
-
};
|
|
362
|
-
/**
|
|
363
|
-
* An icon reference in the template.
|
|
364
|
-
*/
|
|
365
|
-
type XOTemplateIcon = {
|
|
395
|
+
conditions?: Array<string>;
|
|
366
396
|
/**
|
|
367
|
-
*
|
|
397
|
+
* The identifier of the transaction this action produces, referencing an entry
|
|
398
|
+
* in the template's transactions.
|
|
368
399
|
*/
|
|
369
|
-
|
|
400
|
+
transaction?: XOTemplateTransactionIdentifier;
|
|
370
401
|
/**
|
|
371
|
-
* The identifier of the
|
|
402
|
+
* The identifier of the data field this action produces, referencing an entry
|
|
403
|
+
* in the template's data.
|
|
404
|
+
*
|
|
405
|
+
* @todo More work needs to be done on this field.
|
|
372
406
|
*/
|
|
373
|
-
|
|
407
|
+
data?: XOTemplateDataIdentifier;
|
|
374
408
|
};
|
|
375
409
|
/**
|
|
376
|
-
*
|
|
410
|
+
* Non-fungible token configuration within a token field.
|
|
377
411
|
*/
|
|
378
|
-
type
|
|
379
|
-
/**
|
|
380
|
-
* The amount of satoshis to omit from the change.
|
|
381
|
-
* - `Satoshis`: A specific amount of satoshis to omit.
|
|
382
|
-
* - `string`: A CashASM evaluation expression that resolves to the amount of satoshis to omit.
|
|
383
|
-
*/
|
|
384
|
-
satoshis?: Satoshis | string;
|
|
412
|
+
type XOTemplateNonFungibleTokenDetails = {
|
|
385
413
|
/**
|
|
386
|
-
* The
|
|
414
|
+
* The capability of the NFT. May be a known capability value or a CashASM expression resolving to a capability.
|
|
387
415
|
*/
|
|
388
|
-
|
|
416
|
+
capability?: XOTemplateNftCapability | string;
|
|
389
417
|
/**
|
|
390
|
-
* The
|
|
418
|
+
* The commitment data for the NFT, as a string or CashASM expression resolving to a commitment.
|
|
391
419
|
*/
|
|
392
|
-
|
|
420
|
+
commitment?: string;
|
|
393
421
|
};
|
|
394
422
|
/**
|
|
395
423
|
* Token configuration for outputs and inputs.
|
|
396
424
|
*/
|
|
397
425
|
type XOTemplateToken = {
|
|
398
426
|
/**
|
|
399
|
-
* The category of the token.
|
|
427
|
+
* The category of the token, as a string or CashASM expression resolving to a category.
|
|
400
428
|
*/
|
|
401
|
-
category
|
|
429
|
+
category?: string;
|
|
402
430
|
/**
|
|
403
431
|
* The amount of fungible tokens.
|
|
432
|
+
* - `bigint`: A specific token amount.
|
|
433
|
+
* - `string`: A CashASM expression that resolves to the amount.
|
|
404
434
|
*/
|
|
405
|
-
amount?:
|
|
435
|
+
amount?: bigint | string | null;
|
|
406
436
|
/**
|
|
407
|
-
*
|
|
437
|
+
* Non-fungible token configuration. Null indicates no NFT is present.
|
|
408
438
|
*/
|
|
409
|
-
nft?:
|
|
410
|
-
/**
|
|
411
|
-
* The capability of the NFT.
|
|
412
|
-
*/
|
|
413
|
-
capability: string;
|
|
414
|
-
/**
|
|
415
|
-
* The commitment data for the NFT.
|
|
416
|
-
*/
|
|
417
|
-
commitment: string;
|
|
418
|
-
} | null;
|
|
439
|
+
nft?: XOTemplateNonFungibleTokenDetails | null;
|
|
419
440
|
};
|
|
420
441
|
/**
|
|
421
|
-
*
|
|
442
|
+
* Asset amounts configuration. Used for balance tracking on locking scripts and their roles, and for omitting change amounts.
|
|
443
|
+
* All fields are optional. Values may be literal amounts or CashASM expressions resolving to amounts.
|
|
422
444
|
*/
|
|
423
|
-
type
|
|
445
|
+
type XOTemplateAssetAmounts = {
|
|
424
446
|
/**
|
|
425
|
-
* The amount
|
|
426
|
-
* - `Satoshis`: A specific amount
|
|
427
|
-
* - `string`: A CashASM
|
|
428
|
-
|
|
429
|
-
valueSatoshis?: Satoshis | string;
|
|
430
|
-
/**
|
|
431
|
-
* Token configuration for this input.
|
|
447
|
+
* The satoshi amount.
|
|
448
|
+
* - `Satoshis`: A specific bigint amount.
|
|
449
|
+
* - `string`: A CashASM expression that resolves to the amount.
|
|
450
|
+
* - `true`: all, i.e. the entire amount
|
|
432
451
|
*/
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* The outpoint index of this input in the transaction.
|
|
436
|
-
*/
|
|
437
|
-
outpointIndex?: number;
|
|
452
|
+
satoshis?: Satoshis | string | true;
|
|
438
453
|
/**
|
|
439
|
-
* The
|
|
454
|
+
* The fungible token amount.
|
|
455
|
+
* - `FungibleTokenAmount`: A specific bigint amount.
|
|
456
|
+
* - `string`: A CashASM expression that resolves to the amount.
|
|
457
|
+
* - `true`: all, i.e. the entire amount
|
|
440
458
|
*/
|
|
441
|
-
|
|
459
|
+
fungibleTokens?: FungibleTokenAmount | string | true;
|
|
442
460
|
/**
|
|
443
|
-
*
|
|
461
|
+
* Whether a non-fungible token is present (0 for absent, 1 for present),
|
|
462
|
+
* or a CashASM expression that evaluates to 0 or 1.
|
|
463
|
+
* - `true`: all, i.e. the entire amount
|
|
464
|
+
* - `0`: None, i.e. nothing in expected to be included
|
|
465
|
+
* - `1`: present and complete, as value > 1 does not make sense for non-fungible tokens
|
|
466
|
+
* - `string`: A CashASM expression that evaluates to 0 or 1.
|
|
444
467
|
*/
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* The unlocking script for this input.
|
|
448
|
-
*/
|
|
449
|
-
unlockingScript?: string;
|
|
450
|
-
/**
|
|
451
|
-
* Omit amount change configuration for this input.
|
|
452
|
-
*/
|
|
453
|
-
omitChangeAmounts?: XOTemplateOmitChangeAmounts;
|
|
468
|
+
nonfungibleTokens?: true | 0 | 1 | string;
|
|
454
469
|
};
|
|
455
470
|
/**
|
|
456
|
-
*
|
|
471
|
+
* State configuration shared by a locking script and its individual roles.
|
|
472
|
+
* Declares which variables and secrets are tracked in the on-chain state for that participant.
|
|
457
473
|
*/
|
|
458
|
-
type
|
|
459
|
-
/**
|
|
460
|
-
* The action.
|
|
461
|
-
*/
|
|
462
|
-
action: string;
|
|
474
|
+
type XOTemplateState = {
|
|
463
475
|
/**
|
|
464
|
-
*
|
|
476
|
+
* List of variable identifiers tracked in state.
|
|
465
477
|
*/
|
|
466
|
-
|
|
478
|
+
variables?: Array<XOTemplateVariableIdentifier>;
|
|
467
479
|
/**
|
|
468
|
-
*
|
|
480
|
+
* List of secret identifiers tracked in state.
|
|
469
481
|
*/
|
|
470
|
-
secrets?:
|
|
471
|
-
};
|
|
472
|
-
/**
|
|
473
|
-
* State configuration for a locking script role.
|
|
474
|
-
*/
|
|
475
|
-
type XOTemplateLockingScriptRoleState = {
|
|
476
|
-
/**
|
|
477
|
-
* List of variable identifiers required for this role.
|
|
478
|
-
*/
|
|
479
|
-
variables?: string[];
|
|
480
|
-
/**
|
|
481
|
-
* List of secret identifiers required for this role.
|
|
482
|
-
*/
|
|
483
|
-
secrets?: string[];
|
|
482
|
+
secrets?: Array<XOTemplateSecretIdentifier>;
|
|
484
483
|
};
|
|
485
484
|
/**
|
|
486
485
|
* A role definition within a locking script.
|
|
487
486
|
*/
|
|
488
|
-
type XOTemplateLockingScriptRole = {
|
|
487
|
+
type XOTemplateLockingScriptRole = Partial<XOTemplateViewProperties> & {
|
|
489
488
|
/**
|
|
490
489
|
* State configuration for this role.
|
|
491
490
|
*/
|
|
492
|
-
state?:
|
|
491
|
+
state?: XOTemplateState;
|
|
493
492
|
/**
|
|
494
493
|
* List of action references available to this role.
|
|
495
494
|
*/
|
|
496
|
-
actions?:
|
|
495
|
+
actions?: Array<XOTemplateActionIntent>;
|
|
497
496
|
/**
|
|
498
|
-
* Balance configuration for this role.
|
|
497
|
+
* Balance configuration for this role. Partial — any subset of asset amounts may be specified.
|
|
499
498
|
*/
|
|
500
|
-
balance?:
|
|
499
|
+
balance?: Partial<XOTemplateAssetAmounts>;
|
|
501
500
|
/**
|
|
502
501
|
* Whether outputs locked to this script should be selectable for coin selection.
|
|
503
502
|
*/
|
|
504
503
|
selectable?: boolean;
|
|
505
504
|
/**
|
|
506
|
-
*
|
|
505
|
+
* Privacy level for outputs locked to this script.
|
|
506
|
+
* - `number`: A numeric privacy level.
|
|
507
|
+
* - `string`: A CashASM expression that evaluates to a privacy level.
|
|
507
508
|
*/
|
|
508
|
-
privacy?:
|
|
509
|
+
privacy?: number | string;
|
|
509
510
|
};
|
|
510
511
|
/**
|
|
511
512
|
* A locking script definition in the template.
|
|
512
513
|
*/
|
|
513
514
|
type XOTemplateLockingScript = XOTemplateViewProperties & {
|
|
514
515
|
/**
|
|
515
|
-
* The type of locking mechanism.
|
|
516
|
+
* The type of locking mechanism. Defaults to 'p2s' if not specified.
|
|
516
517
|
*/
|
|
517
|
-
lockingType?:
|
|
518
|
+
lockingType?: XOTemplateLockingType;
|
|
518
519
|
/**
|
|
519
|
-
* The locking script.
|
|
520
|
+
* The locking script bytecode.
|
|
520
521
|
*/
|
|
521
|
-
|
|
522
|
+
lockingBytecode: string;
|
|
522
523
|
/**
|
|
523
|
-
* The unlocking script.
|
|
524
|
+
* The unlocking script bytecode.
|
|
524
525
|
*/
|
|
525
|
-
|
|
526
|
+
unlockingBytecode?: string;
|
|
526
527
|
/**
|
|
527
528
|
* The actions available for this locking script.
|
|
528
529
|
*/
|
|
529
|
-
actions?:
|
|
530
|
+
actions?: Array<XOTemplateActionIntent>;
|
|
530
531
|
/**
|
|
531
|
-
*
|
|
532
|
+
* State configuration for this locking script.
|
|
532
533
|
*/
|
|
533
|
-
state?:
|
|
534
|
+
state?: XOTemplateState;
|
|
534
535
|
/**
|
|
535
|
-
*
|
|
536
|
+
* Balance configuration for this locking script. Partial — any subset of asset amounts may be specified.
|
|
536
537
|
*/
|
|
537
|
-
|
|
538
|
+
balance?: Partial<XOTemplateAssetAmounts>;
|
|
538
539
|
/**
|
|
539
|
-
* Whether outputs locked to this script should be
|
|
540
|
-
*/
|
|
541
|
-
balance?: boolean;
|
|
542
|
-
/**
|
|
543
|
-
* Whether outputs locked to this script should be selectable.
|
|
540
|
+
* Whether outputs locked to this script should be selectable for coin selection.
|
|
544
541
|
*/
|
|
545
542
|
selectable?: boolean;
|
|
546
543
|
/**
|
|
547
|
-
*
|
|
544
|
+
* Privacy level for outputs locked to this script.
|
|
545
|
+
* - `number`: A numeric privacy level.
|
|
546
|
+
* - `string`: A CashASM expression that evaluates to a privacy level.
|
|
548
547
|
*/
|
|
549
|
-
privacy?:
|
|
548
|
+
privacy?: number | string;
|
|
550
549
|
/**
|
|
551
550
|
* A map of roles defined for this locking script.
|
|
552
551
|
*/
|
|
553
|
-
roles?:
|
|
554
|
-
[roleId: string]: XOTemplateLockingScriptRole;
|
|
555
|
-
};
|
|
552
|
+
roles?: Record<XOTemplateRoleIdentifier, XOTemplateLockingScriptRole>;
|
|
556
553
|
};
|
|
557
554
|
/**
|
|
558
|
-
*
|
|
559
|
-
*/
|
|
560
|
-
type XOTemplateOutputRole = Partial<XOTemplateViewProperties>;
|
|
561
|
-
/**
|
|
562
|
-
* An output definition in the template.
|
|
555
|
+
* An input definition in the template.
|
|
563
556
|
*/
|
|
564
|
-
type
|
|
557
|
+
type XOTemplateInput = XOTemplateViewProperties & {
|
|
558
|
+
/**
|
|
559
|
+
* The amount of satoshis for this input.
|
|
560
|
+
* - `Satoshis`: A specific amount of satoshis.
|
|
561
|
+
* - `string`: A CashASM expression that resolves to the satoshi amount.
|
|
562
|
+
*/
|
|
563
|
+
valueSatoshis?: Satoshis | string;
|
|
564
|
+
/**
|
|
565
|
+
* Token configuration for this input.
|
|
566
|
+
*/
|
|
567
|
+
token?: XOTemplateToken | null;
|
|
565
568
|
/**
|
|
566
|
-
* The
|
|
569
|
+
* The sequence number of this input.
|
|
570
|
+
* - `number`: A specific sequence number.
|
|
571
|
+
* - `string`: A CashASM expression that resolves to the sequence number.
|
|
572
|
+
*/
|
|
573
|
+
sequenceNumber?: number | string;
|
|
574
|
+
/**
|
|
575
|
+
* The unlocking script for this input.
|
|
576
|
+
*/
|
|
577
|
+
unlockingScript?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Omit amount change configuration for this input.
|
|
567
580
|
*/
|
|
568
|
-
|
|
581
|
+
omitChangeAmounts?: XOTemplateAssetAmounts;
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* An output definition in the template. Inherits all fields from `XOTemplateLockingScript`
|
|
585
|
+
* except `lockingType`, `lockingBytecode` and `unlockingBytecode`: outputs reference a locking script by identifier
|
|
586
|
+
* rather than defining one inline, so repeating any of these fields here would create an ambiguity
|
|
587
|
+
* about which declaration takes precedence.
|
|
588
|
+
*/
|
|
589
|
+
type XOTemplateOutput = Omit<XOTemplateLockingScript, 'lockingType' | 'lockingBytecode' | 'unlockingBytecode'> & {
|
|
569
590
|
/**
|
|
570
|
-
* The locking script
|
|
591
|
+
* The identifier of the locking script in template definition used by this output.
|
|
571
592
|
*/
|
|
572
|
-
|
|
593
|
+
lockingScript: XOTemplateLockingScriptIdentifier;
|
|
573
594
|
/**
|
|
574
595
|
* The amount of satoshis for this output.
|
|
575
596
|
* - `Satoshis`: A specific amount of satoshis.
|
|
576
|
-
* - `string`: A CashASM
|
|
597
|
+
* - `string`: A CashASM expression that resolves to the satoshi amount.
|
|
577
598
|
*/
|
|
578
599
|
valueSatoshis?: Satoshis | string;
|
|
579
600
|
/**
|
|
580
601
|
* Token configuration for this output.
|
|
581
602
|
*/
|
|
582
603
|
token?: XOTemplateToken | null;
|
|
583
|
-
/**
|
|
584
|
-
* Role-specific view properties for this output. When a participant's role is known,
|
|
585
|
-
* these override the generic name, description, and icon.
|
|
586
|
-
*/
|
|
587
|
-
roles?: {
|
|
588
|
-
[roleId: string]: XOTemplateOutputRole;
|
|
589
|
-
};
|
|
590
604
|
};
|
|
591
|
-
/**
|
|
592
|
-
* A role definition within a template.
|
|
593
|
-
*/
|
|
594
|
-
type XOTemplateRoleDescription = XOTemplateViewProperties;
|
|
595
|
-
/**
|
|
596
|
-
* A list of starting actions defined in a template.
|
|
597
|
-
*/
|
|
598
|
-
type XOTemplateStartingActionIntents = XOTemplateActionIntent[];
|
|
599
605
|
/**
|
|
600
606
|
* Reference to an input in a transaction definition in the template.
|
|
601
607
|
*/
|
|
@@ -603,11 +609,11 @@ type XOTemplateTransactionInput = {
|
|
|
603
609
|
/**
|
|
604
610
|
* The input definition identifier.
|
|
605
611
|
*/
|
|
606
|
-
input:
|
|
612
|
+
input: XOTemplateInputIdentifier;
|
|
607
613
|
/**
|
|
608
614
|
* Optional index of this input in the transaction.
|
|
609
615
|
*/
|
|
610
|
-
|
|
616
|
+
inputIndex?: number;
|
|
611
617
|
};
|
|
612
618
|
/**
|
|
613
619
|
* Reference to an output in a transaction definition in the template.
|
|
@@ -616,11 +622,11 @@ type XOTemplateTransactionOutput = {
|
|
|
616
622
|
/**
|
|
617
623
|
* The output definition identifier.
|
|
618
624
|
*/
|
|
619
|
-
output:
|
|
625
|
+
output: XOTemplateOutputIdentifier;
|
|
620
626
|
/**
|
|
621
627
|
* Optional index of this output in the transaction.
|
|
622
628
|
*/
|
|
623
|
-
|
|
629
|
+
outputIndex?: number;
|
|
624
630
|
};
|
|
625
631
|
/**
|
|
626
632
|
* Role-specific data for a transaction within a template.
|
|
@@ -629,11 +635,11 @@ type XOTemplateTransactionRoleData = Partial<XOTemplateViewProperties> & {
|
|
|
629
635
|
/**
|
|
630
636
|
* The inputs required for this role.
|
|
631
637
|
*/
|
|
632
|
-
inputs?:
|
|
638
|
+
inputs?: Array<XOTemplateTransactionInput>;
|
|
633
639
|
/**
|
|
634
640
|
* The outputs required for this role.
|
|
635
641
|
*/
|
|
636
|
-
outputs?:
|
|
642
|
+
outputs?: Array<XOTemplateTransactionOutput>;
|
|
637
643
|
};
|
|
638
644
|
/**
|
|
639
645
|
* A transaction template definition.
|
|
@@ -648,22 +654,45 @@ type XOTemplateTransaction = XOTemplateViewProperties & {
|
|
|
648
654
|
*/
|
|
649
655
|
locktime?: number;
|
|
650
656
|
/**
|
|
651
|
-
* The inputs for this transaction
|
|
657
|
+
* The inputs for this transaction.
|
|
652
658
|
*/
|
|
653
|
-
inputs
|
|
659
|
+
inputs: Array<XOTemplateTransactionInput>;
|
|
654
660
|
/**
|
|
655
|
-
* The outputs for this transaction
|
|
661
|
+
* The outputs for this transaction.
|
|
656
662
|
*/
|
|
657
|
-
outputs
|
|
663
|
+
outputs: Array<XOTemplateTransactionOutput>;
|
|
658
664
|
/**
|
|
659
665
|
* The roles required for this transaction.
|
|
660
666
|
*/
|
|
661
|
-
roles?: Record<
|
|
667
|
+
roles?: Record<XOTemplateRoleIdentifier, XOTemplateTransactionRoleData>;
|
|
662
668
|
/**
|
|
663
669
|
* Whether this transaction can be composed with other transactions.
|
|
664
670
|
*/
|
|
665
671
|
composable?: boolean;
|
|
666
672
|
};
|
|
673
|
+
/**
|
|
674
|
+
* A constant value definition in the template.
|
|
675
|
+
*/
|
|
676
|
+
type XOTemplateConstant = XOTemplateViewProperties & {
|
|
677
|
+
/**
|
|
678
|
+
* The data type of this constant.
|
|
679
|
+
*/
|
|
680
|
+
type: XOTemplatePrimitiveType;
|
|
681
|
+
/**
|
|
682
|
+
* The value of this constant.
|
|
683
|
+
*/
|
|
684
|
+
value: unknown;
|
|
685
|
+
/**
|
|
686
|
+
* An optional hint to help apps and users understand what this constant represents.
|
|
687
|
+
*/
|
|
688
|
+
hint?: string;
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* An import default value intent. Extends the base intent with optional view
|
|
692
|
+
* properties that the engine evaluates at runtime to produce human-readable output.
|
|
693
|
+
* The engine overrides whatever values are set here when resolving the target for a participant.
|
|
694
|
+
*/
|
|
695
|
+
type XOTemplateImportDefaultValue = XOTemplateIntent & Partial<XOTemplateViewProperties>;
|
|
667
696
|
/**
|
|
668
697
|
* A variable definition in the template.
|
|
669
698
|
*/
|
|
@@ -671,44 +700,68 @@ type XOTemplateVariable = XOTemplateViewProperties & {
|
|
|
671
700
|
/**
|
|
672
701
|
* The data type of this variable.
|
|
673
702
|
*/
|
|
674
|
-
type?:
|
|
703
|
+
type?: XOTemplatePrimitiveType;
|
|
675
704
|
/**
|
|
676
705
|
* A hint to help users understand what value to provide.
|
|
677
706
|
*/
|
|
678
707
|
hint?: string;
|
|
708
|
+
/**
|
|
709
|
+
* A neutral intent that the engine uses to populate the default value for this variable.
|
|
710
|
+
* View properties (name, description, icon) may contain CashASM expressions that the
|
|
711
|
+
* engine evaluates at runtime to produce human-readable output.
|
|
712
|
+
*/
|
|
713
|
+
importDefaultValue?: XOTemplateImportDefaultValue;
|
|
679
714
|
};
|
|
680
715
|
/**
|
|
681
|
-
*
|
|
716
|
+
* A data field definition in the template.
|
|
717
|
+
*
|
|
718
|
+
* @todo More work needs to be done on this type.
|
|
682
719
|
*/
|
|
683
|
-
type
|
|
720
|
+
type XOTemplateData = {
|
|
684
721
|
/**
|
|
685
|
-
* The
|
|
722
|
+
* The data type of this data field.
|
|
686
723
|
*/
|
|
687
|
-
|
|
688
|
-
[roleId: string]: XOTemplateActionRole;
|
|
689
|
-
};
|
|
724
|
+
type: XOTemplatePrimitiveType;
|
|
690
725
|
/**
|
|
691
|
-
* The
|
|
726
|
+
* The value for this data field.
|
|
692
727
|
*/
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
728
|
+
value: unknown;
|
|
729
|
+
/**
|
|
730
|
+
* An optional hint to help apps and users understand this data field.
|
|
731
|
+
*/
|
|
732
|
+
hint?: string;
|
|
733
|
+
};
|
|
734
|
+
/**
|
|
735
|
+
* An icon reference in the template.
|
|
736
|
+
*/
|
|
737
|
+
type XOTemplateIcon = {
|
|
738
|
+
/**
|
|
739
|
+
* A name for this icon.
|
|
740
|
+
*/
|
|
741
|
+
name: string;
|
|
699
742
|
/**
|
|
700
|
-
*
|
|
701
|
-
* to be available.
|
|
743
|
+
* The identifier of the icon resource.
|
|
702
744
|
*/
|
|
703
|
-
|
|
745
|
+
hash: string;
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* A resource reference attached to a template. Extends view properties with a URL
|
|
749
|
+
* pointing to external documentation or tooling.
|
|
750
|
+
*/
|
|
751
|
+
type XOTemplateResource = XOTemplateViewProperties & {
|
|
704
752
|
/**
|
|
705
|
-
* The
|
|
753
|
+
* The URL for this resource.
|
|
706
754
|
*/
|
|
707
|
-
|
|
755
|
+
url: string;
|
|
756
|
+
};
|
|
757
|
+
/**
|
|
758
|
+
* Default settings applied across the template when no explicit per-action overrides are given.
|
|
759
|
+
*/
|
|
760
|
+
type XOTemplateDefaults = {
|
|
708
761
|
/**
|
|
709
|
-
* The
|
|
762
|
+
* The default change output intent applied when a transaction generates change.
|
|
710
763
|
*/
|
|
711
|
-
|
|
764
|
+
change?: XOTemplateOutputIntent;
|
|
712
765
|
};
|
|
713
766
|
/**
|
|
714
767
|
* The XO Template.
|
|
@@ -720,92 +773,75 @@ type XOTemplate = XOTemplateViewProperties & {
|
|
|
720
773
|
*/
|
|
721
774
|
$schema: string;
|
|
722
775
|
/**
|
|
723
|
-
* A
|
|
776
|
+
* A string identifying the format version of this template.
|
|
724
777
|
*/
|
|
725
|
-
version?:
|
|
778
|
+
version?: string;
|
|
726
779
|
/**
|
|
727
|
-
* The
|
|
780
|
+
* The BCH VM versions that this template supports. At least one version is required.
|
|
728
781
|
*/
|
|
729
|
-
supported
|
|
782
|
+
supported: Array<BchVmVersion>;
|
|
730
783
|
/**
|
|
731
784
|
* Optional default settings used in this template.
|
|
732
785
|
*/
|
|
733
|
-
defaults?:
|
|
734
|
-
change?: XOTemplateOutputIntent;
|
|
735
|
-
};
|
|
786
|
+
defaults?: XOTemplateDefaults;
|
|
736
787
|
/**
|
|
737
788
|
* The roles defined in this template.
|
|
738
789
|
*/
|
|
739
|
-
roles
|
|
740
|
-
[roleId: string]: XOTemplateRoleDescription;
|
|
741
|
-
};
|
|
790
|
+
roles: Record<XOTemplateRoleIdentifier, XOTemplateViewProperties>;
|
|
742
791
|
/**
|
|
743
792
|
* A list of entry points defining which actions are available to each role at the start.
|
|
744
793
|
*/
|
|
745
|
-
start:
|
|
794
|
+
start: Array<XOTemplateActionIntent>;
|
|
746
795
|
/**
|
|
747
796
|
* The actions defined in this template.
|
|
748
797
|
*/
|
|
749
|
-
actions:
|
|
750
|
-
[actionId: string]: XOTemplateAction;
|
|
751
|
-
};
|
|
798
|
+
actions: Record<XOTemplateActionIdentifier, XOTemplateAction>;
|
|
752
799
|
/**
|
|
753
800
|
* The data fields defined in this template.
|
|
754
801
|
*/
|
|
755
|
-
data?:
|
|
756
|
-
[dataId: string]: XOTemplateData;
|
|
757
|
-
};
|
|
802
|
+
data?: Record<XOTemplateDataIdentifier, XOTemplateData>;
|
|
758
803
|
/**
|
|
759
804
|
* The transaction templates defined in this template.
|
|
760
805
|
*/
|
|
761
|
-
transactions?:
|
|
762
|
-
[transactionId: string]: XOTemplateTransaction;
|
|
763
|
-
};
|
|
806
|
+
transactions?: Record<XOTemplateTransactionIdentifier, XOTemplateTransaction>;
|
|
764
807
|
/**
|
|
765
808
|
* The inputs defined in this template.
|
|
766
809
|
*/
|
|
767
|
-
inputs:
|
|
768
|
-
[inputId: string]: XOTemplateInput;
|
|
769
|
-
};
|
|
810
|
+
inputs: Record<XOTemplateInputIdentifier, XOTemplateInput>;
|
|
770
811
|
/**
|
|
771
812
|
* The outputs defined in this template.
|
|
772
813
|
*/
|
|
773
|
-
outputs:
|
|
774
|
-
[outputId: string]: XOTemplateOutput;
|
|
775
|
-
};
|
|
814
|
+
outputs: Record<XOTemplateOutputIdentifier, XOTemplateOutput>;
|
|
776
815
|
/**
|
|
777
816
|
* The locking script templates defined in this template.
|
|
778
817
|
*/
|
|
779
|
-
lockingScripts:
|
|
780
|
-
[scriptId: string]: XOTemplateLockingScript;
|
|
781
|
-
};
|
|
818
|
+
lockingScripts: Record<XOTemplateLockingScriptIdentifier, XOTemplateLockingScript>;
|
|
782
819
|
/**
|
|
783
|
-
* The scripts used in this template
|
|
820
|
+
* The scripts used in this template, The keys are identifiers of the scripts and
|
|
821
|
+
* the values are the bytecode or cashASM expressions.
|
|
784
822
|
*/
|
|
785
|
-
scripts:
|
|
786
|
-
[scriptId: string]: string;
|
|
787
|
-
};
|
|
823
|
+
scripts: Record<XOTemplateScriptIdentifier, string>;
|
|
788
824
|
/**
|
|
789
825
|
* The constants defined in this template.
|
|
790
826
|
*/
|
|
791
|
-
constants?:
|
|
792
|
-
[constantId: string]: XOTemplateConstant;
|
|
793
|
-
};
|
|
827
|
+
constants?: Record<XOTemplateConstantIdentifier, XOTemplateConstant>;
|
|
794
828
|
/**
|
|
795
829
|
* The variables that must be provided for use in the template's scripts.
|
|
796
830
|
*/
|
|
797
|
-
variables?:
|
|
798
|
-
|
|
799
|
-
|
|
831
|
+
variables?: Record<XOTemplateVariableIdentifier, XOTemplateVariable>;
|
|
832
|
+
/**
|
|
833
|
+
* Resource references providing external documentation or tooling links.
|
|
834
|
+
*/
|
|
835
|
+
resources?: Array<XOTemplateResource>;
|
|
800
836
|
/**
|
|
801
837
|
* The icons available for use throughout the template.
|
|
802
838
|
*/
|
|
803
|
-
icons?: XOTemplateIcon
|
|
839
|
+
icons?: Array<XOTemplateIcon>;
|
|
804
840
|
/**
|
|
805
841
|
* The scenarios defined in this template.
|
|
806
842
|
*/
|
|
807
|
-
scenarios
|
|
843
|
+
scenarios?: unknown;
|
|
808
844
|
};
|
|
809
845
|
//#endregion
|
|
810
|
-
export { Satoshis, XOInvitation, XOInvitationCommit, XOInvitationInput, XOInvitationOutput, XOInvitationRequirements, XOInvitationRoleRequirement, XOInvitationVariable, XOInvitationVariableValue, XOTemplate, XOTemplateAction, XOTemplateActionIntent,
|
|
846
|
+
export { BchVmVersion, FungibleTokenAmount, Satoshis, XOInvitation, XOInvitationCommit, XOInvitationInput, XOInvitationOutput, XOInvitationRequirements, XOInvitationRoleRequirement, XOInvitationVariable, XOInvitationVariableValue, XOTemplate, XOTemplateAction, XOTemplateActionIdentifier, XOTemplateActionIntent, XOTemplateActionRequirements, XOTemplateActionRole, XOTemplateActionRoleRequirements, XOTemplateAssetAmounts, XOTemplateConstant, XOTemplateConstantIdentifier, XOTemplateData, XOTemplateDataIdentifier, XOTemplateDefaults, XOTemplateIcon, XOTemplateImportDefaultValue, XOTemplateInput, XOTemplateInputIdentifier, XOTemplateIntent, XOTemplateLockingScript, XOTemplateLockingScriptIdentifier, XOTemplateLockingScriptIntent, XOTemplateLockingScriptRole, XOTemplateLockingType, XOTemplateNftCapability, XOTemplateNonFungibleTokenDetails, XOTemplateOutput, XOTemplateOutputIdentifier, XOTemplateOutputIntent, XOTemplatePrimitiveType, XOTemplateResource, XOTemplateRoleIdentifier, XOTemplateRoleSlot, XOTemplateRoleSlotsRequirements, XOTemplateScriptIdentifier, XOTemplateSecretIdentifier, XOTemplateState, XOTemplateToken, XOTemplateTransaction, XOTemplateTransactionIdentifier, XOTemplateTransactionInput, XOTemplateTransactionOutput, XOTemplateTransactionRoleData, XOTemplateVariable, XOTemplateVariableIdentifier, XOTemplateViewProperties };
|
|
811
847
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../source/invitation.ts","../source/template.ts"],"mappings":";;;;;AAKA;KAAY,2BAAA;EACR,SAAA;EACA,MAAA;EACA,OAAA;AAAA;;;;KAMQ,wBAAA,GAA2B,2BAAA;EACnC,KAAA,GAAQ,MAAA,SAAe,2BAAA;AAAA;;;;KAMf,yBAAA;;;;KAKA,oBAAA;EAXe;;;EAgBvB,kBAAA;EAViC;;;EAejC,KAAA,EAAO,yBAAA;EAVC;;;EAeR,cAAA;AAAA;;;;KAMQ,iBAAA,GAAoB,OAAA,CAAQ,KAAA;EANtB;AAMlB;;EAKI,eAAA;EALmC;;;EAUnC,gBAAA;EAAA;;;;EAMA,cAAA;EAgBS;;AAOb;EAlBI,UAAA;IAkBqC;;;IAbjC,gBAAA;IAkBJ;;;;IAZI,KAAA;EAAA;AAAA;;;AAkDR;KA3CY,kBAAA,GAAqB,OAAA,CAAQ,MAAA;;;;EAKrC,gBAAA;EAmFgC;;;EA9EhC,gBAAA;EAgDA;;;EA3CA,gBAAA;EA+DI;;;EA1DJ,cAAA;EAoEI;;;EA/DJ,UAAA;IA0EkB;;AAMtB;IA3EQ,gBAA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