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

Added New Opcodes with Tests #34

Merged
merged 16 commits into from
Sep 17, 2024
Merged

Added New Opcodes with Tests #34

merged 16 commits into from
Sep 17, 2024

Conversation

varun-doshi
Copy link
Contributor

Added the following opcodes:

  • 0x77 => OP_NIP
  • 0x78 => OP_OVER,
  • 0x7c => OP_SWAP,
  • 0x7d => OP_TUCK,
  • 0x82 => OP_SIZE

Relevant tests for all 5 opcodes have been added as well
All file changes are in src/script/engine.zig

All tests pass on zig build test --summary all

@tdelabro
Copy link
Collaborator

@varun-doshi can you rebase your commits please? I updated the version of zig used in the CI

src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/engine.zig Outdated Show resolved Hide resolved
src/script/stack.zig Outdated Show resolved Hide resolved
src/script/stack.zig Outdated Show resolved Hide resolved
@tdelabro tdelabro merged commit 5c288b7 into zig-bitcoin:main Sep 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants