@fuel-ts/account 0.0.0-rc-1889-20240322122653 → 0.0.0-rc-1815-20240322131329

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.

Files changed (212) hide show
  1. package/dist/account.d.ts +184 -0
  2. package/dist/account.d.ts.map +1 -0
  3. package/dist/configs.d.ts +2 -3
  4. package/dist/configs.d.ts.map +1 -0
  5. package/dist/connectors/fuel-connector.d.ts +198 -0
  6. package/dist/connectors/fuel-connector.d.ts.map +1 -0
  7. package/dist/connectors/fuel.d.ts +133 -0
  8. package/dist/connectors/fuel.d.ts.map +1 -0
  9. package/dist/connectors/index.d.ts +5 -0
  10. package/dist/connectors/index.d.ts.map +1 -0
  11. package/dist/connectors/types/connector-metadata.d.ts +12 -0
  12. package/dist/connectors/types/connector-metadata.d.ts.map +1 -0
  13. package/dist/connectors/types/connector-types.d.ts +34 -0
  14. package/dist/connectors/types/connector-types.d.ts.map +1 -0
  15. package/dist/connectors/types/data-type.d.ts +34 -0
  16. package/dist/connectors/types/data-type.d.ts.map +1 -0
  17. package/dist/connectors/types/events.d.ts +111 -0
  18. package/dist/connectors/types/events.d.ts.map +1 -0
  19. package/dist/connectors/types/index.d.ts +7 -0
  20. package/dist/connectors/types/index.d.ts.map +1 -0
  21. package/dist/connectors/types/local-storage.d.ts +11 -0
  22. package/dist/connectors/types/local-storage.d.ts.map +1 -0
  23. package/dist/connectors/types/target-object.d.ts +14 -0
  24. package/dist/connectors/types/target-object.d.ts.map +1 -0
  25. package/dist/connectors/utils/cache.d.ts +14 -0
  26. package/dist/connectors/utils/cache.d.ts.map +1 -0
  27. package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts +7 -0
  28. package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts.map +1 -0
  29. package/dist/connectors/utils/index.d.ts +4 -0
  30. package/dist/connectors/utils/index.d.ts.map +1 -0
  31. package/dist/connectors/utils/promises.d.ts +8 -0
  32. package/dist/connectors/utils/promises.d.ts.map +1 -0
  33. package/dist/hdwallet/hdwallet.d.ts +58 -0
  34. package/dist/hdwallet/hdwallet.d.ts.map +1 -0
  35. package/dist/hdwallet/index.d.ts +2 -0
  36. package/dist/hdwallet/index.d.ts.map +1 -0
  37. package/dist/index.d.ts +13 -904
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.global.js +520 -391
  40. package/dist/index.global.js.map +1 -1
  41. package/dist/index.js +314 -208
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +316 -208
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/mnemonic/index.d.ts +3 -0
  46. package/dist/mnemonic/index.d.ts.map +1 -0
  47. package/dist/mnemonic/mnemonic.d.ts +85 -0
  48. package/dist/mnemonic/mnemonic.d.ts.map +1 -0
  49. package/dist/mnemonic/utils.d.ts +8 -0
  50. package/dist/mnemonic/utils.d.ts.map +1 -0
  51. package/dist/predicate/index.d.ts +3 -0
  52. package/dist/predicate/index.d.ts.map +1 -0
  53. package/dist/predicate/predicate.d.ts +94 -0
  54. package/dist/predicate/predicate.d.ts.map +1 -0
  55. package/dist/predicate/utils/getPredicateRoot.d.ts +12 -0
  56. package/dist/predicate/utils/getPredicateRoot.d.ts.map +1 -0
  57. package/dist/predicate/utils/index.d.ts +2 -0
  58. package/dist/predicate/utils/index.d.ts.map +1 -0
  59. package/dist/providers/__generated__/operations.d.ts +3477 -0
  60. package/dist/providers/__generated__/operations.d.ts.map +1 -0
  61. package/dist/providers/assets/index.d.ts +5 -0
  62. package/dist/providers/assets/index.d.ts.map +1 -0
  63. package/dist/providers/assets/types.d.ts +36 -0
  64. package/dist/providers/assets/types.d.ts.map +1 -0
  65. package/dist/providers/assets/utils/index.d.ts +4 -0
  66. package/dist/providers/assets/utils/index.d.ts.map +1 -0
  67. package/dist/providers/assets/utils/network.d.ts +33 -0
  68. package/dist/providers/assets/utils/network.d.ts.map +1 -0
  69. package/dist/providers/assets/utils/resolveIconPaths.d.ts +14 -0
  70. package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +1 -0
  71. package/dist/providers/assets/utils/url.d.ts +2 -0
  72. package/dist/providers/assets/utils/url.d.ts.map +1 -0
  73. package/dist/providers/chains.d.ts +11 -0
  74. package/dist/providers/chains.d.ts.map +1 -0
  75. package/dist/providers/coin-quantity.d.ts +21 -0
  76. package/dist/providers/coin-quantity.d.ts.map +1 -0
  77. package/dist/providers/coin.d.ts +15 -0
  78. package/dist/providers/coin.d.ts.map +1 -0
  79. package/dist/providers/fuel-graphql-subscriber.d.ts +23 -0
  80. package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -0
  81. package/dist/providers/index.d.ts +13 -0
  82. package/dist/providers/index.d.ts.map +1 -0
  83. package/dist/providers/memory-cache.d.ts +11 -0
  84. package/dist/providers/memory-cache.d.ts.map +1 -0
  85. package/dist/providers/message.d.ts +60 -0
  86. package/dist/providers/message.d.ts.map +1 -0
  87. package/dist/providers/provider.d.ts +523 -0
  88. package/dist/providers/provider.d.ts.map +1 -0
  89. package/dist/providers/resource.d.ts +37 -0
  90. package/dist/providers/resource.d.ts.map +1 -0
  91. package/dist/providers/transaction-request/create-transaction-request.d.ts +73 -0
  92. package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -0
  93. package/dist/providers/transaction-request/errors.d.ts +25 -0
  94. package/dist/providers/transaction-request/errors.d.ts.map +1 -0
  95. package/dist/providers/transaction-request/hash-transaction.d.ts +9 -0
  96. package/dist/providers/transaction-request/hash-transaction.d.ts.map +1 -0
  97. package/dist/providers/transaction-request/index.d.ts +10 -0
  98. package/dist/providers/transaction-request/index.d.ts.map +1 -0
  99. package/dist/providers/transaction-request/input.d.ts +59 -0
  100. package/dist/providers/transaction-request/input.d.ts.map +1 -0
  101. package/dist/providers/transaction-request/output.d.ts +39 -0
  102. package/dist/providers/transaction-request/output.d.ts.map +1 -0
  103. package/dist/providers/transaction-request/script-transaction-request.d.ts +106 -0
  104. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -0
  105. package/dist/providers/transaction-request/scripts.d.ts +6 -0
  106. package/dist/providers/transaction-request/scripts.d.ts.map +1 -0
  107. package/dist/providers/transaction-request/storage-slot.d.ts +10 -0
  108. package/dist/providers/transaction-request/storage-slot.d.ts.map +1 -0
  109. package/dist/providers/transaction-request/transaction-request.d.ts +278 -0
  110. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -0
  111. package/dist/providers/transaction-request/types.d.ts +10 -0
  112. package/dist/providers/transaction-request/types.d.ts.map +1 -0
  113. package/dist/providers/transaction-request/utils.d.ts +4 -0
  114. package/dist/providers/transaction-request/utils.d.ts.map +1 -0
  115. package/dist/providers/transaction-request/witness.d.ts +5 -0
  116. package/dist/providers/transaction-request/witness.d.ts.map +1 -0
  117. package/dist/providers/transaction-response/getDecodedLogs.d.ts +5 -0
  118. package/dist/providers/transaction-response/getDecodedLogs.d.ts.map +1 -0
  119. package/dist/providers/transaction-response/index.d.ts +3 -0
  120. package/dist/providers/transaction-response/index.d.ts.map +1 -0
  121. package/dist/providers/transaction-response/transaction-response.d.ts +106 -0
  122. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -0
  123. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +20 -0
  124. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -0
  125. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +21 -0
  126. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +1 -0
  127. package/dist/providers/transaction-summary/call.d.ts +18 -0
  128. package/dist/providers/transaction-summary/call.d.ts.map +1 -0
  129. package/dist/providers/transaction-summary/get-transaction-summary.d.ts +31 -0
  130. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -0
  131. package/dist/providers/transaction-summary/index.d.ts +10 -0
  132. package/dist/providers/transaction-summary/index.d.ts.map +1 -0
  133. package/dist/providers/transaction-summary/input.d.ts +21 -0
  134. package/dist/providers/transaction-summary/input.d.ts.map +1 -0
  135. package/dist/providers/transaction-summary/operations.d.ts +40 -0
  136. package/dist/providers/transaction-summary/operations.d.ts.map +1 -0
  137. package/dist/providers/transaction-summary/output.d.ts +15 -0
  138. package/dist/providers/transaction-summary/output.d.ts.map +1 -0
  139. package/dist/providers/transaction-summary/receipt.d.ts +7 -0
  140. package/dist/providers/transaction-summary/receipt.d.ts.map +1 -0
  141. package/dist/providers/transaction-summary/status.d.ts +9 -0
  142. package/dist/providers/transaction-summary/status.d.ts.map +1 -0
  143. package/dist/providers/transaction-summary/types.d.ts +146 -0
  144. package/dist/providers/transaction-summary/types.d.ts.map +1 -0
  145. package/dist/providers/utils/auto-retry-fetch.d.ts +36 -0
  146. package/dist/providers/utils/auto-retry-fetch.d.ts.map +1 -0
  147. package/dist/providers/utils/block-explorer.d.ts +14 -0
  148. package/dist/providers/utils/block-explorer.d.ts.map +1 -0
  149. package/dist/providers/utils/gas.d.ts +38 -0
  150. package/dist/providers/utils/gas.d.ts.map +1 -0
  151. package/dist/providers/utils/index.d.ts +6 -0
  152. package/dist/providers/utils/index.d.ts.map +1 -0
  153. package/dist/providers/utils/json.d.ts +7 -0
  154. package/dist/providers/utils/json.d.ts.map +1 -0
  155. package/dist/providers/utils/merge-quantities.d.ts +3 -0
  156. package/dist/providers/utils/merge-quantities.d.ts.map +1 -0
  157. package/dist/providers/utils/receipts.d.ts +10 -0
  158. package/dist/providers/utils/receipts.d.ts.map +1 -0
  159. package/dist/providers/utils/sleep.d.ts +3 -0
  160. package/dist/providers/utils/sleep.d.ts.map +1 -0
  161. package/dist/signer/index.d.ts +2 -0
  162. package/dist/signer/index.d.ts.map +1 -0
  163. package/dist/signer/signer.d.ts +64 -0
  164. package/dist/signer/signer.d.ts.map +1 -0
  165. package/dist/test-utils/generateTestWallet.d.ts +4 -0
  166. package/dist/test-utils/generateTestWallet.d.ts.map +1 -0
  167. package/dist/test-utils/index.d.ts +4 -0
  168. package/dist/test-utils/index.d.ts.map +1 -0
  169. package/dist/{test-utils.d.ts → test-utils/launchNode.d.ts} +12 -24
  170. package/dist/test-utils/launchNode.d.ts.map +1 -0
  171. package/dist/test-utils/seedTestWallet.d.ts +4 -0
  172. package/dist/test-utils/seedTestWallet.d.ts.map +1 -0
  173. package/dist/test-utils.global.js +386 -295
  174. package/dist/test-utils.global.js.map +1 -1
  175. package/dist/test-utils.js +179 -108
  176. package/dist/test-utils.js.map +1 -1
  177. package/dist/test-utils.mjs +181 -108
  178. package/dist/test-utils.mjs.map +1 -1
  179. package/dist/utils/formatTransferToContractScriptData.d.ts +14 -0
  180. package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -0
  181. package/dist/wallet/base-wallet-unlocked.d.ts +73 -0
  182. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -0
  183. package/dist/wallet/index.d.ts +4 -0
  184. package/dist/wallet/index.d.ts.map +1 -0
  185. package/dist/wallet/keystore-wallet.d.ts +38 -0
  186. package/dist/wallet/keystore-wallet.d.ts.map +1 -0
  187. package/dist/wallet/wallet.d.ts +68 -0
  188. package/dist/wallet/wallet.d.ts.map +1 -0
  189. package/dist/wallet/wallets.d.ts +76 -0
  190. package/dist/wallet/wallets.d.ts.map +1 -0
  191. package/dist/wallet-manager/index.d.ts +6 -0
  192. package/dist/wallet-manager/index.d.ts.map +1 -0
  193. package/dist/wallet-manager/storages/memory-storage.d.ts +9 -0
  194. package/dist/wallet-manager/storages/memory-storage.d.ts.map +1 -0
  195. package/dist/wallet-manager/types.d.ts +42 -0
  196. package/dist/wallet-manager/types.d.ts.map +1 -0
  197. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +29 -0
  198. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -0
  199. package/dist/wallet-manager/vaults/privatekey-vault.d.ts +29 -0
  200. package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -0
  201. package/dist/wallet-manager/wallet-manager.d.ts +104 -0
  202. package/dist/wallet-manager/wallet-manager.d.ts.map +1 -0
  203. package/dist/wordlists/index.d.ts +5 -0
  204. package/dist/wordlists/index.d.ts.map +1 -0
  205. package/dist/wordlists/words/english.d.ts +2 -0
  206. package/dist/wordlists/words/english.d.ts.map +1 -0
  207. package/package.json +25 -21
  208. package/dist/account-E9nGNf5X.d.mts +0 -3837
  209. package/dist/account-E9nGNf5X.d.ts +0 -3837
  210. package/dist/configs.d.mts +0 -3
  211. package/dist/index.d.mts +0 -904
  212. package/dist/test-utils.d.mts +0 -66
