@fuel-ts/account 0.0.0-rc-2143-20240430082529 → 0.0.0-rc-2209-20240430130352
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 +2 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/test-utils/launchNode.d.ts +2 -4
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +3 -6
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +3 -5
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +3 -5
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +15 -15
@@ -6,7 +6,6 @@ export type LaunchNodeOptions = {
|
|
6
6
|
ip?: string;
|
7
7
|
port?: string;
|
8
8
|
args?: string[];
|
9
|
-
fuelCorePath?: string;
|
10
9
|
useSystemFuelCore?: boolean;
|
11
10
|
loggingEnabled?: boolean;
|
12
11
|
debugEnabled?: boolean;
|
@@ -32,13 +31,12 @@ export declare const killNode: (params: KillNodeParams) => void;
|
|
32
31
|
* @param ip - the ip to bind to. (optional, defaults to 0.0.0.0)
|
33
32
|
* @param port - the port to bind to. (optional, defaults to 4000 or the next available port)
|
34
33
|
* @param args - additional arguments to pass to fuel-core.
|
35
|
-
* @param
|
36
|
-
* @param useSystemFuelCore - whether to use the system fuel-core binary or the one provided by the \@internal/fuel-core package.
|
34
|
+
* @param useSystemFuelCore - whether to use the system fuel-core binary or the one provided by the \@fuel-ts/fuel-core package.
|
37
35
|
* @param loggingEnabled - whether the node should output logs. (optional, defaults to true)
|
38
36
|
* @param debugEnabled - whether the node should log debug messages. (optional, defaults to false)
|
39
37
|
* @param basePath - the base path to use for the temporary folder. (optional, defaults to os.tmpdir())
|
40
38
|
* */
|
41
|
-
export declare const launchNode: ({ ip, port, args,
|
39
|
+
export declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
|
42
40
|
export type LaunchNodeAndGetWalletsResult = Promise<{
|
43
41
|
wallets: WalletUnlocked[];
|
44
42
|
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,
|
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,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,cAAc,SAiB9C,CAAC;AAGF;;;;;;;;;KASK;AAEL,eAAO,MAAM,UAAU,mFAQpB,iBAAiB,qBA+KhB,CAAC;AAYL,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,7 +32037,6 @@ 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";
|
32041
32040
|
ErrorCode2["VITEPRESS_PLUGIN_ERROR"] = "vitepress-plugin-error";
|
32042
32041
|
ErrorCode2["INVALID_MULTICALL"] = "invalid-multicall";
|
32043
32042
|
ErrorCode2["SCRIPT_REVERTED"] = "script-reverted";
|
@@ -44396,9 +44395,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
44396
44395
|
static ensureClientVersionIsSupported(nodeInfo) {
|
44397
44396
|
const { isMajorSupported, isMinorSupported, supportedVersion } = checkFuelCoreVersionCompatibility(nodeInfo.nodeVersion);
|
44398
44397
|
if (!isMajorSupported || !isMinorSupported) {
|
44399
|
-
|
44400
|
-
|
44401
|
-
`Fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
|
44398
|
+
console.warn(
|
44399
|
+
`Unsupported fuel client version: ${nodeInfo.nodeVersion}, Supported version: ${supportedVersion}`
|
44402
44400
|
);
|
44403
44401
|
}
|
44404
44402
|
}
|
@@ -50230,7 +50228,6 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50230
50228
|
ip,
|
50231
50229
|
port,
|
50232
50230
|
args = [],
|
50233
|
-
fuelCorePath = void 0,
|
50234
50231
|
useSystemFuelCore = false,
|
50235
50232
|
loggingEnabled = true,
|
50236
50233
|
debugEnabled = false,
|
@@ -50251,7 +50248,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50251
50248
|
const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
|
50252
50249
|
const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
|
50253
50250
|
const graphQLStartSubstring = "Binding GraphQL provider to";
|
50254
|
-
const binPath =
|
50251
|
+
const binPath = findBinPath("fuels-core", __dirname);
|
50255
50252
|
const command = useSystemFuelCore ? "fuel-core" : binPath;
|
50256
50253
|
const ipToUse = ip || "0.0.0.0";
|
50257
50254
|
const portToUse = port || (await (0, import_portfinder.getPortPromise)({
|