Functions and packages for transformations.
templates.token_transfers(block)
: pass in an entire block (EVM or not) and get back all of the token transfers within itutils.evmAddressToChecksum(address)
: convert an EVM address to its checksum formutils.evmChainToId(chain)
: convert an EVM chain name to a chainId
; try block._network
to get the current chain nameutils.evmDecodeLog(log, signatures[])
: try decoding an EVM log against a list of event signaturesutils.evmDecodeLogWithMetadata(log, signatures[])
: same as evmDecodeLog
, but also return the name of the matching eventutils.evmMethodSignatureToHex(signature)
: convert an EVM event signature (e.g. from an ABI) to its topic0, hexadecimal form