| Crates.io | substreams-abis |
| lib.rs | substreams-abis |
| version | 0.4.6 |
| created_at | 2025-02-24 19:29:11.469448+00 |
| updated_at | 2025-09-25 01:12:56.431253+00 |
| description | Substreams ABIs |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1567852 |
| size | 7,204,503 |
This directory contains standard ABIs for the various blockchains that Substreams supports.
Ethereum, Base, BSC, ArbOne, Polygon,...
ERC-20ERC-721ERC-1155ERC-2981ERC-4626ERC-777ERC-3643Uniswap V2
PairFactoryUniswap V3
PoolFactoryUniswap V4
PoolManagerENS V1
ENSRegistryEthRegistrarControllerPublicResolverReverseRegistrarNameWrapperSeaport
OrderFulfilledOrderCancelledOrderValidatedOrdersMatchedSolana, Eclipse, Solana Devnet
spl-tokenspl-memoEOS, WAX, Telos, Ultra,...
eosio.tokeneosio.systemabi section in the JSON file.evm/token/ERC20.json).cargo buildmod.rs file(s).cargo test to ensure everything is working....
use substreams_abi::evm::token::erc20::events::Transfer;
// Iterates over successful transactions
for trx in block.transactions() {
// Iterates over all logs in the transaction, excluding those from calls that were not recorded to the chain's state.
// The logs are sorted by their ordinal and returned as pairs of (log, call) where call is the call that produced the log.
for (log, call_view) in trx.logs_with_calls() {
// -- Transfer --
let transfer = match Transfer::decode(&log) {
Some(transfer) => transfer,
None => continue,
};
// transfer.from => 6D1D1ebe7dA598194293784252659e862d55b52c
// transfer.to => c7bBeC68d12a0d1830360F8Ec58fA599bA1b0e9b
// transfer.value => 3400000000
}
}