-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.0.7 - Upgrade to Solidity v0.5.0 (#22)
* (WIP) Upgrade to Solidity v0.5.0 (#21) * (refactor) Changed codebase to Solidity v0.5.0 * Style changes * Added `memory` everywhere to bytes and strings * `target.call(data)` now returns a tuple * Adding note about compiler support in the README + typo fix * Replaced the ThrowProxy pattern for a better v0.5.x one ThrowProxy was giving problems while testing with the JS-VM with the Constantinople hard-fork. So I changed the tests to stop using that pattern and use function selectors since that's now a thing. It is cleaner now. * Update package-lock.json * Bump version to v0.0.7 * Bump version in package-lock.json * Update dependency versions * Fix typo in package-lock.json
- Loading branch information
Showing
9 changed files
with
910 additions
and
1,249 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 |
---|---|---|
|
@@ -8,6 +8,15 @@ The library lets you concatenate, slice and type cast bytes arrays both in memor | |
|
||
Given this library has an all-internal collection of methods it doesn't make sense having it reside in the mainnet. Instead it will only be available in EPM as an installable package. | ||
|
||
_Note_: Since version `v0.0.7` the library will only compile on Solidity versions `>0.4.22` so, if you need `v0.4.x` support for your project just use `v0.0.6` of the library with: | ||
``` | ||
$ truffle install [email protected] | ||
``` | ||
or | ||
``` | ||
$ npm install [email protected] | ||
``` | ||
|
||
## Usage | ||
|
||
You can use the library here present by direct download and importing with: | ||
|
@@ -61,7 +70,6 @@ Contributions are more than welcome in any way shape or form! 😄 | |
|
||
TODOs: | ||
* Two storage bytes arrays concatenation | ||
* Two storage bytes arrays concatenation | ||
* Slicing directly from storage | ||
* Implement inline assembly functions for better readability | ||
|
||
|
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
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 @@ | ||
{ | ||
"package_name": "bytes", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Solidity bytes tightly packed arrays utility library.", | ||
"authors": [ | ||
"Gonçalo Sá <[email protected]>" | ||
|
Oops, something went wrong.