@xo-cash/engine 0.0.1-development.14141361677 → 0.0.1-development.14146115040

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
@@ -2,8 +2,8 @@ import { CompilerBch, CompilerConfiguration } from "@bitauth/libauth";
2
2
  import { PrivateKeyRecordForLibauthCompiler } from "@xo-cash/crypto";
3
3
  import { ScriptHashData, State, StorageType, StoredInvitation, UnspentOutputData } from "@xo-cash/state";
4
4
  import { generateTemplateIdentifier, parseTemplate } from "@xo-cash/utils";
5
- import { ChainStatus } from "@electrum-cash/application";
6
- import { ScriptHashListUnspentResponse, ScriptHashSubscribeNotification, TransactionHash } from "@electrum-cash/protocol";
5
+ import { ChainStatus, ScriptHashUpdate } from "@electrum-cash/application";
6
+ import { ScriptHashListUnspentResponse, TransactionHash } from "@electrum-cash/protocol";
7
7
  import { ElectrumServers } from "@electrum-cash/servers";
8
8
  import { XOInvitation, XOInvitationCommit, XOInvitationInput, XOInvitationOutput, XOInvitationRequirements, XOInvitationVariable, XOInvitationVariableValue, XOTemplate, XOTemplateAction, XOTemplateActionIntent, XOTemplateLockingScript, XOTemplateLockingScriptRole, XOTemplateLockingType, XOTemplateOutput, XOTemplateTransaction } from "@xo-cash/types";
9
9
 
