@fuel-ts/account 0.0.0-rc-2224-20240503155836 → 0.0.0-rc-2037-20240504194803

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 (53) hide show
  1. package/dist/index.global.js +1357 -485
  2. package/dist/index.global.js.map +1 -1
  3. package/dist/index.js +497 -334
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +394 -240
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/predicate/predicate.d.ts +9 -2
  8. package/dist/predicate/predicate.d.ts.map +1 -1
  9. package/dist/providers/__generated__/operations.d.ts +186 -80
  10. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  11. package/dist/providers/message.d.ts +2 -2
  12. package/dist/providers/message.d.ts.map +1 -1
  13. package/dist/providers/provider.d.ts +24 -21
  14. package/dist/providers/provider.d.ts.map +1 -1
  15. package/dist/providers/transaction-request/helpers.d.ts +4 -0
  16. package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
  17. package/dist/providers/transaction-request/index.d.ts +1 -0
  18. package/dist/providers/transaction-request/index.d.ts.map +1 -1
  19. package/dist/providers/transaction-request/script-transaction-request.d.ts +2 -3
  20. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  21. package/dist/providers/transaction-request/transaction-request.d.ts +4 -3
  22. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  23. package/dist/providers/transaction-request/utils.d.ts +0 -4
  24. package/dist/providers/transaction-request/utils.d.ts.map +1 -1
  25. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +2 -2
  26. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  27. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +20 -0
  28. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -0
  29. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  30. package/dist/providers/transaction-summary/index.d.ts +1 -1
  31. package/dist/providers/transaction-summary/index.d.ts.map +1 -1
  32. package/dist/providers/transaction-summary/operations.d.ts +4 -0
  33. package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
  34. package/dist/providers/transaction-summary/status.d.ts +5 -1
  35. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  36. package/dist/providers/transaction-summary/types.d.ts +6 -1
  37. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  38. package/dist/providers/utils/gas.d.ts +6 -5
  39. package/dist/providers/utils/gas.d.ts.map +1 -1
  40. package/dist/test-utils/launchNode.d.ts.map +1 -1
  41. package/dist/test-utils/seedTestWallet.d.ts +1 -1
  42. package/dist/test-utils/seedTestWallet.d.ts.map +1 -1
  43. package/dist/test-utils.global.js +1320 -496
  44. package/dist/test-utils.global.js.map +1 -1
  45. package/dist/test-utils.js +422 -326
  46. package/dist/test-utils.js.map +1 -1
  47. package/dist/test-utils.mjs +334 -238
  48. package/dist/test-utils.mjs.map +1 -1
  49. package/dist/wallet/base-wallet-unlocked.d.ts +2 -2
  50. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
  51. package/package.json +16 -16
  52. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +0 -22
  53. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import type { BytesLike } from '@fuel-ts/interfaces';
2
2
  import { Account } from '../account';
3
- import type { TransactionResponse, TransactionRequestLike, CallResult, Provider, ProviderSendTxParams, EstimateTransactionParams } from '../providers';
3
+ import type { TransactionResponse, TransactionRequestLike, CallResult, Provider, ProviderSendTxParams, EstimateTransactionParams, TransactionRequest } from '../providers';
4
4
  import { Signer } from '../signer';
5
5
  /**
6
6
  * `BaseWalletUnlocked` provides the base functionalities for an unlocked wallet.
@@ -53,7 +53,7 @@ export declare class BaseWalletUnlocked extends Account {
53
53
  * @param transactionRequestLike - The transaction request to populate.
54
54
  * @returns The populated transaction request.
55
55
  */
