1. 20 Apr, 2020 2 commits
  2. 17 Apr, 2020 2 commits
  3. 16 Apr, 2020 1 commit
  4. 15 Apr, 2020 6 commits
  5. 14 Apr, 2020 2 commits
  6. 13 Apr, 2020 2 commits
  7. 07 Apr, 2020 1 commit
    • Update Contracts docs to make examples compile (#2170) · 05d1618d
      * Update access-control.adoc to make compile
      
      Add call to `ERC20("MyToken", "TKN")` in `MyToken` constructor
      
      * Update access-control.adoc to make compile
      
      Add call to `ERC20("MyToken", "TKN")` in `MyToken` constructor
      
      * Update access-control.adoc MyToken formatting
      
      * Update erc20-supply.adoc to make compile
      
      Add call to `ERC20("MyToken", "TKN")` in `ERC20FixedSupply` constructor
      
      * Update erc20-supply.adoc to make compile
      
      Add constructor to `ERC20WithMinerReward`
      
      * Update erc20-supply.adoc to make compile
      
      In `MinerRewardMinter` use `ERC20MinterPauser`
      
      * Update erc20-supply.adoc to make compile
      
      Add constructor and override to `ERC20WithAutoMinerReward`
      
      * Update erc777.adoc to make compile
      
      * Update gsn-strategies.adoc to make compile
      
      * Update gsn-strategies.adoc to make compile
      
      Fix imports, add overrides, and revert reason to `MyContract`
      Andrew B Coathup authored
  8. 04 Apr, 2020 1 commit
  9. 03 Apr, 2020 7 commits
  10. 02 Apr, 2020 4 commits
    • Remove unused behavior · 6668a4d0
      Nicolás Venturo authored
    • Add EnumerableMap, refactor ERC721 (#2160) · bd077846
      * Implement AddressSet in terms of a generic Set
      
      * Add Uint256Set
      
      * Add EnumerableMap
      
      * Fix wording on EnumerableSet docs and tests
      
      * Refactor ERC721 using EnumerableSet and EnumerableMap
      
      * Fix tests
      
      * Fix linter error
      
      * Gas optimization for EnumerableMap
      
      * Gas optimization for EnumerableSet
      
      * Remove often not-taken if from Enumerable data structures
      
      * Fix failing test
      
      * Gas optimization for EnumerableMap
      
      * Fix linter errors
      
      * Add comment for clarification
      
      * Improve test naming
      
      * Rename EnumerableMap.add to set
      
      * Add overload for EnumerableMap.get with custom error message
      
      * Improve Enumerable docs
      
      * Rename Uint256Set to UintSet
      
      * Add changelog entry
      Nicolás Venturo authored
    • Bundle ERC20Detailed (#2161) · 0408e51a
      * Merge ERC20Detailed into ERC20, make derived contracts abstract
      
      * Fix Create2 tests
      
      * Fix failing test
      
      * Default decimals to 18
      
      * Add tests for setupDecimals
      
      * Add changelog entry
      
      * Update CHANGELOG.md
      
      * Update CHANGELOG.md
      
      * Replace isConstructor for !isContract
      
      * Update CHANGELOG.md
      
      Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
      
      Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
      Nicolás Venturo authored
    • Remove 'external' functions (#2162) · 5b5d91c9
      * Remove _grantRole and _revokeRole, replace with _setupRole
      
      * Make all external AccessControl functions public
      
      * Remove Ownable._transferOwnership
      
      * Rename ERC721's _safeTransferFrom and _transferFrom to _safeTransfer and _transfer
      
      * Make all ERC721 external functions public
      
      * Make all miscelaneous external functions public instead
      
      * Add changelog entry
      
      * Move calldata arguments to memory
      
      * Update contracts/access/AccessControl.sol
      
      Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
      
      * Restrict setupRole to the constructor
      
      * Replace isConstructor for !isContract
      
      Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
      Nicolás Venturo authored
  11. 30 Mar, 2020 4 commits
  12. 28 Mar, 2020 1 commit
    • Add revert if the bytecode length is zero (#2117) · feb7ead0
      * Add revert if the bytecode length is not greater than zero
      
      * Add value parameter to create2 deploy function
      
      Add tests for contract balance revert and depositing funds
      
      * Change parameter name to amount for clarity
      
      * Fix test for value sending
      
      * Fix linter error
      
      * Change revert reason
      
      * Improve Create2.deploy documentation
      
      * Slight test improvement
      
      * Add changelog entry
      
      Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
      corydickson authored
  13. 27 Mar, 2020 5 commits
    • API improvements for EnumerableSet (#2151) · 7415ebe8
      * Add revert reason to EnumerableSet.get.
      
      * Rename EnumerableSet values to keys
      
      * Rename get to at
      
      * Add changelog entry
      
      * Rename keys to values
      
      * Add leading underscore to struct members
      Nicolás Venturo authored
    • Bundle ERC721 extensions into base contract (#2149) · 24c37c1f
      * Add IERC721Metadata implementation into ERC721
      
      * Add IERC721Enumerable into ERC721
      
      * Update ERC721Pausable and ERC721Burnable
      
      * Delete ERC721Metadata, ERC721Enumerable and ERC721 (now ERC721)
      
      * Update mocks
      
      * Update tests
      
      * Update contracts/token/ERC721/ERC721.sol
      
      Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
      
      * Make ERC721Pausable and ERC721Burnable abstract
      
      Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
      Nicolás Venturo authored
    • [Security] Bump acorn from 6.4.0 to 6.4.1 (#2152) · c8bef057
      Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1. **This update includes a security fix.**
      - [Release notes](https://github.com/acornjs/acorn/releases)
      - [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)
      
      Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
      
      Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
      dependabot-preview[bot] authored
    • Adhere to naming convention (#2150) · 97894a14
      * Upgrade to latest solhint rc
      
      * Add private-vars-leading-underscore linter rule
      
      * Add leading underscore to GSNRecipient constants
      
      * Remove leading underscore from ERC165Checker functions
      
      * Add leading underscore to multiple private constants
      
      * Fix linter errors in mocks
      
      * Add leading underscore to ERC777's ERC1820 registry
      
      * Add changelog entry
      Nicolás Venturo authored
    • Unsigned conversion #2111 (#2123) · 4476a2d5
      * Add signed to unsigned conversion to SafeCast
      
      * Update SafeCast exception message
      
      * Add test for SafeCast int to uint conversion
      
      - Update SafeCastMock
      - Add tests for SafeCast int256 to uint256
      
      * Update SafeCast int to uint definition
      
      Apply suggestions from code review.
      
      Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com>
      
      * Update test for SafeCast int to uint conversion
      
      * Update SafeCast test after code review
      
      - Change "downcasts" to "casts"
      - Move test closer to its function
      
      * Fix error in SafeCast toUint256 description
      
      * Fix breaking error in SafeCast
      
      * Add uint256 to int256 conversion to SafeCast
      
      - Add function
      - Add mock
      - Add test
      
      * Update SafeCast unsigned to signed conversion
      
      - Update error in conversion to be more clear
      - Update constants in test to be powers of 2 instead of shifts
      
      * Add changelog entry
      
      * Update SafeCast tests
      
      - Add minus in INT256_MIN for clarity
      
      Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com>
      
      Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
      pepelu authored
  14. 26 Mar, 2020 1 commit
  15. 25 Mar, 2020 1 commit