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

chore(avm): list avm opcodes in a (enum => class) map in TS #4113

Merged
merged 17 commits into from
Jan 18, 2024
Prev Previous commit
Next Next commit
fix category
  • Loading branch information
dbanks12 committed Jan 17, 2024
commit 5ddd1aceff03c11fc9aeb1a08779ae3e470a7e7f
16 changes: 8 additions & 8 deletions yellow-paper/docs/public-vm/gen/_InstructionSet.mdx
Original file line number Diff line number Diff line change
@@ -923,7 +923,7 @@ Get this rollup's L1 chain ID
[See in table.](#isa-table-chainid)

- **Opcode**: 0x17
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -940,7 +940,7 @@ Get this rollup's L2 version ID
[See in table.](#isa-table-version)

- **Opcode**: 0x18
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -957,7 +957,7 @@ Get this L2 block's number
[See in table.](#isa-table-blocknumber)

- **Opcode**: 0x19
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -974,7 +974,7 @@ Get this L2 block's timestamp
[See in table.](#isa-table-timestamp)

- **Opcode**: 0x1a
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -991,7 +991,7 @@ Get the block's beneficiary address
[See in table.](#isa-table-coinbase)

- **Opcode**: 0x1b
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -1008,7 +1008,7 @@ Total amount of "L1 gas" that a block can consume
[See in table.](#isa-table-blockl1gaslimit)

- **Opcode**: 0x1c
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -1025,7 +1025,7 @@ Total amount of "L2 gas" that a block can consume
[See in table.](#isa-table-blockl2gaslimit)

- **Opcode**: 0x1d
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
@@ -1042,7 +1042,7 @@ Total amount of "DA gas" that a block can consume
[See in table.](#isa-table-blockdagaslimit)

- **Opcode**: 0x1e
- **Category**: Environment - Globals
- **Category**: Execution Environment - Globals
- **Flags**:
- **indirect**: Toggles whether each memory-offset argument is an indirect offset. 0th bit corresponds to 0th offset arg, etc. Indirect offsets result in memory accesses like `M[M[offset]]` instead of the more standard `M[offset]`.
- **Args**:
16 changes: 8 additions & 8 deletions yellow-paper/src/preprocess/InstructionSet/InstructionSet.js
Original file line number Diff line number Diff line change
@@ -423,7 +423,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "chainid",
"Name": "`CHAINID`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -439,7 +439,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "version",
"Name": "`VERSION`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -455,7 +455,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "blocknumber",
"Name": "`BLOCKNUMBER`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -471,7 +471,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "timestamp",
"Name": "`TIMESTAMP`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -487,7 +487,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "coinbase",
"Name": "`COINBASE`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -503,7 +503,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "blockl1gaslimit",
"Name": "`BLOCKL1GASLIMIT`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -519,7 +519,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "blockl2gaslimit",
"Name": "`BLOCKL2GASLIMIT`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],
@@ -535,7 +535,7 @@ const INSTRUCTION_SET_RAW = [
{
"id": "blockdagaslimit",
"Name": "`BLOCKDAGASLIMIT`",
"Category": "Environment - Globals",
"Category": "Execution Environment - Globals",
"Flags": [
{"name": "indirect", "description": INDIRECT_FLAG_DESCRIPTION},
],