@fuel-ts/account 0.0.0-rc-2143-20240513161105 → 0.0.0-rc-2238-20240513185415
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/account.d.ts.map +1 -1
- package/dist/index.global.js +412 -1146
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +116 -146
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +108 -144
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/coin.d.ts +0 -1
- package/dist/providers/coin.d.ts.map +1 -1
- package/dist/providers/message.d.ts +0 -1
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/transaction-request/input.d.ts +0 -2
- package/dist/providers/transaction-request/input.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +0 -1
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-summary/call.d.ts +1 -1
- package/dist/providers/transaction-summary/call.d.ts.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 +3643 -6596
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +111 -134
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +102 -125
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +15 -15
package/dist/test-utils.js
CHANGED
@@ -64,7 +64,7 @@ var import_utils31 = require("@fuel-ts/utils");
|
|
64
64
|
var import_address4 = require("@fuel-ts/address");
|
65
65
|
var import_errors16 = require("@fuel-ts/errors");
|
66
66
|
var import_interfaces = require("@fuel-ts/interfaces");
|
67
|
-
var
|
67
|
+
var import_math20 = require("@fuel-ts/math");
|
68
68
|
var import_utils28 = require("@fuel-ts/utils");
|
69
69
|
var import_ramda4 = require("ramda");
|
70
70
|
|
@@ -106,7 +106,7 @@ var addAmountToCoinQuantities = (params) => {
|
|
106
106
|
// src/providers/provider.ts
|
107
107
|
var import_address3 = require("@fuel-ts/address");
|
108
108
|
var import_errors14 = require("@fuel-ts/errors");
|
109
|
-
var
|
109
|
+
var import_math17 = require("@fuel-ts/math");
|
110
110
|
var import_transactions20 = require("@fuel-ts/transactions");
|
111
111
|
var import_utils22 = require("@fuel-ts/utils");
|
112
112
|
var import_versions = require("@fuel-ts/versions");
|
@@ -2296,15 +2296,6 @@ var BaseTransactionRequest = class {
|
|
2296
2296
|
}
|
2297
2297
|
});
|
2298
2298
|
}
|
2299
|
-
shiftPredicateData() {
|
2300
|
-
this.inputs.forEach((input) => {
|
2301
|
-
if ("predicateData" in input && "padPredicateData" in input && typeof input.padPredicateData === "function") {
|
2302
|
-
input.predicateData = input.padPredicateData(
|
2303
|
-
BaseTransactionRequest.getPolicyMeta(this).policies.length
|
2304
|
-
);
|
2305
|
-
}
|
2306
|
-
});
|
2307
|
-
}
|
2308
2299
|
};
|
2309
2300
|
|
2310
2301
|
// src/providers/transaction-request/create-transaction-request.ts
|
@@ -2727,12 +2718,12 @@ var transactionRequestify = (obj) => {
|
|
2727
2718
|
|
2728
2719
|
// src/providers/transaction-response/transaction-response.ts
|
2729
2720
|
var import_errors13 = require("@fuel-ts/errors");
|
2730
|
-
var
|
2721
|
+
var import_math16 = require("@fuel-ts/math");
|
2731
2722
|
var import_transactions19 = require("@fuel-ts/transactions");
|
2732
2723
|
var import_utils20 = require("@fuel-ts/utils");
|
2733
2724
|
|
2734
2725
|
// src/providers/transaction-summary/assemble-transaction-summary.ts
|
2735
|
-
var
|
2726
|
+
var import_math15 = require("@fuel-ts/math");
|
2736
2727
|
var import_transactions17 = require("@fuel-ts/transactions");
|
2737
2728
|
var import_utils18 = require("@fuel-ts/utils");
|
2738
2729
|
|
@@ -2809,43 +2800,32 @@ var calculateTXFeeForSummary = (params) => {
|
|
2809
2800
|
// src/providers/transaction-summary/operations.ts
|
2810
2801
|
var import_configs10 = require("@fuel-ts/address/configs");
|
2811
2802
|
var import_errors11 = require("@fuel-ts/errors");
|
2812
|
-
var
|
2803
|
+
var import_math13 = require("@fuel-ts/math");
|
2813
2804
|
var import_transactions15 = require("@fuel-ts/transactions");
|
2814
2805
|
|
2815
2806
|
// src/providers/transaction-summary/call.ts
|
2816
2807
|
var import_abi_coder4 = require("@fuel-ts/abi-coder");
|
2817
|
-
var
|
2818
|
-
var getFunctionCall = ({ abi, receipt, rawPayload, maxInputs }) => {
|
2808
|
+
var getFunctionCall = ({ abi, receipt }) => {
|
2819
2809
|
const abiInterface = new import_abi_coder4.Interface(abi);
|
2820
2810
|
const callFunctionSelector = receipt.param1.toHex(8);
|
2821
2811
|
const functionFragment = abiInterface.getFunction(callFunctionSelector);
|
2822
2812
|
const inputs = functionFragment.jsonFn.inputs;
|
2823
|
-
|
2824
|
-
if (functionFragment.isInputDataPointer) {
|
2825
|
-
if (rawPayload) {
|
2826
|
-
const argsOffset = (0, import_math13.bn)(receipt.param2).sub((0, import_abi_coder4.calculateVmTxMemory)({ maxInputs: maxInputs.toNumber() })).toNumber();
|
2827
|
-
encodedArgs = `0x${rawPayload.slice(2).slice(argsOffset * 2)}`;
|
2828
|
-
}
|
2829
|
-
} else {
|
2830
|
-
encodedArgs = receipt.param2.toHex();
|
2831
|
-
}
|
2813
|
+
const encodedArgs = receipt.param2.toHex();
|
2832
2814
|
let argumentsProvided;
|
2833
|
-
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2842
|
-
|
2843
|
-
|
2844
|
-
|
2845
|
-
|
2846
|
-
|
2847
|
-
}, {});
|
2848
|
-
}
|
2815
|
+
const data = functionFragment.decodeArguments(encodedArgs);
|
2816
|
+
if (data) {
|
2817
|
+
argumentsProvided = inputs.reduce((prev, input, index) => {
|
2818
|
+
const value = data[index];
|
2819
|
+
const name = input.name;
|
2820
|
+
if (name) {
|
2821
|
+
return {
|
2822
|
+
...prev,
|
2823
|
+
// reparse to remove bn
|
2824
|
+
[name]: JSON.parse(JSON.stringify(value))
|
2825
|
+
};
|
2826
|
+
}
|
2827
|
+
return prev;
|
2828
|
+
}, {});
|
2849
2829
|
}
|
2850
2830
|
const call = {
|
2851
2831
|
functionSignature: functionFragment.signature,
|
@@ -2985,7 +2965,7 @@ var mergeAssets = (op1, op2) => {
|
|
2985
2965
|
if (!matchingAsset) {
|
2986
2966
|
return asset1;
|
2987
2967
|
}
|
2988
|
-
const mergedAmount = (0,
|
2968
|
+
const mergedAmount = (0, import_math13.bn)(asset1.amount).add(matchingAsset.amount);
|
2989
2969
|
return { ...asset1, amount: mergedAmount };
|
2990
2970
|
});
|
2991
2971
|
return mergedAssets.concat(filteredAssets);
|
@@ -3308,7 +3288,7 @@ var extractBurnedAssetsFromReceipts = (receipts) => {
|
|
3308
3288
|
|
3309
3289
|
// src/providers/transaction-summary/status.ts
|
3310
3290
|
var import_errors12 = require("@fuel-ts/errors");
|
3311
|
-
var
|
3291
|
+
var import_math14 = require("@fuel-ts/math");
|
3312
3292
|
var getTransactionStatusName = (gqlStatus) => {
|
3313
3293
|
switch (gqlStatus) {
|
3314
3294
|
case "FailureStatus":
|
@@ -3342,15 +3322,15 @@ var processGraphqlStatus = (gqlTransactionStatus) => {
|
|
3342
3322
|
time = gqlTransactionStatus.time;
|
3343
3323
|
blockId = gqlTransactionStatus.block.id;
|
3344
3324
|
isStatusSuccess = true;
|
3345
|
-
totalFee = (0,
|
3346
|
-
totalGas = (0,
|
3325
|
+
totalFee = (0, import_math14.bn)(gqlTransactionStatus.totalFee);
|
3326
|
+
totalGas = (0, import_math14.bn)(gqlTransactionStatus.totalGas);
|
3347
3327
|
break;
|
3348
3328
|
case "FailureStatus":
|
3349
3329
|
time = gqlTransactionStatus.time;
|
3350
3330
|
blockId = gqlTransactionStatus.block.id;
|
3351
3331
|
isStatusFailure = true;
|
3352
|
-
totalFee = (0,
|
3353
|
-
totalGas = (0,
|
3332
|
+
totalFee = (0, import_math14.bn)(gqlTransactionStatus.totalFee);
|
3333
|
+
totalGas = (0, import_math14.bn)(gqlTransactionStatus.totalGas);
|
3354
3334
|
break;
|
3355
3335
|
case "SubmittedStatus":
|
3356
3336
|
time = gqlTransactionStatus.time;
|
@@ -3400,7 +3380,7 @@ function assembleTransactionSummary(params) {
|
|
3400
3380
|
maxInputs
|
3401
3381
|
});
|
3402
3382
|
const typeName = getTransactionTypeName(transaction.type);
|
3403
|
-
const tip = (0,
|
3383
|
+
const tip = (0, import_math15.bn)(transaction.policies?.find((policy) => policy.type === import_transactions17.PolicyType.Tip)?.data);
|
3404
3384
|
const { isStatusFailure, isStatusPending, isStatusSuccess, blockId, status, time, totalFee } = processGraphqlStatus(gqlTransactionStatus);
|
3405
3385
|
const fee = calculateTXFeeForSummary({
|
3406
3386
|
totalFee,
|
@@ -3471,7 +3451,7 @@ var TransactionResponse = class {
|
|
3471
3451
|
/** Current provider */
|
3472
3452
|
provider;
|
3473
3453
|
/** Gas used on the transaction */
|
3474
|
-
gasUsed = (0,
|
3454
|
+
gasUsed = (0, import_math16.bn)(0);
|
3475
3455
|
/** The graphql Transaction with receipts object. */
|
3476
3456
|
gqlTransaction;
|
3477
3457
|
abis;
|
@@ -3705,47 +3685,47 @@ var processGqlChain = (chain) => {
|
|
3705
3685
|
} = consensusParameters;
|
3706
3686
|
return {
|
3707
3687
|
name,
|
3708
|
-
baseChainHeight: (0,
|
3688
|
+
baseChainHeight: (0, import_math17.bn)(daHeight),
|
3709
3689
|
consensusParameters: {
|
3710
3690
|
version,
|
3711
|
-
chainId: (0,
|
3691
|
+
chainId: (0, import_math17.bn)(chainId),
|
3712
3692
|
baseAssetId,
|
3713
3693
|
feeParameters: {
|
3714
3694
|
version: feeParams.version,
|
3715
|
-
gasPerByte: (0,
|
3716
|
-
gasPriceFactor: (0,
|
3695
|
+
gasPerByte: (0, import_math17.bn)(feeParams.gasPerByte),
|
3696
|
+
gasPriceFactor: (0, import_math17.bn)(feeParams.gasPriceFactor)
|
3717
3697
|
},
|
3718
3698
|
contractParameters: {
|
3719
3699
|
version: contractParams.version,
|
3720
|
-
contractMaxSize: (0,
|
3721
|
-
maxStorageSlots: (0,
|
3700
|
+
contractMaxSize: (0, import_math17.bn)(contractParams.contractMaxSize),
|
3701
|
+
maxStorageSlots: (0, import_math17.bn)(contractParams.maxStorageSlots)
|
3722
3702
|
},
|
3723
3703
|
txParameters: {
|
3724
3704
|
version: txParams.version,
|
3725
|
-
maxInputs: (0,
|
3726
|
-
maxOutputs: (0,
|
3727
|
-
maxWitnesses: (0,
|
3728
|
-
maxGasPerTx: (0,
|
3729
|
-
maxSize: (0,
|
3730
|
-
maxBytecodeSubsections: (0,
|
3705
|
+
maxInputs: (0, import_math17.bn)(txParams.maxInputs),
|
3706
|
+
maxOutputs: (0, import_math17.bn)(txParams.maxOutputs),
|
3707
|
+
maxWitnesses: (0, import_math17.bn)(txParams.maxWitnesses),
|
3708
|
+
maxGasPerTx: (0, import_math17.bn)(txParams.maxGasPerTx),
|
3709
|
+
maxSize: (0, import_math17.bn)(txParams.maxSize),
|
3710
|
+
maxBytecodeSubsections: (0, import_math17.bn)(txParams.maxBytecodeSubsections)
|
3731
3711
|
},
|
3732
3712
|
predicateParameters: {
|
3733
3713
|
version: predicateParams.version,
|
3734
|
-
maxPredicateLength: (0,
|
3735
|
-
maxPredicateDataLength: (0,
|
3736
|
-
maxGasPerPredicate: (0,
|
3737
|
-
maxMessageDataLength: (0,
|
3714
|
+
maxPredicateLength: (0, import_math17.bn)(predicateParams.maxPredicateLength),
|
3715
|
+
maxPredicateDataLength: (0, import_math17.bn)(predicateParams.maxPredicateDataLength),
|
3716
|
+
maxGasPerPredicate: (0, import_math17.bn)(predicateParams.maxGasPerPredicate),
|
3717
|
+
maxMessageDataLength: (0, import_math17.bn)(predicateParams.maxMessageDataLength)
|
3738
3718
|
},
|
3739
3719
|
scriptParameters: {
|
3740
3720
|
version: scriptParams.version,
|
3741
|
-
maxScriptLength: (0,
|
3742
|
-
maxScriptDataLength: (0,
|
3721
|
+
maxScriptLength: (0, import_math17.bn)(scriptParams.maxScriptLength),
|
3722
|
+
maxScriptDataLength: (0, import_math17.bn)(scriptParams.maxScriptDataLength)
|
3743
3723
|
},
|
3744
3724
|
gasCosts
|
3745
3725
|
},
|
3746
3726
|
latestBlock: {
|
3747
3727
|
id: latestBlock.id,
|
3748
|
-
height: (0,
|
3728
|
+
height: (0, import_math17.bn)(latestBlock.height),
|
3749
3729
|
time: latestBlock.header.time,
|
3750
3730
|
transactions: latestBlock.transactions.map((i) => ({
|
3751
3731
|
id: i.id
|
@@ -3941,7 +3921,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
3941
3921
|
*/
|
3942
3922
|
async getBlockNumber() {
|
3943
3923
|
const { chain } = await this.operations.getChain();
|
3944
|
-
return (0,
|
3924
|
+
return (0, import_math17.bn)(chain.latestBlock.height, 10);
|
3945
3925
|
}
|
3946
3926
|
/**
|
3947
3927
|
* Returns the chain information.
|
@@ -3951,8 +3931,8 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
3951
3931
|
async fetchNode() {
|
3952
3932
|
const { nodeInfo } = await this.operations.getNodeInfo();
|
3953
3933
|
const processedNodeInfo = {
|
3954
|
-
maxDepth: (0,
|
3955
|
-
maxTx: (0,
|
3934
|
+
maxDepth: (0, import_math17.bn)(nodeInfo.maxDepth),
|
3935
|
+
maxTx: (0, import_math17.bn)(nodeInfo.maxTx),
|
3956
3936
|
nodeVersion: nodeInfo.nodeVersion,
|
3957
3937
|
utxoValidation: nodeInfo.utxoValidation,
|
3958
3938
|
vmBacktrace: nodeInfo.vmBacktrace
|
@@ -4069,7 +4049,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4069
4049
|
async estimatePredicates(transactionRequest) {
|
4070
4050
|
const shouldEstimatePredicates = Boolean(
|
4071
4051
|
transactionRequest.inputs.find(
|
4072
|
-
(input) => "predicate" in input && input.predicate && !(0, import_utils23.equalBytes)((0, import_utils22.arrayify)(input.predicate), (0, import_utils22.arrayify)("0x")) && new
|
4052
|
+
(input) => "predicate" in input && input.predicate && !(0, import_utils23.equalBytes)((0, import_utils22.arrayify)(input.predicate), (0, import_utils22.arrayify)("0x")) && new import_math17.BN(input.predicateGasUsed).isZero()
|
4073
4053
|
)
|
4074
4054
|
);
|
4075
4055
|
if (!shouldEstimatePredicates) {
|
@@ -4084,7 +4064,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4084
4064
|
} = response;
|
4085
4065
|
if (inputs) {
|
4086
4066
|
inputs.forEach((input, index) => {
|
4087
|
-
if ("predicateGasUsed" in input && (0,
|
4067
|
+
if ("predicateGasUsed" in input && (0, import_math17.bn)(input.predicateGasUsed).gt(0)) {
|
4088
4068
|
transactionRequest.inputs[index].predicateGasUsed = input.predicateGasUsed;
|
4089
4069
|
}
|
4090
4070
|
});
|
@@ -4242,12 +4222,12 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4242
4222
|
gasPrice = await this.estimateGasPrice(10);
|
4243
4223
|
}
|
4244
4224
|
const minFee = calculateGasFee({
|
4245
|
-
gasPrice: (0,
|
4225
|
+
gasPrice: (0, import_math17.bn)(gasPrice),
|
4246
4226
|
gas: minGas,
|
4247
4227
|
priceFactor: gasPriceFactor,
|
4248
4228
|
tip: transactionRequest.tip
|
4249
4229
|
}).add(1);
|
4250
|
-
let gasLimit = (0,
|
4230
|
+
let gasLimit = (0, import_math17.bn)(0);
|
4251
4231
|
if (transactionRequest.type === import_transactions20.TransactionType.Script) {
|
4252
4232
|
gasLimit = transactionRequest.gasLimit;
|
4253
4233
|
if (transactionRequest.gasLimit.eq(0)) {
|
@@ -4260,7 +4240,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4260
4240
|
}
|
4261
4241
|
const maxGas = transactionRequest.calculateMaxGas(chainInfo, minGas);
|
4262
4242
|
const maxFee = calculateGasFee({
|
4263
|
-
gasPrice: (0,
|
4243
|
+
gasPrice: (0, import_math17.bn)(gasPrice),
|
4264
4244
|
gas: maxGas,
|
4265
4245
|
priceFactor: gasPriceFactor,
|
4266
4246
|
tip: transactionRequest.tip
|
@@ -4325,7 +4305,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4325
4305
|
const allQuantities = mergeQuantities(coinOutputsQuantities, quantitiesToContract);
|
4326
4306
|
txRequestClone.fundWithFakeUtxos(allQuantities, baseAssetId, resourcesOwner?.address);
|
4327
4307
|
if (isScriptTransaction) {
|
4328
|
-
txRequestClone.gasLimit = (0,
|
4308
|
+
txRequestClone.gasLimit = (0, import_math17.bn)(0);
|
4329
4309
|
}
|
4330
4310
|
if (resourcesOwner && "populateTransactionPredicateData" in resourcesOwner) {
|
4331
4311
|
resourcesOwner.populateTransactionPredicateData(txRequestClone);
|
@@ -4346,7 +4326,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4346
4326
|
let dryRunStatus;
|
4347
4327
|
let missingContractIds = [];
|
4348
4328
|
let outputVariables = 0;
|
4349
|
-
let gasUsed = (0,
|
4329
|
+
let gasUsed = (0, import_math17.bn)(0);
|
4350
4330
|
txRequestClone.maxFee = maxFee;
|
4351
4331
|
if (isScriptTransaction) {
|
4352
4332
|
txRequestClone.gasLimit = gasLimit;
|
@@ -4411,10 +4391,10 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4411
4391
|
return coins.map((coin) => ({
|
4412
4392
|
id: coin.utxoId,
|
4413
4393
|
assetId: coin.assetId,
|
4414
|
-
amount: (0,
|
4394
|
+
amount: (0, import_math17.bn)(coin.amount),
|
4415
4395
|
owner: import_address3.Address.fromAddressOrString(coin.owner),
|
4416
|
-
blockCreated: (0,
|
4417
|
-
txCreatedIdx: (0,
|
4396
|
+
blockCreated: (0, import_math17.bn)(coin.blockCreated),
|
4397
|
+
txCreatedIdx: (0, import_math17.bn)(coin.txCreatedIdx)
|
4418
4398
|
}));
|
4419
4399
|
}
|
4420
4400
|
/**
|
@@ -4451,9 +4431,9 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4451
4431
|
switch (coin.type) {
|
4452
4432
|
case "MessageCoin":
|
4453
4433
|
return {
|
4454
|
-
amount: (0,
|
4434
|
+
amount: (0, import_math17.bn)(coin.amount),
|
4455
4435
|
assetId: coin.assetId,
|
4456
|
-
daHeight: (0,
|
4436
|
+
daHeight: (0, import_math17.bn)(coin.daHeight),
|
4457
4437
|
sender: import_address3.Address.fromAddressOrString(coin.sender),
|
4458
4438
|
recipient: import_address3.Address.fromAddressOrString(coin.recipient),
|
4459
4439
|
nonce: coin.nonce
|
@@ -4461,11 +4441,11 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4461
4441
|
case "Coin":
|
4462
4442
|
return {
|
4463
4443
|
id: coin.utxoId,
|
4464
|
-
amount: (0,
|
4444
|
+
amount: (0, import_math17.bn)(coin.amount),
|
4465
4445
|
assetId: coin.assetId,
|
4466
4446
|
owner: import_address3.Address.fromAddressOrString(coin.owner),
|
4467
|
-
blockCreated: (0,
|
4468
|
-
txCreatedIdx: (0,
|
4447
|
+
blockCreated: (0, import_math17.bn)(coin.blockCreated),
|
4448
|
+
txCreatedIdx: (0, import_math17.bn)(coin.txCreatedIdx)
|
4469
4449
|
};
|
4470
4450
|
default:
|
4471
4451
|
return null;
|
@@ -4482,13 +4462,13 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4482
4462
|
async getBlock(idOrHeight) {
|
4483
4463
|
let variables;
|
4484
4464
|
if (typeof idOrHeight === "number") {
|
4485
|
-
variables = { height: (0,
|
4465
|
+
variables = { height: (0, import_math17.bn)(idOrHeight).toString(10) };
|
4486
4466
|
} else if (idOrHeight === "latest") {
|
4487
4467
|
variables = { height: (await this.getBlockNumber()).toString(10) };
|
4488
4468
|
} else if (idOrHeight.length === 66) {
|
4489
4469
|
variables = { blockId: idOrHeight };
|
4490
4470
|
} else {
|
4491
|
-
variables = { blockId: (0,
|
4471
|
+
variables = { blockId: (0, import_math17.bn)(idOrHeight).toString(10) };
|
4492
4472
|
}
|
4493
4473
|
const { block } = await this.operations.getBlock(variables);
|
4494
4474
|
if (!block) {
|
@@ -4496,7 +4476,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4496
4476
|
}
|
4497
4477
|
return {
|
4498
4478
|
id: block.id,
|
4499
|
-
height: (0,
|
4479
|
+
height: (0, import_math17.bn)(block.height),
|
4500
4480
|
time: block.header.time,
|
4501
4481
|
transactionIds: block.transactions.map((tx) => tx.id)
|
4502
4482
|
};
|
@@ -4511,7 +4491,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4511
4491
|
const { blocks: fetchedData } = await this.operations.getBlocks(params);
|
4512
4492
|
const blocks = fetchedData.edges.map(({ node: block }) => ({
|
4513
4493
|
id: block.id,
|
4514
|
-
height: (0,
|
4494
|
+
height: (0, import_math17.bn)(block.height),
|
4515
4495
|
time: block.header.time,
|
4516
4496
|
transactionIds: block.transactions.map((tx) => tx.id)
|
4517
4497
|
}));
|
@@ -4526,7 +4506,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4526
4506
|
async getBlockWithTransactions(idOrHeight) {
|
4527
4507
|
let variables;
|
4528
4508
|
if (typeof idOrHeight === "number") {
|
4529
|
-
variables = { blockHeight: (0,
|
4509
|
+
variables = { blockHeight: (0, import_math17.bn)(idOrHeight).toString(10) };
|
4530
4510
|
} else if (idOrHeight === "latest") {
|
4531
4511
|
variables = { blockHeight: (await this.getBlockNumber()).toString() };
|
4532
4512
|
} else {
|
@@ -4538,7 +4518,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4538
4518
|
}
|
4539
4519
|
return {
|
4540
4520
|
id: block.id,
|
4541
|
-
height: (0,
|
4521
|
+
height: (0, import_math17.bn)(block.height, 10),
|
4542
4522
|
time: block.header.time,
|
4543
4523
|
transactionIds: block.transactions.map((tx) => tx.id),
|
4544
4524
|
transactions: block.transactions.map(
|
@@ -4587,7 +4567,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4587
4567
|
contract: import_address3.Address.fromAddressOrString(contractId).toB256(),
|
4588
4568
|
asset: (0, import_utils22.hexlify)(assetId)
|
4589
4569
|
});
|
4590
|
-
return (0,
|
4570
|
+
return (0, import_math17.bn)(contractBalance.amount, 10);
|
4591
4571
|
}
|
4592
4572
|
/**
|
4593
4573
|
* Returns the balance for the given owner for the given asset ID.
|
@@ -4601,7 +4581,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4601
4581
|
owner: import_address3.Address.fromAddressOrString(owner).toB256(),
|
4602
4582
|
assetId: (0, import_utils22.hexlify)(assetId)
|
4603
4583
|
});
|
4604
|
-
return (0,
|
4584
|
+
return (0, import_math17.bn)(balance.amount, 10);
|
4605
4585
|
}
|
4606
4586
|
/**
|
4607
4587
|
* Returns balances for the given owner.
|
@@ -4619,7 +4599,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4619
4599
|
const balances = result.balances.edges.map((edge) => edge.node);
|
4620
4600
|
return balances.map((balance) => ({
|
4621
4601
|
assetId: balance.assetId,
|
4622
|
-
amount: (0,
|
4602
|
+
amount: (0, import_math17.bn)(balance.amount)
|
4623
4603
|
}));
|
4624
4604
|
}
|
4625
4605
|
/**
|
@@ -4641,15 +4621,15 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4641
4621
|
sender: message.sender,
|
4642
4622
|
recipient: message.recipient,
|
4643
4623
|
nonce: message.nonce,
|
4644
|
-
amount: (0,
|
4624
|
+
amount: (0, import_math17.bn)(message.amount),
|
4645
4625
|
data: message.data
|
4646
4626
|
}),
|
4647
4627
|
sender: import_address3.Address.fromAddressOrString(message.sender),
|
4648
4628
|
recipient: import_address3.Address.fromAddressOrString(message.recipient),
|
4649
4629
|
nonce: message.nonce,
|
4650
|
-
amount: (0,
|
4630
|
+
amount: (0, import_math17.bn)(message.amount),
|
4651
4631
|
data: import_transactions20.InputMessageCoder.decodeData(message.data),
|
4652
|
-
daHeight: (0,
|
4632
|
+
daHeight: (0, import_math17.bn)(message.daHeight)
|
4653
4633
|
}));
|
4654
4634
|
}
|
4655
4635
|
/**
|
@@ -4702,19 +4682,19 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4702
4682
|
} = result.messageProof;
|
4703
4683
|
return {
|
4704
4684
|
messageProof: {
|
4705
|
-
proofIndex: (0,
|
4685
|
+
proofIndex: (0, import_math17.bn)(messageProof.proofIndex),
|
4706
4686
|
proofSet: messageProof.proofSet
|
4707
4687
|
},
|
4708
4688
|
blockProof: {
|
4709
|
-
proofIndex: (0,
|
4689
|
+
proofIndex: (0, import_math17.bn)(blockProof.proofIndex),
|
4710
4690
|
proofSet: blockProof.proofSet
|
4711
4691
|
},
|
4712
4692
|
messageBlockHeader: {
|
4713
4693
|
id: messageBlockHeader.id,
|
4714
|
-
daHeight: (0,
|
4694
|
+
daHeight: (0, import_math17.bn)(messageBlockHeader.daHeight),
|
4715
4695
|
transactionsCount: Number(messageBlockHeader.transactionsCount),
|
4716
4696
|
transactionsRoot: messageBlockHeader.transactionsRoot,
|
4717
|
-
height: (0,
|
4697
|
+
height: (0, import_math17.bn)(messageBlockHeader.height),
|
4718
4698
|
prevRoot: messageBlockHeader.prevRoot,
|
4719
4699
|
time: messageBlockHeader.time,
|
4720
4700
|
applicationHash: messageBlockHeader.applicationHash,
|
@@ -4726,10 +4706,10 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4726
4706
|
},
|
4727
4707
|
commitBlockHeader: {
|
4728
4708
|
id: commitBlockHeader.id,
|
4729
|
-
daHeight: (0,
|
4709
|
+
daHeight: (0, import_math17.bn)(commitBlockHeader.daHeight),
|
4730
4710
|
transactionsCount: Number(commitBlockHeader.transactionsCount),
|
4731
4711
|
transactionsRoot: commitBlockHeader.transactionsRoot,
|
4732
|
-
height: (0,
|
4712
|
+
height: (0, import_math17.bn)(commitBlockHeader.height),
|
4733
4713
|
prevRoot: commitBlockHeader.prevRoot,
|
4734
4714
|
time: commitBlockHeader.time,
|
4735
4715
|
applicationHash: commitBlockHeader.applicationHash,
|
@@ -4742,19 +4722,19 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4742
4722
|
sender: import_address3.Address.fromAddressOrString(sender),
|
4743
4723
|
recipient: import_address3.Address.fromAddressOrString(recipient),
|
4744
4724
|
nonce,
|
4745
|
-
amount: (0,
|
4725
|
+
amount: (0, import_math17.bn)(amount),
|
4746
4726
|
data
|
4747
4727
|
};
|
4748
4728
|
}
|
4749
4729
|
async getLatestGasPrice() {
|
4750
4730
|
const { latestGasPrice } = await this.operations.getLatestGasPrice();
|
4751
|
-
return (0,
|
4731
|
+
return (0, import_math17.bn)(latestGasPrice.gasPrice);
|
4752
4732
|
}
|
4753
4733
|
async estimateGasPrice(blockHorizon) {
|
4754
4734
|
const { estimateGasPrice } = await this.operations.estimateGasPrice({
|
4755
4735
|
blockHorizon: String(blockHorizon)
|
4756
4736
|
});
|
4757
|
-
return (0,
|
4737
|
+
return (0, import_math17.bn)(estimateGasPrice.gasPrice);
|
4758
4738
|
}
|
4759
4739
|
/**
|
4760
4740
|
* Returns Message Proof for given transaction id and the message id from MessageOut receipt.
|
@@ -4775,10 +4755,10 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
4775
4755
|
*/
|
4776
4756
|
async produceBlocks(amount, startTime) {
|
4777
4757
|
const { produceBlocks: latestBlockHeight } = await this.operations.produceBlocks({
|
4778
|
-
blocksToProduce: (0,
|
4758
|
+
blocksToProduce: (0, import_math17.bn)(amount).toString(10),
|
4779
4759
|
startTimestamp: startTime ? import_utils22.DateTime.fromUnixMilliseconds(startTime).toTai64() : void 0
|
4780
4760
|
});
|
4781
|
-
return (0,
|
4761
|
+
return (0, import_math17.bn)(latestBlockHeight);
|
4782
4762
|
}
|
4783
4763
|
// eslint-disable-next-line @typescript-eslint/require-await
|
4784
4764
|
async getTransactionResponse(transactionId) {
|
@@ -4824,7 +4804,7 @@ __publicField(Provider, "nodeInfoCache", {});
|
|
4824
4804
|
|
4825
4805
|
// src/providers/transaction-summary/get-transaction-summary.ts
|
4826
4806
|
var import_errors15 = require("@fuel-ts/errors");
|
4827
|
-
var
|
4807
|
+
var import_math18 = require("@fuel-ts/math");
|
4828
4808
|
var import_transactions21 = require("@fuel-ts/transactions");
|
4829
4809
|
var import_utils25 = require("@fuel-ts/utils");
|
4830
4810
|
|
@@ -4901,13 +4881,13 @@ var assets = resolveIconPaths(rawAssets, fuelAssetsBaseUrl);
|
|
4901
4881
|
|
4902
4882
|
// src/utils/formatTransferToContractScriptData.ts
|
4903
4883
|
var import_abi_coder6 = require("@fuel-ts/abi-coder");
|
4904
|
-
var
|
4884
|
+
var import_math19 = require("@fuel-ts/math");
|
4905
4885
|
var import_utils27 = require("@fuel-ts/utils");
|
4906
4886
|
var asm = __toESM(require("@fuels/vm-asm"));
|
4907
4887
|
var formatTransferToContractScriptData = (params) => {
|
4908
4888
|
const { assetId, amountToTransfer, hexlifiedContractId } = params;
|
4909
4889
|
const numberCoder = new import_abi_coder6.BigNumberCoder("u64");
|
4910
|
-
const encoded = numberCoder.encode(new
|
4890
|
+
const encoded = numberCoder.encode(new import_math19.BN(amountToTransfer).toNumber());
|
4911
4891
|
const scriptData = Uint8Array.from([
|
4912
4892
|
...(0, import_utils27.arrayify)(hexlifiedContractId),
|
4913
4893
|
...encoded,
|
@@ -5102,9 +5082,9 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5102
5082
|
const { addedSignatures, estimatedPredicates, requiredQuantities, updateMaxFee } = params;
|
5103
5083
|
const fee = request.maxFee;
|
5104
5084
|
const baseAssetId = this.provider.getBaseAssetId();
|
5105
|
-
const requiredInBaseAsset = requiredQuantities.find((quantity) => quantity.assetId === baseAssetId)?.amount || (0,
|
5085
|
+
const requiredInBaseAsset = requiredQuantities.find((quantity) => quantity.assetId === baseAssetId)?.amount || (0, import_math20.bn)(0);
|
5106
5086
|
const requiredQuantitiesWithFee = addAmountToCoinQuantities({
|
5107
|
-
amount: (0,
|
5087
|
+
amount: (0, import_math20.bn)(fee),
|
5108
5088
|
assetId: baseAssetId,
|
5109
5089
|
coinQuantities: requiredQuantities
|
5110
5090
|
});
|
@@ -5112,7 +5092,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5112
5092
|
requiredQuantitiesWithFee.forEach(({ amount, assetId }) => {
|
5113
5093
|
quantitiesDict[assetId] = {
|
5114
5094
|
required: amount,
|
5115
|
-
owned: (0,
|
5095
|
+
owned: (0, import_math20.bn)(0)
|
5116
5096
|
};
|
5117
5097
|
});
|
5118
5098
|
request.inputs.filter(isRequestInputResource).forEach((input) => {
|
@@ -5139,7 +5119,6 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5139
5119
|
cacheRequestInputsResourcesFromOwner(request.inputs, this.address)
|
5140
5120
|
);
|
5141
5121
|
request.addResources(resources);
|
5142
|
-
request.shiftPredicateData();
|
5143
5122
|
request.updatePredicateGasUsed(estimatedPredicates);
|
5144
5123
|
const requestToReestimate2 = (0, import_ramda4.clone)(request);
|
5145
5124
|
if (addedSignatures) {
|
@@ -5171,7 +5150,6 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5171
5150
|
}
|
5172
5151
|
fundingAttempts += 1;
|
5173
5152
|
}
|
5174
|
-
request.shiftPredicateData();
|
5175
5153
|
request.updatePredicateGasUsed(estimatedPredicates);
|
5176
5154
|
const requestToReestimate = (0, import_ramda4.clone)(request);
|
5177
5155
|
if (addedSignatures) {
|
@@ -5222,7 +5200,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5222
5200
|
* @returns A promise that resolves to the transaction response.
|
5223
5201
|
*/
|
5224
5202
|
async transfer(destination, amount, assetId, txParams = {}) {
|
5225
|
-
if ((0,
|
5203
|
+
if ((0, import_math20.bn)(amount).lte(0)) {
|
5226
5204
|
throw new import_errors16.FuelError(
|
5227
5205
|
import_errors16.ErrorCode.INVALID_TRANSFER_AMOUNT,
|
5228
5206
|
"Transfer amount must be a positive number."
|
@@ -5242,7 +5220,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5242
5220
|
* @returns A promise that resolves to the transaction response.
|
5243
5221
|
*/
|
5244
5222
|
async transferToContract(contractId, amount, assetId, txParams = {}) {
|
5245
|
-
if ((0,
|
5223
|
+
if ((0, import_math20.bn)(amount).lte(0)) {
|
5246
5224
|
throw new import_errors16.FuelError(
|
5247
5225
|
import_errors16.ErrorCode.INVALID_TRANSFER_AMOUNT,
|
5248
5226
|
"Transfer amount must be a positive number."
|
@@ -5252,7 +5230,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5252
5230
|
const assetIdToTransfer = assetId ?? this.provider.getBaseAssetId();
|
5253
5231
|
const { script, scriptData } = await assembleTransferToContractScript({
|
5254
5232
|
hexlifiedContractId: contractAddress.toB256(),
|
5255
|
-
amountToTransfer: (0,
|
5233
|
+
amountToTransfer: (0, import_math20.bn)(amount),
|
5256
5234
|
assetId: assetIdToTransfer
|
5257
5235
|
});
|
5258
5236
|
let request = new ScriptTransactionRequest({
|
@@ -5263,7 +5241,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5263
5241
|
request.addContractInputAndOutput(contractAddress);
|
5264
5242
|
const txCost = await this.provider.getTransactionCost(request, {
|
5265
5243
|
resourcesOwner: this,
|
5266
|
-
quantitiesToContract: [{ amount: (0,
|
5244
|
+
quantitiesToContract: [{ amount: (0, import_math20.bn)(amount), assetId: String(assetIdToTransfer) }]
|
5267
5245
|
});
|
5268
5246
|
request = this.validateGasLimitAndMaxFee({
|
5269
5247
|
transactionRequest: request,
|
@@ -5288,7 +5266,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5288
5266
|
"0x".concat(recipientAddress.toHexString().substring(2).padStart(64, "0"))
|
5289
5267
|
);
|
5290
5268
|
const amountDataArray = (0, import_utils28.arrayify)(
|
5291
|
-
"0x".concat((0,
|
5269
|
+
"0x".concat((0, import_math20.bn)(amount).toHex().substring(2).padStart(16, "0"))
|
5292
5270
|
);
|
5293
5271
|
const script = new Uint8Array([
|
5294
5272
|
...(0, import_utils28.arrayify)(withdrawScript.bytes),
|
@@ -5298,7 +5276,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5298
5276
|
const params = { script, ...txParams };
|
5299
5277
|
const baseAssetId = this.provider.getBaseAssetId();
|
5300
5278
|
let request = new ScriptTransactionRequest(params);
|
5301
|
-
const quantitiesToContract = [{ amount: (0,
|
5279
|
+
const quantitiesToContract = [{ amount: (0, import_math20.bn)(amount), assetId: baseAssetId }];
|
5302
5280
|
const txCost = await this.provider.getTransactionCost(request, { quantitiesToContract });
|
5303
5281
|
request = this.validateGasLimitAndMaxFee({
|
5304
5282
|
transactionRequest: request,
|
@@ -5395,7 +5373,7 @@ var Account = class extends import_interfaces.AbstractAccount {
|
|
5395
5373
|
var import_address5 = require("@fuel-ts/address");
|
5396
5374
|
var import_crypto2 = require("@fuel-ts/crypto");
|
5397
5375
|
var import_hasher2 = require("@fuel-ts/hasher");
|
5398
|
-
var
|
5376
|
+
var import_math21 = require("@fuel-ts/math");
|
5399
5377
|
var import_utils29 = require("@fuel-ts/utils");
|
5400
5378
|
var import_secp256k1 = require("@noble/curves/secp256k1");
|
5401
5379
|
var Signer = class {
|
@@ -5415,7 +5393,7 @@ var Signer = class {
|
|
5415
5393
|
privateKey = `0x${privateKey}`;
|
5416
5394
|
}
|
5417
5395
|
}
|
5418
|
-
const privateKeyBytes = (0,
|
5396
|
+
const privateKeyBytes = (0, import_math21.toBytes)(privateKey, 32);
|
5419
5397
|
this.privateKey = (0, import_utils29.hexlify)(privateKeyBytes);
|
5420
5398
|
this.publicKey = (0, import_utils29.hexlify)(import_secp256k1.secp256k1.getPublicKey(privateKeyBytes, false).slice(1));
|
5421
5399
|
this.compressedPublicKey = (0, import_utils29.hexlify)(import_secp256k1.secp256k1.getPublicKey(privateKeyBytes, true));
|
@@ -5433,8 +5411,8 @@ var Signer = class {
|
|
5433
5411
|
*/
|
5434
5412
|
sign(data) {
|
5435
5413
|
const signature = import_secp256k1.secp256k1.sign((0, import_utils29.arrayify)(data), (0, import_utils29.arrayify)(this.privateKey));
|
5436
|
-
const r = (0,
|
5437
|
-
const s = (0,
|
5414
|
+
const r = (0, import_math21.toBytes)(`0x${signature.r.toString(16)}`, 32);
|
5415
|
+
const s = (0, import_math21.toBytes)(`0x${signature.s.toString(16)}`, 32);
|
5438
5416
|
s[0] |= (signature.recovery || 0) << 7;
|
5439
5417
|
return (0, import_utils29.hexlify)((0, import_utils29.concat)([r, s]));
|
5440
5418
|
}
|
@@ -5707,7 +5685,7 @@ __publicField(BaseWalletUnlocked, "defaultPath", "m/44'/1179993420'/0'/0/0");
|
|
5707
5685
|
var import_crypto5 = require("@fuel-ts/crypto");
|
5708
5686
|
var import_errors20 = require("@fuel-ts/errors");
|
5709
5687
|
var import_hasher6 = require("@fuel-ts/hasher");
|
5710
|
-
var
|
5688
|
+
var import_math22 = require("@fuel-ts/math");
|
5711
5689
|
var import_utils35 = require("@fuel-ts/utils");
|
5712
5690
|
|
5713
5691
|
// src/mnemonic/mnemonic.ts
|
@@ -8165,13 +8143,13 @@ var HDWallet = class {
|
|
8165
8143
|
} else {
|
8166
8144
|
data.set((0, import_utils35.arrayify)(this.publicKey));
|
8167
8145
|
}
|
8168
|
-
data.set((0,
|
8146
|
+
data.set((0, import_math22.toBytes)(index, 4), 33);
|
8169
8147
|
const bytes = (0, import_utils35.arrayify)((0, import_crypto5.computeHmac)("sha512", chainCode, data));
|
8170
8148
|
const IL = bytes.slice(0, 32);
|
8171
8149
|
const IR = bytes.slice(32);
|
8172
8150
|
if (privateKey) {
|
8173
8151
|
const N = "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141";
|
8174
|
-
const ki = (0,
|
8152
|
+
const ki = (0, import_math22.bn)(IL).add(privateKey).mod(N).toBytes(32);
|
8175
8153
|
return new HDWallet({
|
8176
8154
|
privateKey: ki,
|
8177
8155
|
chainCode: IR,
|
@@ -8217,7 +8195,7 @@ var HDWallet = class {
|
|
8217
8195
|
const prefix = getExtendedKeyPrefix(this.privateKey == null || isPublic, testnet);
|
8218
8196
|
const depth = (0, import_utils35.hexlify)(Uint8Array.from([this.depth]));
|
8219
8197
|
const parentFingerprint = this.parentFingerprint;
|
8220
|
-
const index = (0,
|
8198
|
+
const index = (0, import_math22.toHex)(this.index, 4);
|
8221
8199
|
const chainCode = this.chainCode;
|
8222
8200
|
const key = this.privateKey != null && !isPublic ? (0, import_utils35.concat)(["0x00", this.privateKey]) : this.publicKey;
|
8223
8201
|
const extendedKey = (0, import_utils35.arrayify)((0, import_utils35.concat)([prefix, depth, parentFingerprint, index, chainCode, key]));
|
@@ -8237,7 +8215,7 @@ var HDWallet = class {
|
|
8237
8215
|
});
|
8238
8216
|
}
|
8239
8217
|
static fromExtendedKey(extendedKey) {
|
8240
|
-
const decoded = (0, import_utils35.hexlify)((0,
|
8218
|
+
const decoded = (0, import_utils35.hexlify)((0, import_math22.toBytes)((0, import_utils35.decodeBase58)(extendedKey)));
|
8241
8219
|
const bytes = (0, import_utils35.arrayify)(decoded);
|
8242
8220
|
const validChecksum = base58check(bytes.slice(0, 78)) === extendedKey;
|
8243
8221
|
if (bytes.length !== 82 || !isValidExtendedKey(bytes)) {
|
@@ -8512,7 +8490,6 @@ var launchNode = async ({
|
|
8512
8490
|
ip,
|
8513
8491
|
port,
|
8514
8492
|
args = [],
|
8515
|
-
fuelCorePath = void 0,
|
8516
8493
|
useSystemFuelCore = false,
|
8517
8494
|
loggingEnabled = true,
|
8518
8495
|
debugEnabled = false,
|
@@ -8533,7 +8510,7 @@ var launchNode = async ({
|
|
8533
8510
|
const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
|
8534
8511
|
const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
|
8535
8512
|
const graphQLStartSubstring = "Binding GraphQL provider to";
|
8536
|
-
const binPath =
|
8513
|
+
const binPath = (0, import_cli_utils.findBinPath)("fuels-core", __dirname);
|
8537
8514
|
const command = useSystemFuelCore ? "fuel-core" : binPath;
|
8538
8515
|
const ipToUse = ip || "0.0.0.0";
|
8539
8516
|
const portToUse = port || (await (0, import_portfinder.getPortPromise)({
|