@fuel-ts/account 0.0.0-rc-1815-20240322115843 → 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 +390 -515
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +207 -309
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +207 -311
- 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 +294 -381
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +107 -174
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +107 -176
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +21 -25
- package/dist/account.d.ts +0 -184
- package/dist/account.d.ts.map +0 -1
- package/dist/configs.d.ts.map +0 -1
- package/dist/connectors/fuel-connector.d.ts +0 -198
- 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 -278
- 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
@@ -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,23 +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 __privateAdd = (obj, member, value) => {
|
53
|
-
if (member.has(obj))
|
54
|
-
throw TypeError("Cannot add the same private member more than once");
|
55
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
56
|
-
};
|
57
|
-
var __privateMethod = (obj, member, method) => {
|
58
|
-
__accessCheck(obj, member, "access private method");
|
59
|
-
return method;
|
60
|
-
};
|
61
43
|
|
62
44
|
// ../../node_modules/.pnpm/bech32@2.0.0/node_modules/bech32/dist/index.js
|
63
45
|
var require_dist = __commonJS({
|
@@ -228,6 +210,7 @@
|
|
228
210
|
// ../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js
|
229
211
|
var require_bn = __commonJS({
|
230
212
|
"../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js"(exports, module) {
|
213
|
+
"use strict";
|
231
214
|
(function(module2, exports2) {
|
232
215
|
"use strict";
|
233
216
|
function assert3(val, msg) {
|
@@ -5545,6 +5528,7 @@
|
|
5545
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;
|
5546
5529
|
var init_lib = __esm({
|
5547
5530
|
"../../node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.mjs"() {
|
5531
|
+
"use strict";
|
5548
5532
|
import_stream = __toESM(__require("stream"), 1);
|
5549
5533
|
import_http = __toESM(__require("http"), 1);
|
5550
5534
|
import_url = __toESM(__require("url"), 1);
|
@@ -5554,7 +5538,7 @@
|
|
5554
5538
|
Readable = import_stream.default.Readable;
|
5555
5539
|
BUFFER = Symbol("buffer");
|
5556
5540
|
TYPE = Symbol("type");
|
5557
|
-
Blob2 = class {
|
5541
|
+
Blob2 = class _Blob {
|
5558
5542
|
constructor() {
|
5559
5543
|
this[TYPE] = "";
|
5560
5544
|
const blobParts = arguments[0];
|
@@ -5573,7 +5557,7 @@
|
|
5573
5557
|
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
5574
5558
|
} else if (element instanceof ArrayBuffer) {
|
5575
5559
|
buffer = Buffer.from(element);
|
5576
|
-
} else if (element instanceof
|
5560
|
+
} else if (element instanceof _Blob) {
|
5577
5561
|
buffer = element[BUFFER];
|
5578
5562
|
} else {
|
5579
5563
|
buffer = Buffer.from(typeof element === "string" ? element : String(element));
|
@@ -5635,7 +5619,7 @@
|
|
5635
5619
|
const span = Math.max(relativeEnd - relativeStart, 0);
|
5636
5620
|
const buffer = this[BUFFER];
|
5637
5621
|
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
5638
|
-
const blob = new
|
5622
|
+
const blob = new _Blob([], { type: arguments[2] });
|
5639
5623
|
blob[BUFFER] = slicedBuffer;
|
5640
5624
|
return blob;
|
5641
5625
|
}
|
@@ -5762,7 +5746,7 @@
|
|
5762
5746
|
invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
|
5763
5747
|
invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
|
5764
5748
|
MAP = Symbol("map");
|
5765
|
-
Headers2 = class {
|
5749
|
+
Headers2 = class _Headers {
|
5766
5750
|
/**
|
5767
5751
|
* Headers class
|
5768
5752
|
*
|
@@ -5772,7 +5756,7 @@
|
|
5772
5756
|
constructor() {
|
5773
5757
|
let init = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
|
5774
5758
|
this[MAP] = /* @__PURE__ */ Object.create(null);
|
5775
|
-
if (init instanceof
|
5759
|
+
if (init instanceof _Headers) {
|
5776
5760
|
const rawHeaders = init.raw();
|
5777
5761
|
const headerNames = Object.keys(rawHeaders);
|
5778
5762
|
for (const headerName of headerNames) {
|
@@ -5990,7 +5974,7 @@
|
|
5990
5974
|
});
|
5991
5975
|
INTERNALS$1 = Symbol("Response internals");
|
5992
5976
|
STATUS_CODES = import_http.default.STATUS_CODES;
|
5993
|
-
Response2 = class {
|
5977
|
+
Response2 = class _Response {
|
5994
5978
|
constructor() {
|
5995
5979
|
let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
5996
5980
|
let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
@@ -6038,7 +6022,7 @@
|
|
6038
6022
|
* @return Response
|
6039
6023
|
*/
|
6040
6024
|
clone() {
|
6041
|
-
return new
|
6025
|
+
return new _Response(clone(this), {
|
6042
6026
|
url: this.url,
|
6043
6027
|
status: this.status,
|
6044
6028
|
statusText: this.statusText,
|
@@ -6069,7 +6053,7 @@
|
|
6069
6053
|
parse_url = import_url.default.parse;
|
6070
6054
|
format_url = import_url.default.format;
|
6071
6055
|
streamDestructionSupported = "destroy" in import_stream.default.Readable.prototype;
|
6072
|
-
Request = class {
|
6056
|
+
Request = class _Request {
|
6073
6057
|
constructor(input) {
|
6074
6058
|
let init = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6075
6059
|
let parsedURL;
|
@@ -6139,7 +6123,7 @@
|
|
6139
6123
|
* @return Request
|
6140
6124
|
*/
|
6141
6125
|
clone() {
|
6142
|
-
return new
|
6126
|
+
return new _Request(this);
|
6143
6127
|
}
|
6144
6128
|
};
|
6145
6129
|
Body.mixIn(Request.prototype);
|
@@ -6183,6 +6167,7 @@
|
|
6183
6167
|
// ../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/node-ponyfill.js
|
6184
6168
|
var require_node_ponyfill = __commonJS({
|
6185
6169
|
"../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/node-ponyfill.js"(exports, module) {
|
6170
|
+
"use strict";
|
6186
6171
|
var nodeFetch = (init_lib(), __toCommonJS(lib_exports));
|
6187
6172
|
var realFetch = nodeFetch.default || nodeFetch;
|
6188
6173
|
var fetch3 = function(url, options) {
|
@@ -6348,7 +6333,7 @@
|
|
6348
6333
|
}
|
6349
6334
|
return firstArg;
|
6350
6335
|
}
|
6351
|
-
var GraphQLError2 = class extends Error {
|
6336
|
+
var GraphQLError2 = class _GraphQLError extends Error {
|
6352
6337
|
/**
|
6353
6338
|
* An array of `{ line, column }` locations within the source GraphQL document
|
6354
6339
|
* which correspond to this error.
|
@@ -6437,7 +6422,7 @@
|
|
6437
6422
|
configurable: true
|
6438
6423
|
});
|
6439
6424
|
} else if (Error.captureStackTrace) {
|
6440
|
-
Error.captureStackTrace(this,
|
6425
|
+
Error.captureStackTrace(this, _GraphQLError);
|
6441
6426
|
} else {
|
6442
6427
|
Object.defineProperty(this, "stack", {
|
6443
6428
|
value: Error().stack,
|
@@ -9834,6 +9819,7 @@ spurious results.`);
|
|
9834
9819
|
// ../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
|
9835
9820
|
var require_delayed_stream = __commonJS({
|
9836
9821
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
|
9822
|
+
"use strict";
|
9837
9823
|
var Stream2 = __require("stream").Stream;
|
9838
9824
|
var util = __require("util");
|
9839
9825
|
module.exports = DelayedStream;
|
@@ -9925,6 +9911,7 @@ spurious results.`);
|
|
9925
9911
|
// ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
9926
9912
|
var require_combined_stream = __commonJS({
|
9927
9913
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
|
9914
|
+
"use strict";
|
9928
9915
|
var util = __require("util");
|
9929
9916
|
var Stream2 = __require("stream").Stream;
|
9930
9917
|
var DelayedStream = require_delayed_stream();
|
@@ -18621,6 +18608,7 @@ spurious results.`);
|
|
18621
18608
|
// ../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js
|
18622
18609
|
var require_mime_db = __commonJS({
|
18623
18610
|
"../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js"(exports, module) {
|
18611
|
+
"use strict";
|
18624
18612
|
module.exports = require_db();
|
18625
18613
|
}
|
18626
18614
|
});
|
@@ -18719,6 +18707,7 @@ spurious results.`);
|
|
18719
18707
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js
|
18720
18708
|
var require_defer = __commonJS({
|
18721
18709
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js"(exports, module) {
|
18710
|
+
"use strict";
|
18722
18711
|
module.exports = defer;
|
18723
18712
|
function defer(fn) {
|
18724
18713
|
var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
|
@@ -18734,6 +18723,7 @@ spurious results.`);
|
|
18734
18723
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js
|
18735
18724
|
var require_async = __commonJS({
|
18736
18725
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js"(exports, module) {
|
18726
|
+
"use strict";
|
18737
18727
|
var defer = require_defer();
|
18738
18728
|
module.exports = async;
|
18739
18729
|
function async(callback) {
|
@@ -18757,6 +18747,7 @@ spurious results.`);
|
|
18757
18747
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js
|
18758
18748
|
var require_abort = __commonJS({
|
18759
18749
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js"(exports, module) {
|
18750
|
+
"use strict";
|
18760
18751
|
module.exports = abort;
|
18761
18752
|
function abort(state) {
|
18762
18753
|
Object.keys(state.jobs).forEach(clean.bind(state));
|
@@ -18773,6 +18764,7 @@ spurious results.`);
|
|
18773
18764
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js
|
18774
18765
|
var require_iterate = __commonJS({
|
18775
18766
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js"(exports, module) {
|
18767
|
+
"use strict";
|
18776
18768
|
var async = require_async();
|
18777
18769
|
var abort = require_abort();
|
18778
18770
|
module.exports = iterate;
|
@@ -18806,6 +18798,7 @@ spurious results.`);
|
|
18806
18798
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js
|
18807
18799
|
var require_state = __commonJS({
|
18808
18800
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js"(exports, module) {
|
18801
|
+
"use strict";
|
18809
18802
|
module.exports = state;
|
18810
18803
|
function state(list, sortMethod) {
|
18811
18804
|
var isNamedList = !Array.isArray(list), initState = {
|
@@ -18828,6 +18821,7 @@ spurious results.`);
|
|
18828
18821
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js
|
18829
18822
|
var require_terminator = __commonJS({
|
18830
18823
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js"(exports, module) {
|
18824
|
+
"use strict";
|
18831
18825
|
var abort = require_abort();
|
18832
18826
|
var async = require_async();
|
18833
18827
|
module.exports = terminator;
|
@@ -18845,6 +18839,7 @@ spurious results.`);
|
|
18845
18839
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js
|
18846
18840
|
var require_parallel = __commonJS({
|
18847
18841
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js"(exports, module) {
|
18842
|
+
"use strict";
|
18848
18843
|
var iterate = require_iterate();
|
18849
18844
|
var initState = require_state();
|
18850
18845
|
var terminator = require_terminator();
|
@@ -18872,6 +18867,7 @@ spurious results.`);
|
|
18872
18867
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js
|
18873
18868
|
var require_serialOrdered = __commonJS({
|
18874
18869
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js"(exports, module) {
|
18870
|
+
"use strict";
|
18875
18871
|
var iterate = require_iterate();
|
18876
18872
|
var initState = require_state();
|
18877
18873
|
var terminator = require_terminator();
|
@@ -18906,6 +18902,7 @@ spurious results.`);
|
|
18906
18902
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js
|
18907
18903
|
var require_serial = __commonJS({
|
18908
18904
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js"(exports, module) {
|
18905
|
+
"use strict";
|
18909
18906
|
var serialOrdered = require_serialOrdered();
|
18910
18907
|
module.exports = serial;
|
18911
18908
|
function serial(list, iterator, callback) {
|
@@ -18917,6 +18914,7 @@ spurious results.`);
|
|
18917
18914
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js
|
18918
18915
|
var require_asynckit = __commonJS({
|
18919
18916
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js"(exports, module) {
|
18917
|
+
"use strict";
|
18920
18918
|
module.exports = {
|
18921
18919
|
parallel: require_parallel(),
|
18922
18920
|
serial: require_serial(),
|
@@ -18928,6 +18926,7 @@ spurious results.`);
|
|
18928
18926
|
// ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js
|
18929
18927
|
var require_populate = __commonJS({
|
18930
18928
|
"../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js"(exports, module) {
|
18929
|
+
"use strict";
|
18931
18930
|
module.exports = function(dst, src) {
|
18932
18931
|
Object.keys(src).forEach(function(prop) {
|
18933
18932
|
dst[prop] = dst[prop] || src[prop];
|
@@ -18940,6 +18939,7 @@ spurious results.`);
|
|
18940
18939
|
// ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js
|
18941
18940
|
var require_form_data = __commonJS({
|
18942
18941
|
"../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js"(exports, module) {
|
18942
|
+
"use strict";
|
18943
18943
|
var CombinedStream = require_combined_stream();
|
18944
18944
|
var util = __require("util");
|
18945
18945
|
var path2 = __require("path");
|
@@ -19381,7 +19381,7 @@ spurious results.`);
|
|
19381
19381
|
var require_types = __commonJS({
|
19382
19382
|
"../../node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/types.js"(exports) {
|
19383
19383
|
"use strict";
|
19384
|
-
var __extends = exports && exports.__extends || function() {
|
19384
|
+
var __extends = exports && exports.__extends || /* @__PURE__ */ function() {
|
19385
19385
|
var extendStatics = function(d, b) {
|
19386
19386
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
19387
19387
|
d2.__proto__ = b2;
|
@@ -22371,10 +22371,10 @@ spurious results.`);
|
|
22371
22371
|
return RegId.__wrap(ret3);
|
22372
22372
|
}
|
22373
22373
|
};
|
22374
|
-
var CompareArgs = class {
|
22374
|
+
var CompareArgs = class _CompareArgs {
|
22375
22375
|
static __wrap(ptr) {
|
22376
22376
|
ptr = ptr >>> 0;
|
22377
|
-
const obj = Object.create(
|
22377
|
+
const obj = Object.create(_CompareArgs.prototype);
|
22378
22378
|
obj.__wbg_ptr = ptr;
|
22379
22379
|
return obj;
|
22380
22380
|
}
|
@@ -22435,7 +22435,7 @@ spurious results.`);
|
|
22435
22435
|
_assertClass(bits, Imm06);
|
22436
22436
|
var ptr0 = bits.__destroy_into_raw();
|
22437
22437
|
const ret3 = wasm$1.compareargs_from_imm(ptr0);
|
22438
|
-
return ret3 === 0 ? void 0 :
|
22438
|
+
return ret3 === 0 ? void 0 : _CompareArgs.__wrap(ret3);
|
22439
22439
|
}
|
22440
22440
|
};
|
22441
22441
|
var DIV = class {
|
@@ -22973,10 +22973,10 @@ spurious results.`);
|
|
22973
22973
|
return RegId.__wrap(ret3);
|
22974
22974
|
}
|
22975
22975
|
};
|
22976
|
-
var GM = class {
|
22976
|
+
var GM = class _GM {
|
22977
22977
|
static __wrap(ptr) {
|
22978
22978
|
ptr = ptr >>> 0;
|
22979
|
-
const obj = Object.create(
|
22979
|
+
const obj = Object.create(_GM.prototype);
|
22980
22980
|
obj.__wbg_ptr = ptr;
|
22981
22981
|
return obj;
|
22982
22982
|
}
|
@@ -23029,7 +23029,7 @@ spurious results.`);
|
|
23029
23029
|
_assertClass(ra, RegId);
|
23030
23030
|
var ptr0 = ra.__destroy_into_raw();
|
23031
23031
|
const ret3 = wasm$1.gm_from_args(ptr0, args);
|
23032
|
-
return
|
23032
|
+
return _GM.__wrap(ret3);
|
23033
23033
|
}
|
23034
23034
|
};
|
23035
23035
|
var GT = class {
|
@@ -23084,10 +23084,10 @@ spurious results.`);
|
|
23084
23084
|
return RegId.__wrap(ret3);
|
23085
23085
|
}
|
23086
23086
|
};
|
23087
|
-
var GTF = class {
|
23087
|
+
var GTF = class _GTF {
|
23088
23088
|
static __wrap(ptr) {
|
23089
23089
|
ptr = ptr >>> 0;
|
23090
|
-
const obj = Object.create(
|
23090
|
+
const obj = Object.create(_GTF.prototype);
|
23091
23091
|
obj.__wbg_ptr = ptr;
|
23092
23092
|
return obj;
|
23093
23093
|
}
|
@@ -23154,13 +23154,13 @@ spurious results.`);
|
|
23154
23154
|
_assertClass(rb, RegId);
|
23155
23155
|
var ptr1 = rb.__destroy_into_raw();
|
23156
23156
|
const ret3 = wasm$1.gtf_from_args(ptr0, ptr1, args);
|
23157
|
-
return
|
23157
|
+
return _GTF.__wrap(ret3);
|
23158
23158
|
}
|
23159
23159
|
};
|
23160
|
-
var Imm06 = class {
|
23160
|
+
var Imm06 = class _Imm06 {
|
23161
23161
|
static __wrap(ptr) {
|
23162
23162
|
ptr = ptr >>> 0;
|
23163
|
-
const obj = Object.create(
|
23163
|
+
const obj = Object.create(_Imm06.prototype);
|
23164
23164
|
obj.__wbg_ptr = ptr;
|
23165
23165
|
return obj;
|
23166
23166
|
}
|
@@ -23174,10 +23174,10 @@ spurious results.`);
|
|
23174
23174
|
wasm$1.__wbg_imm06_free(ptr);
|
23175
23175
|
}
|
23176
23176
|
};
|
23177
|
-
var Imm12 = class {
|
23177
|
+
var Imm12 = class _Imm12 {
|
23178
23178
|
static __wrap(ptr) {
|
23179
23179
|
ptr = ptr >>> 0;
|
23180
|
-
const obj = Object.create(
|
23180
|
+
const obj = Object.create(_Imm12.prototype);
|
23181
23181
|
obj.__wbg_ptr = ptr;
|
23182
23182
|
return obj;
|
23183
23183
|
}
|
@@ -23191,10 +23191,10 @@ spurious results.`);
|
|
23191
23191
|
wasm$1.__wbg_imm12_free(ptr);
|
23192
23192
|
}
|
23193
23193
|
};
|
23194
|
-
var Imm18 = class {
|
23194
|
+
var Imm18 = class _Imm18 {
|
23195
23195
|
static __wrap(ptr) {
|
23196
23196
|
ptr = ptr >>> 0;
|
23197
|
-
const obj = Object.create(
|
23197
|
+
const obj = Object.create(_Imm18.prototype);
|
23198
23198
|
obj.__wbg_ptr = ptr;
|
23199
23199
|
return obj;
|
23200
23200
|
}
|
@@ -23208,10 +23208,10 @@ spurious results.`);
|
|
23208
23208
|
wasm$1.__wbg_imm18_free(ptr);
|
23209
23209
|
}
|
23210
23210
|
};
|
23211
|
-
var Imm24 = class {
|
23211
|
+
var Imm24 = class _Imm24 {
|
23212
23212
|
static __wrap(ptr) {
|
23213
23213
|
ptr = ptr >>> 0;
|
23214
|
-
const obj = Object.create(
|
23214
|
+
const obj = Object.create(_Imm24.prototype);
|
23215
23215
|
obj.__wbg_ptr = ptr;
|
23216
23216
|
return obj;
|
23217
23217
|
}
|
@@ -23225,10 +23225,10 @@ spurious results.`);
|
|
23225
23225
|
wasm$1.__wbg_imm24_free(ptr);
|
23226
23226
|
}
|
23227
23227
|
};
|
23228
|
-
var Instruction = class {
|
23228
|
+
var Instruction = class _Instruction {
|
23229
23229
|
static __wrap(ptr) {
|
23230
23230
|
ptr = ptr >>> 0;
|
23231
|
-
const obj = Object.create(
|
23231
|
+
const obj = Object.create(_Instruction.prototype);
|
23232
23232
|
obj.__wbg_ptr = ptr;
|
23233
23233
|
return obj;
|
23234
23234
|
}
|
@@ -25421,10 +25421,10 @@ spurious results.`);
|
|
25421
25421
|
return RegId.__wrap(ret3);
|
25422
25422
|
}
|
25423
25423
|
};
|
25424
|
-
var RegId = class {
|
25424
|
+
var RegId = class _RegId {
|
25425
25425
|
static __wrap(ptr) {
|
25426
25426
|
ptr = ptr >>> 0;
|
25427
|
-
const obj = Object.create(
|
25427
|
+
const obj = Object.create(_RegId.prototype);
|
25428
25428
|
obj.__wbg_ptr = ptr;
|
25429
25429
|
return obj;
|
25430
25430
|
}
|
@@ -25446,7 +25446,7 @@ spurious results.`);
|
|
25446
25446
|
*/
|
25447
25447
|
static new_checked(u) {
|
25448
25448
|
const ret3 = wasm$1.regid_new_checked(u);
|
25449
|
-
return ret3 === 0 ? void 0 :
|
25449
|
+
return ret3 === 0 ? void 0 : _RegId.__wrap(ret3);
|
25450
25450
|
}
|
25451
25451
|
/**
|
25452
25452
|
* Received balance for this context.
|
@@ -25454,7 +25454,7 @@ spurious results.`);
|
|
25454
25454
|
*/
|
25455
25455
|
static bal() {
|
25456
25456
|
const ret3 = wasm$1.regid_bal();
|
25457
|
-
return
|
25457
|
+
return _RegId.__wrap(ret3);
|
25458
25458
|
}
|
25459
25459
|
/**
|
25460
25460
|
* Remaining gas in the context.
|
@@ -25462,7 +25462,7 @@ spurious results.`);
|
|
25462
25462
|
*/
|
25463
25463
|
static cgas() {
|
25464
25464
|
const ret3 = wasm$1.regid_cgas();
|
25465
|
-
return
|
25465
|
+
return _RegId.__wrap(ret3);
|
25466
25466
|
}
|
25467
25467
|
/**
|
25468
25468
|
* Error codes for particular operations.
|
@@ -25470,7 +25470,7 @@ spurious results.`);
|
|
25470
25470
|
*/
|
25471
25471
|
static err() {
|
25472
25472
|
const ret3 = wasm$1.regid_err();
|
25473
|
-
return
|
25473
|
+
return _RegId.__wrap(ret3);
|
25474
25474
|
}
|
25475
25475
|
/**
|
25476
25476
|
* Flags register.
|
@@ -25478,7 +25478,7 @@ spurious results.`);
|
|
25478
25478
|
*/
|
25479
25479
|
static flag() {
|
25480
25480
|
const ret3 = wasm$1.regid_flag();
|
25481
|
-
return
|
25481
|
+
return _RegId.__wrap(ret3);
|
25482
25482
|
}
|
25483
25483
|
/**
|
25484
25484
|
* Frame pointer. Memory address of beginning of current call frame.
|
@@ -25486,7 +25486,7 @@ spurious results.`);
|
|
25486
25486
|
*/
|
25487
25487
|
static fp() {
|
25488
25488
|
const ret3 = wasm$1.regid_fp();
|
25489
|
-
return
|
25489
|
+
return _RegId.__wrap(ret3);
|
25490
25490
|
}
|
25491
25491
|
/**
|
25492
25492
|
* Remaining gas globally.
|
@@ -25494,7 +25494,7 @@ spurious results.`);
|
|
25494
25494
|
*/
|
25495
25495
|
static ggas() {
|
25496
25496
|
const ret3 = wasm$1.regid_ggas();
|
25497
|
-
return
|
25497
|
+
return _RegId.__wrap(ret3);
|
25498
25498
|
}
|
25499
25499
|
/**
|
25500
25500
|
* Heap pointer. Memory address below the current bottom of the heap (points to free
|
@@ -25503,7 +25503,7 @@ spurious results.`);
|
|
25503
25503
|
*/
|
25504
25504
|
static hp() {
|
25505
25505
|
const ret3 = wasm$1.regid_hp();
|
25506
|
-
return
|
25506
|
+
return _RegId.__wrap(ret3);
|
25507
25507
|
}
|
25508
25508
|
/**
|
25509
25509
|
* Instructions start. Pointer to the start of the currently-executing code.
|
@@ -25511,7 +25511,7 @@ spurious results.`);
|
|
25511
25511
|
*/
|
25512
25512
|
static is() {
|
25513
25513
|
const ret3 = wasm$1.regid_is();
|
25514
|
-
return
|
25514
|
+
return _RegId.__wrap(ret3);
|
25515
25515
|
}
|
25516
25516
|
/**
|
25517
25517
|
* Contains overflow/underflow of addition, subtraction, and multiplication.
|
@@ -25519,7 +25519,7 @@ spurious results.`);
|
|
25519
25519
|
*/
|
25520
25520
|
static of() {
|
25521
25521
|
const ret3 = wasm$1.regid_of();
|
25522
|
-
return
|
25522
|
+
return _RegId.__wrap(ret3);
|
25523
25523
|
}
|
25524
25524
|
/**
|
25525
25525
|
* Contains one (1), for convenience.
|
@@ -25527,7 +25527,7 @@ spurious results.`);
|
|
25527
25527
|
*/
|
25528
25528
|
static one() {
|
25529
25529
|
const ret3 = wasm$1.regid_one();
|
25530
|
-
return
|
25530
|
+
return _RegId.__wrap(ret3);
|
25531
25531
|
}
|
25532
25532
|
/**
|
25533
25533
|
* The program counter. Memory address of the current instruction.
|
@@ -25535,7 +25535,7 @@ spurious results.`);
|
|
25535
25535
|
*/
|
25536
25536
|
static pc() {
|
25537
25537
|
const ret3 = wasm$1.regid_pc();
|
25538
|
-
return
|
25538
|
+
return _RegId.__wrap(ret3);
|
25539
25539
|
}
|
25540
25540
|
/**
|
25541
25541
|
* Return value or pointer.
|
@@ -25543,7 +25543,7 @@ spurious results.`);
|
|
25543
25543
|
*/
|
25544
25544
|
static ret() {
|
25545
25545
|
const ret3 = wasm$1.regid_ret();
|
25546
|
-
return
|
25546
|
+
return _RegId.__wrap(ret3);
|
25547
25547
|
}
|
25548
25548
|
/**
|
25549
25549
|
* Return value length in bytes.
|
@@ -25551,7 +25551,7 @@ spurious results.`);
|
|
25551
25551
|
*/
|
25552
25552
|
static retl() {
|
25553
25553
|
const ret3 = wasm$1.regid_retl();
|
25554
|
-
return
|
25554
|
+
return _RegId.__wrap(ret3);
|
25555
25555
|
}
|
25556
25556
|
/**
|
25557
25557
|
* Stack pointer. Memory address on top of current writable stack area (points to
|
@@ -25560,7 +25560,7 @@ spurious results.`);
|
|
25560
25560
|
*/
|
25561
25561
|
static sp() {
|
25562
25562
|
const ret3 = wasm$1.regid_sp();
|
25563
|
-
return
|
25563
|
+
return _RegId.__wrap(ret3);
|
25564
25564
|
}
|
25565
25565
|
/**
|
25566
25566
|
* Stack start pointer. Memory address of bottom of current writable stack area.
|
@@ -25568,7 +25568,7 @@ spurious results.`);
|
|
25568
25568
|
*/
|
25569
25569
|
static spp() {
|
25570
25570
|
const ret3 = wasm$1.regid_spp();
|
25571
|
-
return
|
25571
|
+
return _RegId.__wrap(ret3);
|
25572
25572
|
}
|
25573
25573
|
/**
|
25574
25574
|
* Smallest writable register.
|
@@ -25576,7 +25576,7 @@ spurious results.`);
|
|
25576
25576
|
*/
|
25577
25577
|
static writable() {
|
25578
25578
|
const ret3 = wasm$1.regid_writable();
|
25579
|
-
return
|
25579
|
+
return _RegId.__wrap(ret3);
|
25580
25580
|
}
|
25581
25581
|
/**
|
25582
25582
|
* Contains zero (0), for convenience.
|
@@ -25584,7 +25584,7 @@ spurious results.`);
|
|
25584
25584
|
*/
|
25585
25585
|
static zero() {
|
25586
25586
|
const ret3 = wasm$1.regid_zero();
|
25587
|
-
return
|
25587
|
+
return _RegId.__wrap(ret3);
|
25588
25588
|
}
|
25589
25589
|
/**
|
25590
25590
|
* Construct a register ID from the given value.
|
@@ -26639,10 +26639,10 @@ spurious results.`);
|
|
26639
26639
|
return RegId.__wrap(ret3);
|
26640
26640
|
}
|
26641
26641
|
};
|
26642
|
-
var WDCM = class {
|
26642
|
+
var WDCM = class _WDCM {
|
26643
26643
|
static __wrap(ptr) {
|
26644
26644
|
ptr = ptr >>> 0;
|
26645
|
-
const obj = Object.create(
|
26645
|
+
const obj = Object.create(_WDCM.prototype);
|
26646
26646
|
obj.__wbg_ptr = ptr;
|
26647
26647
|
return obj;
|
26648
26648
|
}
|
@@ -26725,13 +26725,13 @@ spurious results.`);
|
|
26725
26725
|
_assertClass(args, CompareArgs);
|
26726
26726
|
var ptr3 = args.__destroy_into_raw();
|
26727
26727
|
const ret3 = wasm$1.wdcm_from_args(ptr0, ptr1, ptr2, ptr3);
|
26728
|
-
return
|
26728
|
+
return _WDCM.__wrap(ret3);
|
26729
26729
|
}
|
26730
26730
|
};
|
26731
|
-
var WDDV = class {
|
26731
|
+
var WDDV = class _WDDV {
|
26732
26732
|
static __wrap(ptr) {
|
26733
26733
|
ptr = ptr >>> 0;
|
26734
|
-
const obj = Object.create(
|
26734
|
+
const obj = Object.create(_WDDV.prototype);
|
26735
26735
|
obj.__wbg_ptr = ptr;
|
26736
26736
|
return obj;
|
26737
26737
|
}
|
@@ -26814,7 +26814,7 @@ spurious results.`);
|
|
26814
26814
|
_assertClass(args, DivArgs);
|
26815
26815
|
var ptr3 = args.__destroy_into_raw();
|
26816
26816
|
const ret3 = wasm$1.wddv_from_args(ptr0, ptr1, ptr2, ptr3);
|
26817
|
-
return
|
26817
|
+
return _WDDV.__wrap(ret3);
|
26818
26818
|
}
|
26819
26819
|
};
|
26820
26820
|
var WDMD = class {
|
@@ -26880,10 +26880,10 @@ spurious results.`);
|
|
26880
26880
|
return RegId.__wrap(ret3);
|
26881
26881
|
}
|
26882
26882
|
};
|
26883
|
-
var WDML = class {
|
26883
|
+
var WDML = class _WDML {
|
26884
26884
|
static __wrap(ptr) {
|
26885
26885
|
ptr = ptr >>> 0;
|
26886
|
-
const obj = Object.create(
|
26886
|
+
const obj = Object.create(_WDML.prototype);
|
26887
26887
|
obj.__wbg_ptr = ptr;
|
26888
26888
|
return obj;
|
26889
26889
|
}
|
@@ -26966,7 +26966,7 @@ spurious results.`);
|
|
26966
26966
|
_assertClass(args, MulArgs);
|
26967
26967
|
var ptr3 = args.__destroy_into_raw();
|
26968
26968
|
const ret3 = wasm$1.wdml_from_args(ptr0, ptr1, ptr2, ptr3);
|
26969
|
-
return
|
26969
|
+
return _WDML.__wrap(ret3);
|
26970
26970
|
}
|
26971
26971
|
};
|
26972
26972
|
var WDMM = class {
|
@@ -27032,10 +27032,10 @@ spurious results.`);
|
|
27032
27032
|
return RegId.__wrap(ret3);
|
27033
27033
|
}
|
27034
27034
|
};
|
27035
|
-
var WDOP = class {
|
27035
|
+
var WDOP = class _WDOP {
|
27036
27036
|
static __wrap(ptr) {
|
27037
27037
|
ptr = ptr >>> 0;
|
27038
|
-
const obj = Object.create(
|
27038
|
+
const obj = Object.create(_WDOP.prototype);
|
27039
27039
|
obj.__wbg_ptr = ptr;
|
27040
27040
|
return obj;
|
27041
27041
|
}
|
@@ -27118,7 +27118,7 @@ spurious results.`);
|
|
27118
27118
|
_assertClass(args, MathArgs);
|
27119
27119
|
var ptr3 = args.__destroy_into_raw();
|
27120
27120
|
const ret3 = wasm$1.wdop_from_args(ptr0, ptr1, ptr2, ptr3);
|
27121
|
-
return
|
27121
|
+
return _WDOP.__wrap(ret3);
|
27122
27122
|
}
|
27123
27123
|
};
|
27124
27124
|
var WQAM = class {
|
@@ -27184,10 +27184,10 @@ spurious results.`);
|
|
27184
27184
|
return RegId.__wrap(ret3);
|
27185
27185
|
}
|
27186
27186
|
};
|
27187
|
-
var WQCM = class {
|
27187
|
+
var WQCM = class _WQCM {
|
27188
27188
|
static __wrap(ptr) {
|
27189
27189
|
ptr = ptr >>> 0;
|
27190
|
-
const obj = Object.create(
|
27190
|
+
const obj = Object.create(_WQCM.prototype);
|
27191
27191
|
obj.__wbg_ptr = ptr;
|
27192
27192
|
return obj;
|
27193
27193
|
}
|
@@ -27270,13 +27270,13 @@ spurious results.`);
|
|
27270
27270
|
_assertClass(args, CompareArgs);
|
27271
27271
|
var ptr3 = args.__destroy_into_raw();
|
27272
27272
|
const ret3 = wasm$1.wdcm_from_args(ptr0, ptr1, ptr2, ptr3);
|
27273
|
-
return
|
27273
|
+
return _WQCM.__wrap(ret3);
|
27274
27274
|
}
|
27275
27275
|
};
|
27276
|
-
var WQDV = class {
|
27276
|
+
var WQDV = class _WQDV {
|
27277
27277
|
static __wrap(ptr) {
|
27278
27278
|
ptr = ptr >>> 0;
|
27279
|
-
const obj = Object.create(
|
27279
|
+
const obj = Object.create(_WQDV.prototype);
|
27280
27280
|
obj.__wbg_ptr = ptr;
|
27281
27281
|
return obj;
|
27282
27282
|
}
|
@@ -27359,7 +27359,7 @@ spurious results.`);
|
|
27359
27359
|
_assertClass(args, DivArgs);
|
27360
27360
|
var ptr3 = args.__destroy_into_raw();
|
27361
27361
|
const ret3 = wasm$1.wddv_from_args(ptr0, ptr1, ptr2, ptr3);
|
27362
|
-
return
|
27362
|
+
return _WQDV.__wrap(ret3);
|
27363
27363
|
}
|
27364
27364
|
};
|
27365
27365
|
var WQMD = class {
|
@@ -27425,10 +27425,10 @@ spurious results.`);
|
|
27425
27425
|
return RegId.__wrap(ret3);
|
27426
27426
|
}
|
27427
27427
|
};
|
27428
|
-
var WQML = class {
|
27428
|
+
var WQML = class _WQML {
|
27429
27429
|
static __wrap(ptr) {
|
27430
27430
|
ptr = ptr >>> 0;
|
27431
|
-
const obj = Object.create(
|
27431
|
+
const obj = Object.create(_WQML.prototype);
|
27432
27432
|
obj.__wbg_ptr = ptr;
|
27433
27433
|
return obj;
|
27434
27434
|
}
|
@@ -27511,7 +27511,7 @@ spurious results.`);
|
|
27511
27511
|
_assertClass(args, MulArgs);
|
27512
27512
|
var ptr3 = args.__destroy_into_raw();
|
27513
27513
|
const ret3 = wasm$1.wdml_from_args(ptr0, ptr1, ptr2, ptr3);
|
27514
|
-
return
|
27514
|
+
return _WQML.__wrap(ret3);
|
27515
27515
|
}
|
27516
27516
|
};
|
27517
27517
|
var WQMM = class {
|
@@ -27577,10 +27577,10 @@ spurious results.`);
|
|
27577
27577
|
return RegId.__wrap(ret3);
|
27578
27578
|
}
|
27579
27579
|
};
|
27580
|
-
var WQOP = class {
|
27580
|
+
var WQOP = class _WQOP {
|
27581
27581
|
static __wrap(ptr) {
|
27582
27582
|
ptr = ptr >>> 0;
|
27583
|
-
const obj = Object.create(
|
27583
|
+
const obj = Object.create(_WQOP.prototype);
|
27584
27584
|
obj.__wbg_ptr = ptr;
|
27585
27585
|
return obj;
|
27586
27586
|
}
|
@@ -27663,7 +27663,7 @@ spurious results.`);
|
|
27663
27663
|
_assertClass(args, MathArgs);
|
27664
27664
|
var ptr3 = args.__destroy_into_raw();
|
27665
27665
|
const ret3 = wasm$1.wdop_from_args(ptr0, ptr1, ptr2, ptr3);
|
27666
|
-
return
|
27666
|
+
return _WQOP.__wrap(ret3);
|
27667
27667
|
}
|
27668
27668
|
};
|
27669
27669
|
var XOR = class {
|
@@ -28114,6 +28114,7 @@ spurious results.`);
|
|
28114
28114
|
// ../../node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js
|
28115
28115
|
var require_async2 = __commonJS({
|
28116
28116
|
"../../node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js"(exports, module) {
|
28117
|
+
"use strict";
|
28117
28118
|
(function(global2, factory) {
|
28118
28119
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.async = global2.async || {});
|
28119
28120
|
})(exports, function(exports2) {
|
@@ -28309,7 +28310,7 @@ spurious results.`);
|
|
28309
28310
|
var objectProto$3 = Object.prototype;
|
28310
28311
|
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
28311
28312
|
var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
|
28312
|
-
var isArguments = baseIsArguments(function() {
|
28313
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
28313
28314
|
return arguments;
|
28314
28315
|
}()) ? baseIsArguments : function(value) {
|
28315
28316
|
return isObjectLike2(value) && hasOwnProperty$2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
@@ -30056,6 +30057,7 @@ spurious results.`);
|
|
30056
30057
|
// ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
30057
30058
|
var require_ms = __commonJS({
|
30058
30059
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
|
30060
|
+
"use strict";
|
30059
30061
|
var s = 1e3;
|
30060
30062
|
var m = s * 60;
|
30061
30063
|
var h = m * 60;
|
@@ -30641,6 +30643,7 @@ spurious results.`);
|
|
30641
30643
|
// ../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js
|
30642
30644
|
var require_mkdirp = __commonJS({
|
30643
30645
|
"../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js"(exports, module) {
|
30646
|
+
"use strict";
|
30644
30647
|
var path2 = __require("path");
|
30645
30648
|
var fs = __require("fs");
|
30646
30649
|
var _0777 = parseInt("0777", 8);
|
@@ -31794,7 +31797,7 @@ spurious results.`);
|
|
31794
31797
|
}
|
31795
31798
|
B.fill(0);
|
31796
31799
|
}
|
31797
|
-
var Keccak = class extends Hash {
|
31800
|
+
var Keccak = class _Keccak extends Hash {
|
31798
31801
|
// NOTE: we accept arguments in bytes instead of bits here.
|
31799
31802
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
31800
31803
|
super();
|
@@ -31885,7 +31888,7 @@ spurious results.`);
|
|
31885
31888
|
}
|
31886
31889
|
_cloneInto(to) {
|
31887
31890
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
31888
|
-
to || (to = new
|
31891
|
+
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
31889
31892
|
to.state32.set(this.state32);
|
31890
31893
|
to.pos = this.pos;
|
31891
31894
|
to.posOut = this.posOut;
|
@@ -31964,12 +31967,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
31964
31967
|
var versions = getBuiltinVersions();
|
31965
31968
|
|
31966
31969
|
// ../errors/dist/index.mjs
|
31967
|
-
var __defProp2 = Object.defineProperty;
|
31968
|
-
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
31969
|
-
var __publicField2 = (obj, key, value) => {
|
31970
|
-
__defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
31971
|
-
return value;
|
31972
|
-
};
|
31973
31970
|
var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
|
31974
31971
|
ErrorCode2["NO_ABIS_FOUND"] = "no-abis-found";
|
31975
31972
|
ErrorCode2["ABI_TYPES_AND_VALUES_MISMATCH"] = "abi-types-and-values-mismatch";
|
@@ -32048,7 +32045,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32048
32045
|
ErrorCode2["STREAM_PARSING_ERROR"] = "stream-parsing-error";
|
32049
32046
|
return ErrorCode2;
|
32050
32047
|
})(ErrorCode || {});
|
32051
|
-
var
|
32048
|
+
var FuelError = class _FuelError extends Error {
|
32049
|
+
static CODES = ErrorCode;
|
32052
32050
|
VERSIONS = versions;
|
32053
32051
|
static parse(e) {
|
32054
32052
|
const error = e;
|
@@ -32079,16 +32077,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32079
32077
|
return { code, name, message, VERSIONS };
|
32080
32078
|
}
|
32081
32079
|
};
|
32082
|
-
var FuelError = _FuelError;
|
32083
|
-
__publicField2(FuelError, "CODES", ErrorCode);
|
32084
32080
|
|
32085
32081
|
// ../utils/dist/index.mjs
|
32086
|
-
var __defProp3 = Object.defineProperty;
|
32087
|
-
var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
32088
|
-
var __publicField3 = (obj, key, value) => {
|
32089
|
-
__defNormalProp3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
32090
|
-
return value;
|
32091
|
-
};
|
32092
32082
|
var arrayify = (value) => {
|
32093
32083
|
if (value instanceof Uint8Array) {
|
32094
32084
|
return new Uint8Array(value);
|
@@ -32140,7 +32130,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32140
32130
|
var tai64ToUnixSeconds = (tai64) => Number(BigInt(tai64) - TAI64_UNIX_OFFSET);
|
32141
32131
|
var unixSecondsToTai64 = (unixSeconds) => String(BigInt(unixSeconds) + TAI64_UNIX_OFFSET);
|
32142
32132
|
var tai64ToUnixMilliseconds = (tai64) => secondsToMs(tai64ToUnixSeconds(tai64));
|
32143
|
-
var
|
32133
|
+
var DateTime = class _DateTime extends Date {
|
32134
|
+
static TAI64_NULL = "";
|
32144
32135
|
/**
|
32145
32136
|
* Generates a new DateTime instance from a Tai64 timestamp.
|
32146
32137
|
*
|
@@ -32191,8 +32182,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
32191
32182
|
return msToSeconds(this.getTime());
|
32192
32183
|
}
|
32193
32184
|
};
|
32194
|
-
var DateTime = _DateTime;
|
32195
|
-
__publicField3(DateTime, "TAI64_NULL", "");
|
32196
32185
|
var chainConfig_default = {
|
32197
32186
|
chain_name: "local_testnet",
|
32198
32187
|
block_gas_limit: 5e9,
|
@@ -33423,7 +33412,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33423
33412
|
}
|
33424
33413
|
B.fill(0);
|
33425
33414
|
}
|
33426
|
-
var Keccak2 = class extends Hash2 {
|
33415
|
+
var Keccak2 = class _Keccak extends Hash2 {
|
33427
33416
|
// NOTE: we accept arguments in bytes instead of bits here.
|
33428
33417
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
33429
33418
|
super();
|
@@ -33514,7 +33503,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33514
33503
|
}
|
33515
33504
|
_cloneInto(to) {
|
33516
33505
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
33517
|
-
to || (to = new
|
33506
|
+
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
33518
33507
|
to.state32.set(this.state32);
|
33519
33508
|
to.pos = this.pos;
|
33520
33509
|
to.posOut = this.posOut;
|
@@ -33902,7 +33891,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33902
33891
|
|
33903
33892
|
// ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/providers/plugins-network.js
|
33904
33893
|
var EnsAddress = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
33905
|
-
var NetworkPlugin = class {
|
33894
|
+
var NetworkPlugin = class _NetworkPlugin {
|
33906
33895
|
/**
|
33907
33896
|
* The name of the plugin.
|
33908
33897
|
*
|
@@ -33920,10 +33909,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33920
33909
|
* Creates a copy of this plugin.
|
33921
33910
|
*/
|
33922
33911
|
clone() {
|
33923
|
-
return new
|
33912
|
+
return new _NetworkPlugin(this.name);
|
33924
33913
|
}
|
33925
33914
|
};
|
33926
|
-
var GasCostPlugin = class extends NetworkPlugin {
|
33915
|
+
var GasCostPlugin = class _GasCostPlugin extends NetworkPlugin {
|
33927
33916
|
/**
|
33928
33917
|
* The block number to treat these values as valid from.
|
33929
33918
|
*
|
@@ -33983,10 +33972,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
33983
33972
|
defineProperties(this, props);
|
33984
33973
|
}
|
33985
33974
|
clone() {
|
33986
|
-
return new
|
33975
|
+
return new _GasCostPlugin(this.effectiveBlock, this);
|
33987
33976
|
}
|
33988
33977
|
};
|
33989
|
-
var EnsPlugin = class extends NetworkPlugin {
|
33978
|
+
var EnsPlugin = class _EnsPlugin extends NetworkPlugin {
|
33990
33979
|
/**
|
33991
33980
|
* The ENS Registrty Contract address.
|
33992
33981
|
*/
|
@@ -34008,7 +33997,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34008
33997
|
});
|
34009
33998
|
}
|
34010
33999
|
clone() {
|
34011
|
-
return new
|
34000
|
+
return new _EnsPlugin(this.address, this.targetNetwork);
|
34012
34001
|
}
|
34013
34002
|
};
|
34014
34003
|
var FetchUrlFeeDataNetworkPlugin = class extends NetworkPlugin {
|
@@ -34043,7 +34032,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34043
34032
|
|
34044
34033
|
// ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/providers/network.js
|
34045
34034
|
var Networks = /* @__PURE__ */ new Map();
|
34046
|
-
var Network = class {
|
34035
|
+
var Network = class _Network {
|
34047
34036
|
#name;
|
34048
34037
|
#chainId;
|
34049
34038
|
#plugins;
|
@@ -34158,7 +34147,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34158
34147
|
* Create a copy of this Network.
|
34159
34148
|
*/
|
34160
34149
|
clone() {
|
34161
|
-
const clone4 = new
|
34150
|
+
const clone4 = new _Network(this.name, this.chainId);
|
34162
34151
|
this.plugins.forEach((plugin) => {
|
34163
34152
|
clone4.attachPlugin(plugin.clone());
|
34164
34153
|
});
|
@@ -34199,7 +34188,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34199
34188
|
static from(network) {
|
34200
34189
|
injectCommonNetworks();
|
34201
34190
|
if (network == null) {
|
34202
|
-
return
|
34191
|
+
return _Network.from("mainnet");
|
34203
34192
|
}
|
34204
34193
|
if (typeof network === "number") {
|
34205
34194
|
network = BigInt(network);
|
@@ -34210,7 +34199,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34210
34199
|
return networkFunc();
|
34211
34200
|
}
|
34212
34201
|
if (typeof network === "bigint") {
|
34213
|
-
return new
|
34202
|
+
return new _Network("unknown", network);
|
34214
34203
|
}
|
34215
34204
|
assertArgument(false, "unknown network", "network", network);
|
34216
34205
|
}
|
@@ -34220,7 +34209,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34220
34209
|
}
|
34221
34210
|
if (typeof network === "object") {
|
34222
34211
|
assertArgument(typeof network.name === "string" && typeof network.chainId === "number", "invalid network object name or chainId", "network", network);
|
34223
|
-
const custom = new
|
34212
|
+
const custom = new _Network(network.name, network.chainId);
|
34224
34213
|
if (network.ensAddress || network.ensNetwork != null) {
|
34225
34214
|
custom.attachPlugin(new EnsPlugin(network.ensAddress, network.ensNetwork));
|
34226
34215
|
}
|
@@ -34556,7 +34545,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34556
34545
|
}
|
34557
34546
|
return address.replace("0x", "0x000000000000000000000000");
|
34558
34547
|
};
|
34559
|
-
var Address = class extends AbstractAddress {
|
34548
|
+
var Address = class _Address extends AbstractAddress {
|
34560
34549
|
// #region address-2
|
34561
34550
|
bech32Address;
|
34562
34551
|
// #endregion address-2
|
@@ -34670,7 +34659,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34670
34659
|
throw new FuelError(FuelError.CODES.INVALID_PUBLIC_KEY, `Invalid Public Key: ${publicKey}.`);
|
34671
34660
|
}
|
34672
34661
|
const b256Address = hexlify(sha256(arrayify(publicKey)));
|
34673
|
-
return new
|
34662
|
+
return new _Address(toBech32(b256Address));
|
34674
34663
|
}
|
34675
34664
|
/**
|
34676
34665
|
* Takes a B256 Address and creates an `Address`
|
@@ -34685,7 +34674,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34685
34674
|
`Invalid B256 Address: ${b256Address}.`
|
34686
34675
|
);
|
34687
34676
|
}
|
34688
|
-
return new
|
34677
|
+
return new _Address(toBech32(b256Address));
|
34689
34678
|
}
|
34690
34679
|
/**
|
34691
34680
|
* Creates an `Address` with a randomized `bech32Address` property
|
@@ -34702,7 +34691,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34702
34691
|
* @returns A new `Address` instance
|
34703
34692
|
*/
|
34704
34693
|
static fromString(address) {
|
34705
|
-
return isBech32(address) ? new
|
34694
|
+
return isBech32(address) ? new _Address(address) : this.fromB256(address);
|
34706
34695
|
}
|
34707
34696
|
/**
|
34708
34697
|
* Takes an ambiguous string or address and creates an `Address`
|
@@ -34721,19 +34710,19 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34721
34710
|
*/
|
34722
34711
|
static fromDynamicInput(address) {
|
34723
34712
|
if (typeof address !== "string" && "toB256" in address) {
|
34724
|
-
return
|
34713
|
+
return _Address.fromB256(address.toB256());
|
34725
34714
|
}
|
34726
34715
|
if (isPublicKey(address)) {
|
34727
|
-
return
|
34716
|
+
return _Address.fromPublicKey(address);
|
34728
34717
|
}
|
34729
34718
|
if (isBech32(address)) {
|
34730
|
-
return new
|
34719
|
+
return new _Address(address);
|
34731
34720
|
}
|
34732
34721
|
if (isB256(address)) {
|
34733
|
-
return
|
34722
|
+
return _Address.fromB256(address);
|
34734
34723
|
}
|
34735
34724
|
if (isEvmAddress(address)) {
|
34736
|
-
return
|
34725
|
+
return _Address.fromEvmAddress(address);
|
34737
34726
|
}
|
34738
34727
|
throw new FuelError(
|
34739
34728
|
FuelError.CODES.PARSE_FAILED,
|
@@ -34753,7 +34742,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34753
34742
|
);
|
34754
34743
|
}
|
34755
34744
|
const paddedAddress = padFirst12BytesOfEvmAddress(evmAddress);
|
34756
|
-
return new
|
34745
|
+
return new _Address(toBech32(paddedAddress));
|
34757
34746
|
}
|
34758
34747
|
};
|
34759
34748
|
|
@@ -34781,12 +34770,12 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34781
34770
|
const decimalPortion = decimals ? `.${decimals}` : "";
|
34782
34771
|
return `${units}${decimalPortion}`;
|
34783
34772
|
}
|
34784
|
-
var BN = class extends import_bn.default {
|
34773
|
+
var BN = class _BN extends import_bn.default {
|
34785
34774
|
MAX_U64 = "0xFFFFFFFFFFFFFFFF";
|
34786
34775
|
constructor(value, base, endian) {
|
34787
34776
|
let bnValue = value;
|
34788
34777
|
let bnBase = base;
|
34789
|
-
if (
|
34778
|
+
if (_BN.isBN(value)) {
|
34790
34779
|
bnValue = value.toArray();
|
34791
34780
|
} else if (typeof value === "string" && value.slice(0, 2) === "0x") {
|
34792
34781
|
bnValue = value.substring(2);
|
@@ -34899,26 +34888,26 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34899
34888
|
// END ANCHOR: OVERRIDES to accept better inputs
|
34900
34889
|
// ANCHOR: OVERRIDES to output our BN type
|
34901
34890
|
sqr() {
|
34902
|
-
return new
|
34891
|
+
return new _BN(super.sqr().toArray());
|
34903
34892
|
}
|
34904
34893
|
neg() {
|
34905
|
-
return new
|
34894
|
+
return new _BN(super.neg().toArray());
|
34906
34895
|
}
|
34907
34896
|
abs() {
|
34908
|
-
return new
|
34897
|
+
return new _BN(super.abs().toArray());
|
34909
34898
|
}
|
34910
34899
|
toTwos(width) {
|
34911
|
-
return new
|
34900
|
+
return new _BN(super.toTwos(width).toArray());
|
34912
34901
|
}
|
34913
34902
|
fromTwos(width) {
|
34914
|
-
return new
|
34903
|
+
return new _BN(super.fromTwos(width).toArray());
|
34915
34904
|
}
|
34916
34905
|
// END ANCHOR: OVERRIDES to output our BN type
|
34917
34906
|
// ANCHOR: OVERRIDES to avoid losing references
|
34918
34907
|
caller(v, methodName) {
|
34919
|
-
const output3 = super[methodName](new
|
34920
|
-
if (
|
34921
|
-
return new
|
34908
|
+
const output3 = super[methodName](new _BN(v));
|
34909
|
+
if (_BN.isBN(output3)) {
|
34910
|
+
return new _BN(output3.toArray());
|
34922
34911
|
}
|
34923
34912
|
if (typeof output3 === "boolean") {
|
34924
34913
|
return output3;
|
@@ -34926,32 +34915,32 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34926
34915
|
return output3;
|
34927
34916
|
}
|
34928
34917
|
clone() {
|
34929
|
-
return new
|
34918
|
+
return new _BN(this.toArray());
|
34930
34919
|
}
|
34931
34920
|
mulTo(num, out) {
|
34932
34921
|
const output3 = new import_bn.default(this.toArray()).mulTo(num, out);
|
34933
|
-
return new
|
34922
|
+
return new _BN(output3.toArray());
|
34934
34923
|
}
|
34935
34924
|
egcd(p) {
|
34936
34925
|
const { a, b, gcd } = new import_bn.default(this.toArray()).egcd(p);
|
34937
34926
|
return {
|
34938
|
-
a: new
|
34939
|
-
b: new
|
34940
|
-
gcd: new
|
34927
|
+
a: new _BN(a.toArray()),
|
34928
|
+
b: new _BN(b.toArray()),
|
34929
|
+
gcd: new _BN(gcd.toArray())
|
34941
34930
|
};
|
34942
34931
|
}
|
34943
34932
|
divmod(num, mode, positive) {
|
34944
|
-
const { div, mod: mod2 } = new import_bn.default(this.toArray()).divmod(new
|
34933
|
+
const { div, mod: mod2 } = new import_bn.default(this.toArray()).divmod(new _BN(num), mode, positive);
|
34945
34934
|
return {
|
34946
|
-
div: new
|
34947
|
-
mod: new
|
34935
|
+
div: new _BN(div?.toArray()),
|
34936
|
+
mod: new _BN(mod2?.toArray())
|
34948
34937
|
};
|
34949
34938
|
}
|
34950
34939
|
maxU64() {
|
34951
|
-
return this.gte(this.MAX_U64) ? new
|
34940
|
+
return this.gte(this.MAX_U64) ? new _BN(this.MAX_U64) : this;
|
34952
34941
|
}
|
34953
34942
|
normalizeZeroToOne() {
|
34954
|
-
return this.isZero() ? new
|
34943
|
+
return this.isZero() ? new _BN(1) : this;
|
34955
34944
|
}
|
34956
34945
|
// END ANCHOR: OVERRIDES to avoid losing references
|
34957
34946
|
};
|
@@ -35018,25 +35007,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35018
35007
|
};
|
35019
35008
|
|
35020
35009
|
// ../abi-coder/dist/index.mjs
|
35021
|
-
var __defProp4 = Object.defineProperty;
|
35022
|
-
var __defNormalProp4 = (obj, key, value) => key in obj ? __defProp4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
35023
|
-
var __publicField4 = (obj, key, value) => {
|
35024
|
-
__defNormalProp4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
35025
|
-
return value;
|
35026
|
-
};
|
35027
|
-
var __accessCheck2 = (obj, member, msg) => {
|
35028
|
-
if (!member.has(obj))
|
35029
|
-
throw TypeError("Cannot " + msg);
|
35030
|
-
};
|
35031
|
-
var __privateAdd2 = (obj, member, value) => {
|
35032
|
-
if (member.has(obj))
|
35033
|
-
throw TypeError("Cannot add the same private member more than once");
|
35034
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
35035
|
-
};
|
35036
|
-
var __privateMethod2 = (obj, member, method) => {
|
35037
|
-
__accessCheck2(obj, member, "access private method");
|
35038
|
-
return method;
|
35039
|
-
};
|
35040
35010
|
var Coder = class {
|
35041
35011
|
name;
|
35042
35012
|
type;
|
@@ -35375,12 +35345,10 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35375
35345
|
return [true, offset + this.paddingLength];
|
35376
35346
|
}
|
35377
35347
|
};
|
35378
|
-
var _getPaddedData;
|
35379
|
-
var getPaddedData_fn;
|
35380
35348
|
var ByteCoder = class extends Coder {
|
35349
|
+
static memorySize = 1;
|
35381
35350
|
constructor() {
|
35382
35351
|
super("struct", "struct Bytes", BASE_VECTOR_OFFSET);
|
35383
|
-
__privateAdd2(this, _getPaddedData);
|
35384
35352
|
}
|
35385
35353
|
encode(value) {
|
35386
35354
|
if (!Array.isArray(value)) {
|
@@ -35388,7 +35356,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35388
35356
|
}
|
35389
35357
|
const parts = [];
|
35390
35358
|
const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
|
35391
|
-
const data =
|
35359
|
+
const data = this.#getPaddedData(value);
|
35392
35360
|
pointer.dynamicData = {
|
35393
35361
|
0: concatWithDynamicData([data])
|
35394
35362
|
};
|
@@ -35397,6 +35365,14 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35397
35365
|
parts.push(new BigNumberCoder("u64").encode(value.length));
|
35398
35366
|
return concatWithDynamicData(parts);
|
35399
35367
|
}
|
35368
|
+
#getPaddedData(value) {
|
35369
|
+
const data = [Uint8Array.from(value)];
|
35370
|
+
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
35371
|
+
if (paddingLength) {
|
35372
|
+
data.push(new Uint8Array(paddingLength));
|
35373
|
+
}
|
35374
|
+
return concat(data);
|
35375
|
+
}
|
35400
35376
|
decode(data, offset) {
|
35401
35377
|
if (data.length < BASE_VECTOR_OFFSET) {
|
35402
35378
|
throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid byte data size.`);
|
@@ -35410,16 +35386,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35410
35386
|
return [byteData, offset + BASE_VECTOR_OFFSET];
|
35411
35387
|
}
|
35412
35388
|
};
|
35413
|
-
_getPaddedData = /* @__PURE__ */ new WeakSet();
|
35414
|
-
getPaddedData_fn = function(value) {
|
35415
|
-
const data = [Uint8Array.from(value)];
|
35416
|
-
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
35417
|
-
if (paddingLength) {
|
35418
|
-
data.push(new Uint8Array(paddingLength));
|
35419
|
-
}
|
35420
|
-
return concat(data);
|
35421
|
-
};
|
35422
|
-
__publicField4(ByteCoder, "memorySize", 1);
|
35423
35389
|
var isFullyNativeEnum = (enumCoders) => Object.values(enumCoders).every(
|
35424
35390
|
// @ts-expect-error complicated types
|
35425
35391
|
({ type: type3, coders }) => type3 === "()" && JSON.stringify(coders) === JSON.stringify([])
|
@@ -35618,17 +35584,15 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35618
35584
|
return [decodedValue, offset + dataBytes.length];
|
35619
35585
|
}
|
35620
35586
|
};
|
35621
|
-
var _getPaddedData2;
|
35622
|
-
var getPaddedData_fn2;
|
35623
35587
|
var StdStringCoder = class extends Coder {
|
35588
|
+
static memorySize = 1;
|
35624
35589
|
constructor() {
|
35625
35590
|
super("struct", "struct String", 1);
|
35626
|
-
__privateAdd2(this, _getPaddedData2);
|
35627
35591
|
}
|
35628
35592
|
encode(value) {
|
35629
35593
|
const parts = [];
|
35630
35594
|
const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
|
35631
|
-
const data =
|
35595
|
+
const data = this.#getPaddedData(value);
|
35632
35596
|
pointer.dynamicData = {
|
35633
35597
|
0: concatWithDynamicData([data])
|
35634
35598
|
};
|
@@ -35637,6 +35601,14 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35637
35601
|
parts.push(new BigNumberCoder("u64").encode(value.length));
|
35638
35602
|
return concatWithDynamicData(parts);
|
35639
35603
|
}
|
35604
|
+
#getPaddedData(value) {
|
35605
|
+
const data = [toUtf8Bytes(value)];
|
35606
|
+
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
35607
|
+
if (paddingLength) {
|
35608
|
+
data.push(new Uint8Array(paddingLength));
|
35609
|
+
}
|
35610
|
+
return concat(data);
|
35611
|
+
}
|
35640
35612
|
decode(data, offset) {
|
35641
35613
|
if (data.length < this.encodedLength) {
|
35642
35614
|
throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid std string data size.`);
|
@@ -35651,16 +35623,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35651
35623
|
return [value, offset + BASE_VECTOR_OFFSET];
|
35652
35624
|
}
|
35653
35625
|
};
|
35654
|
-
_getPaddedData2 = /* @__PURE__ */ new WeakSet();
|
35655
|
-
getPaddedData_fn2 = function(value) {
|
35656
|
-
const data = [toUtf8Bytes(value)];
|
35657
|
-
const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
|
35658
|
-
if (paddingLength) {
|
35659
|
-
data.push(new Uint8Array(paddingLength));
|
35660
|
-
}
|
35661
|
-
return concat(data);
|
35662
|
-
};
|
35663
|
-
__publicField4(StdStringCoder, "memorySize", 1);
|
35664
35626
|
var StringCoder = class extends Coder {
|
35665
35627
|
length;
|
35666
35628
|
#paddingLength;
|
@@ -35816,7 +35778,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35816
35778
|
];
|
35817
35779
|
}
|
35818
35780
|
};
|
35819
|
-
var ResolvedAbiType = class {
|
35781
|
+
var ResolvedAbiType = class _ResolvedAbiType {
|
35820
35782
|
abi;
|
35821
35783
|
name;
|
35822
35784
|
type;
|
@@ -35840,11 +35802,11 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35840
35802
|
this.name = argument.name;
|
35841
35803
|
this.type = type3.type;
|
35842
35804
|
this.originalTypeArguments = argument.typeArguments;
|
35843
|
-
this.components =
|
35805
|
+
this.components = _ResolvedAbiType.getResolvedGenericComponents(
|
35844
35806
|
abi,
|
35845
35807
|
argument,
|
35846
35808
|
type3.components,
|
35847
|
-
type3.typeParameters ??
|
35809
|
+
type3.typeParameters ?? _ResolvedAbiType.getImplicitGenericTypeParameters(abi, type3.components)
|
35848
35810
|
);
|
35849
35811
|
}
|
35850
35812
|
static getResolvedGenericComponents(abi, arg, components, typeParameters) {
|
@@ -35852,7 +35814,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35852
35814
|
return null;
|
35853
35815
|
}
|
35854
35816
|
if (typeParameters === null || typeParameters.length === 0) {
|
35855
|
-
return components.map((c) => new
|
35817
|
+
return components.map((c) => new _ResolvedAbiType(abi, c));
|
35856
35818
|
}
|
35857
35819
|
const typeParametersAndArgsMap = typeParameters.reduce(
|
35858
35820
|
(obj, typeParameter, typeParameterIndex) => {
|
@@ -35869,7 +35831,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35869
35831
|
components,
|
35870
35832
|
typeParametersAndArgsMap
|
35871
35833
|
);
|
35872
|
-
return resolvedComponents.map((c) => new
|
35834
|
+
return resolvedComponents.map((c) => new _ResolvedAbiType(abi, c));
|
35873
35835
|
}
|
35874
35836
|
static resolveGenericArgTypes(abi, args, typeParametersAndArgsMap) {
|
35875
35837
|
return args.map((arg) => {
|
@@ -35956,7 +35918,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
35956
35918
|
if (arrayMatch) {
|
35957
35919
|
return `[${this.components[0].getSignature()};${arrayMatch.length}]`;
|
35958
35920
|
}
|
35959
|
-
const typeArgumentsSignature = this.originalTypeArguments !== null ? `<${this.originalTypeArguments.map((a) => new
|
35921
|
+
const typeArgumentsSignature = this.originalTypeArguments !== null ? `<${this.originalTypeArguments.map((a) => new _ResolvedAbiType(this.abi, a).getSignature()).join(",")}>` : "";
|
35960
35922
|
const componentsSignature = `(${this.components.map((c) => c.getSignature()).join(",")})`;
|
35961
35923
|
return `${typeArgumentsSignature}${componentsSignature}`;
|
35962
35924
|
}
|
@@ -36084,6 +36046,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36084
36046
|
}
|
36085
36047
|
};
|
36086
36048
|
var ByteCoder2 = class extends Coder {
|
36049
|
+
static memorySize = 1;
|
36087
36050
|
constructor() {
|
36088
36051
|
super("struct", "struct Bytes", WORD_SIZE);
|
36089
36052
|
}
|
@@ -36109,7 +36072,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36109
36072
|
return [dataBytes, offsetAndLength + length];
|
36110
36073
|
}
|
36111
36074
|
};
|
36112
|
-
__publicField4(ByteCoder2, "memorySize", 1);
|
36113
36075
|
var isFullyNativeEnum2 = (enumCoders) => Object.values(enumCoders).every(
|
36114
36076
|
// @ts-expect-error complicated types
|
36115
36077
|
({ type: type3, coders }) => type3 === "()" && JSON.stringify(coders) === JSON.stringify([])
|
@@ -36253,6 +36215,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36253
36215
|
}
|
36254
36216
|
};
|
36255
36217
|
var StdStringCoder2 = class extends Coder {
|
36218
|
+
static memorySize = 1;
|
36256
36219
|
constructor() {
|
36257
36220
|
super("struct", "struct String", WORD_SIZE);
|
36258
36221
|
}
|
@@ -36275,7 +36238,6 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36275
36238
|
return [toUtf8String(dataBytes), offsetAndLength + length];
|
36276
36239
|
}
|
36277
36240
|
};
|
36278
|
-
__publicField4(StdStringCoder2, "memorySize", 1);
|
36279
36241
|
var StringCoder2 = class extends Coder {
|
36280
36242
|
constructor(length) {
|
36281
36243
|
super("string", `str[${length}]`, length);
|
@@ -36515,7 +36477,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36515
36477
|
return this.getCoder(abi, argument, options).decode(data, offset);
|
36516
36478
|
}
|
36517
36479
|
};
|
36518
|
-
var FunctionFragment = class {
|
36480
|
+
var FunctionFragment = class _FunctionFragment {
|
36519
36481
|
signature;
|
36520
36482
|
selector;
|
36521
36483
|
name;
|
@@ -36528,8 +36490,8 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36528
36490
|
this.jsonAbi = jsonAbi;
|
36529
36491
|
this.jsonFn = findOrThrow(this.jsonAbi.functions, (f2) => f2.name === name);
|
36530
36492
|
this.name = name;
|
36531
|
-
this.signature =
|
36532
|
-
this.selector =
|
36493
|
+
this.signature = _FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
|
36494
|
+
this.selector = _FunctionFragment.getFunctionSelector(this.signature);
|
36533
36495
|
this.isInputDataPointer = this.#isInputDataPointer();
|
36534
36496
|
this.outputMetadata = {
|
36535
36497
|
isHeapType: this.#isOutputDataHeap(),
|
@@ -36572,7 +36534,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36572
36534
|
}
|
36573
36535
|
}
|
36574
36536
|
encodeArguments(values, offset = 0) {
|
36575
|
-
|
36537
|
+
_FunctionFragment.verifyArgsAndInputsAlign(values, this.jsonFn.inputs, this.jsonAbi);
|
36576
36538
|
const shallowCopyValues = values.slice();
|
36577
36539
|
const nonEmptyInputs = this.jsonFn.inputs.filter(
|
36578
36540
|
(x) => findOrThrow(this.jsonAbi.types, (t) => t.typeId === x.type).type !== "()"
|
@@ -36923,7 +36885,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36923
36885
|
];
|
36924
36886
|
}
|
36925
36887
|
};
|
36926
|
-
var InputMessageCoder = class extends Coder {
|
36888
|
+
var InputMessageCoder = class _InputMessageCoder extends Coder {
|
36927
36889
|
constructor() {
|
36928
36890
|
super("InputMessage", "struct InputMessage", 0);
|
36929
36891
|
}
|
@@ -36943,7 +36905,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
36943
36905
|
}
|
36944
36906
|
encode(value) {
|
36945
36907
|
const parts = [];
|
36946
|
-
const data =
|
36908
|
+
const data = _InputMessageCoder.encodeData(value.data);
|
36947
36909
|
parts.push(new ByteArrayCoder(32).encode(value.sender));
|
36948
36910
|
parts.push(new ByteArrayCoder(32).encode(value.recipient));
|
36949
36911
|
parts.push(new BigNumberCoder("u64").encode(value.amount));
|
@@ -37387,7 +37349,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
37387
37349
|
ReceiptType2[ReceiptType2["Burn"] = 12] = "Burn";
|
37388
37350
|
return ReceiptType2;
|
37389
37351
|
})(ReceiptType || {});
|
37390
|
-
var ReceiptMessageOutCoder = class extends Coder {
|
37352
|
+
var ReceiptMessageOutCoder = class _ReceiptMessageOutCoder extends Coder {
|
37391
37353
|
constructor() {
|
37392
37354
|
super("ReceiptMessageOut", "struct ReceiptMessageOut", 0);
|
37393
37355
|
}
|
@@ -37438,7 +37400,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
37438
37400
|
digest,
|
37439
37401
|
data: messageData
|
37440
37402
|
};
|
37441
|
-
receiptMessageOut.messageId =
|
37403
|
+
receiptMessageOut.messageId = _ReceiptMessageOutCoder.getMessageId(receiptMessageOut);
|
37442
37404
|
return [receiptMessageOut, o];
|
37443
37405
|
}
|
37444
37406
|
};
|
@@ -37447,7 +37409,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
37447
37409
|
const subIdBytes = arrayify(subId);
|
37448
37410
|
return sha2563(concat([contractIdBytes, subIdBytes]));
|
37449
37411
|
};
|
37450
|
-
var ReceiptMintCoder = class extends Coder {
|
37412
|
+
var ReceiptMintCoder = class _ReceiptMintCoder extends Coder {
|
37451
37413
|
constructor() {
|
37452
37414
|
super("ReceiptMint", "struct ReceiptMint", 0);
|
37453
37415
|
}
|
@@ -37476,7 +37438,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
37476
37438
|
const pc = decoded;
|
37477
37439
|
[decoded, o] = new BigNumberCoder("u64").decode(data, o);
|
37478
37440
|
const is = decoded;
|
37479
|
-
const assetId =
|
37441
|
+
const assetId = _ReceiptMintCoder.getAssetId(contractId, subId);
|
37480
37442
|
const receiptMint = {
|
37481
37443
|
type: 11,
|
37482
37444
|
subId,
|
@@ -38335,7 +38297,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
38335
38297
|
}
|
38336
38298
|
return firstArg;
|
38337
38299
|
}
|
38338
|
-
var GraphQLError = class extends Error {
|
38300
|
+
var GraphQLError = class _GraphQLError extends Error {
|
38339
38301
|
/**
|
38340
38302
|
* An array of `{ line, column }` locations within the source GraphQL document
|
38341
38303
|
* which correspond to this error.
|
@@ -38422,7 +38384,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
38422
38384
|
configurable: true
|
38423
38385
|
});
|
38424
38386
|
} else if (Error.captureStackTrace) {
|
38425
|
-
Error.captureStackTrace(this,
|
38387
|
+
Error.captureStackTrace(this, _GraphQLError);
|
38426
38388
|
} else {
|
38427
38389
|
Object.defineProperty(this, "stack", {
|
38428
38390
|
value: Error().stack,
|
@@ -42186,11 +42148,12 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42186
42148
|
}
|
42187
42149
|
|
42188
42150
|
// src/providers/fuel-graphql-subscriber.ts
|
42189
|
-
var
|
42151
|
+
var FuelGraphqlSubscriber = class _FuelGraphqlSubscriber {
|
42190
42152
|
constructor(options) {
|
42191
42153
|
this.options = options;
|
42192
42154
|
}
|
42193
42155
|
stream;
|
42156
|
+
static textDecoder = new TextDecoder();
|
42194
42157
|
async setStream() {
|
42195
42158
|
const { url, query, variables, fetchFn } = this.options;
|
42196
42159
|
const response = await fetchFn(`${url}-sub`, {
|
@@ -42250,8 +42213,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42250
42213
|
return this;
|
42251
42214
|
}
|
42252
42215
|
};
|
42253
|
-
var FuelGraphqlSubscriber = _FuelGraphqlSubscriber;
|
42254
|
-
__publicField(FuelGraphqlSubscriber, "textDecoder", new TextDecoder());
|
42255
42216
|
|
42256
42217
|
// src/providers/memory-cache.ts
|
42257
42218
|
var cache = {};
|
@@ -42774,7 +42735,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42774
42735
|
};
|
42775
42736
|
|
42776
42737
|
// src/providers/transaction-request/transaction-request.ts
|
42777
|
-
var BaseTransactionRequest = class {
|
42738
|
+
var BaseTransactionRequest = class _BaseTransactionRequest {
|
42778
42739
|
/** Gas price for transaction */
|
42779
42740
|
gasPrice;
|
42780
42741
|
/** Block until which tx cannot be included */
|
@@ -42844,7 +42805,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42844
42805
|
const inputs = this.inputs?.map(inputify) ?? [];
|
42845
42806
|
const outputs = this.outputs?.map(outputify) ?? [];
|
42846
42807
|
const witnesses = this.witnesses?.map(witnessify) ?? [];
|
42847
|
-
const { policyTypes, policies } =
|
42808
|
+
const { policyTypes, policies } = _BaseTransactionRequest.getPolicyMeta(this);
|
42848
42809
|
return {
|
42849
42810
|
policyTypes,
|
42850
42811
|
inputs,
|
@@ -42882,27 +42843,13 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42882
42843
|
this.outputs.push(output3);
|
42883
42844
|
return this.outputs.length - 1;
|
42884
42845
|
}
|
42885
|
-
/**
|
42886
|
-
* @hidden
|
42887
|
-
*
|
42888
|
-
* Pushes a witness to the list and returns the index
|
42889
|
-
*
|
42890
|
-
* @param signature - The signature to add to the witness.
|
42891
|
-
* @returns The index of the created witness.
|
42892
|
-
*/
|
42893
|
-
addWitness(signature) {
|
42894
|
-
this.witnesses.push(signature);
|
42895
|
-
return this.witnesses.length - 1;
|
42896
|
-
}
|
42897
42846
|
/**
|
42898
42847
|
* @hidden
|
42899
42848
|
*
|
42900
42849
|
* Creates an empty witness without any side effects and returns the index
|
42901
|
-
*
|
42902
|
-
* @returns The index of the created witness.
|
42903
42850
|
*/
|
42904
|
-
|
42905
|
-
this.
|
42851
|
+
createWitness() {
|
42852
|
+
this.witnesses.push(concat([ZeroBytes32, ZeroBytes32]));
|
42906
42853
|
return this.witnesses.length - 1;
|
42907
42854
|
}
|
42908
42855
|
/**
|
@@ -42931,21 +42878,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
42931
42878
|
}
|
42932
42879
|
this.witnesses[index] = witness;
|
42933
42880
|
}
|
42934
|
-
/**
|
42935
|
-
* Helper function to add an external signature to the transaction.
|
42936
|
-
*
|
42937
|
-
* @param account - The account/s to sign to the transaction.
|
42938
|
-
* @returns The transaction with the signature witness added.
|
42939
|
-
*/
|
42940
|
-
async addAccountWitnesses(account) {
|
42941
|
-
const accounts = Array.isArray(account) ? account : [account];
|
42942
|
-
await Promise.all(
|
42943
|
-
accounts.map(async (acc) => {
|
42944
|
-
this.addWitness(await acc.signTransaction(this));
|
42945
|
-
})
|
42946
|
-
);
|
42947
|
-
return this;
|
42948
|
-
}
|
42949
42881
|
/**
|
42950
42882
|
* Gets the coin inputs for a transaction.
|
42951
42883
|
*
|
@@ -43011,7 +42943,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
43011
42943
|
} else {
|
43012
42944
|
witnessIndex = this.getCoinInputWitnessIndexByOwner(owner);
|
43013
42945
|
if (typeof witnessIndex !== "number") {
|
43014
|
-
witnessIndex = this.
|
42946
|
+
witnessIndex = this.createWitness();
|
43015
42947
|
}
|
43016
42948
|
}
|
43017
42949
|
const input = {
|
@@ -43045,7 +42977,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
43045
42977
|
} else {
|
43046
42978
|
witnessIndex = this.getCoinInputWitnessIndexByOwner(recipient);
|
43047
42979
|
if (typeof witnessIndex !== "number") {
|
43048
|
-
witnessIndex = this.
|
42980
|
+
witnessIndex = this.createWitness();
|
43049
42981
|
}
|
43050
42982
|
}
|
43051
42983
|
const input = {
|
@@ -44362,7 +44294,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44362
44294
|
}
|
44363
44295
|
|
44364
44296
|
// src/providers/transaction-response/transaction-response.ts
|
44365
|
-
var TransactionResponse2 = class {
|
44297
|
+
var TransactionResponse2 = class _TransactionResponse {
|
44366
44298
|
/** Transaction ID */
|
44367
44299
|
id;
|
44368
44300
|
/** Current provider */
|
@@ -44390,7 +44322,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44390
44322
|
* @param provider - The provider.
|
44391
44323
|
*/
|
44392
44324
|
static async create(id, provider) {
|
44393
|
-
const response = new
|
44325
|
+
const response = new _TransactionResponse(id, provider);
|
44394
44326
|
await response.fetch();
|
44395
44327
|
return response;
|
44396
44328
|
}
|
@@ -44601,8 +44533,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44601
44533
|
}
|
44602
44534
|
};
|
44603
44535
|
};
|
44604
|
-
var
|
44605
|
-
var _Provider = class {
|
44536
|
+
var Provider = class _Provider {
|
44606
44537
|
/**
|
44607
44538
|
* Constructor to initialize a Provider.
|
44608
44539
|
*
|
@@ -44613,27 +44544,25 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44613
44544
|
*/
|
44614
44545
|
constructor(url, options = {}) {
|
44615
44546
|
this.url = url;
|
44616
|
-
/**
|
44617
|
-
* @hidden
|
44618
|
-
*/
|
44619
|
-
__privateAdd(this, _cacheInputs);
|
44620
|
-
__publicField(this, "operations");
|
44621
|
-
__publicField(this, "cache");
|
44622
|
-
__publicField(this, "options", {
|
44623
|
-
timeout: void 0,
|
44624
|
-
cacheUtxo: void 0,
|
44625
|
-
fetch: void 0,
|
44626
|
-
retryOptions: void 0
|
44627
|
-
});
|
44628
44547
|
this.options = { ...this.options, ...options };
|
44629
44548
|
this.url = url;
|
44630
44549
|
this.operations = this.createOperations();
|
44631
44550
|
this.cache = options.cacheUtxo ? new MemoryCache(options.cacheUtxo) : void 0;
|
44632
44551
|
}
|
44552
|
+
operations;
|
44553
|
+
cache;
|
44633
44554
|
static clearChainAndNodeCaches() {
|
44634
44555
|
_Provider.nodeInfoCache = {};
|
44635
44556
|
_Provider.chainInfoCache = {};
|
44636
44557
|
}
|
44558
|
+
static chainInfoCache = {};
|
44559
|
+
static nodeInfoCache = {};
|
44560
|
+
options = {
|
44561
|
+
timeout: void 0,
|
44562
|
+
cacheUtxo: void 0,
|
44563
|
+
fetch: void 0,
|
44564
|
+
retryOptions: void 0
|
44565
|
+
};
|
44637
44566
|
static getFetchFn(options) {
|
44638
44567
|
const { retryOptions, timeout } = options;
|
44639
44568
|
return autoRetryFetch(async (...args) => {
|
@@ -44830,6 +44759,19 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44830
44759
|
} = this.getChain();
|
44831
44760
|
return chainId.toNumber();
|
44832
44761
|
}
|
44762
|
+
/**
|
44763
|
+
* @hidden
|
44764
|
+
*/
|
44765
|
+
#cacheInputs(inputs) {
|
44766
|
+
if (!this.cache) {
|
44767
|
+
return;
|
44768
|
+
}
|
44769
|
+
inputs.forEach((input) => {
|
44770
|
+
if (input.type === InputType.Coin) {
|
44771
|
+
this.cache?.set(input.id);
|
44772
|
+
}
|
44773
|
+
});
|
44774
|
+
}
|
44833
44775
|
/**
|
44834
44776
|
* Submits a transaction to the chain to be executed.
|
44835
44777
|
*
|
@@ -44842,7 +44784,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
44842
44784
|
// #region Provider-sendTransaction
|
44843
44785
|
async sendTransaction(transactionRequestLike, { estimateTxDependencies = true, awaitExecution = false } = {}) {
|
44844
44786
|
const transactionRequest = transactionRequestify(transactionRequestLike);
|
44845
|
-
|
44787
|
+
this.#cacheInputs(transactionRequest.inputs);
|
44846
44788
|
if (estimateTxDependencies) {
|
44847
44789
|
await this.estimateTxDependencies(transactionRequest);
|
44848
44790
|
}
|
@@ -45467,20 +45409,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
45467
45409
|
return new TransactionResponse2(transactionId, this);
|
45468
45410
|
}
|
45469
45411
|
};
|
45470
|
-
var Provider = _Provider;
|
45471
|
-
_cacheInputs = new WeakSet();
|
45472
|
-
cacheInputs_fn = function(inputs) {
|
45473
|
-
if (!this.cache) {
|
45474
|
-
return;
|
45475
|
-
}
|
45476
|
-
inputs.forEach((input) => {
|
45477
|
-
if (input.type === InputType.Coin) {
|
45478
|
-
this.cache?.set(input.id);
|
45479
|
-
}
|
45480
|
-
});
|
45481
|
-
};
|
45482
|
-
__publicField(Provider, "chainInfoCache", {});
|
45483
|
-
__publicField(Provider, "nodeInfoCache", {});
|
45484
45412
|
|
45485
45413
|
// src/providers/chains.ts
|
45486
45414
|
var CHAIN_IDS = {
|
@@ -45910,21 +45838,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
45910
45838
|
}
|
45911
45839
|
return this._connector.signMessage(this.address.toString(), message);
|
45912
45840
|
}
|
45913
|
-
/**
|
45914
|
-
* Signs a transaction with the wallet's private key.
|
45915
|
-
*
|
45916
|
-
* @param transactionRequestLike - The transaction request to sign.
|
45917
|
-
* @returns A promise that resolves to the signature of the transaction.
|
45918
|
-
*/
|
45919
|
-
async signTransaction(transactionRequestLike) {
|
45920
|
-
if (!this._connector) {
|
45921
|
-
throw new FuelError(
|
45922
|
-
ErrorCode.MISSING_CONNECTOR,
|
45923
|
-
"A connector is required to sign transactions."
|
45924
|
-
);
|
45925
|
-
}
|
45926
|
-
return this._connector.signTransaction(this.address.toString(), transactionRequestLike);
|
45927
|
-
}
|
45928
45841
|
/**
|
45929
45842
|
* Sends a transaction to the network.
|
45930
45843
|
*
|
@@ -47250,7 +47163,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47250
47163
|
var Point = secp256k1.ProjectivePoint;
|
47251
47164
|
|
47252
47165
|
// src/signer/signer.ts
|
47253
|
-
var Signer = class {
|
47166
|
+
var Signer = class _Signer {
|
47254
47167
|
address;
|
47255
47168
|
publicKey;
|
47256
47169
|
compressedPublicKey;
|
@@ -47329,7 +47242,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47329
47242
|
* @returns Address from signature
|
47330
47243
|
*/
|
47331
47244
|
static recoverAddress(data, signature) {
|
47332
|
-
return Address.fromPublicKey(
|
47245
|
+
return Address.fromPublicKey(_Signer.recoverPublicKey(data, signature));
|
47333
47246
|
}
|
47334
47247
|
/**
|
47335
47248
|
* Generate a random privateKey
|
@@ -47487,6 +47400,10 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47487
47400
|
|
47488
47401
|
// src/wallet/base-wallet-unlocked.ts
|
47489
47402
|
var BaseWalletUnlocked = class extends Account {
|
47403
|
+
/**
|
47404
|
+
* Default HDWallet path.
|
47405
|
+
*/
|
47406
|
+
static defaultPath = "m/44'/1179993420'/0'/0/0";
|
47490
47407
|
/**
|
47491
47408
|
* A function that returns the wallet's signer.
|
47492
47409
|
*/
|
@@ -47536,7 +47453,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47536
47453
|
*/
|
47537
47454
|
async signTransaction(transactionRequestLike) {
|
47538
47455
|
const transactionRequest = transactionRequestify(transactionRequestLike);
|
47539
|
-
const chainId = this.provider.
|
47456
|
+
const chainId = this.provider.getChain().consensusParameters.chainId.toNumber();
|
47540
47457
|
const hashedTransaction = transactionRequest.getTransactionId(chainId);
|
47541
47458
|
const signature = await this.signer().sign(hashedTransaction);
|
47542
47459
|
return hexlify(signature);
|
@@ -47592,10 +47509,6 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
47592
47509
|
return encryptKeystoreWallet(this.privateKey, this.address, password);
|
47593
47510
|
}
|
47594
47511
|
};
|
47595
|
-
/**
|
47596
|
-
* Default HDWallet path.
|
47597
|
-
*/
|
47598
|
-
__publicField(BaseWalletUnlocked, "defaultPath", "m/44'/1179993420'/0'/0/0");
|
47599
47512
|
|
47600
47513
|
// src/wordlists/words/english.ts
|
47601
47514
|
var english = [
|
@@ -49782,7 +49695,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49782
49695
|
throw new FuelError(ErrorCode.INVALID_MNEMONIC, errorMsg);
|
49783
49696
|
}
|
49784
49697
|
}
|
49785
|
-
var Mnemonic = class {
|
49698
|
+
var Mnemonic = class _Mnemonic {
|
49786
49699
|
wordlist;
|
49787
49700
|
/**
|
49788
49701
|
*
|
@@ -49799,7 +49712,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49799
49712
|
* @returns Entropy hash
|
49800
49713
|
*/
|
49801
49714
|
mnemonicToEntropy(phrase) {
|
49802
|
-
return
|
49715
|
+
return _Mnemonic.mnemonicToEntropy(phrase, this.wordlist);
|
49803
49716
|
}
|
49804
49717
|
/**
|
49805
49718
|
*
|
@@ -49807,7 +49720,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49807
49720
|
* @returns Mnemonic phrase
|
49808
49721
|
*/
|
49809
49722
|
entropyToMnemonic(entropy) {
|
49810
|
-
return
|
49723
|
+
return _Mnemonic.entropyToMnemonic(entropy, this.wordlist);
|
49811
49724
|
}
|
49812
49725
|
/**
|
49813
49726
|
*
|
@@ -49848,8 +49761,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49848
49761
|
* @returns 64-byte array contains privateKey and chainCode as described on BIP39
|
49849
49762
|
*/
|
49850
49763
|
static mnemonicToMasterKeys(phrase, passphrase = "") {
|
49851
|
-
const seed =
|
49852
|
-
return
|
49764
|
+
const seed = _Mnemonic.mnemonicToSeed(phrase, passphrase);
|
49765
|
+
return _Mnemonic.masterKeysFromSeed(seed);
|
49853
49766
|
}
|
49854
49767
|
/**
|
49855
49768
|
* Validates if given mnemonic is valid
|
@@ -49865,7 +49778,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49865
49778
|
return false;
|
49866
49779
|
}
|
49867
49780
|
while (i < words.length) {
|
49868
|
-
if (
|
49781
|
+
if (_Mnemonic.binarySearch(words[i]) === false) {
|
49869
49782
|
return false;
|
49870
49783
|
}
|
49871
49784
|
i += 1;
|
@@ -49912,7 +49825,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49912
49825
|
* @returns BIP-32 extended private key
|
49913
49826
|
*/
|
49914
49827
|
static seedToExtendedKey(seed, testnet = false) {
|
49915
|
-
const masterKey =
|
49828
|
+
const masterKey = _Mnemonic.masterKeysFromSeed(seed);
|
49916
49829
|
const prefix = arrayify(testnet ? TestnetPRV : MainnetPRV);
|
49917
49830
|
const depth = "0x00";
|
49918
49831
|
const fingerprint = "0x00000000";
|
@@ -49944,7 +49857,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49944
49857
|
*/
|
49945
49858
|
static generate(size = 32, extraEntropy = "") {
|
49946
49859
|
const entropy = extraEntropy ? sha2563(concat([randomBytes22(size), arrayify(extraEntropy)])) : randomBytes22(size);
|
49947
|
-
return
|
49860
|
+
return _Mnemonic.entropyToMnemonic(entropy);
|
49948
49861
|
}
|
49949
49862
|
};
|
49950
49863
|
var mnemonic_default = Mnemonic;
|
@@ -49984,7 +49897,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
49984
49897
|
(p) => ~p.indexOf(`'`) ? parseInt(p, 10) + HARDENED_INDEX : parseInt(p, 10)
|
49985
49898
|
);
|
49986
49899
|
}
|
49987
|
-
var HDWallet = class {
|
49900
|
+
var HDWallet = class _HDWallet {
|
49988
49901
|
depth = 0;
|
49989
49902
|
index = 0;
|
49990
49903
|
fingerprint = hexlify("0x00000000");
|
@@ -50050,7 +49963,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50050
49963
|
if (privateKey) {
|
50051
49964
|
const N = "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141";
|
50052
49965
|
const ki = bn(IL).add(privateKey).mod(N).toBytes(32);
|
50053
|
-
return new
|
49966
|
+
return new _HDWallet({
|
50054
49967
|
privateKey: ki,
|
50055
49968
|
chainCode: IR,
|
50056
49969
|
index,
|
@@ -50060,7 +49973,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50060
49973
|
}
|
50061
49974
|
const signer = new Signer(hexlify(IL));
|
50062
49975
|
const Ki = signer.addPoint(publicKey);
|
50063
|
-
return new
|
49976
|
+
return new _HDWallet({
|
50064
49977
|
publicKey: Ki,
|
50065
49978
|
chainCode: IR,
|
50066
49979
|
index,
|
@@ -50109,7 +50022,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50109
50022
|
*/
|
50110
50023
|
static fromSeed(seed) {
|
50111
50024
|
const masterKey = mnemonic_default.masterKeysFromSeed(seed);
|
50112
|
-
return new
|
50025
|
+
return new _HDWallet({
|
50113
50026
|
chainCode: arrayify(masterKey.slice(32)),
|
50114
50027
|
privateKey: arrayify(masterKey.slice(0, 32))
|
50115
50028
|
});
|
@@ -50139,7 +50052,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50139
50052
|
if (key[0] !== 3) {
|
50140
50053
|
throw new FuelError(ErrorCode.HD_WALLET_ERROR, "Invalid public extended key.");
|
50141
50054
|
}
|
50142
|
-
return new
|
50055
|
+
return new _HDWallet({
|
50143
50056
|
publicKey: key,
|
50144
50057
|
chainCode,
|
50145
50058
|
index,
|
@@ -50150,7 +50063,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50150
50063
|
if (key[0] !== 0) {
|
50151
50064
|
throw new FuelError(ErrorCode.HD_WALLET_ERROR, "Invalid private extended key.");
|
50152
50065
|
}
|
50153
|
-
return new
|
50066
|
+
return new _HDWallet({
|
50154
50067
|
privateKey: key.slice(1),
|
50155
50068
|
chainCode,
|
50156
50069
|
index,
|
@@ -50173,7 +50086,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50173
50086
|
return new WalletUnlocked(privateKey, this._provider);
|
50174
50087
|
}
|
50175
50088
|
};
|
50176
|
-
var WalletUnlocked = class extends BaseWalletUnlocked {
|
50089
|
+
var WalletUnlocked = class _WalletUnlocked extends BaseWalletUnlocked {
|
50177
50090
|
/**
|
50178
50091
|
* Locks the wallet and returns an instance of WalletLocked.
|
50179
50092
|
*
|
@@ -50191,7 +50104,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50191
50104
|
*/
|
50192
50105
|
static generate(generateOptions) {
|
50193
50106
|
const privateKey = Signer.generatePrivateKey(generateOptions?.entropy);
|
50194
|
-
return new
|
50107
|
+
return new _WalletUnlocked(privateKey, generateOptions?.provider);
|
50195
50108
|
}
|
50196
50109
|
/**
|
50197
50110
|
* Create a Wallet Unlocked from a seed.
|
@@ -50203,8 +50116,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50203
50116
|
*/
|
50204
50117
|
static fromSeed(seed, path2, provider) {
|
50205
50118
|
const hdWallet = hdwallet_default.fromSeed(seed);
|
50206
|
-
const childWallet = hdWallet.derivePath(path2 ||
|
50207
|
-
return new
|
50119
|
+
const childWallet = hdWallet.derivePath(path2 || _WalletUnlocked.defaultPath);
|
50120
|
+
return new _WalletUnlocked(childWallet.privateKey, provider);
|
50208
50121
|
}
|
50209
50122
|
/**
|
50210
50123
|
* Create a Wallet Unlocked from a mnemonic phrase.
|
@@ -50218,8 +50131,8 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50218
50131
|
static fromMnemonic(mnemonic, path2, passphrase, provider) {
|
50219
50132
|
const seed = mnemonic_default.mnemonicToSeed(mnemonic, passphrase);
|
50220
50133
|
const hdWallet = hdwallet_default.fromSeed(seed);
|
50221
|
-
const childWallet = hdWallet.derivePath(path2 ||
|
50222
|
-
return new
|
50134
|
+
const childWallet = hdWallet.derivePath(path2 || _WalletUnlocked.defaultPath);
|
50135
|
+
return new _WalletUnlocked(childWallet.privateKey, provider);
|
50223
50136
|
}
|
50224
50137
|
/**
|
50225
50138
|
* Create a Wallet Unlocked from an extended key.
|
@@ -50230,7 +50143,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50230
50143
|
*/
|
50231
50144
|
static fromExtendedKey(extendedKey, provider) {
|
50232
50145
|
const hdWallet = hdwallet_default.fromExtendedKey(extendedKey);
|
50233
|
-
return new
|
50146
|
+
return new _WalletUnlocked(hdWallet.privateKey, provider);
|
50234
50147
|
}
|
50235
50148
|
/**
|
50236
50149
|
* Create a Wallet Unlocked from an encrypted JSON.
|
@@ -50242,7 +50155,7 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50242
50155
|
*/
|
50243
50156
|
static async fromEncryptedJson(jsonWallet, password, provider) {
|
50244
50157
|
const privateKey = await decryptKeystoreWallet(jsonWallet, password);
|
50245
|
-
return new
|
50158
|
+
return new _WalletUnlocked(privateKey, provider);
|
50246
50159
|
}
|
50247
50160
|
};
|
50248
50161
|
|
@@ -50268,50 +50181,50 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
50268
50181
|
static fromPrivateKey(privateKey, provider) {
|
50269
50182
|
return new WalletUnlocked(privateKey, provider);
|
50270
50183
|
}
|
50184
|
+
/**
|
50185
|
+
* Generate a new Wallet Unlocked with a random key pair.
|
50186
|
+
*
|
50187
|
+
* @param generateOptions - Options to customize the generation process (optional).
|
50188
|
+
* @returns An unlocked wallet instance.
|
50189
|
+
*/
|
50190
|
+
static generate = WalletUnlocked.generate;
|
50191
|
+
/**
|
50192
|
+
* Create a Wallet Unlocked from a seed.
|
50193
|
+
*
|
50194
|
+
* @param seed - The seed phrase.
|
50195
|
+
* @param provider - A Provider instance (optional).
|
50196
|
+
* @param path - The derivation path (optional).
|
50197
|
+
* @returns An unlocked wallet instance.
|
50198
|
+
*/
|
50199
|
+
static fromSeed = WalletUnlocked.fromSeed;
|
50200
|
+
/**
|
50201
|
+
* Create a Wallet Unlocked from a mnemonic phrase.
|
50202
|
+
*
|
50203
|
+
* @param mnemonic - The mnemonic phrase.
|
50204
|
+
* @param provider - A Provider instance (optional).
|
50205
|
+
* @param path - The derivation path (optional).
|
50206
|
+
* @param passphrase - The passphrase for the mnemonic (optional).
|
50207
|
+
* @returns An unlocked wallet instance.
|
50208
|
+
*/
|
50209
|
+
static fromMnemonic = WalletUnlocked.fromMnemonic;
|
50210
|
+
/**
|
50211
|
+
* Create a Wallet Unlocked from an extended key.
|
50212
|
+
*
|
50213
|
+
* @param extendedKey - The extended key.
|
50214
|
+
* @param provider - A Provider instance (optional).
|
50215
|
+
* @returns An unlocked wallet instance.
|
50216
|
+
*/
|
50217
|
+
static fromExtendedKey = WalletUnlocked.fromExtendedKey;
|
50218
|
+
/**
|
50219
|
+
* Create a Wallet Unlocked from an encrypted JSON.
|
50220
|
+
*
|
50221
|
+
* @param jsonWallet - The encrypted JSON keystore.
|
50222
|
+
* @param password - The password to decrypt the JSON.
|
50223
|
+
* @param provider - A Provider instance (optional).
|
50224
|
+
* @returns An unlocked wallet instance.
|
50225
|
+
*/
|
50226
|
+
static fromEncryptedJson = WalletUnlocked.fromEncryptedJson;
|
50271
50227
|
};
|
50272
|
-
/**
|
50273
|
-
* Generate a new Wallet Unlocked with a random key pair.
|
50274
|
-
*
|
50275
|
-
* @param generateOptions - Options to customize the generation process (optional).
|
50276
|
-
* @returns An unlocked wallet instance.
|
50277
|
-
*/
|
50278
|
-
__publicField(Wallet, "generate", WalletUnlocked.generate);
|
50279
|
-
/**
|
50280
|
-
* Create a Wallet Unlocked from a seed.
|
50281
|
-
*
|
50282
|
-
* @param seed - The seed phrase.
|
50283
|
-
* @param provider - A Provider instance (optional).
|
50284
|
-
* @param path - The derivation path (optional).
|
50285
|
-
* @returns An unlocked wallet instance.
|
50286
|
-
*/
|
50287
|
-
__publicField(Wallet, "fromSeed", WalletUnlocked.fromSeed);
|
50288
|
-
/**
|
50289
|
-
* Create a Wallet Unlocked from a mnemonic phrase.
|
50290
|
-
*
|
50291
|
-
* @param mnemonic - The mnemonic phrase.
|
50292
|
-
* @param provider - A Provider instance (optional).
|
50293
|
-
* @param path - The derivation path (optional).
|
50294
|
-
* @param passphrase - The passphrase for the mnemonic (optional).
|
50295
|
-
* @returns An unlocked wallet instance.
|
50296
|
-
*/
|
50297
|
-
__publicField(Wallet, "fromMnemonic", WalletUnlocked.fromMnemonic);
|
50298
|
-
/**
|
50299
|
-
* Create a Wallet Unlocked from an extended key.
|
50300
|
-
*
|
50301
|
-
* @param extendedKey - The extended key.
|
50302
|
-
* @param provider - A Provider instance (optional).
|
50303
|
-
* @returns An unlocked wallet instance.
|
50304
|
-
*/
|
50305
|
-
__publicField(Wallet, "fromExtendedKey", WalletUnlocked.fromExtendedKey);
|
50306
|
-
/**
|
50307
|
-
* Create a Wallet Unlocked from an encrypted JSON.
|
50308
|
-
*
|
50309
|
-
* @param jsonWallet - The encrypted JSON keystore.
|
50310
|
-
* @param password - The password to decrypt the JSON.
|
50311
|
-
* @param provider - A Provider instance (optional).
|
50312
|
-
* @returns An unlocked wallet instance.
|
50313
|
-
*/
|
50314
|
-
__publicField(Wallet, "fromEncryptedJson", WalletUnlocked.fromEncryptedJson);
|
50315
50228
|
|
50316
50229
|
// src/test-utils/seedTestWallet.ts
|
50317
50230
|
var seedTestWallet = async (wallet, quantities) => {
|