@xo-cash/utils 0.0.5-development.16177080220 → 0.0.6
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 +33 -45
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +41 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
package/dist/index.d.mts
CHANGED
|
@@ -697,21 +697,15 @@ declare const xoTemplateLockingTypeSchema: z.ZodEnum<{
|
|
|
697
697
|
readonly P2SH: "p2sh";
|
|
698
698
|
}>;
|
|
699
699
|
/**
|
|
700
|
-
* Validation schema for a
|
|
701
|
-
* Accepts values from
|
|
700
|
+
* Validation schema for a primitive type identifier.
|
|
701
|
+
* Accepts values from XOTemplatePrimitiveTypes for the `hint` field on constants, variables, and data.
|
|
702
702
|
*/
|
|
703
|
-
declare const
|
|
703
|
+
declare const xoTemplatePrimitiveTypeSchema: z.ZodEnum<{
|
|
704
704
|
readonly BOOLEAN: "boolean";
|
|
705
705
|
readonly BYTES: "bytes";
|
|
706
706
|
readonly INTEGER: "integer";
|
|
707
707
|
readonly BIGINT: "bigint";
|
|
708
708
|
readonly STRING: "string";
|
|
709
|
-
}>;
|
|
710
|
-
/**
|
|
711
|
-
* Validation schema for a primitive type identifier.
|
|
712
|
-
* Accepts values from XOTemplatePrimitiveTypes for the `hint` field on constants, variables, and data.
|
|
713
|
-
*/
|
|
714
|
-
declare const xoTemplatePrimitiveTypeSchema: z.ZodEnum<{
|
|
715
709
|
readonly PRIVATE_KEY: "private_key";
|
|
716
710
|
readonly PUBLIC_KEY: "public_key";
|
|
717
711
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -730,7 +724,7 @@ declare const xoTemplatePrimitiveTypeSchema: z.ZodEnum<{
|
|
|
730
724
|
/**
|
|
731
725
|
* Validation schema for byte array fields i.e. Uint8Array instance.
|
|
732
726
|
*/
|
|
733
|
-
declare const uint8ArraySchema: z.
|
|
727
|
+
declare const uint8ArraySchema: z.ZodInstanceOf<Uint8Array<ArrayBuffer>>;
|
|
734
728
|
/**
|
|
735
729
|
* Validation schema for the Satoshis type i.e. bigint.
|
|
736
730
|
*/
|
|
@@ -1429,9 +1423,6 @@ declare const xoTemplateConstantSchema: z.ZodObject<{
|
|
|
1429
1423
|
readonly INTEGER: "integer";
|
|
1430
1424
|
readonly BIGINT: "bigint";
|
|
1431
1425
|
readonly STRING: "string";
|
|
1432
|
-
}>;
|
|
1433
|
-
value: z.ZodUnknown;
|
|
1434
|
-
hint: z.ZodOptional<z.ZodEnum<{
|
|
1435
1426
|
readonly PRIVATE_KEY: "private_key";
|
|
1436
1427
|
readonly PUBLIC_KEY: "public_key";
|
|
1437
1428
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -1446,7 +1437,9 @@ declare const xoTemplateConstantSchema: z.ZodObject<{
|
|
|
1446
1437
|
readonly TRANSACTION_HASH: "transaction_hash";
|
|
1447
1438
|
readonly TEMPLATE_IDENTIFIER: "template_identifier";
|
|
1448
1439
|
readonly SCHNORR_SIGNATURE: "signature";
|
|
1449
|
-
}
|
|
1440
|
+
}>;
|
|
1441
|
+
value: z.ZodUnknown;
|
|
1442
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
1450
1443
|
}, z.core.$strict>;
|
|
1451
1444
|
/**
|
|
1452
1445
|
* Validation schema for a data field definition.
|
|
@@ -1466,9 +1459,6 @@ declare const xoTemplateDataSchema: z.ZodObject<{
|
|
|
1466
1459
|
readonly INTEGER: "integer";
|
|
1467
1460
|
readonly BIGINT: "bigint";
|
|
1468
1461
|
readonly STRING: "string";
|
|
1469
|
-
}>;
|
|
1470
|
-
value: z.ZodUnknown;
|
|
1471
|
-
hint: z.ZodOptional<z.ZodEnum<{
|
|
1472
1462
|
readonly PRIVATE_KEY: "private_key";
|
|
1473
1463
|
readonly PUBLIC_KEY: "public_key";
|
|
1474
1464
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -1483,7 +1473,9 @@ declare const xoTemplateDataSchema: z.ZodObject<{
|
|
|
1483
1473
|
readonly TRANSACTION_HASH: "transaction_hash";
|
|
1484
1474
|
readonly TEMPLATE_IDENTIFIER: "template_identifier";
|
|
1485
1475
|
readonly SCHNORR_SIGNATURE: "signature";
|
|
1486
|
-
}
|
|
1476
|
+
}>;
|
|
1477
|
+
value: z.ZodUnknown;
|
|
1478
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
1487
1479
|
}, z.core.$strict>;
|
|
1488
1480
|
/**
|
|
1489
1481
|
* Validation schema for an import default value intent. Extends the base intent with optional
|
|
@@ -1531,8 +1523,6 @@ declare const xoTemplateVariableSchema: z.ZodObject<{
|
|
|
1531
1523
|
readonly INTEGER: "integer";
|
|
1532
1524
|
readonly BIGINT: "bigint";
|
|
1533
1525
|
readonly STRING: "string";
|
|
1534
|
-
}>>;
|
|
1535
|
-
hint: z.ZodOptional<z.ZodEnum<{
|
|
1536
1526
|
readonly PRIVATE_KEY: "private_key";
|
|
1537
1527
|
readonly PUBLIC_KEY: "public_key";
|
|
1538
1528
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -1548,6 +1538,7 @@ declare const xoTemplateVariableSchema: z.ZodObject<{
|
|
|
1548
1538
|
readonly TEMPLATE_IDENTIFIER: "template_identifier";
|
|
1549
1539
|
readonly SCHNORR_SIGNATURE: "signature";
|
|
1550
1540
|
}>>;
|
|
1541
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
1551
1542
|
importDefaultValue: z.ZodOptional<z.ZodObject<{
|
|
1552
1543
|
templateIdentifier: z.ZodOptional<z.ZodString>;
|
|
1553
1544
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -1692,9 +1683,6 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1692
1683
|
readonly INTEGER: "integer";
|
|
1693
1684
|
readonly BIGINT: "bigint";
|
|
1694
1685
|
readonly STRING: "string";
|
|
1695
|
-
}>;
|
|
1696
|
-
value: z.ZodUnknown;
|
|
1697
|
-
hint: z.ZodOptional<z.ZodEnum<{
|
|
1698
1686
|
readonly PRIVATE_KEY: "private_key";
|
|
1699
1687
|
readonly PUBLIC_KEY: "public_key";
|
|
1700
1688
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -1709,7 +1697,9 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1709
1697
|
readonly TRANSACTION_HASH: "transaction_hash";
|
|
1710
1698
|
readonly TEMPLATE_IDENTIFIER: "template_identifier";
|
|
1711
1699
|
readonly SCHNORR_SIGNATURE: "signature";
|
|
1712
|
-
}
|
|
1700
|
+
}>;
|
|
1701
|
+
value: z.ZodUnknown;
|
|
1702
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
1713
1703
|
}, z.core.$strict>>>;
|
|
1714
1704
|
transactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1715
1705
|
name: z.ZodString;
|
|
@@ -1899,9 +1889,6 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1899
1889
|
readonly INTEGER: "integer";
|
|
1900
1890
|
readonly BIGINT: "bigint";
|
|
1901
1891
|
readonly STRING: "string";
|
|
1902
|
-
}>;
|
|
1903
|
-
value: z.ZodUnknown;
|
|
1904
|
-
hint: z.ZodOptional<z.ZodEnum<{
|
|
1905
1892
|
readonly PRIVATE_KEY: "private_key";
|
|
1906
1893
|
readonly PUBLIC_KEY: "public_key";
|
|
1907
1894
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -1916,7 +1903,9 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1916
1903
|
readonly TRANSACTION_HASH: "transaction_hash";
|
|
1917
1904
|
readonly TEMPLATE_IDENTIFIER: "template_identifier";
|
|
1918
1905
|
readonly SCHNORR_SIGNATURE: "signature";
|
|
1919
|
-
}
|
|
1906
|
+
}>;
|
|
1907
|
+
value: z.ZodUnknown;
|
|
1908
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
1920
1909
|
}, z.core.$strict>>>;
|
|
1921
1910
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1922
1911
|
name: z.ZodString;
|
|
@@ -1928,8 +1917,6 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1928
1917
|
readonly INTEGER: "integer";
|
|
1929
1918
|
readonly BIGINT: "bigint";
|
|
1930
1919
|
readonly STRING: "string";
|
|
1931
|
-
}>>;
|
|
1932
|
-
hint: z.ZodOptional<z.ZodEnum<{
|
|
1933
1920
|
readonly PRIVATE_KEY: "private_key";
|
|
1934
1921
|
readonly PUBLIC_KEY: "public_key";
|
|
1935
1922
|
readonly EXTENDED_PUBLIC_KEY: "extended_public_key";
|
|
@@ -1945,6 +1932,7 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1945
1932
|
readonly TEMPLATE_IDENTIFIER: "template_identifier";
|
|
1946
1933
|
readonly SCHNORR_SIGNATURE: "signature";
|
|
1947
1934
|
}>>;
|
|
1935
|
+
hint: z.ZodOptional<z.ZodUnknown>;
|
|
1948
1936
|
importDefaultValue: z.ZodOptional<z.ZodObject<{
|
|
1949
1937
|
templateIdentifier: z.ZodOptional<z.ZodString>;
|
|
1950
1938
|
role: z.ZodOptional<z.ZodString>;
|
|
@@ -1992,8 +1980,8 @@ type CompileCashAssemblyStringParameters = {
|
|
|
1992
1980
|
*/
|
|
1993
1981
|
evaluationDecodeMode?: CompiledCashAssemblyDecodeMode;
|
|
1994
1982
|
/**
|
|
1995
|
-
* Optional template variable definitions. When provided, each `<name.method>` push whose `
|
|
1996
|
-
* maps to a
|
|
1983
|
+
* Optional template variable definitions. When provided, each `<name.method>` push whose `type`
|
|
1984
|
+
* maps to a method resolvable primitive class is resolved to bytes before CashAssembly compilation.
|
|
1997
1985
|
*/
|
|
1998
1986
|
templateVariables?: XOTemplate['variables'];
|
|
1999
1987
|
};
|
|
@@ -2069,11 +2057,11 @@ declare const compileCashAssemblyEvaluations: (evaluations: string[]) => Compile
|
|
|
2069
2057
|
* @param {CompiledCashAssemblyDecodeMode} [parameters.evaluationDecodeMode='utf8'] - The decode mode used
|
|
2070
2058
|
* after each evaluation is compiled. See {@link decodeCompiledCashAssemblyEvaluation}.
|
|
2071
2059
|
* @param {XOTemplate['variables']} [parameters.templateVariables] - Optional template variable definitions
|
|
2072
|
-
* used to resolve
|
|
2060
|
+
* used to resolve method resolvable `<name.method>` pushes via each variable's `type`.
|
|
2073
2061
|
* @returns {string} Compiled text with all evaluations replaced by decoded string values.
|
|
2074
2062
|
* @throws {@link CashAssemblyRequiredVariableMissingError} When a required variable is not present in the variables map.
|
|
2075
|
-
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When a
|
|
2076
|
-
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When a
|
|
2063
|
+
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When a method resolvable primitive type has an unknown method.
|
|
2064
|
+
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When a method resolvable primitive method is missing its runtime value.
|
|
2077
2065
|
* @throws {@link CashAssemblyUnsupportedValueTypeError} When a primitive method return type cannot be embedded as bytes.
|
|
2078
2066
|
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a number variable is not a safe integer.
|
|
2079
2067
|
* @throws {@link CashAssemblyVmNumberDecodeError} When `evaluationDecodeMode` is `bigint` and an evaluation is not a VM number.
|
|
@@ -2096,21 +2084,21 @@ type ResolvePrimitiveMethodBytesParameters = {
|
|
|
2096
2084
|
variables: Record<string, unknown>;
|
|
2097
2085
|
/**
|
|
2098
2086
|
* Template variable definitions. When omitted, no primitive methods are resolved.
|
|
2099
|
-
* The `
|
|
2087
|
+
* The `type` on each entry selects the primitive class.
|
|
2100
2088
|
*/
|
|
2101
2089
|
templateVariables?: XOTemplate['variables'];
|
|
2102
2090
|
};
|
|
2103
2091
|
/**
|
|
2104
|
-
* Resolves
|
|
2092
|
+
* Resolves method resolvable `base.method` identifiers to CashAssembly variable bytes.
|
|
2105
2093
|
*
|
|
2106
|
-
* Each single dot identifier whose `
|
|
2107
|
-
* the full identifier (`base.method`).
|
|
2094
|
+
* Each single dot identifier whose `type` is in `RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE` is resolved and stored under
|
|
2095
|
+
* the full identifier (`base.method`). Other template types or multi dot identifiers are left for CashAssembly.
|
|
2108
2096
|
*
|
|
2109
2097
|
* When `templateVariables` is omitted, returns an empty map.
|
|
2110
2098
|
*
|
|
2111
2099
|
* @param {ResolvePrimitiveMethodBytesParameters} parameters - Identifiers, values, and optional template metadata.
|
|
2112
2100
|
* @returns {Record<string, Uint8Array>} Resolved method identifiers mapped to bytes for CashAssembly pushes.
|
|
2113
|
-
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When the
|
|
2101
|
+
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When the type is method resolvable but the method is missing.
|
|
2114
2102
|
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When the runtime value is missing from the variables map.
|
|
2115
2103
|
* @throws {@link CashAssemblyUnsupportedValueTypeError} When the method return type cannot be embedded.
|
|
2116
2104
|
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a method return value is a number that is not a safe integer.
|
|
@@ -2184,7 +2172,7 @@ declare const CASHASSEMBLY_LITERAL_TOKEN_PATTERN: RegExp;
|
|
|
2184
2172
|
* `requestedSatoshis` does not match (no method)
|
|
2185
2173
|
* `key.schnorr_signature.all_outputs` does not match (more than one dot)
|
|
2186
2174
|
* `key.public_key` matches the pattern shape but it is only resolved
|
|
2187
|
-
* when `
|
|
2175
|
+
* when `type` maps to a primitive
|
|
2188
2176
|
*/
|
|
2189
2177
|
declare const CASHASSEMBLY_VARIABLE_METHOD_REFERENCE_PATTERN: RegExp;
|
|
2190
2178
|
//#endregion
|
|
@@ -2208,10 +2196,10 @@ declare class CashAssemblyVariableTypeMismatchError extends Error {
|
|
|
2208
2196
|
constructor(variableKey: string, expectedType: string, actualType: string);
|
|
2209
2197
|
}
|
|
2210
2198
|
/**
|
|
2211
|
-
* Error thrown when a
|
|
2199
|
+
* Error thrown when a method resolvable primitive type does not expose the requested method.
|
|
2212
2200
|
*/
|
|
2213
2201
|
declare class CashAssemblyPrimitiveMethodMissingError extends Error {
|
|
2214
|
-
constructor(identifier: string, methodName: string,
|
|
2202
|
+
constructor(identifier: string, methodName: string, type: string);
|
|
2215
2203
|
}
|
|
2216
2204
|
/**
|
|
2217
2205
|
* Error thrown when a value cannot be resolved as bytes.
|
|
@@ -2226,7 +2214,7 @@ declare class CashAssemblyNumberNotSafeIntegerError extends Error {
|
|
|
2226
2214
|
constructor(identifier: string, value: number);
|
|
2227
2215
|
}
|
|
2228
2216
|
/**
|
|
2229
|
-
* Error thrown when a
|
|
2217
|
+
* Error thrown when a method resolvable primitive is selected but its value is missing from the variables map.
|
|
2230
2218
|
*/
|
|
2231
2219
|
declare class CashAssemblyPrimitiveVariableMissingError extends Error {
|
|
2232
2220
|
constructor(identifier: string, variableName: string);
|
|
@@ -2249,5 +2237,5 @@ declare class CashAssemblyVmNumberDecodeError extends Error {
|
|
|
2249
2237
|
*/
|
|
2250
2238
|
declare const serializeTemplate: (template: XOTemplate) => string;
|
|
2251
2239
|
//#endregion
|
|
2252
|
-
export { AsyncPushIterator, CASHASSEMBLY_EVALUATION_PATTERN, CASHASSEMBLY_EXPRESSION_PATTERN, CASHASSEMBLY_LITERAL_TOKEN_PATTERN, CASHASSEMBLY_VARIABLE_METHOD_REFERENCE_PATTERN, CASHASSEMBLY_VARIABLE_PATTERN, CashAssemblyCompilationFailedError, CashAssemblyNumberNotSafeIntegerError, CashAssemblyPrimitiveMethodMissingError, CashAssemblyPrimitiveVariableMissingError, CashAssemblyRequiredVariableMissingError, CashAssemblyUnsupportedValueTypeError, CashAssemblyVariableTypeMismatchError, CashAssemblyVmNumberDecodeError, CompileCashAssemblyStringParameters, CompiledCashAssemblyDecodeMode, EventEmitter, EventMap, ExponentialBackoff, ExponentialBackoffCallbackParameters, ExponentialBackoffExternallyAbortable, ExponentialBackoffExternallyAbortableOptions, ExponentialBackoffMaxRetriesHitError, ExponentialBackoffNonIntegerError, ExponentialBackoffNumberNotFiniteError, ExponentialBackoffNumberOutOfBoundsError, ExponentialBackoffNumberTooSmallError, ExponentialBackoffOptions, ExponentialBackoffRunOptions, ExponentialBackoffStaticRunOptions, ExponentialBackoffStopRetriesFunction, ExponentialBackoffStoppedRetriesError, ExternallyAbortedExponentialBackoffExternalSignalAbortedError, ExternallyAbortedExponentialBackoffInternalSignalAbortedError, OffCallback, ResolvePrimitiveMethodBytesParameters, SSEEventParser, SSEEventParserOptions, TemplateInvalidError, TemplateJsonMalformedError, TemplateSerializationFailedError, VIEW_PROPERTIES_DESCRIPTION_MAX_LENGTH, VIEW_PROPERTIES_ICON_MAX_LENGTH, VIEW_PROPERTIES_NAME_MAX_LENGTH, WaitForTimeoutError, bchVmVersionSchema, buildErrorDescription, compileCashAssemblyEvaluations, compileCashAssemblyString, convertValueToBytes, decodeCompiledCashAssemblyEvaluation, extendedJsonReplacer, extendedJsonReviver, extractCashAssemblyEvaluations, extractVariablesFromEvaluations, fromExtendedJson, generateCashAssemblyBytecode, generateTemplateIdentifier, isCashAssemblyExpression, parseTemplate, resolvePrimitiveMethodBytes, satoshisSchema, scriptToScriptHash, serializeTemplate, toExtendedJson, uint8ArraySchema, xoTemplateActionIntentSchema, xoTemplateActionRequirementsSchema, xoTemplateActionRoleRequirementsSchema, xoTemplateActionRoleSchema, xoTemplateActionSchema, xoTemplateAssetAmountsSchema,
|
|
2240
|
+
export { AsyncPushIterator, CASHASSEMBLY_EVALUATION_PATTERN, CASHASSEMBLY_EXPRESSION_PATTERN, CASHASSEMBLY_LITERAL_TOKEN_PATTERN, CASHASSEMBLY_VARIABLE_METHOD_REFERENCE_PATTERN, CASHASSEMBLY_VARIABLE_PATTERN, CashAssemblyCompilationFailedError, CashAssemblyNumberNotSafeIntegerError, CashAssemblyPrimitiveMethodMissingError, CashAssemblyPrimitiveVariableMissingError, CashAssemblyRequiredVariableMissingError, CashAssemblyUnsupportedValueTypeError, CashAssemblyVariableTypeMismatchError, CashAssemblyVmNumberDecodeError, CompileCashAssemblyStringParameters, CompiledCashAssemblyDecodeMode, EventEmitter, EventMap, ExponentialBackoff, ExponentialBackoffCallbackParameters, ExponentialBackoffExternallyAbortable, ExponentialBackoffExternallyAbortableOptions, ExponentialBackoffMaxRetriesHitError, ExponentialBackoffNonIntegerError, ExponentialBackoffNumberNotFiniteError, ExponentialBackoffNumberOutOfBoundsError, ExponentialBackoffNumberTooSmallError, ExponentialBackoffOptions, ExponentialBackoffRunOptions, ExponentialBackoffStaticRunOptions, ExponentialBackoffStopRetriesFunction, ExponentialBackoffStoppedRetriesError, ExternallyAbortedExponentialBackoffExternalSignalAbortedError, ExternallyAbortedExponentialBackoffInternalSignalAbortedError, OffCallback, ResolvePrimitiveMethodBytesParameters, SSEEventParser, SSEEventParserOptions, TemplateInvalidError, TemplateJsonMalformedError, TemplateSerializationFailedError, VIEW_PROPERTIES_DESCRIPTION_MAX_LENGTH, VIEW_PROPERTIES_ICON_MAX_LENGTH, VIEW_PROPERTIES_NAME_MAX_LENGTH, WaitForTimeoutError, bchVmVersionSchema, buildErrorDescription, compileCashAssemblyEvaluations, compileCashAssemblyString, convertValueToBytes, decodeCompiledCashAssemblyEvaluation, extendedJsonReplacer, extendedJsonReviver, extractCashAssemblyEvaluations, extractVariablesFromEvaluations, fromExtendedJson, generateCashAssemblyBytecode, generateTemplateIdentifier, isCashAssemblyExpression, parseTemplate, resolvePrimitiveMethodBytes, satoshisSchema, scriptToScriptHash, serializeTemplate, toExtendedJson, uint8ArraySchema, xoTemplateActionIntentSchema, xoTemplateActionRequirementsSchema, xoTemplateActionRoleRequirementsSchema, xoTemplateActionRoleSchema, xoTemplateActionSchema, xoTemplateAssetAmountsSchema, xoTemplateConstantSchema, xoTemplateDataSchema, xoTemplateDefaultsSchema, xoTemplateIconSchema, xoTemplateImportDefaultValueSchema, xoTemplateInputSchema, xoTemplateIntentSchema, xoTemplateLockingScriptIntentSchema, xoTemplateLockingScriptRoleSchema, xoTemplateLockingScriptSchema, xoTemplateLockingTypeSchema, xoTemplateNftCapabilitySchema, xoTemplateNonFungibleTokenDetailsSchema, xoTemplateOutputIntentSchema, xoTemplateOutputSchema, xoTemplatePrimitiveTypeSchema, xoTemplateResourceSchema, xoTemplateRoleSlotSchema, xoTemplateRoleSlotsRequirementsSchema, xoTemplateSchema, xoTemplateStateSchema, xoTemplateTokenSchema, xoTemplateTransactionInputSchema, xoTemplateTransactionOutputSchema, xoTemplateTransactionRoleDataSchema, xoTemplateTransactionSchema, xoTemplateVariableSchema, xoTemplateViewPropertiesSchema };
|
|
2253
2241
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../source/errors.ts","../source/event-emitter.ts","../source/exponential-backoff/errors.ts","../source/exponential-backoff/exponential-backoff.ts","../source/exponential-backoff/exponential-backoff-externally-aborted.ts","../source/extended-json.ts","../source/script.ts","../source/sse-session/async-push-iterator.ts","../source/sse-session/types.ts","../source/sse-session/sse-event-parser.ts","../source/template/errors.ts","../source/template/identifier.ts","../source/template/parser.ts","../source/template/schemas.ts","../source/cash-assembly/evaluations.ts","../source/cash-assembly/primitive-evaluations.ts","../source/cash-assembly/bytes.ts","../source/cash-assembly/defaults.ts","../source/cash-assembly/errors.ts","../source/template/serialization.ts"],"mappings":";;;;;;;;;cAGa,mBAAA,SAA4B,KAAA;cACzB,IAAA;AAAA;;;KCCJ,QAAA,GAAW,MAAA;AAAA,KAElB,QAAA,OAAe,MAAA,EAAQ,CAAA;;;;KAuBhB,WAAA;AD3BZ;;;;AAAA,cCiCa,YAAA,WAAuB,QAAA;EAAA;EDhCpB;;;;;;ACChB;EA6CI,EAAA,iBAAmB,CAAA,CAAA,CAAG,IAAA,EA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A,CAAY,KAAA,EAAO,UAAA,GAAa,OAAA;ER8GA;;;;;;;EAAA,QQ1E/B,gBAAA;ERhFc;;;;;;EAAA,QQ4Fd,SAAA;ER9Ec;;;;;EAAA,QQiHd,UAAA;ERjHoF;;;;;;EAAA,QQ+HpF,aAAA;ER/F4C;;;;;;EAAA,QQ4G5C,mBAAA;AAAA;;;;;;;;AT3LZ;;cUQa,qBAAA,GAAyB,MAAA,EAAQ,SAAA;;;;cA0BjC,oBAAA,SAA6B,KAAA;cAC1B,OAAA;AAAA;;;;cAUH,0BAAA,SAAmC,KAAA;cAChC,MAAA;AAAA;;;AT5C+B;cSqDlC,gCAAA,SAAyC,KAAA;cACtC,MAAA;AAAA;;;;;;;;AVxDhB;;;cWSa,0BAAA,GAA8B,QAAA,EAAU,UAAA;;;;;;;;AXTrD;;;;;;cYaa,aAAA,GAAiB,aAAA,WAAwB,UAAA,KAAa,UAAA;;;;;;;;AZbnE;;;;;;;;cakBa,kBAAA,EAAkB,CAAA,CAAA,OAAA;EAAA;;;;;;;;AZhBgB;;;;;;;;;AAyB/C;;;;;AAMA;;;;;AA/B+C,cYqClC,6BAAA,EAA6B,CAAA,CAAA,OAAA;EAAA;;;;;;;;;;;;;;;;;;cAgB7B,2BAAA,EAA2B,CAAA,CAAA,OAAA;EAAA;;;;;;;;cAM3B,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../source/errors.ts","../source/event-emitter.ts","../source/exponential-backoff/errors.ts","../source/exponential-backoff/exponential-backoff.ts","../source/exponential-backoff/exponential-backoff-externally-aborted.ts","../source/extended-json.ts","../source/script.ts","../source/sse-session/async-push-iterator.ts","../source/sse-session/types.ts","../source/sse-session/sse-event-parser.ts","../source/template/errors.ts","../source/template/identifier.ts","../source/template/parser.ts","../source/template/schemas.ts","../source/cash-assembly/evaluations.ts","../source/cash-assembly/primitive-evaluations.ts","../source/cash-assembly/bytes.ts","../source/cash-assembly/defaults.ts","../source/cash-assembly/errors.ts","../source/template/serial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;cckIa,2BAAA,GAA+B,UAAA,EAAY,qCAAA,KAAwC,MAAA,SAAe,UAAA;;;;;;;;;Af7J/G;;;cgBSa,mBAAA,GAAuB,KAAA,WAAgB,eAAA,aAA0B,UAAA;;;;;;;;;AhBT9E;;;;;;ciBSa,+BAAA,EAA+B,MAAA;;;;;;AhBP5C;;;;;cgBmBa,+BAAA,EAA+B,MAAA;;;;;;;;;AhBM5C;;cgBMa,6BAAA,EAA6B,MAAA;;;AhBA1C;;;;;;cgBUa,kCAAA,EAAkC,MAAA;;;;;;;;;;;;;cAclC,8CAAA,EAA8C,MAAA;;;;;;cCvD9C,wCAAA,SAAiD,KAAA;cAC9C,aAAA;AAAA;AlBHhB;;;AAAA,ckBgBa,kCAAA,SAA2C,KAAA;cACxC,OAAA;AAAA;;;;cASH,qCAAA,SAA8C,KAAA;cAC3C,WAAA,UAAqB,YAAA,UAAsB,UAAA;AAAA;AjBzB3D;;;AAAA,ciBkCa,uCAAA,SAAgD,KAAA;cAC7C,UAAA,UAAoB,UAAA,UAAoB,IAAA;AAAA;;;;cAS3C,qCAAA,SAA8C,KAAA;cAC3C,UAAA,UAAoB,YAAA;AAAA;;;AjBpBpC;ciB6Ba,qCAAA,SAA8C,KAAA;cAC3C,UAAA,UAAoB,KAAA;AAAA;;AjBxBpC;;ciBiCa,yCAAA,SAAkD,KAAA;cAC/C,UAAA,UAAoB,YAAA;AAAA;;;;cASvB,+BAAA,SAAwC,KAAA;cACrC,MAAA;AAAA;;;;;;;;AlB7EhB;;;cmBSa,iBAAA,GAAqB,QAAA,EAAU,UAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bigIntToVmNumber, binToHex, binToUtf8, createCompilerBch, hexToBin, sha256, utf8ToBin, vmNumberToBigInt } from "@bitauth/libauth";
|
|
2
|
-
import { BchVmVersions,
|
|
2
|
+
import { BchVmVersions, XOTemplateLockingTypes, XOTemplateNftCapabilities, XOTemplatePrimitiveTypes } from "@xo-cash/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { FungibleTokenAmount, NFTCommitment, PublicKey, Satoshis, SchnorrSignature, TemplateIdentifier, Timestamp, TokenCategory, TransactionHash } from "@xo-cash/primitives";
|
|
5
5
|
|
|
@@ -1027,11 +1027,6 @@ const xoTemplateNftCapabilitySchema = z.enum(XOTemplateNftCapabilities);
|
|
|
1027
1027
|
*/
|
|
1028
1028
|
const xoTemplateLockingTypeSchema = z.enum(XOTemplateLockingTypes);
|
|
1029
1029
|
/**
|
|
1030
|
-
* Validation schema for a base type identifier.
|
|
1031
|
-
* Accepts values from XOTemplateBaseTypes for the `type` field on constants, variables, and data.
|
|
1032
|
-
*/
|
|
1033
|
-
const xoTemplateBaseTypeSchema = z.enum(XOTemplateBaseTypes);
|
|
1034
|
-
/**
|
|
1035
1030
|
* Validation schema for a primitive type identifier.
|
|
1036
1031
|
* Accepts values from XOTemplatePrimitiveTypes for the `hint` field on constants, variables, and data.
|
|
1037
1032
|
*/
|
|
@@ -1505,9 +1500,9 @@ const xoTemplateTransactionSchema = xoTemplateViewPropertiesSchema.extend({
|
|
|
1505
1500
|
* ```
|
|
1506
1501
|
*/
|
|
1507
1502
|
const xoTemplateConstantSchema = xoTemplateViewPropertiesSchema.extend({
|
|
1508
|
-
type:
|
|
1503
|
+
type: xoTemplatePrimitiveTypeSchema.describe("The data type of this constant."),
|
|
1509
1504
|
value: z.unknown().describe("The value of this constant."),
|
|
1510
|
-
hint:
|
|
1505
|
+
hint: z.unknown().optional().describe("An optional hint to help apps and users understand what this constant represents.")
|
|
1511
1506
|
}).strict();
|
|
1512
1507
|
/**
|
|
1513
1508
|
* Validation schema for a data field definition.
|
|
@@ -1521,9 +1516,9 @@ const xoTemplateConstantSchema = xoTemplateViewPropertiesSchema.extend({
|
|
|
1521
1516
|
* ```
|
|
1522
1517
|
*/
|
|
1523
1518
|
const xoTemplateDataSchema = z.object({
|
|
1524
|
-
type:
|
|
1519
|
+
type: xoTemplatePrimitiveTypeSchema.describe("The data type of this data field."),
|
|
1525
1520
|
value: z.unknown().describe("The value for this data field."),
|
|
1526
|
-
hint:
|
|
1521
|
+
hint: z.unknown().optional().describe("An optional hint to help apps and users understand this data field.")
|
|
1527
1522
|
}).strict();
|
|
1528
1523
|
/**
|
|
1529
1524
|
* Validation schema for an import default value intent. Extends the base intent with optional
|
|
@@ -1552,8 +1547,8 @@ const xoTemplateImportDefaultValueSchema = xoTemplateIntentSchema.extend(xoTempl
|
|
|
1552
1547
|
* ```
|
|
1553
1548
|
*/
|
|
1554
1549
|
const xoTemplateVariableSchema = xoTemplateViewPropertiesSchema.extend({
|
|
1555
|
-
type:
|
|
1556
|
-
hint:
|
|
1550
|
+
type: xoTemplatePrimitiveTypeSchema.optional().describe("The data type of this variable."),
|
|
1551
|
+
hint: z.unknown().optional().describe("A hint to help users understand what value to provide."),
|
|
1557
1552
|
importDefaultValue: xoTemplateImportDefaultValueSchema.optional().describe("A neutral intent that the engine uses to populate the default value for this variable.")
|
|
1558
1553
|
}).strict();
|
|
1559
1554
|
/**
|
|
@@ -1665,11 +1660,11 @@ var CashAssemblyVariableTypeMismatchError = class extends Error {
|
|
|
1665
1660
|
}
|
|
1666
1661
|
};
|
|
1667
1662
|
/**
|
|
1668
|
-
* Error thrown when a
|
|
1663
|
+
* Error thrown when a method resolvable primitive type does not expose the requested method.
|
|
1669
1664
|
*/
|
|
1670
1665
|
var CashAssemblyPrimitiveMethodMissingError = class extends Error {
|
|
1671
|
-
constructor(identifier, methodName,
|
|
1672
|
-
super(`CashAssembly primitive method does not exist: identifier "${identifier}", methodName "${methodName}",
|
|
1666
|
+
constructor(identifier, methodName, type) {
|
|
1667
|
+
super(`CashAssembly primitive method does not exist: identifier "${identifier}", methodName "${methodName}", type "${type}"`);
|
|
1673
1668
|
}
|
|
1674
1669
|
};
|
|
1675
1670
|
/**
|
|
@@ -1689,7 +1684,7 @@ var CashAssemblyNumberNotSafeIntegerError = class extends Error {
|
|
|
1689
1684
|
}
|
|
1690
1685
|
};
|
|
1691
1686
|
/**
|
|
1692
|
-
* Error thrown when a
|
|
1687
|
+
* Error thrown when a method resolvable primitive is selected but its value is missing from the variables map.
|
|
1693
1688
|
*/
|
|
1694
1689
|
var CashAssemblyPrimitiveVariableMissingError = class extends Error {
|
|
1695
1690
|
constructor(identifier, variableName) {
|
|
@@ -1761,7 +1756,7 @@ const CASHASSEMBLY_LITERAL_TOKEN_PATTERN = /^[0-9"']/;
|
|
|
1761
1756
|
* `requestedSatoshis` does not match (no method)
|
|
1762
1757
|
* `key.schnorr_signature.all_outputs` does not match (more than one dot)
|
|
1763
1758
|
* `key.public_key` matches the pattern shape but it is only resolved
|
|
1764
|
-
* when `
|
|
1759
|
+
* when `type` maps to a primitive
|
|
1765
1760
|
*/
|
|
1766
1761
|
const CASHASSEMBLY_VARIABLE_METHOD_REFERENCE_PATTERN = /^([^.]+)\.([^.]+)$/;
|
|
1767
1762
|
|
|
@@ -1791,10 +1786,10 @@ const convertValueToBytes = (value, valueIdentifier) => {
|
|
|
1791
1786
|
//#endregion
|
|
1792
1787
|
//#region source/cash-assembly/primitive-evaluations.ts
|
|
1793
1788
|
/**
|
|
1794
|
-
*
|
|
1795
|
-
* Keys are
|
|
1789
|
+
* Maps method resolvable template types to `@xo-cash/primitives` classes for `base.method` resolution.
|
|
1790
|
+
* Keys are a subset of {@link XOTemplatePrimitiveTypes}.
|
|
1796
1791
|
*/
|
|
1797
|
-
const
|
|
1792
|
+
const RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE = {
|
|
1798
1793
|
[XOTemplatePrimitiveTypes.FUNGIBLE_TOKEN_AMOUNT]: FungibleTokenAmount,
|
|
1799
1794
|
[XOTemplatePrimitiveTypes.NFT_COMMITMENT]: NFTCommitment,
|
|
1800
1795
|
[XOTemplatePrimitiveTypes.PUBLIC_KEY]: PublicKey,
|
|
@@ -1806,55 +1801,55 @@ const PRIMITIVE_BY_TEMPLATE_HINT = {
|
|
|
1806
1801
|
[XOTemplatePrimitiveTypes.TRANSACTION_HASH]: TransactionHash
|
|
1807
1802
|
};
|
|
1808
1803
|
/**
|
|
1809
|
-
* Returns true when `
|
|
1804
|
+
* Returns true when `type` maps to a primitive class in `RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE` for method resolution.
|
|
1810
1805
|
*
|
|
1811
|
-
* @param {XOTemplatePrimitiveType | undefined}
|
|
1812
|
-
* @returns {boolean} True when the
|
|
1806
|
+
* @param {XOTemplatePrimitiveType | undefined} type - Template variable type.
|
|
1807
|
+
* @returns {boolean} True when the type can resolve `base.method` through a primitive class.
|
|
1813
1808
|
*/
|
|
1814
|
-
const
|
|
1815
|
-
return
|
|
1809
|
+
const isResolvablePrimitiveType = (type) => {
|
|
1810
|
+
return type !== void 0 && Object.hasOwn(RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE, type) === true;
|
|
1816
1811
|
};
|
|
1817
1812
|
/**
|
|
1818
|
-
* Returns true when `methodName` is an own function on the primitive class for `
|
|
1813
|
+
* Returns true when `methodName` is an own function on the primitive class for `type`.
|
|
1819
1814
|
*
|
|
1820
|
-
* @param {
|
|
1815
|
+
* @param {ResolvablePrimitiveType} type - Method resolvable template type.
|
|
1821
1816
|
* @param {string} methodName - Method name from the evaluation text, for example `toSatoshis`.
|
|
1822
1817
|
* @returns {boolean} True when that class exposes the named method.
|
|
1823
1818
|
*/
|
|
1824
|
-
const canResolvePrimitiveMethod = (
|
|
1825
|
-
const PrimitiveClass =
|
|
1819
|
+
const canResolvePrimitiveMethod = (type, methodName) => {
|
|
1820
|
+
const PrimitiveClass = RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE[type];
|
|
1826
1821
|
if (Object.hasOwn(PrimitiveClass.prototype, methodName) === false) return false;
|
|
1827
1822
|
return typeof Reflect.get(PrimitiveClass.prototype, methodName) === "function";
|
|
1828
1823
|
};
|
|
1829
1824
|
/**
|
|
1830
1825
|
* Constructs a primitive from a raw value and calls one instance method on it.
|
|
1831
1826
|
*
|
|
1832
|
-
* Call only after `canResolvePrimitiveMethod` is true for the same
|
|
1827
|
+
* Call only after `canResolvePrimitiveMethod` is true for the same type and method.
|
|
1833
1828
|
*
|
|
1834
|
-
* @param {CallPrimitiveMethodParameters} parameters - Identifier, method, value, and
|
|
1829
|
+
* @param {CallPrimitiveMethodParameters} parameters - Identifier, method, value, and resolvable type.
|
|
1835
1830
|
* @returns {unknown} Method return value, later encoded as CashAssembly push bytes.
|
|
1836
1831
|
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When the prototype member is not a function.
|
|
1837
1832
|
* @throws When the primitive constructor rejects the raw value (validation errors from `@xo-cash/primitives`).
|
|
1838
1833
|
*/
|
|
1839
1834
|
const callPrimitiveMethod = (parameters) => {
|
|
1840
|
-
const { identifier, methodName, value,
|
|
1841
|
-
const PrimitiveClass =
|
|
1835
|
+
const { identifier, methodName, value, type } = parameters;
|
|
1836
|
+
const PrimitiveClass = RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE[type];
|
|
1842
1837
|
const primitiveInstance = new PrimitiveClass(value);
|
|
1843
1838
|
const primitiveMethod = Reflect.get(PrimitiveClass.prototype, methodName);
|
|
1844
|
-
if (typeof primitiveMethod !== "function") throw new CashAssemblyPrimitiveMethodMissingError(identifier, methodName,
|
|
1839
|
+
if (typeof primitiveMethod !== "function") throw new CashAssemblyPrimitiveMethodMissingError(identifier, methodName, type);
|
|
1845
1840
|
return primitiveMethod.call(primitiveInstance);
|
|
1846
1841
|
};
|
|
1847
1842
|
/**
|
|
1848
|
-
* Resolves
|
|
1843
|
+
* Resolves method resolvable `base.method` identifiers to CashAssembly variable bytes.
|
|
1849
1844
|
*
|
|
1850
|
-
* Each single dot identifier whose `
|
|
1851
|
-
* the full identifier (`base.method`).
|
|
1845
|
+
* Each single dot identifier whose `type` is in `RESOLVABLE_PRIMITIVE_CLASS_BY_TYPE` is resolved and stored under
|
|
1846
|
+
* the full identifier (`base.method`). Other template types or multi dot identifiers are left for CashAssembly.
|
|
1852
1847
|
*
|
|
1853
1848
|
* When `templateVariables` is omitted, returns an empty map.
|
|
1854
1849
|
*
|
|
1855
1850
|
* @param {ResolvePrimitiveMethodBytesParameters} parameters - Identifiers, values, and optional template metadata.
|
|
1856
1851
|
* @returns {Record<string, Uint8Array>} Resolved method identifiers mapped to bytes for CashAssembly pushes.
|
|
1857
|
-
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When the
|
|
1852
|
+
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When the type is method resolvable but the method is missing.
|
|
1858
1853
|
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When the runtime value is missing from the variables map.
|
|
1859
1854
|
* @throws {@link CashAssemblyUnsupportedValueTypeError} When the method return type cannot be embedded.
|
|
1860
1855
|
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a method return value is a number that is not a safe integer.
|
|
@@ -1869,15 +1864,15 @@ const resolvePrimitiveMethodBytes = (parameters) => {
|
|
|
1869
1864
|
if (methodReferenceMatch === null) continue;
|
|
1870
1865
|
const [, baseName, methodName] = methodReferenceMatch;
|
|
1871
1866
|
if (Object.hasOwn(templateVariables, baseName) === false) continue;
|
|
1872
|
-
const
|
|
1873
|
-
if (
|
|
1874
|
-
if (canResolvePrimitiveMethod(
|
|
1867
|
+
const type = templateVariables[baseName].type;
|
|
1868
|
+
if (isResolvablePrimitiveType(type) === false) continue;
|
|
1869
|
+
if (canResolvePrimitiveMethod(type, methodName) === false) throw new CashAssemblyPrimitiveMethodMissingError(identifier, methodName, type);
|
|
1875
1870
|
if (Object.hasOwn(variables, baseName) === false) throw new CashAssemblyPrimitiveVariableMissingError(identifier, baseName);
|
|
1876
1871
|
resolvedBytes[identifier] = convertValueToBytes(callPrimitiveMethod({
|
|
1877
1872
|
identifier,
|
|
1878
1873
|
methodName,
|
|
1879
1874
|
value: variables[baseName],
|
|
1880
|
-
|
|
1875
|
+
type
|
|
1881
1876
|
}), identifier);
|
|
1882
1877
|
}
|
|
1883
1878
|
return resolvedBytes;
|
|
@@ -2022,11 +2017,11 @@ const compileCashAssemblyEvaluations = (evaluations) => {
|
|
|
2022
2017
|
* @param {CompiledCashAssemblyDecodeMode} [parameters.evaluationDecodeMode='utf8'] - The decode mode used
|
|
2023
2018
|
* after each evaluation is compiled. See {@link decodeCompiledCashAssemblyEvaluation}.
|
|
2024
2019
|
* @param {XOTemplate['variables']} [parameters.templateVariables] - Optional template variable definitions
|
|
2025
|
-
* used to resolve
|
|
2020
|
+
* used to resolve method resolvable `<name.method>` pushes via each variable's `type`.
|
|
2026
2021
|
* @returns {string} Compiled text with all evaluations replaced by decoded string values.
|
|
2027
2022
|
* @throws {@link CashAssemblyRequiredVariableMissingError} When a required variable is not present in the variables map.
|
|
2028
|
-
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When a
|
|
2029
|
-
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When a
|
|
2023
|
+
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When a method resolvable primitive type has an unknown method.
|
|
2024
|
+
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When a method resolvable primitive method is missing its runtime value.
|
|
2030
2025
|
* @throws {@link CashAssemblyUnsupportedValueTypeError} When a primitive method return type cannot be embedded as bytes.
|
|
2031
2026
|
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a number variable is not a safe integer.
|
|
2032
2027
|
* @throws {@link CashAssemblyVmNumberDecodeError} When `evaluationDecodeMode` is `bigint` and an evaluation is not a VM number.
|
|
@@ -2058,5 +2053,5 @@ const compileCashAssemblyString = (parameters) => {
|
|
|
2058
2053
|
};
|
|
2059
2054
|
|
|
2060
2055
|
//#endregion
|
|
2061
|
-
export { AsyncPushIterator, CASHASSEMBLY_EVALUATION_PATTERN, CASHASSEMBLY_EXPRESSION_PATTERN, CASHASSEMBLY_LITERAL_TOKEN_PATTERN, CASHASSEMBLY_VARIABLE_METHOD_REFERENCE_PATTERN, CASHASSEMBLY_VARIABLE_PATTERN, CashAssemblyCompilationFailedError, CashAssemblyNumberNotSafeIntegerError, CashAssemblyPrimitiveMethodMissingError, CashAssemblyPrimitiveVariableMissingError, CashAssemblyRequiredVariableMissingError, CashAssemblyUnsupportedValueTypeError, CashAssemblyVariableTypeMismatchError, CashAssemblyVmNumberDecodeError, EventEmitter, ExponentialBackoff, ExponentialBackoffExternallyAbortable, ExponentialBackoffMaxRetriesHitError, ExponentialBackoffNonIntegerError, ExponentialBackoffNumberNotFiniteError, ExponentialBackoffNumberOutOfBoundsError, ExponentialBackoffNumberTooSmallError, ExponentialBackoffStoppedRetriesError, ExternallyAbortedExponentialBackoffExternalSignalAbortedError, ExternallyAbortedExponentialBackoffInternalSignalAbortedError, SSEEventParser, TemplateInvalidError, TemplateJsonMalformedError, TemplateSerializationFailedError, VIEW_PROPERTIES_DESCRIPTION_MAX_LENGTH, VIEW_PROPERTIES_ICON_MAX_LENGTH, VIEW_PROPERTIES_NAME_MAX_LENGTH, WaitForTimeoutError, bchVmVersionSchema, buildErrorDescription, compileCashAssemblyEvaluations, compileCashAssemblyString, convertValueToBytes, decodeCompiledCashAssemblyEvaluation, extendedJsonReplacer, extendedJsonReviver, extractCashAssemblyEvaluations, extractVariablesFromEvaluations, fromExtendedJson, generateCashAssemblyBytecode, generateTemplateIdentifier, isCashAssemblyExpression, parseTemplate, resolvePrimitiveMethodBytes, satoshisSchema, scriptToScriptHash, serializeTemplate, toExtendedJson, uint8ArraySchema, xoTemplateActionIntentSchema, xoTemplateActionRequirementsSchema, xoTemplateActionRoleRequirementsSchema, xoTemplateActionRoleSchema, xoTemplateActionSchema, xoTemplateAssetAmountsSchema,
|
|
2056
|
+
export { AsyncPushIterator, CASHASSEMBLY_EVALUATION_PATTERN, CASHASSEMBLY_EXPRESSION_PATTERN, CASHASSEMBLY_LITERAL_TOKEN_PATTERN, CASHASSEMBLY_VARIABLE_METHOD_REFERENCE_PATTERN, CASHASSEMBLY_VARIABLE_PATTERN, CashAssemblyCompilationFailedError, CashAssemblyNumberNotSafeIntegerError, CashAssemblyPrimitiveMethodMissingError, CashAssemblyPrimitiveVariableMissingError, CashAssemblyRequiredVariableMissingError, CashAssemblyUnsupportedValueTypeError, CashAssemblyVariableTypeMismatchError, CashAssemblyVmNumberDecodeError, EventEmitter, ExponentialBackoff, ExponentialBackoffExternallyAbortable, ExponentialBackoffMaxRetriesHitError, ExponentialBackoffNonIntegerError, ExponentialBackoffNumberNotFiniteError, ExponentialBackoffNumberOutOfBoundsError, ExponentialBackoffNumberTooSmallError, ExponentialBackoffStoppedRetriesError, ExternallyAbortedExponentialBackoffExternalSignalAbortedError, ExternallyAbortedExponentialBackoffInternalSignalAbortedError, SSEEventParser, TemplateInvalidError, TemplateJsonMalformedError, TemplateSerializationFailedError, VIEW_PROPERTIES_DESCRIPTION_MAX_LENGTH, VIEW_PROPERTIES_ICON_MAX_LENGTH, VIEW_PROPERTIES_NAME_MAX_LENGTH, WaitForTimeoutError, bchVmVersionSchema, buildErrorDescription, compileCashAssemblyEvaluations, compileCashAssemblyString, convertValueToBytes, decodeCompiledCashAssemblyEvaluation, extendedJsonReplacer, extendedJsonReviver, extractCashAssemblyEvaluations, extractVariablesFromEvaluations, fromExtendedJson, generateCashAssemblyBytecode, generateTemplateIdentifier, isCashAssemblyExpression, parseTemplate, resolvePrimitiveMethodBytes, satoshisSchema, scriptToScriptHash, serializeTemplate, toExtendedJson, uint8ArraySchema, xoTemplateActionIntentSchema, xoTemplateActionRequirementsSchema, xoTemplateActionRoleRequirementsSchema, xoTemplateActionRoleSchema, xoTemplateActionSchema, xoTemplateAssetAmountsSchema, xoTemplateConstantSchema, xoTemplateDataSchema, xoTemplateDefaultsSchema, xoTemplateIconSchema, xoTemplateImportDefaultValueSchema, xoTemplateInputSchema, xoTemplateIntentSchema, xoTemplateLockingScriptIntentSchema, xoTemplateLockingScriptRoleSchema, xoTemplateLockingScriptSchema, xoTemplateLockingTypeSchema, xoTemplateNftCapabilitySchema, xoTemplateNonFungibleTokenDetailsSchema, xoTemplateOutputIntentSchema, xoTemplateOutputSchema, xoTemplatePrimitiveTypeSchema, xoTemplateResourceSchema, xoTemplateRoleSlotSchema, xoTemplateRoleSlotsRequirementsSchema, xoTemplateSchema, xoTemplateStateSchema, xoTemplateTokenSchema, xoTemplateTransactionInputSchema, xoTemplateTransactionOutputSchema, xoTemplateTransactionRoleDataSchema, xoTemplateTransactionSchema, xoTemplateVariableSchema, xoTemplateViewPropertiesSchema };
|
|
2062
2057
|
//# sourceMappingURL=index.mjs.map
|