This commit is contained in:
2026-05-20 23:57:15 +02:00
parent fad7ec5107
commit 62831a0abe
56 changed files with 6603 additions and 114 deletions

View File

@@ -0,0 +1,44 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Demo3OnchainDexDiscoveryRequest } from "./Demo3OnchainDexDiscoveryRequest";
import type { Demo3OnchainDexPairCandidate } from "./Demo3OnchainDexPairCandidate";
/**
* Structured on-chain DEX discovery result.
*/
export type Demo3OnchainDexDiscoveryResult = {
/**
* Normalized request used by kb_lib.
*/
request: Demo3OnchainDexDiscoveryRequest,
/**
* DEX code resolved from the support matrix when available.
*/
resolvedDexCode: string | null,
/**
* Program id scanned with getSignaturesForAddress.
*/
resolvedProgramId: string,
/**
* Number of signatures returned by Solana RPC.
*/
fetchedSignatureCount: number,
/**
* Number of fetched transactions.
*/
fetchedTransactionCount: number,
/**
* Number of getTransaction calls returning null.
*/
missingTransactionCount: number,
/**
* Number of failed transactions encountered.
*/
failedTransactionCount: number,
/**
* Number of candidate rows returned.
*/
candidateCount: number,
/**
* Candidate on-chain rows.
*/
candidates: Array<Demo3OnchainDexPairCandidate>, };