Skip to content

feat: gas costs #31

Open
Open
@mds1

Description

@mds1

Data to include

  • The 21,000 intrinsic gas cost, calldata costs, etc
  • Opcode gas cost differences. We already have their gas costs are in the opcode section, but differences should be listed here for completeness. We can import the opcode data as a starting point, since it has gas costs.
  • Things like memory expansion cost, SSTORE rules, access lists, refunds. This and this are good references for mainnet gas costs.
  • L2s post calldata on L1 which should be accounted for
  • Gas limit
  • Comparison of EIP-1559 parameters, since they can be adjusted
  • Maybe can show estimated transaction costs using something like https://l2fees.info/ (however we don't currently have any async calls and I'd like to keep it that way for now)

There's a lot here, so consider splitting this into multiple PRs for simplicity. There also might be some duplicate data from #35 so consider how to reuse the data

Between #35, #37, and the existing opcode data, I think this PR will add little new data and simply reformat existing data

Metadata

Metadata

Assignees

No one assigned

    Labels

    data updateAdd or modify data fetched for chains

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions