You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Developer docs → EVM Spec**: "For the formal specification, see [Dual Gas Model](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/dual-gas-model)."
117
+
-**Developer docs → EVM Spec**: "For the formal specification, see [Dual Gas Model](https://docs.megaeth.com/spec/megaevm/dual-gas-model)."
118
+
-**Developer docs → mega-evme**: "For the full command reference, see [mega-evme](https://docs.megaeth.com/mega-evme)."
112
119
-**EVM Spec → nothing**: The spec is self-contained. It never links to user or developer docs.
Copy file name to clipboardExpand all lines: docs/dev/execution/gas-model.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,5 +130,5 @@ See [Resource Limits](resource-limits.md) for the full limits table, enforcement
130
130
131
131
-[Resource Limits](resource-limits.md) — per-transaction and per-block resource ceilings
132
132
-[EVM Differences](overview.md) — full list of behavioral differences from Ethereum
133
-
-[Dual Gas Model (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/dual-gas-model) — formal specification of compute gas and storage gas
134
-
-[Resource Accounting (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/resource-accounting) — how counters are tracked per opcode
133
+
-[Dual Gas Model (spec)](https://docs.megaeth.com/spec/megaevm/dual-gas-model) — formal specification of compute gas and storage gas
134
+
-[Resource Accounting (spec)](https://docs.megaeth.com/spec/megaevm/resource-accounting) — how counters are tracked per opcode
Copy file name to clipboardExpand all lines: docs/dev/execution/overview.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,19 +43,19 @@ Reading volatile data — `block.timestamp`, `block.number`, oracle storage, or
43
43
This ensures transactions with external dependencies yield quickly and don't block parallel execution.
44
44
45
45
For the full list of triggers, best practices for structuring contracts around this cap, and Solidity examples, see [Volatile Data Access](volatile-data.md).
46
-
For the formal specification, see [Gas Detention](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/gas-detention).
46
+
For the formal specification, see [Gas Detention](https://docs.megaeth.com/spec/megaevm/gas-detention).
47
47
48
48
## Increased Contract Size Limit
49
49
50
50
MegaETH supports contracts up to **512 KB** in size, increased from 24 KB in Ethereum.
51
-
For the formal specification, see [Contract Limits](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/contract-limits).
51
+
For the formal specification, see [Contract Limits](https://docs.megaeth.com/spec/megaevm/contract-limits).
52
52
53
53
## `SELFDESTRUCT` with EIP-6780 Semantics
54
54
55
55
The `SELFDESTRUCT` opcode follows [EIP-6780](https://eips.ethereum.org/EIPS/eip-6780) semantics.
56
56
It only destroys a contract when called within the same transaction that created the contract.
57
57
In all other cases, `SELFDESTRUCT` behaves as a simple Ether transfer without destroying the contract or clearing its storage.
58
-
For the formal specification, see [SELFDESTRUCT](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/selfdestruct).
58
+
For the formal specification, see [SELFDESTRUCT](https://docs.megaeth.com/spec/megaevm/selfdestruct).
59
59
60
60
## No Storage Gas Refund for SSTORE Resets
61
61
@@ -78,7 +78,7 @@ The parent call frame retains 2% instead of ~1.6%, so subcalls receive slightly
78
78
Review any patterns that rely on precise gas forwarding calculations.
79
79
{% endhint %}
80
80
81
-
For the formal specification, see [Gas Forwarding](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/gas-forwarding).
81
+
For the formal specification, see [Gas Forwarding](https://docs.megaeth.com/spec/megaevm/gas-forwarding).
82
82
83
83
## Precompile Gas Overrides
84
84
@@ -90,11 +90,11 @@ Two precompiles have adjusted gas costs:
90
90
| KZG Point Evaluation |`0x0A`| 100,000 gas (2× the standard Prague cost of 50,000) |
91
91
| ModExp |`0x05`|[EIP-7883](https://eips.ethereum.org/EIPS/eip-7883) gas schedule (raises the cost floor for large-exponent calls) |
92
92
93
-
For the formal specification, see [Precompiles](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/precompiles).
93
+
For the formal specification, see [Precompiles](https://docs.megaeth.com/spec/megaevm/precompiles).
94
94
95
95
## Related Pages
96
96
97
97
-[Gas Model](gas-model.md) — full dual gas model and resource limits
98
98
-[System Contracts](system-contracts.md) — native oracle interface and high-precision timestamp
99
99
-[Volatile Data Access](volatile-data.md) — compute gas cap on volatile data reads
Copy file name to clipboardExpand all lines: docs/dev/execution/resource-limits.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Note: "Unlimited" means no dedicated per-block limit exists for that resource, b
34
34
35
35
For Data Size, KV Updates, and State Growth, block-level usage is the sum of usage across all transactions in the block.
36
36
37
-
For formal definitions of resource limits and accounting, see [Resource Limits (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/resource-limits) and [Resource Accounting (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/resource-accounting).
37
+
For formal definitions of resource limits and accounting, see [Resource Limits (spec)](https://docs.megaeth.com/spec/megaevm/resource-limits) and [Resource Accounting (spec)](https://docs.megaeth.com/spec/megaevm/resource-accounting).
38
38
39
39
## Enforcement
40
40
@@ -50,7 +50,7 @@ The block builder stops adding transactions once the block's cumulative gas or D
50
50
51
51
### During execution
52
52
53
-
**Compute Gas**, **Data Size**, **KV Updates**, and **State Growth** are enforced while the transaction runs (see [formal spec](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/resource-limits)).
53
+
**Compute Gas**, **Data Size**, **KV Updates**, and **State Growth** are enforced while the transaction runs (see [formal spec](https://docs.megaeth.com/spec/megaevm/resource-limits)).
54
54
55
55
**Per-transaction**: when a transaction exceeds any of these four limits:
56
56
@@ -76,5 +76,5 @@ Since Compute Gas is a component of total gas, and each transaction's total gas
76
76
-[Gas Model](gas-model.md) — compute gas, storage gas, and the bucket multiplier
77
77
-[Gas Estimation](../send-tx/gas-estimation.md) — estimate gas correctly and avoid common errors
78
78
-[EVM Differences](overview.md) — full list of behavioral differences from Ethereum
79
-
-[Resource Limits (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/resource-limits) — formal specification of limit enforcement
80
-
-[Resource Accounting (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/resource-accounting) — how counters are tracked per opcode
79
+
-[Resource Limits (spec)](https://docs.megaeth.com/spec/megaevm/resource-limits) — formal specification of limit enforcement
80
+
-[Resource Accounting (spec)](https://docs.megaeth.com/spec/megaevm/resource-accounting) — how counters are tracked per opcode
Copy file name to clipboardExpand all lines: docs/dev/execution/system-contracts.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,6 @@ Addresses and interfaces are subject to change before release.
137
137
## Related Pages
138
138
139
139
-[Volatile Data Access](volatile-data.md) — compute gas cap, best practices for reading volatile data
140
-
-[System Contracts (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/system-contracts/overview) — formal specification of the system contract registry
141
-
-[Oracle (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/system-contracts/oracle) — underlying oracle contract that powers the High-Precision Timestamp and other services
142
-
-[KeylessDeploy (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/system-contracts/keyless-deploy) — keyless deployment sandbox and validation rules
140
+
-[System Contracts (spec)](https://docs.megaeth.com/spec/system-contracts/overview) — formal specification of the system contract registry
141
+
-[Oracle (spec)](https://docs.megaeth.com/spec/system-contracts/oracle) — underlying oracle contract that powers the High-Precision Timestamp and other services
142
+
-[KeylessDeploy (spec)](https://docs.megaeth.com/spec/system-contracts/keyless-deploy) — keyless deployment sandbox and validation rules
Copy file name to clipboardExpand all lines: docs/dev/execution/volatile-data.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Under the current absolute model, the same transaction would have only 5M remain
24
24
25
25
This change removes the penalty for accessing volatile data late in a transaction's execution.
26
26
Under relative detention, reading volatile data **as late as possible** becomes a valid optimization — see [Best Practices](#best-practices).
27
-
For the formal definition, see [Gas Detention](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/gas-detention).
27
+
For the formal definition, see [Gas Detention](https://docs.megaeth.com/spec/megaevm/gas-detention).
28
28
29
29
</details>
30
30
@@ -109,7 +109,7 @@ function processWithTimestamp(uint256[] calldata items) external {
109
109
```
110
110
111
111
Under the current absolute cap, read order makes no difference — the 20M ceiling applies to total compute gas regardless.
112
-
For the formal definition, see [Gas Detention](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/gas-detention).
112
+
For the formal definition, see [Gas Detention](https://docs.megaeth.com/spec/megaevm/gas-detention).
113
113
114
114
</details>
115
115
@@ -118,4 +118,4 @@ For the formal definition, see [Gas Detention](https://app.gitbook.com/o/iBzILuN
118
118
-[EVM Differences](overview.md) — full list of MegaEVM behavioral differences
119
119
-[Gas Estimation](../send-tx/gas-estimation.md) — estimate gas correctly on MegaETH
120
120
-[Debugging Transactions](../send-tx/debugging.md) — trace gas consumption with mega-evme
121
-
-[Gas Detention (spec)](https://app.gitbook.com/o/iBzILuNyLtuxU3vUEuPe/s/apRp1sxFYuGhHAo7Y2Pz/evm/gas-detention) — formal specification of the gas detention mechanism
121
+
-[Gas Detention (spec)](https://docs.megaeth.com/spec/megaevm/gas-detention) — formal specification of the gas detention mechanism
0 commit comments