@fuel-ts/account 0.0.0-rc-2152-20240430033208 → 0.0.0-rc-2143-20240430073812

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.

@@ -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 useSystemFuelCore - whether to use the system fuel-core binary or the one provided by the \@fuel-ts/fuel-core package.
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,KA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,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC,CAAC;AAEH;;;;KAIK;AACL,eAAO,MAAM,uBAAuB;;;mCAiBnC,CAAC"}
@@ -50230,6 +50230,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
50230
50230
  ip,
50231
50231
  port,
50232
50232
  args = [],
50233
+ fuelCorePath = void 0,
50233
50234
  useSystemFuelCore = false,
50234
50235
  loggingEnabled = true,
50235
50236
  debugEnabled = false,
@@ -50250,7 +50251,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
50250
50251
  const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
50251
50252
  const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
50252
50253
  const graphQLStartSubstring = "Binding GraphQL provider to";
50253
- const binPath = findBinPath("fuels-core", __dirname);
50254
+ const binPath = fuelCorePath ?? findBinPath("fuels-core", __dirname);
50254
50255
  const command = useSystemFuelCore ? "fuel-core" : binPath;
50255
50256
  const ipToUse = ip || "0.0.0.0";
50256
50257
  const portToUse = port || (await (0, import_portfinder.getPortPromise)({