Skip to content

feat: enriched tx#384

Merged
petar-omni merged 1 commit intomainfrom
feat/enriched-tx
Jun 3, 2025
Merged

feat: enriched tx#384
petar-omni merged 1 commit intomainfrom
feat/enriched-tx

Conversation

@petar-omni
Copy link
Copy Markdown
Contributor

Added

  • Expose structuredTransaction and annotatedTransaction in transaction meta

Changed

Description of the modifications made to existing functionality, feature, or content in this pull request. This could include changes to code, CI, documentation, etc.

@petar-omni petar-omni requested review from Philippoes and Copilot May 30, 2025 15:45
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 30, 2025

🦋 Changeset detected

Latest commit: 3c2760a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stakekit/widget Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2025

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

Name Status Preview Comments Updated (UTC)
staging-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2025 3:56pm
stakekit-widget ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2025 3:56pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enriches transaction metadata by exposing structuredTransaction and annotatedTransaction across the codebase and test fixtures, and adds feeConfigurations in relevant setup files; it also bumps the @stakekit/api-hooks dependency.

  • Added structuredTransaction and annotatedTransaction to SKTxMeta, state machine meta, and test fixtures.
  • Introduced empty feeConfigurations arrays in staking and referral flow setups.
  • Bumped @stakekit/api-hooks version to 0.0.102 and added a changeset entry.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/widget/tests/use-cases/staking-flow/setup.ts Added feeConfigurations, annotatedTransaction, structuredTransaction to test fixture
packages/widget/tests/use-cases/sk-wallet.test.tsx Added structuredTransaction and annotatedTransaction to test data
packages/widget/tests/use-cases/referral-flow/setup.ts Added feeConfigurations to referral flow setup
packages/widget/src/pages/steps/hooks/use-steps-machine.hook.ts Included annotatedTransaction and structuredTransaction in machine actionMeta
packages/widget/src/domain/types/wallets/generic-wallet.ts Extended SKTxMeta to pick structuredTransaction and annotatedTransaction from TransactionDto
packages/widget/package.json Bumped @stakekit/api-hooks dependency to 0.0.102
.changeset/social-pandas-wait.md Added patch changeset for "feat: enriched tx"
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

packages/widget/src/pages/steps/hooks/use-steps-machine.hook.ts:306

  • Consider adding or updating unit tests for the state machine to assert that annotatedTransaction and structuredTransaction are correctly propagated in actionMeta when dispatching actions.
                        annotatedTransaction:

Comment thread packages/widget/src/domain/types/wallets/generic-wallet.ts
Comment thread packages/widget/tests/use-cases/staking-flow/setup.ts
Comment thread packages/widget/tests/use-cases/sk-wallet.test.tsx
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR exposes enriched transaction data (structuredTransaction and annotatedTransaction) throughout the widget by updating types, state machine propagation, and test fixtures.

  • Extended SKTxMeta to include the new fields.
  • Updated the steps state machine to carry the enriched tx properties.
  • Adjusted unit test setups and snapshots to initialize the new fields.
  • Bumped @stakekit/api-hooks to pull in the backend support.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/widget/tests/use-cases/staking-flow/setup.ts Added feeConfigurations and initialized new tx fields in fixtures
packages/widget/tests/use-cases/sk-wallet.test.tsx Populated structuredTransaction and annotatedTransaction in SK wallet tests
packages/widget/tests/use-cases/referral-flow/setup.ts Added feeConfigurations in referral-flow test setup
packages/widget/src/pages/steps/hooks/use-steps-machine.hook.ts Propagate annotatedTransaction and structuredTransaction from constructedTx
packages/widget/src/domain/types/wallets/generic-wallet.ts Extended SKTxMeta type to pick the two new transaction fields
packages/widget/package.json Bumped @stakekit/api-hooks to version 0.0.102
.changeset/social-pandas-wait.md Added changeset entry for feature
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@petar-omni petar-omni merged commit 9a9e11d into main Jun 3, 2025
7 checks passed
@petar-omni petar-omni deleted the feat/enriched-tx branch June 3, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants