Francisco Giordano
b6b1c0130b
3.2.2-solc-0.7
4 years ago
soham
0f55c18595
Fix/solc 0.7.4 warnings #2391 ( #2396 )
...
* Fix unnamed return variable warning
This commit fixes warnings thrown by the solc 0.7.4 compiler:
"Warning: Unnamed return variable can remain unassigned. Add an explicit
return with value to all non-reverting code paths or name the variable."
* Fix function state mutability warning
This commit fixes warnings thrown by the solc 0.7.4 compiler:
"Warning: Function state mutability can be restricted to pure"
* Fix shadows an existing declaration warning
This commit fixes warnings thrown by the solc 0.7.4 compiler:
"Warning: This declaration shadows an existing declaration."
1. Arguments by default are not underscored.
2. If the name isn't available due to shadowing, use prefix underscore.
3. If prefix underscore isn't available due to shadowing, use suffix underscore.
4 years ago
psykeeper
7650210ad6
Make contracts abstract if they had internal constructors ( #2383 )
4 years ago
Roman Semenov
2bb06b1af4
Replace `if (...) revert()` with `require(...)` ( #2376 )
4 years ago
James Zaki
8108f2f9b9
Fixed comment typo ( #2372 )
4 years ago
Nicolás Venturo
e98b187e64
Fix typos in ERC20 docs ( #2364 )
4 years ago
Anton Bukov
87326f7313
Add functionStaticCall and functionDelegateCall methods to Address library ( #2333 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
7f3eee750a
Add TimelockController ( #2354 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Ross Campbell
ca7ee098ca
Fix whitespace in IERC721Receiver ( #2359 )
...
Slight nit on spacing to reduce # of lines // conform to other OZ function syntax
4 years ago
Francisco Giordano
ec8efd52b4
3.2.1-solc-0.7
4 years ago
Ross Campbell
1229c28ce0
Update ERC20.sol ( #2357 )
...
Remove unused `Address` library import, references.
4 years ago
Francisco Giordano
c08d1439dd
Bump solhint to 3.2.0
...
(cherry picked from commit 09d437c1f9
)
4 years ago
Francisco Giordano
09d437c1f9
Bump solhint to 3.2.0
4 years ago
Francisco Giordano
870ea2a88a
Add -solc-0.7 version tag
4 years ago
Francisco Giordano
1ada3b633e
3.2.0
4 years ago
Francisco Giordano
628dea7a08
update new contracts for solidity 0.7
4 years ago
Nikhil Desai
ae4e9845de
Fix a grammatical error in a comment ( #2352 )
...
changed a comment in the isContract function to make it grammatically right.
4 years ago
Francisco Giordano
f2fb8cf23b
3.2.0-rc.0
4 years ago
Francisco Giordano
91f16a7e47
Adapt proxies to Contracts conventions ( #2345 )
4 years ago
Francisco Giordano
6bc2ae3731
Add documentation for proxies ( #2344 )
4 years ago
Andrew B Coathup
ded2b0a55c
Fix minor typos and grammar in docs ( #2338 )
...
* Fix typos and formatting
* Add Solidity release dates: releases-stability
4 years ago
tincho
aaa5ef81cf
Fix typos ( #2343 )
4 years ago
Francisco Giordano
cb791a1b21
Add Proxies from OpenZeppelin SDK ( #2335 )
4 years ago
sunhurts
6d5a73815d
Fix ERC20Snapshot#_beforeTokenTransfer ( #2328 )
5 years ago
soham
48072e439d
Fix function state mutability warning ( #2327 )
...
Changes state mutability of granularity function from view to pure.
5 years ago
Julian M. Rodriguez
9700e6b4bd
Use beforeTokenTransfer hook in ERC20Snapshot ( #2312 )
5 years ago
Francisco Giordano
2acb1abb1f
3.1.0-solc-0.7
5 years ago
Francisco Giordano
4eb8d2bb10
Revert "feat: use extcodesize for isContract to reduce gas ( #2311 )"
...
This reverts commit c801c8d2bb
.
5 years ago
Elena Gesheva
04fc35707d
Migrate contracts to Solidity 0.7 ( #2319 )
...
* Update contract pragmas to solidity 0.7
* Remove internal declaration on constructors
* Reference SafeMath explicitely
* Remove public constructor declaration from abstract contracts
* Remove public constructor declaration from non-abstract contracts
5 years ago
Julian M. Rodriguez
0c667ca32a
docs: add note explaining opinionated presets ( #2313 )
...
* docs: add notes explaining presets
* fix links for mint function
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Nicolas Tsagarides
7c4a2a0a29
Fix comment reference for function hash ( #2307 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Julian M. Rodriguez
c801c8d2bb
feat: use extcodesize for isContract to reduce gas ( #2311 )
...
* feat: use extcodesize for isContract to reduce gas
* feat: add changelog entry
5 years ago
Francisco Giordano
ef3bbbcf40
Add readme notices with link to docs site ( #2300 )
...
* add readme notices
* remove period after url
5 years ago
Nicolás Venturo
de99bccbfd
3.1.0
5 years ago
Clément Lesaege
0cc882ef9d
typo fix: forwared -> forwarded ( #2290 )
5 years ago
Oleg Kuzmenko
3f4420527b
Separate mapping keyword by whitespace ( #2287 )
...
Co-authored-by: pm_468 <oleg.kuzmenko@lindenvalley.de>
5 years ago
Nicolás Venturo
02a6b05bde
Update functionCall docs
...
(cherry picked from commit 242400e9ea
)
5 years ago
Nicolás Venturo
242400e9ea
Update functionCall docs
5 years ago
Nicolás Venturo
8c1daaab57
3.1.0-rc.0
5 years ago
Francisco Giordano
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>
5 years ago
Nicolás Venturo
e2876b947d
Fix docs link
5 years ago
Nicolás Venturo
ed3a513f86
Fix broken links
5 years ago
Nicolás Venturo
b72088a90a
Add 'available since' notices
5 years ago
Julian M. Rodriguez
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>
5 years ago
Nicolás Venturo
d9fa59f30a
Address ERC1155 changes ( #2267 )
...
* Make holder fns public
* Add context, remove msg.sender from check
* Fix location of Holder arguments
* Add beforeTransfer hook
* Minor test improvements
* Add ERC1155Burnable and tests
* Add ERC1155Pausable
* Add ERC1155PresetMinterPauser.sol
* Add uri constructors
* Improved revert reasons
* Initial docs improvements
* Add missing docs
* Improve acceptance checks revert reasons
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* Remove note about 1155 preset uri in mint
* Add rquirements to balanceOfBatch
* Add note about URI and uri
* Fix list in docs
* Fix lint errors
* Use natural sorting for API titles
* Fix doc references
* Escape {id} references to remove docgen warnings
* Added intro docs, fixed links
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* Add changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Brendan Graetz
13e2132b69
docs: minor - spelling, grammar ( #2273 )
5 years ago
Nicolás Venturo
5294f3b9b7
3.0.2
5 years ago
Nicolás Venturo
fac773ac99
Add SPX license identifier ( #2235 )
...
(cherry picked from commit 56de324afe
)
5 years ago
Nicolás Venturo
82769e54c3
Fix 721 preset docs
5 years ago
Nicolás Venturo
022f2bc177
Improve SignedSafeMath docs
5 years ago