Skip to content

Commit

Permalink
docs: update it with the final 2200 version?
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 24, 2020
1 parent 1a31093 commit e931e5a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/storage_change_status.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Storage change status

> Analysis of possible storage change statuses in [EIP-2200] / [EIP-1283].
> Analysis of possible storage change statuses in [EIP-2200].
## Cost constants

| Constant | Value |
| -------- | ----- |
| SLOAD | 200 |
| SLOAD | 800 |
| SET | 20000 |
| RESET | 5000 |
| CLEARS | 15000 |
Expand Down Expand Up @@ -40,7 +40,7 @@
<td>0</td>
<td rowspan="2">UNCHANGED</td>
<td rowspan="2">N/A</td>
<td rowspan="2">200 = SLOAD</td>
<td rowspan="2">800 = SLOAD</td>
<td rowspan="2">0</td>
</tr>
<tr>
Expand Down Expand Up @@ -81,16 +81,16 @@
<td>0</td>
<td>DIRTY_SET_TO_CLEARED</td>
<td>yes</td>
<td>200 = SLOAD</td>
<td>19800 = SET - SLOAD</td>
<td>800 = SLOAD</td>
<td>19200 = SET - SLOAD</td>
</tr>
<tr>
<td>X</td>
<td>0</td>
<td>X</td>
<td rowspan="2">DIRTY_CLEARED_TO_SET</td>
<td rowspan="2">yes</td>
<td rowspan="2">200 = SLOAD</td>
<td rowspan="2">800 = SLOAD</td>
<td rowspan="2">-15000 = -CLEARS</td>
</tr>
<tr>
Expand All @@ -104,7 +104,7 @@
<td>Y</td>
<td rowspan="2">DIRTY_RESET_AGAIN</td>
<td rowspan="2">yes</td>
<td rowspan="2">200 = SLOAD</td>
<td rowspan="2">800 = SLOAD</td>
<td rowspan="2">0</td>
</tr>
<tr>
Expand All @@ -118,7 +118,7 @@
<td>0</td>
<td>DIRTY_RESET_TO_CLEARED</td>
<td>yes</td>
<td>200 = SLOAD</td>
<td>800 = SLOAD</td>
<td>15000 = CLEARS</td>
</tr>
<tr>
Expand All @@ -127,11 +127,10 @@
<td>X</td>
<td>DIRTY_RESET_REVERTED</td>
<td>yes</td>
<td>200 = SLOAD</td>
<td>4800 = RESET - SLOAD</td>
<td>800 = SLOAD</td>
<td>4200 = RESET - SLOAD</td>
</tr>
</tbody>
</table>

[EIP-1283]: https://eips.ethereum.org/EIPS/eip-1283
[EIP-2200]: https://eips.ethereum.org/EIPS/eip-2200

0 comments on commit e931e5a

Please sign in to comment.