Skip to content

Feat/web3 agent#28

Merged
evkir merged 4 commits into
mainfrom
feat/web3-agent
Jun 15, 2026
Merged

Feat/web3 agent#28
evkir merged 4 commits into
mainfrom
feat/web3-agent

Conversation

@evkir

@evkir evkir commented Jun 15, 2026

Copy link
Copy Markdown
Owner

День 24 — Smart Contract Agent (Web3 заход)

  • web3/agent.py — SmartContractAgent (BaseAgent). Standalone: local .sol path или contract address. Slither-анализ + Immunefi-классификация в run().
  • web3/etherscan.py — EtherscanClient, graceful (нет ETHERSCAN_API_KEY → local-путь основной)
  • web3/slither_tool.py — subprocess slither --json -, парсер results.detectors (реальный 0.11.5 shape), graceful, find_slither (PATH→~/.local/bin)
  • web3/immunefi_severity.py — detector check → Immunefi tier (Critical/High/Medium/Low/Insight), per-check таблица + impact/confidence fallback
  • test_web3.py + fixtures/dao_reentrant.sol — TheDAO-style контракт → slither reentrancy → Critical. Mocked (всегда) + live (skipif без slither).

349 tests green. Live slither на fixture: reentrancy-eth → Critical.

@evkir evkir merged commit 830c42d into main Jun 15, 2026
3 checks passed
@evkir evkir deleted the feat/web3-agent branch June 15, 2026 16:03
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