@fuel-ts/account 0.82.0 → 0.84.0

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 (76) hide show
  1. package/README.md +18 -15
  2. package/dist/account.d.ts +8 -7
  3. package/dist/account.d.ts.map +1 -1
  4. package/dist/configs.d.ts.map +1 -1
  5. package/dist/configs.global.js +1 -1
  6. package/dist/configs.global.js.map +1 -1
  7. package/dist/configs.js +1 -1
  8. package/dist/configs.js.map +1 -1
  9. package/dist/configs.mjs +1 -1
  10. package/dist/configs.mjs.map +1 -1
  11. package/dist/index.global.js +2445 -2185
  12. package/dist/index.global.js.map +1 -1
  13. package/dist/index.js +1074 -667
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +909 -505
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/predicate/predicate.d.ts +12 -24
  18. package/dist/predicate/predicate.d.ts.map +1 -1
  19. package/dist/providers/__generated__/operations.d.ts +950 -376
  20. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  21. package/dist/providers/coin-quantity.d.ts +3 -3
  22. package/dist/providers/coin-quantity.d.ts.map +1 -1
  23. package/dist/providers/coin.d.ts +4 -2
  24. package/dist/providers/coin.d.ts.map +1 -1
  25. package/dist/providers/message.d.ts +9 -3
  26. package/dist/providers/message.d.ts.map +1 -1
  27. package/dist/providers/provider.d.ts +72 -54
  28. package/dist/providers/provider.d.ts.map +1 -1
  29. package/dist/providers/resource.d.ts +0 -1
  30. package/dist/providers/resource.d.ts.map +1 -1
  31. package/dist/providers/transaction-request/create-transaction-request.d.ts +1 -1
  32. package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
  33. package/dist/providers/transaction-request/helpers.d.ts +8 -0
  34. package/dist/providers/transaction-request/helpers.d.ts.map +1 -0
  35. package/dist/providers/transaction-request/input.d.ts +2 -2
  36. package/dist/providers/transaction-request/input.d.ts.map +1 -1
  37. package/dist/providers/transaction-request/script-transaction-request.d.ts +2 -3
  38. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  39. package/dist/providers/transaction-request/transaction-request.d.ts +17 -38
  40. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  41. package/dist/providers/transaction-request/utils.d.ts +4 -0
  42. package/dist/providers/transaction-request/utils.d.ts.map +1 -1
  43. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  44. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +4 -2
  45. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  46. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +20 -0
  47. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -0
  48. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  49. package/dist/providers/transaction-summary/index.d.ts +1 -1
  50. package/dist/providers/transaction-summary/index.d.ts.map +1 -1
  51. package/dist/providers/transaction-summary/operations.d.ts +4 -0
  52. package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
  53. package/dist/providers/transaction-summary/status.d.ts +5 -1
  54. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  55. package/dist/providers/transaction-summary/types.d.ts +6 -1
  56. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  57. package/dist/providers/utils/gas.d.ts +14 -7
  58. package/dist/providers/utils/gas.d.ts.map +1 -1
  59. package/dist/providers/utils/merge-quantities.d.ts +1 -1
  60. package/dist/providers/utils/merge-quantities.d.ts.map +1 -1
  61. package/dist/test-utils/launchNode.d.ts +1 -1
  62. package/dist/test-utils/launchNode.d.ts.map +1 -1
  63. package/dist/test-utils/resources.d.ts +4 -0
  64. package/dist/test-utils/resources.d.ts.map +1 -0
  65. package/dist/test-utils/transactionRequest.d.ts +5 -0
  66. package/dist/test-utils/transactionRequest.d.ts.map +1 -0
  67. package/dist/test-utils.global.js +3171 -2680
  68. package/dist/test-utils.global.js.map +1 -1
  69. package/dist/test-utils.js +1046 -655
  70. package/dist/test-utils.js.map +1 -1
  71. package/dist/test-utils.mjs +896 -505
  72. package/dist/test-utils.mjs.map +1 -1
  73. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
  74. package/package.json +18 -18
  75. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +0 -21
  76. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # `@fuel-ts/wallet`
1
+ # `@fuel-ts/account`
2
2
 
3
- **@fuel-ts/wallet** is a sub-module for interacting with **Fuel**.
3
+ **@fuel-ts/account** is a sub-module for interacting with **Fuel**.
4
4
 
5
- This module contains the class to manage a private key and signing for a standard Externally Owned Account (EOA)
5
+ This module contains the class to manage a private key and signing for a standard Externally Owned Account (EOA).
6
6
 