56
- populateTransactionWitnessesSignature(transactionRequestLike: TransactionRequestLike): Promise<import("../providers").TransactionRequest>;
56
+ populateTransactionWitnessesSignature<T extends TransactionRequest>(transactionRequestLike: TransactionRequestLike): Promise<T>;
57
57
  /**
58
58
  * Populates the witness signature for a transaction and sends it to the network using `provider.sendTransaction`.
59
59
  *
@@ -1 +1 @@
1
- {"version":3,"file":"base-wallet-unlocked.d.ts","sourceRoot":"","sources":["../../src/wallet/base-wallet-unlocked.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO;IAC7C;;OAEG;IACH,MAAM,CAAC,WAAW,SAA8B;IAEhD;;OAEG;IACH,MAAM,EAAE,MAAM,MAAM,CAAC;IAErB;;;;;OAKG;gBACS,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAMtD;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;;;;OAKG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD;;;;;OAKG;IACG,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;IAQtF;;;;;OAKG;IACG,qCAAqC,CAAC,sBAAsB,EAAE,sBAAsB;IAS1F;;;;;OAKG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,s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AsB;IAUhD;;;;;OAKG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA8B,EAAE,cAAc,EAAE,GAAE,oBAAyB,GAC5E,OAAO,CAAC,mBAAmB,CAAC;IAW/B;;;;;OAKG;IACG,mBAAmB,CACvB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAE,yBAA8B,GAChE,OAAO,CAAC,UAAU,CAAC;IAchB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGjD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuel-ts/account",
3
- "version": "0.0.0-rc-2224-20240503155836",
3
+ "version": "0.0.0-rc-2037-20240504194803",
4
4
  "description": "",
5
5
  "author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
- "@fuels/vm-asm": "0.42.1",
44
+ "@fuels/vm-asm": "0.49.0",
45
45
  "@noble/curves": "^1.3.0",
46
46
  "ethers": "^6.7.1",
47
47
  "events": "^3.3.0",
@@ -52,17 +52,17 @@
52
52
  "ramda": "^0.29.0",
53
53
  "tree-kill": "^1.2.2",
54
54
  "uuid": "^9.0.0",
55
- "@fuel-ts/abi-coder": "0.0.0-rc-2224-20240503155836",
56
- "@fuel-ts/address": "0.0.0-rc-2224-20240503155836",
57
- "@fuel-ts/crypto": "0.0.0-rc-2224-20240503155836",
58
- "@fuel-ts/errors": "0.0.0-rc-2224-20240503155836",
59
- "@fuel-ts/hasher": "0.0.0-rc-2224-20240503155836",
60
- "@fuel-ts/interfaces": "0.0.0-rc-2224-20240503155836",
61
- "@fuel-ts/math": "0.0.0-rc-2224-20240503155836",
62
- "@fuel-ts/merkle": "0.0.0-rc-2224-20240503155836",
63
- "@fuel-ts/transactions": "0.0.0-rc-2224-20240503155836",
64
- "@fuel-ts/utils": "0.0.0-rc-2224-20240503155836",
65
- "@fuel-ts/versions": "0.0.0-rc-2224-20240503155836"
55
+ "@fuel-ts/abi-coder": "0.0.0-rc-2037-20240504194803",
56
+ "@fuel-ts/address": "0.0.0-rc-2037-20240504194803",
57
+ "@fuel-ts/crypto": "0.0.0-rc-2037-20240504194803",
58
+ "@fuel-ts/errors": "0.0.0-rc-2037-20240504194803",
59
+ "@fuel-ts/hasher": "0.0.0-rc-2037-20240504194803",
60
+ "@fuel-ts/interfaces": "0.0.0-rc-2037-20240504194803",
61
+ "@fuel-ts/math": "0.0.0-rc-2037-20240504194803",
62
+ "@fuel-ts/merkle": "0.0.0-rc-2037-20240504194803",
63
+ "@fuel-ts/transactions": "0.0.0-rc-2037-20240504194803",
64
+ "@fuel-ts/utils": "0.0.0-rc-2037-20240504194803",
65
+ "@fuel-ts/versions": "0.0.0-rc-2037-20240504194803"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@graphql-codegen/cli": "^2.13.7",
@@ -72,9 +72,9 @@
72
72
  "@types/ramda": "^0.29.3",
73
73
  "@types/uuid": "^9.0.1",
74
74
  "get-graphql-schema": "^2.1.2",
75
- "@fuel-ts/hasher": "0.0.0-rc-2224-20240503155836",
76
- "@fuel-ts/math": "0.0.0-rc-2224-20240503155836",
77
- "@fuel-ts/utils": "0.0.0-rc-2224-20240503155836"
75
+ "@fuel-ts/hasher": "0.0.0-rc-2037-20240504194803",
76
+ "@fuel-ts/math": "0.0.0-rc-2037-20240504194803",
77
+ "@fuel-ts/utils": "0.0.0-rc-2037-20240504194803"
78
78
  },
79
79
  "scripts": {
80
80
  "build": "tsup",
@@ -1,22 +0,0 @@
1
- import type { BN } from '@fuel-ts/math';
2
- import type { GqlConsensusParameters, GqlFeeParameters } from '../__generated__/operations';
3
- type FeeParams = Pick<GqlFeeParameters, 'gasPerByte' | 'gasPriceFactor'> | {
4
- gasPerByte: BN | number;
5
- gasPriceFactor: BN | number;
6
- };
7
- export type CalculateTransactionFeeParams = {
8
- gasPrice: BN;
9
- rawPayload: string;
10
- tip: BN;
11
- consensusParameters: Pick<GqlConsensusParameters, 'gasCosts'> & {
12
- feeParams: FeeParams;
13
- maxGasPerTx: BN;
14
- };
15
- };
16
- export declare const calculateTransactionFee: (params: CalculateTransactionFeeParams) => {
17
- fee: BN;
18
- minFee: BN;
19
- maxFee: BN;
20
- };
21
- export {};
22
- //# sourceMappingURL=calculate-transaction-fee.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calculate-transaction-fee.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-summary/calculate-transaction-fee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAMxC,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAS5F,KAAK,SAAS,GACV,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,gBAAgB,CAAC,GACvD;IACE,UAAU,EAAE,EAAE,GAAG,MAAM,CAAC;IACxB,cAAc,EAAE,EAAE,GAAG,MAAM,CAAC;CAC7B,CAAC;AAEN,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,EAAE,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,EAAE,CAAC;IACR,mBAAmB,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,GAAG;QAC9D,SAAS,EAAE,SAAS,CAAC;QACrB,WAAW,EAAE,EAAE,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAAY,6BAA6B;;;;CAgG5E,CAAC"}