Skip to content

feature: add support for jupiter swaps#41

Merged
mocolicious merged 23 commits intokinnytips:Jupiter-Swapfrom
Akonobi1:dev
Aug 11, 2025
Merged

feature: add support for jupiter swaps#41
mocolicious merged 23 commits intokinnytips:Jupiter-Swapfrom
Akonobi1:dev

Conversation

@Akonobi1
Copy link

No description provided.

@mocolicious mocolicious changed the base branch from dev to Jupiter-Swap July 23, 2025 00:31
removed volumes from commits
@mocolicious mocolicious requested a review from Copilot August 1, 2025 02:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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`)
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace console.log statements with proper logging service calls. This function contains multiple console.log statements that should use a logger for production code.

Copilot uses AI. Check for mistakes.
mocolicious and others added 5 commits August 1, 2025 01:07
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>
@mocolicious
Copy link
Member

Merging but review comments need to be addressed before release

@mocolicious mocolicious merged commit 9cec77d into kinnytips:Jupiter-Swap Aug 11, 2025
6 of 12 checks passed
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.

3 participants

Comments