feature: add support for jupiter swaps#41
feature: add support for jupiter swaps#41mocolicious merged 23 commits intokinnytips:Jupiter-Swapfrom
Conversation
removed volumes from commits
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive support for Jupiter swaps by implementing versioned transaction handling throughout the Kinetic system. The changes enable the system to process both legacy and versioned Solana transactions, which is essential for supporting Jupiter's swap functionality.
Key Changes:
- Added versioned transaction parsing and signing utilities with address lookup table (ALT) support
- Extended API endpoints and data models to handle versioned transactions and ALTs
- Implemented fallback mechanisms to gracefully handle both transaction types
Reviewed Changes
Copilot reviewed 22 out of 1349 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/solana/src/lib/helpers/parse-and-sign-versioned-transaction.ts | New utility for parsing and validating versioned transactions |
| libs/solana/src/lib/helpers/parse-and-sign-versioned-token-transfer.ts | New utility for parsing versioned token transfers with ALT resolution |
| libs/api/transaction/data-access/src/lib/api-transaction.service.ts | Enhanced transaction processing to support both legacy and versioned transactions |
| libs/api/kinetic/data-access/src/lib/api-kinetic.service.ts | Updated core transaction handling with versioned transaction support |
| libs/api/transaction/data-access/src/lib/entities/transaction.entity.ts | Added versioned transaction fields to data model |
| libs/api/core/data-access/src/prisma/schema.prisma | Database schema updates for versioned transaction support |
Comments suppressed due to low confidence (2)
libs/api/transaction/data-access/src/lib/api-transaction.service.ts:36
- Use proper logging service instead of console.log. Replace with
this.logger.warn()or similar logging method for consistency with the rest of the codebase.
)
volumes/postgres/PG_VERSION:1
- PostgreSQL version 14 exists and is valid, but ensure this version is compatible with your application requirements and deployment environment.
14
| */ | ||
| export function extractAddressLookupTableAddresses(txBuffer: Buffer): string[] { | ||
| try { | ||
| console.log(`ALT Extraction: Starting extraction from transaction buffer`) |
There was a problem hiding this comment.
Replace console.log statements with proper logging service calls. This function contains multiple console.log statements that should use a logger for production code.
libs/api/transaction/data-access/src/lib/api-transaction.service.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Merging but review comments need to be addressed before release |
No description provided.