Skip to content

feat: replace ant-evm and libp2p with evmlib#19

Merged
jacderida merged 4 commits intoWithAutonomi:mainfrom
grumbach:merge-evmlib
Mar 31, 2026
Merged

feat: replace ant-evm and libp2p with evmlib#19
jacderida merged 4 commits intoWithAutonomi:mainfrom
grumbach:merge-evmlib

Conversation

@grumbach
Copy link
Copy Markdown
Contributor

Summary

  • Remove ant-evm, libp2p, and multihash dependencies from ant-core
  • All payment types now come from evmlib directly
  • peer_id_to_encoded() simplified from hex→multihash→libp2p roundtrip to EncodedPeerId::new(*peer_id.as_bytes())
  • Fixed direct indexing (prepared[0]) with safe .first() access
  • ~530 transitive dependencies removed from lock file

Context

Depends on WithAutonomi/evmlib#3 and WithAutonomi/ant-node#53.

Test plan

  • cargo check -p ant-core passes
  • cargo fmt + clippy clean
  • cargo test --lib -p ant-core — 108 tests pass
  • E2E tests with local devnet

grumbach and others added 3 commits March 31, 2026 15:09
Remove ant-evm, libp2p, and multihash dependencies. All payment types
now come from evmlib directly.

Key changes:
- All ant_evm:: imports replaced with evmlib:: equivalents
- peer_id_to_encoded() simplified from hex→multihash→libp2p roundtrip
  to a single EncodedPeerId::new(*peer_id.as_bytes())
- Direct indexing in batch.rs replaced with safe .first() access

This removes ~530 transitive dependencies from the lock file.
Replace git-based dependencies with crates.io versions now that both
crates have been published.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The rebase conflict resolution dropped imports needed by both
production code and tests: Amount, QuoteHash, RewardsAddress,
EncodedPeerId, PaymentQuote, ProofOfPayment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jacderida jacderida merged commit 63613b6 into WithAutonomi:main Mar 31, 2026
12 checks passed
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.

2 participants