nuthatch data model
The `nest` nest on gme-chain. (seeded from the ABI - edit semantic.toml to improve this)
COVERAGE
sealed_through = 0 (rows at or below this block are sealed Parquet);
tip = 37 - the `sql` tool reads both the sealed rows and the live tip above them.
first_indexed = 0 - no block before it is in this nest; indexed from the configured start_block with no --backfill, so the `balances` view is complete if that is the deployment block (which `init` sets).
TABLES (one per contract event; query via the `sql` tool)
factory__pair_created - `PairCreated(address,address,address,uint256)` events emitted by the `factory` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per PairCreated(address,address,address,uint256) event
columns: token0 (address), token1 (address), pair (address), arg3 (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT
_overflow is that same sum): arg3 → arg3_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: arg3
pair__approval - `Approval(address,address,uint256)` events emitted by the `pair` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Approval(address,address,uint256) event
columns: owner (address), spender (address), value (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): value → value_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: value
pair__burn - `Burn(address,uint256,uint256,address)` events emitted by the `pair` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Burn(address,uint256,uint256,address) event
columns: sender (address), amount0 (uint256), amount1 (uint256), to (address)
⚠ reserved-word columns - double-quote them: "to"
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): amount0 → amount0_dec, amount1 → amount1_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: amount0, amount1
pair__mint - `Mint(address,uint256,uint256)` events emitted by the `pair` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Mint(address,uint256,uint256) event
columns: sender (address), amount0 (uint256), amount1 (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): amount0 → amount0_dec, amount1 → amount1_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: amount0, amount1
pair__swap - `Swap(address,uint256,uint256,uint256,uint256,address)` events emitted by the `pair` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Swap(address,uint256,uint256,uint256,uint256,address) event
columns: sender (address), amount0In (uint256), amount1In (uint256), amount0Out (uint256), amount1Out (uint256), to (address)
⚠ reserved-word columns - double-quote them: "to"
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): amount0In → amount0In_dec, amount1In → amount1In_dec, amount0Out → amount0Out_dec, amount1Out → amount1Out_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: amount0In, amount1In, amount0Out, amount1Out
pair__sync - `Sync(uint112,uint112)` events emitted by the `pair` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Sync(uint112,uint112) event
columns: reserve0 (uint112), reserve1 (uint112)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): reserve0 → reserve0_dec, reserve1 → reserve1_dec
pair__transfer - `Transfer(address,address,uint256)` events emitted by the `pair` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Transfer(address,address,uint256) event
columns: from (address), to (address), value (uint256)
⚠ reserved-word columns - double-quote them: "from", "to"
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): value → value_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: value
token_bridge_gw__deposit_finalized - `DepositFinalized(address,address,address,uint256)` events emitted by the `token_bridge_gw` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per DepositFinalized(address,address,address,uint256) event
columns: l1Token (address), _from (address), _to (address), _amount (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): _amount → _amount_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: _amount
token_bridge_gw__tx_to_l1 - `TxToL1(address,address,uint256,bytes)` events emitted by the `token_bridge_gw` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per TxToL1(address,address,uint256,bytes) event
columns: _from (address), _to (address), _id (uint256), _data (bytes)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): _id → _id_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: _id
token_bridge_gw__withdrawal_initiated - `WithdrawalInitiated(address,address,address,uint256,uint256,uint256)` events emitted by the `token_bridge_gw` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per WithdrawalInitiated(address,address,address,uint256,uint256,uint256) event
columns: l1Token (address), _from (address), _to (address), _l2ToL1Id (uint256), _exitNum (uint256), _amount (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): _l2ToL1Id → _l2ToL1Id_dec, _exitNum → _exitNum_dec, _amount → _amount_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: _l2ToL1Id, _exitNum, _amount
token_bridge_router__default_gateway_updated - `DefaultGatewayUpdated(address)` events emitted by the `token_bridge_router` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per DefaultGatewayUpdated(address) event
columns: newDefaultGateway (address)
token_bridge_router__gateway_set - `GatewaySet(address,address)` events emitted by the `token_bridge_router` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per GatewaySet(address,address) event
columns: l1Token (address), gateway (address)
token_bridge_router__transfer_routed - `TransferRouted(address,address,address,address)` events emitted by the `token_bridge_router` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per TransferRouted(address,address,address,address) event
columns: token (address), _userFrom (address), _userTo (address), gateway (address)
usdg__approval - `Approval(address,address,uint256)` events emitted by the `usdg` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Approval(address,address,uint256) event
columns: owner (address), spender (address), value (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): value → value_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: value
usdg__transfer - `Transfer(address,address,uint256)` events emitted by the `usdg` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Transfer(address,address,uint256) event
columns: from (address), to (address), value (uint256)
⚠ reserved-word columns - double-quote them: "from", "to"
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): value → value_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: value
wgme__approval - `Approval(address,address,uint256)` events emitted by the `wgme` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Approval(address,address,uint256) event
columns: src (address), guy (address), wad (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): wad → wad_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: wad
wgme__deposit - `Deposit(address,uint256)` events emitted by the `wgme` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Deposit(address,uint256) event
columns: dst (address), wad (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): wad → wad_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: wad
wgme__transfer - `Transfer(address,address,uint256)` events emitted by the `wgme` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Transfer(address,address,uint256) event
columns: src (address), dst (address), wad (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): wad → wad_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: wad
wgme__withdrawal - `Withdrawal(address,uint256)` events emitted by the `wgme` contract. (seeded from the ABI - edit semantic.toml to improve this)
grain: one row per Withdrawal(address,uint256) event
columns: src (address), wad (uint256)
⚠ big-int columns (exact text; SUM/AVG of `_dec` is the values that fit, and WHERE NOT _overflow is that same sum): wad → wad_dec
⚠ wide columns (>128-bit) whose `_dec` is NULL above 38 digits. A sum of `_dec` is the values that fit; WHERE NOT _overflow is that same sum. Ids, nonces and hashes stay on the raw column: wad
VIEWS (incrementally maintained; reorgs retract automatically)
balances - per-address net balance = Σ(received) − Σ(sent), i128 base units as decimal strings,
for ERC-20 Transfer tables. Query via the `balance`/`top_balances` tools.
FACTORIES (RFC-0009; only in a nest with templates/factories)
Children of a template share tables (`pool__swap`, …), distinguished by the `address` column. Each
template has a `{template}__children` view: which children were discovered, when, by which parent.