@fuel-ts/account 0.0.0-rc-2209-20240430130352 → 0.0.0-rc-2143-20240430130957
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.
Potentially problematic release.
This version of @fuel-ts/account might be problematic. Click here for more details.
- package/dist/index.global.js +4 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/test-utils/launchNode.d.ts +4 -2
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +6 -3
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +5 -3
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +5 -3
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +15 -15
@@ -6,6 +6,7 @@ export type LaunchNodeOptions = {
|
|
6
6
|
ip?: string;
|
7
7
|
port?: string;
|
8
8
|
args?: string[];
|
9
|
+
fuelCorePath?: string;
|
9
10
|
useSystemFuelCore?: boolean;
|
10
11
|
loggingEnabled?: boolean;
|
11
12
|
debugEnabled?: boolean;
|
@@ -31,12 +32,13 @@ export declare const killNode: (params: KillNodeParams) => void;
|
|
31
32
|
* @param ip - the ip to bind to. (optional, defaults to 0.0.0.0)
|
32
33
|
* @param port - the port to bind to. (optional, defaults to 4000 or the next available port)
|
33
34
|
* @param args - additional arguments to pass to fuel-core.
|
34
|
-
* @param
|
35
|
+
* @param fuelCorePath - the path to the fuel-core binary. (optional, defaults to the fuel-core binary in the node_modules folder)
|
36
|
+
* @param useSystemFuelCore - whether to use the system fuel-core binary or the one provided by the \@internal/fuel-core package.
|
35
37
|
* @param loggingEnabled - whether the node should output logs. (optional, defaults to true)
|
36
38
|
* @param debugEnabled - whether the node should log debug messages. (optional, defaults to false)
|
37
39
|
* @param basePath - the base path to use for the temporary folder. (optional, defaults to os.tmpdir())
|
38
40
|
* */
|
39
|
-
export declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
|
41
|
+
export declare const launchNode: ({ ip, port, args, fuelCorePath, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
|
40
42
|
export type LaunchNodeAndGetWalletsResult = Promise<{
|
41
43
|
wallets: WalletUnlocked[];
|
42
44
|
stop: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"launchNode.d.ts","sourceRoot":"","sources":["../../src/test-utils/launchNode.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AASpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAuBhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,8BAA8B,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE;QACL,MAAM,EA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L,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC;IAClD,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC,CAAC;AAEH;;;;KAIK;AACL,eAAO,MAAM,uBAAuB;;;mCAiBnC,CAAC"}
|
@@ -32037,6 +32037,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32037
32037
|
ErrorCode2["ACCOUNT_REQUIRED"] = "account-required";
|
32038
32038
|
ErrorCode2["UNLOCKED_WALLET_REQUIRED"] = "unlocked-wallet-required";
|
32039
32039
|
ErrorCode2["ERROR_BUILDING_BLOCK_EXPLORER_URL"] = "error-building-block-explorer-url";
|
32040
|
+
ErrorCode2["UNSUPPORTED_FUEL_CLIENT_VERSION"] = "unsupported-fuel-client-version";
|
32040
32041
|
ErrorCode2["VITEPRESS_PLUGIN_ERROR"] = "vitepress-plugin-error";
|
32041
32042
|
ErrorCode2["INVALID_MULTICALL"] = "invalid-multicall";
|
32042
32043
|
ErrorCode2["SCRIPT_REVERTED"] = "script-reverted";
|
@@ -44395,8 +44396,9 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
44395
44396
|
static ensureClientVersionIsSupported(nodeInfo) {
|
44396
44397
|
const { isMajorSupported, isMinorSupported, supportedVersion } = checkFuelCoreVersionCompatibility(nodeInfo.nodeVersion);
|
44397
44398
|
if (!isMajorSupported || !isMinorSupported) {
|
44398
|
-
|
44399
|
-
|
44399
|
+
throw new FuelError(
|
44400
|
+
FuelError.CODES.UNSUPPORTED_FUEL_CLIENT_VERSION,
|
44401
|
+
`Fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
|
44400
44402
|
);
|
44401
44403
|
}
|
44402
44404
|
}
|
@@ -50228,6 +50230,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50228
50230
|
ip,
|
50229
50231
|
port,
|
50230
50232
|
args = [],
|
50233
|
+
fuelCorePath = void 0,
|
50231
50234
|
useSystemFuelCore = false,
|
50232
50235
|
loggingEnabled = true,
|
50233
50236
|
debugEnabled = false,
|
@@ -50248,7 +50251,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50248
50251
|
const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
|
50249
50252
|
const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
|
50250
50253
|
const graphQLStartSubstring = "Binding GraphQL provider to";
|
50251
|
-
const binPath = findBinPath("fuels-core", __dirname);
|
50254
|
+
const binPath = fuelCorePath ?? findBinPath("fuels-core", __dirname);
|
50252
50255
|
const command = useSystemFuelCore ? "fuel-core" : binPath;
|
50253
50256
|
const ipToUse = ip || "0.0.0.0";
|
50254
50257
|
const portToUse = port || (await (0, import_portfinder.getPortPromise)({
|