Re-exports§
pub use crate::NativeHandlers;pub use anyhow;
Modules§
- data_
source - data_source module — mirrors graph-ts dataSource
Macros§
Structs§
- Address
- 20-byte Ethereum address.
- BigDecimal
- BigInt
- Contract
- Bound contract for making eth_call.
- Data
Source Context - DataSourceContext — per-instance configuration passed via createWithContext. Mirrors graph-ts DataSourceContext: typed key-value store.
- Entity
- Entity
Cache - Log
- Trigger data passed to native handlers. Represents an Ethereum log entry with transaction/block context. In production, this is populated from graph-node’s trigger data.
Enums§
- BigInt
Sign - A Sign is a
BigInt’s composing element. - Decoded
Param - A decoded event parameter value.
- Entity
IdValue - Value
Traits§
Functions§
- abi_
decode - Decode ABI-encoded bytes using a Solidity type signature string.
Mirrors graph-ts
ethereum.decode(signature, data). - bytes_
from_ hex_ string - Decode a hex string into bytes.
Mirrors graph-ts
Bytes.fromHexString(). Accepts with or without0x/0Xprefix. Panics on invalid hex input — matches graph-ts strict behavior. - bytes_
from_ utf8 - Convert a UTF-8 string into bytes.
Mirrors graph-ts
Bytes.fromUTF8(). - bytes_
to_ hex_ id - bytes_
to_ value - concat_
bytes - Concatenate two byte arrays — used for entity ID generation. Mirrors graph-ts Bytes.concat()
- concat_
i32 - Concatenate bytes with an i32 suffix — used for entity ID generation. Mirrors graph-ts Bytes.concatI32(): appends 4 little-endian bytes of the i32 to the byte array, returns 0x-prefixed hex string.
- decode_
event_ params - Decode event parameters from a log entry using its JSON ABI definition.
- hex_
id_ to_ bytes - read_
bigdecimal - read_
bigint - read_
bool - read_
bytes - read_
i32 - read_
string - read_
value
Type Aliases§
- Bytes
- Bytes type alias