Repository navigation
Phase 3: integrations (1Click, NEAR, DB) - #111
Merged
Merged
Conversation
- lib/oneclick: SDK config, token cache, funding and buy quote requests with per-chain deadlines, fail-closed signature check for real quotes, status polling, deposit submit, readable errors; real dry-quote fixtures - lib/near: RPC views, NEP-297 event parsing, vault and factory bindings, keeper signer, NEP-413 sign-in verification, VaultClient adapter - lib/db: first migration, migrate() for PGlite and Postgres, queries for users, funding attempts and buys - 66 TS tests; new task K3.5 (#110) for signature verification, blocked on the partner JWT
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.
Implements the integration layer (ARCHITECTURE §3–5, §12).
What changed
lib/oneclick): token list with 10-min cache (stale on outage), funding and buyEXACT_INPUTrequests (refunds: user origin / vault), longer deadline for Bitcoin, status polling + deposit submit, readable errors for 1Click's misleading messages. Real fixtures from today's dry quotes.verifyQuoteSignature()does not verify real unauthenticated dry quotes. Real quotes are rejected unless the signature verifies; dry previews are display-only. Tracked as new task K3.5 ([K3.5] Verify 1Click quote signatures on real quotes (with partner JWT) #110), blocked on the partner JWT.lib/near): RPC views, NEP-297 event parsing, vault + factory bindings (execute_buyattaches the deposit-address storage), keeper signer (server-only), NEP-413 sign-in verification (tested with a real signature; rejects changed message, wrong recipient, function-call keys),VaultClientadapter.lib/db): first migration,db.migrate()for PGlite and Postgres, queries for users / funding attempts / buys, terminal-status sets.Closes #39
Closes #40
Closes #41
Closes #42
Roadmap
Checks
pnpm typecheck,pnpm lint,pnpm buildNEAR HACKATHON rules
Not done