Add Fresh Markets Watch submission#233
Open
go165 wants to merge 5 commits into
Open
Conversation
Author
|
Update: hardened the Fresh Markets Watch submission with best-effort on-chain enrichment. New in commit
Validation rerun locally and on the Beijing deployment host: cd submissions/fresh-markets-watch
npm run build
npm test
npm run lint
npm audit --audit-level=moderate
FRESH_CHAIN=base FRESH_FROM_BLOCK=47264078 FRESH_TO_BLOCK=47264078 npm run fresh:sampleThe historical Base sample returns non-null |
Author
|
Update: pushed PR head Additional validation completed on the Beijing x402 deployment:
|
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.
Fixes #1
Summary
fresh-markets-watch, an on-chain AMM factory event scanner.PairCreatedand V3PoolCreatedlogs using public RPCeth_getLogs.markets[]with pair/pool address, token addresses, factory/protocol, event type, fee where available, block/time evidence, transaction hash, and log index.scan_evidencewith requested/scanned blocks, factory topics, raw log count, decoded market count, decode failures, and observed false-positive rate for each invocation.init_liquidityandtop_holderswith read-only on-chain evidence when possible: V2getReserves()at the creation block, V2 LP mintTransferlogs from the creation receipt, and V3slot0()/liquidity()at the creation block; unavailable evidence is explicitly marked instead of fabricated.Validation Commands
Validation passed after latest PR head
51b50a0:npm run buildnpm test(6/6)npm run lintnpm audit --audit-level=moderate(0 vulnerabilities)raw_log_count=0,decoded_market_count=0,decode_failure_count=0, and observed false-positive rate 0Live historical validation passed:
PairCreatedevent from public RPC472640780xb49425c227c48148d0f5cf9eae48e68a89c195980x4200000000000000000000000000000000000006,0xf95666e641107aff9b84e788154082e7a37aa0140x4aec8920d00546b03e9c121aa17366e1791671766beefd1941cd0d245260a1c2init_liquidity.reserve0_raw:70000000000000init_liquidity.reserve1_raw:26226150567685013279180200x9dc039703a6e7f8bc1ad3806e7c1e5e9bb7044ef13549282415456364892scan_evidence.raw_log_count=1scan_evidence.decoded_market_count=1scan_evidence.decode_failure_count=0scan_evidence.observed_false_positive_rate_pct=0Server validation passed on the Beijing deployment:
fresh-markets-watch.serviceactive on internal port 8802npm run build,npm test(6/6),npm run lint, andnpm audit --audit-level=moderate$0.01Supported Chains
basearbitrumDefault factories include configured V2 and V3 factory contracts for those chains. Callers may pass
factoriesto restrict the scan to one or more configured factories.Deployment / x402 URL
Current public deployment:
POST https://gpt55.558686.xyz/fresh-markets-watch/entrypoints/watch_fresh_markets/invokePOST https://gpt55.558686.xyz/fresh-markets-watch/entrypoints/fresh-markets/invokePOST https://gpt55.558686.xyz/fresh-markets-watch/entrypoints/markets/invokePOST https://gpt55.558686.xyz/fresh-markets-watch/invokePublic x402 smoke test passed: unpaid invoke returns HTTP 402 on Base (
eip155:8453) at$0.01per request.Payout Wallet
0x1f0130669ca6fd02e025a984cc038f139df19a2f