-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 0.3.26 * 🔍 Experiment Sub Opcodes with Base 16 * 🔧 Fix CodeCopy Opcode * 🔨 Add SHL Opcode * 🔨 Add peek_step Function to Machine * 🔧 Remove CodeCopy Opcode Pop * 🔧 Fix NOT Opcode * 🔧 Fix ADD and MUL Opcodes * 🔧 Fix DIV Opcode * 🔍 Inspect CALLER opcode * docs: add opcodes * 🔨 Add get_window_data function * 🔨 Add Padding to Memory * 🔨 Add filter_left_zeros Function * 🔧 Fix MLOAD Opcode * 🔨 Add Test * 🔧 Fix CODECOPY Opcode * 🔧 Fix COPYCODE Opcode Memory Allocation * 🔨 Add EXM SHA256 Function * 🔧 Employ Cargo Fmt * 🔧 Retest * 🔨 Create SmartWeave convertString Function * 🔨 Build convertTo Function for Smartweave * 🔍 Inspect CI Test * 🔨 Run Cargo FMT --------- Co-authored-by: Darwin <charmful0x@gmail.com>
- Loading branch information
1 parent
66977f2
commit 3c0ffd8
Showing
6 changed files
with
269 additions
and
42 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
## List of the supported and tested 3EM EVM opcodes: | ||
|
||
| opcodes | status | | ||
|:---------:|:--------:| | ||
| `CallValue` | ✅ | | ||
| `Dup1` | ✅ | | ||
| `IsZero` | ✅ | | ||
| `Push3` | ✅ | | ||
| `JumpI` | ✅ | | ||
| `JumpDest` | ✅ | | ||
| `Pop` | ✅ | | ||
| `Push1` | ✅ | | ||
| `MLoad` | ✅ | | ||
| `CodeSize` | ✅ | | ||
| `Sub` | ✅ | | ||
| `CodeCopy` | ✅ | | ||
| `Dup2` | ✅ | | ||
| `Add` | ✅ | | ||
| `MStore` | ✅ | | ||
| `Swap1` | ✅ | | ||
| `Swap2` | ✅ | | ||
| `Jump` | ✅ | | ||
| `Push0` | ✅ | | ||
| `Dup3` | ✅ | | ||
| `Dup5` | ✅ | | ||
| `SLt` | ✅ | | ||
| `Dup6` | ✅ | | ||
| `Eq` | ✅ | | ||
| `Swap3` | ✅ | | ||
| `Push32` | ✅ | | ||
| `Push8` | ✅ | | ||
| `Gt` | ✅ | | ||
| `SLoad` | ✅ | | ||
| `Div` | ✅ | | ||
| `And` | ✅ | | ||
| `Lt` | ✅ | | ||
| `Dup4` | ✅ | | ||
| `Dup8` | ✅ | | ||
| `Not` | ✅ | | ||
| `Mul` | ✅ | | ||
| `Shr` | ✅ | | ||
| `Or` | ✅ | | ||
| `Dup7` | ✅ | | ||
| `SStore` | ✅ | | ||
| `Caller` | ✅ | | ||
| `Shl` | ✅ | | ||
| `Push20` | ✅ | | ||
| `Revert` | ✅ | | ||
| `Mload` | ✅ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export async function handle(state, action) { | ||
try { | ||
const someSha = await SmartWeave.convertString.toSHA256("hello"); | ||
return { state: [someSha] }; | ||
} catch(e) { | ||
return { state: e.toString() } | ||
} | ||
} |