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

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

Potentially problematic release.


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

Files changed (212) hide show
  1. package/dist/account.d.ts +184 -0
  2. package/dist/account.d.ts.map +1 -0
  3. package/dist/configs.d.ts +2 -3
  4. package/dist/configs.d.ts.map +1 -0
  5. package/dist/connectors/fuel-connector.d.ts +198 -0
  6. package/dist/connectors/fuel-connector.d.ts.map +1 -0
  7. package/dist/connectors/fuel.d.ts +133 -0
  8. package/dist/connectors/fuel.d.ts.map +1 -0
  9. package/dist/connectors/index.d.ts +5 -0
  10. package/dist/connectors/index.d.ts.map +1 -0
  11. package/dist/connectors/types/connector-metadata.d.ts +12 -0
  12. package/dist/connectors/types/connector-metadata.d.ts.map +1 -0
  13. package/dist/connectors/types/connector-types.d.ts +34 -0
  14. package/dist/connectors/types/connector-types.d.ts.map +1 -0
  15. package/dist/connectors/types/data-type.d.ts +34 -0
  16. package/dist/connectors/types/data-type.d.ts.map +1 -0
  17. package/dist/connectors/types/events.d.ts +111 -0
  18. package/dist/connectors/types/events.d.ts.map +1 -0
  19. package/dist/connectors/types/index.d.ts +7 -0
  20. package/dist/connectors/types/index.d.ts.map +1 -0
  21. package/dist/connectors/types/local-storage.d.ts +11 -0
  22. package/dist/connectors/types/local-storage.d.ts.map +1 -0
  23. package/dist/connectors/types/target-object.d.ts +14 -0
  24. package/dist/connectors/types/target-object.d.ts.map +1 -0
  25. package/dist/connectors/utils/cache.d.ts +14 -0
  26. package/dist/connectors/utils/cache.d.ts.map +1 -0
  27. package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts +7 -0
  28. package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts.map +1 -0
  29. package/dist/connectors/utils/index.d.ts +4 -0
  30. package/dist/connectors/utils/index.d.ts.map +1 -0
  31. package/dist/connectors/utils/promises.d.ts +8 -0
  32. package/dist/connectors/utils/promises.d.ts.map +1 -0
  33. package/dist/hdwallet/hdwallet.d.ts +58 -0
  34. package/dist/hdwallet/hdwallet.d.ts.map +1 -0
  35. package/dist/hdwallet/index.d.ts +2 -0
  36. package/dist/hdwallet/index.d.ts.map +1 -0
  37. package/dist/index.d.ts +13 -904
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.global.js +520 -391
  40. package/dist/index.global.js.map +1 -1
  41. package/dist/index.js +314 -208
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +316 -208
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/mnemonic/index.d.ts +3 -0
  46. package/dist/mnemonic/index.d.ts.map +1 -0
  47. package/dist/mnemonic/mnemonic.d.ts +85 -0
  48. package/dist/mnemonic/mnemonic.d.ts.map +1 -0
  49. package/dist/mnemonic/utils.d.ts +8 -0
  50. package/dist/mnemonic/utils.d.ts.map +1 -0
  51. package/dist/predicate/index.d.ts +3 -0
  52. package/dist/predicate/index.d.ts.map +1 -0
  53. package/dist/predicate/predicate.d.ts +94 -0
  54. package/dist/predicate/predicate.d.ts.map +1 -0
  55. package/dist/predicate/utils/getPredicateRoot.d.ts +12 -0
  56. package/dist/predicate/utils/getPredicateRoot.d.ts.map +1 -0
  57. package/dist/predicate/utils/index.d.ts +2 -0
  58. package/dist/predicate/utils/index.d.ts.map +1 -0
  59. package/dist/providers/__generated__/operations.d.ts +3477 -0
  60. package/dist/providers/__generated__/operations.d.ts.map +1 -0
  61. package/dist/providers/assets/index.d.ts +5 -0
  62. package/dist/providers/assets/index.d.ts.map +1 -0
  63. package/dist/providers/assets/types.d.ts +36 -0
  64. package/dist/providers/assets/types.d.ts.map +1 -0
  65. package/dist/providers/assets/utils/index.d.ts +4 -0
  66. package/dist/providers/assets/utils/index.d.ts.map +1 -0
  67. package/dist/providers/assets/utils/network.d.ts +33 -0
  68. package/dist/providers/assets/utils/network.d.ts.map +1 -0
  69. package/dist/providers/assets/utils/resolveIconPaths.d.ts +14 -0
  70. package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +1 -0
  71. package/dist/providers/assets/utils/url.d.ts +2 -0
  72. package/dist/providers/assets/utils/url.d.ts.map +1 -0
  73. package/dist/providers/chains.d.ts +11 -0
  74. package/dist/providers/chains.d.ts.map +1 -0
  75. package/dist/providers/coin-quantity.d.ts +21 -0
  76. package/dist/providers/coin-quantity.d.ts.map +1 -0
  77. package/dist/providers/coin.d.ts +15 -0
  78. package/dist/providers/coin.d.ts.map +1 -0
  79. package/dist/providers/fuel-graphql-subscriber.d.ts +23 -0
  80. package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -0
  81. package/dist/providers/index.d.ts +13 -0
  82. package/dist/providers/index.d.ts.map +1 -0
  83. package/dist/providers/memory-cache.d.ts +11 -0
  84. package/dist/providers/memory-cache.d.ts.map +1 -0
  85. package/dist/providers/message.d.ts +60 -0
  86. package/dist/providers/message.d.ts.map +1 -0
  87. package/dist/providers/provider.d.ts +523 -0
  88. package/dist/providers/provider.d.ts.map +1 -0
  89. package/dist/providers/resource.d.ts +37 -0
  90. package/dist/providers/resource.d.ts.map +1 -0
  91. package/dist/providers/transaction-request/create-transaction-request.d.ts +73 -0
  92. package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -0
  93. package/dist/providers/transaction-request/errors.d.ts +25 -0
  94. package/dist/providers/transaction-request/errors.d.ts.map +1 -0
  95. package/dist/providers/transaction-request/hash-transaction.d.ts +9 -0
  96. package/dist/providers/transaction-request/hash-transaction.d.ts.map +1 -0
  97. package/dist/providers/transaction-request/index.d.ts +10 -0
  98. package/dist/providers/transaction-request/index.d.ts.map +1 -0
  99. package/dist/providers/transaction-request/input.d.ts +59 -0
  100. package/dist/providers/transaction-request/input.d.ts.map +1 -0
  101. package/dist/providers/transaction-request/output.d.ts +39 -0
  102. package/dist/providers/transaction-request/output.d.ts.map +1 -0
  103. package/dist/providers/transaction-request/script-transaction-request.d.ts +106 -0
  104. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -0
  105. package/dist/providers/transaction-request/scripts.d.ts +6 -0
  106. package/dist/providers/transaction-request/scripts.d.ts.map +1 -0
  107. package/dist/providers/transaction-request/storage-slot.d.ts +10 -0
  108. package/dist/providers/transaction-request/storage-slot.d.ts.map +1 -0
  109. package/dist/providers/transaction-request/transaction-request.d.ts +278 -0
  110. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -0
  111. package/dist/providers/transaction-request/types.d.ts +10 -0
  112. package/dist/providers/transaction-request/types.d.ts.map +1 -0
  113. package/dist/providers/transaction-request/utils.d.ts +4 -0
  114. package/dist/providers/transaction-request/utils.d.ts.map +1 -0
  115. package/dist/providers/transaction-request/witness.d.ts +5 -0
  116. package/dist/providers/transaction-request/witness.d.ts.map +1 -0
  117. package/dist/providers/transaction-response/getDecodedLogs.d.ts +5 -0
  118. package/dist/providers/transaction-response/getDecodedLogs.d.ts.map +1 -0
  119. package/dist/providers/transaction-response/index.d.ts +3 -0
  120. package/dist/providers/transaction-response/index.d.ts.map +1 -0
  121. package/dist/providers/transaction-response/transaction-response.d.ts +106 -0
  122. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -0
  123. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +20 -0
  124. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -0
  125. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +21 -0
  126. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +1 -0
  127. package/dist/providers/transaction-summary/call.d.ts +18 -0
  128. package/dist/providers/transaction-summary/call.d.ts.map +1 -0
  129. package/dist/providers/transaction-summary/get-transaction-summary.d.ts +31 -0
  130. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -0
  131. package/dist/providers/transaction-summary/index.d.ts +10 -0
  132. package/dist/providers/transaction-summary/index.d.ts.map +1 -0
  133. package/dist/providers/transaction-summary/input.d.ts +21 -0
  134. package/dist/providers/transaction-summary/input.d.ts.map +1 -0
  135. package/dist/providers/transaction-summary/operations.d.ts +40 -0
  136. package/dist/providers/transaction-summary/operations.d.ts.map +1 -0
  137. package/dist/providers/transaction-summary/output.d.ts +15 -0
  138. package/dist/providers/transaction-summary/output.d.ts.map +1 -0
  139. package/dist/providers/transaction-summary/receipt.d.ts +7 -0
  140. package/dist/providers/transaction-summary/receipt.d.ts.map +1 -0
  141. package/dist/providers/transaction-summary/status.d.ts +9 -0
  142. package/dist/providers/transaction-summary/status.d.ts.map +1 -0
  143. package/dist/providers/transaction-summary/types.d.ts +146 -0
  144. package/dist/providers/transaction-summary/types.d.ts.map +1 -0
  145. package/dist/providers/utils/auto-retry-fetch.d.ts +36 -0
  146. package/dist/providers/utils/auto-retry-fetch.d.ts.map +1 -0
  147. package/dist/providers/utils/block-explorer.d.ts +14 -0
  148. package/dist/providers/utils/block-explorer.d.ts.map +1 -0
  149. package/dist/providers/utils/gas.d.ts +38 -0
  150. package/dist/providers/utils/gas.d.ts.map +1 -0
  151. package/dist/providers/utils/index.d.ts +6 -0
  152. package/dist/providers/utils/index.d.ts.map +1 -0
  153. package/dist/providers/utils/json.d.ts +7 -0
  154. package/dist/providers/utils/json.d.ts.map +1 -0
  155. package/dist/providers/utils/merge-quantities.d.ts +3 -0
  156. package/dist/providers/utils/merge-quantities.d.ts.map +1 -0
  157. package/dist/providers/utils/receipts.d.ts +10 -0
  158. package/dist/providers/utils/receipts.d.ts.map +1 -0
  159. package/dist/providers/utils/sleep.d.ts +3 -0
  160. package/dist/providers/utils/sleep.d.ts.map +1 -0
  161. package/dist/signer/index.d.ts +2 -0
  162. package/dist/signer/index.d.ts.map +1 -0
  163. package/dist/signer/signer.d.ts +64 -0
  164. package/dist/signer/signer.d.ts.map +1 -0
  165. package/dist/test-utils/generateTestWallet.d.ts +4 -0
  166. package/dist/test-utils/generateTestWallet.d.ts.map +1 -0
  167. package/dist/test-utils/index.d.ts +4 -0
  168. package/dist/test-utils/index.d.ts.map +1 -0
  169. package/dist/{test-utils.d.ts → test-utils/launchNode.d.ts} +12 -24
  170. package/dist/test-utils/launchNode.d.ts.map +1 -0
  171. package/dist/test-utils/seedTestWallet.d.ts +4 -0
  172. package/dist/test-utils/seedTestWallet.d.ts.map +1 -0
  173. package/dist/test-utils.global.js +386 -295
  174. package/dist/test-utils.global.js.map +1 -1
  175. package/dist/test-utils.js +179 -108
  176. package/dist/test-utils.js.map +1 -1
  177. package/dist/test-utils.mjs +181 -108
  178. package/dist/test-utils.mjs.map +1 -1
  179. package/dist/utils/formatTransferToContractScriptData.d.ts +14 -0
  180. package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -0
  181. package/dist/wallet/base-wallet-unlocked.d.ts +73 -0
  182. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -0
  183. package/dist/wallet/index.d.ts +4 -0
  184. package/dist/wallet/index.d.ts.map +1 -0
  185. package/dist/wallet/keystore-wallet.d.ts +38 -0
  186. package/dist/wallet/keystore-wallet.d.ts.map +1 -0
  187. package/dist/wallet/wallet.d.ts +68 -0
  188. package/dist/wallet/wallet.d.ts.map +1 -0
  189. package/dist/wallet/wallets.d.ts +76 -0
  190. package/dist/wallet/wallets.d.ts.map +1 -0
  191. package/dist/wallet-manager/index.d.ts +6 -0
  192. package/dist/wallet-manager/index.d.ts.map +1 -0
  193. package/dist/wallet-manager/storages/memory-storage.d.ts +9 -0
  194. package/dist/wallet-manager/storages/memory-storage.d.ts.map +1 -0
  195. package/dist/wallet-manager/types.d.ts +42 -0
  196. package/dist/wallet-manager/types.d.ts.map +1 -0
  197. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +29 -0
  198. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -0
  199. package/dist/wallet-manager/vaults/privatekey-vault.d.ts +29 -0
  200. package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -0
  201. package/dist/wallet-manager/wallet-manager.d.ts +104 -0
  202. package/dist/wallet-manager/wallet-manager.d.ts.map +1 -0
  203. package/dist/wordlists/index.d.ts +5 -0
  204. package/dist/wordlists/index.d.ts.map +1 -0
  205. package/dist/wordlists/words/english.d.ts +2 -0
  206. package/dist/wordlists/words/english.d.ts.map +1 -0
  207. package/package.json +25 -21
  208. package/dist/account-E9nGNf5X.d.mts +0 -3837
  209. package/dist/account-E9nGNf5X.d.ts +0 -3837
  210. package/dist/configs.d.mts +0 -3
  211. package/dist/index.d.mts +0 -904
  212. package/dist/test-utils.d.mts +0 -66
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Stringify Transaction to a JSON object
3
+ * compatible with the Transaction class constructor.
4
+ */
5
+ /** @hidden */
6
+ export declare function normalizeJSON(root: any): any;
7
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/json.ts"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,cAAc;AACd,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,OAKtC"}
@@ -0,0 +1,3 @@
1
+ import type { CoinQuantity } from '../coin-quantity';
2
+ export declare const mergeQuantities: (arr1: CoinQuantity[], arr2: CoinQuantity[]) => CoinQuantity[];
3
+ //# sourceMappingURL=merge-quantities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-quantities.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/merge-quantities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,eAAe,SAAU,YAAY,EAAE,QAAQ,YAAY,EAAE,KAAG,YAAY,EAiBxF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ReceiptBurn, ReceiptCall, ReceiptLog, ReceiptLogData, ReceiptMessageOut, ReceiptMint, ReceiptPanic, ReceiptReturn, ReceiptReturnData, ReceiptRevert, ReceiptScriptResult, ReceiptTransfer, ReceiptTransferOut } from '@fuel-ts/transactions';
2
+ import type { GqlReceiptFragmentFragment } from '../__generated__/operations';
3
+ import type { TransactionResultReceipt } from '../transaction-response';
4
+ /** @hidden */
5
+ export declare const getReceiptsWithMissingData: (receipts: Array<TransactionResultReceipt>) => {
6
+ missingOutputVariables: Array<ReceiptRevert>;
7
+ missingOutputContractIds: Array<ReceiptPanic>;
8
+ };
9
+ export declare function assembleReceiptByType(receipt: GqlReceiptFragmentFragment): ReceiptCall | ReceiptReturn | ReceiptReturnData | ReceiptPanic | ReceiptRevert | ReceiptLog | ReceiptLogData | ReceiptTransfer | ReceiptTransferOut | ReceiptScriptResult | ReceiptMessageOut | ReceiptMint | ReceiptBurn;
10
+ //# sourceMappingURL=receipts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipts.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/receipts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAgBxE,cAAc;AACd,eAAO,MAAM,0BAA0B,aAAc,MAAM,wBAAwB,CAAC;4BAExD,MAAM,aAAa,CAAC;8BAClB,MAAM,YAAY,CAAC;CAe9C,CAAC;AAIJ,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,0BAA0B,6NA+MxE"}
@@ -0,0 +1,3 @@
1
+ /** @hidden */
2
+ export declare function sleep(time: number): Promise<unknown>;
3
+ //# sourceMappingURL=sleep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/sleep.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,oBAMjC"}
@@ -0,0 +1,2 @@
1
+ export * from './signer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { Address } from '@fuel-ts/address';
2
+ import type { BytesLike } from '@fuel-ts/interfaces';
3
+ export declare class Signer {
4
+ readonly address: Address;
5
+ readonly publicKey: string;
6
+ readonly compressedPublicKey: string;
7
+ readonly privateKey: string;
8
+ /**
9
+ * Create a Signer instance from a given private key
10
+ *
11
+ * @param privateKey - The private key to use for signing
12
+ * @returns A new Signer instance
13
+ */
14
+ constructor(privateKey: BytesLike);
15
+ /**
16
+ * Sign data using the Signer instance
17
+ *
18
+ * Signature is a 64 byte array of the concatenated r and s values with the compressed recoveryParam byte.
19
+ * @ignore
20
+ * [Read more](FuelLabs/fuel-specs/specs/protocol/cryptographic_primitives.md#public-key-cryptography)
21
+ *
22
+ * @param data - The data to be sign
23
+ * @returns hashed signature
24
+ */
25
+ sign(data: BytesLike): string;
26
+ /**
27
+ * Add point on the current elliptic curve
28
+ *
29
+ * @param point - Point to add on the curve
30
+ * @returns compressed point on the curve
31
+ */
32
+ addPoint(point: BytesLike): string;
33
+ /**
34
+ * Recover the public key from a signature performed with [`sign`](#sign).
35
+ *
36
+ * @param data - Data
37
+ * @param signature - hashed signature
38
+ * @returns public key from signature from the
39
+ */
40
+ static recoverPublicKey(data: BytesLike, signature: BytesLike): string;
41
+ /**
42
+ * Recover the address from a signature performed with [`sign`](#sign).
43
+ *
44
+ * @param data - Data
45
+ * @param signature - Signature
46
+ * @returns Address from signature
47
+ */
48
+ static recoverAddress(data: BytesLike, signature: BytesLike): Address;
49
+ /**
50
+ * Generate a random privateKey
51
+ *
52
+ * @param entropy - Adds extra entropy to generate the privateKey
53
+ * @returns random 32-byte hashed
54
+ */
55
+ static generatePrivateKey(entropy?: BytesLike): string | Uint8Array;
56
+ /**
57
+ * Extended publicKey from a compact publicKey
58
+ *
59
+ * @param publicKey - Compact publicKey
60
+ * @returns extended publicKey
61
+ */
62
+ static extendPublicKey(publicKey: BytesLike): string;
63
+ }
64
+ //# sourceMappingURL=signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../src/signer/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKrD,qBAAa,MAAM;IACjB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IAErC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B;;;;;OAKG;gBACS,UAAU,EAAE,SAAS;IAoBjC;;;;;;;;;OASG;IACH,IAAI,CAAC,IAAI,EAAE,SAAS;IAYpB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS;IAOzB;;;;;;OAMG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM;IAiBtE;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO;IAIrE;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,SAAS;IAI7C;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,SAAS;CAI5C"}
@@ -0,0 +1,4 @@
1
+ import type { Provider, CoinQuantityLike } from '../providers';
2
+ import type { WalletUnlocked } from '../wallet';
3
+ export declare const generateTestWallet: (provider: Provider, quantities?: CoinQuantityLike[]) => Promise<WalletUnlocked>;
4
+ //# sourceMappingURL=generateTestWallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateTestWallet.d.ts","sourceRoot":"","sources":["../../src/test-utils/generateTestWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,kBAAkB,aACnB,QAAQ,eACL,gBAAgB,EAAE,KAC9B,QAAQ,cAAc,CAMxB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './generateTestWallet';
2
+ export * from './seedTestWallet';
3
+ export * from './launchNode';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -1,19 +1,8 @@
1
- import { P as Provider, Q as CoinQuantityLike, z as WalletUnlocked, D as Account } from './account-E9nGNf5X.js';
2
- import { ChildProcessWithoutNullStreams } from 'child_process';
3
- import '@fuel-ts/interfaces';
4
- import '@fuel-ts/address';
5
- import '@fuel-ts/math';
6
- import '@fuel-ts/transactions';
7
- import 'ethers';
8
- import 'graphql';
9
- import '@fuel-ts/abi-coder';
10
- import 'events';
11
-
12
- declare const generateTestWallet: (provider: Provider, quantities?: CoinQuantityLike[]) => Promise<WalletUnlocked>;
13
-
14
- declare const seedTestWallet: (wallet: Account, quantities: CoinQuantityLike[]) => Promise<void>;
15
-
16
- type LaunchNodeOptions = {
1
+ /// <reference types="node" />
2
+ import type { ChildProcessWithoutNullStreams } from 'child_process';
3
+ import { Provider } from '../providers';
4
+ import type { WalletUnlocked } from '../wallet';
5
+ export type LaunchNodeOptions = {
17
6
  ip?: string;
18
7
  port?: string;
19
8
  args?: string[];
@@ -22,13 +11,13 @@ type LaunchNodeOptions = {
22
11
  debugEnabled?: boolean;
23
12
  basePath?: string;
24
13
  };
25
- type LaunchNodeResult = Promise<{
14
+ export type LaunchNodeResult = Promise<{
26
15
  cleanup: () => void;
27
16
  ip: string;
28
17
  port: string;
29
18
  chainConfigPath: string;
30
19
  }>;
31
- type KillNodeParams = {
20
+ export type KillNodeParams = {
32
21
  child: ChildProcessWithoutNullStreams;
33
22
  configPath: string;
34
23
  killFn: (pid: number) => void;
@@ -36,7 +25,7 @@ type KillNodeParams = {
36
25
  isDead: boolean;
37
26
  };
38
27
  };
39
- declare const killNode: (params: KillNodeParams) => void;
28
+ export declare const killNode: (params: KillNodeParams) => void;
40
29
  /**
41
30
  * Launches a fuel-core node.
42
31
  * @param ip - the ip to bind to. (optional, defaults to 0.0.0.0)
@@ -47,8 +36,8 @@ declare const killNode: (params: KillNodeParams) => void;
47
36
  * @param debugEnabled - whether the node should log debug messages. (optional, defaults to false)
48
37
  * @param basePath - the base path to use for the temporary folder. (optional, defaults to os.tmpdir())
49
38
  * */
50
- declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
51
- type LaunchNodeAndGetWalletsResult = Promise<{
39
+ export declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
40
+ export type LaunchNodeAndGetWalletsResult = Promise<{
52
41
  wallets: WalletUnlocked[];
53
42
  stop: () => void;
54
43
  provider: Provider;
@@ -58,9 +47,8 @@ type LaunchNodeAndGetWalletsResult = Promise<{
58
47
  * @param launchNodeOptions - options to launch the fuel-core node with.
59
48
  * @param walletCount - the number of wallets to generate. (optional, defaults to 10)
60
49
  * */
61
- declare const launchNodeAndGetWallets: ({ launchNodeOptions, walletCount, }?: {
50
+ export declare const launchNodeAndGetWallets: ({ launchNodeOptions, walletCount, }?: {
62
51
  launchNodeOptions?: Partial<LaunchNodeOptions> | undefined;
63
52
  walletCount?: number | undefined;
64
53
  }) => LaunchNodeAndGetWalletsResult;
65
-
66
- export { type KillNodeParams, type LaunchNodeAndGetWalletsResult, type LaunchNodeOptions, type LaunchNodeResult, generateTestWallet, killNode, launchNode, launchNodeAndGetWallets, seedTestWallet };
54
+ //# sourceMappingURL=launchNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launchNode.d.ts","sourceRoot":"","sources":["../../src/test-utils/launchNode.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AASpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAuBhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,8BAA8B,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE;QACL,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,cAAc,SAiB9C,CAAC;AAGF;;;;;;;;;KASK;AAEL,eAAO,MAAM,UAAU,mFAQpB,iBAAiB,qBAwJhB,CAAC;AAWL,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC;IAClD,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC,CAAC;AAEH;;;;KAIK;AACL,eAAO,MAAM,uBAAuB;;;mCAiBnC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Account } from '../account';
2
+ import type { CoinQuantityLike } from '../providers';
3
+ export declare const seedTestWallet: (wallet: Account, quantities: CoinQuantityLike[]) => Promise<void>;
4
+ //# sourceMappingURL=seedTestWallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seedTestWallet.d.ts","sourceRoot":"","sources":["../../src/test-utils/seedTestWallet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,eAAO,MAAM,cAAc,WAAkB,OAAO,cAAc,gBAAgB,EAAE,kBAuBnF,CAAC"}