@fuel-ts/account 0.83.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 (54) hide show
  1. package/README.md +15 -12
  2. package/dist/account.d.ts +1 -1
  3. package/dist/account.d.ts.map +1 -1
  4. package/dist/index.global.js +1624 -1619
  5. package/dist/index.global.js.map +1 -1
  6. package/dist/index.js +365 -207
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +346 -190
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/providers/__generated__/operations.d.ts +203 -80
  11. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  12. package/dist/providers/message.d.ts +2 -2
  13. package/dist/providers/message.d.ts.map +1 -1
  14. package/dist/providers/provider.d.ts +30 -29
  15. package/dist/providers/provider.d.ts.map +1 -1
  16. package/dist/providers/resource.d.ts +0 -1
  17. package/dist/providers/resource.d.ts.map +1 -1
  18. package/dist/providers/transaction-request/helpers.d.ts +8 -0
  19. package/dist/providers/transaction-request/helpers.d.ts.map +1 -0
  20. package/dist/providers/transaction-request/script-transaction-request.d.ts +2 -3
  21. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  22. package/dist/providers/transaction-request/transaction-request.d.ts +5 -6
  23. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  24. package/dist/providers/transaction-request/utils.d.ts +2 -1
  25. package/dist/providers/transaction-request/utils.d.ts.map +1 -1
  26. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +2 -2
  27. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  28. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +20 -0
  29. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -0
  30. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  31. package/dist/providers/transaction-summary/index.d.ts +1 -1
  32. package/dist/providers/transaction-summary/index.d.ts.map +1 -1
  33. package/dist/providers/transaction-summary/operations.d.ts +4 -0
  34. package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
  35. package/dist/providers/transaction-summary/status.d.ts +5 -1
  36. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  37. package/dist/providers/transaction-summary/types.d.ts +6 -1
  38. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  39. package/dist/providers/utils/gas.d.ts +7 -6
  40. package/dist/providers/utils/gas.d.ts.map +1 -1
  41. package/dist/test-utils/launchNode.d.ts.map +1 -1
  42. package/dist/test-utils/resources.d.ts +4 -0
  43. package/dist/test-utils/resources.d.ts.map +1 -0
  44. package/dist/test-utils/transactionRequest.d.ts +5 -0
  45. package/dist/test-utils/transactionRequest.d.ts.map +1 -0
  46. package/dist/test-utils.global.js +1628 -1622
  47. package/dist/test-utils.global.js.map +1 -1
  48. package/dist/test-utils.js +342 -196
  49. package/dist/test-utils.js.map +1 -1
  50. package/dist/test-utils.mjs +327 -181
  51. package/dist/test-utils.mjs.map +1 -1
  52. package/package.json +17 -17
  53. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +0 -22
  54. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuel-ts/account",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "",
5
5
  "author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
6
6
  "main": "dist/index.js",
@@ -41,28 +41,28 @@
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",
48
- "graphql": "^16.6.0",
48
+ "graphql": "^16.8.1",
49
49
  "graphql-request": "5.0.0",
50
50
  "graphql-tag": "^2.12.6",
51
51
  "portfinder": "^1.0.32",
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.83.0",
56
- "@fuel-ts/address": "0.83.0",
57
- "@fuel-ts/crypto": "0.83.0",
58
- "@fuel-ts/errors": "0.83.0",
59
- "@fuel-ts/hasher": "0.83.0",
60
- "@fuel-ts/interfaces": "0.83.0",
61
- "@fuel-ts/math": "0.83.0",
62
- "@fuel-ts/merkle": "0.83.0",
63
- "@fuel-ts/transactions": "0.83.0",
64
- "@fuel-ts/utils": "0.83.0",
65
- "@fuel-ts/versions": "0.83.0"
55
+ "@fuel-ts/abi-coder": "0.84.0",
56
+ "@fuel-ts/address": "0.84.0",
57
+ "@fuel-ts/crypto": "0.84.0",
58
+ "@fuel-ts/errors": "0.84.0",
59
+ "@fuel-ts/hasher": "0.84.0",
60
+ "@fuel-ts/interfaces": "0.84.0",
61
+ "@fuel-ts/math": "0.84.0",
62
+ "@fuel-ts/merkle": "0.84.0",
63
+ "@fuel-ts/transactions": "0.84.0",
64
+ "@fuel-ts/utils": "0.84.0",
65
+ "@fuel-ts/versions": "0.84.0"
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.83.0",
76
- "@fuel-ts/math": "0.83.0",
77
- "@fuel-ts/utils": "0.83.0"
75
+ "@fuel-ts/hasher": "0.84.0",
76
+ "@fuel-ts/math": "0.84.0",
77
+ "@fuel-ts/utils": "0.84.0"
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"}