Skip to content

feat/wallet core consolidation#31

Merged
1lystore merged 5 commits into
mainfrom
feat/wallet-core-consolidation
Jun 19, 2026
Merged

feat/wallet core consolidation#31
1lystore merged 5 commits into
mainfrom
feat/wallet-core-consolidation

Conversation

@1lystore

Copy link
Copy Markdown
Owner
  • fix(vault): revoke/delete agent now purges its standing grants (no orphaned sessions)
  • fix(cloud-connect): rich scope guidance in vault_read/write descriptions + self-correcting deny
  • feat: @dcprotocol/wallet-core — shared wallet brain + runner consolidation

1lystore added 3 commits June 17, 2026 00:16
…phaned sessions)

revokeAgentConnection + deleteAgentConnection + cloud-connect revoke now call revokeAgentSessions(name), so an agent's Allow grants don't linger in Active Sessions (and can't be inherited via name reuse). Test added.
…ons + self-correcting deny

- vault_read/vault_write descriptions now list canonical scopes (identity.name, credentials.api.<service>) and tell agents to call vault_scope_guide instead of guessing (fixes ChatGPT requesting non-existent 'profile')
- SCOPE_NOT_PERMITTED message now points the agent to vault_scope_guide to self-correct
- bump @dcprotocol/vault to 3.0.2
…ation

Extract the pure, native-dep-free wallet logic into a new @dcprotocol/wallet-core
package (Node / browser / React-Native safe): tx build + validation (anti-blind-sign,
swap quote/program checks, idempotency rules), on-chain reads, token registry,
Jupiter (fee injected), and the execution runner. core/vault/agent now consume it
(re-exported for backward compatibility), so wallet logic lives once for desktop +
mobile.

Vault transfer/swap can route through the shared runner behind DCP_USE_SHARED_RUNNER
(default OFF — the proven path stays live). Transfer is on-chain proven on devnet
(20-way concurrency / no overspend, idempotent replay, SPL + ATA creation). Adds
golden-harness, wallet-tx, and devnet/mainnet verification suites; extracts vault
helper modules into server/lib.

Also includes client SDK transport additions and agent connection/scope-guide updates.

Tests: wallet-core 83 · core 221 · agent 51 · vault 143 · client 55 · telegram 63 · security 27/27
Comment thread packages/dcp-vault/src/server/index.ts Fixed
Comment thread packages/dcp-wallet-core/src/solana-tx.ts Fixed
1lystore added 2 commits June 20, 2026 00:39
…out order)

In a fresh checkout, core's tsup --dts re-exports VaultError from @dcprotocol/wallet-core
and needs its built dist; the root build forced core first, so wallet-core was not yet
built (TS2307). Build wallet-core first in the root build + dev:cli scripts.
- wallet-core toBaseUnits: bound user-supplied decimals to 0..18 before it feeds
  '0'.repeat(decimals)/toFixed/10n**, closing a resource-exhaustion (DoS) vector
  CodeQL flagged on solana-tx.ts. Adds a regression test.
- vault /v1/vault/transfer + /v1/vault/swap: add explicit per-route rate-limit
  config (in addition to the global 600/min) so CodeQL sees these money-moving,
  auth-performing routes are rate-limited.
@1lystore 1lystore merged commit 8de06db into main Jun 19, 2026
4 checks passed
@1lystore 1lystore deleted the feat/wallet-core-consolidation branch June 19, 2026 19:22
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.

2 participants