@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 CHANGED
@@ -185,417 +185,423 @@ type XOInvitation = {
185
185
  */
186
186
  type Satoshis = bigint;
187
187
  /**
188
- * View properties for template elements.
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 name for this item.
238
+ * A short human-readable label for this element.
193
239
  */
194
240
  name: string;
195
241
  /**
196
- * A description for this item.
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 item.
246
+ * An optional icon identifier or URL for this element.
201
247
  */
202
248
  icon?: string;
203
249
  };
204
250
  /**
205
- * Slot configuration for a role requirement.
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 XOTemplateRoleSlots = {
255
+ type XOTemplateIntent = {
208
256
  /**
209
- * Minimum number of slots required for this role.
257
+ * An optional reference to a target defined in a different template, enabling
258
+ * cross-template interaction.
210
259
  */
211
- min: number;
260
+ templateIdentifier?: string;
212
261
  /**
213
- * Maximum number of slots allowed for this role (undefined means unlimited).
262
+ * Identifiers for items to generate when this intent is resolved (e.g. keys or secrets).
214
263
  */
215
- max: number | undefined;
216
- };
217
- /**
218
- * Generic data used in requirements, intents and state.
219
- */
220
- type XOTemplateVariablesAndSecrets = {
264
+ generate?: Array<string>;
221
265
  /**
222
- * List of identifiers and their data as public variables.
266
+ * Variable values to apply when this intent is resolved.
223
267
  */
224
- variables?: string[];
268
+ variables?: Array<Record<XOTemplateVariableIdentifier, unknown>>;
225
269
  /**
226
- * List of identifiers and their data as private secrets.
270
+ * Constant values to apply when this intent is resolved.
227
271
  */
228
- secrets?: string[];
229
- };
230
- /**
231
- * Specific data used to set up intents.
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
- * List of identifiers to generate data for (e.g., keys, secrets).
278
+ * The identifier for the intended role for this intent.
236
279
  */
237
- generate?: string[];
280
+ role?: XOTemplateRoleIdentifier;
238
281
  };
239
282
  /**
240
- * Parameters defining an intent to take an action.
283
+ * An intent that targets a specific action.
241
284
  */
