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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

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