@@ -6,12 +6,13 @@
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;
9
10
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
11
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
12
  }) : x)(function(x) {
12
13
  if (typeof require !== "undefined")
13
14
  return require.apply(this, arguments);
14
- throw Error('Dynamic require of "' + x + '" is not supported');
15
+ throw new Error('Dynamic require of "' + x + '" is not supported');
15
16
  });
16
17
  var __esm = (fn, res) => function __init() {
17
18
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
@@ -40,6 +41,23 @@
40
41
  mod2
41
42
  ));
42
43
  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
+ };
43
61
 
44
62
  // ../../node_modules/.pnpm/bech32@2.0.0/node_modules/bech32/dist/index.js
45
63
  var require_dist = __commonJS({
@@ -210,7 +228,6 @@
210
228
  // ../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js
211
229
  var require_bn = __commonJS({
212
230
  "../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js"(exports, module) {
213
- "use strict";
214
231
  (function(module2, exports2) {
215
232
  "use strict";
216
233
  function assert3(val, msg) {
@@ -5528,7 +5545,6 @@
5528
5545
  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;
5529
5546
  var init_lib = __esm({
5530
5547
  "../../node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.mjs"() {
5531
- "use strict";
5532
5548
  import_stream = __toESM(__require("stream"), 1);
5533
5549
  import_http = __toESM(__require("http"), 1);
5534
5550
  import_url = __toESM(__require("url"), 1);
@@ -5538,7 +5554,7 @@
5538
5554
  Readable = import_stream.default.Readable;
5539
5555
  BUFFER = Symbol("buffer");
5540
5556
  TYPE = Symbol("type");
5541
- Blob2 = class _Blob {
5557
+ Blob2 = class {
5542
5558
  constructor() {
5543
5559
  this[TYPE] = "";
5544
5560
  const blobParts = arguments[0];
@@ -5557,7 +5573,7 @@
5557
5573
  buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
5558
5574
  } else if (element instanceof ArrayBuffer) {
5559
5575
  buffer = Buffer.from(element);
5560
- } else if (element instanceof _Blob) {
5576
+ } else if (element instanceof Blob2) {
5561
5577
  buffer = element[BUFFER];
5562
5578
  } else {
5563
5579
  buffer = Buffer.from(typeof element === "string" ? element : String(element));
@@ -5619,7 +5635,7 @@
5619
5635
  const span = Math.max(relativeEnd - relativeStart, 0);
5620
5636
  const buffer = this[BUFFER];
5621
5637
  const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
5622
- const blob = new _Blob([], { type: arguments[2] });
5638
+ const blob = new Blob2([], { type: arguments[2] });
5623
5639
  blob[BUFFER] = slicedBuffer;
5624
5640
  return blob;
5625
5641
  }
@@ -5746,7 +5762,7 @@
5746
5762
  invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
5747
5763
  invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
5748
5764
  MAP = Symbol("map");
5749
- Headers2 = class _Headers {
5765
+ Headers2 = class {
5750
5766
  /**
5751
5767
  * Headers class
5752
5768
  *
@@ -5756,7 +5772,7 @@
5756
5772
  constructor() {
5757
5773
  let init = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
5758
5774
  this[MAP] = /* @__PURE__ */ Object.create(null);
5759
- if (init instanceof _Headers) {
5775
+ if (init instanceof Headers2) {
5760
5776
  const rawHeaders = init.raw();
5761
5777
  const headerNames = Object.keys(rawHeaders);
5762
5778
  for (const headerName of headerNames) {
@@ -5974,7 +5990,7 @@
5974
5990
  });
5975
5991
  INTERNALS$1 = Symbol("Response internals");
5976
5992
  STATUS_CODES = import_http.default.STATUS_CODES;
5977
- Response2 = class _Response {
5993
+ Response2 = class {
5978
5994
  constructor() {
5979
5995
  let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
5980
5996
  let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -6022,7 +6038,7 @@
6022
6038
  * @return Response
6023
6039
  */
6024
6040
  clone() {
6025
- return new _Response(clone(this), {
6041
+ return new Response2(clone(this), {
6026
6042
  url: this.url,
6027
6043
  status: this.status,
6028
6044
  statusText: this.statusText,
@@ -6053,7 +6069,7 @@
6053
6069
  parse_url = import_url.default.parse;
6054
6070
  format_url = import_url.default.format;
6055
6071
  streamDestructionSupported = "destroy" in import_stream.default.Readable.prototype;
6056
- Request = class _Request {
6072
+ Request = class {
6057
6073
  constructor(input) {
6058
6074
  let init = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6059
6075
  let parsedURL;
@@ -6123,7 +6139,7 @@
6123
6139
  * @return Request
6124
6140
  */
6125
6141
  clone() {
6126
- return new _Request(this);
6142
+ return new Request(this);
6127
6143
  }
6128
6144
  };
6129
6145
  Body.mixIn(Request.prototype);
@@ -6167,7 +6183,6 @@
6167
6183
  // ../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/node-ponyfill.js
6168
6184
  var require_node_ponyfill = __commonJS({
6169
6185
  "../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/node-ponyfill.js"(exports, module) {
6170
- "use strict";
6171
6186
  var nodeFetch = (init_lib(), __toCommonJS(lib_exports));
6172
6187
  var realFetch = nodeFetch.default || nodeFetch;
6173
6188
  var fetch3 = function(url, options) {
@@ -6333,7 +6348,7 @@
6333
6348
  }
6334
6349
  return firstArg;
6335
6350
  }
6336
- var GraphQLError2 = class _GraphQLError extends Error {
6351
+ var GraphQLError2 = class extends Error {
6337
6352
  /**
6338
6353
  * An array of `{ line, column }` locations within the source GraphQL document
6339
6354
  * which correspond to this error.
@@ -6422,7 +6437,7 @@
6422
6437
  configurable: true
6423
6438
  });
6424
6439
  } else if (Error.captureStackTrace) {
6425
- Error.captureStackTrace(this, _GraphQLError);
6440
+ Error.captureStackTrace(this, GraphQLError2);
6426
6441
  } else {
6427
6442
  Object.defineProperty(this, "stack", {
6428
6443
  value: Error().stack,
@@ -9819,7 +9834,6 @@ spurious results.`);
9819
9834
  // ../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
9820
9835
  var require_delayed_stream = __commonJS({
9821
9836
  "../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
9822
- "use strict";
9823
9837
  var Stream2 = __require("stream").Stream;
9824
9838
  var util = __require("util");
9825
9839
  module.exports = DelayedStream;
@@ -9911,7 +9925,6 @@ spurious results.`);
9911
9925
  // ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
9912
9926
  var require_combined_stream = __commonJS({
9913
9927
  "../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
9914
- "use strict";
9915
9928
  var util = __require("util");
9916
9929
  var Stream2 = __require("stream").Stream;
9917
9930
  var DelayedStream = require_delayed_stream();
@@ -18608,7 +18621,6 @@ spurious results.`);
18608
18621
  // ../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js
18609
18622
  var require_mime_db = __commonJS({
18610
18623
  "../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js"(exports, module) {
18611
- "use strict";
18612
18624
  module.exports = require_db();
18613
18625
  }
18614
18626
  });
@@ -18707,7 +18719,6 @@ spurious results.`);
18707
18719
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js
18708
18720
  var require_defer = __commonJS({
18709
18721
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js"(exports, module) {
18710
- "use strict";
18711
18722
  module.exports = defer;
18712
18723
  function defer(fn) {
18713
18724
  var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
@@ -18723,7 +18734,6 @@ spurious results.`);
18723
18734
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js
18724
18735
  var require_async = __commonJS({
18725
18736
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js"(exports, module) {
18726
- "use strict";
18727
18737
  var defer = require_defer();
18728
18738
  module.exports = async;
18729
18739
  function async(callback) {
@@ -18747,7 +18757,6 @@ spurious results.`);
18747
18757
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js
18748
18758
  var require_abort = __commonJS({
18749
18759
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js"(exports, module) {
18750
- "use strict";
18751
18760
  module.exports = abort;
18752
18761
  function abort(state) {
18753
18762
  Object.keys(state.jobs).forEach(clean.bind(state));
@@ -18764,7 +18773,6 @@ spurious results.`);
18764
18773
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js
18765
18774
  var require_iterate = __commonJS({
18766
18775
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js"(exports, module) {
18767
- "use strict";
18768
18776
  var async = require_async();
18769
18777
  var abort = require_abort();
18770
18778
  module.exports = iterate;
@@ -18798,7 +18806,6 @@ spurious results.`);
18798
18806
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js
18799
18807
  var require_state = __commonJS({
18800
18808
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js"(exports, module) {
18801
- "use strict";
18802
18809
  module.exports = state;
18803
18810
  function state(list, sortMethod) {
18804
18811
  var isNamedList = !Array.isArray(list), initState = {
@@ -18821,7 +18828,6 @@ spurious results.`);
18821
18828
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js
18822
18829
  var require_terminator = __commonJS({
18823
18830
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js"(exports, module) {
18824
- "use strict";
18825
18831
  var abort = require_abort();
18826
18832
  var async = require_async();
18827
18833
  module.exports = terminator;
@@ -18839,7 +18845,6 @@ spurious results.`);
18839
18845
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js
18840
18846
  var require_parallel = __commonJS({
18841
18847
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js"(exports, module) {
18842
- "use strict";
18843
18848
  var iterate = require_iterate();
18844
18849
  var initState = require_state();
18845
18850
  var terminator = require_terminator();
@@ -18867,7 +18872,6 @@ spurious results.`);
18867
18872
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js
18868
18873
  var require_serialOrdered = __commonJS({
18869
18874
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js"(exports, module) {
18870
- "use strict";
18871
18875
  var iterate = require_iterate();
18872
18876
  var initState = require_state();
18873
18877
  var terminator = require_terminator();
@@ -18902,7 +18906,6 @@ spurious results.`);
18902
18906
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js
18903
18907
  var require_serial = __commonJS({
18904
18908
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js"(exports, module) {
18905
- "use strict";
18906
18909
  var serialOrdered = require_serialOrdered();
18907
18910
  module.exports = serial;
18908
18911
  function serial(list, iterator, callback) {
@@ -18914,7 +18917,6 @@ spurious results.`);
18914
18917
  // ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js
18915
18918
  var require_asynckit = __commonJS({
18916
18919
  "../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js"(exports, module) {
18917
- "use strict";
18918
18920
  module.exports = {
18919
18921
  parallel: require_parallel(),
18920
18922
  serial: require_serial(),
@@ -18926,7 +18928,6 @@ spurious results.`);
18926
18928
  // ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js
18927
18929
  var require_populate = __commonJS({
18928
18930
  "../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js"(exports, module) {
18929
- "use strict";
18930
18931
  module.exports = function(dst, src) {
18931
18932
  Object.keys(src).forEach(function(prop) {
18932
18933
  dst[prop] = dst[prop] || src[prop];
@@ -18939,7 +18940,6 @@ spurious results.`);
18939
18940
  // ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js
18940
18941
  var require_form_data = __commonJS({
18941
18942
  "../../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 || /* @__PURE__ */ function() {
19384
+ var __extends = exports && exports.__extends || 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 _CompareArgs {
22374
+ var CompareArgs = class {
22375
22375
  static __wrap(ptr) {
22376
22376
  ptr = ptr >>> 0;
22377
- const obj = Object.create(_CompareArgs.prototype);
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 : _CompareArgs.__wrap(ret3);
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 _GM {
22976
+ var GM = class {
22977
22977
  static __wrap(ptr) {
22978
22978
  ptr = ptr >>> 0;
22979
- const obj = Object.create(_GM.prototype);
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 _GM.__wrap(ret3);
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 _GTF {
23087
+ var GTF = class {
23088
23088
  static __wrap(ptr) {
23089
23089
  ptr = ptr >>> 0;
23090
- const obj = Object.create(_GTF.prototype);
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 _GTF.__wrap(ret3);
23157
+ return GTF.__wrap(ret3);
23158
23158
  }
23159
23159
  };
23160
- var Imm06 = class _Imm06 {
23160
+ var Imm06 = class {
23161
23161
  static __wrap(ptr) {
23162
23162
  ptr = ptr >>> 0;
23163
- const obj = Object.create(_Imm06.prototype);
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 _Imm12 {
23177
+ var Imm12 = class {
23178
23178
  static __wrap(ptr) {
23179
23179
  ptr = ptr >>> 0;
23180
- const obj = Object.create(_Imm12.prototype);
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 _Imm18 {
23194
+ var Imm18 = class {
23195
23195
  static __wrap(ptr) {
23196
23196
  ptr = ptr >>> 0;
23197
- const obj = Object.create(_Imm18.prototype);
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 _Imm24 {
23211
+ var Imm24 = class {
23212
23212
  static __wrap(ptr) {
23213
23213
  ptr = ptr >>> 0;
23214
- const obj = Object.create(_Imm24.prototype);
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 _Instruction {
23228
+ var Instruction = class {
23229
23229
  static __wrap(ptr) {
23230
23230
  ptr = ptr >>> 0;
23231
- const obj = Object.create(_Instruction.prototype);
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 _RegId {
25424
+ var RegId = class {
25425
25425
  static __wrap(ptr) {
25426
25426
  ptr = ptr >>> 0;
25427
- const obj = Object.create(_RegId.prototype);
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 : _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _RegId.__wrap(ret3);
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 _WDCM {
26642
+ var WDCM = class {
26643
26643
  static __wrap(ptr) {
26644
26644
  ptr = ptr >>> 0;
26645
- const obj = Object.create(_WDCM.prototype);
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 _WDCM.__wrap(ret3);
26728
+ return WDCM.__wrap(ret3);
26729
26729
  }
26730
26730
  };
26731
- var WDDV = class _WDDV {
26731
+ var WDDV = class {
26732
26732
  static __wrap(ptr) {
26733
26733
  ptr = ptr >>> 0;
26734
- const obj = Object.create(_WDDV.prototype);
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 _WDDV.__wrap(ret3);
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 _WDML {
26883
+ var WDML = class {
26884
26884
  static __wrap(ptr) {
26885
26885
  ptr = ptr >>> 0;
26886
- const obj = Object.create(_WDML.prototype);
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 _WDML.__wrap(ret3);
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 _WDOP {
27035
+ var WDOP = class {
27036
27036
  static __wrap(ptr) {
27037
27037
  ptr = ptr >>> 0;
27038
- const obj = Object.create(_WDOP.prototype);
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 _WDOP.__wrap(ret3);
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 _WQCM {
27187
+ var WQCM = class {
27188
27188
  static __wrap(ptr) {
27189
27189
  ptr = ptr >>> 0;
27190
- const obj = Object.create(_WQCM.prototype);
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 _WQCM.__wrap(ret3);
27273
+ return WQCM.__wrap(ret3);
27274
27274
  }
27275
27275
  };
27276
- var WQDV = class _WQDV {
27276
+ var WQDV = class {
27277
27277
  static __wrap(ptr) {
27278
27278
  ptr = ptr >>> 0;
27279
- const obj = Object.create(_WQDV.prototype);
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 _WQDV.__wrap(ret3);
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 _WQML {
27428
+ var WQML = class {
27429
27429
  static __wrap(ptr) {
27430
27430
  ptr = ptr >>> 0;
27431
- const obj = Object.create(_WQML.prototype);
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 _WQML.__wrap(ret3);
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 _WQOP {
27580
+ var WQOP = class {
27581
27581
  static __wrap(ptr) {
27582
27582
  ptr = ptr >>> 0;
27583
- const obj = Object.create(_WQOP.prototype);
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 _WQOP.__wrap(ret3);
27666
+ return WQOP.__wrap(ret3);
27667
27667
  }
27668
27668
  };
27669
27669
  var XOR = class {
@@ -28114,7 +28114,6 @@ 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";
28118
28117
  (function(global2, factory) {
28119
28118
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.async = global2.async || {});
28120
28119
  })(exports, function(exports2) {
@@ -28310,7 +28309,7 @@ spurious results.`);
28310
28309
  var objectProto$3 = Object.prototype;
28311
28310
  var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
28312
28311
  var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
28313
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
28312
+ var isArguments = baseIsArguments(function() {
28314
28313
  return arguments;
28315
28314
  }()) ? baseIsArguments : function(value) {
28316
28315
  return isObjectLike2(value) && hasOwnProperty$2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
@@ -30057,7 +30056,6 @@ spurious results.`);
30057
30056
  // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
30058
30057
  var require_ms = __commonJS({
30059
30058
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
30060
- "use strict";
30061
30059
  var s = 1e3;
30062
30060
  var m = s * 60;
30063
30061
  var h = m * 60;
@@ -30643,7 +30641,6 @@ spurious results.`);
30643
30641
  // ../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js
30644
30642
  var require_mkdirp = __commonJS({
30645
30643
  "../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js"(exports, module) {
30646
- "use strict";
30647
30644
  var path2 = __require("path");
30648
30645
  var fs = __require("fs");
30649
30646
  var _0777 = parseInt("0777", 8);
@@ -31797,7 +31794,7 @@ spurious results.`);
31797
31794
  }
31798
31795
  B.fill(0);
31799
31796
  }
31800
- var Keccak = class _Keccak extends Hash {
31797
+ var Keccak = class extends Hash {
31801
31798
  // NOTE: we accept arguments in bytes instead of bits here.
31802
31799
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
31803
31800
  super();
@@ -31888,7 +31885,7 @@ spurious results.`);
31888
31885
  }
31889
31886
  _cloneInto(to) {
31890
31887
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
31891
- to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
31888
+ to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
31892
31889
  to.state32.set(this.state32);
31893
31890
  to.pos = this.pos;
31894
31891
  to.posOut = this.posOut;
@@ -31967,6 +31964,12 @@ This unreleased fuel-core build may include features and updates not yet support
31967
31964
  var versions = getBuiltinVersions();
31968
31965
 
31969
31966
  // ../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
+ };
31970
31973
  var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
31971
31974
  ErrorCode2["NO_ABIS_FOUND"] = "no-abis-found";
31972
31975
  ErrorCode2["ABI_TYPES_AND_VALUES_MISMATCH"] = "abi-types-and-values-mismatch";
@@ -32045,8 +32048,7 @@ This unreleased fuel-core build may include features and updates not yet support
32045
32048
  ErrorCode2["STREAM_PARSING_ERROR"] = "stream-parsing-error";
32046
32049
  return ErrorCode2;
32047
32050
  })(ErrorCode || {});
32048
- var FuelError = class _FuelError extends Error {
32049
- static CODES = ErrorCode;
32051
+ var _FuelError = class extends Error {
32050
32052
  VERSIONS = versions;
32051
32053
  static parse(e) {
32052
32054
  const error = e;
@@ -32077,8 +32079,16 @@ This unreleased fuel-core build may include features and updates not yet support
32077
32079
  return { code, name, message, VERSIONS };
32078
32080
  }
32079
32081
  };
32082
+ var FuelError = _FuelError;
32083
+ __publicField2(FuelError, "CODES", ErrorCode);
32080
32084
 
32081
32085
  // ../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
+ };
32082
32092
  var arrayify = (value) => {
32083
32093
  if (value instanceof Uint8Array) {
32084
32094
  return new Uint8Array(value);
@@ -32130,8 +32140,7 @@ This unreleased fuel-core build may include features and updates not yet support
32130
32140
  var tai64ToUnixSeconds = (tai64) => Number(BigInt(tai64) - TAI64_UNIX_OFFSET);
32131
32141
  var unixSecondsToTai64 = (unixSeconds) => String(BigInt(unixSeconds) + TAI64_UNIX_OFFSET);
32132
32142
  var tai64ToUnixMilliseconds = (tai64) => secondsToMs(tai64ToUnixSeconds(tai64));
32133
- var DateTime = class _DateTime extends Date {
32134
- static TAI64_NULL = "";
32143
+ var _DateTime = class extends Date {
32135
32144
  /**
32136
32145
  * Generates a new DateTime instance from a Tai64 timestamp.
32137
32146
  *
@@ -32182,6 +32191,8 @@ This unreleased fuel-core build may include features and updates not yet support
32182
32191
  return msToSeconds(this.getTime());
32183
32192
  }
32184
32193
  };
32194
+ var DateTime = _DateTime;
32195
+ __publicField3(DateTime, "TAI64_NULL", "");
32185
32196
  var chainConfig_default = {
32186
32197
  chain_name: "local_testnet",
32187
32198
  block_gas_limit: 5e9,
@@ -33412,7 +33423,7 @@ This unreleased fuel-core build may include features and updates not yet support
33412
33423
  }
33413
33424
  B.fill(0);
33414
33425
  }
33415
- var Keccak2 = class _Keccak extends Hash2 {
33426
+ var Keccak2 = class extends Hash2 {
33416
33427
  // NOTE: we accept arguments in bytes instead of bits here.
33417
33428
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
33418
33429
  super();
@@ -33503,7 +33514,7 @@ This unreleased fuel-core build may include features and updates not yet support
33503
33514
  }
33504
33515
  _cloneInto(to) {
33505
33516
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
33506
- to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
33517
+ to || (to = new Keccak2(blockLen, suffix, outputLen, enableXOF, rounds));
33507
33518
  to.state32.set(this.state32);
33508
33519
  to.pos = this.pos;
33509
33520
  to.posOut = this.posOut;
@@ -33891,7 +33902,7 @@ This unreleased fuel-core build may include features and updates not yet support
33891
33902
 
33892
33903
  // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/providers/plugins-network.js
33893
33904
  var EnsAddress = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
33894
- var NetworkPlugin = class _NetworkPlugin {
33905
+ var NetworkPlugin = class {
33895
33906
  /**
33896
33907
  * The name of the plugin.
33897
33908
  *
@@ -33909,10 +33920,10 @@ This unreleased fuel-core build may include features and updates not yet support
33909
33920
  * Creates a copy of this plugin.
33910
33921
  */
33911
33922
  clone() {
33912
- return new _NetworkPlugin(this.name);
33923
+ return new NetworkPlugin(this.name);
33913
33924
  }
33914
33925
  };
33915
- var GasCostPlugin = class _GasCostPlugin extends NetworkPlugin {
33926
+ var GasCostPlugin = class extends NetworkPlugin {
33916
33927
  /**
33917
33928
  * The block number to treat these values as valid from.
33918
33929
  *
@@ -33972,10 +33983,10 @@ This unreleased fuel-core build may include features and updates not yet support
33972
33983
  defineProperties(this, props);
33973
33984
  }
33974
33985
  clone() {
33975
- return new _GasCostPlugin(this.effectiveBlock, this);
33986
+ return new GasCostPlugin(this.effectiveBlock, this);
33976
33987
  }
33977
33988
  };
33978
- var EnsPlugin = class _EnsPlugin extends NetworkPlugin {
33989
+ var EnsPlugin = class extends NetworkPlugin {
33979
33990
  /**
33980
33991
  * The ENS Registrty Contract address.
33981
33992
  */
@@ -33997,7 +34008,7 @@ This unreleased fuel-core build may include features and updates not yet support
33997
34008
  });
33998
34009
  }
33999
34010
  clone() {
34000
- return new _EnsPlugin(this.address, this.targetNetwork);
34011
+ return new EnsPlugin(this.address, this.targetNetwork);
34001
34012
  }
34002
34013
  };
34003
34014
  var FetchUrlFeeDataNetworkPlugin = class extends NetworkPlugin {
@@ -34032,7 +34043,7 @@ This unreleased fuel-core build may include features and updates not yet support
34032
34043
 
34033
34044
  // ../../node_modules/.pnpm/ethers@6.7.1/node_modules/ethers/lib.esm/providers/network.js
34034
34045
  var Networks = /* @__PURE__ */ new Map();
34035
- var Network = class _Network {
34046
+ var Network = class {
34036
34047
  #name;
34037
34048
  #chainId;
34038
34049
  #plugins;
@@ -34147,7 +34158,7 @@ This unreleased fuel-core build may include features and updates not yet support
34147
34158
  * Create a copy of this Network.
34148
34159
  */
34149
34160
  clone() {
34150
- const clone4 = new _Network(this.name, this.chainId);
34161
+ const clone4 = new Network(this.name, this.chainId);
34151
34162
  this.plugins.forEach((plugin) => {
34152
34163
  clone4.attachPlugin(plugin.clone());
34153
34164
  });
@@ -34188,7 +34199,7 @@ This unreleased fuel-core build may include features and updates not yet support
34188
34199
  static from(network) {
34189
34200
  injectCommonNetworks();
34190
34201
  if (network == null) {
34191
- return _Network.from("mainnet");
34202
+ return Network.from("mainnet");
34192
34203
  }
34193
34204
  if (typeof network === "number") {
34194
34205
  network = BigInt(network);
@@ -34199,7 +34210,7 @@ This unreleased fuel-core build may include features and updates not yet support
34199
34210
  return networkFunc();
34200
34211
  }
34201
34212
  if (typeof network === "bigint") {
34202
- return new _Network("unknown", network);
34213
+ return new Network("unknown", network);
34203
34214
  }
34204
34215
  assertArgument(false, "unknown network", "network", network);
34205
34216
  }
@@ -34209,7 +34220,7 @@ This unreleased fuel-core build may include features and updates not yet support
34209
34220
  }
34210
34221
  if (typeof network === "object") {
34211
34222
  assertArgument(typeof network.name === "string" && typeof network.chainId === "number", "invalid network object name or chainId", "network", network);
34212
- const custom = new _Network(network.name, network.chainId);
34223
+ const custom = new Network(network.name, network.chainId);
34213
34224
  if (network.ensAddress || network.ensNetwork != null) {
34214
34225
  custom.attachPlugin(new EnsPlugin(network.ensAddress, network.ensNetwork));
34215
34226
  }
@@ -34545,7 +34556,7 @@ This unreleased fuel-core build may include features and updates not yet support
34545
34556
  }
34546
34557
  return address.replace("0x", "0x000000000000000000000000");
34547
34558
  };
34548
- var Address = class _Address extends AbstractAddress {
34559
+ var Address = class extends AbstractAddress {
34549
34560
  // #region address-2
34550
34561
  bech32Address;
34551
34562
  // #endregion address-2
@@ -34659,7 +34670,7 @@ This unreleased fuel-core build may include features and updates not yet support
34659
34670
  throw new FuelError(FuelError.CODES.INVALID_PUBLIC_KEY, `Invalid Public Key: ${publicKey}.`);
34660
34671
  }
34661
34672
  const b256Address = hexlify(sha256(arrayify(publicKey)));
34662
- return new _Address(toBech32(b256Address));
34673
+ return new Address(toBech32(b256Address));
34663
34674
  }
34664
34675
  /**
34665
34676
  * Takes a B256 Address and creates an `Address`
@@ -34674,7 +34685,7 @@ This unreleased fuel-core build may include features and updates not yet support
34674
34685
  `Invalid B256 Address: ${b256Address}.`
34675
34686
  );
34676
34687
  }
34677
- return new _Address(toBech32(b256Address));
34688
+ return new Address(toBech32(b256Address));
34678
34689
  }
34679
34690
  /**
34680
34691
  * Creates an `Address` with a randomized `bech32Address` property
@@ -34691,7 +34702,7 @@ This unreleased fuel-core build may include features and updates not yet support
34691
34702
  * @returns A new `Address` instance
34692
34703
  */
34693
34704
  static fromString(address) {
34694
- return isBech32(address) ? new _Address(address) : this.fromB256(address);
34705
+ return isBech32(address) ? new Address(address) : this.fromB256(address);
34695
34706
  }
34696
34707
  /**
34697
34708
  * Takes an ambiguous string or address and creates an `Address`
@@ -34710,19 +34721,19 @@ This unreleased fuel-core build may include features and updates not yet support
34710
34721
  */
34711
34722
  static fromDynamicInput(address) {
34712
34723
  if (typeof address !== "string" && "toB256" in address) {
34713
- return _Address.fromB256(address.toB256());
34724
+ return Address.fromB256(address.toB256());
34714
34725
  }
34715
34726
  if (isPublicKey(address)) {
34716
- return _Address.fromPublicKey(address);
34727
+ return Address.fromPublicKey(address);
34717
34728
  }
34718
34729
  if (isBech32(address)) {
34719
- return new _Address(address);
34730
+ return new Address(address);
34720
34731
  }
34721
34732
  if (isB256(address)) {
34722
- return _Address.fromB256(address);
34733
+ return Address.fromB256(address);
34723
34734
  }
34724
34735
  if (isEvmAddress(address)) {
34725
- return _Address.fromEvmAddress(address);
34736
+ return Address.fromEvmAddress(address);
34726
34737
  }
34727
34738
  throw new FuelError(
34728
34739
  FuelError.CODES.PARSE_FAILED,
@@ -34742,7 +34753,7 @@ This unreleased fuel-core build may include features and updates not yet support
34742
34753
  );
34743
34754
  }
34744
34755
  const paddedAddress = padFirst12BytesOfEvmAddress(evmAddress);
34745
- return new _Address(toBech32(paddedAddress));
34756
+ return new Address(toBech32(paddedAddress));
34746
34757
  }
34747
34758
  };
34748
34759
 
@@ -34770,12 +34781,12 @@ This unreleased fuel-core build may include features and updates not yet support
34770
34781
  const decimalPortion = decimals ? `.${decimals}` : "";
34771
34782
  return `${units}${decimalPortion}`;
34772
34783
  }
34773
- var BN = class _BN extends import_bn.default {
34784
+ var BN = class extends import_bn.default {
34774
34785
  MAX_U64 = "0xFFFFFFFFFFFFFFFF";
34775
34786
  constructor(value, base, endian) {
34776
34787
  let bnValue = value;
34777
34788
  let bnBase = base;
34778
- if (_BN.isBN(value)) {
34789
+ if (BN.isBN(value)) {
34779
34790
  bnValue = value.toArray();
34780
34791
  } else if (typeof value === "string" && value.slice(0, 2) === "0x") {
34781
34792
  bnValue = value.substring(2);
@@ -34888,26 +34899,26 @@ This unreleased fuel-core build may include features and updates not yet support
34888
34899
  // END ANCHOR: OVERRIDES to accept better inputs
34889
34900
  // ANCHOR: OVERRIDES to output our BN type
34890
34901
  sqr() {
34891
- return new _BN(super.sqr().toArray());
34902
+ return new BN(super.sqr().toArray());
34892
34903
  }
34893
34904
  neg() {
34894
- return new _BN(super.neg().toArray());
34905
+ return new BN(super.neg().toArray());
34895
34906
  }
34896
34907
  abs() {
34897
- return new _BN(super.abs().toArray());
34908
+ return new BN(super.abs().toArray());
34898
34909
  }
34899
34910
  toTwos(width) {
34900
- return new _BN(super.toTwos(width).toArray());
34911
+ return new BN(super.toTwos(width).toArray());
34901
34912
  }
34902
34913
  fromTwos(width) {
34903
- return new _BN(super.fromTwos(width).toArray());
34914
+ return new BN(super.fromTwos(width).toArray());
34904
34915
  }
34905
34916
  // END ANCHOR: OVERRIDES to output our BN type
34906
34917
  // ANCHOR: OVERRIDES to avoid losing references
34907
34918
  caller(v, methodName) {
34908
- const output3 = super[methodName](new _BN(v));
34909
- if (_BN.isBN(output3)) {
34910
- return new _BN(output3.toArray());
34919
+ const output3 = super[methodName](new BN(v));
34920
+ if (BN.isBN(output3)) {
34921
+ return new BN(output3.toArray());
34911
34922
  }
34912
34923
  if (typeof output3 === "boolean") {
34913
34924
  return output3;
@@ -34915,32 +34926,32 @@ This unreleased fuel-core build may include features and updates not yet support
34915
34926
  return output3;
34916
34927
  }
34917
34928
  clone() {
34918
- return new _BN(this.toArray());
34929
+ return new BN(this.toArray());
34919
34930
  }
34920
34931
  mulTo(num, out) {
34921
34932
  const output3 = new import_bn.default(this.toArray()).mulTo(num, out);
34922
- return new _BN(output3.toArray());
34933
+ return new BN(output3.toArray());
34923
34934
  }
34924
34935
  egcd(p) {
34925
34936
  const { a, b, gcd } = new import_bn.default(this.toArray()).egcd(p);
34926
34937
  return {
34927
- a: new _BN(a.toArray()),
34928
- b: new _BN(b.toArray()),
34929
- gcd: new _BN(gcd.toArray())
34938
+ a: new BN(a.toArray()),
34939
+ b: new BN(b.toArray()),
34940
+ gcd: new BN(gcd.toArray())
34930
34941
  };
34931
34942
  }
34932
34943
  divmod(num, mode, positive) {
34933
- const { div, mod: mod2 } = new import_bn.default(this.toArray()).divmod(new _BN(num), mode, positive);
34944
+ const { div, mod: mod2 } = new import_bn.default(this.toArray()).divmod(new BN(num), mode, positive);
34934
34945
  return {
34935
- div: new _BN(div?.toArray()),
34936
- mod: new _BN(mod2?.toArray())
34946
+ div: new BN(div?.toArray()),
34947
+ mod: new BN(mod2?.toArray())
34937
34948
  };
34938
34949
  }
34939
34950
  maxU64() {
34940
- return this.gte(this.MAX_U64) ? new _BN(this.MAX_U64) : this;
34951
+ return this.gte(this.MAX_U64) ? new BN(this.MAX_U64) : this;
34941
34952
  }
34942
34953
  normalizeZeroToOne() {
34943
- return this.isZero() ? new _BN(1) : this;
34954
+ return this.isZero() ? new BN(1) : this;
34944
34955
  }
34945
34956
  // END ANCHOR: OVERRIDES to avoid losing references
34946
34957
  };
@@ -35007,6 +35018,25 @@ This unreleased fuel-core build may include features and updates not yet support
35007
35018
  };
35008
35019
 
35009
35020
  // ../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
+ };
35010
35040
  var Coder = class {
35011
35041
  name;
35012
35042
  type;
@@ -35345,10 +35375,12 @@ This unreleased fuel-core build may include features and updates not yet support
35345
35375
  return [true, offset + this.paddingLength];
35346
35376
  }
35347
35377
  };
35378
+ var _getPaddedData;
35379
+ var getPaddedData_fn;
35348
35380
  var ByteCoder = class extends Coder {
35349
- static memorySize = 1;
35350
35381
  constructor() {
35351
35382
  super("struct", "struct Bytes", BASE_VECTOR_OFFSET);
35383
+ __privateAdd2(this, _getPaddedData);
35352
35384
  }
35353
35385
  encode(value) {
35354
35386
  if (!Array.isArray(value)) {
@@ -35356,7 +35388,7 @@ This unreleased fuel-core build may include features and updates not yet support
35356
35388
  }
35357
35389
  const parts = [];
35358
35390
  const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
35359
- const data = this.#getPaddedData(value);
35391
+ const data = __privateMethod2(this, _getPaddedData, getPaddedData_fn).call(this, value);
35360
35392
  pointer.dynamicData = {
35361
35393
  0: concatWithDynamicData([data])
35362
35394
  };
@@ -35365,14 +35397,6 @@ This unreleased fuel-core build may include features and updates not yet support
35365
35397
  parts.push(new BigNumberCoder("u64").encode(value.length));
35366
35398
  return concatWithDynamicData(parts);
35367
35399
  }
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
- }
35376
35400
  decode(data, offset) {
35377
35401
  if (data.length < BASE_VECTOR_OFFSET) {
35378
35402
  throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid byte data size.`);
@@ -35386,6 +35410,16 @@ This unreleased fuel-core build may include features and updates not yet support
35386
35410
  return [byteData, offset + BASE_VECTOR_OFFSET];
35387
35411
  }
35388
35412
  };
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);
35389
35423
  var isFullyNativeEnum = (enumCoders) => Object.values(enumCoders).every(
35390
35424
  // @ts-expect-error complicated types
35391
35425
  ({ type: type3, coders }) => type3 === "()" && JSON.stringify(coders) === JSON.stringify([])
@@ -35584,15 +35618,17 @@ This unreleased fuel-core build may include features and updates not yet support
35584
35618
  return [decodedValue, offset + dataBytes.length];
35585
35619
  }
35586
35620
  };
35621
+ var _getPaddedData2;
35622
+ var getPaddedData_fn2;
35587
35623
  var StdStringCoder = class extends Coder {
35588
- static memorySize = 1;
35589
35624
  constructor() {
35590
35625
  super("struct", "struct String", 1);
35626
+ __privateAdd2(this, _getPaddedData2);
35591
35627
  }
35592
35628
  encode(value) {
35593
35629
  const parts = [];
35594
35630
  const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
35595
- const data = this.#getPaddedData(value);
35631
+ const data = __privateMethod2(this, _getPaddedData2, getPaddedData_fn2).call(this, value);
35596
35632
  pointer.dynamicData = {
35597
35633
  0: concatWithDynamicData([data])
35598
35634
  };
@@ -35601,14 +35637,6 @@ This unreleased fuel-core build may include features and updates not yet support
35601
35637
  parts.push(new BigNumberCoder("u64").encode(value.length));
35602
35638
  return concatWithDynamicData(parts);
35603
35639
  }
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
- }
35612
35640
  decode(data, offset) {
35613
35641
  if (data.length < this.encodedLength) {
35614
35642
  throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid std string data size.`);
@@ -35623,6 +35651,16 @@ This unreleased fuel-core build may include features and updates not yet support
35623
35651
  return [value, offset + BASE_VECTOR_OFFSET];
35624
35652
  }
35625
35653
  };
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);
35626
35664
  var StringCoder = class extends Coder {
35627
35665
  length;
35628
35666
  #paddingLength;
@@ -35778,7 +35816,7 @@ This unreleased fuel-core build may include features and updates not yet support
35778
35816
  ];
35779
35817
  }
35780
35818
  };
35781
- var ResolvedAbiType = class _ResolvedAbiType {
35819
+ var ResolvedAbiType = class {
35782
35820
  abi;
35783
35821
  name;
35784
35822
  type;
@@ -35802,11 +35840,11 @@ This unreleased fuel-core build may include features and updates not yet support
35802
35840
  this.name = argument.name;
35803
35841
  this.type = type3.type;
35804
35842
  this.originalTypeArguments = argument.typeArguments;
35805
- this.components = _ResolvedAbiType.getResolvedGenericComponents(
35843
+ this.components = ResolvedAbiType.getResolvedGenericComponents(
35806
35844
  abi,
35807
35845
  argument,
35808
35846
  type3.components,
35809
- type3.typeParameters ?? _ResolvedAbiType.getImplicitGenericTypeParameters(abi, type3.components)
35847
+ type3.typeParameters ?? ResolvedAbiType.getImplicitGenericTypeParameters(abi, type3.components)
35810
35848
  );
35811
35849
  }
35812
35850
  static getResolvedGenericComponents(abi, arg, components, typeParameters) {
@@ -35814,7 +35852,7 @@ This unreleased fuel-core build may include features and updates not yet support
35814
35852
  return null;
35815
35853
  }
35816
35854
  if (typeParameters === null || typeParameters.length === 0) {
35817
- return components.map((c) => new _ResolvedAbiType(abi, c));
35855
+ return components.map((c) => new ResolvedAbiType(abi, c));
35818
35856
  }
35819
35857
  const typeParametersAndArgsMap = typeParameters.reduce(
35820
35858
  (obj, typeParameter, typeParameterIndex) => {
@@ -35831,7 +35869,7 @@ This unreleased fuel-core build may include features and updates not yet support
35831
35869
  components,
35832
35870
  typeParametersAndArgsMap
35833
35871
  );
35834
- return resolvedComponents.map((c) => new _ResolvedAbiType(abi, c));
35872
+ return resolvedComponents.map((c) => new ResolvedAbiType(abi, c));
35835
35873
  }
35836
35874
  static resolveGenericArgTypes(abi, args, typeParametersAndArgsMap) {
35837
35875
  return args.map((arg) => {
@@ -35918,7 +35956,7 @@ This unreleased fuel-core build may include features and updates not yet support
35918
35956
  if (arrayMatch) {
35919
35957
  return `[${this.components[0].getSignature()};${arrayMatch.length}]`;
35920
35958
  }
35921
- const typeArgumentsSignature = this.originalTypeArguments !== null ? `<${this.originalTypeArguments.map((a) => new _ResolvedAbiType(this.abi, a).getSignature()).join(",")}>` : "";
35959
+ const typeArgumentsSignature = this.originalTypeArguments !== null ? `<${this.originalTypeArguments.map((a) => new ResolvedAbiType(this.abi, a).getSignature()).join(",")}>` : "";
35922
35960
  const componentsSignature = `(${this.components.map((c) => c.getSignature()).join(",")})`;
35923
35961
  return `${typeArgumentsSignature}${componentsSignature}`;
35924
35962
  }
@@ -36046,7 +36084,6 @@ This unreleased fuel-core build may include features and updates not yet support
36046
36084
  }
36047
36085
  };
36048
36086
  var ByteCoder2 = class extends Coder {
36049
- static memorySize = 1;
36050
36087
  constructor() {
36051
36088
  super("struct", "struct Bytes", WORD_SIZE);
36052
36089
  }
@@ -36072,6 +36109,7 @@ This unreleased fuel-core build may include features and updates not yet support
36072
36109
  return [dataBytes, offsetAndLength + length];
36073
36110
  }
36074
36111
  };
36112
+ __publicField4(ByteCoder2, "memorySize", 1);
36075
36113
  var isFullyNativeEnum2 = (enumCoders) => Object.values(enumCoders).every(
36076
36114
  // @ts-expect-error complicated types
36077
36115
  ({ type: type3, coders }) => type3 === "()" && JSON.stringify(coders) === JSON.stringify([])
@@ -36215,7 +36253,6 @@ This unreleased fuel-core build may include features and updates not yet support
36215
36253
  }
36216
36254
  };
36217
36255
  var StdStringCoder2 = class extends Coder {
36218
- static memorySize = 1;
36219
36256
  constructor() {
36220
36257
  super("struct", "struct String", WORD_SIZE);
36221
36258
  }
@@ -36238,6 +36275,7 @@ This unreleased fuel-core build may include features and updates not yet support
36238
36275
  return [toUtf8String(dataBytes), offsetAndLength + length];
36239
36276
  }
36240
36277
  };
36278
+ __publicField4(StdStringCoder2, "memorySize", 1);
36241
36279
  var StringCoder2 = class extends Coder {
36242
36280
  constructor(length) {
36243
36281
  super("string", `str[${length}]`, length);
@@ -36477,7 +36515,7 @@ This unreleased fuel-core build may include features and updates not yet support
36477
36515
  return this.getCoder(abi, argument, options).decode(data, offset);
36478
36516
  }
36479
36517
  };
36480
- var FunctionFragment = class _FunctionFragment {
36518
+ var FunctionFragment = class {
36481
36519
  signature;
36482
36520
  selector;
36483
36521
  name;
@@ -36490,8 +36528,8 @@ This unreleased fuel-core build may include features and updates not yet support
36490
36528
  this.jsonAbi = jsonAbi;
36491
36529
  this.jsonFn = findOrThrow(this.jsonAbi.functions, (f2) => f2.name === name);
36492
36530
  this.name = name;
36493
- this.signature = _FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
36494
- this.selector = _FunctionFragment.getFunctionSelector(this.signature);
36531
+ this.signature = FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
36532
+ this.selector = FunctionFragment.getFunctionSelector(this.signature);
36495
36533
  this.isInputDataPointer = this.#isInputDataPointer();
36496
36534
  this.outputMetadata = {
36497
36535
  isHeapType: this.#isOutputDataHeap(),
@@ -36534,7 +36572,7 @@ This unreleased fuel-core build may include features and updates not yet support
36534
36572
  }
36535
36573
  }
36536
36574
  encodeArguments(values, offset = 0) {
36537
- _FunctionFragment.verifyArgsAndInputsAlign(values, this.jsonFn.inputs, this.jsonAbi);
36575
+ FunctionFragment.verifyArgsAndInputsAlign(values, this.jsonFn.inputs, this.jsonAbi);
36538
36576
  const shallowCopyValues = values.slice();
36539
36577
  const nonEmptyInputs = this.jsonFn.inputs.filter(
36540
36578
  (x) => findOrThrow(this.jsonAbi.types, (t) => t.typeId === x.type).type !== "()"
@@ -36885,7 +36923,7 @@ This unreleased fuel-core build may include features and updates not yet support
36885
36923
  ];
36886
36924
  }
36887
36925
  };
36888
- var InputMessageCoder = class _InputMessageCoder extends Coder {
36926
+ var InputMessageCoder = class extends Coder {
36889
36927
  constructor() {
36890
36928
  super("InputMessage", "struct InputMessage", 0);
36891
36929
  }
@@ -36905,7 +36943,7 @@ This unreleased fuel-core build may include features and updates not yet support
36905
36943
  }
36906
36944
  encode(value) {
36907
36945
  const parts = [];
36908
- const data = _InputMessageCoder.encodeData(value.data);
36946
+ const data = InputMessageCoder.encodeData(value.data);
36909
36947
  parts.push(new ByteArrayCoder(32).encode(value.sender));
36910
36948
  parts.push(new ByteArrayCoder(32).encode(value.recipient));
36911
36949
  parts.push(new BigNumberCoder("u64").encode(value.amount));
@@ -37349,7 +37387,7 @@ This unreleased fuel-core build may include features and updates not yet support
37349
37387
  ReceiptType2[ReceiptType2["Burn"] = 12] = "Burn";
37350
37388
  return ReceiptType2;
37351
37389
  })(ReceiptType || {});
37352
- var ReceiptMessageOutCoder = class _ReceiptMessageOutCoder extends Coder {
37390
+ var ReceiptMessageOutCoder = class extends Coder {
37353
37391
  constructor() {
37354
37392
  super("ReceiptMessageOut", "struct ReceiptMessageOut", 0);
37355
37393
  }
@@ -37400,7 +37438,7 @@ This unreleased fuel-core build may include features and updates not yet support
37400
37438
  digest,
37401
37439
  data: messageData
37402
37440
  };
37403
- receiptMessageOut.messageId = _ReceiptMessageOutCoder.getMessageId(receiptMessageOut);
37441
+ receiptMessageOut.messageId = ReceiptMessageOutCoder.getMessageId(receiptMessageOut);
37404
37442
  return [receiptMessageOut, o];
37405
37443
  }
37406
37444
  };
@@ -37409,7 +37447,7 @@ This unreleased fuel-core build may include features and updates not yet support
37409
37447
  const subIdBytes = arrayify(subId);
37410
37448
  return sha2563(concat([contractIdBytes, subIdBytes]));
37411
37449
  };
37412
- var ReceiptMintCoder = class _ReceiptMintCoder extends Coder {
37450
+ var ReceiptMintCoder = class extends Coder {
37413
37451
  constructor() {
37414
37452
  super("ReceiptMint", "struct ReceiptMint", 0);
37415
37453
  }
@@ -37438,7 +37476,7 @@ This unreleased fuel-core build may include features and updates not yet support
37438
37476
  const pc = decoded;
37439
37477
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37440
37478
  const is = decoded;
37441
- const assetId = _ReceiptMintCoder.getAssetId(contractId, subId);
37479
+ const assetId = ReceiptMintCoder.getAssetId(contractId, subId);
37442
37480
  const receiptMint = {
37443
37481
  type: 11,
37444
37482
  subId,
@@ -38297,7 +38335,7 @@ This unreleased fuel-core build may include features and updates not yet support
38297
38335
  }
38298
38336
  return firstArg;
38299
38337
  }
38300
- var GraphQLError = class _GraphQLError extends Error {
38338
+ var GraphQLError = class extends Error {
38301
38339
  /**
38302
38340
  * An array of `{ line, column }` locations within the source GraphQL document
38303
38341
  * which correspond to this error.
@@ -38384,7 +38422,7 @@ This unreleased fuel-core build may include features and updates not yet support
38384
38422
  configurable: true
38385
38423
  });
38386
38424
  } else if (Error.captureStackTrace) {
38387
- Error.captureStackTrace(this, _GraphQLError);
38425
+ Error.captureStackTrace(this, GraphQLError);
38388
38426
  } else {
38389
38427
  Object.defineProperty(this, "stack", {
38390
38428
  value: Error().stack,
@@ -42148,12 +42186,11 @@ ${MessageCoinFragmentFragmentDoc}`;
42148
42186
  }
42149
42187
 
42150
42188
  // src/providers/fuel-graphql-subscriber.ts
42151
- var FuelGraphqlSubscriber = class _FuelGraphqlSubscriber {
42189
+ var _FuelGraphqlSubscriber = class {
42152
42190
  constructor(options) {
42153
42191
  this.options = options;
42154
42192
  }
42155
42193
  stream;
42156
- static textDecoder = new TextDecoder();
42157
42194
  async setStream() {
42158
42195
  const { url, query, variables, fetchFn } = this.options;
42159
42196
  const response = await fetchFn(`${url}-sub`, {
@@ -42213,6 +42250,8 @@ ${MessageCoinFragmentFragmentDoc}`;
42213
42250
  return this;
42214
42251
  }
42215
42252
  };
42253
+ var FuelGraphqlSubscriber = _FuelGraphqlSubscriber;
42254
+ __publicField(FuelGraphqlSubscriber, "textDecoder", new TextDecoder());
42216
42255
 
42217
42256
  // src/providers/memory-cache.ts
42218
42257
  var cache = {};
@@ -42735,7 +42774,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42735
42774
  };
42736
42775
 
42737
42776
  // src/providers/transaction-request/transaction-request.ts
42738
- var BaseTransactionRequest = class _BaseTransactionRequest {
42777
+ var BaseTransactionRequest = class {
42739
42778
  /** Gas price for transaction */
42740
42779
  gasPrice;
42741
42780
  /** Block until which tx cannot be included */
@@ -42805,7 +42844,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42805
42844
  const inputs = this.inputs?.map(inputify) ?? [];
42806
42845
  const outputs = this.outputs?.map(outputify) ?? [];
42807
42846
  const witnesses = this.witnesses?.map(witnessify) ?? [];
42808
- const { policyTypes, policies } = _BaseTransactionRequest.getPolicyMeta(this);
42847
+ const { policyTypes, policies } = BaseTransactionRequest.getPolicyMeta(this);
42809
42848
  return {
42810
42849
  policyTypes,
42811
42850
  inputs,
@@ -42843,13 +42882,27 @@ ${MessageCoinFragmentFragmentDoc}`;
42843
42882
  this.outputs.push(output3);
42844
42883
  return this.outputs.length - 1;
42845
42884
  }
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
+ }
42846
42897
  /**
42847
42898
  * @hidden
42848
42899
  *
42849
42900
  * Creates an empty witness without any side effects and returns the index
42901
+ *
42902
+ * @returns The index of the created witness.
42850
42903
  */
42851
- createWitness() {
42852
- this.witnesses.push(concat([ZeroBytes32, ZeroBytes32]));
42904
+ addEmptyWitness() {
42905
+ this.addWitness(concat([ZeroBytes32, ZeroBytes32]));
42853
42906
  return this.witnesses.length - 1;
42854
42907
  }
42855
42908
  /**
@@ -42878,6 +42931,21 @@ ${MessageCoinFragmentFragmentDoc}`;
42878
42931
  }
42879
42932
  this.witnesses[index] = witness;
42880
42933
  }
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
+ }
42881
42949
  /**
42882
42950
  * Gets the coin inputs for a transaction.
42883
42951
  *
@@ -42943,7 +43011,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42943
43011
  } else {
42944
43012
  witnessIndex = this.getCoinInputWitnessIndexByOwner(owner);
42945
43013
  if (typeof witnessIndex !== "number") {
42946
- witnessIndex = this.createWitness();
43014
+ witnessIndex = this.addEmptyWitness();
42947
43015
  }
42948
43016
  }
42949
43017
  const input = {
@@ -42977,7 +43045,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42977
43045
  } else {
42978
43046
  witnessIndex = this.getCoinInputWitnessIndexByOwner(recipient);
42979
43047
  if (typeof witnessIndex !== "number") {
42980
- witnessIndex = this.createWitness();
43048
+ witnessIndex = this.addEmptyWitness();
42981
43049
  }
42982
43050
  }
42983
43051
  const input = {
@@ -44294,7 +44362,7 @@ ${MessageCoinFragmentFragmentDoc}`;
44294
44362
  }
44295
44363
 
44296
44364
  // src/providers/transaction-response/transaction-response.ts
44297
- var TransactionResponse2 = class _TransactionResponse {
44365
+ var TransactionResponse2 = class {
44298
44366
  /** Transaction ID */
44299
44367
  id;
44300
44368
  /** Current provider */
@@ -44322,7 +44390,7 @@ ${MessageCoinFragmentFragmentDoc}`;
44322
44390
  * @param provider - The provider.
44323
44391
  */
44324
44392
  static async create(id, provider) {
44325
- const response = new _TransactionResponse(id, provider);
44393
+ const response = new TransactionResponse2(id, provider);
44326
44394
  await response.fetch();
44327
44395
  return response;
44328
44396
  }
@@ -44533,7 +44601,8 @@ ${MessageCoinFragmentFragmentDoc}`;
44533
44601
  }
44534
44602
  };
44535
44603
  };
44536
- var Provider = class _Provider {
44604
+ var _cacheInputs, cacheInputs_fn;
44605
+ var _Provider = class {
44537
44606
  /**
44538
44607
  * Constructor to initialize a Provider.
44539
44608
  *
@@ -44544,25 +44613,27 @@ ${MessageCoinFragmentFragmentDoc}`;
44544
44613
  */
44545
44614
  constructor(url, options = {}) {
44546
44615
  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
+ });
44547
44628
  this.options = { ...this.options, ...options };
44548
44629
  this.url = url;
44549
44630
  this.operations = this.createOperations();
44550
44631
  this.cache = options.cacheUtxo ? new MemoryCache(options.cacheUtxo) : void 0;
44551
44632
  }
44552
- operations;
44553
- cache;
44554
44633
  static clearChainAndNodeCaches() {
44555
44634
  _Provider.nodeInfoCache = {};
44556
44635
  _Provider.chainInfoCache = {};
44557
44636
  }
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
- };
44566
44637
  static getFetchFn(options) {
44567
44638
  const { retryOptions, timeout } = options;
44568
44639
  return autoRetryFetch(async (...args) => {
@@ -44759,19 +44830,6 @@ ${MessageCoinFragmentFragmentDoc}`;
44759
44830
  } = this.getChain();
44760
44831
  return chainId.toNumber();
44761
44832
  }
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
- }
44775
44833
  /**
44776
44834
  * Submits a transaction to the chain to be executed.
44777
44835
  *
@@ -44784,7 +44842,7 @@ ${MessageCoinFragmentFragmentDoc}`;
44784
44842
  // #region Provider-sendTransaction
44785
44843
  async sendTransaction(transactionRequestLike, { estimateTxDependencies = true, awaitExecution = false } = {}) {
44786
44844
  const transactionRequest = transactionRequestify(transactionRequestLike);
44787
- this.#cacheInputs(transactionRequest.inputs);
44845
+ __privateMethod(this, _cacheInputs, cacheInputs_fn).call(this, transactionRequest.inputs);
44788
44846
  if (estimateTxDependencies) {
44789
44847
  await this.estimateTxDependencies(transactionRequest);
44790
44848
  }
@@ -44961,7 +45019,8 @@ ${MessageCoinFragmentFragmentDoc}`;
44961
45019
  async getTransactionCost(transactionRequestLike, forwardingQuantities = [], {
44962
45020
  estimateTxDependencies = true,
44963
45021
  estimatePredicates = true,
44964
- resourcesOwner
45022
+ resourcesOwner,
45023
+ signatureCallback
44965
45024
  } = {}) {
44966
45025
  const txRequestClone = clone_default(transactionRequestify(transactionRequestLike));
44967
45026
  const chainInfo = this.getChain();
@@ -44980,6 +45039,9 @@ ${MessageCoinFragmentFragmentDoc}`;
44980
45039
  }
44981
45040
  await this.estimatePredicates(txRequestClone);
44982
45041
  }
45042
+ if (signatureCallback && isScriptTransaction) {
45043
+ await signatureCallback(txRequestClone);
45044
+ }
44983
45045
  const minGas = txRequestClone.calculateMinGas(chainInfo);
44984
45046
  const maxGas = txRequestClone.calculateMaxGas(chainInfo, minGas);
44985
45047
  let receipts = [];
@@ -45409,6 +45471,20 @@ ${MessageCoinFragmentFragmentDoc}`;
45409
45471
  return new TransactionResponse2(transactionId, this);
45410
45472
  }
45411
45473
  };
45474
+ var Provider = _Provider;
45475
+ _cacheInputs = new WeakSet();
45476
+ cacheInputs_fn = function(inputs) {
45477
+ if (!this.cache) {
45478
+ return;
45479
+ }
45480
+ inputs.forEach((input) => {
45481
+ if (input.type === InputType.Coin) {
45482
+ this.cache?.set(input.id);
45483
+ }
45484
+ });
45485
+ };
45486
+ __publicField(Provider, "chainInfoCache", {});
45487
+ __publicField(Provider, "nodeInfoCache", {});
45412
45488
 
45413
45489
  // src/providers/chains.ts
45414
45490
  var CHAIN_IDS = {
@@ -45838,6 +45914,21 @@ ${MessageCoinFragmentFragmentDoc}`;
45838
45914
  }
45839
45915
  return this._connector.signMessage(this.address.toString(), message);
45840
45916
  }
45917
+ /**
45918
+ * Signs a transaction with the wallet's private key.
45919
+ *
45920
+ * @param transactionRequestLike - The transaction request to sign.
45921
+ * @returns A promise that resolves to the signature of the transaction.
45922
+ */
45923
+ async signTransaction(transactionRequestLike) {
45924
+ if (!this._connector) {
45925
+ throw new FuelError(
45926
+ ErrorCode.MISSING_CONNECTOR,
45927
+ "A connector is required to sign transactions."
45928
+ );
45929
+ }
45930
+ return this._connector.signTransaction(this.address.toString(), transactionRequestLike);
45931
+ }
45841
45932
  /**
45842
45933
  * Sends a transaction to the network.
45843
45934
  *
@@ -47163,7 +47254,7 @@ ${MessageCoinFragmentFragmentDoc}`;
47163
47254
  var Point = secp256k1.ProjectivePoint;
47164
47255
 
47165
47256
  // src/signer/signer.ts
47166
- var Signer = class _Signer {
47257
+ var Signer = class {
47167
47258
  address;
47168
47259
  publicKey;
47169
47260
  compressedPublicKey;
@@ -47242,7 +47333,7 @@ ${MessageCoinFragmentFragmentDoc}`;
47242
47333
  * @returns Address from signature
47243
47334
  */
47244
47335
  static recoverAddress(data, signature) {
47245
- return Address.fromPublicKey(_Signer.recoverPublicKey(data, signature));
47336
+ return Address.fromPublicKey(Signer.recoverPublicKey(data, signature));
47246
47337
  }
47247
47338
  /**
47248
47339
  * Generate a random privateKey
@@ -47400,10 +47491,6 @@ ${MessageCoinFragmentFragmentDoc}`;
47400
47491
 
47401
47492
  // src/wallet/base-wallet-unlocked.ts
47402
47493
  var BaseWalletUnlocked = class extends Account {
47403
- /**
47404
- * Default HDWallet path.
47405
- */
47406
- static defaultPath = "m/44'/1179993420'/0'/0/0";
47407
47494
  /**
47408
47495
  * A function that returns the wallet's signer.
47409
47496
  */
@@ -47453,7 +47540,7 @@ ${MessageCoinFragmentFragmentDoc}`;
47453
47540
  */
47454
47541
  async signTransaction(transactionRequestLike) {
47455
47542
  const transactionRequest = transactionRequestify(transactionRequestLike);
47456
- const chainId = this.provider.getChain().consensusParameters.chainId.toNumber();
47543
+ const chainId = this.provider.getChainId();
47457
47544
  const hashedTransaction = transactionRequest.getTransactionId(chainId);
47458
47545
  const signature = await this.signer().sign(hashedTransaction);
47459
47546
  return hexlify(signature);
@@ -47509,6 +47596,10 @@ ${MessageCoinFragmentFragmentDoc}`;
47509
47596
  return encryptKeystoreWallet(this.privateKey, this.address, password);
47510
47597
  }
47511
47598
  };
47599
+ /**
47600
+ * Default HDWallet path.
47601
+ */
47602
+ __publicField(BaseWalletUnlocked, "defaultPath", "m/44'/1179993420'/0'/0/0");
47512
47603
 
47513
47604
  // src/wordlists/words/english.ts
47514
47605
  var english = [
@@ -49695,7 +49786,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49695
49786
  throw new FuelError(ErrorCode.INVALID_MNEMONIC, errorMsg);
49696
49787
  }
49697
49788
  }
49698
- var Mnemonic = class _Mnemonic {
49789
+ var Mnemonic = class {
49699
49790
  wordlist;
49700
49791
  /**
49701
49792
  *
@@ -49712,7 +49803,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49712
49803
  * @returns Entropy hash
49713
49804
  */
49714
49805
  mnemonicToEntropy(phrase) {
49715
- return _Mnemonic.mnemonicToEntropy(phrase, this.wordlist);
49806
+ return Mnemonic.mnemonicToEntropy(phrase, this.wordlist);
49716
49807
  }
49717
49808
  /**
49718
49809
  *
@@ -49720,7 +49811,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49720
49811
  * @returns Mnemonic phrase
49721
49812
  */
49722
49813
  entropyToMnemonic(entropy) {
49723
- return _Mnemonic.entropyToMnemonic(entropy, this.wordlist);
49814
+ return Mnemonic.entropyToMnemonic(entropy, this.wordlist);
49724
49815
  }
49725
49816
  /**
49726
49817
  *
@@ -49761,8 +49852,8 @@ ${MessageCoinFragmentFragmentDoc}`;
49761
49852
  * @returns 64-byte array contains privateKey and chainCode as described on BIP39
49762
49853
  */
49763
49854
  static mnemonicToMasterKeys(phrase, passphrase = "") {
49764
- const seed = _Mnemonic.mnemonicToSeed(phrase, passphrase);
49765
- return _Mnemonic.masterKeysFromSeed(seed);
49855
+ const seed = Mnemonic.mnemonicToSeed(phrase, passphrase);
49856
+ return Mnemonic.masterKeysFromSeed(seed);
49766
49857
  }
49767
49858
  /**
49768
49859
  * Validates if given mnemonic is valid
@@ -49778,7 +49869,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49778
49869
  return false;
49779
49870
  }
49780
49871
  while (i < words.length) {
49781
- if (_Mnemonic.binarySearch(words[i]) === false) {
49872
+ if (Mnemonic.binarySearch(words[i]) === false) {
49782
49873
  return false;
49783
49874
  }
49784
49875
  i += 1;
@@ -49825,7 +49916,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49825
49916
  * @returns BIP-32 extended private key
49826
49917
  */
49827
49918
  static seedToExtendedKey(seed, testnet = false) {
49828
- const masterKey = _Mnemonic.masterKeysFromSeed(seed);
49919
+ const masterKey = Mnemonic.masterKeysFromSeed(seed);
49829
49920
  const prefix = arrayify(testnet ? TestnetPRV : MainnetPRV);
49830
49921
  const depth = "0x00";
49831
49922
  const fingerprint = "0x00000000";
@@ -49857,7 +49948,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49857
49948
  */
49858
49949
  static generate(size = 32, extraEntropy = "") {
49859
49950
  const entropy = extraEntropy ? sha2563(concat([randomBytes22(size), arrayify(extraEntropy)])) : randomBytes22(size);
49860
- return _Mnemonic.entropyToMnemonic(entropy);
49951
+ return Mnemonic.entropyToMnemonic(entropy);
49861
49952
  }
49862
49953
  };
49863
49954
  var mnemonic_default = Mnemonic;
@@ -49897,7 +49988,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49897
49988
  (p) => ~p.indexOf(`'`) ? parseInt(p, 10) + HARDENED_INDEX : parseInt(p, 10)
49898
49989
  );
49899
49990
  }
49900
- var HDWallet = class _HDWallet {
49991
+ var HDWallet = class {
49901
49992
  depth = 0;
49902
49993
  index = 0;
49903
49994
  fingerprint = hexlify("0x00000000");
@@ -49963,7 +50054,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49963
50054
  if (privateKey) {
49964
50055
  const N = "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141";
49965
50056
  const ki = bn(IL).add(privateKey).mod(N).toBytes(32);
49966
- return new _HDWallet({
50057
+ return new HDWallet({
49967
50058
  privateKey: ki,
49968
50059
  chainCode: IR,
49969
50060
  index,
@@ -49973,7 +50064,7 @@ ${MessageCoinFragmentFragmentDoc}`;
49973
50064
  }
49974
50065
  const signer = new Signer(hexlify(IL));
49975
50066
  const Ki = signer.addPoint(publicKey);
49976
- return new _HDWallet({
50067
+ return new HDWallet({
49977
50068
  publicKey: Ki,
49978
50069
  chainCode: IR,
49979
50070
  index,
@@ -50022,7 +50113,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50022
50113
  */
50023
50114
  static fromSeed(seed) {
50024
50115
  const masterKey = mnemonic_default.masterKeysFromSeed(seed);
50025
- return new _HDWallet({
50116
+ return new HDWallet({
50026
50117
  chainCode: arrayify(masterKey.slice(32)),
50027
50118
  privateKey: arrayify(masterKey.slice(0, 32))
50028
50119
  });
@@ -50052,7 +50143,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50052
50143
  if (key[0] !== 3) {
50053
50144
  throw new FuelError(ErrorCode.HD_WALLET_ERROR, "Invalid public extended key.");
50054
50145
  }
50055
- return new _HDWallet({
50146
+ return new HDWallet({
50056
50147
  publicKey: key,
50057
50148
  chainCode,
50058
50149
  index,
@@ -50063,7 +50154,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50063
50154
  if (key[0] !== 0) {
50064
50155
  throw new FuelError(ErrorCode.HD_WALLET_ERROR, "Invalid private extended key.");
50065
50156
  }
50066
- return new _HDWallet({
50157
+ return new HDWallet({
50067
50158
  privateKey: key.slice(1),
50068
50159
  chainCode,
50069
50160
  index,
@@ -50086,7 +50177,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50086
50177
  return new WalletUnlocked(privateKey, this._provider);
50087
50178
  }
50088
50179
  };
50089
- var WalletUnlocked = class _WalletUnlocked extends BaseWalletUnlocked {
50180
+ var WalletUnlocked = class extends BaseWalletUnlocked {
50090
50181
  /**
50091
50182
  * Locks the wallet and returns an instance of WalletLocked.
50092
50183
  *
@@ -50104,7 +50195,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50104
50195
  */
50105
50196
  static generate(generateOptions) {
50106
50197
  const privateKey = Signer.generatePrivateKey(generateOptions?.entropy);
50107
- return new _WalletUnlocked(privateKey, generateOptions?.provider);
50198
+ return new WalletUnlocked(privateKey, generateOptions?.provider);
50108
50199
  }
50109
50200
  /**
50110
50201
  * Create a Wallet Unlocked from a seed.
@@ -50116,8 +50207,8 @@ ${MessageCoinFragmentFragmentDoc}`;
50116
50207
  */
50117
50208
  static fromSeed(seed, path2, provider) {
50118
50209
  const hdWallet = hdwallet_default.fromSeed(seed);
50119
- const childWallet = hdWallet.derivePath(path2 || _WalletUnlocked.defaultPath);
50120
- return new _WalletUnlocked(childWallet.privateKey, provider);
50210
+ const childWallet = hdWallet.derivePath(path2 || WalletUnlocked.defaultPath);
50211
+ return new WalletUnlocked(childWallet.privateKey, provider);
50121
50212
  }
50122
50213
  /**
50123
50214
  * Create a Wallet Unlocked from a mnemonic phrase.
@@ -50131,8 +50222,8 @@ ${MessageCoinFragmentFragmentDoc}`;
50131
50222
  static fromMnemonic(mnemonic, path2, passphrase, provider) {
50132
50223
  const seed = mnemonic_default.mnemonicToSeed(mnemonic, passphrase);
50133
50224
  const hdWallet = hdwallet_default.fromSeed(seed);
50134
- const childWallet = hdWallet.derivePath(path2 || _WalletUnlocked.defaultPath);
50135
- return new _WalletUnlocked(childWallet.privateKey, provider);
50225
+ const childWallet = hdWallet.derivePath(path2 || WalletUnlocked.defaultPath);
50226
+ return new WalletUnlocked(childWallet.privateKey, provider);
50136
50227
  }
50137
50228
  /**
50138
50229
  * Create a Wallet Unlocked from an extended key.
@@ -50143,7 +50234,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50143
50234
  */
50144
50235
  static fromExtendedKey(extendedKey, provider) {
50145
50236
  const hdWallet = hdwallet_default.fromExtendedKey(extendedKey);
50146
- return new _WalletUnlocked(hdWallet.privateKey, provider);
50237
+ return new WalletUnlocked(hdWallet.privateKey, provider);
50147
50238
  }
50148
50239
  /**
50149
50240
  * Create a Wallet Unlocked from an encrypted JSON.
@@ -50155,7 +50246,7 @@ ${MessageCoinFragmentFragmentDoc}`;
50155
50246
  */
50156
50247
  static async fromEncryptedJson(jsonWallet, password, provider) {
50157
50248
  const privateKey = await decryptKeystoreWallet(jsonWallet, password);
50158
- return new _WalletUnlocked(privateKey, provider);
50249
+ return new WalletUnlocked(privateKey, provider);
50159
50250
  }
50160
50251
  };
50161
50252
 
@@ -50181,50 +50272,50 @@ ${MessageCoinFragmentFragmentDoc}`;
50181
50272
  static fromPrivateKey(privateKey, provider) {
50182
50273
  return new WalletUnlocked(privateKey, provider);
50183
50274
  }
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;
50227
50275
  };
50276
+ /**
50277
+ * Generate a new Wallet Unlocked with a random key pair.
50278
+ *
50279
+ * @param generateOptions - Options to customize the generation process (optional).
50280
+ * @returns An unlocked wallet instance.
50281
+ */
50282
+ __publicField(Wallet, "generate", WalletUnlocked.generate);
50283
+ /**
50284
+ * Create a Wallet Unlocked from a seed.
50285
+ *
50286
+ * @param seed - The seed phrase.
50287
+ * @param provider - A Provider instance (optional).
50288
+ * @param path - The derivation path (optional).
50289
+ * @returns An unlocked wallet instance.
50290
+ */
50291
+ __publicField(Wallet, "fromSeed", WalletUnlocked.fromSeed);
50292
+ /**
50293
+ * Create a Wallet Unlocked from a mnemonic phrase.
50294
+ *
50295
+ * @param mnemonic - The mnemonic phrase.
50296
+ * @param provider - A Provider instance (optional).
50297
+ * @param path - The derivation path (optional).
50298
+ * @param passphrase - The passphrase for the mnemonic (optional).
50299
+ * @returns An unlocked wallet instance.
50300
+ */
50301
+ __publicField(Wallet, "fromMnemonic", WalletUnlocked.fromMnemonic);
50302
+ /**
50303
+ * Create a Wallet Unlocked from an extended key.
50304
+ *
50305
+ * @param extendedKey - The extended key.
50306
+ * @param provider - A Provider instance (optional).
50307
+ * @returns An unlocked wallet instance.
50308
+ */
50309
+ __publicField(Wallet, "fromExtendedKey", WalletUnlocked.fromExtendedKey);
50310
+ /**
50311
+ * Create a Wallet Unlocked from an encrypted JSON.
50312
+ *
50313
+ * @param jsonWallet - The encrypted JSON keystore.
50314
+ * @param password - The password to decrypt the JSON.
50315
+ * @param provider - A Provider instance (optional).
50316
+ * @returns An unlocked wallet instance.
50317
+ */
50318
+ __publicField(Wallet, "fromEncryptedJson", WalletUnlocked.fromEncryptedJson);
50228
50319
 
50229
50320
  // src/test-utils/seedTestWallet.ts
50230
50321
  var seedTestWallet = async (wallet, quantities) => {