rain-erc
ERC-related utilities for the Rain Protocol ecosystem, in Rust.
What's here
erc165— Probe arbitrary contracts forIERC165support. The probe is spec-compliant: it distinguishes execution-revert results (treated as "interface not supported", per EIP-165) from genuine RPC / decoding errors (returned asErr). Works against anyalloy::providers::Provider.
Install
[]
= "0.1"
Use
use Address;
use ProviderBuilder;
use supports_erc165;
let provider = new.connect_http;
let contract: Address = "0x...".parse?;
if supports_erc165.await?
Develop
Requires Nix with flakes:
CI runs via rainlanguage/rainix reusable workflows.
License
CAL-1.0.