Skip to content

feat: EVM exec harness — GMGN ETH/BSC/Base revenue - #1822

Merged
Flotapponnier merged 7 commits into
devfrom
feat/evm-exec
Aug 11, 2026
Merged

feat: EVM exec harness — GMGN ETH/BSC/Base revenue#1822
Flotapponnier merged 7 commits into
devfrom
feat/evm-exec

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

  • New harness harnesses/evm-exec/ (Go): collector + materializer tracking GMGN fee collector 0xb8159ba378904f803639d274cec79f788931c9c8 on Ethereum, BSC, Base
  • ETH native via Etherscan v2 txlist + txlistinternal (250 ms rate limit, 10k cap handled)
  • BSC BNB via NodeReal nr_getAssetTransfers with pageKey pagination
  • USDC on all 3 chains via eth_getLogs with adaptive block-range (halves on -32005/-32602)
  • All amounts use *big.Int end-to-end — no int64 overflow possible
  • event_key column disambiguates intra-tx multi-transfers (multicall, internal splits)
  • Migration 004_evm_exec.sql: 4 tables, index on (platform, chain, block_time DESC)
  • /api/evm-revenue route added to solana-exec-api with CoinGecko price cache (15 min TTL)
  • UI: RevenueSummary card (platform × chain 24h USD), ExecChainTabs (Solana/ETH/BSC/Base), updated /apps/exec

Deploy checklist (VPS)

  • Rotate Etherscan + NodeReal keys
  • psql $DATABASE_URL < migrations/004_evm_exec.sql
  • Create /run/ocb/.env.evm-exec with new keys
  • docker compose ... up -d --build evm-exec-collector evm-exec-materializer solana-exec-api

Out of scope (separate tickets)

  • Solana revenue exact measurement (Step 0.2)
  • Base native ETH (no free trace API)
  • Other EVM platforms (Maestro, Banana Gun, Trojan)

- harnesses/evm-exec: Go collector + materializer tracking GMGN fee collector
  0xb8159ba378904f803639d274cec79f788931c9c8 across Ethereum, BSC, Base
- ETH native via Etherscan v2 txlist+txlistinternal; BSC BNB via NodeReal
  nr_getAssetTransfers (paginated); ERC-20 USDC via eth_getLogs adaptive range
- All amounts use *big.Int end-to-end; event_key disambiguates intra-tx transfers
- Migration 004_evm_exec.sql: evm_exec_events, cursors, block_times, facts
- solana-exec-api: new /api/evm-revenue route with CoinGecko price cache (15min)
- UI: RevenueSummary card (platform x chain 24h USD), ExecChainTabs
  (Solana/Ethereum/BSC/Base selector), updated /apps/exec page
@Flotapponnier
Flotapponnier merged commit 2d59228 into dev Aug 11, 2026
1 check failed
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.

1 participant