Skip to content

Commit 49fecec

Browse files
authored
updated all reference of /about to the internal about section (#176)
1 parent 99f1929 commit 49fecec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+405
-362
lines changed

docs/opcodes/00.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ group: Stop and Arithmetic Operations
55

66
## Notes
77

8-
Exits the current [context](/about) successfully.
8+
Exits the current [context](/about#executionenv) successfully.
99

1010
When a call is executed on an address with no code and the EVM tries to read the code data, the default value is returned, 0, which corresponds to this instruction and halts the execution.

docs/opcodes/20/homestead.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
static_gas = {gasPrices|sha3}
66
dynamic_gas = {gasPrices|sha3Word} * minimum_word_size + memory_expansion_cost
77

8-
The memory expansion cost explanation can be found [here](/about).
8+
The memory expansion cost explanation can be found [here](/about#memoryexpansion).

docs/opcodes/31/berlin.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Gas
22

3-
The static cost is {gasPrices|balance}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about).
3+
The static cost is {gasPrices|balance}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about#accesssets).

docs/opcodes/35.mdx

+12-11
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,35 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Stack input
99

10-
0. `i`: byte offset in the [calldata](/about).
10+
0. `i`: byte offset in the [calldata](/about#calldata).
1111

1212
## Stack output
1313

14-
0. `data[i]`: 32-byte value starting from the given offset of the [calldata](/about). All bytes after the end of the [calldata](/about) are set to 0.
14+
0. `data[i]`: 32-byte value starting from the given offset of the [calldata](/about#calldata). All bytes after the end of the [calldata](/about#calldata) are set to 0.
1515

1616
## Examples
1717

18-
| Calldata |
19-
|---------|
18+
| Calldata |
19+
| -------------------------------------------------------------------- |
2020
| `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
2121

22-
| * | Input | Output |
23-
|--:|------:|-------:|
24-
| `1` | `0` | `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
22+
| \* | Input | Output |
23+
| --: | ----: | -------------------------------------------------------------------: |
24+
| `1` | `0` | `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
2525

26-
| * | Input | Output |
27-
|--:|------:|-------:|
28-
| `1` | `31` | `0xFF00000000000000000000000000000000000000000000000000000000000000` |
26+
| \* | Input | Output |
27+
| --: | ----: | -------------------------------------------------------------------: |
28+
| `1` | `31` | `0xFF00000000000000000000000000000000000000000000000000000000000000` |
2929

3030
[Reproduce in playground](/playground?unit=Wei&callData=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF&codeType=Mnemonic&code='~1w0yzz~2w31y'~%2F%2F%20Example%20z%5CnyzCALLDATALOADwzPUSH1%20%01wyz~_).
3131

3232
## Error cases
3333

3434
The state changes done by the current context are [reverted](#FD) in those cases:
35+
3536
- Not enough gas.
3637
- Not enough values on the stack.

docs/opcodes/36.mdx

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Stack output
99

10-
0. `size`: byte size of the [calldata](/about).
10+
0. `size`: byte size of the [calldata](/about#calldata).
1111

1212
## Example
1313

1414
| Calldata |
15-
|---------|
16-
| `0xFF` |
15+
| -------- |
16+
| `0xFF` |
1717

18-
| * | Input | Output |
19-
|--:|------:|-------:|
20-
| `1` | | `1` |
18+
| \* | Input | Output |
19+
| --: | ----: | -----: |
20+
| `1` | | `1` |
2121

2222
[Reproduce in playground](/playground?unit=Wei&callData=0xFF&codeType=Mnemonic&code='CALLDATASIZE'_).
2323

2424
## Error cases
2525

2626
The state changes done by the current context are [reverted](#FD) in those cases:
27+
2728
- Not enough gas.
2829
- Stack overflow.

docs/opcodes/37.mdx

+17-16
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,47 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Notes
99

1010
For out of bound bytes, 0s will be copied.
1111

1212
## Stack input
1313

14-
0. `destOffset`: byte offset in the [memory](/about) where the result will be copied.
15-
1. `offset`: byte offset in the [calldata](/about) to copy.
14+
0. `destOffset`: byte offset in the [memory](/about#memory) where the result will be copied.
15+
1. `offset`: byte offset in the [calldata](/about#calldata) to copy.
1616
2. `size`: byte size to copy.
1717

1818
## Examples
1919

20-
| Calldata |
21-
|---------:|
20+
| Calldata |
21+
| -------------------------------------------------------------------: |
2222
| `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
2323

24-
| * | Input 1 | * | * | Input 2 |
25-
|--:|--------:|--:|--:|--------:|
26-
| `1` | `0` | * | `1` | `0` |
27-
| `2` | `0` | * | `2` | `31` |
28-
| `3` | `32` | * | `3` | `8` |
24+
| \* | Input 1 | \* | \* | Input 2 |
25+
| --: | ------: | --: | --: | ------: |
26+
| `1` | `0` | \* | `1` | `0` |
27+
| `2` | `0` | \* | `2` | `31` |
28+
| `3` | `32` | \* | `3` | `8` |
2929

3030
| Memory before |
31-
|-------------:|
32-
| `0` |
31+
| ------------: |
32+
| `0` |
3333

34-
| Memory after input 1 |
35-
|---------------------:|
34+
| Memory after input 1 |
35+
| -------------------------------------------------------------------: |
3636
| `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
3737

38-
| Memory after input 1 then 2 |
39-
|----------------------------:|
38+
| Memory after input 1 then 2 |
39+
| -------------------------------------------------------------------: |
4040
| `0xFF00000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
4141

4242
[Reproduce in playground](/playground?unit=Wei&callData=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF&codeType=Mnemonic&code='z1~32~0ywwz2~8~31y'~wPUSH1%20z%2F%2F%20Example%20y~0wCALLDATACOPYw%5Cn%01wyz~_).
4343

4444
## Error cases
4545

4646
The state changes done by the current context are [reverted](#FD) in those cases:
47+
4748
- Not enough gas.
4849
- Not enough values on the stack.

docs/opcodes/37/homestead.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
static_gas = {gasPrices|calldatacopy}
66
dynamic_gas = {gasPrices|copy} * minimum_word_size + memory_expansion_cost
77

8-
The memory expansion cost explanation can be found [here](/about).
8+
The memory expansion cost explanation can be found [here](/about#memoryexpansion).

docs/opcodes/38.mdx

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Notes
99

1010
Each instruction occupies one byte. In the case of a [PUSH](/#60) instruction, the bytes that need to be pushed are encoded after that, it thus increases the codesize accordingly.
1111

1212
## Stack output
1313

14-
0. `size`: byte size of the [code](/about).
14+
0. `size`: byte size of the [code](/about#code).
1515

1616
## Example
1717

18-
| * | Input | Output |
19-
|--:|------:|-------:|
20-
| `1` | | `32` |
18+
| \* | Input | Output |
19+
| --: | ----: | -----: |
20+
| `1` | | `32` |
2121

2222
[Reproduce in playground](/playground?unit=Wei&codeType=Mnemonic&code='%2F%2F%20Add%20som~instructions%20to%20increas~th~cod~sizeyPUSH29%200yPOPyyCODESIZE'~e%20y%5Cn%01y~_).
2323

2424
## Error cases
2525

2626
The state changes done by the current context are [reverted](#FD) in those cases:
27+
2728
- Not enough gas.
2829
- Stack overflow.

docs/opcodes/39.mdx

+17-16
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,47 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Notes
99

1010
For out of bound bytes, 0s will be copied.
1111

1212
## Stack input
1313

14-
0. `destOffset`: byte offset in the [memory](/about) where the result will be copied.
15-
1. `offset`: byte offset in the [code](/about) to copy.
14+
0. `destOffset`: byte offset in the [memory](/about#memory) where the result will be copied.
15+
1. `offset`: byte offset in the [code](/about#code) to copy.
1616
2. `size`: byte size to copy.
1717

1818
## Examples
1919

20-
| Code |
21-
|-----:|
20+
| Code |
21+
| -------------------------------------------------------------------: |
2222
| `0x7DFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F` |
2323

24-
| * | Input 1 | * | * | Input 2 |
25-
|--:|--------:|--:|--:|--------:|
26-
| `1` | `0` | * | `1` | `0` |
27-
| `2` | `0` | * | `2` | `31` |
28-
| `3` | `32` | * | `3` | `8` |
24+
| \* | Input 1 | \* | \* | Input 2 |
25+
| --: | ------: | --: | --: | ------: |
26+
| `1` | `0` | \* | `1` | `0` |
27+
| `2` | `0` | \* | `2` | `31` |
28+
| `3` | `32` | \* | `3` | `8` |
2929

3030
| Memory before |
31-
|--------------:|
32-
| `0` |
31+
| ------------: |
32+
| `0` |
3333

34-
| Memory after input 1 |
35-
|---------------------:|
34+
| Memory after input 1 |
35+
| -------------------------------------------------------------------: |
3636
| `0x7DFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F` |
3737

38-
| Memory after input 1 then 2 |
39-
|----------------------------:|
38+
| Memory after input 1 then 2 |
39+
| -------------------------------------------------------------------: |
4040
| `0x7F00000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F` |
4141

4242
[Reproduce in playground](/playground?unit=Wei&codeType=Mnemonic&code='qPutwbeginning%20ofwcodXtowexpected%20valueZ30VxWWWWWZ32VyyqRemovewvalues%20fromwstackTTj1~32~0_j2~8~31_'~Z1%20zFFFFFFy%5Cnw%20thXq%2F%2F%20jyyqExamplX_~0yCODECOPYZyPUSHXe%20WzzV%200TyPOP%01TVWXZ_jqwyz~_).
4343

4444
## Error cases
4545

4646
The state changes done by the current context are [reverted](#FD) in those cases:
47+
4748
- Not enough gas.
4849
- Not enough values on the stack.

docs/opcodes/39/homestead.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
static_gas = {gasPrices|codecopy}
66
dynamic_gas = {gasPrices|copy} * minimum_word_size + memory_expansion_cost
77

8-
The memory expansion cost explanation can be found [here](/about).
8+
The memory expansion cost explanation can be found [here](/about#memoryexpansion).

docs/opcodes/3B.mdx

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Stack input
99

1010
0. `address`: 20-byte address of the contract to query.
1111

1212
## Stack output
1313

14-
0. `size`: byte size of the [code](/about).
14+
0. `size`: byte size of the [code](/about#code).
1515

1616
## Example
1717

18-
| * | Input | Output |
19-
|--:|------:|-------:|
20-
| `1` | `0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b` | `32` |
18+
| \* | Input | Output |
19+
| --: | -------------------------------------------: | -----: |
20+
| `1` | `0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b` | `32` |
2121

2222
[Reproduce in playground][1].
2323

@@ -26,5 +26,6 @@ group: Environmental Information
2626
## Error cases
2727

2828
The state changes done by the current context are [reverted](#FD) in those cases:
29+
2930
- Not enough gas.
3031
- Not enough values on the stack.

docs/opcodes/3B/berlin.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Gas
22

3-
The static cost is {gasPrices|extcodesize}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about).
3+
The static cost is {gasPrices|extcodesize}. If the accessed address is warm, the dynamic cost is {gasPrices|warmstorageread}. Otherwise the dynamic cost is {gasPrices|coldaccountaccess}. See section [access sets](/about#accesssets).

docs/opcodes/3C.mdx

+19-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fork: Frontier
33
group: Environmental Information
44
---
55

6-
*Index 1 is top of the stack. See [PUSH](/#60).*
6+
_Index 1 is top of the stack. See [PUSH](/#60)._
77

88
## Notes
99

@@ -12,33 +12,33 @@ For out of bound bytes, 0s will be copied.
1212
## Stack input
1313

1414
0. `address`: 20-byte address of the contract to query.
15-
1. `destOffset`: byte offset in the [memory](/about) where the result will be copied.
16-
2. `offset`: byte offset in the [code](/about) to copy.
15+
1. `destOffset`: byte offset in the [memory](/about#memory) where the result will be copied.
16+
2. `offset`: byte offset in the [code](/about#code) to copy.
1717
3. `size`: byte size to copy.
1818

1919
## Examples
2020

21-
| Code |
22-
|-----:|
23-
|`0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
21+
| Code |
22+
| -------------------------------------------------------------------: |
23+
| `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
2424

25-
| * | Input 1 | * | * | Input 2 |
26-
|--:|--------:|--:|--:|--------:|
27-
| `1` | `0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b` | * | `1` | `0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b` |
28-
| `2` | `0` | * | `2` | `0` |
29-
| `3` | `0` | * | `3` | `31` |
30-
| `4` | `32` | * | `4` | `8` |
25+
| \* | Input 1 | \* | \* | Input 2 |
26+
| --: | -------------------------------------------: | --: | --: | -------------------------------------------: |
27+
| `1` | `0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b` | \* | `1` | `0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b` |
28+
| `2` | `0` | \* | `2` | `0` |
29+
| `3` | `0` | \* | `3` | `31` |
30+
| `4` | `32` | \* | `4` | `8` |
3131

3232
| Memory before |
33-
|--------------:|
34-
| `0` |
33+
| ------------: |
34+
| `0` |
3535

36-
| Memory after input 1 |
37-
|---------------------:|
36+
| Memory after input 1 |
37+
| -------------------------------------------------------------------: |
3838
| `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
3939

40-
| Memory after input 1 then 2 |
41-
|----------------------------:|
40+
| Memory after input 1 then 2 |
41+
| -------------------------------------------------------------------: |
4242
| `0xFF00000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF` |
4343

4444
[Reproduce in playground][1]
@@ -48,5 +48,6 @@ For out of bound bytes, 0s will be copied.
4848
## Error cases
4949

5050
The state changes done by the current context are [reverted](#FD) in those cases:
51+
5152
- Not enough gas.
5253
- Not enough values on the stack.

docs/opcodes/3C/berlin.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
static_gas = {gasPrices|extcodecopy}
66
dynamic_gas = {gasPrices|copy} * minimum_word_size + memory_expansion_cost + address_access_cost
77

8-
The memory expansion cost explanation can be found [here](/about).
9-
If the accessed address is warm, `address_access_cost` is {gasPrices|warmstorageread}, otherwise it is {gasPrices|coldaccountaccess}. See section [access sets](/about).
8+
The memory expansion cost explanation can be found [here](/about#memoryexpansion).
9+
If the accessed address is warm, `address_access_cost` is {gasPrices|warmstorageread}, otherwise it is {gasPrices|coldaccountaccess}. See section [access sets](/about#accesssets).

docs/opcodes/3C/homestead.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
static_gas = {gasPrices|extcodecopy}
66
dynamic_gas = {gasPrices|copy} * minimum_word_size + memory_expansion_cost
77

8-
The memory expansion cost explanation can be found [here](/about).
8+
The memory expansion cost explanation can be found [here](/about#memoryexpansion).

0 commit comments

Comments
 (0)