Skip to content

Update data glossary #1651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 116 additions & 40 deletions pages/app-developers/tools/data-and-dashboards/data-glossary.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Data glossary
description: >-
This glossary explains various data terms.
This glossary explains various data terms and metrics used across the Superchain ecosystem.
lang: en-US
content_type: guide
topic: data-glossary
Expand All @@ -12,101 +12,177 @@ categories:
is_imported_content: 'false'
---

import { Callout } from 'nextra/components'

# Data glossary

This glossary is a living document and will be updated over time as new metrics emerge or definitions evolve.
This glossary is a living document that will be updated over time as new metrics emerge or definitions evolve. Each metric includes its definition, calculation method, and importance to the ecosystem.

## Measure Demand
## Measuring demand

### Transaction Fees Paid

**Metric:** Real Economic Value (REV)

**Definition:** The total fees paid to execute a transaction onchain. This includes both the traditional gas fees required for inclusion onchain and additional fees paid to transaction execution services (e.g., Jito, Flashbots, Timeboost).

**Calculation:** Gas Fees + Out-of-Protocol Tips (e.g., Jito, Flashbots, Timeboost)
**Calculation:**

* Out-of-Protocol Tips can be sourced from Defillama's MEV category
```
REV = Gas Fees + Out-Of-Protocol Tips
```

**Why it matters:**
<Callout type="info">
Out-Of-Protocol tips can be sourced from DefiLlama's MEV category*
</Callout>

* REV is a topline metric that "measures the monetary demand to transact onchain" (Blockworks).
* It's used as a proxy for users' willingness to pay, capturing all transaction fees to better reflect real demand (excludes app-level fees like DEX swap costs).
**Why it matters:**
REV serves as a topline metric that "measures the monetary demand to transact onchain" (Blockworks). It acts as a proxy for users' willingness to pay, capturing all transaction fees to better reflect real demand while excluding app-level fees like DEX swap costs.

### Revenue

**Metric:** Estimated Optimism Collective Revenue (Collective Revenue)

**Definition:** The amount of ETH expected to be earned by the Optimism Collective from revenue sharing.
**Definition:** The amount of ETH expected to be earned by the Optimism Collective from revenue sharing across the Superchain.

**Calculation:**
For each chain, the collective revenue is the greater of:

**Calculation:** For each chain, take the greater of (a) 2.5% of Chain Revenue or (b) 15% of Net Onchain Profit. OP Mainnet contributes 100% of Net Onchain Profit.
```
max(2.5% × Chain Revenue, 15% × Net Onchain Profit)
```
*Special case: OP Mainnet contributes 100% of net Onchain profit*

**Key Components:**

* **Net Onchain Profit:** Chain Revenue - L1 Gas Fees
* **Chain Revenue:** Sum of the L1 Data Fee + L2 Base Fee + L2 Priority Fee + L2 Operator Fee (Also includes any additional fee types added in the future.)
* *L1 Gas Fees:*\* Total gas fees spent by the chain on L1 in transaction batches (including blob costs) and state output submissions or dispute games.
* **Transaction Batches:** All transactions where the transaction from address is the `batcherHash` address and the transaction to address is the `batchInbox` as defined in the chains' `SystemConfigProxy` contract.
* **State Output Submissions or Dispute Games:** All transactions where the transaction from address is the `Proposer` and the transaction to address is either the `outputOracleProxy` or the `disputeGameFactoryProxy` as defined in the chains' `SystemConfigProxy` contract.
* Each chain's `SystemConfigProxy` contract can be found in the Superchain Registry.
* **Net Onchain Profit:**
```
Net Onchain Profit = Chain Revenue - L1 Gas Fees
```

**Why it matters:**
* **Chain Revenue:**
```
Chain Revenue = L1 Data Fee + L2 Base Fee + L2 Priority Fee + L2 Operator Fee
```
*(Includes any additional fee types added in the future)*

* **L1 Gas Fees:** Total gas fees spent by the chain on L1, including:
* Transaction batches (including blob costs)
* State output submissions or dispute games

**Transaction classification:**

* This is what the Optimism Collective earns by operating the Superchain, which can be directed by governance to support ecosystem growth.
* See How (and why) the Superchain drives fees to the Optimism Collective (Optimism blog, Aug 2024)
* **Transaction batches:** Transactions where:
* `from` address = `batcherHash` address
* `to` address = `batchInbox` address
* Both are defined in the chain's [`SystemConfigProxy`](/stack/smart-contracts/smart-contracts#systemconfig) contract

* **State output submissions/dispute games:** Transactions where:
* `from` address = `Proposer`
* `to` address = `outputOracleProxy` OR `disputeGameFactoryProxy`
* Both are defined in the chain's `SystemConfigProxy` contract
*Each chain's `SystemConfigProxy` contract can be found in the [Superchain Registry](/superchain/superchain-registry)*

