Skip to content

fix: expose fetchBalance method#3598

Merged
svenvoskamp merged 46 commits intomainfrom
fix/expose-fetch-balance
May 9, 2025
Merged

fix: expose fetchBalance method#3598
svenvoskamp merged 46 commits intomainfrom
fix/expose-fetch-balance

Conversation

@svenvoskamp
Copy link
Copy Markdown
Contributor

@svenvoskamp svenvoskamp commented Jan 9, 2025

Description

The balance in our account button doesn't update after a transaction has happened. This is because we don't have control when a transaction outside AppKit is happening. We tried to find a solution with querying for pending transactions. This resulted in clients exceeding their quota.

This PR exposes the fetchBalance method. Apps can call this after a transaction happened in their app. This will update the correct balance in AppKit.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-1777

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

@linear
Copy link
Copy Markdown

linear bot commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

@arein arein left a comment

Choose a reason for hiding this comment

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

Do we need to add some rate limit for the internal logic here? i.e. it only calls this max every 10 seconds now matter how often it's triggered?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 6, 2025

Warnings
⚠️ File packages/appkit/exports/vue.ts contains a KEY or SECRET
⚠️ File packages/appkit/src/client/appkit-base-client.ts contains a KEY or SECRET
⚠️ File packages/appkit/tests/client/public-methods.test.ts contains a KEY or SECRET

Generated by 🚫 dangerJS against 9a9c094

@linear
Copy link
Copy Markdown

linear bot commented May 6, 2025

@svenvoskamp svenvoskamp enabled auto-merge May 9, 2025 07:09
@svenvoskamp svenvoskamp added this pull request to the merge queue May 9, 2025
Merged via the queue into main with commit e7d3e71 May 9, 2025
38 checks passed
@svenvoskamp svenvoskamp deleted the fix/expose-fetch-balance branch May 9, 2025 07:42
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.

6 participants