@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
package/dist/index.global.js
CHANGED
@@ -6210,9 +6210,9 @@
|
|
6210
6210
|
}
|
6211
6211
|
});
|
6212
6212
|
|
6213
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6213
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.js
|
6214
6214
|
var require_isObjectLike = __commonJS({
|
6215
|
-
"../../node_modules/.pnpm/graphql@16.
|
6215
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.js"(exports) {
|
6216
6216
|
"use strict";
|
6217
6217
|
Object.defineProperty(exports, "__esModule", {
|
6218
6218
|
value: true
|
@@ -6224,9 +6224,9 @@
|
|
6224
6224
|
}
|
6225
6225
|
});
|
6226
6226
|
|
6227
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6227
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.js
|
6228
6228
|
var require_invariant = __commonJS({
|
6229
|
-
"../../node_modules/.pnpm/graphql@16.
|
6229
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.js"(exports) {
|
6230
6230
|
"use strict";
|
6231
6231
|
Object.defineProperty(exports, "__esModule", {
|
6232
6232
|
value: true
|
@@ -6243,9 +6243,9 @@
|
|
6243
6243
|
}
|
6244
6244
|
});
|
6245
6245
|
|
6246
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6246
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.js
|
6247
6247
|
var require_location = __commonJS({
|
6248
|
-
"../../node_modules/.pnpm/graphql@16.
|
6248
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.js"(exports) {
|
6249
6249
|
"use strict";
|
6250
6250
|
Object.defineProperty(exports, "__esModule", {
|
6251
6251
|
value: true
|
@@ -6272,9 +6272,9 @@
|
|
6272
6272
|
}
|
6273
6273
|
});
|
6274
6274
|
|
6275
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6275
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.js
|
6276
6276
|
var require_printLocation = __commonJS({
|
6277
|
-
"../../node_modules/.pnpm/graphql@16.
|
6277
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.js"(exports) {
|
6278
6278
|
"use strict";
|
6279
6279
|
Object.defineProperty(exports, "__esModule", {
|
6280
6280
|
value: true
|
@@ -6330,9 +6330,9 @@
|
|
6330
6330
|
}
|
6331
6331
|
});
|
6332
6332
|
|
6333
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6333
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.js
|
6334
6334
|
var require_GraphQLError = __commonJS({
|
6335
|
-
"../../node_modules/.pnpm/graphql@16.
|
6335
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.js"(exports) {
|
6336
6336
|
"use strict";
|
6337
6337
|
Object.defineProperty(exports, "__esModule", {
|
6338
6338
|
value: true
|
@@ -6502,9 +6502,9 @@
|
|
6502
6502
|
}
|
6503
6503
|
});
|
6504
6504
|
|
6505
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6505
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.js
|
6506
6506
|
var require_syntaxError = __commonJS({
|
6507
|
-
"../../node_modules/.pnpm/graphql@16.
|
6507
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.js"(exports) {
|
6508
6508
|
"use strict";
|
6509
6509
|
Object.defineProperty(exports, "__esModule", {
|
6510
6510
|
value: true
|
@@ -6520,9 +6520,9 @@
|
|
6520
6520
|
}
|
6521
6521
|
});
|
6522
6522
|
|
6523
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6523
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.js
|
6524
6524
|
var require_ast = __commonJS({
|
6525
|
-
"../../node_modules/.pnpm/graphql@16.
|
6525
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.js"(exports) {
|
6526
6526
|
"use strict";
|
6527
6527
|
Object.defineProperty(exports, "__esModule", {
|
6528
6528
|
value: true
|
@@ -6704,9 +6704,9 @@
|
|
6704
6704
|
}
|
6705
6705
|
});
|
6706
6706
|
|
6707
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6707
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.js
|
6708
6708
|
var require_directiveLocation = __commonJS({
|
6709
|
-
"../../node_modules/.pnpm/graphql@16.
|
6709
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.js"(exports) {
|
6710
6710
|
"use strict";
|
6711
6711
|
Object.defineProperty(exports, "__esModule", {
|
6712
6712
|
value: true
|
@@ -6738,9 +6738,9 @@
|
|
6738
6738
|
}
|
6739
6739
|
});
|
6740
6740
|
|
6741
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6741
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.js
|
6742
6742
|
var require_kinds = __commonJS({
|
6743
|
-
"../../node_modules/.pnpm/graphql@16.
|
6743
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.js"(exports) {
|
6744
6744
|
"use strict";
|
6745
6745
|
Object.defineProperty(exports, "__esModule", {
|
6746
6746
|
value: true
|
@@ -6796,9 +6796,9 @@
|
|
6796
6796
|
}
|
6797
6797
|
});
|
6798
6798
|
|
6799
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6799
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.js
|
6800
6800
|
var require_characterClasses = __commonJS({
|
6801
|
-
"../../node_modules/.pnpm/graphql@16.
|
6801
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.js"(exports) {
|
6802
6802
|
"use strict";
|
6803
6803
|
Object.defineProperty(exports, "__esModule", {
|
6804
6804
|
value: true
|
@@ -6827,9 +6827,9 @@
|
|
6827
6827
|
}
|
6828
6828
|
});
|
6829
6829
|
|
6830
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6830
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.js
|
6831
6831
|
var require_blockString = __commonJS({
|
6832
|
-
"../../node_modules/.pnpm/graphql@16.
|
6832
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.js"(exports) {
|
6833
6833
|
"use strict";
|
6834
6834
|
Object.defineProperty(exports, "__esModule", {
|
6835
6835
|
value: true
|
@@ -6946,9 +6946,9 @@
|
|
6946
6946
|
}
|
6947
6947
|
});
|
6948
6948
|
|
6949
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6949
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.js
|
6950
6950
|
var require_tokenKind = __commonJS({
|
6951
|
-
"../../node_modules/.pnpm/graphql@16.
|
6951
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.js"(exports) {
|
6952
6952
|
"use strict";
|
6953
6953
|
Object.defineProperty(exports, "__esModule", {
|
6954
6954
|
value: true
|
@@ -6983,9 +6983,9 @@
|
|
6983
6983
|
}
|
6984
6984
|
});
|
6985
6985
|
|
6986
|
-
// ../../node_modules/.pnpm/graphql@16.
|
6986
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.js
|
6987
6987
|
var require_lexer = __commonJS({
|
6988
|
-
"../../node_modules/.pnpm/graphql@16.
|
6988
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.js"(exports) {
|
6989
6989
|
"use strict";
|
6990
6990
|
Object.defineProperty(exports, "__esModule", {
|
6991
6991
|
value: true
|
@@ -7590,9 +7590,9 @@
|
|
7590
7590
|
}
|
7591
7591
|
});
|
7592
7592
|
|
7593
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7593
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.js
|
7594
7594
|
var require_devAssert = __commonJS({
|
7595
|
-
"../../node_modules/.pnpm/graphql@16.
|
7595
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.js"(exports) {
|
7596
7596
|
"use strict";
|
7597
7597
|
Object.defineProperty(exports, "__esModule", {
|
7598
7598
|
value: true
|
@@ -7607,9 +7607,9 @@
|
|
7607
7607
|
}
|
7608
7608
|
});
|
7609
7609
|
|
7610
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7610
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.js
|
7611
7611
|
var require_inspect = __commonJS({
|
7612
|
-
"../../node_modules/.pnpm/graphql@16.
|
7612
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.js"(exports) {
|
7613
7613
|
"use strict";
|
7614
7614
|
Object.defineProperty(exports, "__esModule", {
|
7615
7615
|
value: true
|
@@ -7699,19 +7699,21 @@
|
|
7699
7699
|
}
|
7700
7700
|
});
|
7701
7701
|
|
7702
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7702
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.js
|
7703
7703
|
var require_instanceOf = __commonJS({
|
7704
|
-
"../../node_modules/.pnpm/graphql@16.
|
7704
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.js"(exports) {
|
7705
7705
|
"use strict";
|
7706
7706
|
Object.defineProperty(exports, "__esModule", {
|
7707
7707
|
value: true
|
7708
7708
|
});
|
7709
7709
|
exports.instanceOf = void 0;
|
7710
7710
|
var _inspect = require_inspect();
|
7711
|
+
var isProduction2 = globalThis.process && // eslint-disable-next-line no-undef
|
7712
|
+
process.env.NODE_ENV === "production";
|
7711
7713
|
var instanceOf4 = (
|
7712
7714
|
/* c8 ignore next 6 */
|
7713
7715
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
7714
|
-
|
7716
|
+
isProduction2 ? function instanceOf5(value, constructor) {
|
7715
7717
|
return value instanceof constructor;
|
7716
7718
|
} : function instanceOf5(value, constructor) {
|
7717
7719
|
if (value instanceof constructor) {
|
@@ -7747,9 +7749,9 @@ spurious results.`);
|
|
7747
7749
|
}
|
7748
7750
|
});
|
7749
7751
|
|
7750
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7752
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.js
|
7751
7753
|
var require_source = __commonJS({
|
7752
|
-
"../../node_modules/.pnpm/graphql@16.
|
7754
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.js"(exports) {
|
7753
7755
|
"use strict";
|
7754
7756
|
Object.defineProperty(exports, "__esModule", {
|
7755
7757
|
value: true
|
@@ -7791,9 +7793,9 @@ spurious results.`);
|
|
7791
7793
|
}
|
7792
7794
|
});
|
7793
7795
|
|
7794
|
-
// ../../node_modules/.pnpm/graphql@16.
|
7796
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.js
|
7795
7797
|
var require_parser = __commonJS({
|
7796
|
-
"../../node_modules/.pnpm/graphql@16.
|
7798
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.js"(exports) {
|
7797
7799
|
"use strict";
|
7798
7800
|
Object.defineProperty(exports, "__esModule", {
|
7799
7801
|
value: true
|
@@ -9100,9 +9102,9 @@ spurious results.`);
|
|
9100
9102
|
}
|
9101
9103
|
});
|
9102
9104
|
|
9103
|
-
// ../../node_modules/.pnpm/graphql@16.
|
9105
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.js
|
9104
9106
|
var require_printString = __commonJS({
|
9105
|
-
"../../node_modules/.pnpm/graphql@16.
|
9107
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.js"(exports) {
|
9106
9108
|
"use strict";
|
9107
9109
|
Object.defineProperty(exports, "__esModule", {
|
9108
9110
|
value: true
|
@@ -9285,9 +9287,9 @@ spurious results.`);
|
|
9285
9287
|
}
|
9286
9288
|
});
|
9287
9289
|
|
9288
|
-
// ../../node_modules/.pnpm/graphql@16.
|
9290
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.js
|
9289
9291
|
var require_visitor = __commonJS({
|
9290
|
-
"../../node_modules/.pnpm/graphql@16.
|
9292
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.js"(exports) {
|
9291
9293
|
"use strict";
|
9292
9294
|
Object.defineProperty(exports, "__esModule", {
|
9293
9295
|
value: true
|
@@ -9496,9 +9498,9 @@ spurious results.`);
|
|
9496
9498
|
}
|
9497
9499
|
});
|
9498
9500
|
|
9499
|
-
// ../../node_modules/.pnpm/graphql@16.
|
9501
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.js
|
9500
9502
|
var require_printer = __commonJS({
|
9501
|
-
"../../node_modules/.pnpm/graphql@16.
|
9503
|
+
"../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.js"(exports) {
|
9502
9504
|
"use strict";
|
9503
9505
|
Object.defineProperty(exports, "__esModule", {
|
9504
9506
|
value: true
|
@@ -19257,9 +19259,9 @@ spurious results.`);
|
|
19257
19259
|
}
|
19258
19260
|
});
|
19259
19261
|
|
19260
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19262
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/defaultJsonSerializer.js
|
19261
19263
|
var require_defaultJsonSerializer = __commonJS({
|
19262
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19264
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/defaultJsonSerializer.js"(exports) {
|
19263
19265
|
"use strict";
|
19264
19266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
19265
19267
|
exports.defaultJsonSerializer = void 0;
|
@@ -19270,9 +19272,9 @@ spurious results.`);
|
|
19270
19272
|
}
|
19271
19273
|
});
|
19272
19274
|
|
19273
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19275
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/createRequestBody.js
|
19274
19276
|
var require_createRequestBody = __commonJS({
|
19275
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19277
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/createRequestBody.js"(exports) {
|
19276
19278
|
"use strict";
|
19277
19279
|
var __importDefault = exports && exports.__importDefault || function(mod2) {
|
19278
19280
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
@@ -19321,9 +19323,9 @@ spurious results.`);
|
|
19321
19323
|
}
|
19322
19324
|
});
|
19323
19325
|
|
19324
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19326
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/parseArgs.js
|
19325
19327
|
var require_parseArgs = __commonJS({
|
19326
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19328
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/parseArgs.js"(exports) {
|
19327
19329
|
"use strict";
|
19328
19330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
19329
19331
|
exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
|
@@ -19385,9 +19387,9 @@ spurious results.`);
|
|
19385
19387
|
}
|
19386
19388
|
});
|
19387
19389
|
|
19388
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19390
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/types.js
|
19389
19391
|
var require_types = __commonJS({
|
19390
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19392
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/types.js"(exports) {
|
19391
19393
|
"use strict";
|
19392
19394
|
var __extends = exports && exports.__extends || function() {
|
19393
19395
|
var extendStatics = function(d, b) {
|
@@ -19445,9 +19447,9 @@ spurious results.`);
|
|
19445
19447
|
}
|
19446
19448
|
});
|
19447
19449
|
|
19448
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19450
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/graphql-ws.js
|
19449
19451
|
var require_graphql_ws = __commonJS({
|
19450
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19452
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/graphql-ws.js"(exports) {
|
19451
19453
|
"use strict";
|
19452
19454
|
var __assign2 = exports && exports.__assign || function() {
|
19453
19455
|
__assign2 = Object.assign || function(t) {
|
@@ -19817,9 +19819,9 @@ spurious results.`);
|
|
19817
19819
|
}
|
19818
19820
|
});
|
19819
19821
|
|
19820
|
-
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19822
|
+
// ../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/index.js
|
19821
19823
|
var require_dist2 = __commonJS({
|
19822
|
-
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.
|
19824
|
+
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.9.0/node_modules/graphql-request/dist/index.js"(exports) {
|
19823
19825
|
"use strict";
|
19824
19826
|
var __assign2 = exports && exports.__assign || function() {
|
19825
19827
|
__assign2 = Object.assign || function(t) {
|
@@ -28636,9 +28638,9 @@ spurious results.`);
|
|
28636
28638
|
// ../versions/dist/index.mjs
|
28637
28639
|
function getBuiltinVersions() {
|
28638
28640
|
return {
|
28639
|
-
FORC: "0.61.
|
28640
|
-
FUEL_CORE: "0.
|
28641
|
-
FUELS: "0.
|
28641
|
+
FORC: "0.61.2",
|
28642
|
+
FUEL_CORE: "0.31.0",
|
28643
|
+
FUELS: "0.92.0"
|
28642
28644
|
};
|
28643
28645
|
}
|
28644
28646
|
function parseVersion(version) {
|
@@ -33276,7 +33278,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33276
33278
|
}
|
33277
33279
|
};
|
33278
33280
|
|
33279
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
33281
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/utils.js
|
33280
33282
|
var utils_exports = {};
|
33281
33283
|
__export(utils_exports, {
|
33282
33284
|
abytes: () => abytes,
|
@@ -33301,9 +33303,9 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33301
33303
|
utf8ToBytes: () => utf8ToBytes2,
|
33302
33304
|
validateObject: () => validateObject
|
33303
33305
|
});
|
33304
|
-
var _0n2 = BigInt(0);
|
33305
|
-
var _1n2 = BigInt(1);
|
33306
|
-
var _2n2 = BigInt(2);
|
33306
|
+
var _0n2 = /* @__PURE__ */ BigInt(0);
|
33307
|
+
var _1n2 = /* @__PURE__ */ BigInt(1);
|
33308
|
+
var _2n2 = /* @__PURE__ */ BigInt(2);
|
33307
33309
|
function isBytes3(a) {
|
33308
33310
|
return a instanceof Uint8Array || a != null && typeof a === "object" && a.constructor.name === "Uint8Array";
|
33309
33311
|
}
|
@@ -33530,7 +33532,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33530
33532
|
return __assign.apply(this, arguments);
|
33531
33533
|
};
|
33532
33534
|
|
33533
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33535
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
|
33534
33536
|
function devAssert(condition, message) {
|
33535
33537
|
const booleanCondition = Boolean(condition);
|
33536
33538
|
if (!booleanCondition) {
|
@@ -33538,12 +33540,12 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33538
33540
|
}
|
33539
33541
|
}
|
33540
33542
|
|
33541
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33543
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.mjs
|
33542
33544
|
function isObjectLike(value) {
|
33543
33545
|
return typeof value == "object" && value !== null;
|
33544
33546
|
}
|
33545
33547
|
|
33546
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33548
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.mjs
|
33547
33549
|
function invariant(condition, message) {
|
33548
33550
|
const booleanCondition = Boolean(condition);
|
33549
33551
|
if (!booleanCondition) {
|
@@ -33553,7 +33555,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33553
33555
|
}
|
33554
33556
|
}
|
33555
33557
|
|
33556
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33558
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.mjs
|
33557
33559
|
var LineRegExp = /\r\n|[\n\r]/g;
|
33558
33560
|
function getLocation(source, position) {
|
33559
33561
|
let lastLineStart = 0;
|
@@ -33572,7 +33574,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33572
33574
|
};
|
33573
33575
|
}
|
33574
33576
|
|
33575
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33577
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.mjs
|
33576
33578
|
function printLocation(location) {
|
33577
33579
|
return printSourceLocation(
|
33578
33580
|
location.source,
|
@@ -33619,7 +33621,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33619
33621
|
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
|
33620
33622
|
}
|
33621
33623
|
|
33622
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33624
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.mjs
|
33623
33625
|
function toNormalizedOptions(args) {
|
33624
33626
|
const firstArg = args[0];
|
33625
33627
|
if (firstArg == null || "kind" in firstArg || "length" in firstArg) {
|
@@ -33768,7 +33770,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33768
33770
|
return array === void 0 || array.length === 0 ? void 0 : array;
|
33769
33771
|
}
|
33770
33772
|
|
33771
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33773
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.mjs
|
33772
33774
|
function syntaxError(source, position, description) {
|
33773
33775
|
return new GraphQLError(`Syntax Error: ${description}`, {
|
33774
33776
|
source,
|
@@ -33776,7 +33778,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33776
33778
|
});
|
33777
33779
|
}
|
33778
33780
|
|
33779
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33781
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.mjs
|
33780
33782
|
var Location = class {
|
33781
33783
|
/**
|
33782
33784
|
* The character offset at which this Node begins.
|
@@ -33946,7 +33948,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33946
33948
|
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
33947
33949
|
})(OperationTypeNode || (OperationTypeNode = {}));
|
33948
33950
|
|
33949
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33951
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.mjs
|
33950
33952
|
var DirectiveLocation;
|
33951
33953
|
(function(DirectiveLocation2) {
|
33952
33954
|
DirectiveLocation2["QUERY"] = "QUERY";
|
@@ -33970,7 +33972,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
33970
33972
|
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
33971
33973
|
})(DirectiveLocation || (DirectiveLocation = {}));
|
33972
33974
|
|
33973
|
-
// ../../node_modules/.pnpm/graphql@16.
|
33975
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.mjs
|
33974
33976
|
var Kind;
|
33975
33977
|
(function(Kind2) {
|
33976
33978
|
Kind2["NAME"] = "Name";
|
@@ -34018,7 +34020,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
34018
34020
|
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
34019
34021
|
})(Kind || (Kind = {}));
|
34020
34022
|
|
34021
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34023
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.mjs
|
34022
34024
|
function isWhiteSpace(code) {
|
34023
34025
|
return code === 9 || code === 32;
|
34024
34026
|
}
|
@@ -34036,7 +34038,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
34036
34038
|
return isLetter(code) || isDigit(code) || code === 95;
|
34037
34039
|
}
|
34038
34040
|
|
34039
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34041
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.mjs
|
34040
34042
|
function dedentBlockStringLines(lines) {
|
34041
34043
|
var _firstNonEmptyLine2;
|
34042
34044
|
let commonIndent = Number.MAX_SAFE_INTEGER;
|
@@ -34090,7 +34092,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
34090
34092
|
return '"""' + result + '"""';
|
34091
34093
|
}
|
34092
34094
|
|
34093
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34095
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.mjs
|
34094
34096
|
var TokenKind;
|
34095
34097
|
(function(TokenKind2) {
|
34096
34098
|
TokenKind2["SOF"] = "<SOF>";
|
@@ -34117,7 +34119,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
34117
34119
|
TokenKind2["COMMENT"] = "Comment";
|
34118
34120
|
})(TokenKind || (TokenKind = {}));
|
34119
34121
|
|
34120
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34122
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.mjs
|
34121
34123
|
var Lexer = class {
|
34122
34124
|
/**
|
34123
34125
|
* The previously focused non-ignored token.
|
@@ -34618,7 +34620,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
34618
34620
|
);
|
34619
34621
|
}
|
34620
34622
|
|
34621
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34623
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.mjs
|
34622
34624
|
var MAX_ARRAY_LENGTH = 10;
|
34623
34625
|
var MAX_RECURSIVE_DEPTH = 2;
|
34624
34626
|
function inspect(value) {
|
@@ -34701,11 +34703,13 @@ If you are attempting to transform a hex value, please make sure it is being pas
|
|
34701
34703
|
return tag;
|
34702
34704
|
}
|
34703
34705
|
|
34704
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34706
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.mjs
|
34707
|
+
var isProduction = globalThis.process && // eslint-disable-next-line no-undef
|
34708
|
+
process.env.NODE_ENV === "production";
|
34705
34709
|
var instanceOf = (
|
34706
34710
|
/* c8 ignore next 6 */
|
34707
34711
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
34708
|
-
|
34712
|
+
isProduction ? function instanceOf2(value, constructor) {
|
34709
34713
|
return value instanceof constructor;
|
34710
34714
|
} : function instanceOf3(value, constructor) {
|
34711
34715
|
if (value instanceof constructor) {
|
@@ -34738,7 +34742,7 @@ spurious results.`);
|
|
34738
34742
|
}
|
34739
34743
|
);
|
34740
34744
|
|
34741
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34745
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.mjs
|
34742
34746
|
var Source = class {
|
34743
34747
|
constructor(body, name = "GraphQL request", locationOffset = {
|
34744
34748
|
line: 1,
|
@@ -34765,7 +34769,7 @@ spurious results.`);
|
|
34765
34769
|
return instanceOf(source, Source);
|
34766
34770
|
}
|
34767
34771
|
|
34768
|
-
// ../../node_modules/.pnpm/graphql@16.
|
34772
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.mjs
|
34769
34773
|
function parse(source, options) {
|
34770
34774
|
const parser = new Parser(source, options);
|
34771
34775
|
return parser.parseDocument();
|
@@ -36014,7 +36018,7 @@ spurious results.`);
|
|
36014
36018
|
return isPunctuatorTokenKind(kind) ? `"${kind}"` : kind;
|
36015
36019
|
}
|
36016
36020
|
|
36017
|
-
// ../../node_modules/.pnpm/graphql@16.
|
36021
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.mjs
|
36018
36022
|
function printString(str) {
|
36019
36023
|
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
36020
36024
|
}
|
@@ -36190,7 +36194,7 @@ spurious results.`);
|
|
36190
36194
|
"\\u009F"
|
36191
36195
|
];
|
36192
36196
|
|
36193
|
-
// ../../node_modules/.pnpm/graphql@16.
|
36197
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.mjs
|
36194
36198
|
var BREAK = Object.freeze({});
|
36195
36199
|
function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
|
36196
36200
|
const enterLeaveMap = /* @__PURE__ */ new Map();
|
@@ -36322,7 +36326,7 @@ spurious results.`);
|
|
36322
36326
|
};
|
36323
36327
|
}
|
36324
36328
|
|
36325
|
-
// ../../node_modules/.pnpm/graphql@16.
|
36329
|
+
// ../../node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.mjs
|
36326
36330
|
function print(ast) {
|
36327
36331
|
return visit(ast, printDocASTReducer);
|
36328
36332
|
}
|
@@ -36564,7 +36568,7 @@ spurious results.`);
|
|
36564
36568
|
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
36565
36569
|
}
|
36566
36570
|
|
36567
|
-
// ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.
|
36571
|
+
// ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.9.0/node_modules/graphql-tag/lib/index.js
|
36568
36572
|
var docCache = /* @__PURE__ */ new Map();
|
36569
36573
|
var fragmentSourceMap = /* @__PURE__ */ new Map();
|
36570
36574
|
var printFragmentWarnings = true;
|
@@ -37351,6 +37355,9 @@ ${TransactionFragmentDoc}`;
|
|
37351
37355
|
var GetBlocksDocument = lib_default2`
|
37352
37356
|
query getBlocks($after: String, $before: String, $first: Int, $last: Int) {
|
37353
37357
|
blocks(after: $after, before: $before, first: $first, last: $last) {
|
37358
|
+
pageInfo {
|
37359
|
+
...pageInfoFragment
|
37360
|
+
}
|
37354
37361
|
edges {
|
37355
37362
|
node {
|
37356
37363
|
...blockFragment
|
@@ -37358,7 +37365,8 @@ ${TransactionFragmentDoc}`;
|
|
37358
37365
|
}
|
37359
37366
|
}
|
37360
37367
|
}
|
37361
|
-
${
|
37368
|
+
${PageInfoFragmentDoc}
|
37369
|
+
${BlockFragmentDoc}`;
|
37362
37370
|
var GetCoinDocument = lib_default2`
|
37363
37371
|
query getCoin($coinId: UtxoId!) {
|
37364
37372
|
coin(utxoId: $coinId) {
|
@@ -37375,6 +37383,9 @@ ${TransactionFragmentDoc}`;
|
|
37375
37383
|
first: $first
|
37376
37384
|
last: $last
|
37377
37385
|
) {
|
37386
|
+
pageInfo {
|
37387
|
+
...pageInfoFragment
|
37388
|
+
}
|
37378
37389
|
edges {
|
37379
37390
|
node {
|
37380
37391
|
...coinFragment
|
@@ -37382,7 +37393,8 @@ ${TransactionFragmentDoc}`;
|
|
37382
37393
|
}
|
37383
37394
|
}
|
37384
37395
|
}
|
37385
|
-
${
|
37396
|
+
${PageInfoFragmentDoc}
|
37397
|
+
${CoinFragmentDoc}`;
|
37386
37398
|
var GetCoinsToSpendDocument = lib_default2`
|
37387
37399
|
query getCoinsToSpend($owner: Address!, $queryPerAsset: [SpendQueryElementInput!]!, $excludedIds: ExcludeInput) {
|
37388
37400
|
coinsToSpend(
|
@@ -37441,6 +37453,9 @@ ${MessageCoinFragmentDoc}`;
|
|
37441
37453
|
first: $first
|
37442
37454
|
last: $last
|
37443
37455
|
) {
|
37456
|
+
pageInfo {
|
37457
|
+
...pageInfoFragment
|
37458
|
+
}
|
37444
37459
|
edges {
|
37445
37460
|
node {
|
37446
37461
|
...balanceFragment
|
@@ -37448,7 +37463,8 @@ ${MessageCoinFragmentDoc}`;
|
|
37448
37463
|
}
|
37449
37464
|
}
|
37450
37465
|
}
|
37451
|
-
${
|
37466
|
+
${PageInfoFragmentDoc}
|
37467
|
+
${BalanceFragmentDoc}`;
|
37452
37468
|
var GetMessagesDocument = lib_default2`
|
37453
37469
|
query getMessages($owner: Address!, $after: String, $before: String, $first: Int, $last: Int) {
|
37454
37470
|
messages(
|
@@ -37458,6 +37474,9 @@ ${MessageCoinFragmentDoc}`;
|
|
37458
37474
|
first: $first
|
37459
37475
|
last: $last
|
37460
37476
|
) {
|
37477
|
+
pageInfo {
|
37478
|
+
...pageInfoFragment
|
37479
|
+
}
|
37461
37480
|
edges {
|
37462
37481
|
node {
|
37463
37482
|
...messageFragment
|
@@ -37465,7 +37484,8 @@ ${MessageCoinFragmentDoc}`;
|
|
37465
37484
|
}
|
37466
37485
|
}
|
37467
37486
|
}
|
37468
|
-
${
|
37487
|
+
${PageInfoFragmentDoc}
|
37488
|
+
${MessageFragmentDoc}`;
|
37469
37489
|
var GetMessageProofDocument = lib_default2`
|
37470
37490
|
query getMessageProof($transactionId: TransactionId!, $nonce: Nonce!, $commitBlockId: BlockId, $commitBlockHeight: U32) {
|
37471
37491
|
messageProof(
|
@@ -40275,12 +40295,18 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
|
|
40275
40295
|
await this.fetch();
|
40276
40296
|
}
|
40277
40297
|
/**
|
40278
|
-
*
|
40298
|
+
* Assembles the result of a transaction by retrieving the transaction summary,
|
40299
|
+
* decoding logs (if available), and handling transaction failure.
|
40279
40300
|
*
|
40280
|
-
*
|
40301
|
+
* This method can be used to obtain the result of a transaction that has just
|
40302
|
+
* been submitted or one that has already been processed.
|
40303
|
+
*
|
40304
|
+
* @template TTransactionType - The type of the transaction.
|
40305
|
+
* @param contractsAbiMap - The map of contract ABIs.
|
40306
|
+
* @returns - The assembled transaction result.
|
40307
|
+
* @throws If the transaction status is a failure.
|
40281
40308
|
*/
|
40282
|
-
async
|
40283
|
-
await this.waitForStatusChange();
|
40309
|
+
async assembleResult(contractsAbiMap) {
|
40284
40310
|
const transactionSummary = await this.getTransactionSummary(contractsAbiMap);
|
40285
40311
|
const transactionResult = {
|
40286
40312
|
gqlTransaction: this.gqlTransaction,
|
@@ -40306,6 +40332,15 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
|
|
40306
40332
|
}
|
40307
40333
|
return transactionResult;
|
40308
40334
|
}
|
40335
|
+
/**
|
40336
|
+
* Waits for transaction to complete and returns the result.
|
40337
|
+
*
|
40338
|
+
* @returns The completed transaction result
|
40339
|
+
*/
|
40340
|
+
async waitForResult(contractsAbiMap) {
|
40341
|
+
await this.waitForStatusChange();
|
40342
|
+
return this.assembleResult(contractsAbiMap);
|
40343
|
+
}
|
40309
40344
|
/**
|
40310
40345
|
* Waits for transaction to complete and returns the result.
|
40311
40346
|
*
|
@@ -40368,6 +40403,8 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
|
|
40368
40403
|
|
40369
40404
|
// src/providers/provider.ts
|
40370
40405
|
var MAX_RETRIES = 10;
|
40406
|
+
var RESOURCES_PAGE_SIZE_LIMIT = 512;
|
40407
|
+
var BLOCKS_PAGE_SIZE_LIMIT = 5;
|
40371
40408
|
var processGqlChain = (chain) => {
|
40372
40409
|
const { name, daHeight, consensusParameters, latestBlock } = chain;
|
40373
40410
|
const {
|
@@ -41011,7 +41048,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41011
41048
|
/**
|
41012
41049
|
* Returns a transaction cost to enable user
|
41013
41050
|
* to set gasLimit and also reserve balance amounts
|
41014
|
-
* on the
|
41051
|
+
* on the transaction.
|
41015
41052
|
*
|
41016
41053
|
* @param transactionRequestLike - The transaction request object.
|
41017
41054
|
* @param transactionCostParams - The transaction cost parameters (optional).
|
@@ -41122,20 +41159,27 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41122
41159
|
*/
|
41123
41160
|
async getCoins(owner, assetId, paginationArgs) {
|
41124
41161
|
const ownerAddress = Address.fromAddressOrString(owner);
|
41125
|
-
const
|
41126
|
-
|
41127
|
-
|
41162
|
+
const {
|
41163
|
+
coins: { edges, pageInfo }
|
41164
|
+
} = await this.operations.getCoins({
|
41165
|
+
...this.validatePaginationArgs({
|
41166
|
+
paginationLimit: RESOURCES_PAGE_SIZE_LIMIT,
|
41167
|
+
inputArgs: paginationArgs
|
41168
|
+
}),
|
41128
41169
|
filter: { owner: ownerAddress.toB256(), assetId: assetId && hexlify(assetId) }
|
41129
41170
|
});
|
41130
|
-
const coins =
|
41131
|
-
|
41132
|
-
|
41133
|
-
|
41134
|
-
|
41135
|
-
|
41136
|
-
|
41137
|
-
txCreatedIdx: bn(coin.txCreatedIdx)
|
41171
|
+
const coins = edges.map(({ node }) => ({
|
41172
|
+
id: node.utxoId,
|
41173
|
+
assetId: node.assetId,
|
41174
|
+
amount: bn(node.amount),
|
41175
|
+
owner: Address.fromAddressOrString(node.owner),
|
41176
|
+
blockCreated: bn(node.blockCreated),
|
41177
|
+
txCreatedIdx: bn(node.txCreatedIdx)
|
41138
41178
|
}));
|
41179
|
+
return {
|
41180
|
+
coins,
|
41181
|
+
pageInfo
|
41182
|
+
};
|
41139
41183
|
}
|
41140
41184
|
/**
|
41141
41185
|
* Returns resources for the given owner satisfying the spend query.
|
@@ -41228,14 +41272,21 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41228
41272
|
* @returns A promise that resolves to the blocks.
|
41229
41273
|
*/
|
41230
41274
|
async getBlocks(params) {
|
41231
|
-
const {
|
41232
|
-
|
41275
|
+
const {
|
41276
|
+
blocks: { edges, pageInfo }
|
41277
|
+
} = await this.operations.getBlocks({
|
41278
|
+
...this.validatePaginationArgs({
|
41279
|
+
paginationLimit: BLOCKS_PAGE_SIZE_LIMIT,
|
41280
|
+
inputArgs: params
|
41281
|
+
})
|
41282
|
+
});
|
41283
|
+
const blocks = edges.map(({ node: block2 }) => ({
|
41233
41284
|
id: block2.id,
|
41234
41285
|
height: bn(block2.height),
|
41235
41286
|
time: block2.header.time,
|
41236
41287
|
transactionIds: block2.transactions.map((tx) => tx.id)
|
41237
41288
|
}));
|
41238
|
-
return blocks;
|
41289
|
+
return { blocks, pageInfo };
|
41239
41290
|
}
|
41240
41291
|
/**
|
41241
41292
|
* Returns block matching the given ID or type, including transaction data.
|
@@ -41345,17 +41396,22 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41345
41396
|
* @param paginationArgs - Pagination arguments (optional).
|
41346
41397
|
* @returns A promise that resolves to the balances.
|
41347
41398
|
*/
|
41348
|
-
async getBalances(owner
|
41349
|
-
const
|
41350
|
-
|
41351
|
-
|
41399
|
+
async getBalances(owner) {
|
41400
|
+
const {
|
41401
|
+
balances: { edges }
|
41402
|
+
} = await this.operations.getBalances({
|
41403
|
+
/**
|
41404
|
+
* The query parameters for this method were designed to support pagination,
|
41405
|
+
* but the current Fuel-Core implementation does not support pagination yet.
|
41406
|
+
*/
|
41407
|
+
first: 1e4,
|
41352
41408
|
filter: { owner: Address.fromAddressOrString(owner).toB256() }
|
41353
41409
|
});
|
41354
|
-
const balances =
|
41355
|
-
|
41356
|
-
|
41357
|
-
amount: bn(balance.amount)
|
41410
|
+
const balances = edges.map(({ node }) => ({
|
41411
|
+
assetId: node.assetId,
|
41412
|
+
amount: bn(node.amount)
|
41358
41413
|
}));
|
41414
|
+
return { balances };
|
41359
41415
|
}
|
41360
41416
|
/**
|
41361
41417
|
* Returns message for the given address.
|
@@ -41365,27 +41421,34 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41365
41421
|
* @returns A promise that resolves to the messages.
|
41366
41422
|
*/
|
41367
41423
|
async getMessages(address, paginationArgs) {
|
41368
|
-
const
|
41369
|
-
|
41370
|
-
|
41424
|
+
const {
|
41425
|
+
messages: { edges, pageInfo }
|
41426
|
+
} = await this.operations.getMessages({
|
41427
|
+
...this.validatePaginationArgs({
|
41428
|
+
inputArgs: paginationArgs,
|
41429
|
+
paginationLimit: RESOURCES_PAGE_SIZE_LIMIT
|
41430
|
+
}),
|
41371
41431
|
owner: Address.fromAddressOrString(address).toB256()
|
41372
41432
|
});
|
41373
|
-
const messages =
|
41374
|
-
return messages.map((message) => ({
|
41433
|
+
const messages = edges.map(({ node }) => ({
|
41375
41434
|
messageId: InputMessageCoder.getMessageId({
|
41376
|
-
sender:
|
41377
|
-
recipient:
|
41378
|
-
nonce:
|
41379
|
-
amount: bn(
|
41380
|
-
data:
|
41435
|
+
sender: node.sender,
|
41436
|
+
recipient: node.recipient,
|
41437
|
+
nonce: node.nonce,
|
41438
|
+
amount: bn(node.amount),
|
41439
|
+
data: node.data
|
41381
41440
|
}),
|
41382
|
-
sender: Address.fromAddressOrString(
|
41383
|
-
recipient: Address.fromAddressOrString(
|
41384
|
-
nonce:
|
41385
|
-
amount: bn(
|
41386
|
-
data: InputMessageCoder.decodeData(
|
41387
|
-
daHeight: bn(
|
41441
|
+
sender: Address.fromAddressOrString(node.sender),
|
41442
|
+
recipient: Address.fromAddressOrString(node.recipient),
|
41443
|
+
nonce: node.nonce,
|
41444
|
+
amount: bn(node.amount),
|
41445
|
+
data: InputMessageCoder.decodeData(node.data),
|
41446
|
+
daHeight: bn(node.daHeight)
|
41388
41447
|
}));
|
41448
|
+
return {
|
41449
|
+
messages,
|
41450
|
+
pageInfo
|
41451
|
+
};
|
41389
41452
|
}
|
41390
41453
|
/**
|
41391
41454
|
* Returns Message Proof for given transaction id and the message id from MessageOut receipt.
|
@@ -41564,6 +41627,41 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41564
41627
|
}
|
41565
41628
|
return relayedTransactionStatus;
|
41566
41629
|
}
|
41630
|
+
/**
|
41631
|
+
* @hidden
|
41632
|
+
*/
|
41633
|
+
validatePaginationArgs(params) {
|
41634
|
+
const { paginationLimit, inputArgs = {} } = params;
|
41635
|
+
const { first, last, after, before } = inputArgs;
|
41636
|
+
if (after && before) {
|
41637
|
+
throw new FuelError(
|
41638
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
41639
|
+
'Pagination arguments "after" and "before" cannot be used together'
|
41640
|
+
);
|
41641
|
+
}
|
41642
|
+
if ((first || 0) > paginationLimit || (last || 0) > paginationLimit) {
|
41643
|
+
throw new FuelError(
|
41644
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
41645
|
+
`Pagination limit for this query cannot exceed ${paginationLimit} items`
|
41646
|
+
);
|
41647
|
+
}
|
41648
|
+
if (first && before) {
|
41649
|
+
throw new FuelError(
|
41650
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
41651
|
+
'The use of pagination argument "first" with "before" is not supported'
|
41652
|
+
);
|
41653
|
+
}
|
41654
|
+
if (last && after) {
|
41655
|
+
throw new FuelError(
|
41656
|
+
ErrorCode.INVALID_INPUT_PARAMETERS,
|
41657
|
+
'The use of pagination argument "last" with "after" is not supported'
|
41658
|
+
);
|
41659
|
+
}
|
41660
|
+
if (!first && !last) {
|
41661
|
+
inputArgs.first = paginationLimit;
|
41662
|
+
}
|
41663
|
+
return inputArgs;
|
41664
|
+
}
|
41567
41665
|
/**
|
41568
41666
|
* @hidden
|
41569
41667
|
*/
|
@@ -41957,52 +42055,16 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
41957
42055
|
* @param assetId - The asset ID of the coins to retrieve (optional).
|
41958
42056
|
* @returns A promise that resolves to an array of Coins.
|
41959
42057
|
*/
|
41960
|
-
async getCoins(assetId) {
|
41961
|
-
|
41962
|
-
const pageSize = 9999;
|
41963
|
-
let cursor;
|
41964
|
-
for (; ; ) {
|
41965
|
-
const pageCoins = await this.provider.getCoins(this.address, assetId, {
|
41966
|
-
first: pageSize,
|
41967
|
-
after: cursor
|
41968
|
-
});
|
41969
|
-
coins.push(...pageCoins);
|
41970
|
-
const hasNextPage = pageCoins.length >= pageSize;
|
41971
|
-
if (!hasNextPage) {
|
41972
|
-
break;
|
41973
|
-
}
|
41974
|
-
throw new FuelError(
|
41975
|
-
ErrorCode.NOT_SUPPORTED,
|
41976
|
-
`Wallets containing more than ${pageSize} coins exceed the current supported limit.`
|
41977
|
-
);
|
41978
|
-
}
|
41979
|
-
return coins;
|
42058
|
+
async getCoins(assetId, paginationArgs) {
|
42059
|
+
return this.provider.getCoins(this.address, assetId, paginationArgs);
|
41980
42060
|
}
|
41981
42061
|
/**
|
41982
42062
|
* Retrieves messages owned by the account.
|
41983
42063
|
*
|
41984
42064
|
* @returns A promise that resolves to an array of Messages.
|
41985
42065
|
*/
|
41986
|
-
async getMessages() {
|
41987
|
-
|
41988
|
-
const pageSize = 9999;
|
41989
|
-
let cursor;
|
41990
|
-
for (; ; ) {
|
41991
|
-
const pageMessages = await this.provider.getMessages(this.address, {
|
41992
|
-
first: pageSize,
|
41993
|
-
after: cursor
|
41994
|
-
});
|
41995
|
-
messages.push(...pageMessages);
|
41996
|
-
const hasNextPage = pageMessages.length >= pageSize;
|
41997
|
-
if (!hasNextPage) {
|
41998
|
-
break;
|
41999
|
-
}
|
42000
|
-
throw new FuelError(
|
42001
|
-
ErrorCode.NOT_SUPPORTED,
|
42002
|
-
`Wallets containing more than ${pageSize} messages exceed the current supported limit.`
|
42003
|
-
);
|
42004
|
-
}
|
42005
|
-
return messages;
|
42066
|
+
async getMessages(paginationArgs) {
|
42067
|
+
return this.provider.getMessages(this.address, paginationArgs);
|
42006
42068
|
}
|
42007
42069
|
/**
|
42008
42070
|
* Retrieves the balance of the account for the given asset.
|
@@ -42021,25 +42083,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
42021
42083
|
* @returns A promise that resolves to an array of Coins and their quantities.
|
42022
42084
|
*/
|
42023
42085
|
async getBalances() {
|
42024
|
-
|
42025
|
-
const pageSize = 9999;
|
42026
|
-
let cursor;
|
42027
|
-
for (; ; ) {
|
42028
|
-
const pageBalances = await this.provider.getBalances(this.address, {
|
42029
|
-
first: pageSize,
|
42030
|
-
after: cursor
|
42031
|
-
});
|
42032
|
-
balances.push(...pageBalances);
|
42033
|
-
const hasNextPage = pageBalances.length >= pageSize;
|
42034
|
-
if (!hasNextPage) {
|
42035
|
-
break;
|
42036
|
-
}
|
42037
|
-
throw new FuelError(
|
42038
|
-
ErrorCode.NOT_SUPPORTED,
|
42039
|
-
`Wallets containing more than ${pageSize} balances exceed the current supported limit.`
|
42040
|
-
);
|
42041
|
-
}
|
42042
|
-
return balances;
|
42086
|
+
return this.provider.getBalances(this.address);
|
42043
42087
|
}
|
42044
42088
|
/**
|
42045
42089
|
* Funds a transaction request by adding the necessary resources.
|
@@ -42762,7 +42806,72 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
42762
42806
|
};
|
42763
42807
|
var sha2563 = /* @__PURE__ */ wrapConstructor2(() => new SHA2562());
|
42764
42808
|
|
42765
|
-
// ../../node_modules/.pnpm/@noble+
|
42809
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/hmac.js
|
42810
|
+
var HMAC2 = class extends Hash2 {
|
42811
|
+
constructor(hash4, _key) {
|
42812
|
+
super();
|
42813
|
+
this.finished = false;
|
42814
|
+
this.destroyed = false;
|
42815
|
+
hash3(hash4);
|
42816
|
+
const key = toBytes3(_key);
|
42817
|
+
this.iHash = hash4.create();
|
42818
|
+
if (typeof this.iHash.update !== "function")
|
42819
|
+
throw new Error("Expected instance of class which extends utils.Hash");
|
42820
|
+
this.blockLen = this.iHash.blockLen;
|
42821
|
+
this.outputLen = this.iHash.outputLen;
|
42822
|
+
const blockLen = this.blockLen;
|
42823
|
+
const pad3 = new Uint8Array(blockLen);
|
42824
|
+
pad3.set(key.length > blockLen ? hash4.create().update(key).digest() : key);
|
42825
|
+
for (let i = 0; i < pad3.length; i++)
|
42826
|
+
pad3[i] ^= 54;
|
42827
|
+
this.iHash.update(pad3);
|
42828
|
+
this.oHash = hash4.create();
|
42829
|
+
for (let i = 0; i < pad3.length; i++)
|
42830
|
+
pad3[i] ^= 54 ^ 92;
|
42831
|
+
this.oHash.update(pad3);
|
42832
|
+
pad3.fill(0);
|
42833
|
+
}
|
42834
|
+
update(buf) {
|
42835
|
+
exists2(this);
|
42836
|
+
this.iHash.update(buf);
|
42837
|
+
return this;
|
42838
|
+
}
|
42839
|
+
digestInto(out) {
|
42840
|
+
exists2(this);
|
42841
|
+
bytes2(out, this.outputLen);
|
42842
|
+
this.finished = true;
|
42843
|
+
this.iHash.digestInto(out);
|
42844
|
+
this.oHash.update(out);
|
42845
|
+
this.oHash.digestInto(out);
|
42846
|
+
this.destroy();
|
42847
|
+
}
|
42848
|
+
digest() {
|
42849
|
+
const out = new Uint8Array(this.oHash.outputLen);
|
42850
|
+
this.digestInto(out);
|
42851
|
+
return out;
|
42852
|
+
}
|
42853
|
+
_cloneInto(to) {
|
42854
|
+
to || (to = Object.create(Object.getPrototypeOf(this), {}));
|
42855
|
+
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
|
42856
|
+
to = to;
|
42857
|
+
to.finished = finished;
|
42858
|
+
to.destroyed = destroyed;
|
42859
|
+
to.blockLen = blockLen;
|
42860
|
+
to.outputLen = outputLen;
|
42861
|
+
to.oHash = oHash._cloneInto(to.oHash);
|
42862
|
+
to.iHash = iHash._cloneInto(to.iHash);
|
42863
|
+
return to;
|
42864
|
+
}
|
42865
|
+
destroy() {
|
42866
|
+
this.destroyed = true;
|
42867
|
+
this.oHash.destroy();
|
42868
|
+
this.iHash.destroy();
|
42869
|
+
}
|
42870
|
+
};
|
42871
|
+
var hmac2 = (hash4, key, message) => new HMAC2(hash4, key).update(message).digest();
|
42872
|
+
hmac2.create = (hash4, key) => new HMAC2(hash4, key);
|
42873
|
+
|
42874
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/modular.js
|
42766
42875
|
var _0n3 = BigInt(0);
|
42767
42876
|
var _1n3 = BigInt(1);
|
42768
42877
|
var _2n3 = BigInt(2);
|
@@ -43028,7 +43137,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
43028
43137
|
return isLE3 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
|
43029
43138
|
}
|
43030
43139
|
|
43031
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
43140
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/curve.js
|
43032
43141
|
var _0n4 = BigInt(0);
|
43033
43142
|
var _1n4 = BigInt(1);
|
43034
43143
|
function wNAF(c, bits) {
|
@@ -43146,7 +43255,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
43146
43255
|
});
|
43147
43256
|
}
|
43148
43257
|
|
43149
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
43258
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/abstract/weierstrass.js
|
43150
43259
|
function validatePointOpts(curve) {
|
43151
43260
|
const opts = validateBasic(curve);
|
43152
43261
|
validateObject(opts, {
|
@@ -43943,72 +44052,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
43943
44052
|
};
|
43944
44053
|
}
|
43945
44054
|
|
43946
|
-
// ../../node_modules/.pnpm/@noble+
|
43947
|
-
var HMAC2 = class extends Hash2 {
|
43948
|
-
constructor(hash4, _key) {
|
43949
|
-
super();
|
43950
|
-
this.finished = false;
|
43951
|
-
this.destroyed = false;
|
43952
|
-
hash3(hash4);
|
43953
|
-
const key = toBytes3(_key);
|
43954
|
-
this.iHash = hash4.create();
|
43955
|
-
if (typeof this.iHash.update !== "function")
|
43956
|
-
throw new Error("Expected instance of class which extends utils.Hash");
|
43957
|
-
this.blockLen = this.iHash.blockLen;
|
43958
|
-
this.outputLen = this.iHash.outputLen;
|
43959
|
-
const blockLen = this.blockLen;
|
43960
|
-
const pad3 = new Uint8Array(blockLen);
|
43961
|
-
pad3.set(key.length > blockLen ? hash4.create().update(key).digest() : key);
|
43962
|
-
for (let i = 0; i < pad3.length; i++)
|
43963
|
-
pad3[i] ^= 54;
|
43964
|
-
this.iHash.update(pad3);
|
43965
|
-
this.oHash = hash4.create();
|
43966
|
-
for (let i = 0; i < pad3.length; i++)
|
43967
|
-
pad3[i] ^= 54 ^ 92;
|
43968
|
-
this.oHash.update(pad3);
|
43969
|
-
pad3.fill(0);
|
43970
|
-
}
|
43971
|
-
update(buf) {
|
43972
|
-
exists2(this);
|
43973
|
-
this.iHash.update(buf);
|
43974
|
-
return this;
|
43975
|
-
}
|
43976
|
-
digestInto(out) {
|
43977
|
-
exists2(this);
|
43978
|
-
bytes2(out, this.outputLen);
|
43979
|
-
this.finished = true;
|
43980
|
-
this.iHash.digestInto(out);
|
43981
|
-
this.oHash.update(out);
|
43982
|
-
this.oHash.digestInto(out);
|
43983
|
-
this.destroy();
|
43984
|
-
}
|
43985
|
-
digest() {
|
43986
|
-
const out = new Uint8Array(this.oHash.outputLen);
|
43987
|
-
this.digestInto(out);
|
43988
|
-
return out;
|
43989
|
-
}
|
43990
|
-
_cloneInto(to) {
|
43991
|
-
to || (to = Object.create(Object.getPrototypeOf(this), {}));
|
43992
|
-
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
|
43993
|
-
to = to;
|
43994
|
-
to.finished = finished;
|
43995
|
-
to.destroyed = destroyed;
|
43996
|
-
to.blockLen = blockLen;
|
43997
|
-
to.outputLen = outputLen;
|
43998
|
-
to.oHash = oHash._cloneInto(to.oHash);
|
43999
|
-
to.iHash = iHash._cloneInto(to.iHash);
|
44000
|
-
return to;
|
44001
|
-
}
|
44002
|
-
destroy() {
|
44003
|
-
this.destroyed = true;
|
44004
|
-
this.oHash.destroy();
|
44005
|
-
this.iHash.destroy();
|
44006
|
-
}
|
44007
|
-
};
|
44008
|
-
var hmac2 = (hash4, key, message) => new HMAC2(hash4, key).update(message).digest();
|
44009
|
-
hmac2.create = (hash4, key) => new HMAC2(hash4, key);
|
44010
|
-
|
44011
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.0/node_modules/@noble/curves/esm/_shortw_utils.js
|
44055
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/_shortw_utils.js
|
44012
44056
|
function getHash(hash4) {
|
44013
44057
|
return {
|
44014
44058
|
hash: hash4,
|
@@ -44021,7 +44065,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
44021
44065
|
return Object.freeze({ ...create(defHash), create });
|
44022
44066
|
}
|
44023
44067
|
|
44024
|
-
// ../../node_modules/.pnpm/@noble+curves@1.4.
|
44068
|
+
// ../../node_modules/.pnpm/@noble+curves@1.4.2/node_modules/@noble/curves/esm/secp256k1.js
|
44025
44069
|
var secp256k1P = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f");
|
44026
44070
|
var secp256k1N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
|
44027
44071
|
var _1n6 = BigInt(1);
|
@@ -48002,7 +48046,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
48002
48046
|
throw new Error("Method not implemented.");
|
48003
48047
|
}
|
48004
48048
|
/**
|
48005
|
-
* Should add the
|
48049
|
+
* Should add the assets metadata to the connector and return true if the asset
|
48006
48050
|
* was added successfully.
|
48007
48051
|
*
|
48008
48052
|
* If the asset already exists it should throw an error.
|
@@ -48016,7 +48060,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
48016
48060
|
throw new Error("Method not implemented.");
|
48017
48061
|
}
|
48018
48062
|
/**
|
48019
|
-
* Should add the
|
48063
|
+
* Should add the asset metadata to the connector and return true if the asset
|
48020
48064
|
* was added successfully.
|
48021
48065
|
*
|
48022
48066
|
* If the asset already exists it should throw an error.
|