@fuel-ts/account 0.91.0 → 0.92.0
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 +4 -4
- package/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +2 -2
- package/dist/index.global.js +307 -263
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +152 -108
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +150 -108
- package/dist/index.mjs.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +27 -0
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +27 -6
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +13 -0
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +1 -11
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +347 -396
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +188 -137
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +188 -136
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +19 -20
@@ -6201,9 +6201,9 @@
|
|
6201
6201
|
}
|
6202
6202
|
});
|
6203
6203
|
|
6204
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6204
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.js
|
6205
6205
|
var require_isObjectLike = __commonJS({
|
6206
|
-
"../../node_modules/.pnpm/graphql@16.
|
6206
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.js"(exports) {
|
6207
6207
|
"use strict";
|
6208
6208
|
Object.defineProperty(exports, "__esModule", {
|
6209
6209
|
value: true
|
@@ -6215,9 +6215,9 @@
|
|
6215
6215
|
}
|
6216
6216
|
});
|
6217
6217
|
|
6218
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6218
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.js
|
6219
6219
|
var require_invariant = __commonJS({
|
6220
|
-
"../../node_modules/.pnpm/graphql@16.
|
6220
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.js"(exports) {
|
6221
6221
|
"use strict";
|
6222
6222
|
Object.defineProperty(exports, "__esModule", {
|
6223
6223
|
value: true
|
@@ -6234,9 +6234,9 @@
|
|
6234
6234
|
}
|
6235
6235
|
});
|
6236
6236
|
|
6237
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6237
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.js
|
6238
6238
|
var require_location = __commonJS({
|
6239
|
-
"../../node_modules/.pnpm/graphql@16.
|
6239
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.js"(exports) {
|
6240
6240
|
"use strict";
|
6241
6241
|
Object.defineProperty(exports, "__esModule", {
|
6242
6242
|
value: true
|
@@ -6263,9 +6263,9 @@
|
|
6263
6263
|
}
|
6264
6264
|
});
|
6265
6265
|
|
6266
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6266
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.js
|
6267
6267
|
var require_printLocation = __commonJS({
|
6268
|
-
"../../node_modules/.pnpm/graphql@16.
|
6268
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.js"(exports) {
|
6269
6269
|
"use strict";
|
6270
6270
|
Object.defineProperty(exports, "__esModule", {
|
6271
6271
|
value: true
|
@@ -6321,9 +6321,9 @@
|
|
6321
6321
|
}
|
6322
6322
|
});
|
6323
6323
|
|
6324
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6324
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.js
|
6325
6325
|
var require_GraphQLError = __commonJS({
|
6326
|
-
"../../node_modules/.pnpm/graphql@16.
|
6326
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.js"(exports) {
|
6327
6327
|
"use strict";
|
6328
6328
|
Object.defineProperty(exports, "__esModule", {
|
6329
6329
|
value: true
|
@@ -6493,9 +6493,9 @@
|
|
6493
6493
|
}
|
6494
6494
|
});
|
6495
6495
|
|
6496
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6496
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.js
|
6497
6497
|
var require_syntaxError = __commonJS({
|
6498
|
-
"../../node_modules/.pnpm/graphql@16.
|
6498
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.js"(exports) {
|
6499
6499
|
"use strict";
|
6500
6500
|
Object.defineProperty(exports, "__esModule", {
|
6501
6501
|
value: true
|
@@ -6511,9 +6511,9 @@
|
|
6511
6511
|
}
|
6512
6512
|
});
|
6513
6513
|
|
6514
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6514
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.js
|
6515
6515
|
var require_ast = __commonJS({
|
6516
|
-
"../../node_modules/.pnpm/graphql@16.
|
6516
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.js"(exports) {
|
6517
6517
|
"use strict";
|
6518
6518
|
Object.defineProperty(exports, "__esModule", {
|
6519
6519
|
value: true
|
@@ -6695,9 +6695,9 @@
|
|
6695
6695
|
}
|
6696
6696
|
});
|
6697
6697
|
|
6698
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6698
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.js
|
6699
6699
|
var require_directiveLocation = __commonJS({
|
6700
|
-
"../../node_modules/.pnpm/graphql@16.
|
6700
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.js"(exports) {
|
6701
6701
|
"use strict";
|
6702
6702
|
Object.defineProperty(exports, "__esModule", {
|
6703
6703
|
value: true
|
@@ -6729,9 +6729,9 @@
|
|
6729
6729
|
}
|
6730
6730
|
});
|
6731
6731
|
|
6732
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6732
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.js
|
6733
6733
|
var require_kinds = __commonJS({
|
6734
|
-
"../../node_modules/.pnpm/graphql@16.
|
6734
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.js"(exports) {
|
6735
6735
|
"use strict";
|
6736
6736
|
Object.defineProperty(exports, "__esModule", {
|
6737
6737
|
value: true
|
@@ -6787,9 +6787,9 @@
|
|
6787
6787
|
}
|
6788
6788
|
});
|
6789
6789
|
|
6790
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6790
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.js
|
6791
6791
|
var require_characterClasses = __commonJS({
|
6792
|
-
"../../node_modules/.pnpm/graphql@16.
|
6792
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.js"(exports) {
|
6793
6793
|
"use strict";
|
6794
6794
|
Object.defineProperty(exports, "__esModule", {
|
6795
6795
|
value: true
|
@@ -6818,9 +6818,9 @@
|
|
6818
6818
|
}
|
6819
6819
|
});
|
6820
6820
|
|
6821
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6821
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.js
|
6822
6822
|
var require_blockString = __commonJS({
|
6823
|
-
"../../node_modules/.pnpm/graphql@16.
|
6823
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.js"(exports) {
|
6824
6824
|
"use strict";
|
6825
6825
|
Object.defineProperty(exports, "__esModule", {
|
6826
6826
|
value: true
|
@@ -6937,9 +6937,9 @@
|
|
6937
6937
|
}
|
6938
6938
|
});
|
6939
6939
|
|
6940
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6940
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.js
|
6941
6941
|
var require_tokenKind = __commonJS({
|
6942
|
-
"../../node_modules/.pnpm/graphql@16.
|
6942
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.js"(exports) {
|
6943
6943
|
"use strict";
|
6944
6944
|
Object.defineProperty(exports, "__esModule", {
|
6945
6945
|
value: true
|
@@ -6974,9 +6974,9 @@
|
|
6974
6974
|
}
|
6975
6975
|
});
|
6976
6976
|
|
6977
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6977
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.js
|
6978
6978
|
var require_lexer = __commonJS({
|
6979
|
-
"../../node_modules/.pnpm/graphql@16.
|
6979
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.js"(exports) {
|
6980
6980
|
"use strict";
|
6981
6981
|
Object.defineProperty(exports, "__esModule", {
|
6982
6982
|
value: true
|
@@ -7581,9 +7581,9 @@
|
|
7581
7581
|
}
|
7582
7582
|
});
|
7583
7583
|
|
7584
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7584
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.js
|
7585
7585
|
var require_devAssert = __commonJS({
|
7586
|
-
"../../node_modules/.pnpm/graphql@16.
|
7586
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.js"(exports) {
|
7587
7587
|
"use strict";
|
7588
7588
|
Object.defineProperty(exports, "__esModule", {
|
7589
7589
|
value: true
|
@@ -7598,9 +7598,9 @@
|
|
7598
7598
|
}
|
7599
7599
|
});
|
7600
7600
|
|
7601
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7601
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.js
|
7602
7602
|
var require_inspect = __commonJS({
|
7603
|
-
"../../node_modules/.pnpm/graphql@16.
|
7603
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.js"(exports) {
|
7604
7604
|
"use strict";
|
7605
7605
|
Object.defineProperty(exports, "__esModule", {
|
7606
7606
|
value: true
|
@@ -7690,19 +7690,21 @@
|
|
7690
7690
|
}
|
7691
7691
|
});
|
7692
7692
|
|
7693
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7693
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.js
|
7694
7694
|
var require_instanceOf = __commonJS({
|
7695
|
-
"../../node_modules/.pnpm/graphql@16.
|
7695
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.js"(exports) {
|
7696
7696
|
"use strict";
|
7697
7697
|
Object.defineProperty(exports, "__esModule", {
|
7698
7698
|
value: true
|
7699
7699
|
});
|
7700
7700
|
exports.instanceOf = void 0;
|
7701
7701
|
var _inspect = require_inspect();
|
7702
|
+
var isProduction2 = globalThis.process && // eslint-disable-next-line no-undef
|
7703
|
+
process.env.NODE_ENV === "production";
|
7702
7704
|
var instanceOf4 = (
|
7703
7705
|
/* c8 ignore next 6 */
|
7704
7706
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
7705
|
-
|
7707
|
+
isProduction2 ? function instanceOf5(value, constructor) {
|
7706
7708
|
return value instanceof constructor;
|
7707
7709
|
} : function instanceOf5(value, constructor) {
|
7708
7710
|
if (value instanceof constructor) {
|
@@ -7738,9 +7740,9 @@ spurious results.`);
|
|
7738
7740
|
}
|
7739
7741
|
});
|
7740
7742
|
|
7741
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7743
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.js
|
7742
7744
|
var require_source = __commonJS({
|
7743
|
-
"../../node_modules/.pnpm/graphql@16.
|
7745
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.js"(exports) {
|
7744
7746
|
"use strict";
|
7745
7747
|
Object.defineProperty(exports, "__esModule", {
|
7746
7748
|
value: true
|
@@ -7782,9 +7784,9 @@ spurious results.`);
|
|
7782
7784
|
}
|
7783
7785
|
});
|
7784
7786
|
|
7785
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7787
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.js
|
7786
7788
|
var require_parser = __commonJS({
|
7787
|
-
"../../node_modules/.pnpm/graphql@16.
|
7789
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.js"(exports) {
|
7788
7790
|
"use strict";
|
7789
7791
|
Object.defineProperty(exports, "__esModule", {
|
7790
7792
|
value: true
|
@@ -9091,9 +9093,9 @@ spurious results.`);
|
|
9091
9093
|
}
|
9092
9094
|
});
|
9093
9095
|
|
9094
|
-
// ../../node_modules/.pnpm/graphql@16.
|
9096
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.js
|
9095
9097
|
var require_printString = __commonJS({
|
9096
|
-
"../../node_modules/.pnpm/graphql@16.
|
9098
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.js"(exports) {
|
9097
9099
|
"use strict";
|
9098
9100
|
Object.defineProperty(exports, "__esModule", {
|
9099
9101
|
value: true
|
@@ -9276,9 +9278,9 @@ spurious results.`);
|
|
9276
9278
|
}
|
9277
9279
|
});
|
9278
9280
|
|
9279
|
-
// ../../node_modules/.pnpm/graphql@16.
|
9281
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.js
|
9280
9282
|
var require_visitor = __commonJS({
|
9281
|
-
"../../node_modules/.pnpm/graphql@16.
|
9283
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.js"(exports) {
|
9282
9284
|
"use strict";
|
9283
9285
|
Object.defineProperty(exports, "__esModule", {
|
9284
9286
|
value: true
|
@@ -9487,9 +9489,9 @@ spurious results.`);
|
|
9487
9489
|
}
|
9488
9490
|
});
|
9489
9491
|
|
9490
|
-
// ../../node_modules/.pnpm/graphql@16.
|
9492
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.js
|
9491
9493
|
var require_printer = __commonJS({
|
9492
|
-
"../../node_modules/.pnpm/graphql@16.
|
9494
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.js"(exports) {
|
9493
9495
|
"use strict";
|
9494
9496
|
Object.defineProperty(exports, "__esModule", {
|
9495
9497
|
value: true
|
@@ -19248,9 +19250,9 @@ spurious results.`);
|
|
19248
19250
|
}
|
19249
19251
|
});
|
19250
19252
|
|
19251
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19253
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/defaultJsonSerializer.js
|
19252
19254
|
var require_defaultJsonSerializer = __commonJS({
|
19253
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19255
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/defaultJsonSerializer.js"(exports) {
|
19254
19256
|
"use strict";
|
19255
19257
|
Object.defineProperty(exports, "__esModule", { value: true });
|
19256
19258
|
exports.defaultJsonSerializer = void 0;
|
@@ -19261,9 +19263,9 @@ spurious results.`);
|
|
19261
19263
|
}
|
19262
19264
|
});
|
19263
19265
|
|
19264
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19266
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/createRequestBody.js
|
19265
19267
|
var require_createRequestBody = __commonJS({
|
19266
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19268
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/createRequestBody.js"(exports) {
|
19267
19269
|
"use strict";
|
19268
19270
|
var __importDefault = exports && exports.__importDefault || function(mod2) {
|
19269
19271
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
@@ -19312,9 +19314,9 @@ spurious results.`);
|
|
19312
19314
|
}
|
19313
19315
|
});
|
19314
19316
|
|
19315
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19317
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/parseArgs.js
|
19316
19318
|
var require_parseArgs = __commonJS({
|
19317
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19319
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/parseArgs.js"(exports) {
|
19318
19320
|
"use strict";
|
19319
19321
|
Object.defineProperty(exports, "__esModule", { value: true });
|
19320
19322
|
exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
|
@@ -19376,9 +19378,9 @@ spurious results.`);
|
|
19376
19378
|
}
|
19377
19379
|
});
|
19378
19380
|
|
19379
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19381
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/types.js
|
19380
19382
|
var require_types = __commonJS({
|
19381
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19383
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/types.js"(exports) {
|
19382
19384
|
"use strict";
|
19383
19385
|
var __extends = exports && exports.__extends || function() {
|
19384
19386
|
var extendStatics = function(d, b) {
|
@@ -19436,9 +19438,9 @@ spurious results.`);
|
|
19436
19438
|
}
|
19437
19439
|
});
|
19438
19440
|
|
19439
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19441
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/graphql-ws.js
|
19440
19442
|
var require_graphql_ws = __commonJS({
|
19441
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19443
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/graphql-ws.js"(exports) {
|
19442
19444
|
"use strict";
|
19443
19445
|
var __assign2 = exports && exports.__assign || function() {
|
19444
19446
|
__assign2 = Object.assign || function(t) {
|
@@ -19808,9 +19810,9 @@ spurious results.`);
|
|
19808
19810
|
}
|
19809
19811
|
});
|
19810
19812
|
|
19811
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19813
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/index.js
|
19812
19814
|
var require_dist2 = __commonJS({
|
19813
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19815
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/index.js"(exports) {
|
19814
19816
|
"use strict";
|
19815
19817
|
var __assign2 = exports && exports.__assign || function() {
|
19816
19818
|
__assign2 = Object.assign || function(t) {
|
@@ -31489,112 +31491,6 @@ spurious results.`);
|
|
31489
31491
|
}
|
31490
31492
|
});
|
31491
31493
|
|
31492
|
-
// ../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js
|
31493
|
-
var require_tree_kill = __commonJS({
|
31494
|
-
"../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js"(exports, module) {
|
31495
|
-
"use strict";
|
31496
|
-
var childProcess = __require("child_process");
|
31497
|
-
var spawn = childProcess.spawn;
|
31498
|
-
var exec = childProcess.exec;
|
31499
|
-
module.exports = function(pid, signal, callback) {
|
31500
|
-
if (typeof signal === "function" && callback === void 0) {
|
31501
|
-
callback = signal;
|
31502
|
-
signal = void 0;
|
31503
|
-
}
|
31504
|
-
pid = parseInt(pid);
|
31505
|
-
if (Number.isNaN(pid)) {
|
31506
|
-
if (callback) {
|
31507
|
-
return callback(new Error("pid must be a number"));
|
31508
|
-
} else {
|
31509
|
-
throw new Error("pid must be a number");
|
31510
|
-
}
|
31511
|
-
}
|
31512
|
-
var tree = {};
|
31513
|
-
var pidsToProcess = {};
|
31514
|
-
tree[pid] = [];
|
31515
|
-
pidsToProcess[pid] = 1;
|
31516
|
-
switch (process.platform) {
|
31517
|
-
case "win32":
|
31518
|
-
exec("taskkill /pid " + pid + " /T /F", callback);
|
31519
|
-
break;
|
31520
|
-
case "darwin":
|
31521
|
-
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
31522
|
-
return spawn("pgrep", ["-P", parentPid]);
|
31523
|
-
}, function() {
|
31524
|
-
killAll(tree, signal, callback);
|
31525
|
-
});
|
31526
|
-
break;
|
31527
|
-
default:
|
31528
|
-
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
31529
|
-
return spawn("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
|
31530
|
-
}, function() {
|
31531
|
-
killAll(tree, signal, callback);
|
31532
|
-
});
|
31533
|
-
break;
|
31534
|
-
}
|
31535
|
-
};
|
31536
|
-
function killAll(tree, signal, callback) {
|
31537
|
-
var killed = {};
|
31538
|
-
try {
|
31539
|
-
Object.keys(tree).forEach(function(pid) {
|
31540
|
-
tree[pid].forEach(function(pidpid) {
|
31541
|
-
if (!killed[pidpid]) {
|
31542
|
-
killPid(pidpid, signal);
|
31543
|
-
killed[pidpid] = 1;
|
31544
|
-
}
|
31545
|
-
});
|
31546
|
-
if (!killed[pid]) {
|
31547
|
-
killPid(pid, signal);
|
31548
|
-
killed[pid] = 1;
|
31549
|
-
}
|
31550
|
-
});
|
31551
|
-
} catch (err) {
|
31552
|
-
if (callback) {
|
31553
|
-
return callback(err);
|
31554
|
-
} else {
|
31555
|
-
throw err;
|
31556
|
-
}
|
31557
|
-
}
|
31558
|
-
if (callback) {
|
31559
|
-
return callback();
|
31560
|
-
}
|
31561
|
-
}
|
31562
|
-
function killPid(pid, signal) {
|
31563
|
-
try {
|
31564
|
-
process.kill(parseInt(pid, 10), signal);
|
31565
|
-
} catch (err) {
|
31566
|
-
if (err.code !== "ESRCH")
|
31567
|
-
throw err;
|
31568
|
-
}
|
31569
|
-
}
|
31570
|
-
function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesList, cb) {
|
31571
|
-
var ps = spawnChildProcessesList(parentPid);
|
31572
|
-
var allData = "";
|
31573
|
-
ps.stdout.on("data", function(data) {
|
31574
|
-
var data = data.toString("ascii");
|
31575
|
-
allData += data;
|
31576
|
-
});
|
31577
|
-
var onClose = function(code) {
|
31578
|
-
delete pidsToProcess[parentPid];
|
31579
|
-
if (code != 0) {
|
31580
|
-
if (Object.keys(pidsToProcess).length == 0) {
|
31581
|
-
cb();
|
31582
|
-
}
|
31583
|
-
return;
|
31584
|
-
}
|
31585
|
-
allData.match(/\d+/g).forEach(function(pid) {
|
31586
|
-
pid = parseInt(pid, 10);
|
31587
|
-
tree[parentPid].push(pid);
|
31588
|
-
tree[pid] = [];
|
31589
|
-
pidsToProcess[pid] = 1;
|
31590
|
-
buildProcessTree(pid, tree, pidsToProcess, spawnChildProcessesList, cb);
|
31591
|
-
});
|
31592
|
-
};
|
31593
|
-
ps.on("close", onClose);
|
31594
|
-
}
|
31595
|
-
}
|
31596
|
-
});
|
31597
|
-
|
31598
31494
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js
|
31599
31495
|
function number(n) {
|
31600
31496
|
if (!Number.isSafeInteger(n) || n < 0)
|
@@ -32401,9 +32297,9 @@ spurious results.`);
|
|
32401
32297
|
// ../versions/dist/index.mjs
|
32402
32298
|
function getBuiltinVersions() {
|
32403
32299
|
return {
|
32404
|
-
FORC: "0.61.
|
32405
|
-
FUEL_CORE: "0.
|
32406
|
-
FUELS: "0.
|
32300
|
+
FORC: "0.61.2",
|
32301
|
+
FUEL_CORE: "0.31.0",
|
32302
|
+
FUELS: "0.92.0"
|
32407
32303
|
};
|
32408
32304
|
}
|
32409
32305
|
function parseVersion(version) {
|
@@ -37107,7 +37003,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37107
37003
|
}
|
37108
37004
|
};
|
37109
37005
|
|
37110
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
37006
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/utils.js
|
37111
37007
|
var utils_exports = {};
|
37112
37008
|
__export(utils_exports, {
|
37113
37009
|
abytes: () => abytes,
|
@@ -37132,9 +37028,9 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37132
37028
|
utf8ToBytes: () => utf8ToBytes2,
|
37133
37029
|
validateObject: () => validateObject
|
37134
37030
|
});
|
37135
|
-
var _0n2 = BigInt(0);
|
37136
|
-
var _1n2 = BigInt(1);
|
37137
|
-
var _2n2 = BigInt(2);
|
37031
|
+
var _0n2 = /* @__PURE__ */ BigInt(0);
|
37032
|
+
var _1n2 = /* @__PURE__ */ BigInt(1);
|
37033
|
+
var _2n2 = /* @__PURE__ */ BigInt(2);
|
37138
37034
|
function isBytes3(a) {
|
37139
37035
|
return a instanceof Uint8Array || a != null && typeof a === "object" && a.constructor.name === "Uint8Array";
|
37140
37036
|
}
|
@@ -37361,7 +37257,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37361
37257
|
return __assign.apply(this, arguments);
|
37362
37258
|
};
|
37363
37259
|
|
37364
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37260
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
|
37365
37261
|
function devAssert(condition, message) {
|
37366
37262
|
const booleanCondition = Boolean(condition);
|
37367
37263
|
if (!booleanCondition) {
|
@@ -37369,12 +37265,12 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37369
37265
|
}
|
37370
37266
|
}
|
37371
37267
|
|
37372
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37268
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.mjs
|
37373
37269
|
function isObjectLike(value) {
|
37374
37270
|
return typeof value == "object" && value !== null;
|
37375
37271
|
}
|
37376
37272
|
|
37377
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37273
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.mjs
|
37378
37274
|
function invariant(condition, message) {
|
37379
37275
|
const booleanCondition = Boolean(condition);
|
37380
37276
|
if (!booleanCondition) {
|
@@ -37384,7 +37280,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37384
37280
|
}
|
37385
37281
|
}
|
37386
37282
|
|
37387
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37283
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.mjs
|
37388
37284
|
var LineRegExp = /\r\n|[\n\r]/g;
|
37389
37285
|
function getLocation(source, position) {
|
37390
37286
|
let lastLineStart = 0;
|
@@ -37403,7 +37299,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37403
37299
|
};
|
37404
37300
|
}
|
37405
37301
|
|
37406
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37302
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.mjs
|
37407
37303
|
function printLocation(location) {
|
37408
37304
|
return printSourceLocation(
|
37409
37305
|
location.source,
|
@@ -37450,7 +37346,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37450
37346
|
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
|
37451
37347
|
}
|
37452
37348
|
|
37453
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37349
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.mjs
|
37454
37350
|
function toNormalizedOptions(args) {
|
37455
37351
|
const firstArg = args[0];
|
37456
37352
|
if (firstArg == null || "kind" in firstArg || "length" in firstArg) {
|
@@ -37599,7 +37495,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37599
37495
|
return array === void 0 || array.length === 0 ? void 0 : array;
|
37600
37496
|
}
|
37601
37497
|
|
37602
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37498
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.mjs
|
37603
37499
|
function syntaxError(source, position, description) {
|
37604
37500
|
return new GraphQLError(`Syntax Error: ${description}`, {
|
37605
37501
|
source,
|
@@ -37607,7 +37503,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37607
37503
|
});
|
37608
37504
|
}
|
37609
37505
|
|
37610
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37506
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.mjs
|
37611
37507
|
var Location = class {
|
37612
37508
|
/**
|
37613
37509
|
* The character offset at which this Node begins.
|
@@ -37777,7 +37673,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37777
37673
|
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
37778
37674
|
})(OperationTypeNode || (OperationTypeNode = {}));
|
37779
37675
|
|
37780
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37676
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.mjs
|
37781
37677
|
var DirectiveLocation;
|
37782
37678
|
(function(DirectiveLocation2) {
|
37783
37679
|
DirectiveLocation2["QUERY"] = "QUERY";
|
@@ -37801,7 +37697,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37801
37697
|
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
37802
37698
|
})(DirectiveLocation || (DirectiveLocation = {}));
|
37803
37699
|
|
37804
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37700
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.mjs
|
37805
37701
|
var Kind;
|
37806
37702
|
(function(Kind2) {
|
37807
37703
|
Kind2["NAME"] = "Name";
|
@@ -37849,7 +37745,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37849
37745
|
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
37850
37746
|
})(Kind || (Kind = {}));
|
37851
37747
|
|
37852
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37748
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.mjs
|
37853
37749
|
function isWhiteSpace(code) {
|
37854
37750
|
return code === 9 || code === 32;
|
37855
37751
|
}
|
@@ -37867,7 +37763,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37867
37763
|
return isLetter(code) || isDigit(code) || code === 95;
|
37868
37764
|
}
|
37869
37765
|
|
37870
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37766
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.mjs
|
37871
37767
|
function dedentBlockStringLines(lines) {
|
37872
37768
|
var _firstNonEmptyLine2;
|
37873
37769
|
let commonIndent = Number.MAX_SAFE_INTEGER;
|
@@ -37921,7 +37817,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37921
37817
|
return '"""' + result + '"""';
|
37922
37818
|
}
|
37923
37819
|
|
37924
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37820
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.mjs
|
37925
37821
|
var TokenKind;
|
37926
37822
|
(function(TokenKind2) {
|
37927
37823
|
TokenKind2["SOF"] = "<SOF>";
|
@@ -37948,7 +37844,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
37948
37844
|
TokenKind2["COMMENT"] = "Comment";
|
37949
37845
|
})(TokenKind || (TokenKind = {}));
|
37950
37846
|
|
37951
|
-
// ../../node_modules/.pnpm/graphql@16.
|
37847
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.mjs
|
37952
37848
|
var Lexer = class {
|
37953
37849
|
/**
|
37954
37850
|
* The previously focused non-ignored token.
|
@@ -38449,7 +38345,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
38449
38345
|
);
|
38450
38346
|
}
|
38451
38347
|
|
38452
|
-
// ../../node_modules/.pnpm/graphql@16.
|
38348
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.mjs
|
38453
38349
|
var MAX_ARRAY_LENGTH = 10;
|
38454
38350
|
var MAX_RECURSIVE_DEPTH = 2;
|
38455
38351
|
function inspect(value) {
|
@@ -38532,11 +38428,13 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
38532
38428
|
return tag;
|
38533
38429
|
}
|
38534
38430
|
|
38535
|
-
// ../../node_modules/.pnpm/graphql@16.
|
38431
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.mjs
|
38432
|
+
var isProduction = globalThis.process && // eslint-disable-next-line no-undef
|
38433
|
+
process.env.NODE_ENV === "production";
|
38536
38434
|
var instanceOf = (
|
38537
38435
|
/* c8 ignore next 6 */
|
38538
38436
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
38539
|
-
|
38437
|
+
isProduction ? function instanceOf2(value, constructor) {
|
38540
38438
|
return value instanceof constructor;
|
38541
38439
|
} : function instanceOf3(value, constructor) {
|
38542
38440
|
if (value instanceof constructor) {
|
@@ -38569,7 +38467,7 @@ spurious results.`);
|
|
38569
38467
|
}
|
38570
38468
|
);
|
38571
38469
|
|
38572
|
-
// ../../node_modules/.pnpm/graphql@16.
|
38470
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.mjs
|
38573
38471
|
var Source = class {
|
38574
38472
|
constructor(body, name = "GraphQL request", locationOffset = {
|
38575
38473
|
line: 1,
|
@@ -38596,7 +38494,7 @@ spurious results.`);
|
|
38596
38494
|
return instanceOf(source, Source);
|
38597
38495
|
}
|
38598
38496
|
|
38599
|
-
// ../../node_modules/.pnpm/graphql@16.
|
38497
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.mjs
|
38600
38498
|
function parse(source, options) {
|
38601
38499
|
const parser = new Parser(source, options);
|
38602
38500
|
return parser.parseDocument();
|
@@ -39845,7 +39743,7 @@ spurious results.`);
|
|
39845
39743
|
return isPunctuatorTokenKind(kind) ? `"${kind}"` : kind;
|
39846
39744
|
}
|
39847
39745
|
|
39848
|
-
// ../../node_modules/.pnpm/graphql@16.
|
39746
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.mjs
|
39849
39747
|
function printString(str) {
|
39850
39748
|
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
39851
39749
|
}
|
@@ -40021,7 +39919,7 @@ spurious results.`);
|
|
40021
39919
|
"\\u009F"
|
40022
39920
|
];
|
40023
39921
|
|
40024
|
-
// ../../node_modules/.pnpm/graphql@16.
|
39922
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.mjs
|
40025
39923
|
var BREAK = Object.freeze({});
|
40026
39924
|
function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
|
40027
39925
|
const enterLeaveMap = /* @__PURE__ */ new Map();
|
@@ -40153,7 +40051,7 @@ spurious results.`);
|
|
40153
40051
|
};
|
40154
40052
|
}
|
40155
40053
|
|
40156
|
-
// ../../node_modules/.pnpm/graphql@16.
|
40054
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.mjs
|
40157
40055
|
function print(ast) {
|
40158
40056
|
return visit(ast, printDocASTReducer);
|
40159
40057
|
}
|
@@ -40395,7 +40293,7 @@ spurious results.`);
|
|
40395
40293
|
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
40396
40294
|
}
|
40397
40295
|
|
40398
|
-
// ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.
|
40296
|
+
// ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.9.0/node_modules/graphql-tag/lib/index.js
|
40399
40297
|
var docCache = /* @__PURE__ */ new Map();
|
40400
40298
|
var fragmentSourceMap = /* @__PURE__ */ new Map();
|
40401
40299
|
var printFragmentWarnings = true;
|
@@ -41182,6 +41080,9 @@ ${TransactionFragmentDoc}`;
|
|
41182
41080
|
var GetBlocksDocument = lib_default2`
|
41183
41081
|
query getBlocks($after: String, $before: String, $first: Int, $last: Int) {
|
41184
41082
|
blocks(after: $after, before: $before, first: $first, last: $last) {
|
41083
|
+
pageInfo {
|
41084
|
+
...pageInfoFragment
|
41085
|
+
}
|
41185
41086
|
edges {
|
41186
41087
|
node {
|
41187
41088
|
...blockFragment
|
@@ -41189,7 +41090,8 @@ ${TransactionFragmentDoc}`;
|
|
41189
41090
|
}
|
41190
41091
|
}
|
41191
41092
|
}
|
41192
|
-
${
|
41093
|
+
${PageInfoFragmentDoc}
|
41094
|
+
${BlockFragmentDoc}`;
|
41193
41095
|
var GetCoinDocument = lib_default2`
|
41194
41096
|
query getCoin($coinId: UtxoId!) {
|
41195
41097
|
coin(utxoId: $coinId) {
|
@@ -41206,6 +41108,9 @@ ${TransactionFragmentDoc}`;
|
|
41206
41108
|
first: $first
|
41207
41109
|
last: $last
|
41208
41110
|
) {
|
41111
|
+
pageInfo {
|
41112
|
+
...pageInfoFragment
|
41113
|
+
}
|
41209
41114
|
edges {
|
41210
41115
|
node {
|
41211
41116
|
...coinFragment
|
@@ -41213,7 +41118,8 @@ ${TransactionFragmentDoc}`;
|
|
41213
41118
|
}
|
41214
41119
|
}
|
41215
41120
|
}
|
41216
|
-
${
|
41121
|
+
${PageInfoFragmentDoc}
|
41122
|
+
${CoinFragmentDoc}`;
|
41217
41123
|
var GetCoinsToSpendDocument = lib_default2`
|
41218
41124
|
query getCoinsToSpend($owner: Address!, $queryPerAsset: [SpendQueryElementInput!]!, $excludedIds: ExcludeInput) {
|
41219
41125
|
coinsToSpend(
|
@@ -41272,6 +41178,9 @@ ${MessageCoinFragmentDoc}`;
|
|
41272
41178
|
first: $first
|
41273
41179
|
last: $last
|
41274
41180
|
) {
|
41181
|
+
pageInfo {
|
41182
|
+
...pageInfoFragment
|
41183
|
+
}
|
41275
41184
|
edges {
|
41276
41185
|
node {
|
41277
41186
|
...balanceFragment
|
@@ -41279,7 +41188,8 @@ ${MessageCoinFragmentDoc}`;
|
|
41279
41188
|
}
|
41280
41189
|
}
|
41281
41190
|
}
|
41282
|
-
${
|
41191
|
+
${PageInfoFragmentDoc}
|
41192
|
+
${BalanceFragmentDoc}`;
|
41283
41193
|
var GetMessagesDocument = lib_default2`
|
41284
41194
|
query getMessages($owner: Address!, $after: String, $before: String, $first: Int, $last: Int) {
|
41285
41195
|
messages(
|
@@ -41289,6 +41199,9 @@ ${MessageCoinFragmentDoc}`;
|
|
41289
41199
|
first: $first
|
41290
41200
|
last: $last
|
41291
41201
|
) {
|
41202
|
+
pageInfo {
|
41203
|
+
...pageInfoFragment
|
41204
|
+
}
|
41292
41205
|
edges {
|
41293
41206
|
node {
|
41294
41207
|
...messageFragment
|
@@ -41296,7 +41209,8 @@ ${MessageCoinFragmentDoc}`;
|
|
41296
41209
|
}
|
41297
41210
|
}
|
41298
41211
|
}
|
41299
|
-
${
|
41212
|
+
${PageInfoFragmentDoc}
|
41213
|
+
${MessageFragmentDoc}`;
|
41300
41214
|
var GetMessageProofDocument = lib_default2`
|
41301
41215
|
query getMessageProof($transactionId: TransactionId!, $nonce: Nonce!, $commitBlockId: BlockId, $commitBlockHeight: U32) {
|
41302
41216
|
messageProof(
|
@@ -43967,12 +43881,18 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
|
|
43967
43881
|
await this.fetch();
|
43968
43882
|
}
|
43969
43883
|
/**
|
43970
|
-
*
|
43884
|
+
* Assembles the result of a transaction by retrieving the transaction summary,
|
43885
|
+
* decoding logs (if available), and handling transaction failure.
|
43971
43886
|
*
|
43972
|
-
*
|
43887
|
+
* This method can be used to obtain the result of a transaction that has just
|
43888
|
+
* been submitted or one that has already been processed.
|
43889
|
+
*
|
43890
|
+
* @template TTransactionType - The type of the transaction.
|
43891
|
+
* @param contractsAbiMap - The map of contract ABIs.
|
43892
|
+
* @returns - The assembled transaction result.
|
43893
|
+
* @throws If the transaction status is a failure.
|
43973
43894
|
*/
|
43974
|
-
async
|
43975
|
-
await this.waitForStatusChange();
|
43895
|
+
async assembleResult(contractsAbiMap) {
|
43976
43896
|
const transactionSummary = await this.getTransactionSummary(contractsAbiMap);
|
43977
43897
|
const transactionResult = {
|
43978
43898
|
gqlTransaction: this.gqlTransaction,
|
@@ -43998,6 +43918,15 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
|
|
43998
43918
|
}
|
43999
43919
|
return transactionResult;
|
44000
43920
|
}
|
43921
|
+
/**
|
43922
|
+
* Waits for transaction to complete and returns the result.
|
43923
|
+
*
|
43924
|
+
* @returns The completed transaction result
|
43925
|
+
*/
|
43926
|
+
async waitForResult(contractsAbiMap) {
|
43927
|
+
await this.waitForStatusChange();
|
43928
|
+
return this.assembleResult(contractsAbiMap);
|
43929
|
+
}
|
44001
43930
|
/**
|
44002
43931
|
* Waits for transaction to complete and returns the result.
|
44003
43932
|
*
|
@@ -44060,6 +43989,8 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
|
|
44060
43989
|
|
44061
43990
|
// src/providers/provider.ts
|
44062
43991
|
var MAX_RETRIES = 10;
|
43992
|
+
var RESOURCES_PAGE_SIZE_LIMIT = 512;
|
43993
|
+
var BLOCKS_PAGE_SIZE_LIMIT = 5;
|
44063
43994
|
var processGqlChain = (chain) => {
|
44064
43995
|
const { name, daHeight, consensusParameters, latestBlock } = chain;
|
44065
43996
|
const {
|
@@ -44703,7 +44634,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
44703
44634
|
/**
|
44704
44635
|
* Returns a transaction cost to enable user
|
44705
44636
|
* to set gasLimit and also reserve balance amounts
|
44706
|
-
* on the
|
44637
|
+
* on the transaction.
|
44707
44638
|
*
|
44708
44639
|
* @param transactionRequestLike - The transaction request object.
|
44709
44640
|
* @param transactionCostParams - The transaction cost parameters (optional).
|
@@ -44814,20 +44745,27 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
44814
44745
|
*/
|
44815
44746
|
async getCoins(owner, assetId, paginationArgs) {
|
44816
44747
|
const ownerAddress = Address.fromAddressOrString(owner);
|
44817
|
-
const
|
44818
|
-
|
44819
|
-
|
44748
|
+
const {
|
44749
|
+
coins: { edges, pageInfo }
|
44750
|
+
} = await this.operations.getCoins({
|
44751
|
+
...this.validatePaginationArgs({
|
44752
|
+
paginationLimit: RESOURCES_PAGE_SIZE_LIMIT,
|
44753
|
+
inputArgs: paginationArgs
|
44754
|
+
}),
|
44820
44755
|
filter: { owner: ownerAddress.toB256(), assetId: assetId && hexlify(assetId) }
|
44821
44756
|
});
|
44822
|
-
const coins =
|
44823
|
-
|
44824
|
-
|
44825
|
-
|
44826
|
-
|
44827
|
-
|
44828
|
-
|
44829
|
-
txCreatedIdx: bn(coin.txCreatedIdx)
|
44757
|
+
const coins = edges.map(({ node }) => ({
|
44758
|
+
id: node.utxoId,
|
44759
|
+
assetId: node.assetId,
|
44760
|
+
amount: bn(node.amount),
|
44761
|
+
owner: Address.fromAddressOrString(node.owner),
|
44762
|
+
blockCreated: bn(node.blockCreated),
|
44763
|
+
txCreatedIdx: bn(node.txCreatedIdx)
|
44830
44764
|
}));
|
44765
|
+
return {
|
44766
|
+
coins,
|
44767
|
+
pageInfo
|
44768
|
+
};
|
44831
44769
|
}
|
44832
44770
|
/**
|
44833
44771
|
* Returns resources for the given owner satisfying the spend query.
|
@@ -44920,14 +44858,21 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
44920
44858
|
* @returns A promise that resolves to the blocks.
|
44921
44859
|
*/
|
44922
44860
|
async getBlocks(params) {
|
44923
|
-
const {
|
44924
|
-
|
44861
|
+
const {
|
44862
|
+
blocks: { edges, pageInfo }
|
44863
|
+
} = await this.operations.getBlocks({
|
44864
|
+
...this.validatePaginationArgs({
|
44865
|
+
paginationLimit: BLOCKS_PAGE_SIZE_LIMIT,
|
44866
|
+
inputArgs: params
|
44867
|
+
})
|
44868
|
+
});
|
44869
|
+
const blocks = edges.map(({ node: block2 }) => ({
|
44925
44870
|
id: block2.id,
|
44926
44871
|
height: bn(block2.height),
|
44927
44872
|
time: block2.header.time,
|
44928
44873
|
transactionIds: block2.transactions.map((tx) => tx.id)
|
44929
44874
|
}));
|
44930
|
-
return blocks;
|
44875
|
+
return { blocks, pageInfo };
|
44931
44876
|
}
|
44932
44877
|
/**
|
44933
44878
|
* Returns block matching the given ID or type, including transaction data.
|
@@ -45037,17 +44982,22 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
45037
44982
|
* @param paginationArgs - Pagination arguments (optional).
|
45038
44983
|
* @returns A promise that resolves to the balances.
|
45039
44984
|
*/
|
45040
|
-
async getBalances(owner
|
45041
|
-
const
|
45042
|
-
|
45043
|
-
|
44985
|
+
async getBalances(owner) {
|
44986
|
+
const {
|
44987
|
+
balances: { edges }
|
44988
|
+
} = await this.operations.getBalances({
|
44989
|
+
/**
|
44990
|
+
* The query parameters for this method were designed to support pagination,
|
44991
|
+
* but the current Fuel-Core implementation does not support pagination yet.
|
44992
|
+
*/
|
44993
|
+
first: 1e4,
|
45044
44994
|
filter: { owner: Address.fromAddressOrString(owner).toB256() }
|
45045
44995
|
});
|
45046
|
-
const balances =
|
45047
|
-
|
45048
|
-
|
45049
|
-
amount: bn(balance.amount)
|
44996
|
+
const balances = edges.map(({ node }) => ({
|
44997
|
+
assetId: node.assetId,
|
44998
|
+
amount: bn(node.amount)
|
45050
44999
|
}));
|
45000
|
+
return { balances };
|
45051
45001
|
}
|
45052
45002
|
/**
|
45053
45003
|
* Returns message for the given address.
|
@@ -45057,27 +45007,34 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
45057
45007
|
* @returns A promise that resolves to the messages.
|
45058
45008
|
*/
|
45059
45009
|
async getMessages(address, paginationArgs) {
|
45060
|
-
const
|
45061
|
-
|
45062
|
-
|
45010
|
+
const {
|
45011
|
+
messages: { edges, pageInfo }
|
45012
|
+
} = await this.operations.getMessages({
|
45013
|
+
...this.validatePaginationArgs({
|
45014
|
+
inputArgs: paginationArgs,
|
45015
|
+
paginationLimit: RESOURCES_PAGE_SIZE_LIMIT
|
45016
|
+
}),
|
45063
45017
|
owner: Address.fromAddressOrString(address).toB256()
|
45064
45018
|
});
|
45065
|
-
const messages =
|
45066
|
-
return messages.map((message) => ({
|
45019
|
+
const messages = edges.map(({ node }) => ({
|
45067
45020
|
messageId: InputMessageCoder.getMessageId({
|
45068
|
-
sender:
|
45069
|
-
recipient:
|
45070
|
-
nonce:
|
45071
|
-
amount: bn(
|
45072
|
-
data:
|
45021
|
+
sender: node.sender,
|
45022
|
+
recipient: node.recipient,
|
45023
|
+
nonce: node.nonce,
|
45024
|
+
amount: bn(node.amount),
|
45025
|
+
data: node.data
|
45073
45026
|
}),
|
45074
|
-
sender: Address.fromAddressOrString(
|
45075
|
-
recipient: Address.fromAddressOrString(
|
45076
|
-
nonce:
|
45077
|
-
amount: bn(
|
45078
|
-
data: InputMessageCoder.decodeData(
|
45079
|
-
daHeight: bn(
|
45027
|
+
sender: Address.fromAddressOrString(node.sender),
|
45028
|
+
recipient: Address.fromAddressOrString(node.recipient),
|
45029
|
+
nonce: node.nonce,
|
45030
|
+
amount: bn(node.amount),
|
45031
|
+
data: InputMessageCoder.decodeData(node.data),
|
45032
|
+
daHeight: bn(node.daHeight)
|
45080
45033
|
}));
|
45034
|
+
return {
|
45035
|
+
messages,
|
45036
|
+
pageInfo
|
45037
|
+
};
|
45081
45038
|
}
|
45082
45039
|
/**
|
45083
45040
|
* Returns Message Proof for given transaction id and the message id from MessageOut receipt.
|
@@ -45256,6 +45213,41 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
45256
45213
|
}
|
45257
45214
|
return relayedTransactionStatus;
|
45258
45215
|
}
|
45216
|
+
/**
|
45217
|
+
* @hidden
|
45218
|
+
*/
|
45219
|
+
validatePaginationArgs(params) {
|
45220
|
+
const { paginationLimit, inputArgs = {} } = params;
|
45221
|
+
const { first, last, after, before } = inputArgs;
|
45222
|
+
if (after && before) {
|
45223
|
+
throw new FuelError(
|
45224
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
45225
|
+
'Pagination arguments "after" and "before" cannot be used together'
|
45226
|
+
);
|
45227
|
+
}
|
45228
|
+
if ((first || 0) > paginationLimit || (last || 0) > paginationLimit) {
|
45229
|
+
throw new FuelError(
|
45230
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
45231
|
+
`Pagination limit for this query cannot exceed ${paginationLimit} items`
|
45232
|
+
);
|
45233
|
+
}
|
45234
|
+
if (first && before) {
|
45235
|
+
throw new FuelError(
|
45236
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
45237
|
+
'The use of pagination argument "first" with "before" is not supported'
|
45238
|
+
);
|
45239
|
+
}
|
45240
|
+
if (last && after) {
|
45241
|
+
throw new FuelError(
|
45242
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
45243
|
+
'The use of pagination argument "last" with "after" is not supported'
|
45244
|
+
);
|
45245
|
+
}
|
45246
|
+
if (!first && !last) {
|
45247
|
+
inputArgs.first = paginationLimit;
|
45248
|
+
}
|
45249
|
+
return inputArgs;
|
45250
|
+
}
|
45259
45251
|
/**
|
45260
45252
|
* @hidden
|
45261
45253
|
*/
|
@@ -45472,52 +45464,16 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
45472
45464
|
* @param assetId - The asset ID of the coins to retrieve (optional).
|
45473
45465
|
* @returns A promise that resolves to an array of Coins.
|
45474
45466
|
*/
|
45475
|
-
async getCoins(assetId) {
|
45476
|
-
|
45477
|
-
const pageSize = 9999;
|
45478
|
-
let cursor;
|
45479
|
-
for (; ; ) {
|
45480
|
-
const pageCoins = await this.provider.getCoins(this.address, assetId, {
|
45481
|
-
first: pageSize,
|
45482
|
-
after: cursor
|
45483
|
-
});
|
45484
|
-
coins.push(...pageCoins);
|
45485
|
-
const hasNextPage = pageCoins.length >= pageSize;
|
45486
|
-
if (!hasNextPage) {
|
45487
|
-
break;
|
45488
|
-
}
|
45489
|
-
throw new FuelError(
|
45490
|
-
ErrorCode.NOT_SUPPORTED,
|
45491
|
-
`Wallets containing more than ${pageSize} coins exceed the current supported limit.`
|
45492
|
-
);
|
45493
|
-
}
|
45494
|
-
return coins;
|
45467
|
+
async getCoins(assetId, paginationArgs) {
|
45468
|
+
return this.provider.getCoins(this.address, assetId, paginationArgs);
|
45495
45469
|
}
|
45496
45470
|
/**
|
45497
45471
|
* Retrieves messages owned by the account.
|
45498
45472
|
*
|
45499
45473
|
* @returns A promise that resolves to an array of Messages.
|
45500
45474
|
*/
|
45501
|
-
async getMessages() {
|
45502
|
-
|
45503
|
-
const pageSize = 9999;
|
45504
|
-
let cursor;
|
45505
|
-
for (; ; ) {
|
45506
|
-
const pageMessages = await this.provider.getMessages(this.address, {
|
45507
|
-
first: pageSize,
|
45508
|
-
after: cursor
|
45509
|
-
});
|
45510
|
-
messages.push(...pageMessages);
|
45511
|
-
const hasNextPage = pageMessages.length >= pageSize;
|
45512
|
-
if (!hasNextPage) {
|
45513
|
-
break;
|
45514
|
-
}
|
45515
|
-
throw new FuelError(
|
45516
|
-
ErrorCode.NOT_SUPPORTED,
|
45517
|
-
`Wallets containing more than ${pageSize} messages exceed the current supported limit.`
|
45518
|
-
);
|
45519
|
-
}
|
45520
|
-
return messages;
|
45475
|
+
async getMessages(paginationArgs) {
|
45476
|
+
return this.provider.getMessages(this.address, paginationArgs);
|
45521
45477
|
}
|
45522
45478
|
/**
|
45523
45479
|
* Retrieves the balance of the account for the given asset.
|
@@ -45536,25 +45492,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
45536
45492
|
* @returns A promise that resolves to an array of Coins and their quantities.
|
45537
45493
|
*/
|
45538
45494
|
async getBalances() {
|
45539
|
-
|
45540
|
-
const pageSize = 9999;
|
45541
|
-
let cursor;
|
45542
|
-
for (; ; ) {
|
45543
|
-
const pageBalances = await this.provider.getBalances(this.address, {
|
45544
|
-
first: pageSize,
|
45545
|
-
after: cursor
|
45546
|
-
});
|
45547
|
-
balances.push(...pageBalances);
|
45548
|
-
const hasNextPage = pageBalances.length >= pageSize;
|
45549
|
-
if (!hasNextPage) {
|
45550
|
-
break;
|
45551
|
-
}
|
45552
|
-
throw new FuelError(
|
45553
|
-
ErrorCode.NOT_SUPPORTED,
|
45554
|
-
`Wallets containing more than ${pageSize} balances exceed the current supported limit.`
|
45555
|
-
);
|
45556
|
-
}
|
45557
|
-
return balances;
|
45495
|
+
return this.provider.getBalances(this.address);
|
45558
45496
|
}
|
45559
45497
|
/**
|
45560
45498
|
* Funds a transaction request by adding the necessary resources.
|
@@ -46277,7 +46215,72 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
46277
46215
|
};
|
46278
46216
|
var sha2563 = /* @__PURE__ */ wrapConstructor2(() => new SHA2562());
|
46279
46217
|
|
46280
|
-
// ../../node_modules/.pnpm/@noble+
|
46218
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/hmac.js
|
46219
|
+
var HMAC2 = class extends Hash2 {
|
46220
|
+
constructor(hash4, _key) {
|
46221
|
+
super();
|
46222
|
+
this.finished = false;
|
46223
|
+
this.destroyed = false;
|
46224
|
+
hash3(hash4);
|
46225
|
+
const key = toBytes3(_key);
|
46226
|
+
this.iHash = hash4.create();
|
46227
|
+
if (typeof this.iHash.update !== "function")
|
46228
|
+
throw new Error("Expected instance of class which extends utils.Hash");
|
46229
|
+
this.blockLen = this.iHash.blockLen;
|
46230
|
+
this.outputLen = this.iHash.outputLen;
|
46231
|
+
const blockLen = this.blockLen;
|
46232
|
+
const pad3 = new Uint8Array(blockLen);
|
46233
|
+
pad3.set(key.length > blockLen ? hash4.create().update(key).digest() : key);
|
46234
|
+
for (let i = 0; i < pad3.length; i++)
|
46235
|
+
pad3[i] ^= 54;
|
46236
|
+
this.iHash.update(pad3);
|
46237
|
+
this.oHash = hash4.create();
|
46238
|
+
for (let i = 0; i < pad3.length; i++)
|
46239
|
+
pad3[i] ^= 54 ^ 92;
|
46240
|
+
this.oHash.update(pad3);
|
46241
|
+
pad3.fill(0);
|
46242
|
+
}
|
46243
|
+
update(buf) {
|
46244
|
+
exists2(this);
|
46245
|
+
this.iHash.update(buf);
|
46246
|
+
return this;
|
46247
|
+
}
|
46248
|
+
digestInto(out) {
|
46249
|
+
exists2(this);
|
46250
|
+
bytes2(out, this.outputLen);
|
46251
|
+
this.finished = true;
|
46252
|
+
this.iHash.digestInto(out);
|
46253
|
+
this.oHash.update(out);
|
46254
|
+
this.oHash.digestInto(out);
|
46255
|
+
this.destroy();
|
46256
|
+
}
|
46257
|
+
digest() {
|
46258
|
+
const out = new Uint8Array(this.oHash.outputLen);
|
46259
|
+
this.digestInto(out);
|
46260
|
+
return out;
|
46261
|
+
}
|
46262
|
+
_cloneInto(to) {
|
46263
|
+
to || (to = Object.create(Object.getPrototypeOf(this), {}));
|
46264
|
+
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
|
46265
|
+
to = to;
|
46266
|
+
to.finished = finished;
|
46267
|
+
to.destroyed = destroyed;
|
46268
|
+
to.blockLen = blockLen;
|
46269
|
+
to.outputLen = outputLen;
|
46270
|
+
to.oHash = oHash._cloneInto(to.oHash);
|
46271
|
+
to.iHash = iHash._cloneInto(to.iHash);
|
46272
|
+
return to;
|
46273
|
+
}
|
46274
|
+
destroy() {
|
46275
|
+
this.destroyed = true;
|
46276
|
+
this.oHash.destroy();
|
46277
|
+
this.iHash.destroy();
|
46278
|
+
}
|
46279
|
+
};
|
46280
|
+
var hmac2 = (hash4, key, message) => new HMAC2(hash4, key).update(message).digest();
|
46281
|
+
hmac2.create = (hash4, key) => new HMAC2(hash4, key);
|
46282
|
+
|
46283
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/modular.js
|
46281
46284
|
var _0n3 = BigInt(0);
|
46282
46285
|
var _1n3 = BigInt(1);
|
46283
46286
|
var _2n3 = BigInt(2);
|
@@ -46543,7 +46546,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
46543
46546
|
return isLE3 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
|
46544
46547
|
}
|
46545
46548
|
|
46546
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
46549
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/curve.js
|
46547
46550
|
var _0n4 = BigInt(0);
|
46548
46551
|
var _1n4 = BigInt(1);
|
46549
46552
|
function wNAF(c, bits) {
|
@@ -46661,7 +46664,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
46661
46664
|
});
|
46662
46665
|
}
|
46663
46666
|
|
46664
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
46667
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/weierstrass.js
|
46665
46668
|
function validatePointOpts(curve) {
|
46666
46669
|
const opts = validateBasic(curve);
|
46667
46670
|
validateObject(opts, {
|
@@ -47458,72 +47461,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
47458
47461
|
};
|
47459
47462
|
}
|
47460
47463
|
|
47461
|
-
// ../../node_modules/.pnpm/@noble+
|
47462
|
-
var HMAC2 = class extends Hash2 {
|
47463
|
-
constructor(hash4, _key) {
|
47464
|
-
super();
|
47465
|
-
this.finished = false;
|
47466
|
-
this.destroyed = false;
|
47467
|
-
hash3(hash4);
|
47468
|
-
const key = toBytes3(_key);
|
47469
|
-
this.iHash = hash4.create();
|
47470
|
-
if (typeof this.iHash.update !== "function")
|
47471
|
-
throw new Error("Expected instance of class which extends utils.Hash");
|
47472
|
-
this.blockLen = this.iHash.blockLen;
|
47473
|
-
this.outputLen = this.iHash.outputLen;
|
47474
|
-
const blockLen = this.blockLen;
|
47475
|
-
const pad3 = new Uint8Array(blockLen);
|
47476
|
-
pad3.set(key.length > blockLen ? hash4.create().update(key).digest() : key);
|
47477
|
-
for (let i = 0; i < pad3.length; i++)
|
47478
|
-
pad3[i] ^= 54;
|
47479
|
-
this.iHash.update(pad3);
|
47480
|
-
this.oHash = hash4.create();
|
47481
|
-
for (let i = 0; i < pad3.length; i++)
|
47482
|
-
pad3[i] ^= 54 ^ 92;
|
47483
|
-
this.oHash.update(pad3);
|
47484
|
-
pad3.fill(0);
|
47485
|
-
}
|
47486
|
-
update(buf) {
|
47487
|
-
exists2(this);
|
47488
|
-
this.iHash.update(buf);
|
47489
|
-
return this;
|
47490
|
-
}
|
47491
|
-
digestInto(out) {
|
47492
|
-
exists2(this);
|
47493
|
-
bytes2(out, this.outputLen);
|
47494
|
-
this.finished = true;
|
47495
|
-
this.iHash.digestInto(out);
|
47496
|
-
this.oHash.update(out);
|
47497
|
-
this.oHash.digestInto(out);
|
47498
|
-
this.destroy();
|
47499
|
-
}
|
47500
|
-
digest() {
|
47501
|
-
const out = new Uint8Array(this.oHash.outputLen);
|
47502
|
-
this.digestInto(out);
|
47503
|
-
return out;
|
47504
|
-
}
|
47505
|
-
_cloneInto(to) {
|
47506
|
-
to || (to = Object.create(Object.getPrototypeOf(this), {}));
|
47507
|
-
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
|
47508
|
-
to = to;
|
47509
|
-
to.finished = finished;
|
47510
|
-
to.destroyed = destroyed;
|
47511
|
-
to.blockLen = blockLen;
|
47512
|
-
to.outputLen = outputLen;
|
47513
|
-
to.oHash = oHash._cloneInto(to.oHash);
|
47514
|
-
to.iHash = iHash._cloneInto(to.iHash);
|
47515
|
-
return to;
|
47516
|
-
}
|
47517
|
-
destroy() {
|
47518
|
-
this.destroyed = true;
|
47519
|
-
this.oHash.destroy();
|
47520
|
-
this.iHash.destroy();
|
47521
|
-
}
|
47522
|
-
};
|
47523
|
-
var hmac2 = (hash4, key, message) => new HMAC2(hash4, key).update(message).digest();
|
47524
|
-
hmac2.create = (hash4, key) => new HMAC2(hash4, key);
|
47525
|
-
|
47526
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.0/node_modules/@noble/curves/esm/_shortw_utils.js
|
47464
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/_shortw_utils.js
|
47527
47465
|
function getHash(hash4) {
|
47528
47466
|
return {
|
47529
47467
|
hash: hash4,
|
@@ -47536,7 +47474,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
47536
47474
|
return Object.freeze({ ...create(defHash), create });
|
47537
47475
|
}
|
47538
47476
|
|
47539
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
47477
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/secp256k1.js
|
47540
47478
|
var secp256k1P = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f");
|
47541
47479
|
var secp256k1N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
|
47542
47480
|
var _1n6 = BigInt(1);
|
@@ -50691,7 +50629,6 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50691
50629
|
var import_os = __toESM(__require("os"));
|
50692
50630
|
var import_path7 = __toESM(__require("path"));
|
50693
50631
|
var import_portfinder = __toESM(require_portfinder());
|
50694
|
-
var import_tree_kill = __toESM(require_tree_kill());
|
50695
50632
|
var getFlagValueFromArgs = (args, flag) => {
|
50696
50633
|
const flagIndex = args.indexOf(flag);
|
50697
50634
|
if (flagIndex === -1) {
|
@@ -50709,19 +50646,6 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50709
50646
|
});
|
50710
50647
|
return newArgs;
|
50711
50648
|
};
|
50712
|
-
var killNode = (params) => {
|
50713
|
-
const { child, configPath, state, killFn } = params;
|
50714
|
-
if (!state.isDead) {
|
50715
|
-
if (child.pid) {
|
50716
|
-
state.isDead = true;
|
50717
|
-
killFn(Number(child.pid));
|
50718
|
-
}
|
50719
|
-
child.stderr.removeAllListeners();
|
50720
|
-
if ((0, import_fs.existsSync)(configPath)) {
|
50721
|
-
(0, import_fs.rmSync)(configPath, { recursive: true });
|
50722
|
-
}
|
50723
|
-
}
|
50724
|
-
};
|
50725
50649
|
function getFinalStateConfigJSON({ stateConfig, chainConfig }) {
|
50726
50650
|
const defaultCoins = defaultSnapshotConfigs.stateConfig.coins.map((coin) => ({
|
50727
50651
|
...coin,
|
@@ -50828,19 +50752,45 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50828
50752
|
"--debug",
|
50829
50753
|
...remainingArgs
|
50830
50754
|
].flat(),
|
50831
|
-
{ stdio: "pipe" }
|
50755
|
+
{ stdio: "pipe", detached: true }
|
50832
50756
|
);
|
50833
50757
|
if (loggingEnabled) {
|
50834
50758
|
child.stderr.on("data", (chunk) => {
|
50835
50759
|
console.log(chunk.toString());
|
50836
50760
|
});
|
50837
50761
|
}
|
50838
|
-
const
|
50839
|
-
child
|
50840
|
-
|
50841
|
-
|
50842
|
-
|
50843
|
-
|
50762
|
+
const removeSideffects = () => {
|
50763
|
+
child.stderr.removeAllListeners();
|
50764
|
+
if ((0, import_fs.existsSync)(tempDir)) {
|
50765
|
+
(0, import_fs.rmSync)(tempDir, { recursive: true });
|
50766
|
+
}
|
50767
|
+
};
|
50768
|
+
child.on("error", removeSideffects);
|
50769
|
+
child.on("exit", removeSideffects);
|
50770
|
+
const childState = {
|
50771
|
+
isDead: false
|
50772
|
+
};
|
50773
|
+
const cleanup = () => {
|
50774
|
+
if (childState.isDead) {
|
50775
|
+
return;
|
50776
|
+
}
|
50777
|
+
childState.isDead = true;
|
50778
|
+
removeSideffects();
|
50779
|
+
if (child.pid !== void 0) {
|
50780
|
+
try {
|
50781
|
+
process.kill(-child.pid);
|
50782
|
+
} catch (e) {
|
50783
|
+
const error = e;
|
50784
|
+
if (error.code === "ESRCH") {
|
50785
|
+
console.log(
|
50786
|
+
`fuel-core node under pid ${child.pid} does not exist. The node might have been killed before cleanup was called. Exiting cleanly.`
|
50787
|
+
);
|
50788
|
+
} else {
|
50789
|
+
throw e;
|
50790
|
+
}
|
50791
|
+
}
|
50792
|
+
} else {
|
50793
|
+
console.error("No PID available for the child process, unable to kill launched node");
|
50844
50794
|
}
|
50845
50795
|
};
|
50846
50796
|
child.stderr.on("data", (chunk) => {
|
@@ -50850,11 +50800,12 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50850
50800
|
const rowWithUrl = rows.find((row) => row.indexOf(graphQLStartSubstring) !== -1);
|
50851
50801
|
const [realIp, realPort] = rowWithUrl.split(" ").at(-1).trim().split(":");
|
50852
50802
|
resolve({
|
50853
|
-
cleanup
|
50803
|
+
cleanup,
|
50854
50804
|
ip: realIp,
|
50855
50805
|
port: realPort,
|
50856
50806
|
url: `http://${realIp}:${realPort}/v1/graphql`,
|
50857
|
-
snapshotDir: snapshotDirToUse
|
50807
|
+
snapshotDir: snapshotDirToUse,
|
50808
|
+
pid: child.pid
|
50858
50809
|
});
|
50859
50810
|
}
|
50860
50811
|
if (/error/i.test(text)) {
|
@@ -50862,12 +50813,12 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50862
50813
|
reject(new FuelError(FuelError.CODES.NODE_LAUNCH_FAILED, text));
|
50863
50814
|
}
|
50864
50815
|
});
|
50865
|
-
process.on("exit",
|
50866
|
-
process.on("SIGINT",
|
50867
|
-
process.on("SIGUSR1",
|
50868
|
-
process.on("SIGUSR2",
|
50869
|
-
process.on("beforeExit",
|
50870
|
-
process.on("uncaughtException",
|
50816
|
+
process.on("exit", cleanup);
|
50817
|
+
process.on("SIGINT", cleanup);
|
50818
|
+
process.on("SIGUSR1", cleanup);
|
50819
|
+
process.on("SIGUSR2", cleanup);
|
50820
|
+
process.on("beforeExit", cleanup);
|
50821
|
+
process.on("uncaughtException", cleanup);
|
50871
50822
|
child.on("error", reject);
|
50872
50823
|
})
|
50873
50824
|
);
|