0.7.43-E5C
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
<main class="app-main">
|
||||
<div class="osb-scrollable pt-1 pb-4" data-simplebar>
|
||||
<div class="container-fluid py-4">
|
||||
<div class="container-fluid py-4">
|
||||
<div class="row g-4">
|
||||
<div class="col-12 col-xxl-4">
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
@@ -37,24 +37,59 @@
|
||||
Recherche directement sur Solana via <code>getSignaturesForAddress</code> + <code>getTransaction</code>.
|
||||
Le résultat sert à trouver une signature, un pool ou un mint à backfiller ensuite dans Demo Pipeline 2.
|
||||
</p>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="demo3PresetSelect" class="form-label">Preset DEX</label>
|
||||
<select id="demo3PresetSelect" class="form-select"></select>
|
||||
<div id="demo3PresetHelp" class="form-text">Choisis un DEX ou saisis un program id manuellement.</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="demo3DexCodeInput" class="form-label">DEX code</label>
|
||||
<input id="demo3DexCodeInput" type="text" class="form-control font-monospace" spellcheck="false" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="demo3ProgramIdInput" class="form-label">Program id</label>
|
||||
<label for="demo3ProgramIdInput" class="form-label">Program id filter</label>
|
||||
<input id="demo3ProgramIdInput" type="text" class="form-control font-monospace" spellcheck="false" />
|
||||
<div class="form-text">Used to filter matched instructions. With address source, signatures are fetched from Source address instead.</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row g-2 mb-3">
|
||||
<div class="col-6">
|
||||
<label for="demo3SignatureSourceSelect" class="form-label">Signature source</label>
|
||||
<select id="demo3SignatureSourceSelect" class="form-select">
|
||||
<option value="program_id">program_id</option>
|
||||
<option value="address">address / pool / vault / position</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<label for="demo3SourceAddressInput" class="form-label">Source address</label>
|
||||
<input id="demo3SourceAddressInput" type="text" class="form-control font-monospace" spellcheck="false" placeholder="pool / vault / position / config / mint address" />
|
||||
</div>
|
||||
<div class="col-12 form-text">Use address source to discover signatures around a pool, vault, position, config or mint while keeping the program id filter.</div>
|
||||
</div>
|
||||
|
||||
<div class="row g-2">
|
||||
<div class="col-12">
|
||||
<label for="demo3TargetEventSelect" class="form-label">Target event</label>
|
||||
<select id="demo3TargetEventSelect" class="form-select">
|
||||
<option value="">Any / generic pair-pool discovery</option>
|
||||
<option value="swap">swap</option>
|
||||
<option value="add_liquidity">add_liquidity</option>
|
||||
<option value="remove_liquidity">remove_liquidity</option>
|
||||
<option value="claim_fee">claim_fee / collect_fee</option>
|
||||
<option value="claim_reward">claim_reward</option>
|
||||
<option value="position_open">position_open</option>
|
||||
<option value="position_close">position_close</option>
|
||||
<option value="pool_create">pool_create / initialize_pool</option>
|
||||
<option value="pool_admin">pool_admin / config / authority</option>
|
||||
<option value="unknown_non_swap">unknown_non_swap</option>
|
||||
<option value="audit_non_swap_like">audit_non_swap_like</option>
|
||||
<option value="unclassified_instruction">unclassified_instruction</option>
|
||||
</select>
|
||||
<div class="form-text">Use this to find corpus signatures for non-swap decoders without promoting unverified events.</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<label for="demo3HttpRoleInput" class="form-label">HTTP role</label>
|
||||
<input id="demo3HttpRoleInput" type="text" class="form-control" value="history_backfill" />
|
||||
@@ -71,8 +106,20 @@
|
||||
<label for="demo3CandidateLimitInput" class="form-label">Candidate limit</label>
|
||||
<input id="demo3CandidateLimitInput" type="number" min="1" max="100" class="form-control" value="25" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-check mt-2">
|
||||
<input id="demo3ExcludeSwapsInput" class="form-check-input" type="checkbox" />
|
||||
<label for="demo3ExcludeSwapsInput" class="form-check-label">Exclude tx with swap logs</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="form-check mt-2">
|
||||
<input id="demo3IncludeFailedInput" class="form-check-input" type="checkbox" checked />
|
||||
<label for="demo3IncludeFailedInput" class="form-check-label">Include failed tx</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="d-flex flex-wrap gap-2 mt-3">
|
||||
<button id="demo3DiscoverButton" type="button" class="btn btn-primary">Discover on-chain</button>
|
||||
<button id="demo3LocalSearchButton" type="button" class="btn btn-outline-primary">Search local DB</button>
|
||||
@@ -81,7 +128,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-3">Filtres locaux optionnels</h2>
|
||||
@@ -103,15 +150,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-3">Résumé</h2>
|
||||
<div class="row g-2 small">
|
||||
<div class="col-6"><strong>Signatures:</strong> <span id="demo3SummarySignatureCount">0</span></div>
|
||||
<div class="col-6"><strong>Unique candidates:</strong> <span id="demo3SummaryUniqueSignatureCount">0</span></div>
|
||||
<div class="col-6"><strong>Tx fetched:</strong> <span id="demo3SummaryFetchedTxCount">0</span></div>
|
||||
<div class="col-6"><strong>Missing tx:</strong> <span id="demo3SummaryMissingTxCount">0</span></div>
|
||||
<div class="col-6"><strong>Failed tx:</strong> <span id="demo3SummaryFailedTxCount">0</span></div>
|
||||
<div class="col-6"><strong>Skipped failed:</strong> <span id="demo3SummarySkippedFailedTxCount">0</span></div>
|
||||
<div class="col-6"><strong>Skipped swap tx:</strong> <span id="demo3SummarySkippedSwapTxCount">0</span></div>
|
||||
<div class="col-6"><strong>Extracted:</strong> <span id="demo3SummaryExtractedCandidateCount">0</span></div>
|
||||
<div class="col-6"><strong>Rejected by target:</strong> <span id="demo3SummaryRejectedCandidateCount">0</span></div>
|
||||
<div class="col-6"><strong>Candidates:</strong> <span id="demo3SummaryCandidateCount">0</span></div>
|
||||
<div class="col-6"><strong>Local pairs:</strong> <span id="demo3SummaryLocalPairCount">0</span></div>
|
||||
</div>
|
||||
@@ -120,9 +172,13 @@
|
||||
<strong>Target:</strong>
|
||||
<span id="demo3TargetText" class="font-monospace">-</span>
|
||||
</div>
|
||||
<div class="small text-body-secondary mt-2">
|
||||
<strong>Backfill signatures:</strong>
|
||||
<span id="demo3UniqueSignatureText" class="font-monospace">-</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow-sm border-0">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-3">Logs</h2>
|
||||
@@ -131,7 +187,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 col-xxl-8">
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
<div class="card-body">
|
||||
@@ -144,6 +200,7 @@
|
||||
<th>Slot</th>
|
||||
<th>Kind</th>
|
||||
<th>Confidence</th>
|
||||
<th>Data prefix</th>
|
||||
<th>Verified pool</th>
|
||||
<th>Token A</th>
|
||||
<th>Token B</th>
|
||||
@@ -154,13 +211,39 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="demo3OnchainCandidateTableBody">
|
||||
<tr><td colspan="11" class="text-body-secondary">No on-chain candidate.</td></tr>
|
||||
<tr>
|
||||
<td colspan="12" class="text-body-secondary">No on-chain candidate.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-3">Rejected candidate summary</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm align-middle mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Kind</th>
|
||||
<th>Prefix</th>
|
||||
<th>Instruction</th>
|
||||
<th>Reason</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="demo3RejectedSummaryTableBody">
|
||||
<tr>
|
||||
<td colspan="5" class="text-body-secondary">No rejected candidate summary.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-3">Recherche locale DB</h2>
|
||||
@@ -179,13 +262,15 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="demo3LocalPoolPairTableBody">
|
||||
<tr><td colspan="8" class="text-body-secondary">No local pool/pair sample.</td></tr>
|
||||
<tr>
|
||||
<td colspan="8" class="text-body-secondary">No local pool/pair sample.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow-sm border-0">
|
||||
<div class="card-body">
|
||||
<h2 class="h5 mb-3">Raw result JSON</h2>
|
||||
@@ -211,4 +296,4 @@
|
||||
<script type="module" src="ts/demo3.ts" defer></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user