FuelLabs / fuels-ts

Fuel Network Typescript SDK
https://docs.fuel.network/docs/fuels-ts/
Apache License 2.0
44.21k stars 1.34k forks source link

feat: use `submitAndAwaitStatus` to submit transactions #3101

Closed nedsalk closed 3 weeks ago

nedsalk commented 4 weeks ago

Release notes

In this release, we:

Summary

This PR replaces usage of submit mutation with submitAndAwaitStatus, thereby replacing the submit+statusChange calls with a single call. Instead of two, submitting a transaction and reading its results now requires only one request.

Checklist

vercel[bot] commented 4 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
create-fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 10:05am
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 10:05am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **create-fuels-counter-example** | ⬜️ Ignored ([Inspect](https://vercel.com/fuel-labs/create-fuels-counter-example/7y7g6PGb7U6U8WhxnxPi7ppbgnaT)) | | | Sep 5, 2024 10:05am |
github-actions[bot] commented 3 weeks ago

Coverage Report:

Lines Branches Functions Statements
79.37%(-0.01%) 72.09%(-0.03%) 77.73%(-0.03%) 79.43%(-0.02%)
Changed Files: | Ok | File (✨=New File) | Lines | Branches | Functions | Statements | | -- | --------------------------------------------------------------------------------------------------------------- | ------------------- | ------------------ | ------------------ | ------------------- | | 🔴 | packages/account/src/providers/__generated__/operations.ts | 95.71%
(-0.66%) | 100%
(+0%) | 86.66%
(-1.97%) | 96.07%
(-0.61%) | | 🔴 | packages/account/src/providers/transaction-request/transaction-request.ts | 88.57%
(+0%) | 76.71%
(-1.37%) | 84%
(+0%) | 88.81%
(+0%) | | 🔴 | packages/account/src/providers/transaction-response/transaction-response.ts | 77.27%
(+0.53%) | 65.45%
(+2.71%) | 93.75%
(+0%) | 77.27%
(+0.53%) | | 🔴 | packages/account/src/providers/utils/handle-gql-error-message.ts | 83.33%
(-16.67%) | 75%
(-25%) | 100%
(+0%) | 85.71%
(-14.29%) |