**Why it matters:**
This represents what the Optimism Collective earns by operating the Superchain, which can be directed by governance to support ecosystem growth. See [How (and why) the Superchain drives fees to the Optimism Collective](https://optimism.mirror.xyz/ZfAOqiAH8-xjpgfX_PdQBa1dG4QRgKkJkYe08GvGJR8) (Optimism blog, Aug 2024).

## Onchain Signals

### Value Onchain

**Metric:** Total Value Locked (TVL)

**Definition:** "Value of all coins held in smart contracts of the protocol" (Defillama).
**Definition:** The total USD value of all assets held in smart contracts across the protocol, as defined by DefiLlama.

**Calculation:** The sum of all USD value of assets locked in applications, as reported by DefiLlama.
**Calculation:**

```
TVL = Σ (USD value of assets locked)
```
<Callout type="info">
TVL can be priced in USD or a crypto asset like ETH, but both are subject to price volatility. USD is often used because it's easier to interpret and consistent across the broader crypto ecosystem.
</Callout>

**Why it matters:**
TVL represents the supply side of onchain economic activity, particularly for protocols such as Decentralized Exchanges (DEXs) and lending markets. Strong TVL in strategic locations enables greater onchain demand.

* TVL can be priced in USD or a crypto asset like ETH, but both are subject to price volatility. USD is often used because it's easier to interpret and consistent across the broader crypto ecosystem.
#### Measuring growth: Net TVL Flows

**Why it Matters:** TVL represents the supply side of onchain economic activity for use in protocols such as Decentralized Exchanges (DEXs) and lending markets. Strong TVL in the right places may enable greater onchain demand.
Since TVL is influenced by market fluctuations, it can be misleading for measuring true growth. Net TVL Flows adjusts for this by tracking net changes in token balances at current prices.

#### How to Measure Growth: Net TVL Flows
**Calculation:**

Because TVL is influenced by market fluctuations, it can be misleading when trying to measure true growth or user behavior. Net TVL Flows can adjust for this by tracking the net change in token balances, valued at current prices.
```
Net TVL Flows = (tokens on day N - tokens on day 0) × price on day N
```

**Calculation:** ( `# of Tokens on Day N` - `# of Tokens on Day 0` ) \* `Price of Tokens on Day N`
**Example:**

**Example:** If an app has 100,000 ETH locked on Day 0 when ETH/USD is $2,000, and 90,000 ETH locked at $3,000 on Day N:
* Day 0: 100,000 ETH locked at $2,000/ETH = $200M TVL
* Day N: 90,000 ETH locked at $3,000/ETH = $270M TVL

* Net TVL Flows = −10,000 ETH × $3,000 = $30 million in net outflows
* Naive TVL change would suggest growth: $200 million → $270 million
**Analysis:**

## Network Usage & Infrastructure
* Net TVL Flows = −10,000 ETH × $3,000 = **$30M net outflows**
* Naive TVL change would suggest growth: $200M → $270M

## Network usage & infrastructure

### Computational demand

**Metric:** Gas Used per Second (gas/s)

**Definition:** "Gas refers to the unit that measures the amount of computational effort required to execute specific operations on Ethereum" (ethereum.org). Gas Used is tracked as an average rate per second for simplicity.
**Definition:** Gas refers to the unit that measures the amount of computational effort required to execute specific operations on [Ethereum](https://ethereum.org/en/developers/docs/gas/#what-is-gas).
Gas Used is tracked as an average rate per second for simplicity.

**Why it Matters:** Gas, sometimes referred to as blockspace, is the limited resource that blockchains provide. Gas used shows how much of that resource is actually being consumed.
**Why it matters:**
Gas (also called blockspace) is the limited resource that blockchains provide. Gas usage shows how much of that resource is actually being consumed, indicating network utilization and demand.

**Caution:** Gas is only comparable across chains that use Ethereum-equivalent gas units.
<Callout type="info">
Gas is only comparable across chains that use Ethereum-equivalent gas units.
</Callout>

### User Experience (UX)

**Metric:** Median Transaction Fee (USD)

**Definition:** The median gas fee paid to submit a transaction, expressed in USD for simplicity and easier comparison across ecosystems.
**Definition:** The median gas fee paid to submit a transaction, expressed in USD for simplicity and cross-ecosystem comparison.

**Calculation:**

```
Median Fee = median(All transaction fees over period)
```

*Converted to USD at transaction time*

**Calculation:** Median of all transaction fees over a period of time, marked at the USD price at the time of the transaction.
**Why it matters:**
This metric serves as a proxy for transaction cost accessibility. Lower median fees:

* Enable broader usage by reducing friction
* Lower breakeven costs for applications
* Unlock use cases that would otherwise be cost-prohibitive

## Market position

**Why it Matters:** This metric serves as a proxy for the cost to transact. Lower median fees enable broader usage by reducing friction, lowering breakeven costs, and unlocking use cases that would otherwise be cost-prohibitive.
### Market share

## Market Share
**Definition:** The Superchain's share of any given metric within a broader market segment (e.g., L2 ecosystem, total crypto market).

**Definition:** The Superchain's share of a broader market segment for any measure (e.g., L2s, total crypto).
**Calculation:**

```
Market share = (Superchain Metric Value / Total Market Metric Value)
```

**Why it matters:**
Market share helps isolate whether growth is driven by Superchain-specific factors or broader market trends:

**Calculation:** Superchain Metric Value / Total Market Metric Value
* **Rising share** → Superchain is outperforming the market
* **Declining share** → Other ecosystems are growing faster
* **Stable share** → Growth is proportional to market trends

**Why it Matters:** Market share helps isolate whether growth is driven by the Superchain itself, or is simply part of a broader market trend. A rising share signals outperformance, while a declining share suggests that other ecosystems are growing faster.
## Metrics summary

| Metric | What It Measures | Why It Matters |
| ------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------- |
Expand Down
2 changes: 0 additions & 2 deletions words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ datacap
DATADIR
datadir
Defi
Defillama's
Devnet
devnet
Devnets
Expand Down Expand Up @@ -277,7 +276,6 @@ Openfort
oplabs
opnode's
outfile
outperformance
Pausability
pcscdpath
Pectra
Expand Down