@xo-cash/utils 0.0.6 → 0.0.7
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 +171 -193
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +623 -155
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IdentifierResolutionType } from "@bitauth/libauth";
|
|
2
2
|
import { XOInvitationVariableValue, XOTemplate } from "@xo-cash/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { $ZodIssue } from "zod/v4/core";
|
|
@@ -1958,229 +1958,91 @@ declare const xoTemplateSchema: z.ZodObject<{
|
|
|
1958
1958
|
scenarios: z.ZodOptional<z.ZodUnknown>;
|
|
1959
1959
|
}, z.core.$strict>;
|
|
1960
1960
|
//#endregion
|
|
1961
|
-
//#region source/cash-assembly/
|
|
1961
|
+
//#region source/cash-assembly/types.d.ts
|
|
1962
1962
|
/**
|
|
1963
1963
|
* Supported decode modes for compiled CashAssembly evaluation bytes.
|
|
1964
1964
|
*/
|
|
1965
1965
|
type CompiledCashAssemblyDecodeMode = 'utf8' | 'hex' | 'boolean' | 'bigint' | 'uint8array';
|
|
1966
1966
|
/**
|
|
1967
|
-
*
|
|
1967
|
+
* Template script map passed into CashAssembly compilation so evaluations can resolve bare script ids.
|
|
1968
1968
|
*/
|
|
1969
|
-
type
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1969
|
+
type CashAssemblyTemplateScripts = NonNullable<XOTemplate['scripts']>;
|
|
1970
|
+
/**
|
|
1971
|
+
* WalletData and template context shared by CashAssembly compilation.
|
|
1972
|
+
*/
|
|
1973
|
+
type CompileCashAssemblyContext = {
|
|
1974
1974
|
/**
|
|
1975
|
-
*
|
|
1975
|
+
* Runtime WalletData keyed by variable name.
|
|
1976
|
+
* {@link compileCashAssemblySourceToBytes} collects required names with
|
|
1977
|
+
* {@link collectVariablesUsingParseScript} then looks them up here for
|
|
1978
|
+
* primitive method resolution and CashAssembly compilation. A collected name that is absent throws
|
|
1979
|
+
* {@link CashAssemblyRequiredVariableMissingError}. Missing keys are never replaced with defaults.
|
|
1976
1980
|
*/
|
|
1977
1981
|
variables: Record<string, XOInvitationVariableValue | Uint8Array>;
|
|
1978
1982
|
/**
|
|
1979
|
-
*
|
|
1983
|
+
* Template variable definitions. When provided, each `<name.method>` push whose `hint` maps to
|
|
1984
|
+
* a supported primitive class is resolved to bytes before CashAssembly compilation.
|
|
1980
1985
|
*/
|
|
1981
|
-
|
|
1986
|
+
templateVariables?: XOTemplate['variables'] | undefined;
|
|
1982
1987
|
/**
|
|
1983
|
-
*
|
|
1984
|
-
*
|
|
1988
|
+
* Named CashAssembly scripts from {@link XOTemplate.scripts}.
|
|
1989
|
+
* Each key is a script id such as `scriptA`. Each value is that script's source.
|
|
1990
|
+
* Pass this when compilation refers to those ids, for example `$(scriptA)`, `scriptA`, or
|
|
1991
|
+
* `scriptA scriptB OP_ADD`. The compiler looks up those ids here. The visitor collects
|
|
1992
|
+
* WalletData from those sources and from nested ids.
|
|
1993
|
+
* When omitted, named scripts are not given to the compiler and only WalletData pushes in the
|
|
1994
|
+
* starting text are collected.
|
|
1985
1995
|
*/
|
|
1986
|
-
|
|
1996
|
+
templateScripts?: CashAssemblyTemplateScripts | undefined;
|
|
1987
1997
|
};
|
|
1988
1998
|
/**
|
|
1989
|
-
*
|
|
1990
|
-
*
|
|
1991
|
-
* @param {unknown} expression - The expression to check.
|
|
1992
|
-
* @returns {boolean} True if the expression is a CashAssembly expression, false otherwise.
|
|
1993
|
-
*/
|
|
1994
|
-
declare const isCashAssemblyExpression: (expression: unknown) => boolean;
|
|
1995
|
-
/**
|
|
1996
|
-
* Extracts all CashAssembly evaluations (i.e., substrings like $(...)) from the input text.
|
|
1997
|
-
*
|
|
1998
|
-
* @param {string} text - The input string to scan for CashAssembly evaluations.
|
|
1999
|
-
* @returns {string[]} An array of evaluation strings found in the input.
|
|
2000
|
-
*
|
|
2001
|
-
* @example
|
|
2002
|
-
* extractCashAssemblyEvaluations("OP_DUP <$(<foo>)> OP_HASH160 $(<bar>)");
|
|
2003
|
-
* // returns ['$(<foo>)', '$(<bar>)']
|
|
2004
|
-
*/
|
|
2005
|
-
declare const extractCashAssemblyEvaluations: (text: string) => string[];
|
|
2006
|
-
/**
|
|
2007
|
-
* Extracts unique variable identifiers enclosed in angle brackets from each evaluation string.
|
|
2008
|
-
*
|
|
2009
|
-
* CashAssembly literal tokens such as hex bytes, numbers, and quoted strings are excluded via
|
|
2010
|
-
* {@link CASHASSEMBLY_LITERAL_TOKEN_PATTERN}. For example, `<0x02>` and `<"minting">` are not returned.
|
|
2011
|
-
*
|
|
2012
|
-
* @param {string[]} evaluations - An array of evaluation strings from which to extract variable names.
|
|
2013
|
-
* @returns {string[]} An array of variable names.
|
|
2014
|
-
*/
|
|
2015
|
-
declare const extractVariablesFromEvaluations: (evaluations: string[]) => string[];
|
|
2016
|
-
/**
|
|
2017
|
-
* Decodes compiled CashAssembly evaluation bytes into a string representation.
|
|
2018
|
-
*
|
|
2019
|
-
* 'evaluationDecodeMode' determines how the evaluation bytes are interpreted and presented.
|
|
2020
|
-
* Use `bigint` for numeric values like satoshis, `utf8` for text labels, `hex` for binary data
|
|
2021
|
-
* such as hashes, and `boolean` to represent boolean values.
|
|
2022
|
-
*
|
|
2023
|
-
* @param {Uint8Array} compiledResult - The compiled evaluation bytecode.
|
|
2024
|
-
* @param {CompiledCashAssemblyDecodeMode} [evaluationDecodeMode='utf8'] - The decode mode used to convert
|
|
2025
|
-
* bytes to text.
|
|
2026
|
-
* @returns {string} The decoded value as a string suitable for inline replacement.
|
|
2027
|
-
* @throws {@link CashAssemblyVmNumberDecodeError} When `evaluationDecodeMode` is `bigint` and the bytes are not a VM number.
|
|
2028
|
-
*/
|
|
2029
|
-
declare const decodeCompiledCashAssemblyEvaluation: (compiledResult: Uint8Array, evaluationDecodeMode?: CompiledCashAssemblyDecodeMode) => string;
|
|
2030
|
-
/**
|
|
2031
|
-
* Generates bytecode for a specific CashAssembly evaluation using given variable values and a prepared compiler.
|
|
2032
|
-
*
|
|
2033
|
-
* @param {CompilerBch} compiler - The libauth compiler from {@link compileCashAssemblyEvaluations}.
|
|
2034
|
-
* @param {string} evaluation - The specific evaluation string to compile.
|
|
2035
|
-
* @param {Record<string, Uint8Array>} variables - A record mapping variable names to their values.
|
|
2036
|
-
* @returns {Uint8Array} The compiled bytecode.
|
|
2037
|
-
* @throws {@link CashAssemblyRequiredVariableMissingError} If a required variable is not present.
|
|
2038
|
-
* @throws {@link CashAssemblyVariableTypeMismatchError} If a variable value is not a Uint8Array.
|
|
2039
|
-
* @throws {@link CashAssemblyCompilationFailedError} If libauth compilation fails.
|
|
2040
|
-
*/
|
|
2041
|
-
declare const generateCashAssemblyBytecode: (compiler: CompilerBch, evaluation: string, variables: Record<string, Uint8Array>) => Uint8Array;
|
|
2042
|
-
/**
|
|
2043
|
-
* Prepares a compiler for the provided CashAssembly evaluations, setting required variables as 'WalletData'.
|
|
2044
|
-
*
|
|
2045
|
-
* @param {string[]} evaluations - Array of evaluation strings (e.g., ['$(<var1>)', '$(<var2> <var3>)']).
|
|
2046
|
-
* @returns {CompilerBch} A Libauth compiler instance for use with these evaluations.
|
|
2047
|
-
*/
|
|
2048
|
-
declare const compileCashAssemblyEvaluations: (evaluations: string[]) => CompilerBch;
|
|
2049
|
-
/**
|
|
2050
|
-
* Compiles all CashAssembly evaluations in a text string and replaces each evaluation
|
|
2051
|
-
* with a decoded string representation.
|
|
2052
|
-
*
|
|
2053
|
-
* @param {CompileCashAssemblyStringParameters} parameters - Parameters for compiling the CashAssembly string.
|
|
2054
|
-
* @param {string} parameters.cashAssemblyText - The string with CashAssembly evaluations.
|
|
2055
|
-
* @param {Record<string, XOInvitationVariableValue | Uint8Array>} parameters.variables - Object mapping
|
|
2056
|
-
* variable names to values for compilation.
|
|
2057
|
-
* @param {CompiledCashAssemblyDecodeMode} [parameters.evaluationDecodeMode='utf8'] - The decode mode used
|
|
2058
|
-
* after each evaluation is compiled. See {@link decodeCompiledCashAssemblyEvaluation}.
|
|
2059
|
-
* @param {XOTemplate['variables']} [parameters.templateVariables] - Optional template variable definitions
|
|
2060
|
-
* used to resolve method resolvable `<name.method>` pushes via each variable's `type`.
|
|
2061
|
-
* @returns {string} Compiled text with all evaluations replaced by decoded string values.
|
|
2062
|
-
* @throws {@link CashAssemblyRequiredVariableMissingError} When a required variable is not present in the variables map.
|
|
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.
|
|
2065
|
-
* @throws {@link CashAssemblyUnsupportedValueTypeError} When a primitive method return type cannot be embedded as bytes.
|
|
2066
|
-
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a number variable is not a safe integer.
|
|
2067
|
-
* @throws {@link CashAssemblyVmNumberDecodeError} When `evaluationDecodeMode` is `bigint` and an evaluation is not a VM number.
|
|
2068
|
-
*/
|
|
2069
|
-
declare const compileCashAssemblyString: (parameters: CompileCashAssemblyStringParameters) => string;
|
|
2070
|
-
//#endregion
|
|
2071
|
-
//#region source/cash-assembly/primitive-evaluations.d.ts
|
|
2072
|
-
/**
|
|
2073
|
-
* Inputs needed to resolve primitive method pushes from extracted CashAssembly identifiers.
|
|
1999
|
+
* Parameters for compiling CashAssembly text.
|
|
2074
2000
|
*/
|
|
2075
|
-
type
|
|
2076
|
-
/**
|
|
2077
|
-
* Variable identifiers from {@link extractVariablesFromEvaluations}, for example
|
|
2078
|
-
* `['amount.toSatoshis', 'fee.toSatoshis']`.
|
|
2079
|
-
*/
|
|
2080
|
-
identifiers: string[];
|
|
2001
|
+
type CompileCashAssemblyStringParameters = CompileCashAssemblyContext & {
|
|
2081
2002
|
/**
|
|
2082
|
-
*
|
|
2003
|
+
* Text to compile, which may contain `$()`.
|
|
2004
|
+
*
|
|
2005
|
+
* When this text contains `$()`, each CashAssembly evaluation is compiled and replaced with its
|
|
2006
|
+
* decoded payload. Surrounding text is kept.
|
|
2007
|
+
* When this text contains no `$()`, the entire string is compiled as CashAssembly so push
|
|
2008
|
+
* opcodes remain.
|
|
2083
2009
|
*/
|
|
2084
|
-
|
|
2010
|
+
cashAssemblyText: string;
|
|
2085
2011
|
/**
|
|
2086
|
-
*
|
|
2087
|
-
* The `type` on each entry selects the primitive class.
|
|
2012
|
+
* The mode to decode compiled bytecode into a string.
|
|
2088
2013
|
*/
|
|
2089
|
-
|
|
2014
|
+
evaluationDecodeMode?: CompiledCashAssemblyDecodeMode;
|
|
2090
2015
|
};
|
|
2091
|
-
/**
|
|
2092
|
-
* Resolves method resolvable `base.method` identifiers to CashAssembly variable bytes.
|
|
2093
|
-
*
|
|
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.
|
|
2096
|
-
*
|
|
2097
|
-
* When `templateVariables` is omitted, returns an empty map.
|
|
2098
|
-
*
|
|
2099
|
-
* @param {ResolvePrimitiveMethodBytesParameters} parameters - Identifiers, values, and optional template metadata.
|
|
2100
|
-
* @returns {Record<string, Uint8Array>} Resolved method identifiers mapped to bytes for CashAssembly pushes.
|
|
2101
|
-
* @throws {@link CashAssemblyPrimitiveMethodMissingError} When the type is method resolvable but the method is missing.
|
|
2102
|
-
* @throws {@link CashAssemblyPrimitiveVariableMissingError} When the runtime value is missing from the variables map.
|
|
2103
|
-
* @throws {@link CashAssemblyUnsupportedValueTypeError} When the method return type cannot be embedded.
|
|
2104
|
-
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a method return value is a number that is not a safe integer.
|
|
2105
|
-
*/
|
|
2106
|
-
declare const resolvePrimitiveMethodBytes: (parameters: ResolvePrimitiveMethodBytesParameters) => Record<string, Uint8Array>;
|
|
2107
2016
|
//#endregion
|
|
2108
|
-
//#region source/cash-assembly/
|
|
2109
|
-
/**
|
|
2110
|
-
* Converts a value into bytes representation.
|
|
2111
|
-
*
|
|
2112
|
-
* @param {unknown} value - Value to encode, should be one of: Uint8Array, bigint, boolean, string, or a safe integer number.
|
|
2113
|
-
* @param {string} valueIdentifier - Identifier used in error messages.
|
|
2114
|
-
* @returns {Uint8Array} Bytes representation of the value.
|
|
2115
|
-
* @throws {@link CashAssemblyNumberNotSafeIntegerError} When a number is not a safe integer.
|
|
2116
|
-
* @throws {@link CashAssemblyUnsupportedValueTypeError} When the value type cannot be resolved.
|
|
2117
|
-
*/
|
|
2118
|
-
declare const convertValueToBytes: (value: unknown, valueIdentifier: string) => Uint8Array;
|
|
2119
|
-
//#endregion
|
|
2120
|
-
//#region source/cash-assembly/defaults.d.ts
|
|
2121
|
-
/**
|
|
2122
|
-
* Detects whether a string is a pure CashAssembly expression.
|
|
2123
|
-
*
|
|
2124
|
-
* CashAssembly expressions look like `$(<variable>)` or `$(<a> <b>)`. This pattern checks
|
|
2125
|
-
* that the entire string is one such expression and nothing else. It will not match if
|
|
2126
|
-
* there is other text surrounding the expression.
|
|
2127
|
-
*
|
|
2128
|
-
* For example:
|
|
2129
|
-
* `$(<fee>)` matches (a full expression)
|
|
2130
|
-
* `OP_DUP $(<fee>)` does not match (extra text before it)
|
|
2131
|
-
* `$()` does not match (empty expression)
|
|
2132
|
-
*/
|
|
2133
|
-
declare const CASHASSEMBLY_EXPRESSION_PATTERN: RegExp;
|
|
2134
|
-
/**
|
|
2135
|
-
* Finds all CashAssembly evaluations embedded in a larger string.
|
|
2136
|
-
*
|
|
2137
|
-
* An evaluation looks like `$(...)`, for example `$(<fee>)` or `$(<a> <b>)`. This pattern
|
|
2138
|
-
* locates every occurrence in the input and returns them all (global flag `g`).
|
|
2139
|
-
* Empty evaluations `$()` are intentionally excluded because they reference no variables.
|
|
2140
|
-
*
|
|
2141
|
-
* For example, scanning `"OP_DUP <$(<pubkeyHash>)> OP_HASH160 $(<fee>)"` would return
|
|
2142
|
-
* `['$(<pubkeyHash>)', '$(<fee>)']`.
|
|
2143
|
-
*/
|
|
2144
|
-
declare const CASHASSEMBLY_EVALUATION_PATTERN: RegExp;
|
|
2145
|
-
/**
|
|
2146
|
-
* Extracts variable names from angle-bracket references inside a CashAssembly evaluation.
|
|
2147
|
-
*
|
|
2148
|
-
* Inside an evaluation like `$(<pubkeyHash> <fee>)`, variables are referenced as `<name>`.
|
|
2149
|
-
* This pattern captures the name between the brackets. The global flag `g` allows iterating
|
|
2150
|
-
* over every variable reference in a single evaluation string.
|
|
2151
|
-
*
|
|
2152
|
-
* For example, running this against `$(<pubkeyHash> <fee>)` would return the variable names
|
|
2153
|
-
* `["pubkeyHash", "fee"]`.
|
|
2154
|
-
*/
|
|
2155
|
-
declare const CASHASSEMBLY_VARIABLE_PATTERN: RegExp;
|
|
2156
|
-
/**
|
|
2157
|
-
* Identifies CashAssembly literal tokens that appear inside angle-bracket push statements.
|
|
2158
|
-
*
|
|
2159
|
-
* Inside an evaluation, not everything between `<` and `>` is a variable name. Literals are
|
|
2160
|
-
* also valid push contents: numeric literals (e.g. `<0>`, `<32>`), hex literals (`<0x02>`),
|
|
2161
|
-
* binary literals (`<0b1010>`), and string literals (`<"minting">`, `<'hello'>`). This pattern
|
|
2162
|
-
* matches any captured token that starts with a digit or a quote character.
|
|
2163
|
-
*/
|
|
2164
|
-
declare const CASHASSEMBLY_LITERAL_TOKEN_PATTERN: RegExp;
|
|
2017
|
+
//#region source/cash-assembly/collect-evaluations.d.ts
|
|
2165
2018
|
/**
|
|
2166
|
-
*
|
|
2019
|
+
* Collects WalletData names from the parseScript tree using the visitor pattern.
|
|
2167
2020
|
*
|
|
2168
|
-
*
|
|
2021
|
+
* parseScript returns a tree of Script, Push, Evaluation, and Identifier nodes. Nested Push and
|
|
2022
|
+
* Evaluation nodes are entered immediately. A template script id is queued whether it appears inside a Push or next to
|
|
2023
|
+
* opcodes. Queued script sources are visited after the current tree finishes, in the order they were
|
|
2024
|
+
* first seen.
|
|
2025
|
+
* A visited id is skipped on later encounters. Opcodes and literals are ignored. Unrelated scripts
|
|
2026
|
+
* in the map are not visited. An Identifier inside a nested Push is collected from that inner Push,
|
|
2027
|
+
* for example `<$(<ownerKey.public_key> OP_HASH160)>` collects `ownerKey.public_key`.
|
|
2169
2028
|
*
|
|
2170
|
-
*
|
|
2171
|
-
*
|
|
2172
|
-
*
|
|
2173
|
-
*
|
|
2174
|
-
*
|
|
2175
|
-
* when `type` maps to a primitive
|
|
2029
|
+
* @param {string} evaluation - CashAssembly evaluation or script id text to scan.
|
|
2030
|
+
* @param {CashAssemblyTemplateScripts} [templateScripts] - Optional template scripts map used to visit nested script ids.
|
|
2031
|
+
* @returns {string[]} - WalletData names from reachable Pushes. Script ids are omitted when
|
|
2032
|
+
* `templateScripts` is provided.
|
|
2033
|
+
* @throws {@link CashAssemblyCompilationFailedError} - When parseScript rejects the starting text or a visited script source.
|
|
2176
2034
|
*/
|
|
2177
|
-
declare const
|
|
2035
|
+
declare const collectVariablesUsingParseScript: (evaluation: string, templateScripts?: CashAssemblyTemplateScripts) => string[];
|
|
2178
2036
|
//#endregion
|
|
2179
2037
|
//#region source/cash-assembly/errors.d.ts
|
|
2180
2038
|
/**
|
|
2181
2039
|
* Error thrown when a required variable is missing.
|
|
2182
2040
|
*/
|
|
2183
2041
|
declare class CashAssemblyRequiredVariableMissingError extends Error {
|
|
2042
|
+
/**
|
|
2043
|
+
* Variable names that were required but absent from the variables map.
|
|
2044
|
+
*/
|
|
2045
|
+
readonly variableNames: string[];
|
|
2184
2046
|
constructor(variableNames?: string[]);
|
|
2185
2047
|
}
|
|
2186
2048
|
/**
|
|
@@ -2189,6 +2051,56 @@ declare class CashAssemblyRequiredVariableMissingError extends Error {
|
|
|
2189
2051
|
declare class CashAssemblyCompilationFailedError extends Error {
|
|
2190
2052
|
constructor(message?: string);
|
|
2191
2053
|
}
|
|
2054
|
+
/**
|
|
2055
|
+
* Error thrown when a quoted string inside `$()` never closes.
|
|
2056
|
+
*/
|
|
2057
|
+
declare class CashAssemblyQuotedLiteralUnclosedError extends Error {
|
|
2058
|
+
/**
|
|
2059
|
+
* Index of the opening quote that never found a closer.
|
|
2060
|
+
*/
|
|
2061
|
+
readonly openingQuoteIndex: number;
|
|
2062
|
+
/**
|
|
2063
|
+
* Quote character that opened the literal.
|
|
2064
|
+
*/
|
|
2065
|
+
readonly quoteCharacter: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Text from the opening quote through the end of the scanned string.
|
|
2068
|
+
*/
|
|
2069
|
+
readonly unclosedText: string;
|
|
2070
|
+
constructor(openingQuoteIndex: number, quoteCharacter: string, cashAssemblyText: string);
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Error thrown when a block comment inside `$()` never closes.
|
|
2074
|
+
*/
|
|
2075
|
+
declare class CashAssemblyBlockCommentUnclosedError extends Error {
|
|
2076
|
+
/**
|
|
2077
|
+
* Index of the first slash of the block comment opener.
|
|
2078
|
+
*/
|
|
2079
|
+
readonly commentStartIndex: number;
|
|
2080
|
+
/**
|
|
2081
|
+
* Text from the block comment opener through the end of the scanned string.
|
|
2082
|
+
*/
|
|
2083
|
+
readonly unclosedText: string;
|
|
2084
|
+
constructor(commentStartIndex: number, cashAssemblyText: string);
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Error thrown when a `$()` evaluation never finds its matching closer.
|
|
2088
|
+
*/
|
|
2089
|
+
declare class CashAssemblyEvaluationUnclosedError extends Error {
|
|
2090
|
+
/**
|
|
2091
|
+
* Index of the `$` that opened the evaluation.
|
|
2092
|
+
*/
|
|
2093
|
+
readonly evaluationStartIndex: number;
|
|
2094
|
+
/**
|
|
2095
|
+
* How many `$()` remain open at the end of the string, including nested evaluations.
|
|
2096
|
+
*/
|
|
2097
|
+
readonly remainingOpenEvaluations: number;
|
|
2098
|
+
/**
|
|
2099
|
+
* Text from the opening `$` through the end of the scanned string.
|
|
2100
|
+
*/
|
|
2101
|
+
readonly unclosedText: string;
|
|
2102
|
+
constructor(evaluationStartIndex: number, remainingOpenEvaluations: number, cashAssemblyText: string);
|
|
2103
|
+
}
|
|
2192
2104
|
/**
|
|
2193
2105
|
* Error thrown when a variable's runtime type does not match the type required for compilation.
|
|
2194
2106
|
*/
|
|
@@ -2219,6 +2131,20 @@ declare class CashAssemblyNumberNotSafeIntegerError extends Error {
|
|
|
2219
2131
|
declare class CashAssemblyPrimitiveVariableMissingError extends Error {
|
|
2220
2132
|
constructor(identifier: string, variableName: string);
|
|
2221
2133
|
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Error thrown when one identifier would resolve as more than one {@link IdentifierResolutionType}.
|
|
2136
|
+
*/
|
|
2137
|
+
declare class CashAssemblyIdentifierCollisionError extends Error {
|
|
2138
|
+
/**
|
|
2139
|
+
* Identifier that more than one resolution type would match.
|
|
2140
|
+
*/
|
|
2141
|
+
readonly identifier: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* The list of resolution types that the identifier matches.
|
|
2144
|
+
*/
|
|
2145
|
+
readonly resolutionTypes: IdentifierResolutionType[];
|
|
2146
|
+
constructor(identifier: string, resolutionTypes: IdentifierResolutionType[]);
|
|
2147
|
+
}
|
|
2222
2148
|
/**
|
|
2223
2149
|
* Error thrown when compiled evaluation bytes cannot be decoded as a VM number.
|
|
2224
2150
|
*/
|
|
@@ -2226,6 +2152,58 @@ declare class CashAssemblyVmNumberDecodeError extends Error {
|
|
|
2226
2152
|
constructor(reason: string);
|
|
2227
2153
|
}
|
|
2228
2154
|
//#endregion
|
|
2155
|
+
//#region source/cash-assembly/evaluations.d.ts
|
|
2156
|
+
/**
|
|
2157
|
+
* Compiles CashAssembly text. WalletData names come from parseScript. `$()` evaluations in text
|
|
2158
|
+
* are found by scanning the string and matching parentheses.
|
|
2159
|
+
*
|
|
2160
|
+
* When `cashAssemblyText` contains `$()`, each non empty evaluation is compiled and
|
|
2161
|
+
* replaced in place. Empty `$()` is copied through. Surrounding text is kept. Evaluation drops
|
|
2162
|
+
* push opcodes and keeps the stack payload.
|
|
2163
|
+
*
|
|
2164
|
+
* When `cashAssemblyText` contains no `$()` at all, the entire string is compiled as CashAssembly.
|
|
2165
|
+
* Push opcodes from `<...>` remain. Pass a template script id such as `scriptA` or
|
|
2166
|
+
* concatenated ids such as `scriptA scriptB`.
|
|
2167
|
+
*
|
|
2168
|
+
* Required WalletData names come from {@link collectVariablesUsingParseScript}.
|
|
2169
|
+
*
|
|
2170
|
+
* @param {CompileCashAssemblyStringParameters} parameters - Parameters for compiling the CashAssembly string.
|
|
2171
|
+
* @returns {string} - Compiled text with evaluations replaced, or decoded bytecode when the whole string is compiled as CashAssembly.
|
|
2172
|
+
* @throws {@link CashAssemblyRequiredVariableMissingError} - When a required variable is not present in the variables map.
|
|
2173
|
+
* @throws {@link CashAssemblyPrimitiveMethodMissingError} - When a supported primitive hint has an unknown method.
|
|
2174
|
+
* @throws {@link CashAssemblyPrimitiveVariableMissingError} - When a supported primitive method is missing its runtime value.
|
|
2175
|
+
* @throws {@link CashAssemblyUnsupportedValueTypeError} - When a primitive method return type cannot be embedded as bytes.
|
|
2176
|
+
* @throws {@link CashAssemblyNumberNotSafeIntegerError} - When a number variable is not a safe integer.
|
|
2177
|
+
* @throws {@link CashAssemblyVmNumberDecodeError} - When `evaluationDecodeMode` is `bigint` and compiled bytes are not a VM number.
|
|
2178
|
+
* @throws {@link CashAssemblyIdentifierCollisionError} - When one identifier matches two resolution types.
|
|
2179
|
+
* @throws {@link CashAssemblyCompilationFailedError} - When Libauth compilation fails.
|
|
2180
|
+
* @throws {@link CashAssemblyEvaluationUnclosedError} - When an evaluation never closes.
|
|
2181
|
+
* @throws {@link CashAssemblyQuotedLiteralUnclosedError} - When a quoted literal never closes.
|
|
2182
|
+
* @throws {@link CashAssemblyBlockCommentUnclosedError} - When a block comment never closes.
|
|
2183
|
+
*/
|
|
2184
|
+
declare const compileCashAssemblyString: (parameters: CompileCashAssemblyStringParameters) => string;
|
|
2185
|
+
//#endregion
|
|
2186
|
+
//#region source/cash-assembly/scan-evaluations.d.ts
|
|
2187
|
+
/**
|
|
2188
|
+
* This function returns each `$()` that starts in this string.
|
|
2189
|
+
* Empty `$()` is omitted.
|
|
2190
|
+
*
|
|
2191
|
+
* @param {string} cashAssemblyText - Text that may contain `$()`.
|
|
2192
|
+
* @returns {string[]} - Complete non empty evaluation strings in left to right order.
|
|
2193
|
+
* @throws {@link CashAssemblyEvaluationUnclosedError} - When an evaluation never closes.
|
|
2194
|
+
* @throws {@link CashAssemblyQuotedLiteralUnclosedError} - When a quoted literal never closes.
|
|
2195
|
+
* @throws {@link CashAssemblyBlockCommentUnclosedError} - When a block comment never closes.
|
|
2196
|
+
*/
|
|
2197
|
+
declare const extractCashAssemblyEvaluations: (cashAssemblyText: string) => string[];
|
|
2198
|
+
/**
|
|
2199
|
+
* This function returns true when the value is exactly one CashAssembly `$()`.
|
|
2200
|
+
* Text with characters outside `$()`, empty `$()`, or a failed scan returns false.
|
|
2201
|
+
*
|
|
2202
|
+
* @param {unknown} expression - Value to test.
|
|
2203
|
+
* @returns {boolean} - True when the value is a string that is one complete evaluation and nothing else.
|
|
2204
|
+
*/
|
|
2205
|
+
declare const isCashAssemblyExpression: (expression: unknown) => boolean;
|
|
2206
|
+
//#endregion
|
|
2229
2207
|
//#region source/template/serialization.d.ts
|
|
2230
2208
|
/**
|
|
2231
2209
|
* Serializes an XOTemplate to a JSON string. Encodes `bigint` and `Uint8Array` fields in
|
|
@@ -2237,5 +2215,5 @@ declare class CashAssemblyVmNumberDecodeError extends Error {
|
|
|
2237
2215
|
*/
|
|
2238
2216
|
declare const serializeTemplate: (template: XOTemplate) => string;
|
|
2239
2217
|
//#endregion
|
|
2240
|
-
export { AsyncPushIterator,
|
|
2218
|
+
export { AsyncPushIterator, CashAssemblyBlockCommentUnclosedError, CashAssemblyCompilationFailedError, CashAssemblyEvaluationUnclosedError, CashAssemblyIdentifierCollisionError, CashAssemblyNumberNotSafeIntegerError, CashAssemblyPrimitiveMethodMissingError, CashAssemblyPrimitiveVariableMissingError, CashAssemblyQuotedLiteralUnclosedError, CashAssemblyRequiredVariableMissingError, CashAssemblyUnsupportedValueTypeError, CashAssemblyVariableTypeMismatchError, CashAssemblyVmNumberDecodeError, type CompileCashAssemblyStringParameters, type CompiledCashAssemblyDecodeMode, EventEmitter, EventMap, ExponentialBackoff, ExponentialBackoffCallbackParameters, ExponentialBackoffExternallyAbortable, ExponentialBackoffExternallyAbortableOptions, ExponentialBackoffMaxRetriesHitError, ExponentialBackoffNonIntegerError, ExponentialBackoffNumberNotFiniteError, ExponentialBackoffNumberOutOfBoundsError, ExponentialBackoffNumberTooSmallError, ExponentialBackoffOptions, ExponentialBackoffRunOptions, ExponentialBackoffStaticRunOptions, ExponentialBackoffStopRetriesFunction, ExponentialBackoffStoppedRetriesError, ExternallyAbortedExponentialBackoffExternalSignalAbortedError, ExternallyAbortedExponentialBackoffInternalSignalAbortedError, OffCallback, SSEEventParser, SSEEventParserOptions, TemplateInvalidError, TemplateJsonMalformedError, TemplateSerializationFailedError, VIEW_PROPERTIES_DESCRIPTION_MAX_LENGTH, VIEW_PROPERTIES_ICON_MAX_LENGTH, VIEW_PROPERTIES_NAME_MAX_LENGTH, WaitForTimeoutError, bchVmVersionSchema, buildErrorDescription, collectVariablesUsingParseScript, compileCashAssemblyString, extendedJsonReplacer, extendedJsonReviver, extractCashAssemblyEvaluations, fromExtendedJson, generateTemplateIdentifier, isCashAssemblyExpression, parseTemplate, 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 };
|
|
2241
2219
|
//# 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/
|
|
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/types.ts","../source/cash-assembly/collect-evaluations.ts","../source/cash-assembly/errors.ts","../source/cash-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