7
- # Table of contents
7
+ ## Table of contents
8
8
 
9
9
  - [Documentation](#documentation)
10
10
  - [Usage](#usage)
@@ -23,9 +23,9 @@ See [Fuels-ts Documentation](https://docs.fuel.network/docs/fuels-ts/wallets/)
23
23
  ### Installation
24
24
 
25
25
  ```sh
26
- pnpm add @fuel-ts/wallet
26
+ pnpm add @fuel-ts/account
27
27
  # or
28
- npm add @fuel-ts/wallet
28
+ npm add @fuel-ts/account
29
29
  ```
30
30
 
31
31
  ### Full SDK Installation
@@ -38,33 +38,36 @@ pnpm add fuels
38
38
  npm add fuels
39
39
  ```
40
40
 
41
- # Test Utilities
41
+ ## Test Utilities
42
42
 
43
43
  These test utilities are exported to assist in testing apps using Fuels.
44
44
 
45
45
  ```ts
46
46
  import { bn } from "@fuel-ts/math";
47
- import { BaseAssetId } from "fuels";
48
- import { seedTestWallet, generateTestWallet } from "@account/test-utils";
47
+ import {
48
+ seedTestWallet,
49
+ generateTestWallet,
50
+ } from "@fuel-ts/account/test-utils";
49
51
 
50
- const provider = await Provider.create("http://127.0.0.1:4000/graphql");
52
+ const provider = await Provider.create("http://127.0.0.1:4000/v1/graphql");
51
53
 
52
54
  // seeding
53
55
  const wallet = Wallet.fromPrivateKey("0x...", provider);
54
- seedTestWallet(wallet, [{ assetId: BaseAssetId, amount: bn(100_000) }]);
56
+ const baseAssetId = provider.getBaseAssetId();
57
+ seedTestWallet(wallet, [{ assetId: baseAssetId, amount: bn(100_000) }]);
55
58
 
56
59
  // generating
57
- const wallet = await generateTestWallet(provider, [[1_000, BaseAssetId]]);
60
+ const wallet = await generateTestWallet(provider, [[1_000, baseAssetId]]);
58
61
  ```
59
62
 
60
63
  ## Contributing
61
64
 
62
- In order to contribute to `@fuel-ts/wallet`, please see the main [fuels-ts](https://github.com/FuelLabs/fuels-ts) monorepo.
65
+ In order to contribute to `@fuel-ts/account`, please see the main [fuels-ts](https://github.com/FuelLabs/fuels-ts) monorepo.
63
66
 
64
67
  ## Changelog
65
68
 
66
- The `@fuel-ts/wallet` changelog can be found at [CHANGELOG](./CHANGELOG.md).
69
+ The `@fuel-ts/account` changelog can be found at [CHANGELOG](./CHANGELOG.md).
67
70
 
68
71
  ## License
69
72
 
70
- The primary license for `@fuel-ts/wallet` is `Apache 2.0`, see [LICENSE](./LICENSE).
73
+ The primary license for `@fuel-ts/account` is `Apache 2.0`, see [LICENSE](./LICENSE).
package/dist/account.d.ts CHANGED
@@ -2,8 +2,9 @@ import { AbstractAccount } from '@fuel-ts/interfaces';
2
2
  import type { AbstractAddress, BytesLike } from '@fuel-ts/interfaces';
3
3
  import type { BigNumberish, BN } from '@fuel-ts/math';
4
4
  import type { FuelConnector } from './connectors';
5
- import type { TransactionRequestLike, CallResult, TransactionRequest, Coin, CoinQuantityLike, CoinQuantity, Message, Resource, ExcludeResourcesOption, Provider, ScriptTransactionRequestLike, ProviderSendTxParams, TransactionResponse, EstimateTransactionParams } from './providers';
6
- export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'gasPrice' | 'maturity' | 'maxFee' | 'witnessLimit'>;
5
+ import type { TransactionRequestLike, CallResult, TransactionRequest, Coin, CoinQuantityLike, CoinQuantity, Message, Resource, ExcludeResourcesOption, Provider, ScriptTransactionRequestLike, ProviderSendTxParams, TransactionResponse, EstimateTransactionParams, TransactionCost } from './providers';
6
+ export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'tip' | 'maturity' | 'maxFee' | 'witnessLimit'>;
7
+ export type EstimatedTxParams = Pick<TransactionCost, 'maxFee' | 'estimatedPredicates' | 'addedSignatures' | 'requiredQuantities'>;
7
8
  /**
8
9
  * `Account` provides an abstraction for interacting with accounts or wallets on the network.
9
10
  */
@@ -83,18 +84,18 @@ export declare class Account extends AbstractAccount {
83
84
  * Adds resources to the transaction enough to fund it.
84
85
  *
85
86
  * @param request - The transaction request.
86
- * @param coinQuantities - The coin quantities required to execute the transaction.
87
+ * @param requiredQuantities - The coin quantities required to execute the transaction.
87
88
  * @param fee - The estimated transaction fee.
88
89
  * @returns A promise that resolves when the resources are added to the transaction.
89
90
  */
90
- fund<T extends TransactionRequest>(request: T, coinQuantities: CoinQuantity[], fee: BN): Promise<void>;
91
+ fund<T extends TransactionRequest>(request: T, params: EstimatedTxParams): Promise<T>;
91
92
  /**
92
93
  * A helper that creates a transfer transaction request and returns it.
93
94
  *
94
95
  * @param destination - The address of the destination.
95
96
  * @param amount - The amount of coins to transfer.
96
97
  * @param assetId - The asset ID of the coins to transfer.
97
- * @param txParams - The transaction parameters (gasLimit, gasPrice, maturity).
98
+ * @param txParams - The transaction parameters (gasLimit, tip, maturity, maxFee, witnessLimit).
98
99
  * @returns A promise that resolves to the prepared transaction request.
99
100
  */
100
101
  createTransfer(
@@ -112,7 +113,7 @@ export declare class Account extends AbstractAccount {
112
113
  * @param destination - The address of the destination.
113
114
  * @param amount - The amount of coins to transfer.
114
115
  * @param assetId - The asset ID of the coins to transfer.
115
- * @param txParams - The transaction parameters (gasLimit, gasPrice, maturity).
116
+ * @param txParams - The transaction parameters (gasLimit, maturity).
116
117
  * @returns A promise that resolves to the transaction response.
117
118
  */
118
119
  transfer(
@@ -179,6 +180,6 @@ export declare class Account extends AbstractAccount {
179
180
  * @returns A promise that resolves to the call result.
180
181
  */
181
182
  simulateTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies }?: EstimateTransactionParams): Promise<CallResult>;
182
- private validateGas;
183
+ private validateGasLimitAndMaxFee;
183
184
  }
184
185
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAItD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,sBAAsB,EACtB,QAAQ,EACR,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AASrB,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,4BAA4B,EAC5B,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CACjE,CAAC;AAEF;;GAEG;AACH,qBAAa,OAAQ,SAAQ,eAAe;IAC1C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,SAAS,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC;IAE/B,SAAS,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;IAErC;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,GAAG,eAAe,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,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MAAM,GAAG,eAAe;IACnC,2BAA2B;IAC3B,MAAM,EAAE,YAAY;IACpB,gBAAgB;IAChB,QAAQ,GAAE,YAAiB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IAqCzB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOnD;;;;;OAKG;IACG,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUtF;;;;;OAKG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,cAAc,EAAE,GAAE,oBAAyB,GAC3E,OAAO,CAAC,mBAAmB,CAAC;IAgB/B;;;;;OAKG;IACG,mBAAmB,CACvB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAE,yBAA8B,GAChE,OAAO,CAAC,UAAU,CAAC;IAQtB,OAAO,CAAC,yBAAyB;CAuBlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../src/configs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,MAGM,CAAC;AAEtC,eAAO,MAAM,uBAAuB,EAAE,MAA8C,CAAC"}
1
+ {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../src/configs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAE,MAGS,CAAC;AAEzC,eAAO,MAAM,uBAAuB,EAAE,MAA8C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  (() => {
3
3
  // src/configs.ts
4
- var FUEL_NETWORK_URL = typeof process !== "undefined" ? process?.env?.FUEL_NETWORK_URL || "http://127.0.0.1:4000/graphql" : "http://127.0.0.1:4000/graphql";
4
+ var FUEL_NETWORK_URL = typeof process !== "undefined" ? process?.env?.FUEL_NETWORK_URL || "http://127.0.0.1:4000/v1/graphql" : "http://127.0.0.1:4000/v1/graphql";
5
5
  var FUEL_BETA_5_NETWORK_URL = "https://beta-5.fuel.network/graphql";
6
6
  })();
7
7
  //# sourceMappingURL=configs.global.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const FUEL_NETWORK_URL: string =\n typeof process !== 'undefined'\n ? process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/graphql'\n : 'http://127.0.0.1:4000/graphql';\n\nexport const FUEL_BETA_5_NETWORK_URL: string = 'https://beta-5.fuel.network/graphql';\n"],"mappings":";;;AAAO,MAAM,mBACX,OAAO,YAAY,cACf,SAAS,KAAK,oBAAoB,kCAClC;AAEC,MAAM,0BAAkC;","names":[]}
1
+ {"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const FUEL_NETWORK_URL: string =\n typeof process !== 'undefined'\n ? process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/v1/graphql'\n : 'http://127.0.0.1:4000/v1/graphql';\n\nexport const FUEL_BETA_5_NETWORK_URL: string = 'https://beta-5.fuel.network/graphql';\n"],"mappings":";;;AAAO,MAAM,mBACX,OAAO,YAAY,cACf,SAAS,KAAK,oBAAoB,qCAClC;AAEC,MAAM,0BAAkC;","names":[]}
package/dist/configs.js CHANGED
@@ -24,7 +24,7 @@ __export(configs_exports, {
24
24
  FUEL_NETWORK_URL: () => FUEL_NETWORK_URL
25
25
  });
26
26
  module.exports = __toCommonJS(configs_exports);
27
- var FUEL_NETWORK_URL = typeof process !== "undefined" ? process?.env?.FUEL_NETWORK_URL || "http://127.0.0.1:4000/graphql" : "http://127.0.0.1:4000/graphql";
27
+ var FUEL_NETWORK_URL = typeof process !== "undefined" ? process?.env?.FUEL_NETWORK_URL || "http://127.0.0.1:4000/v1/graphql" : "http://127.0.0.1:4000/v1/graphql";
28
28
  var FUEL_BETA_5_NETWORK_URL = "https://beta-5.fuel.network/graphql";
29
29
  // Annotate the CommonJS export names for ESM import in node:
30
30
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const FUEL_NETWORK_URL: string =\n typeof process !== 'undefined'\n ? process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/graphql'\n : 'http://127.0.0.1:4000/graphql';\n\nexport const FUEL_BETA_5_NETWORK_URL: string = 'https://beta-5.fuel.network/graphql';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBACX,OAAO,YAAY,cACf,SAAS,KAAK,oBAAoB,kCAClC;AAEC,IAAM,0BAAkC;","names":[]}
1
+ {"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const FUEL_NETWORK_URL: string =\n typeof process !== 'undefined'\n ? process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/v1/graphql'\n : 'http://127.0.0.1:4000/v1/graphql';\n\nexport const FUEL_BETA_5_NETWORK_URL: string = 'https://beta-5.fuel.network/graphql';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBACX,OAAO,YAAY,cACf,SAAS,KAAK,oBAAoB,qCAClC;AAEC,IAAM,0BAAkC;","names":[]}
package/dist/configs.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/configs.ts
2
- var FUEL_NETWORK_URL = typeof process !== "undefined" ? process?.env?.FUEL_NETWORK_URL || "http://127.0.0.1:4000/graphql" : "http://127.0.0.1:4000/graphql";
2
+ var FUEL_NETWORK_URL = typeof process !== "undefined" ? process?.env?.FUEL_NETWORK_URL || "http://127.0.0.1:4000/v1/graphql" : "http://127.0.0.1:4000/v1/graphql";
3
3
  var FUEL_BETA_5_NETWORK_URL = "https://beta-5.fuel.network/graphql";
4
4
  export {
5
5
  FUEL_BETA_5_NETWORK_URL,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const FUEL_NETWORK_URL: string =\n typeof process !== 'undefined'\n ? process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/graphql'\n : 'http://127.0.0.1:4000/graphql';\n\nexport const FUEL_BETA_5_NETWORK_URL: string = 'https://beta-5.fuel.network/graphql';\n"],"mappings":";AAAO,IAAM,mBACX,OAAO,YAAY,cACf,SAAS,KAAK,oBAAoB,kCAClC;AAEC,IAAM,0BAAkC;","names":[]}
1
+ {"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const FUEL_NETWORK_URL: string =\n typeof process !== 'undefined'\n ? process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/v1/graphql'\n : 'http://127.0.0.1:4000/v1/graphql';\n\nexport const FUEL_BETA_5_NETWORK_URL: string = 'https://beta-5.fuel.network/graphql';\n"],"mappings":";AAAO,IAAM,mBACX,OAAO,YAAY,cACf,SAAS,KAAK,oBAAoB,qCAClC;AAEC,IAAM,0BAAkC;","names":[]}