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

Make clvm_rs a replacement for clvm #253

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
a897e01
checkpoint
richardkiss Sep 21, 2022
01e11d0
Add serialize tests.
richardkiss Sep 21, 2022
f8993f1
Test improvements.
richardkiss Sep 22, 2022
91c2492
Some speed improvements.
richardkiss Sep 28, 2022
62142b9
More improvements.
richardkiss Sep 29, 2022
94080d6
Improve coverage.
richardkiss Oct 5, 2022
e6255a3
Make deserialization time tree-hashing optional.
richardkiss Oct 8, 2022
d797d66
Tree hash on deserialization is now optional.
richardkiss Oct 8, 2022
f7f5eef
Refactor, rename.
richardkiss Oct 17, 2022
a154d7e
First crack at rust tree hashes.
richardkiss Oct 18, 2022
9a2ca75
Use rust parsing if present.
richardkiss Jan 13, 2023
49fe40f
checkpoint
richardkiss Jan 13, 2023
8ecaee4
tests pass
richardkiss Jan 5, 2023
4a11b0f
checkpoint
richardkiss Jan 19, 2023
48b2b74
Rename `base`.
richardkiss Jan 20, 2023
23ab08e
Rename to `eval_error.py`.
richardkiss Jan 20, 2023
a15c2c1
Rename modules.
richardkiss Jan 20, 2023
31af146
Add comments, improve implementations.
richardkiss Jan 20, 2023
0107e8a
Remove `keywords.py`.
richardkiss Jan 20, 2023
f2162a0
Various improvements to python.
richardkiss Jan 24, 2023
d796ee4
More tests.
richardkiss Jan 24, 2023
fbff98c
Improvements to `uncurry`, tests, coverage.
richardkiss Jan 24, 2023
3172fda
Refactor.
richardkiss Jan 24, 2023
f80a0fc
More refactor.
richardkiss Jan 25, 2023
81e54ef
Handle end of stream properly.
richardkiss Jan 25, 2023
3cfbd56
More refactor.
richardkiss Jan 26, 2023
4b8fe5b
Fix name
richardkiss Jan 26, 2023
0acda17
refactor
richardkiss Jan 26, 2023
67dc587
fix benchmarks
richardkiss Jan 26, 2023
edde719
fix benchmark
richardkiss Jan 26, 2023
0c25e04
Support py37
richardkiss Jan 26, 2023
4f5c9dc
Use api
richardkiss Jan 26, 2023
3bc775d
fix comments
richardkiss Jan 27, 2023
0ffa864
lint
richardkiss Feb 1, 2023
c1724d7
Tests pass, coverage seems good, benchmarks seem good.
richardkiss Feb 3, 2023
8f7abca
Speed up `parse` and `__eq__`.
richardkiss Feb 7, 2023
2b7f9cf
Improve benchmarking code.
richardkiss Feb 7, 2023
b6905ea
Factor out `copy_exact` and `skip_bytes`.
richardkiss Feb 7, 2023
c6af427
Add `skip_clvm_object` api.
richardkiss Feb 8, 2023
61146ea
Add more `parse` tests.
richardkiss Feb 8, 2023
3a0183a
Use old error messages.
richardkiss Feb 8, 2023
ac05bc9
Remove a bunch of `.as_*` methods.
richardkiss Feb 10, 2023
818ee69
Don't cast `None`. Add `.at_many`.
richardkiss Feb 10, 2023
c9ece37
Don't cast `None`. Add `.at_many`.
richardkiss Feb 10, 2023
17196e7
Add back `.as_iter()`.
richardkiss Feb 16, 2023
2ba2689
Merge remote-tracking branch 'chia/main' into remove-clvm-dep
richardkiss Apr 18, 2023
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
Prev Previous commit
Next Next commit
Fix name
  • Loading branch information
richardkiss committed Feb 7, 2023
commit 4b8fe5bca2230cfde15f397f44ee952903bc2daa
4 changes: 2 additions & 2 deletions wheel/python/clvm_rs/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .at import at
from .bytes32 import bytes32
from .casts import to_clvm_object, int_from_bytes, int_to_bytes
from .clvm_rs import run_serialized_program
from .clvm_rs import run_serialized_chia_program
from .clvm_storage import CLVMStorage
from .clvm_tree import CLVMTree
from .curry_and_treehash import CurryTreehasher, CHIA_CURRY_TREEHASHER
Expand Down Expand Up @@ -233,7 +233,7 @@ def run_with_cost(self, args, max_cost: int = MAX_COST) -> Tuple[int, "Program"]
prog_bytes = bytes(self)
args_bytes = bytes(self.to(args))
try:
cost, r = run_serialized_program(prog_bytes, args_bytes, max_cost, 0)
cost, r = run_serialized_chia_program(prog_bytes, args_bytes, max_cost, 0)
r = self.wrap(r)
except ValueError as ve:
raise EvalError(ve.args[0], self.wrap(ve.args[1]))
Expand Down