b709eae01d
Update Prettier Solidity ( #3898 )
2022-12-23 22:28:05 -03:00
7c5f6bc2c8
Merge branch 'release-v4.8'
2022-11-09 19:23:01 -03:00
49c0e4370d
4.8.0
2022-11-08 11:29:29 -03:00
1f18fea1de
4.8.0-rc.2
2022-10-17 18:53:40 +02:00
5e8e8bb9f0
Fixes broken link ( #3728 )
2022-09-25 00:58:09 +02:00
16791134c1
4.8.0-rc.1
2022-09-23 18:59:29 +02:00
5e6fd491f3
4.8.0-rc.0
2022-09-07 18:08:32 -03:00
3dac7bbed7
Merge v4.7 back into master ( #3516 )
2022-06-29 12:34:30 +02:00
6f88199db9
Optimize Address.functionCall removing redundant isContract check ( #3469 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2022-06-27 17:02:33 -03:00
cb3f2ab900
Address.functionCall internal call stack simplification ( #3468 )
2022-06-16 15:17:09 +02:00
65b45726b3
Add memory safe assembly annotations ( #3384 )
...
Co-authored-by: Nate <nate@Nates-MacBook-Pro.local >
2022-05-23 15:37:08 -03:00
afb20119b3
Release v4.5
2022-02-09 18:16:53 -03:00
fd7c4ba8f0
Update pragma in utils/Address.sol to 0.8.1 ( #3098 )
2022-01-10 19:47:43 -03:00
d95cdaae8e
Replace excodesize assembly with address.code.length ( https://github.com/ethereum/solidity/releases/tag/v0.8.1 ) ( #3025 )
2021-12-15 18:54:10 +01:00
4a9cc8b491
Merge branch 'release-v4.4'
2021-12-14 13:34:03 -03:00
6bd6b76d11
4.4.1
2021-12-14 13:14:39 -03:00
04109f8bee
Address: explain dangers of isContract ( #2994 )
...
Co-authored-by: Ivo Georgiev <ivo@strem.io >
2021-12-08 20:10:40 -03:00
4961a51cc7
4.4.0
2021-11-25 16:35:37 -03:00
65ef662a2b
4.4.0-rc.1
2021-11-16 10:23:53 -03:00
0a87a4e75b
4.4.0-rc.0
2021-10-20 17:21:04 -03:00
c9bdb1f0ae
Add a comment documenting the package version being used ( #2918 )
2021-10-19 19:18:19 -03:00
6c1a634053
Add Governor contracts ( #2672 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-07-16 12:44:01 -03:00
f710bafae8
Fix typos ( #2723 )
2021-06-14 18:51:56 -03:00
b0cf6fbb7a
Add Prettier for linting and fix Solhint config ( #2697 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-06-07 12:33:03 -03:00
93438eca0b
Merge 3.4 master into solc-0.8 ( #2499 )
...
* 3.4.0-rc.0
* Allow manual dispatch of Test CI job
* Update lockfile (#2481 )
Co-authored-by: Renovate Bot <bot@renovateapp.com >
* Add "available since" comments in documentation
* Add "available since" comments in documentation
(cherry picked from commit 63a0343dda )
* Remove SafeMathMock compilation warnings (#2497 )
* Remove SafeMathMock compilation warnings (#2497 )
(cherry picked from commit f4e57fd529 )
* 3.4.0
* fix safemath test to use renamed function from the mock
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-02-02 22:07:56 +01:00
974c534210
Update contracts to support Solidity 0.8.x ( #2442 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-14 19:38:53 -03:00
90ed1af972
Support compiling with solc 0.7 ( #2408 )
2020-11-17 21:29:39 -03:00
87326f7313
Add functionStaticCall and functionDelegateCall methods to Address library ( #2333 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-09-17 16:19:11 -03:00
ae4e9845de
Fix a grammatical error in a comment ( #2352 )
...
changed a comment in the isContract function to make it grammatically right.
2020-09-08 14:50:12 -03:00
c801c8d2bb
feat: use extcodesize for isContract to reduce gas ( #2311 )
...
* feat: use extcodesize for isContract to reduce gas
* feat: add changelog entry
2020-07-14 17:08:41 -03:00
242400e9ea
Update functionCall docs
2020-06-12 13:22:52 -03:00
7f62c8e145
Fix docs links to overloaded functions ( #2275 )
...
* fix links to overloaded functions
* fix Address xrefs
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2020-06-11 16:50:00 -03:00
b72088a90a
Add 'available since' notices
2020-06-11 16:46:33 -03:00
8b58fc7191
feat: add wrapper function for low level calls ( #2264 )
...
* feat: add wrapper function for low level calls
* add error message parameter
* adding unit tests and required mocks
* implement error message on SafeERC20
* fixed variable name in tests
* Add missing tests
* Improve docs.
* Add functionCallWithValue
* Add functionCallWithValue
* Skip balance check on non-value functionCall variants
* Increase out of gas test timeout
* Fix compile errors
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* Add missing tests
* Add changelog entry
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-06-11 16:25:46 -03:00
56de324afe
Add SPX license identifier ( #2235 )
2020-05-14 21:58:11 -03:00
cca71ab709
Fix deprecation warnings ( #2115 )
...
* Fix deprecation warnings
* Workaround linter bug
2020-04-16 12:13:49 -03:00
a8d6f13c94
Remove all 'available since' notices
2020-03-16 20:44:56 -03:00
9975a1a0c2
Remove Address.toPayable ( #2133 )
...
* Remove Address.toPayable
* Add changelog entry
2020-03-16 18:22:02 -03:00
5dfe7215a9
Migrate Contracts to Solidity v0.6 ( #2080 )
...
* Initial migration to Solidity 0.6.x - v3.0 first steps (#2063 )
* Initial migration, missing GSN, 721, 777 and Crowdsales.
* Add _beforeTokenOperation and _afterTokenOperation.
* Add documentation for hooks.
* Add hooks doc
* Add missing drafts
* Add back ERC721 with hooks
* Bring back ERC777
* Notes on hooks
* Bring back GSN
* Make functions virtual
* Make GSN overrides explicit
* Fix ERC20Pausable tests
* Remove virtual from some view functions
* Update linter
* Delete examples
* Remove unnecessary virtual
* Remove roles from Pausable
* Remove roles
* Remove users of roles
* Adapt ERC20 tests
* Fix ERC721 tests
* Add all ERC721 hooks
* Add ERC777 hooks
* Fix remaining tests
* Bump compiler version
* Move 721BurnableMock into mocks directory
* Remove _before hooks
* Fix tests
* Upgrade linter
* Put modifiers last
* Remove _beforeTokenApproval and _beforeOperatorApproval hooks
2020-02-14 11:12:32 -03:00
fbddf5ba5b
Test common case first ( #2023 )
2019-12-16 16:21:06 -03:00
5d47aa85bc
Correct documentation for isContract check ( #2017 )
...
* Correct documentation for isContract check
* Update Address.sol
* Update Address.sol
* add missing newline before asciidoc list
2019-12-10 13:14:18 -03:00
c4bb7b7bb9
remove beta notice
2019-10-29 17:23:48 -03:00
feaf051fef
added feature availability info to documentation
...
(cherry picked from commit 9113335cb3 )
2019-10-29 17:21:29 -03:00
b0dbe0fc59
Transfer replacement ( #1962 )
...
* Add Address.sendEther
* Add documentation to sendEther
* Add changelog entry
* Rename sendEther to sendValue
(cherry picked from commit 8d166f3e35 )
2019-10-29 17:20:18 -03:00
23dc15898f
Bump required compiler version for Address ( #1898 )
...
(cherry picked from commit 4e527a20a5 )
2019-10-29 17:06:21 -03:00
9fdc91758d
add note in api ref about unreleased features
2019-08-16 20:06:35 +02:00
7552af95e4
migrate content to format for new docs site
...
Squashed commit of the following:
commit fcf35eb806100de300bd9803ce3150dde1ecc424
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 17 17:16:04 2019 -0300
remove all docsite dependency
commit eeaee9a9d43d70704f6ab17b5126ddbd52b93a50
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 17 17:15:23 2019 -0300
update solidity-docgen
commit f021ff951829ea0c155186749819403c6b76e803
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 17 17:05:06 2019 -0300
update docsite script for new setup
commit ff887699d381cfbbe3acf1f1c0de8e22b58480f3
Merge: c938aa1d 84f85a41
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 17 16:46:46 2019 -0300
Merge branch 'master' into antora
commit c938aa1d9ed05ac83a34e2cebd8353f8331ad6d6
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jul 16 18:24:29 2019 -0300
make component name shorter
commit 5bbd6931e02cbbd8864c82655ad0f390ceead5f3
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 20:16:17 2019 -0300
add all info to docs templates
commit 39682c4515d7cf0f0368ed557f50d2709174208a
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 20:13:49 2019 -0300
fix npm docsite script
commit 7ae46bd4a0437abf66150d54d05adf46e3de2cab
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 18:48:05 2019 -0300
convert inline docs to asciidoc
commit cfdfd3dee4b4bf582fde22c8cb6e17a603d6e0c8
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 17:34:52 2019 -0300
add missing contract names in readmes
commit 15b6a2f9bfb546cf1d3bf4f104278b118bf1b3f4
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 17:16:47 2019 -0300
fix script path
commit 80d82b909f9460d1450d401f00b3f309da506b29
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 17:13:53 2019 -0300
update version of solidity-docgen
commit a870b6c607b9c2d0012f8a60a4ed1a1c8b7e8ebd
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 17:03:53 2019 -0300
add nav generation of api ref
commit 069cff4a25b83752650b54b86d85608c2f547e5e
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Wed Jul 10 16:32:14 2019 -0300
initial migration to asciidoc and new docgen version
commit 55216eed0a6551da913c8d1da4b2a0d0d3faa1a8
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 20:39:35 2019 -0300
add basic api doc example
commit 0cbe50ce2173b6d1d9a698329d91220f58822a53
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 19:31:31 2019 -0300
add sidebars
commit 256fc942845307258ac9dc25aace48117fa10f79
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 15:22:38 2019 -0300
add page titles
commit f4d0effa70e1fc0662729863e8ee72a8821bc458
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 15:19:41 2019 -0300
add contracts index file
commit b73b06359979f7d933df7f2b283c50cb1c31b2a0
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 15:14:52 2019 -0300
fix header levels
commit fb57d9b820f09a1b7c04eed1a205be0e45866cac
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 15:11:47 2019 -0300
switch format to preferred asciidoctor format
commit 032181d8804137332c71534753929d080a31a71f
Author: Francisco Giordano <frangio.1@gmail.com >
Date: Tue Jun 25 15:05:38 2019 -0300
initialize antora component and convert docs to asciidoc
2019-07-17 17:16:47 -03:00
0282c3608d
Using extcodehash instead of extcodesize for less gas ( #1802 )
...
* Using extcodehash instead of extcodesize for less gas
`extcodehash` uses less gas then `extcodesize`. You can tell which address is a contract by the hash (see EIP-1052).
* Fix
* Add explainer
* Update Address.sol
* add changelog entry
2019-07-08 13:41:55 -03:00
489d2e85f1
Replace chai.should with chai.expect ( #1780 )
...
* changed exxpect to expect wherever applicable
* Merged with latest branch
* Updated merkleTree helper to latest master branch
* Made linting fixes
* Fix for test build
* updated for Coverage
* Updated Address.test.js
* Undo package-lock changes.
2019-06-24 17:40:05 -03:00
b95d7e7f8a
Add a simple wrapper for address. ( #1773 )
...
* Updated code style to no more than120 characters per line.
* Unify code comments style with Doxygen-style tags.
* Fix the conflicts.
* Add a return value in the contract ERC20Burnable.
* A Add a wrapper function to change type of address to address payable.
* U Modify Address utils.
* A Add test case for Address.
* U Modify code style in ERC20Burnable.
* Add changelog entry.
* Improved dev docs.
2019-05-31 13:51:58 -03:00