-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add gas fees for new chains #7635
Conversation
version: 2 | ||
|
||
models: | ||
- name: gas_abstract_fees |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just noting that i'm waiting here, we should focus on getting transfers and new chain PRs done first. |
Too many chains in one pr is hard for debugging, we may need to reduce batch size next time. |
…or nova and corn chains
…extract base_fee from map
…oving code reusability
I think the current output of the views makes sense, but the column definition in the seed may be ambiguous for some chains. |
I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to design a new form for gas testing, but I have no idea yet. Currently all I know is that Gas Used by Txn
need to match the gas_used
column.
closing since we broke out macro into models. we can talk tomorrow on plans moving forward. |
Development notes here:
Abstract's gas fee calculation includes:
L2 execution gas: L2_gas_units * L2_gas_price
Batch overhead gas: L1_base_fee * txn_size + K (where K is a constant for proving costs)
Total = L2_execution + overhead_gas
[OP] Boba Network is an Optimistic Rollup chain that has some specific gas fee considerations. Boba follows these key principles for gas fees:
[OP] Ink is an Ethereum Layer 2 blockchain built on the Optimism OP Stack (Superchain) designed to be the house of DeFi for the Superchain.
As a Superchain L2, the fee for each transaction on Ink has two components:
1. An execution fee for the chain itself (L2 execution fee)
2. A security fee that helps secure the L2 by publishing L2 transactions to Ethereum (L1 data fee)
[OP] Every World Chain transaction consists of two costs:
1. An L2 (execution) fee for executing transactions on the chain itself
2. An L1 (security) fee that covers the estimated cost of publishing the transaction data on Ethereum
[Arb] Corn
As an Arbitrum Orbit chain, Corn's gas fee structure consists of four main components:
[Arb] Nova's gas fee structure includes:
Flare's gas fee mechanism follows an Ethereum-compatible model with some important distinctions:
[ZK] Polygon zkEVM is a ZK rollup solution that leverages zero-knowledge proofs to scale Ethereum,
providing Ethereum-equivalent security while significantly reducing transaction costs.
[ZK] zkSync Era is a ZK rollup that leverages zero-knowledge proofs to scale Ethereum, reducing transaction
costs while inheriting Ethereum's security. The gas fee mechanism on zkSync Era has several unique
characteristics:
[OP] Blast
[ZK] Linea is a Type 2 zero-knowledge rollup (ZK rollup) developed by ConsenSys, focused on EVM equivalence.
It leverages ZK proofs to offer security and scalability without compromising Ethereum compatibility.
Two-Tier Fee Structure:
- L2 Execution Fee: Covers the computational cost of executing transactions on Linea
- L1 Data Availability Fee: Covers the cost of posting transaction data and proofs to Ethereum
Sei Dual Gas Price System:
- Base Gas Price: Set by the protocol and adjusted based on network demand
- Priority Gas Price: Optional additional fee to prioritize transactions during high congestion