✨ (context-module) [DSDK-1515]: NativePreBalance DTO + owner-without-mint warn for TOKEN_ACCOUNT_STATE - #1881
Merged
Conversation
fAnselmi-Ledger
added this pull request to stack #1882
September 11, 2026 15:56
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
fAnselmi-Ledger
force-pushed
the
feat/dsdk-1515-solana-native-pre-balance-owner-mint-warning
branch
from
September 11, 2026 16:02
a7fa856 to
fbd691a
Compare
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved blocking issues were identified.
Pull request overview
Adds Solana TOKEN_ACCOUNT_STATE support for nativePreBalance and diagnostics for owner responses missing mint.
Changes:
- Accepts optional
nativePreBalanceand logs when absent. - Warns when
owneris returned withoutmint. - Adds unit tests and a patch changeset.
File summaries
| File | Description |
|---|---|
packages/signer/context-module/src/modules/solana/token-account-state/data/HttpTokenAccountStateDataSource.ts |
Adds DTO support and diagnostic logging. |
packages/signer/context-module/src/modules/solana/token-account-state/data/HttpTokenAccountStateDataSource.test.ts |
Tests the new logging behavior. |
.changeset/tame-cities-sneeze.md |
Records the package patch release. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
aussedatlo
approved these changes
Sep 18, 2026
fAnselmi-Ledger
force-pushed
the
feat/dsdk-1515-solana-native-pre-balance-owner-mint-warning
branch
from
September 18, 2026 16:57
fbd691a to
f43c566
Compare
…r TOKEN_ACCOUNT_STATE
fAnselmi-Ledger
force-pushed
the
feat/dsdk-1515-solana-native-pre-balance-owner-mint-warning
branch
from
September 18, 2026 17:13
f43c566 to
c6a2056
Compare
|
An error occurred while trying to automatically change base from
feat/dsdk-1514-solana-account-reset-domains
to
develop
September 18, 2026 17:38
fAnselmi-Ledger
deleted the
feat/dsdk-1515-solana-native-pre-balance-owner-mint-warning
branch
September 18, 2026 17:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



📝 Description
PR-2 of the DMK alignment with CAL edits
nativePreBalancein TOKEN_ACCOUNT_STATE response DTO(
spec/backend/dynamic_descriptors_api.md#nativeprebalance) The field is now required on every backend response. It is the unsynced wrappable lamport excess (not the raw balance) that the device reads from the signed descriptor. Host-side we only need to accept it in the DTO, it is not consumed or validated here. An absent field means an old backend, we log a debug trace and carry on (no soundness loss, just extra screens on native-reset instructions).Warn when path-3 response has
ownerbut nomint(
spec/device/tlv_structs.md#owner-and-the-owner-binding-map) Before admitting an attestedOWNERinto the owner-binding map the device now checksACCOUNT_ADDRESS == PDA([OWNER, tokenProgram, MINT], ATA program)and drops the binding silently whenMINTis absent. DMK sends the same request as before, no functional change, but a response withoutmintis now inert: the fetch was paid for and the IS_SIGNER hide will not happen. The warn makes the regression visible in logs.❓ Context
✅ Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.
🧐 Checklist for the PR Reviewers