@@ -142,8 +142,8 @@ declare class Engine {
142
142
  /**
143
143
  * Constructs a new instance of XO Engine.
144
144
  * @private
145
- * @param {string} seed - The wallet seed.
146
- * @param {State} store - Store instance.
145
+ * @param {string} mnemonic - The BIP39 mnemonic to be used for this instance of the engine.
146
+ * @param {State} state - State instance.
147
147
  * @param {BlockchainMonitor} blockchainMonitor - Blockchain monitor instance.
148
148
  */
149
149
  private constructor();
@@ -151,11 +151,11 @@ declare class Engine {
151
151
  * Initializes and creates a new XO Engine instance.
152
152
  * Configures the state, initializes the sync server and monitor for app and blockchain events
153
153
  *
154
- * @param {string} seed - Wallet seed used for signing and/or key derivation.
154
+ * @param {string} mnemonic - BIP39 mnemonic to be used for this instance of the engine.
155
155
  * @param {XOEngineOptions} options - Database configuration options.
156
156
  * @returns {Promise<Engine>} An initialized Engine instance.
157
157
  */
158
- static create(seed: string, options: XOEngineOptions): Promise<Engine>;
158
+ static create(mnemonic: string, options: XOEngineOptions): Promise<Engine>;
159
159
  /**
160
160
  * Stops the engine instance and cleans up resources.
161
161
  * @returns {Promise<void>} Resolves when the engine is stopped.
@@ -246,7 +246,7 @@ declare class Engine {
246
246
  * @param {string} params.actionIdentifier - Identifier for the action to initiate.
247
247
  * @returns {Promise<XOInvitation>} A promise that resolves to the constructed invitation.
248
248
  * @throws {TemplateNotFoundError} If the template is not found.
249
- * @throws {ActionNotFoundError} If the action is not found.
249
+ * @throws {TemplateActionNotFoundError} If the action is not found.
250
250
  *
251
251
  * TODO: Add all the throws that happen during the execution of the method.
252
252
  */
@@ -258,7 +258,7 @@ declare class Engine {
258
258
  * @param {AcceptInvitationParameters} params - Optional parameters for accepting the invitation.
259
259
  * @returns {Promise<XOInvitation>} The updated XOInvitation instance.
260
260
  * @throws {TemplateNotFoundError} If the template is not found.
261
- * @throws {ActionNotFoundError} If the action is not found.
261
+ * @throws {TemplateActionNotFoundError} If the action is not found.
262
262
  * @throws {InvalidEntityIdentifierError} If the entity identifiers are invalid.
263
263
  * @throws {InvalidRequirementsError} If the requirements are invalid.
264
264
  * @throws {InvalidCommitSignaturesError} If the commit signatures are invalid.
@@ -292,26 +292,13 @@ declare class Engine {
292
292
  * TODO: Add all the throws that happen during the execution of the method.
293
293
  */
294
294
  executeAction(invitation: XOInvitation, params: ExecuteActionParameters): Promise<TransactionHash>;
295
- /**
296
- * Fully validates a given XOInvitation according to template and signature checks.
297
- *
298
- * @param {XOInvitation} invitation - The invitation to validate.
299
- * @returns {Promise<void>} Resolves if invitation is valid.
300
- * @throws {TemplateNotFoundError} If the template is not found.
301
- * @throws {ActionNotFoundError} If the action is not found.
302
- * @throws {InvitationExpiredError} If the invitation has expired.
303
- * @throws {InvalidEntityIdentifierError} If the entity identifiers are invalid.
304
- * @throws {InvalidRequirementsError} If the requirements are invalid.
305
- * @throws {InvalidCommitSignaturesError} If the commit signatures are invalid.
306
- */
307
- isInvitationValid(invitation: XOInvitation): Promise<boolean>;
308
295
  /**
309
296
  * Lists available roles for the given invitation.
310
297
  *
311
298
  * @param {XOInvitation} invitation - The invitation to examine.
312
299
  * @returns {Promise<string[]>} The list of roles that still require data.
313
300
  * @throws {TemplateNotFoundError} If the template is not found.
314
- * @throws {ActionNotFoundError} If the action is not found.
301
+ * @throws {TemplateActionNotFoundError} If the action is not found.
315
302
  */
316
303
  listAvailableRoles(invitation: XOInvitation): Promise<string[]>;
317
304
  /**
@@ -461,32 +448,32 @@ declare class Engine {
461
448
  /**
462
449
  * Error thrown when an action is not found in the template.
463
450
  */
464
- declare class ActionNotFoundError extends Error {
465
- constructor(actionIdentifier?: string);
451
+ declare class TemplateActionNotFoundError extends Error {
452
+ constructor(actionIdentifier: string);
466
453
  }
467
454
  /**
468
455
  * Error thrown when an output is not found in the template.
469
456
  */
470
- declare class OutputNotFoundError extends Error {
471
- constructor(outputIdentifier?: string);
457
+ declare class TemplateOutputNotFoundError extends Error {
458
+ constructor(outputIdentifier: string);
472
459
  }
473
460
  /**
474
461
  * Error thrown when a template is not found.
475
462
  */
476
463
  declare class TemplateNotFoundError extends Error {
477
- constructor(templateIdentifier?: string);
464
+ constructor(templateIdentifier: string);
478
465
  }
479
466
  /**
480
467
  * Error thrown when a locking script is not found in the template.
481
468
  */
482
- declare class LockingScriptNotFoundError extends Error {
483
- constructor(lockingScriptIdentifier?: string);
469
+ declare class TemplateLockingScriptNotFoundError extends Error {
470
+ constructor(lockingScriptIdentifier: string);
484
471
  }
485
472
  /**
486
473
  * Error thrown when a locking script type is not found in the template.
487
474
  */
488
- declare class LockingScriptTypeNotFoundError extends Error {
489
- constructor(lockingScriptIdentifier?: string);
475
+ declare class TemplateLockingScriptTypeNotFoundError extends Error {
476
+ constructor(lockingScriptIdentifier: string);
490
477
  }
491
478
  /**
492
479
  * Error thrown when an unlocking script is not found in the template.
@@ -509,8 +496,8 @@ declare class StartingActionNotFoundError extends Error {
509
496
  /**
510
497
  * Error thrown when a transaction is not found in the template.
511
498
  */
512
- declare class TransactionNotFoundError extends Error {
513
- constructor(transactionIdentifier?: string);
499
+ declare class TemplateTransactionNotFoundError extends Error {
500
+ constructor(transactionIdentifier: string);
514
501
  }
515
502
  /**
516
503
  * Error thrown when a commit entity identifier is not found.
@@ -650,8 +637,11 @@ declare class DuplicateTransactionVersionError extends Error {
650
637
  declare class DuplicateTransactionLocktimeError extends Error {
651
638
  constructor(commitIdentifiers: string[]);
652
639
  }
653
- declare class TemplateIdentifierMismatchError extends Error {
654
- constructor();
640
+ /**
641
+ * Error thrown when the provided template's identifier does not match the invitation's template identifier.
642
+ */
643
+ declare class InvitationTemplateMismatchError extends Error {
644
+ constructor(expectedTemplateIdentifier: string, receivedTemplateIdentifier: string);
655
645
  }
656
646
  /**
657
647
  * Error thrown when an unspent output is not found.
@@ -704,8 +694,8 @@ declare class RoleNotDefinedForActionError extends Error {
704
694
  /**
705
695
  * Error thrown when a role is not found.
706
696
  */
707
- declare class RoleNotFoundError extends Error {
708
- constructor(roleIdentifier?: string);
697
+ declare class TemplateLockingScriptRoleNotFoundError extends Error {
698
+ constructor(lockingScriptIdentifier: string, roleIdentifier: string);
709
699
  }
710
700
  /**
711
701
  * Error thrown when a data type is invalid.
@@ -848,7 +838,7 @@ declare class InvalidVariableDefinitionError extends Error {
848
838
  /**
849
839
  * Error thrown when an output does not have a locking script.
850
840
  */
851
- declare class OutputLockingScriptNotFoundError extends Error {
841
+ declare class TemplateLockingScriptInOutputNotFoundError extends Error {
852
842
  constructor(outputIdentifier: string);
853
843
  }
854
844
  /**
@@ -925,13 +915,12 @@ declare class BlockchainMonitor {
925
915
  handleUnspentOutputCreated(data: UnspentOutputData): Promise<void>;
926
916
  /**
927
917
  * Handles script hash update notifications from the electrum protocol.
928
- * When a script hash update is received, this method finds all associated
929
- * locking bytecodes and updates their unspent outputs in the store.
918
+ * When a script hash update is received, this method finds the scriptHash and updates the unspent outputs for it.
930
919
  *
931
- * @param {ScriptHashSubscribeNotification} data - The script hash subscription notification data.
932
- * @returns {Promise<void>} Resolves when all unspent outputs are updated.
920
+ * @param {ScriptHashUpdate} data - The script hash update data.
921
+ * @returns {Promise<void>} Resolves when the unspent outputs are updated.
933
922
  */
934
- onScriptHashUpdate(data: ScriptHashSubscribeNotification): Promise<void>;
923
+ onScriptHashUpdate(data: ScriptHashUpdate): Promise<void>;
935
924
  }
936
925
  //#endregion
937
926
  //#region source/invitation/builder.d.ts
@@ -1179,7 +1168,7 @@ declare class Template {
1179
1168
  /**
1180
1169
  * Creates a Template class from a template object.
1181
1170
  */
1182
- constructor(template: XOTemplate | undefined);
1171
+ constructor(template: XOTemplate);
1183
1172
  /**
1184
1173
  * Gets the underlying template object.
1185
1174
  */
@@ -1191,86 +1180,78 @@ declare class Template {
1191
1180
  getStartingActions(): Array<XOTemplateActionIntent>;
1192
1181
  /**
1193
1182
  * Retrieves an output definition by identifier.
1194
- * Step 1 in the flow: template → output
1195
- * @throws {OutputNotFoundError} If the output is not found.
1183
+ * @throws {TemplateOutputNotFoundError} If the output is not found.
1196
1184
  */
1197
1185
  getOutput(outputIdentifier: string): XOTemplateOutput;
1198
1186
  /**
1199
1187
  * Retrieves the locking script identifier from an output.
1200
- * Step 2 in the flow: output → locking script identifier
1201
- * @throws {OutputNotFoundError} If the output is not found.
1202
- * @throws {LockingScriptNotFoundError} If the output doesn't have a locking script identifier.
1188
+ * @throws {TemplateOutputNotFoundError} If the output is not found.
1189
+ * @throws {TemplateLockingScriptInOutputNotFoundError} If the output has no locking script reference.
1203
1190
  */
1204
1191
  getLockingScriptIdentifier(outputIdentifier: string): string;
1205
1192
  /**
1206
1193
  * Retrieves a locking script definition by identifier.
1207
- * Step 3 in the flow: locking script identifier → locking script
1208
- * @throws {LockingScriptNotFoundError} If the locking script is not found.
1194
+ * @throws {TemplateLockingScriptNotFoundError} If the locking script is not found.
1209
1195
  */
1210
1196
  getLockingScript(lockingScriptIdentifier: string): XOTemplateLockingScript;
1211
1197
  /**
1212
1198
  * Retrieves the locking script for a given output.
1213
- * Combines steps 1-3: output → locking script identifier → locking script
1214
- * @throws {OutputNotFoundError} If the output is not found.
1215
- * @throws {LockingScriptNotFoundError} If the output doesn't have a locking script identifier.
1216
- * @throws {LockingScriptNotFoundError} If the locking script is not found.
1199
+ * @throws {TemplateOutputNotFoundError} If the output is not found.
1200
+ * @throws {TemplateLockingScriptInOutputNotFoundError} If the output has no locking script reference.
1201
+ * @throws {TemplateLockingScriptNotFoundError} If the locking script definition is not found.
1217
1202
  */
1218
1203
  getLockingScriptForOutput(outputIdentifier: string): XOTemplateLockingScript;
1219
1204
  /**
1220
1205
  * Validates that a locking script has required unlocking script and locking type.
1221
- * Step 4 in the flow: validate locking script
1222
1206
  * @param lockingScript - The locking script to validate.
1223
1207
  * @param lockingScriptIdentifier - The identifier of the locking script (for error messages).
1224
- * @throws {LockingScriptTypeNotFoundError} If lockingType is missing.
1208
+ * @throws {TemplateLockingScriptTypeNotFoundError} If lockingType is missing.
1225
1209
  */
1226
1210
  validateLockingScript(lockingScript: XOTemplateLockingScript, lockingScriptIdentifier: string): void;
1227
1211
  /**
1228
1212
  * Retrieves a role within a locking script.
1229
- * Step 5 in the flow: locking script → role
1230
1213
  * @param lockingScriptIdentifier - The locking script identifier.
1231
1214
  * @param roleIdentifier - The role identifier.
1232
- * @throws {LockingScriptNotFoundError} If the locking script is not found.
1233
- * @throws {RoleNotFoundError} If the role is not found.
1215
+ * @throws {TemplateLockingScriptNotFoundError} If the locking script is not found.
1216
+ * @throws {TemplateLockingScriptRoleNotFoundError} If the role is not found.
1234
1217
  */
1235
1218
  getRole(lockingScriptIdentifier: string, roleIdentifier: string): XOTemplateLockingScriptRole;
1236
1219
  /**
1237
1220
  * Retrieves the first available role in a locking script, or throws if none exist.
1238
1221
  * @param lockingScriptIdentifier - The locking script identifier.
1239
1222
  * @returns A tuple of [roleIdentifier, role].
1240
- * @throws {LockingScriptNotFoundError} If the locking script is not found.
1241
- * @throws {RoleNotFoundError} If no roles exist.
1223
+ * @throws {TemplateLockingScriptNotFoundError} If the locking script is not found.
1224
+ * @throws {TemplateLockingScriptRoleNotFoundError} If no roles exist.
1242
1225
  */
1243
1226
  getFirstRole(lockingScriptIdentifier: string): [string, XOTemplateLockingScriptRole];
1244
1227
  /**
1245
1228
  * Retrieves secrets for a locking script.
1246
1229
  * If roleIdentifier is provided, returns secrets from the role's state.
1247
1230
  * Otherwise, returns secrets from the locking script itself.
1248
- * Step 6 in the flow: role → secrets (or locking script → secrets)
1249
1231
  * @param lockingScriptIdentifier - The locking script identifier.
1250
1232
  * @param roleIdentifier - The role identifier (optional, if not provided uses locking script secrets).
1251
1233
  * @returns Array of secret identifiers.
1252
- * @throws {LockingScriptNotFoundError} If the locking script is not found.
1253
- * @throws {RoleNotFoundError} If roleIdentifier is provided but the role is not found.
1234
+ * @throws {TemplateLockingScriptNotFoundError} If the locking script is not found.
1235
+ * @throws {TemplateLockingScriptRoleNotFoundError} If roleIdentifier is provided but the role is not found.
1254
1236
  */
1255
1237
  getSecrets(lockingScriptIdentifier: string, roleIdentifier?: string): string[];
1256
1238
  /**
1257
1239
  * Retrieves an action definition by identifier.
1258
1240
  * @param actionIdentifier - The identifier of the action.
1259
- * @throws {ActionNotFoundError} If the action is not found.
1241
+ * @throws {TemplateActionNotFoundError} If the action is not found.
1260
1242
  */
1261
1243
  getActionOrThrow(actionIdentifier: string): XOTemplateAction;
1262
1244
  /**
1263
1245
  * Retrieves a transaction definition by identifier.
1264
1246
  * @param transactionIdentifier - The identifier of the transaction.
1265
- * @throws {TransactionNotFoundError} If the transaction is not found.
1247
+ * @throws {TemplateTransactionNotFoundError} If the transaction is not found.
1266
1248
  */
1267
1249
  getTransaction(transactionIdentifier: string): XOTemplateTransaction;
1268
1250
  /**
1269
1251
  * Retrieves the transaction for a given action.
1270
- * Flow: action → transaction identifier → transaction
1271
1252
  * @param actionIdentifier - The identifier of the action.
1272
- * @throws {ActionNotFoundError} If the action is not found.
1273
- * @throws {TransactionNotFoundError} If the action doesn't have a transaction or it's not found.
1253
+ * @throws {TemplateActionNotFoundError} If the action is not found.
1254
+ * @throws {TemplateTransactionNotFoundError} If the action has no transaction defined or the transaction is not found.
1274
1255
  */
1275
1256
  getTransactionForAction(actionIdentifier: string): XOTemplateTransaction;
1276
1257
  }
@@ -1424,5 +1405,5 @@ declare const createLibauthCompilerDataFromUnspentOutput: (template: Template, u
1424
1405
  */
1425
1406
  declare const updateUnspentOutputsForScriptHashInStore: (state: State, scriptHash: string, fetchUnspentOutputsCallback: (scriptHash: string) => Promise<ScriptHashListUnspentResponse>) => Promise<void>;
1426
1407
  //#endregion
1427
- export { AcceptInvitationParameters, ActionNotFoundError, AppendInvitationParameters, BlockchainMonitor, CashAssemblyCompilationFailedError, CashAssemblyVariableNotIntegerError, CircularMergeReferenceError, CommitEntityIdentifierNotFoundError, CommitNotFoundInInvitationError, CommitNotSignedError, CompileCashAssemblyStringParameters, CompiledCashAssemblyDecodeMode, CreatedByIdentifierAlreadySetError, CreatedByIdentifierSignatureAlreadySetError, DataNotFoundError, DuplicateTransactionIndexError, DuplicateTransactionLocktimeError, DuplicateTransactionVersionError, ElectrumClientNotFoundError, Engine, ExecuteActionParameters, GetSpendableResourcesParameters, InvalidActionError, InvalidCommitSignaturesError, InvalidDataTypeError, InvalidDerivativeIndexTypeError, InvalidEntityIdentifierError, InvalidInputError, InvalidInvitationError, InvalidLockingScriptTypeError, InvalidLockingTypeError, InvalidRequirementsError, InvalidRoleError, InvalidTemplateOutputSatoshisTypeError, InvalidVariableDefinitionError, InvalidVariableTypeError, InvitationAlreadyAcceptedError, InvitationBuilder, InvitationCreatedInFutureError, InvitationCreationParameters, InvitationExpiredError, InvitationNotAcceptedError, InvitationNotFoundInStoreError, ItemNotFoundInCommitError, LockingBytecodeGenerationFailedError, LockingBytecodeNotFoundForOutputError, LockingDataNotFoundError, LockingScriptNotFoundError, LockingScriptTypeNotFoundError, MergedCommitNotFoundError, MergedInvitation, MergesWithCommitNotFoundError, MissingRequiredDataError, MissingRequiredFieldError, MissingRequiredRoleForEntityError, MissingRequiredSignatureByEntityError, MissingRequiredVariableError, MultipleRolesForStartingActionError, NoRoleSpecifiedAndMultipleRolesAvailableToBeAcceptedError, OutputLockingScriptNotFoundError, OutputNotFoundError, ParentCommitNotFoundError, ReserveResourcesFailedError, RoleAlreadyAcceptedByAnotherEntityError, RoleCannotStartActionError, RoleNotAvailableToBeAcceptedError, RoleNotDefinedForActionError, RoleNotFoundError, RootCommitNotFoundError, ScriptHashDataNotFoundError, ScriptNotFoundError, SignatureVerificationFailedError, StartingActionNotFoundError, Template, TemplateIdentifierMismatchError, TemplateNotFoundError, TransactionGenerationFailedError, TransactionNotFoundError, UnknownVariableError, UnlockingScriptNotFoundError, UnspentOutputNotFoundError, VariableRequiredError, VariableValidationFailedError, XOEngineOptions, assignTypeToVariablesForLibauthCompiler, compileCashAssemblyEvaluations, compileCashAssemblyString, convertCommitVariablesIntoObject, convertXOLockingTypeToLibauth, createLibauthCompilerDataFromUnspentOutput, decodeCompiledCashAssemblyEvaluation, entityOwnershipForLibauthCompiler, extractCashAssemblyEvaluations, extractVariablesFromEvaluations, findRootCommitIdentifierInInvitation, generateCashAssemblyBytecode, generateCommitIdentifier, generateTemplateIdentifier, hasInvitationExpired, isCashAssemblyExpression, listAvailableRolesForInvitation, listMissingRequirements, listPopulatedRequirementsInInvitation, listRequirementsFromTemplate, mergeInvitationCommits, parseTemplate, scriptsForLibauthCompiler, updateUnspentOutputsForScriptHashInStore, validateInvitationCommits, validateInvitationEntities, validateRoleRequirements };
1408
+ export { AcceptInvitationParameters, AppendInvitationParameters, BlockchainMonitor, CashAssemblyCompilationFailedError, CashAssemblyVariableNotIntegerError, CircularMergeReferenceError, CommitEntityIdentifierNotFoundError, CommitNotFoundInInvitationError, CommitNotSignedError, CompileCashAssemblyStringParameters, CompiledCashAssemblyDecodeMode, CreatedByIdentifierAlreadySetError, CreatedByIdentifierSignatureAlreadySetError, DataNotFoundError, DuplicateTransactionIndexError, DuplicateTransactionLocktimeError, DuplicateTransactionVersionError, ElectrumClientNotFoundError, Engine, ExecuteActionParameters, GetSpendableResourcesParameters, InvalidActionError, InvalidCommitSignaturesError, InvalidDataTypeError, InvalidDerivativeIndexTypeError, InvalidEntityIdentifierError, InvalidInputError, InvalidInvitationError, InvalidLockingScriptTypeError, InvalidLockingTypeError, InvalidRequirementsError, InvalidRoleError, InvalidTemplateOutputSatoshisTypeError, InvalidVariableDefinitionError, InvalidVariableTypeError, InvitationAlreadyAcceptedError, InvitationBuilder, InvitationCreatedInFutureError, InvitationCreationParameters, InvitationExpiredError, InvitationNotAcceptedError, InvitationNotFoundInStoreError, InvitationTemplateMismatchError, ItemNotFoundInCommitError, LockingBytecodeGenerationFailedError, LockingBytecodeNotFoundForOutputError, LockingDataNotFoundError, MergedCommitNotFoundError, MergedInvitation, MergesWithCommitNotFoundError, MissingRequiredDataError, MissingRequiredFieldError, MissingRequiredRoleForEntityError, MissingRequiredSignatureByEntityError, MissingRequiredVariableError, MultipleRolesForStartingActionError, NoRoleSpecifiedAndMultipleRolesAvailableToBeAcceptedError, ParentCommitNotFoundError, ReserveResourcesFailedError, RoleAlreadyAcceptedByAnotherEntityError, RoleCannotStartActionError, RoleNotAvailableToBeAcceptedError, RoleNotDefinedForActionError, RootCommitNotFoundError, ScriptHashDataNotFoundError, ScriptNotFoundError, SignatureVerificationFailedError, StartingActionNotFoundError, Template, TemplateActionNotFoundError, TemplateLockingScriptInOutputNotFoundError, TemplateLockingScriptNotFoundError, TemplateLockingScriptRoleNotFoundError, TemplateLockingScriptTypeNotFoundError, TemplateNotFoundError, TemplateOutputNotFoundError, TemplateTransactionNotFoundError, TransactionGenerationFailedError, UnknownVariableError, UnlockingScriptNotFoundError, UnspentOutputNotFoundError, VariableRequiredError, VariableValidationFailedError, XOEngineOptions, assignTypeToVariablesForLibauthCompiler, compileCashAssemblyEvaluations, compileCashAssemblyString, convertCommitVariablesIntoObject, convertXOLockingTypeToLibauth, createLibauthCompilerDataFromUnspentOutput, decodeCompiledCashAssemblyEvaluation, entityOwnershipForLibauthCompiler, extractCashAssemblyEvaluations, extractVariablesFromEvaluations, findRootCommitIdentifierInInvitation, generateCashAssemblyBytecode, generateCommitIdentifier, generateTemplateIdentifier, hasInvitationExpired, isCashAssemblyExpression, listAvailableRolesForInvitation, listMissingRequirements, listPopulatedRequirementsInInvitation, listRequirementsFromTemplate, mergeInvitationCommits, parseTemplate, scriptsForLibauthCompiler, updateUnspentOutputsForScriptHashInStore, validateInvitationCommits, validateInvitationEntities, validateRoleRequirements };
1428
1409
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../source/interfaces.ts","../source/engine.ts","../source/errors.ts","../source/monitor/blockchain.ts","../source/invitation/builder.ts","../source/invitation/commit.ts","../source/invitation/merger.ts","../source/invitation/queries.ts","../source/invitation/validation.ts","../source/utils/template.ts","../source/utils/cashassembly.ts","../source/utils/libauth-utils.ts","../source/utils/store-utils.ts"],"mappings":";;;;;;;;;;;;;UAOiB,eAAA;;;;EAKb,WAAA,GAAc,WAAA;EALc;;;EAU5B,YAAA;EALc;;;EAUd,gBAAA;EAUA;;;EALA,qBAAA;EAe2B;;AAM/B;EAhBI,eAAA,GAAkB,eAAA;;;;EAKlB,6BAAA;EA2BuC;;;EAtBvC,2BAAA;AAAA;;;;UAMa,4BAAA;EA+Bb;;;EA1BA,kBAAA;EAoCA;;;EA/BA,gBAAA;AAAA;AA0CJ;;;AAAA,UApCiB,0BAAA;EAoCkD;AAKnE;;EApCI,OAAA;EAyCA;;AAMJ;EA1CI,QAAA;;;;EAKA,MAAA,GAAS,iBAAA;;;ACXb;EDgBI,OAAA,GAAU,kBAAA;;;;EAKV,SAAA,GAAY,oBAAA;EC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;;KCtK3C,8BAAA;;;;KAKA,mCAAA;EACR,gBAAA;EACA,SAAA,EAAW,MAAA,SAAe,yBAAA,GAA4B,UAAA;EACtD,oBAAA,GAAuB,8BAAA;AAAA;;;;;;;cASd,wBAAA,GAA4B,UAAA;;;;;;AVpBzC;;;;;cUkCa,8BAAA,GAAkC,IAAA;;;;;;;;;;cAalC,+BAAA,GAAmC,WAAA;;;;;;;;;AVKhD;;;;cUiEa,oCAAA,GACT,cAAA,EAAgB,UAAA,EAChB,oBAAA,GAAsB,8BAAA;AV9D1B;;;;;AAWA;;;;;AAXA,cUsGa,yBAAA,GAA6B,UAAA,EAAY,mCAAA;;;;;;;;;AVxMtD;;;cWmBa,4BAAA,GAAgC,QAAA,EAAU,WAAA,EAAa,UAAA,UAAoB,SAAA,EAAW,MAAA,sBAA0B,UAAA;;;;;;;cAuChH,8BAAA,GAAkC,WAAA,eAAwB,WAAA;;;;;AXjBvE;;;cW8Ca,iCAAA,GAAqC,QAAA,EAAU,UAAA,EAAY,IAAA,aAAe,MAAA;;AX9BvF;;;;;cWkDa,yBAAA,GAA6B,QAAA,EAAU,UAAA,KAAa,qBAAA;;;;;;;cAoBpD,uCAAA,GAA2C,QAAA,EAAU,UAAA,KAAa,qBAAA;;;;;;;cAsDlE,6BAAA,GAAiC,WAAA,EAAa,qBAAA;;;;;AXnF3D;;;;;AAWA;;;cWwFa,0CAAA,GACT,QAAA,EAAU,QAAA,EACV,aAAA,EAAe,iBAAA,KAChB,OAAA;EACC,QAAA,EAAU,WAAA;EACV,MAAA;EACA,aAAA;AAAA;;;;;;;;;;;AX3MJ;;;;;;;cYaa,wCAAA,GACT,KAAA,EAAO,KAAA,EACP,UAAA,UACA,2BAAA,GAA8B,UAAA,aAAuB,OAAA,CAAQ,6BAAA,MAC9D,OAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../source/interfaces.ts","../source/engine.ts","../source/errors.ts","../source/monitor/blockchain.ts","../source/invitation/builder.ts","../source/invitation/commit.ts","../source/invitation/merger.ts","../source/invitation/queries.ts","../source/invitation/validation.ts","../source/utils/template.ts","../source/utils/cashassembly.ts","../source/utils/libauth-utils.ts","../source/utils/store-utils.ts"],"mappings":";;;;;;;;;;;;;UAOiB,eAAA;;;;EAKb,WAAA,GAAc,WAAA;EALc;;;EAU5B,YAAA;EALc;;;EAUd,gBAAA;EAUA;;;EALA,qBAAA;EAe2B;;AAM/B;EAhBI,eAAA,GAAkB,eAAA;;;;EAKlB,6BAAA;EA2BuC;;;EAtBvC,2BAAA;AAAA;;;;UAMa,4BAAA;EA+Bb;;;EA1BA,kBAAA;EAoCA;;;EA/BA,gBAAA;AAAA;AA0CJ;;;AAAA,UApCiB,0BAAA;EAoCkD;AAKnE;;EApCI,OAAA;EAyCA;;AAMJ;EA1CI,QAAA;;;;EAKA,MAAA,GAAS,iBAAA;;;ACXb;EDgBI,OAAA,GAAU,kBAAA;;;;EAKV,SAAA,GAAY,oBAAA;ECkFE;;;ED7Ed,kBAAA;AAAA;;;;KAMQ,0BAAA,GAA6B,0BAAA;;;;UAKxB,uBAAA;ECsJsD;;;EDjJnE,oBAAA;AAAA;;;;UAMa,+BAAA;ECsSkF;;;EDjS/F,kBAAA;ECoW8F;;;ED/V9F,gBAAA;AAAA;;;;;;cC1DS,MAAA;ED7DI;;;EAAA,QCiEL,MAAA;ED5DR;;;EAAA,QCiEQ,KAAA;EDlDR;;;EAAA,QCuDQ,iBAAA;EDxCR;;;EAAA,QCgDQ,yBAAA;ED1CiC;;;EAAA,QC+CjC,qBAAA;ED/BK;;;EAAA,QCoCL,uBAAA;EDhBE;;;;;;;EAAA,QCyBH,WAAA,CAAA;EDzBP;;;;;;;AAgBJ;EAhBI,OCgDa,MAAA,CAAO,QAAA,UAAkB,OAAA,EAAS,eAAA,GAAkB,OAAA,CAAQ,MAAA;;;;AD3B7E;ECkEU,IAAA,CAAA,GAAQ,OAAA;;;;ADvDlB;ECwEU,cAAA,CAAA,GAAkB,OAAA,CAAQ,WAAA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