Skip to content

feat: add support for pre-confirmations#3857

Merged
arboleya merged 640 commits into
masterfrom
st/feat/pre-confs
Apr 29, 2025
Merged

feat: add support for pre-confirmations#3857
arboleya merged 640 commits into
masterfrom
st/feat/pre-confs

Conversation

@Torres-ssf
Copy link
Copy Markdown
Contributor

@Torres-ssf Torres-ssf commented Apr 21, 2025

Release notes

In this release, we:

  • Added support for pre-confirmations

Summary

const { waitForPreConfirmation } = await provider.sendTransaction(transactionRequest);

// Wait until the transaction reaches a pre-confirmation status
const { status, receipts, resolvedOutputs } = await waitForPreConfirmation();

console.log(status); 
// Expected output: 'preconfirmationSuccess' (or 'preconfirmationFailure')

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

Comment thread apps/docs/src/guide/transactions/pre-confirmation.md Outdated
arboleya

This comment was marked as resolved.

Torres-ssf and others added 11 commits April 28, 2025 14:47
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report:

Lines Branches Functions Statements
77.05%(-0.05%) 69.85%(-0.19%) 75.41%(-0.01%) 77.05%(-0.05%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/account/src/providers/provider.ts 73.1%
(+0%)
65.42%
(+0.13%)
74.13%
(+0%)
72.94%
(+0%)
🔴 packages/account/src/providers/generated/operations.ts 94.38%
(+0.07%)
100%
(+0%)
82.14%
(+0%)
94.79%
(+0.06%)
🔴 packages/account/src/providers/transaction-request/transaction-request.ts 87.91%
(+0%)
77.1%
(+1.2%)
84.31%
(+0%)
88.15%
(+0%)
🔴 packages/account/src/providers/transaction-response/transaction-response.ts 81.34%
(+5.26%)
72.58%
(+3.09%)
95.83%
(+2.08%)
81.48%
(+5.4%)
🔴 packages/account/src/providers/transaction-summary/assemble-transaction-summary.ts 79.31%
(-20.69%)
47.61%
(-30.16%)
75%
(-25%)
77.41%
(-22.59%)
🔴 packages/account/src/providers/utils/serialization.ts 83.33%
(-4.96%)
65.51%
(-3.72%)
100%
(+0%)
83.78%
(-4.87%)
🔴 packages/contract/src/contract-factory.ts 30.66%
(-0.16%)
26.56%
(+0%)
29.62%
(-1.14%)
29.87%
(-0.13%)
🔴 packages/program/src/response.ts 9.52%
(-0.48%)
0%
(+0%)
0%
(+0%)
9.52%
(-0.48%)

Copy link
Copy Markdown
Contributor

@arboleya arboleya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! 🔥 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla:signed feat Issue is a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for pre-confirmations

3 participants