242
- type XOTemplateActionIntent = XOTemplateIntentParameters & {
285
+ type XOTemplateActionIntent = XOTemplateIntent & {
243
286
  /**
244
287
  * The identifier for the intended action.
245
288
  */
246
- action: string;
247
- /**
248
- * The identifier for the intended role.
249
- */
250
- role: string;
289
+ action: XOTemplateActionIdentifier;
251
290
  };
252
291
  /**
253
- * Parameters defining an intent to take make an output.
292
+ * An intent that targets a specific output.
254
293
  */
255
- type XOTemplateOutputIntent = XOTemplateIntentParameters & {
294
+ type XOTemplateOutputIntent = XOTemplateIntent & {
256
295
  /**
257
296
  * The identifier for the intended output.
258
297
  */
259
- output: string;
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 role.
305
+ * The identifier for the intended locking script.
262
306
  */
263
- role: string;
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?: string[];
317
+ variables?: Array<XOTemplateVariableIdentifier>;
273
318
  /**
274
319
  * List of secret identifiers required for this role.
275
320
  */
276
- secrets?: string[];
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-specific definition within an action.
324
+ * A role specific definition within an action.
288
325
  */
289
326
  type XOTemplateActionRole = Partial<XOTemplateViewProperties> & {
290
327
  /**
291
- * The requirements for this role for this action.
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
- * A role requirement entry in an action's requirements.
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 XOTemplateActionRoleRequirement = {
341
+ type XOTemplateRoleSlotsRequirements = {
299
342
  /**
300
- * The role identifier that this requirement applies to.
343
+ * Minimum number of participants required for this role.
301
344
  */
302
- role: string;
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
- * Optional list of state identifiers required for this role.
347
+ * Maximum number of participants allowed for this role. Undefined means unlimited.
313
348
  */
314
- state?: string[];
349
+ max?: number;
315
350
  };
316
351
  /**
317
- * Balance configuration for a locking script role.
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 XOTemplateBalance = {
355
+ type XOTemplateRoleSlot = {
320
356
  /**
321
- * Whether satoshis should be included in balance.
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
- satoshis: boolean | Satoshis | string;
359
+ role: XOTemplateRoleIdentifier;
327
360
  /**
328
- * Whether fungible tokens should be included in balance (boolean or number).
361
+ * Slot configuration specifying how many participants of this role are required.
329
362
  */
330
- fungibleTokens: boolean | number;
363
+ slots: XOTemplateRoleSlotsRequirements;
331
364
  };
332
365
  /**
333
- * A constant value definition in the template.
366
+ * Requirements for an action. Declares which roles must participate and what secrets must be available.
334
367
  */
335
- type XOTemplateConstant = XOTemplateViewProperties & {
368
+ type XOTemplateActionRequirements = {
336
369
  /**
337
- * The type of this constant.
370
+ * The participants for this action.
338
371
  */
339
- type: string;
372
+ participants?: Array<XOTemplateRoleSlot>;
340
373
  /**
341
- * The value of this constant.
374
+ * The secrets required for this action.
342
375
  */
343
- value?: unknown;
376
+ secrets?: Array<XOTemplateSecretIdentifier>;
344
377
  };
345
378
  /**
346
- * A data field definition in the template.
379
+ * An action within a template.
347
380
  */
348
- type XOTemplateData = {
381
+ type XOTemplateAction = XOTemplateViewProperties & {
349
382
  /**
350
- * The value for this data field.
383
+ * The roles for this action.
351
384
  */
352
- value: string;
385
+ roles?: Record<XOTemplateRoleIdentifier, XOTemplateActionRole>;
353
386
  /**
354
- * The type of this data field.
387
+ * The requirements for this action.
355
388
  */
356
- type: string;
389
+ requirements?: XOTemplateActionRequirements;
357
390
  /**
358
- * An optional hint to help apps and users understand this data field.
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
- hint?: string;
361
- };
362
- /**
363
- * An icon reference in the template.
364
- */
365
- type XOTemplateIcon = {
395
+ conditions?: Array<string>;
366
396
  /**
367
- * A name for this icon.
397
+ * The identifier of the transaction this action produces, referencing an entry
398
+ * in the template's transactions.
368
399
  */
369
- name: string;
400
+ transaction?: XOTemplateTransactionIdentifier;
370
401
  /**
371
- * The identifier of the icon resource.
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
- hash: string;
407
+ data?: XOTemplateDataIdentifier;
374
408
  };
375
409
  /**
376
- * Change automation configuration for inputs.
410
+ * Non-fungible token configuration within a token field.
377
411
  */
378
- type XOTemplateOmitChangeAmounts = {
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 amount of fungible tokens to omit from the change.
414
+ * The capability of the NFT. May be a known capability value or a CashASM expression resolving to a capability.
387
415
  */
388
- fungibleTokens?: number | string;
416
+ capability?: XOTemplateNftCapability | string;
389
417
  /**
390
- * The amount of non-fungible tokens to omit from the change.
418
+ * The commitment data for the NFT, as a string or CashASM expression resolving to a commitment.
391
419
  */
392
- nonfungibleTokens?: number | string;
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: string;
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?: string | number | null;
435
+ amount?: bigint | string | null;
406
436
  /**
407
- * The configuration for the non-fungible token.
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
- * An input definition in the template.
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 XOTemplateInput = XOTemplateViewProperties & {
445
+ type XOTemplateAssetAmounts = {
424
446
  /**
425
- * The amount of satoshis for this input.
426
- * - `Satoshis`: A specific amount of satoshis.
427
- * - `string`: A CashASM evaluation expression that resolves to the satoshi amount.
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
- token?: XOTemplateToken | null;
434
- /**
435
- * The outpoint index of this input in the transaction.
436
- */
437
- outpointIndex?: number;
452
+ satoshis?: Satoshis | string | true;
438
453
  /**
439
- * The outpoint transaction hash of this input in the transaction.
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
- outpointTransactionHash?: string;
459
+ fungibleTokens?: FungibleTokenAmount | string | true;
442
460
  /**
443
- * The sequence number of this input.
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
- sequenceNumber?: number;
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
- * An action reference within a role.
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 XOTemplateLockingScriptRoleAction = {
459
- /**
460
- * The action.
461
- */
462
- action: string;
474
+ type XOTemplateState = {
463
475
  /**
464
- * The role identifier for this action.
476
+ * List of variable identifiers tracked in state.
465
477
  */
466
- role: string;
478
+ variables?: Array<XOTemplateVariableIdentifier>;
467
479
  /**
468
- * The secret identifier required for this action.
480
+ * List of secret identifiers tracked in state.
469
481
  */
470
- secrets?: string | string[];
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?: XOTemplateLockingScriptRoleState;
491
+ state?: XOTemplateState;
493
492
  /**
494
493
  * List of action references available to this role.
495
494
  */
496
- actions?: XOTemplateLockingScriptRoleAction[];
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?: XOTemplateBalance;
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
- * Whether outputs locked to this script are considered private.
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?: boolean;
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?: string;
518
+ lockingType?: XOTemplateLockingType;
518
519
  /**
519
- * The locking script.
520
+ * The locking script bytecode.
520
521
  */
521
- lockingScript?: string;
522
+ lockingBytecode: string;
522
523
  /**
523
- * The unlocking script.
524
+ * The unlocking script bytecode.
524
525
  */
525
- unlockingScript?: string;
526
+ unlockingBytecode?: string;
526
527
  /**
527
528
  * The actions available for this locking script.
528
529
  */
529
- actions?: string[];
530
+ actions?: Array<XOTemplateActionIntent>;
530
531
  /**
531
- * The state for this locking script.
532
+ * State configuration for this locking script.
532
533
  */
533
- state?: string[];
534
+ state?: XOTemplateState;
534
535
  /**
535
- * The secrets for this locking script.
536
+ * Balance configuration for this locking script. Partial — any subset of asset amounts may be specified.
536
537
  */
537
- secrets?: string[];
538
+ balance?: Partial<XOTemplateAssetAmounts>;
538
539
  /**
539
- * Whether outputs locked to this script should be included in the balance.
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
- * Whether outputs locked to this script are considered private.
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?: boolean;
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
- * Role-specific view properties for an output.
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 XOTemplateOutput = XOTemplateViewProperties & {
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 outpoint index of this output in the transaction.
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
- outpointIndex?: number;
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 for this output.
591
+ * The identifier of the locking script in template definition used by this output.
571
592
  */
572
- lockscript?: string;
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 evaluation expression that resolves to the satoshi amount.
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: string;
612
+ input: XOTemplateInputIdentifier;
607
613
  /**
608
614
  * Optional index of this input in the transaction.
609
615
  */
610
- index?: number;
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: string;
625
+ output: XOTemplateOutputIdentifier;
620
626
  /**
621
627
  * Optional index of this output in the transaction.
622
628
  */
623
- index?: number;
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?: string[];
638
+ inputs?: Array<XOTemplateTransactionInput>;
633
639
  /**
634
640
  * The outputs required for this role.
635
641
  */
636
- outputs?: string[];
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?: XOTemplateTransactionInput[];
659
+ inputs: Array<XOTemplateTransactionInput>;
654
660
  /**
655
- * The outputs for this transaction
661
+ * The outputs for this transaction.
656
662
  */
657
- outputs?: XOTemplateTransactionOutput[];
663
+ outputs: Array<XOTemplateTransactionOutput>;
658
664
  /**
659
665
  * The roles required for this transaction.
660
666
  */
661
- roles?: Record<string, XOTemplateTransactionRoleData>;
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?: string;
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
- * An action within a template.
716
+ * A data field definition in the template.
717
+ *
718
+ * @todo More work needs to be done on this type.
682
719
  */
683
- type XOTemplateAction = XOTemplateViewProperties & {
720
+ type XOTemplateData = {
684
721
  /**
685
- * The roles for this action.
722
+ * The data type of this data field.
686
723
  */
687
- roles?: {
688
- [roleId: string]: XOTemplateActionRole;
689
- };
724
+ type: XOTemplatePrimitiveType;
690
725
  /**
691
- * The requirements for this action.
726
+ * The value for this data field.
692
727
  */
693
- requirements?: {
694
- roles?: XOTemplateActionRoleRequirement[];
695
- variables?: string[];
696
- state?: string[];
697
- secrets?: string[];
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
- * Optional condition script that must evaluate to true for this action
701
- * to be available.
743
+ * The identifier of the icon resource.
702
744
  */
703
- condition?: string;
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 transaction that this action may create.
753
+ * The URL for this resource.
706
754
  */
707
- transaction?: string;
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 data that this action may use or modify.
762
+ * The default change output intent applied when a transaction generates change.
710
763
  */
711
- data?: string[];
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 number identifying the format version of this template.
776
+ * A string identifying the format version of this template.
724
777
  */
725
- version?: number;
778
+ version?: string;
726
779
  /**
727
- * The supported authentication virtual machine versions or network identifiers for this template.
780
+ * The BCH VM versions that this template supports. At least one version is required.
728
781
  */
729
- supported?: string[];
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: XOTemplateStartingActionIntents;
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
- [variableId: string]: XOTemplateVariable;
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: unknown;
843
+ scenarios?: unknown;
808
844
  };
809
845
  //#endregion
810
- export { Satoshis, XOInvitation, XOInvitationCommit, XOInvitationInput, XOInvitationOutput, XOInvitationRequirements, XOInvitationRoleRequirement, XOInvitationVariable, XOInvitationVariableValue, XOTemplate, XOTemplateAction, XOTemplateActionIntent, XOTemplateActionRole, XOTemplateActionRoleRequirement, XOTemplateActionRoleRequirements, XOTemplateBalance, XOTemplateConstant, XOTemplateData, XOTemplateIcon, XOTemplateInput, XOTemplateIntentParameters, XOTemplateLockingScript, XOTemplateLockingScriptRole, XOTemplateLockingScriptRoleAction, XOTemplateLockingScriptRoleState, XOTemplateOmitChangeAmounts, XOTemplateOutput, XOTemplateOutputIntent, XOTemplateOutputRole, XOTemplateRoleDescription, XOTemplateRoleSlots, XOTemplateStartingActionIntents, XOTemplateToken, XOTemplateTransaction, XOTemplateTransactionInput, XOTemplateTransactionOutput, XOTemplateTransactionRoleData, XOTemplateVariable, XOTemplateVariablesAndSecrets, XOTemplateViewProperties };
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
@@ -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,gBAAA;IAo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,EAAS,MAAA,CAAO,0BAAA,EAA4B,gBAAA;EAlFlB;;;EAuF1B,cAAA,EAAgB,MAAA,CAAO,iCAAA,EAAmC,uBAAA;EAxElD;;;;EA8ER,OAAA,EAAS,MAAA,CAAO,0BAAA;EAnER;;;EAwER,SAAA,GAAY,MAAA,CAAO,4BAAA,EAA8B,kBAAA;EAxDhC;;;EA6DjB,SAAA,GAAY,MAAA,CAAO,4BAAA,EAA8B,kBAAA;EAnDT;;;EAwDxC,SAAA,GAAY,KAAA,CAAM,kBAAA;EA9CF;;;EAmDhB,KAAA,GAAQ,KAAA,CAAM,cAAA;EA9C0B;;;EAmDxC,SAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xo-cash/types",
3
- "version": "0.0.1-development.13730885533",
3
+ "version": "0.0.1",
4
4
  "description": "XO type definitions and interfaces",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.mts",