-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Chia-Mine/v1.0.3
V1.0.3
- Loading branch information
Showing
5 changed files
with
57 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# Changelog | ||
|
||
## [1.0.3] | ||
This version is compatible with [`ab4560900cf475ff515054bec0ca9a4491aca366`](https://github.com/Chia-Network/clvm/tree/ab4560900cf475ff515054bec0ca9a4491aca366) of [[email protected]](https://github.com/Chia-Network/clvm) | ||
|
||
### Fixed | ||
- Fixed an issue where `op_logand`, `op_logior`, `op_logxor` did not work | ||
- Fixed an issue where result of div/mod against negative `bigint` was not compatible with original `clvm` | ||
|
||
## [1.0.2] | ||
This version is compatible with [`1a5cb17895d8707f784a85180bc97d3c6ebe71a0`](https://github.com/Chia-Network/clvm/tree/1a5cb17895d8707f784a85180bc97d3c6ebe71a0) of [[email protected]](https://github.com/Chia-Network/clvm) | ||
|
||
|
@@ -180,6 +187,7 @@ At this version, I've managed to improve test complete time to `79s` -> `2s` by | |
Initial (beta) release. | ||
|
||
<!--[Unreleased]: https://github.com/Chia-Mine/clvm-js/compare/v0.0.1...v0.0.2--> | ||
[1.0.3]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.2...v1.0.3 | ||
[1.0.2]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.1...v1.0.2 | ||
[1.0.1]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.0...v1.0.1 | ||
[1.0.0]: https://github.com/Chia-Mine/clvm-js/compare/v0.0.19...v1.0.0 | ||
|
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 |
---|---|---|
|
@@ -11,8 +11,8 @@ yarn add clvm | |
|
||
## Compatibility | ||
This code is compatible with: | ||
- [`1a5cb17895d8707f784a85180bc97d3c6ebe71a0`](https://github.com/Chia-Network/clvm/tree/1a5cb17895d8707f784a85180bc97d3c6ebe71a0) of [[email protected]](https://github.com/Chia-Network/clvm) | ||
- [Diff to the latest clvm](https://github.com/Chia-Network/clvm/compare/1a5cb17895d8707f784a85180bc97d3c6ebe71a0...main) | ||
- [`ab4560900cf475ff515054bec0ca9a4491aca366`](https://github.com/Chia-Network/clvm/tree/ab4560900cf475ff515054bec0ca9a4491aca366) of [[email protected]](https://github.com/Chia-Network/clvm) | ||
- [Diff to the latest clvm](https://github.com/Chia-Network/clvm/compare/ab4560900cf475ff515054bec0ca9a4491aca366...main) | ||
|
||
## Example | ||
```javascript | ||
|
@@ -58,7 +58,7 @@ If so, you can make your code fully synchronous. | |
|
||
|
||
## Differences with Python's `clvm` | ||
Although I try hard to make it look like Python's `clvm`, there are things users should take it into account. | ||
Although I try hard to make it look like Python's `clvm`, there are things users should be aware of. | ||
I put the code which absorbs language incompatibility into `src/__type_compaibility__.ts`, so if you're interested take a look at it. | ||
|
||
### There are no build-in `Tuple` type in Javascript | ||
|
@@ -152,6 +152,12 @@ SExp.to([1, [2, 3]]).toString(); // 'ff01ffff02ff038080' | |
str(SExp.to([1, [2, 3]])); // You can use str() function as well as Python by the way. | ||
``` | ||
|
||
### Calculation of division/modulo against negative number is different | ||
|Python|JavaScript| | ||
|------|----------| | ||
|`-8 // 5 == -2`|`-8n / 5n === -1n`| | ||
|`-8 % 5 == 2`|`-8n % 5n === -3n`| | ||
|
||
## clvm license | ||
`clvm-js` is based on [clvm](https://github.com/Chia-Network/clvm) with the | ||
[Apache license 2.0](https://github.com/Chia-Network/clvm/blob/main/LICENSE) | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "clvm", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Admin ChiaMineJP <[email protected]>", | ||
"description": "Javascript implementation of chia lisp", | ||
"license": "MIT", | ||
|
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