Nicolás Venturo
0ec1d761aa
Initial GSN support (beta) ( #1844 )
...
* Add base Context contract
* Add GSNContext and tests
* Add RelayHub deployment to tests
* Add RelayProvider integration, complete GSNContext tests
* Switch dependency to openzeppelin-gsn-provider
* Add default txfee to provider
* Add basic signing recipient
* Sign more values
* Add comment clarifying RelayHub's msg.data
* Make context constructors internal
* Rename SigningRecipient to GSNRecipientSignedData
* Add ERC20Charge recipients
* Harcode RelayHub address into GSNContext
* Fix Solidity linter errors
* Run server from binary, use gsn-helpers to fund it
* Migrate to published @openzeppelin/gsn-helpers
* Silence false-positive compiler warning
* Use GSN helper assertions
* Rename meta-tx to gsn, take out of drafts
* Merge ERC20 charge recipients into a single one
* Rename GSNRecipients to Bouncers
* Add GSNBouncerUtils to decouple the bouncers from GSNRecipient
* Add _upgradeRelayHub
* Store RelayHub address using unstructored storage
* Add IRelayHub
* Add _withdrawDeposits to GSNRecipient
* Add relayHub version to recipient
* Make _acceptRelayedCall and _declineRelayedCall easier to use
* Rename GSNBouncerUtils to GSNBouncerBase, make it IRelayRecipient
* Improve GSNBouncerBase, make pre and post sender-protected and optional
* Fix GSNBouncerERC20Fee, add tests
* Add missing GSNBouncerSignature test
* Override transferFrom in __unstable__ERC20PrimaryAdmin
* Fix gsn dependencies in package.json
* Rhub address slot reduced by 1
* Rename relay hub changed event
* Use released gsn-provider
* Run relayer with short sleep of 1s instead of 100ms
* update package-lock.json
* clear circle cache
* use optimized gsn-provider
* update to latest @openzeppelin/gsn-provider
* replace with gsn dev provider
* remove relay server
* rename arguments in approveFunction
* fix GSNBouncerSignature test
* change gsn txfee
* initialize development provider only once
* update RelayHub interface
* adapt to new IRelayHub.withdraw
* update @openzeppelin/gsn-helpers
* update relayhub singleton address
* fix helper name
* set up gsn provider for coverage too
* lint
* Revert "set up gsn provider for coverage too"
This reverts commit 8a7b5be5f9
.
* remove unused code
* add gsn provider to coverage
* move truffle contract options back out
* increase gas limit for coverage
* remove unreachable code
* add more gas for GSNContext test
* fix test suite name
* rename GSNBouncerBase internal API
* remove onlyRelayHub modifier
* add explicit inheritance
* remove redundant event
* update name of bouncers error codes enums
* add basic docs page for gsn contracts
* make gsn directory all caps
* add changelog entry
* lint
* enable test run to fail in coverage
6 years ago
Dinslinger90
eeeb3a5be1
Typo in ERC20.sol ( #1873 )
...
Changed word from Destoys to Destroys in line number 220.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol#L220
Need review. Thanks 👍
6 years ago
Nicolás Venturo
1c1fa5d968
Silence false positive warning on preValidatePurchase ( #1857 )
6 years ago
Andrew B Coathup
0da886c9c4
Update ReentrancyGuard.sol ( #1862 )
...
Fix typo
6 years ago
Andrew B Coathup
bd1f2ededd
Update Arrays.sol ( #1863 )
...
Fix typo
6 years ago
Aram Elchyan
5d34dbecea
Functions in SafeMath contract overloaded to accept custom error messages ( #1828 )
...
* Imporvement: functions in SafeMath contract overloaded to accept custom error messages.
* CHANGELOG updated, custom error messages added to ERC20, ERC721 and ERC777 for subtraction related exceptions.
* SafeMath overloads for 'add' and 'mul' removed.
* Error messages modified.
* Update CHANGELOG.md
6 years ago
Alan Arvelo
377431bc4c
Fix/add erc721 safe mint safe transfer from #1736 ( #1816 )
...
* added _safeTransferFrom function
* added safeMint functions
* added package-lock.json for consistency, don't know why it changes
* added initial suggestions/modifications
* change _safeTransferFrom to internal, reverted package-lock.json to original, and changed ERC721Pausable to override _transferFrom instead of transferFrom
* included tests for safeMint functions
* modified safeMint tests to be on ERC721Mock contract
* added safeMint to ERC721Mintable & respective test to ERC721MintBurn.behavior.js
6 years ago
Santiago Palladino
b8c8308d77
Add @openzeppelin/contracts as alternative package name ( #1840 )
...
* Rename package and repository name from docs and scripts
* undo root package rename
* add @openzeppelin/contracts as subpackage with release automation
* synchronize @openzeppelin/contracts version
* remove private field from package.json
* make file patterns absolute
* change wording of a comment
* use a saner version script
6 years ago
Francisco Giordano
90831c8970
Squash merge of branch docs-v2.x into master
6 years ago
Francisco Giordano
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
6 years ago
Ross Campbell
b084f42029
Update ERC20.sol ( #1815 )
...
Fix typo
6 years ago
Francisco Giordano
cdccf5ed21
add missing hex digit
...
fixes #1814
6 years ago
Philippe Castonguay
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
6 years ago
Yohann Pereira
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.
6 years ago
Francisco Giordano
852e11c2db
New guides ( #1792 )
...
* Improved tokens guide, add ERC777.
* Fix typo.
* Add release schedule and api stability.
* Add erc20 supply guide.
* Revamp get started
* Add Solidity version to examples
* Update access control guide.
* Add small disclaimer to blog guides
* Update tokens guide.
* Update docs/access-control.md
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Update docs/access-control.md
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Update docs/access-control.md
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Documentation: Typos and add npm init -y to setup instructions (#1793 )
* Fix typos in GameItem ERC721 sample contract
* Add npm init -y to create package.json
* Address review comments.
6 years ago
konta-sebastian
79346123ea
Fix Typo ( #1801 )
...
Fixing typo in comment line 9
6 years ago
tincho
1e584e4957
Fix errors in ERC777 docstrings ( #1797 )
6 years ago
tincho
d9d1082247
Change uint to uint256 ( #1794 )
6 years ago
phant0m
08f8bf71d7
Simplification of SampleToken ( #1734 )
...
* Simplification and optimization of existing contracts #8888
* Simplification of SimpleToken
* This is the fixed Simplification
* My bad I'm playing around with this git stuff, should be correct now
* add missing parenthesis
6 years ago
skyge
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.
6 years ago
Nicolás Venturo
984468b583
Create GUIDELINES.md from wiki content. ( #1776 )
...
* Create GUIDELINES.md from wiki content.
* Remove ARCHITECTURE.md
6 years ago
Andrew B Coathup
fbbff53528
Strings library ( #1746 )
...
* Feature Issue #1745
* Feature Issue #1745 remove whitespace in contract
* Feature Issue #1745 fix Solidity linter issues
* Feature Issue #1745 fix JS lint issues
* Update contracts/drafts/Strings.sol
Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com>
* Update contracts/drafts/Strings.sol
Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com>
* Update contracts/drafts/Strings.sol
Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com>
* Updates based on PR feedback
* Remove trailing whitespace
* Update tests based on @nventuro feedback
* Removed return name
* Rename length as suggested
* Rename temp variables in uint256ToString
* Renamed bytes variable to buffer
* Change concatenate to use abi.encodePacked
* Moved OraclizeAPI reference to unit256ToString
* Add emoji concat test
* Remove concatenate
* Remove concatenate from StringsMock and test
* Rename function to fromUint256
* Update StringsMock.sol
6 years ago
Francisco Giordano
d957b880fa
make naming in ERC777 clearer
6 years ago
Markus Waas
602d9d9884
Fix spelling mistake in ERC20Burnable.sol ( #1768 )
6 years ago
Francisco Giordano
c589256203
fix typos
6 years ago
Francisco Giordano
d95f5e2e50
lint
...
(cherry picked from commit bd13be9174
)
6 years ago
Francisco Giordano
e41daba7b4
merge api docs changes
...
Squashed commit of the following:
commit 06243c3e8e86074ff8e9e3f22b7829a2c315d707
Merge: 991882ec 99373558
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 18:15:37 2019 -0300
Merge branch 'api-docs' into api-docs-merge
commit 991882eca5bb8a3391995154bfb9d53d8a69cb4f
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 18:08:02 2019 -0300
manually apply docs changes and renamings
commit fa1f6e97dd67a76c3cd828d0a5e19b4ac6c37acb
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 17:36:03 2019 -0300
move functions to new order
commit 99373558e3af4905d29bc6f3f542ba93d28a24ab
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 16:23:40 2019 -0300
add missing docs links
commit d180d6c36a6f5460e85473ee5a18992d1449a6ff
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 16:14:12 2019 -0300
update solidity-docgen dependency
fixes uri encoded links
commit faab0e50da91cd2f0a409e3ad32e2db127ad319a
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 16:05:03 2019 -0300
update openzeppelin-docsite and solidity-docgen dependencies
add visibility specifiers
commit ef305268bb2735e488e35d16819a4b432b3a35e3
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 23 15:36:45 2019 -0300
Fix guide links.
commit 339b20dbfa2d5f6ea02e63c2f3fdcba0fe879c3c
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 23 13:37:51 2019 -0300
Fix typos.
commit 6c7b97460578b9eea90b53c280454e361f8f0052
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:26:29 2019 -0300
fix utilities guide links
commit 0e7692a8fd8516a11becc4121d77d792439600b1
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:23:19 2019 -0300
update solidity-docgen dependency
commit ebb8a8651516ece21736c6c3b2577eb1b3487651
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:15:01 2019 -0300
fix utilities guide links
commit 5ec47d62785e1d6e5f8e91edca58f2dc7f87d7a3
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:14:49 2019 -0300
fix escrow docs ordering
commit cdcdc909b16f219a9a3272036b6a8f21e34b48ef
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 13:35:07 2019 -0300
add wip notice
commit 987e2951ae93211c8c70c8288e30573555c57830
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 13:09:35 2019 -0300
update openzeppelin-docsite dependency
fixes links to old versions
commit b00d22c0affac2e2108df8b773dfa1706afcb44e
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 13:09:28 2019 -0300
fix guide links
commit f112a9400c5e5ad495c8e0fdb972e26987b34244
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 20:42:37 2019 -0300
update docsite
commit 68aacdd56a29e35a84f6732f9293612bbcaf7520
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 20:00:39 2019 -0300
ERC20Capped
commit 4edce78bab2c6d140f3ea3f33db71e92ca4d8aaf
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 19:52:30 2019 -0300
Unnecessary polish on token docs.
commit 2a4c91cf49c2736dc09c1c03cf383911def1a1b2
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 19:20:05 2019 -0300
rename guides
commit 61dd818ea76d4c170c4ab175c6be0d6067d21a29
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 17:04:09 2019 -0300
ERC1820 docs.
commit 77b5f0353123b76358dc6d86bdc646c86c9b0bea
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 16:17:34 2019 -0300
Introspection and ERC165.
commit 76641a253b3b70279802c5134dd107532eea4b2c
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 17:59:53 2019 -0300
update docgen
commit 7be98bc3fbd3566231f943f01b9acb58567d755b
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 17:23:50 2019 -0300
update solidity-docgen
commit f7268e6e010f8ef9ac83df241a803f91efc08c0c
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 16:58:31 2019 -0300
update docgen
commit 2a8c7a378e8962a5baeb334b2492815f05075f98
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 14:36:35 2019 -0300
Util docs.
commit 327ae8ff45a1a523c7591bf4996c4a9b52d7ec7a
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 13:08:50 2019 -0300
add missing drafts
commit 5e7f71335ac8423c0e363ae8c7ad9b2977f202f8
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:47:41 2019 -0300
tweak ierc20 docs
commit cd0e86a0b712f74ffd406e072d4b1fbf4dd2c176
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:46:45 2019 -0300
add some erc721 docs
commit e081184159417f71da14bc0fc110b7b11e29d75d
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:41:46 2019 -0300
update docsite
commit 0beb75784022419d47123c2a9fe7a5f1eb87f9b2
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:22:27 2019 -0300
correct drafts structure
commit 2e94b287c7cead7a6c0603205670566461c31abb
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 11:56:25 2019 -0300
fix docsite-start script
commit 0fa4160484309d0851584fe57c0d81a3600977db
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 11:47:44 2019 -0300
improve docsite start script (automatically watch docgen)
commit 9d571897cc03bee92035964cf7a2cfeda1e2f690
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 11:30:37 2019 -0300
update solidity-docgen
commit 82980f5aefbdfb8a9815a3b7b0e88e970b65dd5d
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 19:15:13 2019 -0300
edit docs for Secondary
commit 00d7a005b0530bee730b77a1b69a95f1b4ffe315
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 19:15:13 2019 -0300
edit docs for ownable
commit b0c4c2bdf83eca5d4a71792daac603236733d46e
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 18:27:13 2019 -0300
change title of Math section
commit deb788583f191780e55b7f673520eaf13a5c7e23
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 18:26:59 2019 -0300
capitalization
commit f2bcf85d343ea4a0739fe22a77b1e22c2296ddea
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 18:26:06 2019 -0300
edit docs for Pausable
commit 73ba0cf43dbb44c39c1bf2ee63ef9fe558faa919
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Sat May 18 19:08:06 2019 -0300
Crypto docs.
commit 9d6fc6223f51cf2321b2e3217c512579654c3917
Merge: 7e21f8f7 9f1cec12
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Fri May 17 17:23:15 2019 -0300
Merge branch 'api-docs-777' into api-docs
commit 9f1cec12e3351fb1b5fc0b59f5ded39928064a56
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Fri May 17 17:22:54 2019 -0300
ERC777 done.
commit 7e21f8f7b6982d2f92df302cdf6ec62522d8ffff
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Fri May 17 16:39:47 2019 -0300
add math docs
commit f18d1f17023b6e5b42ae04fc38aa1170e6863864
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 20:01:46 2019 -0300
First draft of ERC777 docs.
commit 985c5d3053
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 19:14:32 2019 -0300
Final draft for IERC777.
commit bf53f133d987b67f938a329e6d659ba3483aab0b
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 16 19:13:37 2019 -0300
more work on ERC20 api docs
commit b7c250b7cb
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 17:08:47 2019 -0300
Fix typo.
commit 197bbfbfc6
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 17:05:14 2019 -0300
Initial draft of IERC777.
commit 7dc3b55161c860437a8f13a2ce5808b1c3dd70a2
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 16 11:58:32 2019 -0300
add payment docs structure
commit da16fc4480
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 16:05:33 2019 -0300
Initial ERC777 docstrings.
commit 9f6a7e35bd
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 15 22:13:17 2019 -0300
partial pass through ERC20 docs
(cherry picked from commit 2f9ae975c8
)
6 years ago
Francisco Giordano
bd13be9174
lint
6 years ago
Francisco Giordano
2f9ae975c8
merge api docs changes
...
Squashed commit of the following:
commit 06243c3e8e86074ff8e9e3f22b7829a2c315d707
Merge: 991882ec 99373558
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 18:15:37 2019 -0300
Merge branch 'api-docs' into api-docs-merge
commit 991882eca5bb8a3391995154bfb9d53d8a69cb4f
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 18:08:02 2019 -0300
manually apply docs changes and renamings
commit fa1f6e97dd67a76c3cd828d0a5e19b4ac6c37acb
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 17:36:03 2019 -0300
move functions to new order
commit 99373558e3af4905d29bc6f3f542ba93d28a24ab
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 16:23:40 2019 -0300
add missing docs links
commit d180d6c36a6f5460e85473ee5a18992d1449a6ff
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 16:14:12 2019 -0300
update solidity-docgen dependency
fixes uri encoded links
commit faab0e50da91cd2f0a409e3ad32e2db127ad319a
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 16:05:03 2019 -0300
update openzeppelin-docsite and solidity-docgen dependencies
add visibility specifiers
commit ef305268bb2735e488e35d16819a4b432b3a35e3
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 23 15:36:45 2019 -0300
Fix guide links.
commit 339b20dbfa2d5f6ea02e63c2f3fdcba0fe879c3c
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 23 13:37:51 2019 -0300
Fix typos.
commit 6c7b97460578b9eea90b53c280454e361f8f0052
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:26:29 2019 -0300
fix utilities guide links
commit 0e7692a8fd8516a11becc4121d77d792439600b1
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:23:19 2019 -0300
update solidity-docgen dependency
commit ebb8a8651516ece21736c6c3b2577eb1b3487651
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:15:01 2019 -0300
fix utilities guide links
commit 5ec47d62785e1d6e5f8e91edca58f2dc7f87d7a3
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 15:14:49 2019 -0300
fix escrow docs ordering
commit cdcdc909b16f219a9a3272036b6a8f21e34b48ef
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 13:35:07 2019 -0300
add wip notice
commit 987e2951ae93211c8c70c8288e30573555c57830
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 13:09:35 2019 -0300
update openzeppelin-docsite dependency
fixes links to old versions
commit b00d22c0affac2e2108df8b773dfa1706afcb44e
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 23 13:09:28 2019 -0300
fix guide links
commit f112a9400c5e5ad495c8e0fdb972e26987b34244
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 20:42:37 2019 -0300
update docsite
commit 68aacdd56a29e35a84f6732f9293612bbcaf7520
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 20:00:39 2019 -0300
ERC20Capped
commit 4edce78bab2c6d140f3ea3f33db71e92ca4d8aaf
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 19:52:30 2019 -0300
Unnecessary polish on token docs.
commit 2a4c91cf49c2736dc09c1c03cf383911def1a1b2
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 19:20:05 2019 -0300
rename guides
commit 61dd818ea76d4c170c4ab175c6be0d6067d21a29
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 17:04:09 2019 -0300
ERC1820 docs.
commit 77b5f0353123b76358dc6d86bdc646c86c9b0bea
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 16:17:34 2019 -0300
Introspection and ERC165.
commit 76641a253b3b70279802c5134dd107532eea4b2c
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 17:59:53 2019 -0300
update docgen
commit 7be98bc3fbd3566231f943f01b9acb58567d755b
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 17:23:50 2019 -0300
update solidity-docgen
commit f7268e6e010f8ef9ac83df241a803f91efc08c0c
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 16:58:31 2019 -0300
update docgen
commit 2a8c7a378e8962a5baeb334b2492815f05075f98
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Wed May 22 14:36:35 2019 -0300
Util docs.
commit 327ae8ff45a1a523c7591bf4996c4a9b52d7ec7a
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 13:08:50 2019 -0300
add missing drafts
commit 5e7f71335ac8423c0e363ae8c7ad9b2977f202f8
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:47:41 2019 -0300
tweak ierc20 docs
commit cd0e86a0b712f74ffd406e072d4b1fbf4dd2c176
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:46:45 2019 -0300
add some erc721 docs
commit e081184159417f71da14bc0fc110b7b11e29d75d
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:41:46 2019 -0300
update docsite
commit 0beb75784022419d47123c2a9fe7a5f1eb87f9b2
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 12:22:27 2019 -0300
correct drafts structure
commit 2e94b287c7cead7a6c0603205670566461c31abb
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 11:56:25 2019 -0300
fix docsite-start script
commit 0fa4160484309d0851584fe57c0d81a3600977db
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 11:47:44 2019 -0300
improve docsite start script (automatically watch docgen)
commit 9d571897cc03bee92035964cf7a2cfeda1e2f690
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 22 11:30:37 2019 -0300
update solidity-docgen
commit 82980f5aefbdfb8a9815a3b7b0e88e970b65dd5d
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 19:15:13 2019 -0300
edit docs for Secondary
commit 00d7a005b0530bee730b77a1b69a95f1b4ffe315
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 19:15:13 2019 -0300
edit docs for ownable
commit b0c4c2bdf83eca5d4a71792daac603236733d46e
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 18:27:13 2019 -0300
change title of Math section
commit deb788583f191780e55b7f673520eaf13a5c7e23
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 18:26:59 2019 -0300
capitalization
commit f2bcf85d343ea4a0739fe22a77b1e22c2296ddea
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Tue May 21 18:26:06 2019 -0300
edit docs for Pausable
commit 73ba0cf43dbb44c39c1bf2ee63ef9fe558faa919
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Sat May 18 19:08:06 2019 -0300
Crypto docs.
commit 9d6fc6223f51cf2321b2e3217c512579654c3917
Merge: 7e21f8f7 9f1cec12
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Fri May 17 17:23:15 2019 -0300
Merge branch 'api-docs-777' into api-docs
commit 9f1cec12e3351fb1b5fc0b59f5ded39928064a56
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Fri May 17 17:22:54 2019 -0300
ERC777 done.
commit 7e21f8f7b6982d2f92df302cdf6ec62522d8ffff
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Fri May 17 16:39:47 2019 -0300
add math docs
commit f18d1f17023b6e5b42ae04fc38aa1170e6863864
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 20:01:46 2019 -0300
First draft of ERC777 docs.
commit 985c5d3053
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 19:14:32 2019 -0300
Final draft for IERC777.
commit bf53f133d987b67f938a329e6d659ba3483aab0b
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 16 19:13:37 2019 -0300
more work on ERC20 api docs
commit b7c250b7cb
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 17:08:47 2019 -0300
Fix typo.
commit 197bbfbfc6
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 17:05:14 2019 -0300
Initial draft of IERC777.
commit 7dc3b55161c860437a8f13a2ce5808b1c3dd70a2
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Thu May 16 11:58:32 2019 -0300
add payment docs structure
commit da16fc4480
Author: Nicolás Venturo <nicolas.venturo@gmail.com>
Date: Thu May 16 16:05:33 2019 -0300
Initial ERC777 docstrings.
commit 9f6a7e35bd
Author: Francisco Giordano <frangio.1@gmail.com>
Date: Wed May 15 22:13:17 2019 -0300
partial pass through ERC20 docs
6 years ago
Francisco Giordano
ee7ff81728
Improve prepack script ( #1747 )
...
* improve prepack script
* remove .npmignore
* make prepack use pkg.files
* fix linter errors
(cherry picked from commit cc19ccfdb3
)
6 years ago
Nicolás Venturo
9ab93f8ae4
Update transferFrom to modify allowance in-between hook calls. ( #1751 )
...
* Fix transferFrom not updating allowance before calling receiver.
* Fix from being passed as operator.
(cherry picked from commit 2ccc12b328
)
6 years ago
Nicolás Venturo
f7ff3e7e67
Disallow ERC20._transfer from the zero address. ( #1752 )
...
* Add requirement of non-zero from to ERC20 transfer.
* Add test for transferFrom zero address to behavior.
* Create ERC20.transfer behavior.
* Add tests for _transfer.
* Add changelog entry.
* Fix linter error.
* Delete repeated test.
* Fix hardcoded error prefix.
* Update CHANGELOG.md
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Address review comments.
(cherry picked from commit ad18098d65
)
6 years ago
Nicolás Venturo
2ccc12b328
Update transferFrom to modify allowance in-between hook calls. ( #1751 )
...
* Fix transferFrom not updating allowance before calling receiver.
* Fix from being passed as operator.
6 years ago
Nicolás Venturo
ad18098d65
Disallow ERC20._transfer from the zero address. ( #1752 )
...
* Add requirement of non-zero from to ERC20 transfer.
* Add test for transferFrom zero address to behavior.
* Create ERC20.transfer behavior.
* Add tests for _transfer.
* Add changelog entry.
* Fix linter error.
* Delete repeated test.
* Fix hardcoded error prefix.
* Update CHANGELOG.md
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Address review comments.
6 years ago
Francisco Giordano
cc19ccfdb3
Improve prepack script ( #1747 )
...
* improve prepack script
* remove .npmignore
* make prepack use pkg.files
* fix linter errors
6 years ago
Nicolás Venturo
81d04101ff
Fix linter.
...
(cherry picked from commit c92b75305e
)
6 years ago
Nicolás Venturo
1292b6abab
Move ERC1820 and ERC777 out of drafts ( #1742 )
...
* Moved ERC1820 related contracts out of drafts and into introspection.
* Moved ERC777 related contracts out of drafts and into token.
(cherry picked from commit c794c96617
)
6 years ago
Francisco Giordano
44590fe0b6
Inline keccak256 result ( #1741 )
...
* inline keccak256 result
* Update ERC777.sol
* switch hex constant style
* Update ERC777.sol
(cherry picked from commit e60c7904d4
)
6 years ago
Nicolás Venturo
6c2b7c260d
Add ERC20 compatibility to ERC777. ( #1735 )
...
* Add ERC20 compatibility.
* Reusing ERC20 tests for ERC777.
* Improve documentation.
* Add changelog entry.
* Improved ERC20 behavior tests.
* Add revert reasons to ERC777.
* ERC20 methods allow sending tokens to contracts with no interface.
* Register ERC20 interface.
* Add comment about avoidLockingTokens.
* Improve revert reason string.
* Make ERC777 implement IERC20.
* Fix test revert string.
* Remove unnecesary require.
* Add private _transfer.
* Update contracts/drafts/ERC777/ERC777.sol
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Update private helper names.
(cherry picked from commit aa4c9feabd
)
6 years ago
Nicolás Venturo
835c23d6f7
Hardcode ERC777 granularity to 1, remove tests. ( #1739 )
...
* Hardcode ERC777 granularity to 1, remove tests.
* Add clarifying title comment.
(cherry picked from commit 376820d55c
)
6 years ago
Nicolás Venturo
c794c96617
Move ERC1820 and ERC777 out of drafts ( #1742 )
...
* Moved ERC1820 related contracts out of drafts and into introspection.
* Moved ERC777 related contracts out of drafts and into token.
6 years ago
Nicolás Venturo
c92b75305e
Fix linter.
6 years ago
Francisco Giordano
e60c7904d4
Inline keccak256 result ( #1741 )
...
* inline keccak256 result
* Update ERC777.sol
* switch hex constant style
* Update ERC777.sol
6 years ago
Nicolás Venturo
aa4c9feabd
Add ERC20 compatibility to ERC777. ( #1735 )
...
* Add ERC20 compatibility.
* Reusing ERC20 tests for ERC777.
* Improve documentation.
* Add changelog entry.
* Improved ERC20 behavior tests.
* Add revert reasons to ERC777.
* ERC20 methods allow sending tokens to contracts with no interface.
* Register ERC20 interface.
* Add comment about avoidLockingTokens.
* Improve revert reason string.
* Make ERC777 implement IERC20.
* Fix test revert string.
* Remove unnecesary require.
* Add private _transfer.
* Update contracts/drafts/ERC777/ERC777.sol
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Update private helper names.
6 years ago
Nicolás Venturo
376820d55c
Hardcode ERC777 granularity to 1, remove tests. ( #1739 )
...
* Hardcode ERC777 granularity to 1, remove tests.
* Add clarifying title comment.
6 years ago
Nicolás Venturo
ae919629cd
Revert Solidity version bump. ( #1729 )
...
(cherry picked from commit 67bca857ee
)
6 years ago
Nicolás Venturo
67bca857ee
Revert Solidity version bump. ( #1729 )
6 years ago
Nicolás Venturo
2f8e844514
Fix remaining revert reasons.
6 years ago
Balaji Pachai
3682c6575c
Added message string for require() ( #1704 )
...
* Error handling in ERC20 and ERC721
* Added message string for require.
* Fixed solhint errors.
* Updated PR as per issue #1709
* changes as per #1709 and openzeppelin forum.
* Changes in require statement
* Changes in require statement
* build pipeline fix
* Changes as per @nventuro's comment.
* Update revert reason strings.
* Fianal update of revert reason strings.
* WIP: Updating reason strings in test cases
* WIP: Added changes to ERC20 and ERC721
* Fixes linting errors in *.tes.js files
* Achieved 100% code coverage
* Updated the test cases with shouldFail.reverting.withMessage()
* Fix package-lock.
* address review comments
* fix linter issues
* fix remaining revert reasons
6 years ago
Nicolás Venturo
97a9ca5681
Add a vault to PostDeliveryCrowdsale. ( #1721 )
...
* Add a vault to PostDeliveryCrowdsale.
* Add changelog entry.
* Apply suggestions from code review
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Rename TokenVault.
* add solhint ignore directive
6 years ago