@fuel-ts/account 0.0.0-rc-1866-20240322113439 → 0.0.0-rc-1889-20240322122653
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-E9nGNf5X.d.mts +3837 -0
- package/dist/account-E9nGNf5X.d.ts +3837 -0
- package/dist/configs.d.mts +3 -0
- package/dist/configs.d.ts +3 -2
- package/dist/index.d.mts +904 -0
- package/dist/index.d.ts +904 -13
- package/dist/index.global.js +385 -454
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +202 -248
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +202 -250
- package/dist/index.mjs.map +1 -1
- package/dist/test-utils.d.mts +66 -0
- package/dist/{test-utils/launchNode.d.ts → test-utils.d.ts} +24 -12
- package/dist/test-utils.global.js +289 -332
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +102 -125
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +102 -127
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +21 -25
- package/dist/account.d.ts +0 -177
- package/dist/account.d.ts.map +0 -1
- package/dist/configs.d.ts.map +0 -1
- package/dist/connectors/fuel-connector.d.ts +0 -188
- package/dist/connectors/fuel-connector.d.ts.map +0 -1
- package/dist/connectors/fuel.d.ts +0 -133
- package/dist/connectors/fuel.d.ts.map +0 -1
- package/dist/connectors/index.d.ts +0 -5
- package/dist/connectors/index.d.ts.map +0 -1
- package/dist/connectors/types/connector-metadata.d.ts +0 -12
- package/dist/connectors/types/connector-metadata.d.ts.map +0 -1
- package/dist/connectors/types/connector-types.d.ts +0 -34
- package/dist/connectors/types/connector-types.d.ts.map +0 -1
- package/dist/connectors/types/data-type.d.ts +0 -34
- package/dist/connectors/types/data-type.d.ts.map +0 -1
- package/dist/connectors/types/events.d.ts +0 -111
- package/dist/connectors/types/events.d.ts.map +0 -1
- package/dist/connectors/types/index.d.ts +0 -7
- package/dist/connectors/types/index.d.ts.map +0 -1
- package/dist/connectors/types/local-storage.d.ts +0 -11
- package/dist/connectors/types/local-storage.d.ts.map +0 -1
- package/dist/connectors/types/target-object.d.ts +0 -14
- package/dist/connectors/types/target-object.d.ts.map +0 -1
- package/dist/connectors/utils/cache.d.ts +0 -14
- package/dist/connectors/utils/cache.d.ts.map +0 -1
- package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts +0 -7
- package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts.map +0 -1
- package/dist/connectors/utils/index.d.ts +0 -4
- package/dist/connectors/utils/index.d.ts.map +0 -1
- package/dist/connectors/utils/promises.d.ts +0 -8
- package/dist/connectors/utils/promises.d.ts.map +0 -1
- package/dist/hdwallet/hdwallet.d.ts +0 -58
- package/dist/hdwallet/hdwallet.d.ts.map +0 -1
- package/dist/hdwallet/index.d.ts +0 -2
- package/dist/hdwallet/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mnemonic/index.d.ts +0 -3
- package/dist/mnemonic/index.d.ts.map +0 -1
- package/dist/mnemonic/mnemonic.d.ts +0 -85
- package/dist/mnemonic/mnemonic.d.ts.map +0 -1
- package/dist/mnemonic/utils.d.ts +0 -8
- package/dist/mnemonic/utils.d.ts.map +0 -1
- package/dist/predicate/index.d.ts +0 -3
- package/dist/predicate/index.d.ts.map +0 -1
- package/dist/predicate/predicate.d.ts +0 -94
- package/dist/predicate/predicate.d.ts.map +0 -1
- package/dist/predicate/utils/getPredicateRoot.d.ts +0 -12
- package/dist/predicate/utils/getPredicateRoot.d.ts.map +0 -1
- package/dist/predicate/utils/index.d.ts +0 -2
- package/dist/predicate/utils/index.d.ts.map +0 -1
- package/dist/providers/__generated__/operations.d.ts +0 -3477
- package/dist/providers/__generated__/operations.d.ts.map +0 -1
- package/dist/providers/assets/index.d.ts +0 -5
- package/dist/providers/assets/index.d.ts.map +0 -1
- package/dist/providers/assets/types.d.ts +0 -36
- package/dist/providers/assets/types.d.ts.map +0 -1
- package/dist/providers/assets/utils/index.d.ts +0 -4
- package/dist/providers/assets/utils/index.d.ts.map +0 -1
- package/dist/providers/assets/utils/network.d.ts +0 -33
- package/dist/providers/assets/utils/network.d.ts.map +0 -1
- package/dist/providers/assets/utils/resolveIconPaths.d.ts +0 -14
- package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +0 -1
- package/dist/providers/assets/utils/url.d.ts +0 -2
- package/dist/providers/assets/utils/url.d.ts.map +0 -1
- package/dist/providers/chains.d.ts +0 -11
- package/dist/providers/chains.d.ts.map +0 -1
- package/dist/providers/coin-quantity.d.ts +0 -21
- package/dist/providers/coin-quantity.d.ts.map +0 -1
- package/dist/providers/coin.d.ts +0 -15
- package/dist/providers/coin.d.ts.map +0 -1
- package/dist/providers/fuel-graphql-subscriber.d.ts +0 -23
- package/dist/providers/fuel-graphql-subscriber.d.ts.map +0 -1
- package/dist/providers/index.d.ts +0 -13
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/memory-cache.d.ts +0 -11
- package/dist/providers/memory-cache.d.ts.map +0 -1
- package/dist/providers/message.d.ts +0 -60
- package/dist/providers/message.d.ts.map +0 -1
- package/dist/providers/provider.d.ts +0 -522
- package/dist/providers/provider.d.ts.map +0 -1
- package/dist/providers/resource.d.ts +0 -37
- package/dist/providers/resource.d.ts.map +0 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts +0 -73
- package/dist/providers/transaction-request/create-transaction-request.d.ts.map +0 -1
- package/dist/providers/transaction-request/errors.d.ts +0 -25
- package/dist/providers/transaction-request/errors.d.ts.map +0 -1
- package/dist/providers/transaction-request/hash-transaction.d.ts +0 -9
- package/dist/providers/transaction-request/hash-transaction.d.ts.map +0 -1
- package/dist/providers/transaction-request/index.d.ts +0 -10
- package/dist/providers/transaction-request/index.d.ts.map +0 -1
- package/dist/providers/transaction-request/input.d.ts +0 -59
- package/dist/providers/transaction-request/input.d.ts.map +0 -1
- package/dist/providers/transaction-request/output.d.ts +0 -39
- package/dist/providers/transaction-request/output.d.ts.map +0 -1
- package/dist/providers/transaction-request/script-transaction-request.d.ts +0 -106
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +0 -1
- package/dist/providers/transaction-request/scripts.d.ts +0 -6
- package/dist/providers/transaction-request/scripts.d.ts.map +0 -1
- package/dist/providers/transaction-request/storage-slot.d.ts +0 -10
- package/dist/providers/transaction-request/storage-slot.d.ts.map +0 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +0 -259
- package/dist/providers/transaction-request/transaction-request.d.ts.map +0 -1
- package/dist/providers/transaction-request/types.d.ts +0 -10
- package/dist/providers/transaction-request/types.d.ts.map +0 -1
- package/dist/providers/transaction-request/utils.d.ts +0 -4
- package/dist/providers/transaction-request/utils.d.ts.map +0 -1
- package/dist/providers/transaction-request/witness.d.ts +0 -5
- package/dist/providers/transaction-request/witness.d.ts.map +0 -1
- package/dist/providers/transaction-response/getDecodedLogs.d.ts +0 -5
- package/dist/providers/transaction-response/getDecodedLogs.d.ts.map +0 -1
- package/dist/providers/transaction-response/index.d.ts +0 -3
- package/dist/providers/transaction-response/index.d.ts.map +0 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +0 -106
- package/dist/providers/transaction-response/transaction-response.d.ts.map +0 -1
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +0 -20
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +0 -1
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +0 -21
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +0 -1
- package/dist/providers/transaction-summary/call.d.ts +0 -18
- package/dist/providers/transaction-summary/call.d.ts.map +0 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts +0 -31
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +0 -1
- package/dist/providers/transaction-summary/index.d.ts +0 -10
- package/dist/providers/transaction-summary/index.d.ts.map +0 -1
- package/dist/providers/transaction-summary/input.d.ts +0 -21
- package/dist/providers/transaction-summary/input.d.ts.map +0 -1
- package/dist/providers/transaction-summary/operations.d.ts +0 -40
- package/dist/providers/transaction-summary/operations.d.ts.map +0 -1
- package/dist/providers/transaction-summary/output.d.ts +0 -15
- package/dist/providers/transaction-summary/output.d.ts.map +0 -1
- package/dist/providers/transaction-summary/receipt.d.ts +0 -7
- package/dist/providers/transaction-summary/receipt.d.ts.map +0 -1
- package/dist/providers/transaction-summary/status.d.ts +0 -9
- package/dist/providers/transaction-summary/status.d.ts.map +0 -1
- package/dist/providers/transaction-summary/types.d.ts +0 -146
- package/dist/providers/transaction-summary/types.d.ts.map +0 -1
- package/dist/providers/utils/auto-retry-fetch.d.ts +0 -36
- package/dist/providers/utils/auto-retry-fetch.d.ts.map +0 -1
- package/dist/providers/utils/block-explorer.d.ts +0 -14
- package/dist/providers/utils/block-explorer.d.ts.map +0 -1
- package/dist/providers/utils/gas.d.ts +0 -38
- package/dist/providers/utils/gas.d.ts.map +0 -1
- package/dist/providers/utils/index.d.ts +0 -6
- package/dist/providers/utils/index.d.ts.map +0 -1
- package/dist/providers/utils/json.d.ts +0 -7
- package/dist/providers/utils/json.d.ts.map +0 -1
- package/dist/providers/utils/merge-quantities.d.ts +0 -3
- package/dist/providers/utils/merge-quantities.d.ts.map +0 -1
- package/dist/providers/utils/receipts.d.ts +0 -10
- package/dist/providers/utils/receipts.d.ts.map +0 -1
- package/dist/providers/utils/sleep.d.ts +0 -3
- package/dist/providers/utils/sleep.d.ts.map +0 -1
- package/dist/signer/index.d.ts +0 -2
- package/dist/signer/index.d.ts.map +0 -1
- package/dist/signer/signer.d.ts +0 -64
- package/dist/signer/signer.d.ts.map +0 -1
- package/dist/test-utils/generateTestWallet.d.ts +0 -4
- package/dist/test-utils/generateTestWallet.d.ts.map +0 -1
- package/dist/test-utils/index.d.ts +0 -4
- package/dist/test-utils/index.d.ts.map +0 -1
- package/dist/test-utils/launchNode.d.ts.map +0 -1
- package/dist/test-utils/seedTestWallet.d.ts +0 -4
- package/dist/test-utils/seedTestWallet.d.ts.map +0 -1
- package/dist/utils/formatTransferToContractScriptData.d.ts +0 -14
- package/dist/utils/formatTransferToContractScriptData.d.ts.map +0 -1
- package/dist/wallet/base-wallet-unlocked.d.ts +0 -73
- package/dist/wallet/base-wallet-unlocked.d.ts.map +0 -1
- package/dist/wallet/index.d.ts +0 -4
- package/dist/wallet/index.d.ts.map +0 -1
- package/dist/wallet/keystore-wallet.d.ts +0 -38
- package/dist/wallet/keystore-wallet.d.ts.map +0 -1
- package/dist/wallet/wallet.d.ts +0 -68
- package/dist/wallet/wallet.d.ts.map +0 -1
- package/dist/wallet/wallets.d.ts +0 -76
- package/dist/wallet/wallets.d.ts.map +0 -1
- package/dist/wallet-manager/index.d.ts +0 -6
- package/dist/wallet-manager/index.d.ts.map +0 -1
- package/dist/wallet-manager/storages/memory-storage.d.ts +0 -9
- package/dist/wallet-manager/storages/memory-storage.d.ts.map +0 -1
- package/dist/wallet-manager/types.d.ts +0 -42
- package/dist/wallet-manager/types.d.ts.map +0 -1
- package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +0 -29
- package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +0 -1
- package/dist/wallet-manager/vaults/privatekey-vault.d.ts +0 -29
- package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +0 -1
- package/dist/wallet-manager/wallet-manager.d.ts +0 -104
- package/dist/wallet-manager/wallet-manager.d.ts.map +0 -1
- package/dist/wordlists/index.d.ts +0 -5
- package/dist/wordlists/index.d.ts.map +0 -1
- package/dist/wordlists/words/english.d.ts +0 -2
- package/dist/wordlists/words/english.d.ts.map +0 -1
package/dist/index.global.js
CHANGED
@@ -6,13 +6,12 @@
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
10
9
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
11
10
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
12
11
|
}) : x)(function(x) {
|
13
12
|
if (typeof require !== "undefined")
|
14
13
|
return require.apply(this, arguments);
|
15
|
-
throw
|
14
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
16
15
|
});
|
17
16
|
var __esm = (fn, res) => function __init() {
|
18
17
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
@@ -41,32 +40,6 @@
|
|
41
40
|
mod2
|
42
41
|
));
|
43
42
|
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
44
|
-
var __publicField = (obj, key, value) => {
|
45
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
46
|
-
return value;
|
47
|
-
};
|
48
|
-
var __accessCheck = (obj, member, msg) => {
|
49
|
-
if (!member.has(obj))
|
50
|
-
throw TypeError("Cannot " + msg);
|
51
|
-
};
|
52
|
-
var __privateGet = (obj, member, getter) => {
|
53
|
-
__accessCheck(obj, member, "read from private field");
|
54
|
-
return getter ? getter.call(obj) : member.get(obj);
|
55
|
-
};
|
56
|
-
var __privateAdd = (obj, member, value) => {
|
57
|
-
if (member.has(obj))
|
58
|
-
throw TypeError("Cannot add the same private member more than once");
|
59
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
60
|
-
};
|
61
|
-
var __privateSet = (obj, member, value, setter) => {
|
62
|
-
__accessCheck(obj, member, "write to private field");
|
63
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
64
|
-
return value;
|
65
|
-
};
|
66
|
-
var __privateMethod = (obj, member, method) => {
|
67
|
-
__accessCheck(obj, member, "access private method");
|
68
|
-
return method;
|
69
|
-
};
|
70
43
|
|
71
44
|
// ../../node_modules/.pnpm/bech32@2.0.0/node_modules/bech32/dist/index.js
|
72
45
|
var require_dist = __commonJS({
|
@@ -237,6 +210,7 @@
|
|
237
210
|
// ../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js
|
238
211
|
var require_bn = __commonJS({
|
239
212
|
"../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js"(exports, module) {
|
213
|
+
"use strict";
|
240
214
|
(function(module2, exports2) {
|
241
215
|
"use strict";
|
242
216
|
function assert4(val, msg) {
|
@@ -5554,6 +5528,7 @@
|
|
5554
5528
|
var import_stream, import_http, import_url, import_whatwg_url, import_https, import_zlib, Readable, BUFFER, TYPE, Blob2, convert, INTERNALS, PassThrough, invalidTokenRegex, invalidHeaderCharRegex, MAP, Headers2, INTERNAL, HeadersIteratorPrototype, INTERNALS$1, STATUS_CODES, Response2, INTERNALS$2, URL, parse_url, format_url, streamDestructionSupported, Request, URL$1, PassThrough$1, isDomainOrSubdomain, isSameProtocol, lib_default;
|
5555
5529
|
var init_lib = __esm({
|
5556
5530
|
"../../node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.mjs"() {
|
5531
|
+
"use strict";
|
5557
5532
|
import_stream = __toESM(__require("stream"), 1);
|
5558
5533
|
import_http = __toESM(__require("http"), 1);
|
5559
5534
|
import_url = __toESM(__require("url"), 1);
|
@@ -5563,7 +5538,7 @@
|
|
5563
5538
|
Readable = import_stream.default.Readable;
|
5564
5539
|
BUFFER = Symbol("buffer");
|
5565
5540
|
TYPE = Symbol("type");
|
5566
|
-
Blob2 = class {
|
5541
|
+
Blob2 = class _Blob {
|
5567
5542
|
constructor() {
|
5568
5543
|
this[TYPE] = "";
|
5569
5544
|
const blobParts = arguments[0];
|
@@ -5582,7 +5557,7 @@
|
|
5582
5557
|
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
5583
5558
|
} else if (element instanceof ArrayBuffer) {
|
5584
5559
|
buffer = Buffer.from(element);
|
5585
|
-
} else if (element instanceof
|
5560
|
+
} else if (element instanceof _Blob) {
|
5586
5561
|
buffer = element[BUFFER];
|
5587
5562
|
} else {
|
5588
5563
|
buffer = Buffer.from(typeof element === "string" ? element : String(element));
|
@@ -5644,7 +5619,7 @@
|
|
5644
5619
|
const span = Math.max(relativeEnd - relativeStart, 0);
|
5645
5620
|
const buffer = this[BUFFER];
|
5646
5621
|
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
5647
|
-
const blob = new
|
5622
|
+
const blob = new _Blob([], { type: arguments[2] });
|
5648
5623
|
blob[BUFFER] = slicedBuffer;
|
5649
5624
|
return blob;
|
5650
5625
|
}
|
@@ -5771,7 +5746,7 @@
|
|
5771
5746
|
invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
|
5772
5747
|
invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
|
5773
5748
|
MAP = Symbol("map");
|
5774
|
-
Headers2 = class {
|
5749
|
+
Headers2 = class _Headers {
|
5775
5750
|
/**
|
5776
5751
|
* Headers class
|
5777
5752
|
*
|
@@ -5781,7 +5756,7 @@
|
|
5781
5756
|
constructor() {
|
5782
5757
|
let init = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
|
5783
5758
|
this[MAP] = /* @__PURE__ */ Object.create(null);
|
5784
|
-
if (init instanceof
|
5759
|
+
if (init instanceof _Headers) {
|
5785
5760
|
const rawHeaders = init.raw();
|
5786
5761
|
const headerNames = Object.keys(rawHeaders);
|
5787
5762
|
for (const headerName of headerNames) {
|
@@ -5999,7 +5974,7 @@
|
|
5999
5974
|
});
|
6000
5975
|
INTERNALS$1 = Symbol("Response internals");
|
6001
5976
|
STATUS_CODES = import_http.default.STATUS_CODES;
|
6002
|
-
Response2 = class {
|
5977
|
+
Response2 = class _Response {
|
6003
5978
|
constructor() {
|
6004
5979
|
let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
6005
5980
|
let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
@@ -6047,7 +6022,7 @@
|
|
6047
6022
|
* @return Response
|
6048
6023
|
*/
|
6049
6024
|
clone() {
|
6050
|
-
return new
|
6025
|
+
return new _Response(clone(this), {
|
6051
6026
|
url: this.url,
|
6052
6027
|
status: this.status,
|
6053
6028
|
statusText: this.statusText,
|
@@ -6078,7 +6053,7 @@
|
|
6078
6053
|
parse_url = import_url.default.parse;
|
6079
6054
|
format_url = import_url.default.format;
|
6080
6055
|
streamDestructionSupported = "destroy" in import_stream.default.Readable.prototype;
|
6081
|
-
Request = class {
|
6056
|
+
Request = class _Request {
|
6082
6057
|
constructor(input) {
|
6083
6058
|
let init = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6084
6059
|
let parsedURL;
|
@@ -6148,7 +6123,7 @@
|
|
6148
6123
|
* @return Request
|
6149
6124
|
*/
|
6150
6125
|
clone() {
|
6151
|
-
return new
|
6126
|
+
return new _Request(this);
|
6152
6127
|
}
|
6153
6128
|
};
|
6154
6129
|
Body.mixIn(Request.prototype);
|
@@ -6192,6 +6167,7 @@
|
|
6192
6167
|
// ../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/node-ponyfill.js
|
6193
6168
|
var require_node_ponyfill = __commonJS({
|
6194
6169
|
"../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/node-ponyfill.js"(exports, module) {
|
6170
|
+
"use strict";
|
6195
6171
|
var nodeFetch = (init_lib(), __toCommonJS(lib_exports));
|
6196
6172
|
var realFetch = nodeFetch.default || nodeFetch;
|
6197
6173
|
var fetch3 = function(url, options) {
|
@@ -6357,7 +6333,7 @@
|
|
6357
6333
|
}
|
6358
6334
|
return firstArg;
|
6359
6335
|
}
|
6360
|
-
var GraphQLError2 = class extends Error {
|
6336
|
+
var GraphQLError2 = class _GraphQLError extends Error {
|
6361
6337
|
/**
|
6362
6338
|
* An array of `{ line, column }` locations within the source GraphQL document
|
6363
6339
|
* which correspond to this error.
|
@@ -6446,7 +6422,7 @@
|
|
6446
6422
|
configurable: true
|
6447
6423
|
});
|
6448
6424
|
} else if (Error.captureStackTrace) {
|
6449
|
-
Error.captureStackTrace(this,
|
6425
|
+
Error.captureStackTrace(this, _GraphQLError);
|
6450
6426
|
} else {
|
6451
6427
|
Object.defineProperty(this, "stack", {
|
6452
6428
|
value: Error().stack,
|
@@ -9843,6 +9819,7 @@ spurious results.`);
|
|
9843
9819
|
// ../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
|
9844
9820
|
var require_delayed_stream = __commonJS({
|
9845
9821
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
|
9822
|
+
"use strict";
|
9846
9823
|
var Stream2 = __require("stream").Stream;
|
9847
9824
|
var util = __require("util");
|
9848
9825
|
module.exports = DelayedStream;
|
@@ -9934,6 +9911,7 @@ spurious results.`);
|
|
9934
9911
|
// ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
9935
9912
|
var require_combined_stream = __commonJS({
|
9936
9913
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
|
9914
|
+
"use strict";
|
9937
9915
|
var util = __require("util");
|
9938
9916
|
var Stream2 = __require("stream").Stream;
|
9939
9917
|
var DelayedStream = require_delayed_stream();
|
@@ -18630,6 +18608,7 @@ spurious results.`);
|
|
18630
18608
|
// ../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js
|
18631
18609
|
var require_mime_db = __commonJS({
|
18632
18610
|
"../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js"(exports, module) {
|
18611
|
+
"use strict";
|
18633
18612
|
module.exports = require_db();
|
18634
18613
|
}
|
18635
18614
|
});
|
@@ -18728,6 +18707,7 @@ spurious results.`);
|
|
18728
18707
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js
|
18729
18708
|
var require_defer = __commonJS({
|
18730
18709
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js"(exports, module) {
|
18710
|
+
"use strict";
|
18731
18711
|
module.exports = defer;
|
18732
18712
|
function defer(fn) {
|
18733
18713
|
var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
|
@@ -18743,6 +18723,7 @@ spurious results.`);
|
|
18743
18723
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js
|
18744
18724
|
var require_async = __commonJS({
|
18745
18725
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js"(exports, module) {
|
18726
|
+
"use strict";
|
18746
18727
|
var defer = require_defer();
|
18747
18728
|
module.exports = async;
|
18748
18729
|
function async(callback) {
|
@@ -18766,6 +18747,7 @@ spurious results.`);
|
|
18766
18747
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js
|
18767
18748
|
var require_abort = __commonJS({
|
18768
18749
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js"(exports, module) {
|
18750
|
+
"use strict";
|
18769
18751
|
module.exports = abort;
|
18770
18752
|
function abort(state) {
|
18771
18753
|
Object.keys(state.jobs).forEach(clean.bind(state));
|
@@ -18782,6 +18764,7 @@ spurious results.`);
|
|
18782
18764
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js
|
18783
18765
|
var require_iterate = __commonJS({
|
18784
18766
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js"(exports, module) {
|
18767
|
+
"use strict";
|
18785
18768
|
var async = require_async();
|
18786
18769
|
var abort = require_abort();
|
18787
18770
|
module.exports = iterate;
|
@@ -18815,6 +18798,7 @@ spurious results.`);
|
|
18815
18798
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js
|
18816
18799
|
var require_state = __commonJS({
|
18817
18800
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js"(exports, module) {
|
18801
|
+
"use strict";
|
18818
18802
|
module.exports = state;
|
18819
18803
|
function state(list, sortMethod) {
|
18820
18804
|
var isNamedList = !Array.isArray(list), initState = {
|
@@ -18837,6 +18821,7 @@ spurious results.`);
|
|
18837
18821
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js
|
18838
18822
|
var require_terminator = __commonJS({
|
18839
18823
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js"(exports, module) {
|
18824
|
+
"use strict";
|
18840
18825
|
var abort = require_abort();
|
18841
18826
|
var async = require_async();
|
18842
18827
|
module.exports = terminator;
|
@@ -18854,6 +18839,7 @@ spurious results.`);
|
|
18854
18839
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js
|
18855
18840
|
var require_parallel = __commonJS({
|
18856
18841
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js"(exports, module) {
|
18842
|
+
"use strict";
|
18857
18843
|
var iterate = require_iterate();
|
18858
18844
|
var initState = require_state();
|
18859
18845
|
var terminator = require_terminator();
|
@@ -18881,6 +18867,7 @@ spurious results.`);
|
|
18881
18867
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js
|
18882
18868
|
var require_serialOrdered = __commonJS({
|
18883
18869
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js"(exports, module) {
|
18870
|
+
"use strict";
|
18884
18871
|
var iterate = require_iterate();
|
18885
18872
|
var initState = require_state();
|
18886
18873
|
var terminator = require_terminator();
|
@@ -18915,6 +18902,7 @@ spurious results.`);
|
|
18915
18902
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js
|
18916
18903
|
var require_serial = __commonJS({
|
18917
18904
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js"(exports, module) {
|
18905
|
+
"use strict";
|
18918
18906
|
var serialOrdered = require_serialOrdered();
|
18919
18907
|
module.exports = serial;
|
18920
18908
|
function serial(list, iterator, callback) {
|
@@ -18926,6 +18914,7 @@ spurious results.`);
|
|
18926
18914
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js
|
18927
18915
|
var require_asynckit = __commonJS({
|
18928
18916
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js"(exports, module) {
|
18917
|
+
"use strict";
|
18929
18918
|
module.exports = {
|
18930
18919
|
parallel: require_parallel(),
|
18931
18920
|
serial: require_serial(),
|
@@ -18937,6 +18926,7 @@ spurious results.`);
|
|
18937
18926
|
// ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js
|
18938
18927
|
var require_populate = __commonJS({
|
18939
18928
|
"../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js"(exports, module) {
|
18929
|
+
"use strict";
|
18940
18930
|
module.exports = function(dst, src) {
|
18941
18931
|
Object.keys(src).forEach(function(prop) {
|
18942
18932
|
dst[prop] = dst[prop] || src[prop];
|
@@ -18949,6 +18939,7 @@ spurious results.`);
|
|
18949
18939
|
// ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js
|
18950
18940
|
var require_form_data = __commonJS({
|
18951
18941
|
"../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js"(exports, module) {
|
18942
|
+
"use strict";
|
18952
18943
|
var CombinedStream = require_combined_stream();
|
18953
18944
|
var util = __require("util");
|
18954
18945
|
var path = __require("path");
|
@@ -19390,7 +19381,7 @@ spurious results.`);
|
|
19390
19381
|
var require_types = __commonJS({
|
19391
19382
|
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/types.js"(exports) {
|
19392
19383
|
"use strict";
|
19393
|
-
var __extends = exports && exports.__extends || function() {
|
19384
|
+
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
19394
19385
|
var extendStatics = function(d, b) {
|
19395
19386
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
19396
19387
|
d2.__proto__ = b2;
|
@@ -22380,10 +22371,10 @@ spurious results.`);
|
|
22380
22371
|
return RegId.__wrap(ret3);
|
22381
22372
|
}
|
22382
22373
|
};
|
22383
|
-
var CompareArgs = class {
|
22374
|
+
var CompareArgs = class _CompareArgs {
|
22384
22375
|
static __wrap(ptr) {
|
22385
22376
|
ptr = ptr >>> 0;
|
22386
|
-
const obj = Object.create(
|
22377
|
+
const obj = Object.create(_CompareArgs.prototype);
|
22387
22378
|
obj.__wbg_ptr = ptr;
|
22388
22379
|
return obj;
|
22389
22380
|
}
|
@@ -22444,7 +22435,7 @@ spurious results.`);
|
|
22444
22435
|
_assertClass(bits, Imm06);
|
22445
22436
|
var ptr0 = bits.__destroy_into_raw();
|
22446
22437
|
const ret3 = wasm$1.compareargs_from_imm(ptr0);
|
22447
|
-
return ret3 === 0 ? void 0 :
|
22438
|
+
return ret3 === 0 ? void 0 : _CompareArgs.__wrap(ret3);
|
22448
22439
|
}
|
22449
22440
|
};
|
22450
22441
|
var DIV = class {
|
@@ -22982,10 +22973,10 @@ spurious results.`);
|
|
22982
22973
|
return RegId.__wrap(ret3);
|
22983
22974
|
}
|
22984
22975
|
};
|
22985
|
-
var GM = class {
|
22976
|
+
var GM = class _GM {
|
22986
22977
|
static __wrap(ptr) {
|
22987
22978
|
ptr = ptr >>> 0;
|
22988
|
-
const obj = Object.create(
|
22979
|
+
const obj = Object.create(_GM.prototype);
|
22989
22980
|
obj.__wbg_ptr = ptr;
|
22990
22981
|
return obj;
|
22991
22982
|
}
|
@@ -23038,7 +23029,7 @@ spurious results.`);
|
|
23038
23029
|
_assertClass(ra, RegId);
|
23039
23030
|
var ptr0 = ra.__destroy_into_raw();
|
23040
23031
|
const ret3 = wasm$1.gm_from_args(ptr0, args);
|
23041
|
-
return
|
23032
|
+
return _GM.__wrap(ret3);
|
23042
23033
|
}
|
23043
23034
|
};
|
23044
23035
|
var GT = class {
|
@@ -23093,10 +23084,10 @@ spurious results.`);
|
|
23093
23084
|
return RegId.__wrap(ret3);
|
23094
23085
|
}
|
23095
23086
|
};
|
23096
|
-
var GTF = class {
|
23087
|
+
var GTF = class _GTF {
|
23097
23088
|
static __wrap(ptr) {
|
23098
23089
|
ptr = ptr >>> 0;
|
23099
|
-
const obj = Object.create(
|
23090
|
+
const obj = Object.create(_GTF.prototype);
|
23100
23091
|
obj.__wbg_ptr = ptr;
|
23101
23092
|
return obj;
|
23102
23093
|
}
|
@@ -23163,13 +23154,13 @@ spurious results.`);
|
|
23163
23154
|
_assertClass(rb, RegId);
|
23164
23155
|
var ptr1 = rb.__destroy_into_raw();
|
23165
23156
|
const ret3 = wasm$1.gtf_from_args(ptr0, ptr1, args);
|
23166
|
-
return
|
23157
|
+
return _GTF.__wrap(ret3);
|
23167
23158
|
}
|
23168
23159
|
};
|
23169
|
-
var Imm06 = class {
|
23160
|
+
var Imm06 = class _Imm06 {
|
23170
23161
|
static __wrap(ptr) {
|
23171
23162
|
ptr = ptr >>> 0;
|
23172
|
-
const obj = Object.create(
|
23163
|
+
const obj = Object.create(_Imm06.prototype);
|
23173
23164
|
obj.__wbg_ptr = ptr;
|
23174
23165
|
return obj;
|
23175
23166
|
}
|
@@ -23183,10 +23174,10 @@ spurious results.`);
|
|
23183
23174
|
wasm$1.__wbg_imm06_free(ptr);
|
23184
23175
|
}
|
23185
23176
|
};
|
23186
|
-
var Imm12 = class {
|
23177
|
+
var Imm12 = class _Imm12 {
|
23187
23178
|
static __wrap(ptr) {
|
23188
23179
|
ptr = ptr >>> 0;
|
23189
|
-
const obj = Object.create(
|
23180
|
+
const obj = Object.create(_Imm12.prototype);
|
23190
23181
|
obj.__wbg_ptr = ptr;
|
23191
23182
|
return obj;
|
23192
23183
|
}
|
@@ -23200,10 +23191,10 @@ spurious results.`);
|
|
23200
23191
|
wasm$1.__wbg_imm12_free(ptr);
|
23201
23192
|
}
|
23202
23193
|
};
|
23203
|
-
var Imm18 = class {
|
23194
|
+
var Imm18 = class _Imm18 {
|
23204
23195
|
static __wrap(ptr) {
|
23205
23196
|
ptr = ptr >>> 0;
|
23206
|
-
const obj = Object.create(
|
23197
|
+
const obj = Object.create(_Imm18.prototype);
|
23207
23198
|
obj.__wbg_ptr = ptr;
|
23208
23199
|
return obj;
|
23209
23200
|
}
|
@@ -23217,10 +23208,10 @@ spurious results.`);
|
|
23217
23208
|
wasm$1.__wbg_imm18_free(ptr);
|
23218
23209
|
}
|
23219
23210
|
};
|
23220
|
-
var Imm24 = class {
|
23211
|
+
var Imm24 = class _Imm24 {
|
23221
23212
|
static __wrap(ptr) {
|
23222
23213
|
ptr = ptr >>> 0;
|
23223
|
-
const obj = Object.create(
|
23214
|
+
const obj = Object.create(_Imm24.prototype);
|
23224
23215
|
obj.__wbg_ptr = ptr;
|
23225
23216
|
return obj;
|
23226
23217
|
}
|
@@ -23234,10 +23225,10 @@ spurious results.`);
|
|
23234
23225
|
wasm$1.__wbg_imm24_free(ptr);
|
23235
23226
|
}
|
23236
23227
|
};
|
23237
|
-
var Instruction = class {
|
23228
|
+
var Instruction = class _Instruction {
|
23238
23229
|
static __wrap(ptr) {
|
23239
23230
|
ptr = ptr >>> 0;
|
23240
|
-
const obj = Object.create(
|
23231
|
+
const obj = Object.create(_Instruction.prototype);
|
23241
23232
|
obj.__wbg_ptr = ptr;
|
23242
23233
|
return obj;
|
23243
23234
|
}
|
@@ -25430,10 +25421,10 @@ spurious results.`);
|
|
25430
25421
|
return RegId.__wrap(ret3);
|
25431
25422
|
}
|
25432
25423
|
};
|
25433
|
-
var RegId = class {
|
25424
|
+
var RegId = class _RegId {
|
25434
25425
|
static __wrap(ptr) {
|
25435
25426
|
ptr = ptr >>> 0;
|
25436
|
-
const obj = Object.create(
|
25427
|
+
const obj = Object.create(_RegId.prototype);
|
25437
25428
|
obj.__wbg_ptr = ptr;
|
25438
25429
|
return obj;
|
25439
25430
|
}
|
@@ -25455,7 +25446,7 @@ spurious results.`);
|
|
25455
25446
|
*/
|
25456
25447
|
static new_checked(u) {
|
25457
25448
|
const ret3 = wasm$1.regid_new_checked(u);
|
25458
|
-
return ret3 === 0 ? void 0 :
|
25449
|
+
return ret3 === 0 ? void 0 : _RegId.__wrap(ret3);
|
25459
25450
|
}
|
25460
25451
|
/**
|
25461
25452
|
* Received balance for this context.
|
@@ -25463,7 +25454,7 @@ spurious results.`);
|
|
25463
25454
|
*/
|
25464
25455
|
static bal() {
|
25465
25456
|
const ret3 = wasm$1.regid_bal();
|
25466
|
-
return
|
25457
|
+
return _RegId.__wrap(ret3);
|
25467
25458
|
}
|
25468
25459
|
/**
|
25469
25460
|
* Remaining gas in the context.
|
@@ -25471,7 +25462,7 @@ spurious results.`);
|
|
25471
25462
|
*/
|
25472
25463
|
static cgas() {
|
25473
25464
|
const ret3 = wasm$1.regid_cgas();
|
25474
|
-
return
|
25465
|
+
return _RegId.__wrap(ret3);
|
25475
25466
|
}
|
25476
25467
|
/**
|
25477
25468
|
* Error codes for particular operations.
|
@@ -25479,7 +25470,7 @@ spurious results.`);
|
|
25479
25470
|
*/
|
25480
25471
|
static err() {
|
25481
25472
|
const ret3 = wasm$1.regid_err();
|
25482
|
-
return
|
25473
|
+
return _RegId.__wrap(ret3);
|
25483
25474
|
}
|
25484
25475
|
/**
|
25485
25476
|
* Flags register.
|
@@ -25487,7 +25478,7 @@ spurious results.`);
|
|
25487
25478
|
*/
|
25488
25479
|
static flag() {
|
25489
25480
|
const ret3 = wasm$1.regid_flag();
|
25490
|
-
return
|
25481
|
+
return _RegId.__wrap(ret3);
|
25491
25482
|
}
|
25492
25483
|
/**
|
25493
25484
|
* Frame pointer. Memory address of beginning of current call frame.
|
@@ -25495,7 +25486,7 @@ spurious results.`);
|
|
25495
25486
|
*/
|
25496
25487
|
static fp() {
|
25497
25488
|
const ret3 = wasm$1.regid_fp();
|
25498
|
-
return
|
25489
|
+
return _RegId.__wrap(ret3);
|
25499
25490
|
}
|
25500
25491
|
/**
|
25501
25492
|
* Remaining gas globally.
|
@@ -25503,7 +25494,7 @@ spurious results.`);
|
|
25503
25494
|
*/
|
25504
25495
|
static ggas() {
|
25505
25496
|
const ret3 = wasm$1.regid_ggas();
|
25506
|
-
return
|
25497
|
+
return _RegId.__wrap(ret3);
|
25507
25498
|
}
|
25508
25499
|
/**
|
25509
25500
|
* Heap pointer. Memory address below the current bottom of the heap (points to free
|
@@ -25512,7 +25503,7 @@ spurious results.`);
|
|
25512
25503
|
*/
|
25513
25504
|
static hp() {
|
25514
25505
|
const ret3 = wasm$1.regid_hp();
|
25515
|
-
return
|
25506
|
+
return _RegId.__wrap(ret3);
|
25516
25507
|
}
|
25517
25508
|
/**
|
25518
25509
|
* Instructions start. Pointer to the start of the currently-executing code.
|
@@ -25520,7 +25511,7 @@ spurious results.`);
|
|
25520
25511
|
*/
|
25521
25512
|
static is() {
|
25522
25513
|
const ret3 = wasm$1.regid_is();
|
25523
|
-
return
|
25514
|
+
return _RegId.__wrap(ret3);
|
25524
25515
|
}
|
25525
25516
|
/**
|
25526
25517
|
* Contains overflow/underflow of addition, subtraction, and multiplication.
|
@@ -25528,7 +25519,7 @@ spurious results.`);
|
|
25528
25519
|
*/
|
25529
25520
|
static of() {
|
25530
25521
|
const ret3 = wasm$1.regid_of();
|
25531
|
-
return
|
25522
|
+
return _RegId.__wrap(ret3);
|
25532
25523
|
}
|
25533
25524
|
/**
|
25534
25525
|
* Contains one (1), for convenience.
|
@@ -25536,7 +25527,7 @@ spurious results.`);
|
|
25536
25527
|
*/
|
25537
25528
|
static one() {
|
25538
25529
|
const ret3 = wasm$1.regid_one();
|
25539
|
-
return
|
25530
|
+
return _RegId.__wrap(ret3);
|
25540
25531
|
}
|
25541
25532
|
/**
|
25542
25533
|
* The program counter. Memory address of the current instruction.
|
@@ -25544,7 +25535,7 @@ spurious results.`);
|
|
25544
25535
|
*/
|
25545
25536
|
static pc() {
|
25546
25537
|
const ret3 = wasm$1.regid_pc();
|
25547
|
-
return
|
25538
|
+
return _RegId.__wrap(ret3);
|
25548
25539
|
}
|
25549
25540
|
/**
|
25550
25541
|
* Return value or pointer.
|
@@ -25552,7 +25543,7 @@ spurious results.`);
|
|
25552
25543
|
*/
|
25553
25544
|
static ret() {
|
25554
25545
|
const ret3 = wasm$1.regid_ret();
|
25555
|
-
return
|
25546
|
+
return _RegId.__wrap(ret3);
|
25556
25547
|
}
|
25557
25548
|
/**
|
25558
25549
|
* Return value length in bytes.
|
@@ -25560,7 +25551,7 @@ spurious results.`);
|
|
25560
25551
|
*/
|
25561
25552
|
static retl() {
|
25562
25553
|
const ret3 = wasm$1.regid_retl();
|
25563
|
-
return
|
25554
|
+
return _RegId.__wrap(ret3);
|
25564
25555
|
}
|
25565
25556
|
/**
|
25566
25557
|
* Stack pointer. Memory address on top of current writable stack area (points to
|
@@ -25569,7 +25560,7 @@ spurious results.`);
|
|
25569
25560
|
*/
|
25570
25561
|
static sp() {
|
25571
25562
|
const ret3 = wasm$1.regid_sp();
|
25572
|
-
return
|
25563
|
+
return _RegId.__wrap(ret3);
|
25573
25564
|
}
|
25574
25565
|
/**
|
25575
25566
|
* Stack start pointer. Memory address of bottom of current writable stack area.
|
@@ -25577,7 +25568,7 @@ spurious results.`);
|
|
25577
25568
|
*/
|
25578
25569
|
static spp() {
|
25579
25570
|
const ret3 = wasm$1.regid_spp();
|
25580
|
-
return
|
25571
|
+
return _RegId.__wrap(ret3);
|
25581
25572
|
}
|
25582
25573
|
/**
|
25583
25574
|
* Smallest writable register.
|
@@ -25585,7 +25576,7 @@ spurious results.`);
|
|
25585
25576
|
*/
|
25586
25577
|
static writable() {
|
25587
25578
|
const ret3 = wasm$1.regid_writable();
|
25588
|
-
return
|
25579
|
+
return _RegId.__wrap(ret3);
|
25589
25580
|
}
|
25590
25581
|
/**
|
25591
25582
|
* Contains zero (0), for convenience.
|
@@ -25593,7 +25584,7 @@ spurious results.`);
|
|
25593
25584
|
*/
|
25594
25585
|
static zero() {
|
25595
25586
|
const ret3 = wasm$1.regid_zero();
|
25596
|
-
return
|
25587
|
+
return _RegId.__wrap(ret3);
|
25597
25588
|
}
|
25598
25589
|
/**
|
25599
25590
|
* Construct a register ID from the given value.
|
@@ -26648,10 +26639,10 @@ spurious results.`);
|
|
26648
26639
|
return RegId.__wrap(ret3);
|
26649
26640
|
}
|
26650
26641
|
};
|
26651
|
-
var WDCM = class {
|
26642
|
+
var WDCM = class _WDCM {
|
26652
26643
|
static __wrap(ptr) {
|
26653
26644
|
ptr = ptr >>> 0;
|
26654
|
-
const obj = Object.create(
|
26645
|
+
const obj = Object.create(_WDCM.prototype);
|
26655
26646
|
obj.__wbg_ptr = ptr;
|
26656
26647
|
return obj;
|
26657
26648
|
}
|
@@ -26734,13 +26725,13 @@ spurious results.`);
|
|
26734
26725
|
_assertClass(args, CompareArgs);
|
26735
26726
|
var ptr3 = args.__destroy_into_raw();
|
26736
26727
|
const ret3 = wasm$1.wdcm_from_args(ptr0, ptr1, ptr2, ptr3);
|
26737
|
-
return
|
26728
|
+
return _WDCM.__wrap(ret3);
|
26738
26729
|
}
|
26739
26730
|
};
|
26740
|
-
var WDDV = class {
|
26731
|
+
var WDDV = class _WDDV {
|
26741
26732
|
static __wrap(ptr) {
|
26742
26733
|
ptr = ptr >>> 0;
|
26743
|
-
const obj = Object.create(
|
26734
|
+
const obj = Object.create(_WDDV.prototype);
|
26744
26735
|
obj.__wbg_ptr = ptr;
|
26745
26736
|
return obj;
|
26746
26737
|
}
|
@@ -26823,7 +26814,7 @@ spurious results.`);
|
|
26823
26814
|
_assertClass(args, DivArgs);
|
26824
26815
|
var ptr3 = args.__destroy_into_raw();
|
26825
26816
|
const ret3 = wasm$1.wddv_from_args(ptr0, ptr1, ptr2, ptr3);
|
26826
|
-
return
|
26817
|
+
return _WDDV.__wrap(ret3);
|
26827
26818
|
}
|
26828
26819
|
};
|
26829
26820
|
var WDMD = class {
|
@@ -26889,10 +26880,10 @@ spurious results.`);
|
|
26889
26880
|
return RegId.__wrap(ret3);
|
26890
26881
|
}
|
26891
26882
|
};
|
26892
|
-
var WDML = class {
|
26883
|
+
var WDML = class _WDML {
|
26893
26884
|
static __wrap(ptr) {
|
26894
26885
|
ptr = ptr >>> 0;
|
26895
|
-
const obj = Object.create(
|
26886
|
+
const obj = Object.create(_WDML.prototype);
|
26896
26887
|
obj.__wbg_ptr = ptr;
|
26897
26888
|
return obj;
|
26898
26889
|
}
|
@@ -26975,7 +26966,7 @@ spurious results.`);
|
|
26975
26966
|
_assertClass(args, MulArgs);
|
26976
26967
|
var ptr3 = args.__destroy_into_raw();
|
26977
26968
|
const ret3 = wasm$1.wdml_from_args(ptr0, ptr1, ptr2, ptr3);
|
26978
|
-
return
|
26969
|
+
return _WDML.__wrap(ret3);
|
26979
26970
|
}
|
26980
26971
|
};
|
26981
26972
|
var WDMM = class {
|
@@ -27041,10 +27032,10 @@ spurious results.`);
|
|
27041
27032
|
return RegId.__wrap(ret3);
|
27042
27033
|
}
|
27043
27034
|
};
|
27044
|
-
var WDOP = class {
|
27035
|
+
var WDOP = class _WDOP {
|
27045
27036
|
static __wrap(ptr) {
|
27046
27037
|
ptr = ptr >>> 0;
|
27047
|
-
const obj = Object.create(
|
27038
|
+
const obj = Object.create(_WDOP.prototype);
|
27048
27039
|
obj.__wbg_ptr = ptr;
|
27049
27040
|
return obj;
|
27050
27041
|
}
|
@@ -27127,7 +27118,7 @@ spurious results.`);
|
|
27127
27118
|
_assertClass(args, MathArgs);
|
27128
27119
|
var ptr3 = args.__destroy_into_raw();
|
27129
27120
|
const ret3 = wasm$1.wdop_from_args(ptr0, ptr1, ptr2, ptr3);
|
27130
|
-
return
|
27121
|
+
return _WDOP.__wrap(ret3);
|
27131
27122
|
}
|
27132
27123
|
};
|
27133
27124
|
var WQAM = class {
|
@@ -27193,10 +27184,10 @@ spurious results.`);
|
|
27193
27184
|
return RegId.__wrap(ret3);
|
27194
27185
|
}
|
27195
27186
|
};
|
27196
|
-
var WQCM = class {
|
27187
|
+
var WQCM = class _WQCM {
|
27197
27188
|
static __wrap(ptr) {
|
27198
27189
|
ptr = ptr >>> 0;
|
27199
|
-
const obj = Object.create(
|
27190
|
+
const obj = Object.create(_WQCM.prototype);
|
27200
27191
|
obj.__wbg_ptr = ptr;
|
27201
27192
|
return obj;
|
27202
27193
|
}
|
@@ -27279,13 +27270,13 @@ spurious results.`);
|
|
27279
27270
|
_assertClass(args, CompareArgs);
|
27280
27271
|
var ptr3 = args.__destroy_into_raw();
|
27281
27272
|
const ret3 = wasm$1.wdcm_from_args(ptr0, ptr1, ptr2, ptr3);
|
27282
|
-
return
|
27273
|
+
return _WQCM.__wrap(ret3);
|
27283
27274
|
}
|
27284
27275
|
};
|
27285
|
-
var WQDV = class {
|
27276
|
+
var WQDV = class _WQDV {
|
27286
27277
|
static __wrap(ptr) {
|
27287
27278
|
ptr = ptr >>> 0;
|
27288
|
-
const obj = Object.create(
|
27279
|
+
const obj = Object.create(_WQDV.prototype);
|
27289
27280
|
obj.__wbg_ptr = ptr;
|
27290
27281
|
return obj;
|
27291
27282
|
}
|
@@ -27368,7 +27359,7 @@ spurious results.`);
|
|
27368
27359
|
_assertClass(args, DivArgs);
|
27369
27360
|
var ptr3 = args.__destroy_into_raw();
|
27370
27361
|
const ret3 = wasm$1.wddv_from_args(ptr0, ptr1, ptr2, ptr3);
|
27371
|
-
return
|
27362
|
+
return _WQDV.__wrap(ret3);
|
27372
27363
|
}
|
27373
27364
|
};
|
27374
27365
|
var WQMD = class {
|
@@ -27434,10 +27425,10 @@ spurious results.`);
|
|
27434
27425
|
return RegId.__wrap(ret3);
|
27435
27426
|
}
|
27436
27427
|
};
|
27437
|
-
var WQML = class {
|
27428
|
+
var WQML = class _WQML {
|
27438
27429
|
static __wrap(ptr) {
|
27439
27430
|
ptr = ptr >>> 0;
|
27440
|
-
const obj = Object.create(
|
27431
|
+
const obj = Object.create(_WQML.prototype);
|
27441
27432
|
obj.__wbg_ptr = ptr;
|
27442
27433
|
return obj;
|
27443
27434
|
}
|
@@ -27520,7 +27511,7 @@ spurious results.`);
|
|
27520
27511
|
_assertClass(args, MulArgs);
|
27521
27512
|
var ptr3 = args.__destroy_into_raw();
|
27522
27513
|
const ret3 = wasm$1.wdml_from_args(ptr0, ptr1, ptr2, ptr3);
|
27523
|
-
return
|
27514
|
+
return _WQML.__wrap(ret3);
|
27524
27515
|
}
|
27525
27516
|
};
|
27526
27517
|
var WQMM = class {
|
@@ -27586,10 +27577,10 @@ spurious results.`);
|
|
27586
27577
|
return RegId.__wrap(ret3);
|
27587
27578
|
}
|
27588
27579
|
};
|
27589
|
-
var WQOP = class {
|
27580
|
+
var WQOP = class _WQOP {
|
27590
27581
|
static __wrap(ptr) {
|
27591
27582
|
ptr = ptr >>> 0;
|
27592
|
-
const obj = Object.create(
|
27583
|
+
const obj = Object.create(_WQOP.prototype);
|
27593
27584
|
obj.__wbg_ptr = ptr;
|
27594
27585
|
return obj;
|
27595
27586
|
}
|
@@ -27672,7 +27663,7 @@ spurious results.`);
|
|
27672
27663
|
_assertClass(args, MathArgs);
|
27673
27664
|
var ptr3 = args.__destroy_into_raw();
|
27674
27665
|
const ret3 = wasm$1.wdop_from_args(ptr0, ptr1, ptr2, ptr3);
|
27675
|
-
return
|
27666
|
+
return _WQOP.__wrap(ret3);
|
27676
27667
|
}
|
27677
27668
|
};
|
27678
27669
|
var XOR = class {
|
@@ -28832,7 +28823,7 @@ spurious results.`);
|
|
28832
28823
|
}
|
28833
28824
|
B.fill(0);
|
28834
28825
|
}
|
28835
|
-
var Keccak = class extends Hash {
|
28826
|
+
var Keccak = class _Keccak extends Hash {
|
28836
28827
|
// NOTE: we accept arguments in bytes instead of bits here.
|
28837
28828
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
28838
28829
|
super();
|
@@ -28923,7 +28914,7 @@ spurious results.`);
|
|
28923
28914
|
}
|
28924
28915
|
_cloneInto(to) {
|
28925
28916
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
28926
|
-
to || (to = new
|
28917
|
+
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
28927
28918
|
to.state32.set(this.state32);
|
28928
28919
|
to.pos = this.pos;
|
28929
28920
|
to.posOut = this.posOut;
|
@@ -29002,12 +28993,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
29002
28993
|
var versions = getBuiltinVersions();
|
29003
28994
|
|
29004
28995
|
// ../errors/dist/index.mjs
|
29005
|
-
var __defProp2 = Object.defineProperty;
|
29006
|
-
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
29007
|
-
var __publicField2 = (obj, key, value) => {
|
29008
|
-
__defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
29009
|
-
return value;
|
29010
|
-
};
|
29011
28996
|
var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
|
29012
28997
|
ErrorCode2["NO_ABIS_FOUND"] = "no-abis-found";
|
29013
28998
|
ErrorCode2["ABI_TYPES_AND_VALUES_MISMATCH"] = "abi-types-and-values-mismatch";
|
@@ -29086,7 +29071,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
29086
29071
|
ErrorCode2["STREAM_PARSING_ERROR"] = "stream-parsing-error";
|
29087
29072
|
return ErrorCode2;
|
29088
29073
|
})(ErrorCode || {});
|
29089
|
-
var
|
29074
|
+
var FuelError = class _FuelError extends Error {
|
29075
|
+
static CODES = ErrorCode;
|
29090
29076
|
VERSIONS = versions;
|
29091
29077
|
static parse(e) {
|
29092
29078
|
const error = e;
|
@@ -29117,16 +29103,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
29117
29103
|
return { code, name, message, VERSIONS };
|
29118
29104
|
}
|
29119
29105
|
};
|
29120
|
-
var FuelError = _FuelError;
|
29121
|
-
__publicField2(FuelError, "CODES", ErrorCode);
|
29122
29106
|
|
29123
29107
|
// ../utils/dist/index.mjs
|
29124
|
-
var __defProp3 = Object.defineProperty;
|
29125
|
-
var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
29126
|
-
var __publicField3 = (obj, key, value) => {
|
29127
|
-
__defNormalProp3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
29128
|
-
return value;
|
29129
|
-
};
|
29130
29108
|
var chunkAndPadBytes = (bytes3, chunkSize) => {
|
29131
29109
|
const chunks = [];
|
29132
29110
|
for (let offset = 0; offset < bytes3.length; offset += chunkSize) {
|
@@ -29192,7 +29170,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
29192
29170
|
var tai64ToUnixSeconds = (tai64) => Number(BigInt(tai64) - TAI64_UNIX_OFFSET);
|
29193
29171
|
var unixSecondsToTai64 = (unixSeconds) => String(BigInt(unixSeconds) + TAI64_UNIX_OFFSET);
|
29194
29172
|
var tai64ToUnixMilliseconds = (tai64) => secondsToMs(tai64ToUnixSeconds(tai64));
|
29195
|
-
var
|
29173
|
+
var DateTime = class _DateTime extends Date {
|
29174
|
+
static TAI64_NULL = "";
|
29196
29175
|
/**
|
29197
29176
|
* Generates a new DateTime instance from a Tai64 timestamp.
|
29198
29177
|
*
|
@@ -29243,8 +29222,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
29243
29222
|
return msToSeconds(this.getTime());
|
29244
29223
|
}
|
29245
29224
|
};
|
29246
|
-
var DateTime = _DateTime;
|
29247
|
-
__publicField3(DateTime, "TAI64_NULL", "");
|
29248
29225
|
|
29249
29226
|
// ../crypto/dist/index.mjs
|
29250
29227
|
var import_crypto8 = __toESM(__require("crypto"), 1);
|
@@ -29958,7 +29935,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
29958
29935
|
}
|
29959
29936
|
B.fill(0);
|
29960
29937
|
}
|
29961
|
-
var Keccak2 = class extends Hash2 {
|
29938
|
+
var Keccak2 = class _Keccak extends Hash2 {
|
29962
29939
|
// NOTE: we accept arguments in bytes instead of bits here.
|
29963
29940
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
29964
29941
|
super();
|
@@ -30049,7 +30026,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30049
30026
|
}
|
30050
30027
|
_cloneInto(to) {
|
30051
30028
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
30052
|
-
to || (to = new
|
30029
|
+
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
30053
30030
|
to.state32.set(this.state32);
|
30054
30031
|
to.pos = this.pos;
|
30055
30032
|
to.posOut = this.posOut;
|
@@ -30437,7 +30414,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30437
30414
|
|
30438
30415
|
// ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/providers/plugins-network.js
|
30439
30416
|
var EnsAddress = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
30440
|
-
var NetworkPlugin = class {
|
30417
|
+
var NetworkPlugin = class _NetworkPlugin {
|
30441
30418
|
/**
|
30442
30419
|
* The name of the plugin.
|
30443
30420
|
*
|
@@ -30455,10 +30432,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30455
30432
|
* Creates a copy of this plugin.
|
30456
30433
|
*/
|
30457
30434
|
clone() {
|
30458
|
-
return new
|
30435
|
+
return new _NetworkPlugin(this.name);
|
30459
30436
|
}
|
30460
30437
|
};
|
30461
|
-
var GasCostPlugin = class extends NetworkPlugin {
|
30438
|
+
var GasCostPlugin = class _GasCostPlugin extends NetworkPlugin {
|
30462
30439
|
/**
|
30463
30440
|
* The block number to treat these values as valid from.
|
30464
30441
|
*
|
@@ -30518,10 +30495,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30518
30495
|
defineProperties(this, props);
|
30519
30496
|
}
|
30520
30497
|
clone() {
|
30521
|
-
return new
|
30498
|
+
return new _GasCostPlugin(this.effectiveBlock, this);
|
30522
30499
|
}
|
30523
30500
|
};
|
30524
|
-
var EnsPlugin = class extends NetworkPlugin {
|
30501
|
+
var EnsPlugin = class _EnsPlugin extends NetworkPlugin {
|
30525
30502
|
/**
|
30526
30503
|
* The ENS Registrty Contract address.
|
30527
30504
|
*/
|
@@ -30543,7 +30520,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30543
30520
|
});
|
30544
30521
|
}
|
30545
30522
|
clone() {
|
30546
|
-
return new
|
30523
|
+
return new _EnsPlugin(this.address, this.targetNetwork);
|
30547
30524
|
}
|
30548
30525
|
};
|
30549
30526
|
var FetchUrlFeeDataNetworkPlugin = class extends NetworkPlugin {
|
@@ -30578,7 +30555,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30578
30555
|
|
30579
30556
|
// ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/providers/network.js
|
30580
30557
|
var Networks = /* @__PURE__ */ new Map();
|
30581
|
-
var Network = class {
|
30558
|
+
var Network = class _Network {
|
30582
30559
|
#name;
|
30583
30560
|
#chainId;
|
30584
30561
|
#plugins;
|
@@ -30693,7 +30670,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30693
30670
|
* Create a copy of this Network.
|
30694
30671
|
*/
|
30695
30672
|
clone() {
|
30696
|
-
const clone4 = new
|
30673
|
+
const clone4 = new _Network(this.name, this.chainId);
|
30697
30674
|
this.plugins.forEach((plugin) => {
|
30698
30675
|
clone4.attachPlugin(plugin.clone());
|
30699
30676
|
});
|
@@ -30734,7 +30711,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30734
30711
|
static from(network) {
|
30735
30712
|
injectCommonNetworks();
|
30736
30713
|
if (network == null) {
|
30737
|
-
return
|
30714
|
+
return _Network.from("mainnet");
|
30738
30715
|
}
|
30739
30716
|
if (typeof network === "number") {
|
30740
30717
|
network = BigInt(network);
|
@@ -30745,7 +30722,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30745
30722
|
return networkFunc();
|
30746
30723
|
}
|
30747
30724
|
if (typeof network === "bigint") {
|
30748
|
-
return new
|
30725
|
+
return new _Network("unknown", network);
|
30749
30726
|
}
|
30750
30727
|
assertArgument(false, "unknown network", "network", network);
|
30751
30728
|
}
|
@@ -30755,7 +30732,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
30755
30732
|
}
|
30756
30733
|
if (typeof network === "object") {
|
30757
30734
|
assertArgument(typeof network.name === "string" && typeof network.chainId === "number", "invalid network object name or chainId", "network", network);
|
30758
|
-
const custom = new
|
30735
|
+
const custom = new _Network(network.name, network.chainId);
|
30759
30736
|
if (network.ensAddress || network.ensNetwork != null) {
|
30760
30737
|
custom.attachPlugin(new EnsPlugin(network.ensAddress, network.ensNetwork));
|
30761
30738
|
}
|
@@ -31073,7 +31050,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31073
31050
|
}
|
31074
31051
|
return address.replace("0x", "0x000000000000000000000000");
|
31075
31052
|
};
|
31076
|
-
var Address = class extends AbstractAddress {
|
31053
|
+
var Address = class _Address extends AbstractAddress {
|
31077
31054
|
// #region address-2
|
31078
31055
|
bech32Address;
|
31079
31056
|
// #endregion address-2
|
@@ -31187,7 +31164,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31187
31164
|
throw new FuelError(FuelError.CODES.INVALID_PUBLIC_KEY, `Invalid Public Key: ${publicKey}.`);
|
31188
31165
|
}
|
31189
31166
|
const b256Address = hexlify(sha256(arrayify(publicKey)));
|
31190
|
-
return new
|
31167
|
+
return new _Address(toBech32(b256Address));
|
31191
31168
|
}
|
31192
31169
|
/**
|
31193
31170
|
* Takes a B256 Address and creates an `Address`
|
@@ -31202,7 +31179,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31202
31179
|
`Invalid B256 Address: ${b256Address}.`
|
31203
31180
|
);
|
31204
31181
|
}
|
31205
|
-
return new
|
31182
|
+
return new _Address(toBech32(b256Address));
|
31206
31183
|
}
|
31207
31184
|
/**
|
31208
31185
|
* Creates an `Address` with a randomized `bech32Address` property
|
@@ -31219,7 +31196,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31219
31196
|
* @returns A new `Address` instance
|
31220
31197
|
*/
|
31221
31198
|
static fromString(address) {
|
31222
|
-
return isBech32(address) ? new
|
31199
|
+
return isBech32(address) ? new _Address(address) : this.fromB256(address);
|
31223
31200
|
}
|
31224
31201
|
/**
|
31225
31202
|
* Takes an ambiguous string or address and creates an `Address`
|
@@ -31238,19 +31215,19 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31238
31215
|
*/
|
31239
31216
|
static fromDynamicInput(address) {
|
31240
31217
|
if (typeof address !== "string" && "toB256" in address) {
|
31241
|
-
return
|
31218
|
+
return _Address.fromB256(address.toB256());
|
31242
31219
|
}
|
31243
31220
|
if (isPublicKey(address)) {
|
31244
|
-
return
|
31221
|
+
return _Address.fromPublicKey(address);
|
31245
31222
|
}
|
31246
31223
|
if (isBech32(address)) {
|
31247
|
-
return new
|
31224
|
+
return new _Address(address);
|
31248
31225
|
}
|
31249
31226
|
if (isB256(address)) {
|
31250
|
-
return
|
31227
|
+
return _Address.fromB256(address);
|
31251
31228
|
}
|
31252
31229
|
if (isEvmAddress(address)) {
|
31253
|
-
return
|
31230
|
+
return _Address.fromEvmAddress(address);
|
31254
31231
|
}
|
31255
31232
|
throw new FuelError(
|
31256
31233
|
FuelError.CODES.PARSE_FAILED,
|
@@ -31270,7 +31247,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31270
31247
|
);
|
31271
31248
|
}
|
31272
31249
|
const paddedAddress = padFirst12BytesOfEvmAddress(evmAddress);
|
31273
|
-
return new
|
31250
|
+
return new _Address(toBech32(paddedAddress));
|
31274
31251
|
}
|
31275
31252
|
};
|
31276
31253
|
|
@@ -31298,12 +31275,12 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31298
31275
|
const decimalPortion = decimals ? `.${decimals}` : "";
|
31299
31276
|
return `${units}${decimalPortion}`;
|
31300
31277
|
}
|
31301
|
-
var BN = class extends import_bn.default {
|
31278
|
+
var BN = class _BN extends import_bn.default {
|
31302
31279
|
MAX_U64 = "0xFFFFFFFFFFFFFFFF";
|
31303
31280
|
constructor(value, base, endian) {
|
31304
31281
|
let bnValue = value;
|
31305
31282
|
let bnBase = base;
|
31306
|
-
if (
|
31283
|
+
if (_BN.isBN(value)) {
|
31307
31284
|
bnValue = value.toArray();
|
31308
31285
|
} else if (typeof value === "string" && value.slice(0, 2) === "0x") {
|
31309
31286
|
bnValue = value.substring(2);
|
@@ -31416,26 +31393,26 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31416
31393
|
// END ANCHOR: OVERRIDES to accept better inputs
|
31417
31394
|
// ANCHOR: OVERRIDES to output our BN type
|
31418
31395
|
sqr() {
|
31419
|
-
return new
|
31396
|
+
return new _BN(super.sqr().toArray());
|
31420
31397
|
}
|
31421
31398
|
neg() {
|
31422
|
-
return new
|
31399
|
+
return new _BN(super.neg().toArray());
|
31423
31400
|
}
|
31424
31401
|
abs() {
|
31425
|
-
return new
|
31402
|
+
return new _BN(super.abs().toArray());
|
31426
31403
|
}
|
31427
31404
|
toTwos(width) {
|
31428
|
-
return new
|
31405
|
+
return new _BN(super.toTwos(width).toArray());
|
31429
31406
|
}
|
31430
31407
|
fromTwos(width) {
|
31431
|
-
return new
|
31408
|
+
return new _BN(super.fromTwos(width).toArray());
|
31432
31409
|
}
|
31433
31410
|
// END ANCHOR: OVERRIDES to output our BN type
|
31434
31411
|
// ANCHOR: OVERRIDES to avoid losing references
|
31435
31412
|
caller(v, methodName) {
|
31436
|
-
const output3 = super[methodName](new
|
31437
|
-
if (
|
31438
|
-
return new
|
31413
|
+
const output3 = super[methodName](new _BN(v));
|
31414
|
+
if (_BN.isBN(output3)) {
|
31415
|
+
return new _BN(output3.toArray());
|
31439
31416
|
}
|
31440
31417
|
if (typeof output3 === "boolean") {
|
31441
31418
|
return output3;
|
@@ -31443,32 +31420,32 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31443
31420
|
return output3;
|
31444
31421
|
}
|
31445
31422
|
clone() {
|
31446
|
-
return new
|
31423
|
+
return new _BN(this.toArray());
|
31447
31424
|
}
|
31448
31425
|
mulTo(num, out) {
|
31449
31426
|
const output3 = new import_bn.default(this.toArray()).mulTo(num, out);
|
31450
|
-
return new
|
31427
|
+
return new _BN(output3.toArray());
|
31451
31428
|
}
|
31452
31429
|
egcd(p) {
|
31453
31430
|
const { a, b, gcd } = new import_bn.default(this.toArray()).egcd(p);
|
31454
31431
|
return {
|
31455
|
-
a: new
|
31456
|
-
b: new
|
31457
|
-
gcd: new
|
31432
|
+
a: new _BN(a.toArray()),
|
31433
|
+
b: new _BN(b.toArray()),
|
31434
|
+
gcd: new _BN(gcd.toArray())
|
31458
31435
|
};
|
31459
31436
|
}
|
31460
31437
|
divmod(num, mode, positive) {
|
31461
|
-
const { div, mod: mod2 } = new import_bn.default(this.toArray()).divmod(new
|
31438
|
+
const { div, mod: mod2 } = new import_bn.default(this.toArray()).divmod(new _BN(num), mode, positive);
|
31462
31439
|
return {
|
31463
|
-
div: new
|
31464
|
-
mod: new
|
31440
|
+
div: new _BN(div?.toArray()),
|
31441
|
+
mod: new _BN(mod2?.toArray())
|
31465
31442
|
};
|
31466
31443
|
}
|
31467
31444
|
maxU64() {
|
31468
|
-
return this.gte(this.MAX_U64) ? new
|
31445
|
+
return this.gte(this.MAX_U64) ? new _BN(this.MAX_U64) : this;
|
31469
31446
|
}
|
31470
31447
|
normalizeZeroToOne() {
|
31471
|
-
return this.isZero() ? new
|
31448
|
+
return this.isZero() ? new _BN(1) : this;
|
31472
31449
|
}
|
31473
31450
|
// END ANCHOR: OVERRIDES to avoid losing references
|
31474
31451
|
};
|
@@ -31553,25 +31530,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31553
31530
|
}
|
31554
31531
|
|
31555
31532
|
// ../abi-coder/dist/index.mjs
|
31556
|
-
var __defProp4 = Object.defineProperty;
|
31557
|
-
var __defNormalProp4 = (obj, key, value) => key in obj ? __defProp4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
31558
|
-
var __publicField4 = (obj, key, value) => {
|
31559
|
-
__defNormalProp4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
31560
|
-
return value;
|
31561
|
-
};
|
31562
|
-
var __accessCheck2 = (obj, member, msg) => {
|
31563
|
-
if (!member.has(obj))
|
31564
|
-
throw TypeError("Cannot " + msg);
|
31565
|
-
};
|
31566
|
-
var __privateAdd2 = (obj, member, value) => {
|
31567
|
-
if (member.has(obj))
|
31568
|
-
throw TypeError("Cannot add the same private member more than once");
|
31569
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
31570
|
-
};
|
31571
|
-
var __privateMethod2 = (obj, member, method) => {
|
31572
|
-
__accessCheck2(obj, member, "access private method");
|
31573
|
-
return method;
|
31574
|
-
};
|
31575
31533
|
var Coder = class {
|
31576
31534
|
name;
|
31577
31535
|
type;
|
@@ -31910,12 +31868,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31910
31868
|
return [true, offset + this.paddingLength];
|
31911
31869
|
}
|
31912
31870
|
};
|
31913
|
-
var _getPaddedData;
|
31914
|
-
var getPaddedData_fn;
|
31915
31871
|
var ByteCoder = class extends Coder {
|
31872
|
+
static memorySize = 1;
|
31916
31873
|
constructor() {
|
31917
31874
|
super("struct", "struct Bytes", BASE_VECTOR_OFFSET);
|
31918
|
-
__privateAdd2(this, _getPaddedData);
|
31919
31875
|
}
|
31920
31876
|
encode(value) {
|
31921
31877
|
if (!Array.isArray(value)) {
|
@@ -31923,7 +31879,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31923
31879
|
}
|
31924
31880
|
const parts = [];
|
31925
31881
|
const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
|
31926
|
-
const data =
|
31882
|
+
const data = this.#getPaddedData(value);
|
31927
31883
|
pointer.dynamicData = {
|
31928
31884
|
0: concatWithDynamicData([data])
|
31929
31885
|
};
|
@@ -31932,6 +31888,14 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31932
31888
|
parts.push(new BigNumberCoder("u64").encode(value.length));
|
31933
31889
|
return concatWithDynamicData(parts);
|
31934
31890
|
}
|
31891
|
+
#getPaddedData(value) {
|
31892
|
+
const data = [Uint8Array.from(value)];
|
31893
|
+
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
31894
|
+
if (paddingLength) {
|
31895
|
+
data.push(new Uint8Array(paddingLength));
|
31896
|
+
}
|
31897
|
+
return concat(data);
|
31898
|
+
}
|
31935
31899
|
decode(data, offset) {
|
31936
31900
|
if (data.length < BASE_VECTOR_OFFSET) {
|
31937
31901
|
throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid byte data size.`);
|
@@ -31945,16 +31909,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31945
31909
|
return [byteData, offset + BASE_VECTOR_OFFSET];
|
31946
31910
|
}
|
31947
31911
|
};
|
31948
|
-
_getPaddedData = /* @__PURE__ */ new WeakSet();
|
31949
|
-
getPaddedData_fn = function(value) {
|
31950
|
-
const data = [Uint8Array.from(value)];
|
31951
|
-
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
31952
|
-
if (paddingLength) {
|
31953
|
-
data.push(new Uint8Array(paddingLength));
|
31954
|
-
}
|
31955
|
-
return concat(data);
|
31956
|
-
};
|
31957
|
-
__publicField4(ByteCoder, "memorySize", 1);
|
31958
31912
|
var isFullyNativeEnum = (enumCoders) => Object.values(enumCoders).every(
|
31959
31913
|
// @ts-expect-error complicated types
|
31960
31914
|
({ type: type3, coders }) => type3 === "()" && JSON.stringify(coders) === JSON.stringify([])
|
@@ -32153,17 +32107,15 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32153
32107
|
return [decodedValue, offset + dataBytes.length];
|
32154
32108
|
}
|
32155
32109
|
};
|
32156
|
-
var _getPaddedData2;
|
32157
|
-
var getPaddedData_fn2;
|
32158
32110
|
var StdStringCoder = class extends Coder {
|
32111
|
+
static memorySize = 1;
|
32159
32112
|
constructor() {
|
32160
32113
|
super("struct", "struct String", 1);
|
32161
|
-
__privateAdd2(this, _getPaddedData2);
|
32162
32114
|
}
|
32163
32115
|
encode(value) {
|
32164
32116
|
const parts = [];
|
32165
32117
|
const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
|
32166
|
-
const data =
|
32118
|
+
const data = this.#getPaddedData(value);
|
32167
32119
|
pointer.dynamicData = {
|
32168
32120
|
0: concatWithDynamicData([data])
|
32169
32121
|
};
|
@@ -32172,6 +32124,14 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32172
32124
|
parts.push(new BigNumberCoder("u64").encode(value.length));
|
32173
32125
|
return concatWithDynamicData(parts);
|
32174
32126
|
}
|
32127
|
+
#getPaddedData(value) {
|
32128
|
+
const data = [toUtf8Bytes(value)];
|
32129
|
+
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
32130
|
+
if (paddingLength) {
|
32131
|
+
data.push(new Uint8Array(paddingLength));
|
32132
|
+
}
|
32133
|
+
return concat(data);
|
32134
|
+
}
|
32175
32135
|
decode(data, offset) {
|
32176
32136
|
if (data.length < this.encodedLength) {
|
32177
32137
|
throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid std string data size.`);
|
@@ -32186,16 +32146,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32186
32146
|
return [value, offset + BASE_VECTOR_OFFSET];
|
32187
32147
|
}
|
32188
32148
|
};
|
32189
|
-
_getPaddedData2 = /* @__PURE__ */ new WeakSet();
|
32190
|
-
getPaddedData_fn2 = function(value) {
|
32191
|
-
const data = [toUtf8Bytes(value)];
|
32192
|
-
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
32193
|
-
if (paddingLength) {
|
32194
|
-
data.push(new Uint8Array(paddingLength));
|
32195
|
-
}
|
32196
|
-
return concat(data);
|
32197
|
-
};
|
32198
|
-
__publicField4(StdStringCoder, "memorySize", 1);
|
32199
32149
|
var StringCoder = class extends Coder {
|
32200
32150
|
length;
|
32201
32151
|
#paddingLength;
|
@@ -32351,7 +32301,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32351
32301
|
];
|
32352
32302
|
}
|
32353
32303
|
};
|
32354
|
-
var ResolvedAbiType = class {
|
32304
|
+
var ResolvedAbiType = class _ResolvedAbiType {
|
32355
32305
|
abi;
|
32356
32306
|
name;
|
32357
32307
|
type;
|
@@ -32375,11 +32325,11 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32375
32325
|
this.name = argument.name;
|
32376
32326
|
this.type = type3.type;
|
32377
32327
|
this.originalTypeArguments = argument.typeArguments;
|
32378
|
-
this.components =
|
32328
|
+
this.components = _ResolvedAbiType.getResolvedGenericComponents(
|
32379
32329
|
abi,
|
32380
32330
|
argument,
|
32381
32331
|
type3.components,
|
32382
|
-
type3.typeParameters ??
|
32332
|
+
type3.typeParameters ?? _ResolvedAbiType.getImplicitGenericTypeParameters(abi, type3.components)
|
32383
32333
|
);
|
32384
32334
|
}
|
32385
32335
|
static getResolvedGenericComponents(abi, arg, components, typeParameters) {
|
@@ -32387,7 +32337,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32387
32337
|
return null;
|
32388
32338
|
}
|
32389
32339
|
if (typeParameters === null || typeParameters.length === 0) {
|
32390
|
-
return components.map((c) => new
|
32340
|
+
return components.map((c) => new _ResolvedAbiType(abi, c));
|
32391
32341
|
}
|
32392
32342
|
const typeParametersAndArgsMap = typeParameters.reduce(
|
32393
32343
|
(obj, typeParameter, typeParameterIndex) => {
|
@@ -32404,7 +32354,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32404
32354
|
components,
|
32405
32355
|
typeParametersAndArgsMap
|
32406
32356
|
);
|
32407
|
-
return resolvedComponents.map((c) => new
|
32357
|
+
return resolvedComponents.map((c) => new _ResolvedAbiType(abi, c));
|
32408
32358
|
}
|
32409
32359
|
static resolveGenericArgTypes(abi, args, typeParametersAndArgsMap) {
|
32410
32360
|
return args.map((arg) => {
|
@@ -32491,7 +32441,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32491
32441
|
if (arrayMatch) {
|
32492
32442
|
return `[${this.components[0].getSignature()};${arrayMatch.length}]`;
|
32493
32443
|
}
|
32494
|
-
const typeArgumentsSignature = this.originalTypeArguments !== null ? `<${this.originalTypeArguments.map((a) => new
|
32444
|
+
const typeArgumentsSignature = this.originalTypeArguments !== null ? `<${this.originalTypeArguments.map((a) => new _ResolvedAbiType(this.abi, a).getSignature()).join(",")}>` : "";
|
32495
32445
|
const componentsSignature = `(${this.components.map((c) => c.getSignature()).join(",")})`;
|
32496
32446
|
return `${typeArgumentsSignature}${componentsSignature}`;
|
32497
32447
|
}
|
@@ -32619,6 +32569,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32619
32569
|
}
|
32620
32570
|
};
|
32621
32571
|
var ByteCoder2 = class extends Coder {
|
32572
|
+
static memorySize = 1;
|
32622
32573
|
constructor() {
|
32623
32574
|
super("struct", "struct Bytes", WORD_SIZE);
|
32624
32575
|
}
|
@@ -32644,7 +32595,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32644
32595
|
return [dataBytes, offsetAndLength + length];
|
32645
32596
|
}
|
32646
32597
|
};
|
32647
|
-
__publicField4(ByteCoder2, "memorySize", 1);
|
32648
32598
|
var isFullyNativeEnum2 = (enumCoders) => Object.values(enumCoders).every(
|
32649
32599
|
// @ts-expect-error complicated types
|
32650
32600
|
({ type: type3, coders }) => type3 === "()" && JSON.stringify(coders) === JSON.stringify([])
|
@@ -32788,6 +32738,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32788
32738
|
}
|
32789
32739
|
};
|
32790
32740
|
var StdStringCoder2 = class extends Coder {
|
32741
|
+
static memorySize = 1;
|
32791
32742
|
constructor() {
|
32792
32743
|
super("struct", "struct String", WORD_SIZE);
|
32793
32744
|
}
|
@@ -32810,7 +32761,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32810
32761
|
return [toUtf8String(dataBytes), offsetAndLength + length];
|
32811
32762
|
}
|
32812
32763
|
};
|
32813
|
-
__publicField4(StdStringCoder2, "memorySize", 1);
|
32814
32764
|
var StringCoder2 = class extends Coder {
|
32815
32765
|
constructor(length) {
|
32816
32766
|
super("string", `str[${length}]`, length);
|
@@ -33050,7 +33000,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33050
33000
|
return this.getCoder(abi, argument, options).decode(data, offset);
|
33051
33001
|
}
|
33052
33002
|
};
|
33053
|
-
var FunctionFragment = class {
|
33003
|
+
var FunctionFragment = class _FunctionFragment {
|
33054
33004
|
signature;
|
33055
33005
|
selector;
|
33056
33006
|
name;
|
@@ -33063,8 +33013,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33063
33013
|
this.jsonAbi = jsonAbi;
|
33064
33014
|
this.jsonFn = findOrThrow(this.jsonAbi.functions, (f2) => f2.name === name);
|
33065
33015
|
this.name = name;
|
33066
|
-
this.signature =
|
33067
|
-
this.selector =
|
33016
|
+
this.signature = _FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
|
33017
|
+
this.selector = _FunctionFragment.getFunctionSelector(this.signature);
|
33068
33018
|
this.isInputDataPointer = this.#isInputDataPointer();
|
33069
33019
|
this.outputMetadata = {
|
33070
33020
|
isHeapType: this.#isOutputDataHeap(),
|
@@ -33107,7 +33057,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33107
33057
|
}
|
33108
33058
|
}
|
33109
33059
|
encodeArguments(values, offset = 0) {
|
33110
|
-
|
33060
|
+
_FunctionFragment.verifyArgsAndInputsAlign(values, this.jsonFn.inputs, this.jsonAbi);
|
33111
33061
|
const shallowCopyValues = values.slice();
|
33112
33062
|
const nonEmptyInputs = this.jsonFn.inputs.filter(
|
33113
33063
|
(x) => findOrThrow(this.jsonAbi.types, (t) => t.typeId === x.type).type !== "()"
|
@@ -33458,7 +33408,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33458
33408
|
];
|
33459
33409
|
}
|
33460
33410
|
};
|
33461
|
-
var InputMessageCoder = class extends Coder {
|
33411
|
+
var InputMessageCoder = class _InputMessageCoder extends Coder {
|
33462
33412
|
constructor() {
|
33463
33413
|
super("InputMessage", "struct InputMessage", 0);
|
33464
33414
|
}
|
@@ -33478,7 +33428,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33478
33428
|
}
|
33479
33429
|
encode(value) {
|
33480
33430
|
const parts = [];
|
33481
|
-
const data =
|
33431
|
+
const data = _InputMessageCoder.encodeData(value.data);
|
33482
33432
|
parts.push(new ByteArrayCoder(32).encode(value.sender));
|
33483
33433
|
parts.push(new ByteArrayCoder(32).encode(value.recipient));
|
33484
33434
|
parts.push(new BigNumberCoder("u64").encode(value.amount));
|
@@ -33922,7 +33872,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33922
33872
|
ReceiptType2[ReceiptType2["Burn"] = 12] = "Burn";
|
33923
33873
|
return ReceiptType2;
|
33924
33874
|
})(ReceiptType || {});
|
33925
|
-
var ReceiptMessageOutCoder = class extends Coder {
|
33875
|
+
var ReceiptMessageOutCoder = class _ReceiptMessageOutCoder extends Coder {
|
33926
33876
|
constructor() {
|
33927
33877
|
super("ReceiptMessageOut", "struct ReceiptMessageOut", 0);
|
33928
33878
|
}
|
@@ -33973,7 +33923,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33973
33923
|
digest,
|
33974
33924
|
data: messageData
|
33975
33925
|
};
|
33976
|
-
receiptMessageOut.messageId =
|
33926
|
+
receiptMessageOut.messageId = _ReceiptMessageOutCoder.getMessageId(receiptMessageOut);
|
33977
33927
|
return [receiptMessageOut, o];
|
33978
33928
|
}
|
33979
33929
|
};
|
@@ -33982,7 +33932,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33982
33932
|
const subIdBytes = arrayify(subId);
|
33983
33933
|
return sha2563(concat([contractIdBytes, subIdBytes]));
|
33984
33934
|
};
|
33985
|
-
var ReceiptMintCoder = class extends Coder {
|
33935
|
+
var ReceiptMintCoder = class _ReceiptMintCoder extends Coder {
|
33986
33936
|
constructor() {
|
33987
33937
|
super("ReceiptMint", "struct ReceiptMint", 0);
|
33988
33938
|
}
|
@@ -34011,7 +33961,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34011
33961
|
const pc = decoded;
|
34012
33962
|
[decoded, o] = new BigNumberCoder("u64").decode(data, o);
|
34013
33963
|
const is = decoded;
|
34014
|
-
const assetId =
|
33964
|
+
const assetId = _ReceiptMintCoder.getAssetId(contractId, subId);
|
34015
33965
|
const receiptMint = {
|
34016
33966
|
type: 11,
|
34017
33967
|
subId,
|
@@ -34870,7 +34820,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34870
34820
|
}
|
34871
34821
|
return firstArg;
|
34872
34822
|
}
|
34873
|
-
var GraphQLError = class extends Error {
|
34823
|
+
var GraphQLError = class _GraphQLError extends Error {
|
34874
34824
|
/**
|
34875
34825
|
* An array of `{ line, column }` locations within the source GraphQL document
|
34876
34826
|
* which correspond to this error.
|
@@ -34957,7 +34907,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34957
34907
|
configurable: true
|
34958
34908
|
});
|
34959
34909
|
} else if (Error.captureStackTrace) {
|
34960
|
-
Error.captureStackTrace(this,
|
34910
|
+
Error.captureStackTrace(this, _GraphQLError);
|
34961
34911
|
} else {
|
34962
34912
|
Object.defineProperty(this, "stack", {
|
34963
34913
|
value: Error().stack,
|
@@ -38721,11 +38671,12 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
38721
38671
|
}
|
38722
38672
|
|
38723
38673
|
// src/providers/fuel-graphql-subscriber.ts
|
38724
|
-
var
|
38674
|
+
var FuelGraphqlSubscriber = class _FuelGraphqlSubscriber {
|
38725
38675
|
constructor(options) {
|
38726
38676
|
this.options = options;
|
38727
38677
|
}
|
38728
38678
|
stream;
|
38679
|
+
static textDecoder = new TextDecoder();
|
38729
38680
|
async setStream() {
|
38730
38681
|
const { url, query, variables, fetchFn } = this.options;
|
38731
38682
|
const response = await fetchFn(`${url}-sub`, {
|
@@ -38785,8 +38736,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
38785
38736
|
return this;
|
38786
38737
|
}
|
38787
38738
|
};
|
38788
|
-
var FuelGraphqlSubscriber = _FuelGraphqlSubscriber;
|
38789
|
-
__publicField(FuelGraphqlSubscriber, "textDecoder", new TextDecoder());
|
38790
38739
|
|
38791
38740
|
// src/providers/memory-cache.ts
|
38792
38741
|
var cache = {};
|
@@ -39385,7 +39334,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
39385
39334
|
};
|
39386
39335
|
|
39387
39336
|
// src/providers/transaction-request/transaction-request.ts
|
39388
|
-
var BaseTransactionRequest = class {
|
39337
|
+
var BaseTransactionRequest = class _BaseTransactionRequest {
|
39389
39338
|
/** Gas price for transaction */
|
39390
39339
|
gasPrice;
|
39391
39340
|
/** Block until which tx cannot be included */
|
@@ -39455,7 +39404,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
39455
39404
|
const inputs = this.inputs?.map(inputify) ?? [];
|
39456
39405
|
const outputs = this.outputs?.map(outputify) ?? [];
|
39457
39406
|
const witnesses = this.witnesses?.map(witnessify) ?? [];
|
39458
|
-
const { policyTypes, policies } =
|
39407
|
+
const { policyTypes, policies } = _BaseTransactionRequest.getPolicyMeta(this);
|
39459
39408
|
return {
|
39460
39409
|
policyTypes,
|
39461
39410
|
inputs,
|
@@ -40991,7 +40940,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
40991
40940
|
}
|
40992
40941
|
|
40993
40942
|
// src/providers/transaction-response/transaction-response.ts
|
40994
|
-
var TransactionResponse2 = class {
|
40943
|
+
var TransactionResponse2 = class _TransactionResponse {
|
40995
40944
|
/** Transaction ID */
|
40996
40945
|
id;
|
40997
40946
|
/** Current provider */
|
@@ -41019,7 +40968,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
41019
40968
|
* @param provider - The provider.
|
41020
40969
|
*/
|
41021
40970
|
static async create(id, provider) {
|
41022
|
-
const response = new
|
40971
|
+
const response = new _TransactionResponse(id, provider);
|
41023
40972
|
await response.fetch();
|
41024
40973
|
return response;
|
41025
40974
|
}
|
@@ -41245,8 +41194,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
41245
41194
|
}
|
41246
41195
|
};
|
41247
41196
|
};
|
41248
|
-
var
|
41249
|
-
var _Provider = class {
|
41197
|
+
var Provider = class _Provider {
|
41250
41198
|
/**
|
41251
41199
|
* Constructor to initialize a Provider.
|
41252
41200
|
*
|
@@ -41257,27 +41205,25 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
41257
41205
|
*/
|
41258
41206
|
constructor(url, options = {}) {
|
41259
41207
|
this.url = url;
|
41260
|
-
/**
|
41261
|
-
* @hidden
|
41262
|
-
*/
|
41263
|
-
__privateAdd(this, _cacheInputs);
|
41264
|
-
__publicField(this, "operations");
|
41265
|
-
__publicField(this, "cache");
|
41266
|
-
__publicField(this, "options", {
|
41267
|
-
timeout: void 0,
|
41268
|
-
cacheUtxo: void 0,
|
41269
|
-
fetch: void 0,
|
41270
|
-
retryOptions: void 0
|
41271
|
-
});
|
41272
41208
|
this.options = { ...this.options, ...options };
|
41273
41209
|
this.url = url;
|
41274
41210
|
this.operations = this.createOperations();
|
41275
41211
|
this.cache = options.cacheUtxo ? new MemoryCache(options.cacheUtxo) : void 0;
|
41276
41212
|
}
|
41213
|
+
operations;
|
41214
|
+
cache;
|
41277
41215
|
static clearChainAndNodeCaches() {
|
41278
41216
|
_Provider.nodeInfoCache = {};
|
41279
41217
|
_Provider.chainInfoCache = {};
|
41280
41218
|
}
|
41219
|
+
static chainInfoCache = {};
|
41220
|
+
static nodeInfoCache = {};
|
41221
|
+
options = {
|
41222
|
+
timeout: void 0,
|
41223
|
+
cacheUtxo: void 0,
|
41224
|
+
fetch: void 0,
|
41225
|
+
retryOptions: void 0
|
41226
|
+
};
|
41281
41227
|
static getFetchFn(options) {
|
41282
41228
|
const { retryOptions, timeout } = options;
|
41283
41229
|
return autoRetryFetch(async (...args) => {
|
@@ -41474,6 +41420,19 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
41474
41420
|
} = this.getChain();
|
41475
41421
|
return chainId.toNumber();
|
41476
41422
|
}
|
41423
|
+
/**
|
41424
|
+
* @hidden
|
41425
|
+
*/
|
41426
|
+
#cacheInputs(inputs) {
|
41427
|
+
if (!this.cache) {
|
41428
|
+
return;
|
41429
|
+
}
|
41430
|
+
inputs.forEach((input) => {
|
41431
|
+
if (input.type === InputType.Coin) {
|
41432
|
+
this.cache?.set(input.id);
|
41433
|
+
}
|
41434
|
+
});
|
41435
|
+
}
|
41477
41436
|
/**
|
41478
41437
|
* Submits a transaction to the chain to be executed.
|
41479
41438
|
*
|
@@ -41486,7 +41445,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
41486
41445
|
// #region Provider-sendTransaction
|
41487
41446
|
async sendTransaction(transactionRequestLike, { estimateTxDependencies = true, awaitExecution = false } = {}) {
|
41488
41447
|
const transactionRequest = transactionRequestify(transactionRequestLike);
|
41489
|
-
|
41448
|
+
this.#cacheInputs(transactionRequest.inputs);
|
41490
41449
|
if (estimateTxDependencies) {
|
41491
41450
|
await this.estimateTxDependencies(transactionRequest);
|
41492
41451
|
}
|
@@ -42111,20 +42070,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42111
42070
|
return new TransactionResponse2(transactionId, this);
|
42112
42071
|
}
|
42113
42072
|
};
|
42114
|
-
var Provider = _Provider;
|
42115
|
-
_cacheInputs = new WeakSet();
|
42116
|
-
cacheInputs_fn = function(inputs) {
|
42117
|
-
if (!this.cache) {
|
42118
|
-
return;
|
42119
|
-
}
|
42120
|
-
inputs.forEach((input) => {
|
42121
|
-
if (input.type === InputType.Coin) {
|
42122
|
-
this.cache?.set(input.id);
|
42123
|
-
}
|
42124
|
-
});
|
42125
|
-
};
|
42126
|
-
__publicField(Provider, "chainInfoCache", {});
|
42127
|
-
__publicField(Provider, "nodeInfoCache", {});
|
42128
42073
|
|
42129
42074
|
// src/providers/transaction-summary/get-transaction-summary.ts
|
42130
42075
|
async function getTransactionSummary(params) {
|
@@ -44047,7 +43992,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44047
43992
|
var Point = secp256k1.ProjectivePoint;
|
44048
43993
|
|
44049
43994
|
// src/signer/signer.ts
|
44050
|
-
var Signer = class {
|
43995
|
+
var Signer = class _Signer {
|
44051
43996
|
address;
|
44052
43997
|
publicKey;
|
44053
43998
|
compressedPublicKey;
|
@@ -44126,7 +44071,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44126
44071
|
* @returns Address from signature
|
44127
44072
|
*/
|
44128
44073
|
static recoverAddress(data, signature) {
|
44129
|
-
return Address.fromPublicKey(
|
44074
|
+
return Address.fromPublicKey(_Signer.recoverPublicKey(data, signature));
|
44130
44075
|
}
|
44131
44076
|
/**
|
44132
44077
|
* Generate a random privateKey
|
@@ -44284,6 +44229,10 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44284
44229
|
|
44285
44230
|
// src/wallet/base-wallet-unlocked.ts
|
44286
44231
|
var BaseWalletUnlocked = class extends Account {
|
44232
|
+
/**
|
44233
|
+
* Default HDWallet path.
|
44234
|
+
*/
|
44235
|
+
static defaultPath = "m/44'/1179993420'/0'/0/0";
|
44287
44236
|
/**
|
44288
44237
|
* A function that returns the wallet's signer.
|
44289
44238
|
*/
|
@@ -44389,10 +44338,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44389
44338
|
return encryptKeystoreWallet(this.privateKey, this.address, password);
|
44390
44339
|
}
|
44391
44340
|
};
|
44392
|
-
/**
|
44393
|
-
* Default HDWallet path.
|
44394
|
-
*/
|
44395
|
-
__publicField(BaseWalletUnlocked, "defaultPath", "m/44'/1179993420'/0'/0/0");
|
44396
44341
|
|
44397
44342
|
// src/wordlists/words/english.ts
|
44398
44343
|
var english = [
|
@@ -46585,7 +46530,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46585
46530
|
throw new FuelError(ErrorCode.INVALID_MNEMONIC, errorMsg);
|
46586
46531
|
}
|
46587
46532
|
}
|
46588
|
-
var Mnemonic = class {
|
46533
|
+
var Mnemonic = class _Mnemonic {
|
46589
46534
|
wordlist;
|
46590
46535
|
/**
|
46591
46536
|
*
|
@@ -46602,7 +46547,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46602
46547
|
* @returns Entropy hash
|
46603
46548
|
*/
|
46604
46549
|
mnemonicToEntropy(phrase) {
|
46605
|
-
return
|
46550
|
+
return _Mnemonic.mnemonicToEntropy(phrase, this.wordlist);
|
46606
46551
|
}
|
46607
46552
|
/**
|
46608
46553
|
*
|
@@ -46610,7 +46555,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46610
46555
|
* @returns Mnemonic phrase
|
46611
46556
|
*/
|
46612
46557
|
entropyToMnemonic(entropy) {
|
46613
|
-
return
|
46558
|
+
return _Mnemonic.entropyToMnemonic(entropy, this.wordlist);
|
46614
46559
|
}
|
46615
46560
|
/**
|
46616
46561
|
*
|
@@ -46651,8 +46596,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46651
46596
|
* @returns 64-byte array contains privateKey and chainCode as described on BIP39
|
46652
46597
|
*/
|
46653
46598
|
static mnemonicToMasterKeys(phrase, passphrase = "") {
|
46654
|
-
const seed =
|
46655
|
-
return
|
46599
|
+
const seed = _Mnemonic.mnemonicToSeed(phrase, passphrase);
|
46600
|
+
return _Mnemonic.masterKeysFromSeed(seed);
|
46656
46601
|
}
|
46657
46602
|
/**
|
46658
46603
|
* Validates if given mnemonic is valid
|
@@ -46668,7 +46613,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46668
46613
|
return false;
|
46669
46614
|
}
|
46670
46615
|
while (i < words.length) {
|
46671
|
-
if (
|
46616
|
+
if (_Mnemonic.binarySearch(words[i]) === false) {
|
46672
46617
|
return false;
|
46673
46618
|
}
|
46674
46619
|
i += 1;
|
@@ -46715,7 +46660,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46715
46660
|
* @returns BIP-32 extended private key
|
46716
46661
|
*/
|
46717
46662
|
static seedToExtendedKey(seed, testnet = false) {
|
46718
|
-
const masterKey =
|
46663
|
+
const masterKey = _Mnemonic.masterKeysFromSeed(seed);
|
46719
46664
|
const prefix = arrayify(testnet ? TestnetPRV : MainnetPRV);
|
46720
46665
|
const depth = "0x00";
|
46721
46666
|
const fingerprint = "0x00000000";
|
@@ -46747,7 +46692,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46747
46692
|
*/
|
46748
46693
|
static generate(size = 32, extraEntropy = "") {
|
46749
46694
|
const entropy = extraEntropy ? sha2563(concat([randomBytes22(size), arrayify(extraEntropy)])) : randomBytes22(size);
|
46750
|
-
return
|
46695
|
+
return _Mnemonic.entropyToMnemonic(entropy);
|
46751
46696
|
}
|
46752
46697
|
};
|
46753
46698
|
var mnemonic_default = Mnemonic;
|
@@ -46787,7 +46732,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46787
46732
|
(p) => ~p.indexOf(`'`) ? parseInt(p, 10) + HARDENED_INDEX : parseInt(p, 10)
|
46788
46733
|
);
|
46789
46734
|
}
|
46790
|
-
var HDWallet = class {
|
46735
|
+
var HDWallet = class _HDWallet {
|
46791
46736
|
depth = 0;
|
46792
46737
|
index = 0;
|
46793
46738
|
fingerprint = hexlify("0x00000000");
|
@@ -46853,7 +46798,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46853
46798
|
if (privateKey) {
|
46854
46799
|
const N = "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141";
|
46855
46800
|
const ki = bn(IL).add(privateKey).mod(N).toBytes(32);
|
46856
|
-
return new
|
46801
|
+
return new _HDWallet({
|
46857
46802
|
privateKey: ki,
|
46858
46803
|
chainCode: IR,
|
46859
46804
|
index,
|
@@ -46863,7 +46808,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46863
46808
|
}
|
46864
46809
|
const signer = new Signer(hexlify(IL));
|
46865
46810
|
const Ki = signer.addPoint(publicKey);
|
46866
|
-
return new
|
46811
|
+
return new _HDWallet({
|
46867
46812
|
publicKey: Ki,
|
46868
46813
|
chainCode: IR,
|
46869
46814
|
index,
|
@@ -46912,7 +46857,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46912
46857
|
*/
|
46913
46858
|
static fromSeed(seed) {
|
46914
46859
|
const masterKey = mnemonic_default.masterKeysFromSeed(seed);
|
46915
|
-
return new
|
46860
|
+
return new _HDWallet({
|
46916
46861
|
chainCode: arrayify(masterKey.slice(32)),
|
46917
46862
|
privateKey: arrayify(masterKey.slice(0, 32))
|
46918
46863
|
});
|
@@ -46942,7 +46887,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46942
46887
|
if (key[0] !== 3) {
|
46943
46888
|
throw new FuelError(ErrorCode.HD_WALLET_ERROR, "Invalid public extended key.");
|
46944
46889
|
}
|
46945
|
-
return new
|
46890
|
+
return new _HDWallet({
|
46946
46891
|
publicKey: key,
|
46947
46892
|
chainCode,
|
46948
46893
|
index,
|
@@ -46953,7 +46898,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46953
46898
|
if (key[0] !== 0) {
|
46954
46899
|
throw new FuelError(ErrorCode.HD_WALLET_ERROR, "Invalid private extended key.");
|
46955
46900
|
}
|
46956
|
-
return new
|
46901
|
+
return new _HDWallet({
|
46957
46902
|
privateKey: key.slice(1),
|
46958
46903
|
chainCode,
|
46959
46904
|
index,
|
@@ -46976,7 +46921,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46976
46921
|
return new WalletUnlocked(privateKey, this._provider);
|
46977
46922
|
}
|
46978
46923
|
};
|
46979
|
-
var WalletUnlocked = class extends BaseWalletUnlocked {
|
46924
|
+
var WalletUnlocked = class _WalletUnlocked extends BaseWalletUnlocked {
|
46980
46925
|
/**
|
46981
46926
|
* Locks the wallet and returns an instance of WalletLocked.
|
46982
46927
|
*
|
@@ -46994,7 +46939,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
46994
46939
|
*/
|
46995
46940
|
static generate(generateOptions) {
|
46996
46941
|
const privateKey = Signer.generatePrivateKey(generateOptions?.entropy);
|
46997
|
-
return new
|
46942
|
+
return new _WalletUnlocked(privateKey, generateOptions?.provider);
|
46998
46943
|
}
|
46999
46944
|
/**
|
47000
46945
|
* Create a Wallet Unlocked from a seed.
|
@@ -47006,8 +46951,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47006
46951
|
*/
|
47007
46952
|
static fromSeed(seed, path, provider) {
|
47008
46953
|
const hdWallet = hdwallet_default.fromSeed(seed);
|
47009
|
-
const childWallet = hdWallet.derivePath(path ||
|
47010
|
-
return new
|
46954
|
+
const childWallet = hdWallet.derivePath(path || _WalletUnlocked.defaultPath);
|
46955
|
+
return new _WalletUnlocked(childWallet.privateKey, provider);
|
47011
46956
|
}
|
47012
46957
|
/**
|
47013
46958
|
* Create a Wallet Unlocked from a mnemonic phrase.
|
@@ -47021,8 +46966,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47021
46966
|
static fromMnemonic(mnemonic, path, passphrase, provider) {
|
47022
46967
|
const seed = mnemonic_default.mnemonicToSeed(mnemonic, passphrase);
|
47023
46968
|
const hdWallet = hdwallet_default.fromSeed(seed);
|
47024
|
-
const childWallet = hdWallet.derivePath(path ||
|
47025
|
-
return new
|
46969
|
+
const childWallet = hdWallet.derivePath(path || _WalletUnlocked.defaultPath);
|
46970
|
+
return new _WalletUnlocked(childWallet.privateKey, provider);
|
47026
46971
|
}
|
47027
46972
|
/**
|
47028
46973
|
* Create a Wallet Unlocked from an extended key.
|
@@ -47033,7 +46978,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47033
46978
|
*/
|
47034
46979
|
static fromExtendedKey(extendedKey, provider) {
|
47035
46980
|
const hdWallet = hdwallet_default.fromExtendedKey(extendedKey);
|
47036
|
-
return new
|
46981
|
+
return new _WalletUnlocked(hdWallet.privateKey, provider);
|
47037
46982
|
}
|
47038
46983
|
/**
|
47039
46984
|
* Create a Wallet Unlocked from an encrypted JSON.
|
@@ -47045,7 +46990,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47045
46990
|
*/
|
47046
46991
|
static async fromEncryptedJson(jsonWallet, password, provider) {
|
47047
46992
|
const privateKey = await decryptKeystoreWallet(jsonWallet, password);
|
47048
|
-
return new
|
46993
|
+
return new _WalletUnlocked(privateKey, provider);
|
47049
46994
|
}
|
47050
46995
|
};
|
47051
46996
|
|
@@ -47071,50 +47016,50 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47071
47016
|
static fromPrivateKey(privateKey, provider) {
|
47072
47017
|
return new WalletUnlocked(privateKey, provider);
|
47073
47018
|
}
|
47019
|
+
/**
|
47020
|
+
* Generate a new Wallet Unlocked with a random key pair.
|
47021
|
+
*
|
47022
|
+
* @param generateOptions - Options to customize the generation process (optional).
|
47023
|
+
* @returns An unlocked wallet instance.
|
47024
|
+
*/
|
47025
|
+
static generate = WalletUnlocked.generate;
|
47026
|
+
/**
|
47027
|
+
* Create a Wallet Unlocked from a seed.
|
47028
|
+
*
|
47029
|
+
* @param seed - The seed phrase.
|
47030
|
+
* @param provider - A Provider instance (optional).
|
47031
|
+
* @param path - The derivation path (optional).
|
47032
|
+
* @returns An unlocked wallet instance.
|
47033
|
+
*/
|
47034
|
+
static fromSeed = WalletUnlocked.fromSeed;
|
47035
|
+
/**
|
47036
|
+
* Create a Wallet Unlocked from a mnemonic phrase.
|
47037
|
+
*
|
47038
|
+
* @param mnemonic - The mnemonic phrase.
|
47039
|
+
* @param provider - A Provider instance (optional).
|
47040
|
+
* @param path - The derivation path (optional).
|
47041
|
+
* @param passphrase - The passphrase for the mnemonic (optional).
|
47042
|
+
* @returns An unlocked wallet instance.
|
47043
|
+
*/
|
47044
|
+
static fromMnemonic = WalletUnlocked.fromMnemonic;
|
47045
|
+
/**
|
47046
|
+
* Create a Wallet Unlocked from an extended key.
|
47047
|
+
*
|
47048
|
+
* @param extendedKey - The extended key.
|
47049
|
+
* @param provider - A Provider instance (optional).
|
47050
|
+
* @returns An unlocked wallet instance.
|
47051
|
+
*/
|
47052
|
+
static fromExtendedKey = WalletUnlocked.fromExtendedKey;
|
47053
|
+
/**
|
47054
|
+
* Create a Wallet Unlocked from an encrypted JSON.
|
47055
|
+
*
|
47056
|
+
* @param jsonWallet - The encrypted JSON keystore.
|
47057
|
+
* @param password - The password to decrypt the JSON.
|
47058
|
+
* @param provider - A Provider instance (optional).
|
47059
|
+
* @returns An unlocked wallet instance.
|
47060
|
+
*/
|
47061
|
+
static fromEncryptedJson = WalletUnlocked.fromEncryptedJson;
|
47074
47062
|
};
|
47075
|
-
/**
|
47076
|
-
* Generate a new Wallet Unlocked with a random key pair.
|
47077
|
-
*
|
47078
|
-
* @param generateOptions - Options to customize the generation process (optional).
|
47079
|
-
* @returns An unlocked wallet instance.
|
47080
|
-
*/
|
47081
|
-
__publicField(Wallet, "generate", WalletUnlocked.generate);
|
47082
|
-
/**
|
47083
|
-
* Create a Wallet Unlocked from a seed.
|
47084
|
-
*
|
47085
|
-
* @param seed - The seed phrase.
|
47086
|
-
* @param provider - A Provider instance (optional).
|
47087
|
-
* @param path - The derivation path (optional).
|
47088
|
-
* @returns An unlocked wallet instance.
|
47089
|
-
*/
|
47090
|
-
__publicField(Wallet, "fromSeed", WalletUnlocked.fromSeed);
|
47091
|
-
/**
|
47092
|
-
* Create a Wallet Unlocked from a mnemonic phrase.
|
47093
|
-
*
|
47094
|
-
* @param mnemonic - The mnemonic phrase.
|
47095
|
-
* @param provider - A Provider instance (optional).
|
47096
|
-
* @param path - The derivation path (optional).
|
47097
|
-
* @param passphrase - The passphrase for the mnemonic (optional).
|
47098
|
-
* @returns An unlocked wallet instance.
|
47099
|
-
*/
|
47100
|
-
__publicField(Wallet, "fromMnemonic", WalletUnlocked.fromMnemonic);
|
47101
|
-
/**
|
47102
|
-
* Create a Wallet Unlocked from an extended key.
|
47103
|
-
*
|
47104
|
-
* @param extendedKey - The extended key.
|
47105
|
-
* @param provider - A Provider instance (optional).
|
47106
|
-
* @returns An unlocked wallet instance.
|
47107
|
-
*/
|
47108
|
-
__publicField(Wallet, "fromExtendedKey", WalletUnlocked.fromExtendedKey);
|
47109
|
-
/**
|
47110
|
-
* Create a Wallet Unlocked from an encrypted JSON.
|
47111
|
-
*
|
47112
|
-
* @param jsonWallet - The encrypted JSON keystore.
|
47113
|
-
* @param password - The password to decrypt the JSON.
|
47114
|
-
* @param provider - A Provider instance (optional).
|
47115
|
-
* @returns An unlocked wallet instance.
|
47116
|
-
*/
|
47117
|
-
__publicField(Wallet, "fromEncryptedJson", WalletUnlocked.fromEncryptedJson);
|
47118
47063
|
|
47119
47064
|
// src/wallet-manager/wallet-manager.ts
|
47120
47065
|
var import_events = __require("events");
|
@@ -47138,14 +47083,14 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47138
47083
|
};
|
47139
47084
|
|
47140
47085
|
// src/wallet-manager/vaults/mnemonic-vault.ts
|
47141
|
-
var _secret;
|
47142
47086
|
var MnemonicVault = class {
|
47087
|
+
static type = "mnemonic";
|
47088
|
+
#secret;
|
47089
|
+
pathKey = "{}";
|
47090
|
+
rootPath = `m/44'/1179993420'/${this.pathKey}'/0/0`;
|
47091
|
+
numberOfAccounts = 0;
|
47143
47092
|
constructor(options) {
|
47144
|
-
|
47145
|
-
__publicField(this, "pathKey", "{}");
|
47146
|
-
__publicField(this, "rootPath", `m/44'/1179993420'/${this.pathKey}'/0/0`);
|
47147
|
-
__publicField(this, "numberOfAccounts", 0);
|
47148
|
-
__privateSet(this, _secret, options.secret || mnemonic_default.generate());
|
47093
|
+
this.#secret = options.secret || mnemonic_default.generate();
|
47149
47094
|
this.rootPath = options.rootPath || this.rootPath;
|
47150
47095
|
this.numberOfAccounts = options.numberOfAccounts || 1;
|
47151
47096
|
}
|
@@ -47157,7 +47102,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47157
47102
|
}
|
47158
47103
|
serialize() {
|
47159
47104
|
return {
|
47160
|
-
secret:
|
47105
|
+
secret: this.#secret,
|
47161
47106
|
rootPath: this.rootPath,
|
47162
47107
|
numberOfAccounts: this.numberOfAccounts
|
47163
47108
|
};
|
@@ -47166,7 +47111,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47166
47111
|
const accounts = [];
|
47167
47112
|
let numberOfAccounts = 0;
|
47168
47113
|
do {
|
47169
|
-
const wallet = Wallet.fromMnemonic(
|
47114
|
+
const wallet = Wallet.fromMnemonic(this.#secret, this.getDerivePath(numberOfAccounts));
|
47170
47115
|
accounts.push({
|
47171
47116
|
publicKey: wallet.publicKey,
|
47172
47117
|
address: wallet.address
|
@@ -47177,7 +47122,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47177
47122
|
}
|
47178
47123
|
addAccount() {
|
47179
47124
|
this.numberOfAccounts += 1;
|
47180
|
-
const wallet = Wallet.fromMnemonic(
|
47125
|
+
const wallet = Wallet.fromMnemonic(this.#secret, this.getDerivePath(this.numberOfAccounts - 1));
|
47181
47126
|
return {
|
47182
47127
|
publicKey: wallet.publicKey,
|
47183
47128
|
address: wallet.address
|
@@ -47187,7 +47132,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47187
47132
|
let numberOfAccounts = 0;
|
47188
47133
|
const ownerAddress = Address.fromAddressOrString(address);
|
47189
47134
|
do {
|
47190
|
-
const wallet = Wallet.fromMnemonic(
|
47135
|
+
const wallet = Wallet.fromMnemonic(this.#secret, this.getDerivePath(numberOfAccounts));
|
47191
47136
|
if (wallet.address.equals(ownerAddress)) {
|
47192
47137
|
return wallet.privateKey;
|
47193
47138
|
}
|
@@ -47203,27 +47148,25 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47203
47148
|
return Wallet.fromPrivateKey(privateKey);
|
47204
47149
|
}
|
47205
47150
|
};
|
47206
|
-
_secret = new WeakMap();
|
47207
|
-
__publicField(MnemonicVault, "type", "mnemonic");
|
47208
47151
|
|
47209
47152
|
// src/wallet-manager/vaults/privatekey-vault.ts
|
47210
|
-
var _privateKeys;
|
47211
47153
|
var PrivateKeyVault = class {
|
47154
|
+
static type = "privateKey";
|
47155
|
+
#privateKeys = [];
|
47212
47156
|
/**
|
47213
47157
|
* If privateKey vault is initialized with a secretKey, it creates
|
47214
47158
|
* one account with the fallowing secret
|
47215
47159
|
*/
|
47216
47160
|
constructor(options = {}) {
|
47217
|
-
__privateAdd(this, _privateKeys, []);
|
47218
47161
|
if (options.secret) {
|
47219
|
-
|
47162
|
+
this.#privateKeys = [options.secret];
|
47220
47163
|
} else {
|
47221
|
-
|
47164
|
+
this.#privateKeys = options.accounts || [Wallet.generate().privateKey];
|
47222
47165
|
}
|
47223
47166
|
}
|
47224
47167
|
serialize() {
|
47225
47168
|
return {
|
47226
|
-
accounts:
|
47169
|
+
accounts: this.#privateKeys
|
47227
47170
|
};
|
47228
47171
|
}
|
47229
47172
|
getPublicAccount(privateKey) {
|
@@ -47234,16 +47177,16 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47234
47177
|
};
|
47235
47178
|
}
|
47236
47179
|
getAccounts() {
|
47237
|
-
return
|
47180
|
+
return this.#privateKeys.map((pk) => this.getPublicAccount(pk));
|
47238
47181
|
}
|
47239
47182
|
addAccount() {
|
47240
47183
|
const wallet = Wallet.generate();
|
47241
|
-
|
47184
|
+
this.#privateKeys.push(wallet.privateKey);
|
47242
47185
|
return this.getPublicAccount(wallet.privateKey);
|
47243
47186
|
}
|
47244
47187
|
exportAccount(address) {
|
47245
47188
|
const ownerAddress = Address.fromAddressOrString(address);
|
47246
|
-
const privateKey =
|
47189
|
+
const privateKey = this.#privateKeys.find(
|
47247
47190
|
(pk) => Wallet.fromPrivateKey(pk).address.equals(ownerAddress)
|
47248
47191
|
);
|
47249
47192
|
if (!privateKey) {
|
@@ -47259,8 +47202,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47259
47202
|
return Wallet.fromPrivateKey(privateKey);
|
47260
47203
|
}
|
47261
47204
|
};
|
47262
|
-
_privateKeys = new WeakMap();
|
47263
|
-
__publicField(PrivateKeyVault, "type", "privateKey");
|
47264
47205
|
|
47265
47206
|
// src/wallet-manager/wallet-manager.ts
|
47266
47207
|
var ERROR_MESSAGES = {
|
@@ -47275,46 +47216,43 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47275
47216
|
throw new FuelError(ErrorCode.WALLET_MANAGER_ERROR, message);
|
47276
47217
|
}
|
47277
47218
|
}
|
47278
|
-
var
|
47279
|
-
|
47219
|
+
var WalletManager = class _WalletManager extends import_events.EventEmitter {
|
47220
|
+
/**
|
47221
|
+
* Vaults
|
47222
|
+
*
|
47223
|
+
* Vaults are responsible to store secret keys and return an `Wallet` instance,
|
47224
|
+
* to interact with the network.
|
47225
|
+
*
|
47226
|
+
* Each vault has access to its own state
|
47227
|
+
*
|
47228
|
+
*/
|
47229
|
+
static Vaults = [MnemonicVault, PrivateKeyVault];
|
47230
|
+
/**
|
47231
|
+
* Storage
|
47232
|
+
*
|
47233
|
+
* Persistent encrypted data. `The default storage works only on memory`.
|
47234
|
+
*/
|
47235
|
+
storage = new MemoryStorage();
|
47236
|
+
/* Key name passed to the storage */
|
47237
|
+
STORAGE_KEY = "WalletManager";
|
47238
|
+
// `This variables are only accessible from inside the class`
|
47239
|
+
#vaults = [];
|
47240
|
+
#passphrase = "";
|
47241
|
+
#isLocked = true;
|
47280
47242
|
constructor(options) {
|
47281
47243
|
super();
|
47282
|
-
/**
|
47283
|
-
* Serialize all vaults to store
|
47284
|
-
*
|
47285
|
-
* `This is only accessible from inside the class`
|
47286
|
-
*/
|
47287
|
-
__privateAdd(this, _serializeVaults);
|
47288
|
-
/**
|
47289
|
-
* Deserialize all vaults to state
|
47290
|
-
*
|
47291
|
-
* `This is only accessible from inside the class`
|
47292
|
-
*/
|
47293
|
-
__privateAdd(this, _deserializeVaults);
|
47294
|
-
/**
|
47295
|
-
* Storage
|
47296
|
-
*
|
47297
|
-
* Persistent encrypted data. `The default storage works only on memory`.
|
47298
|
-
*/
|
47299
|
-
__publicField(this, "storage", new MemoryStorage());
|
47300
|
-
/* Key name passed to the storage */
|
47301
|
-
__publicField(this, "STORAGE_KEY", "WalletManager");
|
47302
|
-
// `This variables are only accessible from inside the class`
|
47303
|
-
__privateAdd(this, _vaults, []);
|
47304
|
-
__privateAdd(this, _passphrase, "");
|
47305
|
-
__privateAdd(this, _isLocked, true);
|
47306
47244
|
this.storage = options?.storage || this.storage;
|
47307
47245
|
}
|
47308
47246
|
get isLocked() {
|
47309
|
-
return
|
47247
|
+
return this.#isLocked;
|
47310
47248
|
}
|
47311
47249
|
/**
|
47312
47250
|
* Return the vault serialized object containing all the privateKeys,
|
47313
47251
|
* the format of the return depends on the Vault type.
|
47314
47252
|
*/
|
47315
47253
|
exportVault(vaultId) {
|
47316
|
-
assert3(!
|
47317
|
-
const vaultState =
|
47254
|
+
assert3(!this.#isLocked, ERROR_MESSAGES.wallet_not_unlocked);
|
47255
|
+
const vaultState = this.#vaults.find((_, idx) => idx === vaultId);
|
47318
47256
|
assert3(vaultState, ERROR_MESSAGES.vault_not_found);
|
47319
47257
|
return vaultState.vault.serialize();
|
47320
47258
|
}
|
@@ -47322,7 +47260,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47322
47260
|
* List all vaults on the Wallet Manager, this function not return secret's
|
47323
47261
|
*/
|
47324
47262
|
getVaults() {
|
47325
|
-
return
|
47263
|
+
return this.#vaults.map((v, idx) => ({
|
47326
47264
|
title: v.title,
|
47327
47265
|
type: v.type,
|
47328
47266
|
vaultId: idx
|
@@ -47332,7 +47270,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47332
47270
|
* List all accounts on the Wallet Manager not vault information is revealed
|
47333
47271
|
*/
|
47334
47272
|
getAccounts() {
|
47335
|
-
return
|
47273
|
+
return this.#vaults.flatMap(
|
47336
47274
|
(vaultState, vaultId) => vaultState.vault.getAccounts().map((account) => ({ ...account, vaultId }))
|
47337
47275
|
);
|
47338
47276
|
}
|
@@ -47341,7 +47279,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47341
47279
|
*/
|
47342
47280
|
getWallet(address) {
|
47343
47281
|
const ownerAddress = Address.fromAddressOrString(address);
|
47344
|
-
const vaultState =
|
47282
|
+
const vaultState = this.#vaults.find(
|
47345
47283
|
(vs) => vs.vault.getAccounts().find((a) => a.address.equals(ownerAddress))
|
47346
47284
|
);
|
47347
47285
|
assert3(vaultState, ERROR_MESSAGES.address_not_found);
|
@@ -47352,8 +47290,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47352
47290
|
*/
|
47353
47291
|
exportPrivateKey(address) {
|
47354
47292
|
const ownerAddress = Address.fromAddressOrString(address);
|
47355
|
-
assert3(!
|
47356
|
-
const vaultState =
|
47293
|
+
assert3(!this.#isLocked, ERROR_MESSAGES.wallet_not_unlocked);
|
47294
|
+
const vaultState = this.#vaults.find(
|
47357
47295
|
(vs) => vs.vault.getAccounts().find((a) => a.address.equals(ownerAddress))
|
47358
47296
|
);
|
47359
47297
|
assert3(vaultState, ERROR_MESSAGES.address_not_found);
|
@@ -47365,7 +47303,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47365
47303
|
*/
|
47366
47304
|
async addAccount(options) {
|
47367
47305
|
await this.loadState();
|
47368
|
-
const vaultState =
|
47306
|
+
const vaultState = this.#vaults[options?.vaultId || 0];
|
47369
47307
|
await assert3(vaultState, ERROR_MESSAGES.vault_not_found);
|
47370
47308
|
const account = vaultState.vault.addAccount();
|
47371
47309
|
await this.saveState();
|
@@ -47376,7 +47314,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47376
47314
|
* created by the vault.
|
47377
47315
|
*/
|
47378
47316
|
async removeVault(index) {
|
47379
|
-
|
47317
|
+
this.#vaults.splice(index, 1);
|
47380
47318
|
await this.saveState();
|
47381
47319
|
}
|
47382
47320
|
/**
|
@@ -47387,11 +47325,11 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47387
47325
|
await this.loadState();
|
47388
47326
|
const Vault2 = this.getVaultClass(vaultConfig.type);
|
47389
47327
|
const vault = new Vault2(vaultConfig);
|
47390
|
-
|
47328
|
+
this.#vaults = this.#vaults.concat({
|
47391
47329
|
title: vaultConfig.title,
|
47392
47330
|
type: vaultConfig.type,
|
47393
47331
|
vault
|
47394
|
-
})
|
47332
|
+
});
|
47395
47333
|
await this.saveState();
|
47396
47334
|
}
|
47397
47335
|
/**
|
@@ -47399,9 +47337,9 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47399
47337
|
* secrets.
|
47400
47338
|
*/
|
47401
47339
|
lock() {
|
47402
|
-
|
47403
|
-
|
47404
|
-
|
47340
|
+
this.#isLocked = true;
|
47341
|
+
this.#vaults = [];
|
47342
|
+
this.#passphrase = "";
|
47405
47343
|
this.emit("lock");
|
47406
47344
|
}
|
47407
47345
|
/**
|
@@ -47409,8 +47347,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47409
47347
|
* Vaults with secrets are not unlocked or instantiated on this moment.
|
47410
47348
|
*/
|
47411
47349
|
async unlock(passphrase) {
|
47412
|
-
|
47413
|
-
|
47350
|
+
this.#passphrase = passphrase;
|
47351
|
+
this.#isLocked = false;
|
47414
47352
|
try {
|
47415
47353
|
await this.loadState();
|
47416
47354
|
this.emit("unlock");
|
@@ -47423,9 +47361,9 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47423
47361
|
* Update WalletManager encryption passphrase
|
47424
47362
|
*/
|
47425
47363
|
async updatePassphrase(oldpass, newpass) {
|
47426
|
-
const isLocked =
|
47364
|
+
const isLocked = this.#isLocked;
|
47427
47365
|
await this.unlock(oldpass);
|
47428
|
-
|
47366
|
+
this.#passphrase = newpass;
|
47429
47367
|
await this.saveState();
|
47430
47368
|
await this.loadState();
|
47431
47369
|
if (isLocked) {
|
@@ -47436,24 +47374,51 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47436
47374
|
* Retrieve and decrypt WalletManager state from storage
|
47437
47375
|
*/
|
47438
47376
|
async loadState() {
|
47439
|
-
await assert3(!
|
47377
|
+
await assert3(!this.#isLocked, ERROR_MESSAGES.wallet_not_unlocked);
|
47440
47378
|
const data = await this.storage.getItem(this.STORAGE_KEY);
|
47441
47379
|
if (data) {
|
47442
|
-
const state = await decrypt2(
|
47443
|
-
|
47380
|
+
const state = await decrypt2(this.#passphrase, JSON.parse(data));
|
47381
|
+
this.#vaults = this.#deserializeVaults(state.vaults);
|
47444
47382
|
}
|
47445
47383
|
}
|
47446
47384
|
/**
|
47447
47385
|
* Store encrypted WalletManager state on storage
|
47448
47386
|
*/
|
47449
47387
|
async saveState() {
|
47450
|
-
await assert3(!
|
47451
|
-
const encryptedData = await encrypt2(
|
47452
|
-
vaults:
|
47388
|
+
await assert3(!this.#isLocked, ERROR_MESSAGES.wallet_not_unlocked);
|
47389
|
+
const encryptedData = await encrypt2(this.#passphrase, {
|
47390
|
+
vaults: this.#serializeVaults(this.#vaults)
|
47453
47391
|
});
|
47454
47392
|
await this.storage.setItem(this.STORAGE_KEY, JSON.stringify(encryptedData));
|
47455
47393
|
this.emit("update");
|
47456
47394
|
}
|
47395
|
+
/**
|
47396
|
+
* Serialize all vaults to store
|
47397
|
+
*
|
47398
|
+
* `This is only accessible from inside the class`
|
47399
|
+
*/
|
47400
|
+
#serializeVaults(vaults) {
|
47401
|
+
return vaults.map(({ title, type: type3, vault }) => ({
|
47402
|
+
title,
|
47403
|
+
type: type3,
|
47404
|
+
data: vault.serialize()
|
47405
|
+
}));
|
47406
|
+
}
|
47407
|
+
/**
|
47408
|
+
* Deserialize all vaults to state
|
47409
|
+
*
|
47410
|
+
* `This is only accessible from inside the class`
|
47411
|
+
*/
|
47412
|
+
#deserializeVaults(vaults) {
|
47413
|
+
return vaults.map(({ title, type: type3, data: vaultConfig }) => {
|
47414
|
+
const VaultClass = this.getVaultClass(type3);
|
47415
|
+
return {
|
47416
|
+
title,
|
47417
|
+
type: type3,
|
47418
|
+
vault: new VaultClass(vaultConfig)
|
47419
|
+
};
|
47420
|
+
});
|
47421
|
+
}
|
47457
47422
|
/**
|
47458
47423
|
* Return a instantiable Class reference from `WalletManager.Vaults` supported list.
|
47459
47424
|
*/
|
@@ -47463,42 +47428,10 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47463
47428
|
return VaultClass;
|
47464
47429
|
}
|
47465
47430
|
};
|
47466
|
-
var WalletManager = _WalletManager;
|
47467
|
-
_vaults = new WeakMap();
|
47468
|
-
_passphrase = new WeakMap();
|
47469
|
-
_isLocked = new WeakMap();
|
47470
|
-
_serializeVaults = new WeakSet();
|
47471
|
-
serializeVaults_fn = function(vaults) {
|
47472
|
-
return vaults.map(({ title, type: type3, vault }) => ({
|
47473
|
-
title,
|
47474
|
-
type: type3,
|
47475
|
-
data: vault.serialize()
|
47476
|
-
}));
|
47477
|
-
};
|
47478
|
-
_deserializeVaults = new WeakSet();
|
47479
|
-
deserializeVaults_fn = function(vaults) {
|
47480
|
-
return vaults.map(({ title, type: type3, data: vaultConfig }) => {
|
47481
|
-
const VaultClass = this.getVaultClass(type3);
|
47482
|
-
return {
|
47483
|
-
title,
|
47484
|
-
type: type3,
|
47485
|
-
vault: new VaultClass(vaultConfig)
|
47486
|
-
};
|
47487
|
-
});
|
47488
|
-
};
|
47489
|
-
/**
|
47490
|
-
* Vaults
|
47491
|
-
*
|
47492
|
-
* Vaults are responsible to store secret keys and return an `Wallet` instance,
|
47493
|
-
* to interact with the network.
|
47494
|
-
*
|
47495
|
-
* Each vault has access to its own state
|
47496
|
-
*
|
47497
|
-
*/
|
47498
|
-
__publicField(WalletManager, "Vaults", [MnemonicVault, PrivateKeyVault]);
|
47499
47431
|
|
47500
47432
|
// src/wallet-manager/types.ts
|
47501
47433
|
var Vault = class {
|
47434
|
+
static type;
|
47502
47435
|
constructor(_options) {
|
47503
47436
|
throw new FuelError(ErrorCode.NOT_IMPLEMENTED, "Not implemented.");
|
47504
47437
|
}
|
@@ -47518,7 +47451,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47518
47451
|
throw new FuelError(ErrorCode.NOT_IMPLEMENTED, "Not implemented.");
|
47519
47452
|
}
|
47520
47453
|
};
|
47521
|
-
__publicField(Vault, "type");
|
47522
47454
|
var StorageAbstract = class {
|
47523
47455
|
};
|
47524
47456
|
|
@@ -47590,7 +47522,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47590
47522
|
};
|
47591
47523
|
|
47592
47524
|
// src/predicate/predicate.ts
|
47593
|
-
var Predicate = class extends Account {
|
47525
|
+
var Predicate = class _Predicate extends Account {
|
47594
47526
|
bytes;
|
47595
47527
|
predicateDataBytes = Uint8Array.from([]);
|
47596
47528
|
predicateData = [];
|
@@ -47611,7 +47543,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47611
47543
|
inputData,
|
47612
47544
|
configurableConstants
|
47613
47545
|
}) {
|
47614
|
-
const { predicateBytes, predicateInterface } =
|
47546
|
+
const { predicateBytes, predicateInterface } = _Predicate.processPredicateData(
|
47615
47547
|
bytecode,
|
47616
47548
|
abi,
|
47617
47549
|
configurableConstants
|
@@ -47707,7 +47639,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47707
47639
|
}
|
47708
47640
|
}
|
47709
47641
|
if (configurableConstants && Object.keys(configurableConstants).length) {
|
47710
|
-
predicateBytes =
|
47642
|
+
predicateBytes = _Predicate.setConfigurableConstants(
|
47711
47643
|
predicateBytes,
|
47712
47644
|
configurableConstants,
|
47713
47645
|
abiInterface
|
@@ -48084,7 +48016,9 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
48084
48016
|
var HAS_CONNECTOR_TIMEOUT = 2e3;
|
48085
48017
|
var PING_CACHE_TIME = 5e3;
|
48086
48018
|
var { warn } = console;
|
48087
|
-
var
|
48019
|
+
var Fuel = class _Fuel extends FuelConnector {
|
48020
|
+
static STORAGE_KEY = "fuel-current-connector";
|
48021
|
+
static defaultConfig = {};
|
48088
48022
|
_storage = null;
|
48089
48023
|
_connectors = [];
|
48090
48024
|
_targetObject = null;
|
@@ -48409,9 +48343,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
48409
48343
|
await this.clean();
|
48410
48344
|
}
|
48411
48345
|
};
|
48412
|
-
var Fuel = _Fuel;
|
48413
|
-
__publicField(Fuel, "STORAGE_KEY", "fuel-current-connector");
|
48414
|
-
__publicField(Fuel, "defaultConfig", {});
|
48415
48346
|
})();
|
48416
48347
|
/*! Bundled license information:
|
48417
48348
|
|