✨ (solana-signer) [DSDK-1098]: Solana transaction check & Solana provide context refactor#1481
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
8c10d42 to
68cc08f
Compare
68cc08f to
106e209
Compare
86de6a6 to
ebcbbeb
Compare
…xt-provider registry
106e209 to
aaaa126
Compare
| resolver: ApplicationResolver, | ||
| ) { | ||
| this.modelId = deviceState.deviceModelId; | ||
| this.appName = |
There was a problem hiding this comment.
[ASK] why appName can be undefined?
There was a problem hiding this comment.
ConnectedState variant has no currentApp, which is why the narrowing falls back to undefined
There was a problem hiding this comment.
if the state is connected but not ready yet we should not enter in this part of code no? because we have the same problem with other signers, wdyt?
There was a problem hiding this comment.
Agree it's an issue across signers! Currently harmless here because SolanaApplicationResolver.resolve already returns isCompatible: false for Connected state, so the undefined fallback never affects the result.
aaaa126 to
5da4263
Compare
| resolver: ApplicationResolver, | ||
| ) { | ||
| this.modelId = deviceState.deviceModelId; | ||
| this.appName = |
There was a problem hiding this comment.
if the state is connected but not ready yet we should not enter in this part of code no? because we have the same problem with other signers, wdyt?
|
86d611e
into
feat/no-issue-improve-typing-into-context-module-refactor


📝 Description
Adds end-to-end Solana transaction-check support, layered on top of the typing/multichain refactor in the base branch.
Solana app: APDU + opt-in flow
ProvideWeb3CheckCommand,Web3CheckOptInCommandGetAppConfigurationCommandextended to expose transaction-check opt-in/enabled fieldsSignTransactionDeviceActionextended with the opt-in state-machine branch (gated by app version, device model, opt-in flag)Solana signer: provide-context refactor
ProvideTransactionContextTasksplit into a per-type context-provider registry (provideContextRegistry.tsdispatching toprovideTokenContext,provideLifiContext,provideTransactionCheckContext)SolanaContextSuccessTypewithout a registry handler is now a compile errorContext module: Solana transaction-check loader
SOLANA_TRANSACTION_CHECKclear-sign context type with typed payload{ descriptor: string }SolanaTransactionCheckLoader(modules/multichain/transaction-check/loaders/) sharing the existingHttpTransactionCheckDataSourcewith the Ethereum loader, hits/solana/scan/txsolanaTransactionCheckModuleFactorywired into the Solanacaseofdi.tsandDefaultContextModuleSolanaTransactionScanChainIdenum (Mainnet/Devnet/Testnet) exposed frommodules/solana/model/Solana signer: wire transaction-check
BuildTransactionContextTaskrequestsSOLANA_TRANSACTION_CHECKalongsideSOLANA_TOKEN/SOLANA_LIFI/SOLANA_TRUSTED_NAMEand includes the result inloadersResultssignerAddress+ bs58-encodedtransactionBytes+SolanaTransactionScanChainId.MAINNETprovideTransactionCheckContexthandler: loads the PKI cert then chunks the descriptor viaProvideWeb3CheckCommand❓ 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