Skip to content
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

EIP-1895: Improvements #2153

Merged
merged 3 commits into from
Jul 2, 2019
Merged
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
19 changes: 10 additions & 9 deletions EIPS/eip-1985.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,24 @@ by eliminating unrealistic edge cases.
## Specification

If `block.number >= {FORK_BLOCK}`, the following value ranges are introduced.
They restrict the results (i.e. values pushed to the stack) of the opcodes listed below.
They restrict the results (i.e. values pushed to the stack) of the instructions listed below.

1. *gas*, *gas limit*, *block gas limit*
is a range between `0` and `9223372036854775807` (`2**63 - 1`).
It affects following the opcodes:
is a range between `0` and `0x7fffffffffffffff` (`2**63 - 1`, `9223372036854775807`).
It affects the following instructions:
- `GASLIMIT` (`0x45`),
- `GAS` (`0x5a`).

2. *block number*, *timestamp*
is a range between `0` and `9223372036854775807` (`2**63 - 1`).
It affects the following opcodes:
is a range between `0` and `0x7fffffffffffffff` (`2**63 - 1`, `9223372036854775807`).
It affects the following instructions:
- `TIMESTAMP` (`0x42`),
- `NUMBER` (`0x43`).

3. *account address*
is a range between `0` and `1461501637330902918203684832716283019655932542975` (`2**160 - 1`).
It affects the following opcodes:
is a range between `0` and `0xffffffffffffffffffffffffffffffffffffffff` (`2**160 - 1`, `1461501637330902918203684832716283019655932542975`)
i.e. the address occupies the 160 low bits of the 256-bit value and the remaining top 96 bits must be zeros.
It affects the following instructions:
- `ADDRESS` (`0x30`),
- `ORIGIN` (`0x32`),
- `CALLER` (`0x33`),
Expand All @@ -50,8 +51,8 @@ They restrict the results (i.e. values pushed to the stack) of the opcodes liste
- `CREATE2` (`0xf5`).

4. *buffer size*
is a range between `0` and `4294967295` (`2**32 - 1`).
It affects the following opcodes:
is a range between `0` and `0xffffffff` (`2**32 - 1`, `4294967295`).
It affects the following instructions:
- `CALLDATASIZE` (`0x36`),
- `CODESIZE` (`0x38`),
- `EXTCODESIZE` (`0x3b`),
Expand Down