1. 17 Apr, 2018 1 commit
  2. 11 Apr, 2018 1 commit
    • Add StandardBurnableToken implementation (#870) · 0926729c
      * Add StandardBurnableToken implementation
      
      BurnableToken that extends from StandardToken and adds a
      burnFrom method that decrements allowance. Equivalent to
      a transferFrom plus burn in a single operation.
      
      * Return event object from expectEvent helper
      
      * Add comment on Approval event in burnFrom function
      
      * Improvements on burnable token tests
      
      - Inject initial balance as a parameter to the behaviour
      - Use expectEvent helper for assertions on events
      - Use chai bignumber for numbers
      - Change to bdd-style assertions
      Santiago Palladino authored
  3. 10 Apr, 2018 1 commit
    • Various fixes and formatting chores (#885) · 9e1c934f
      * fix: clean up solium linting errors
      
      * fix: make various contracts natspec compliant
      
      * fix: this.balance deprecated; convert to address(this).balance
      
      * fix: contract.call deprecated and switch to gasleft()
      
      * fix: ignore empty block rule project-wide
      
      * fix: add ignore cases for the rest of the linting warnings
      Matt Condon authored
  4. 09 Apr, 2018 1 commit
    • Update to Truffle 4.1.5 and Ganache 6.1.0 (#876) · a7e91856
      * Update to ganache-cli v6.1.0 and truffle v4.1.0
      
      * Update to stable version of ganache-cli
      
      * fix: update event emission warning
      
      - Fix event emission warnings for solidity 4.21 after truffle has been
      updated to use this version
      
      * fix pr review comments
      
      * update to truffle v4.1.5
      
      * update package-lock
      
      * add additional emit keywords
      
      * update solidity-coverage to 0.4.15
      
      * update to solium 1.1.6
      
      * fix MerkleProof coverage analysis by testing through wrapper
      
      * change version pragma to ^0.4.21
      
      * fix solium linting errors
      Francisco Giordano authored
  5. 08 Apr, 2018 1 commit
  6. 05 Apr, 2018 1 commit
  7. 04 Apr, 2018 1 commit
  8. 03 Apr, 2018 5 commits
  9. 28 Mar, 2018 2 commits
  10. 27 Mar, 2018 1 commit
  11. 26 Mar, 2018 1 commit
  12. 23 Mar, 2018 2 commits
    • v1.8.0 · cacf0364
      Francisco Giordano authored
    • ERC721 full implementation (#803) · e96164fe
      * Rename current ERC721 implementation to BaseERC721
      
      * Implement ERC721 optional & approveAll functionality
      
      * Support for new ERC721 interface
      
      - Tests for new features are pending
      - ERC721 is abstract, since it requires metadata implementation
      - Move some methods into DeprecatedERC721 contract
      - Reorganise base vs full implementation
      - Pending tokenByIndex
      
      * Add more tests for ERC721
      
      * Implement suggestions by @dekz
      
      * Update comments in ERC721 contracts
      
      * Implement tokensByIndex extension
      
      - Remove restrictions from mock mint and burn calls
      
      * Add default implementation for metadata URI
      
      This allows token implementation to be non-abstract
      
      * Allow operators to call approve on a token
      
      * Remove gas stipend restriction in call to 721 receiver
      
      * Remove deprecated implementation
      
      We only want to keep the interface, for interacting with already deployed contracts
      
      * Add notice to isContract helper on constract constructors
      
      * Change natspec delimiters for consistency
      
      * Minor linting fixes
      
      * Add constant modifier to ERC721_RECEIVED magic value
      
      * Use 4-params safeTransferFrom for implementing the 3-params overload
      
      * Minor text changes in natspec comments
      
      * Use address(0) instead of 0 or 0x0
      
      * Use if-statements instead of boolean one-liners for clarity
      
      :-(
      
      * Keep ownedTokensCount state var in sync in full ERC721 implementation
      
      * Fix incorrect comparison when burning ERC721 tokens with metadata
      
      * Use address(0) instead of 0 in one more place in ERC721
      
      * Throw when querying balance for the zero address
      
      Required by the spec
      
      * Update links to approved version of EIP721
      
      * Use explicit size for uint
      
      * Remove unneeded internal function in ERC721
      
      Also rename addToken and removeToken for added clarity
      
      * Use underscore instead of 'do' prefix for internal methods in ERC721
      
      * Fix failing test due to events reordering in ERC721 safe transfer
      
      * Fix bug introduced in 74db03ba06
      
      * Remove do prefix for internal setTokenUri method
      
      * Allow transfers to self in ERC721
      Santiago Palladino authored
  13. 22 Mar, 2018 3 commits
  14. 21 Mar, 2018 1 commit
  15. 19 Mar, 2018 1 commit
  16. 16 Mar, 2018 1 commit
  17. 12 Mar, 2018 1 commit
  18. 08 Mar, 2018 1 commit
  19. 06 Mar, 2018 2 commits
  20. 05 Mar, 2018 1 commit
  21. 02 Mar, 2018 1 commit
  22. 26 Feb, 2018 1 commit
  23. 20 Feb, 2018 3 commits
    • Add Transfer event to Burnable Token. (#735) · 5ef85547
      Fixes #732
      Roman Storm authored
    • v1.7.0 · 9ea4bae3
      Manuel Araoz authored
    • Crowdsale refactor and add new models (#744) · c05918c3
      * Basic idea
      
      * Fine tuning idea
      
      * Add comments / tidy up Crowdsale base class
      
      * fixed TimedCrowdsale constructor
      
      * added simple crowdsale test
      
      * added HODL directory under home to store unused contracts. ugly hack to solve Crowdsale selection in tests, better way?
      
      * Capped no longer inherits from Timed, added capReached() method (replacing hasEnded())
      
      * added SafeMath in TimedCrowdsale for safety, CHECK whether it is inherited from Crowdsale
      
      * several fixes related to separating Capped from Timed. functions renamed, mocks changed. Capped tests passing
      
      * added TimedCrowdsaleImpl.sol, TimedCrowdsale tests, passed
      
      * added Whitelisted implementation and test, passed.
      
      * removed unnecessary super constructor call in WhitelistedCrowdsale, removed unused dependencies in tests
      
      * renamed UserCappedCrowdsale to IndividuallyCappedCrowdsale, implemented IndividuallyCappedCrowdsaleImpl.sol and corresponding tests, passed.
      
      * homogeneized use of using SafeMath for uint256 across validation crowdsales. checked that it IS indeed inherited, but leaving it there as per Frans suggestion.
      
      * adding questions.md where I track questions, bugs and progress
      
      * modified VariablePriceCrowdsale, added Impl.
      
      * finished VariablePrice, fixed sign, added test, passing.
      
      * changed VariablePrice to IncreasingPrice, added corresponding require()
      
      * MintedCrowdsale done, mock implemented, test passing
      
      * PremintedCrowdsale done, mocks, tests passing
      
      * checked FinalizableCrowdsale
      
      * PostDeliveryCrowdsale done, mock, tests passing.
      
      * RefundableCrowdsale done. Detached Vault. modified mock and test, passing
      
      * renamed crowdsale-refactor to crowdsale in contracts and test
      
      * deleted HODL old contracts
      
      * polished variable names in tests
      
      * fixed typos and removed comments in tests
      
      * Renamed 'crowdsale-refactor' to 'crowdsale' in all imports
      
      * Fix minor param naming issues in Crowdsale functions and added documentation to Crowdsale.sol
      
      * Added documentation to Crowdsale extensions
      
      * removed residual comments and progress tracking files
      
      * added docs for validation crowdsales
      
      * Made user promises in PostDeliveryCrowdsale public so that users can query their promised token balance.
      
      * added docs for distribution crowdsales
      
      * renamed PremintedCrowdsale to AllowanceCrowdsale
      
      * added allowance check function and corresponding test. fixed filename in AllowanceCrowdsale mock.
      
      * spilt Crowdsale _postValidatePurchase in _postValidatePurchase and _updatePurchasingState. changed IndividuallyCappedCrowdsale accordingly.
      
      * polished tests for linter, salve Travis
      
      * polished IncreasingPriceCrowdsale.sol for linter.
      
      * renamed and polished for linter WhitelistedCrowdsale test.
      
      * fixed indentation in IncreasingPriceCrowdsaleImpl.sol for linter
      
      * fixed ignoring token.mint return value in MintedCrowdsale.sol
      
      * expanded docs throughout, fixed minor issues
      
      * extended test coverage for IndividuallyCappedCrowdsale
      
      * Extended WhitelistedCrwodsale test coverage
      
      * roll back decoupling of RefundVault in RefundableCrowdsale
      
      * moved cap exceedance checks in Capped and IndividuallyCapped crowdsales to _preValidatePurchase to save gas
      
      * revert name change, IndividuallyCapped to UserCapped
      
      * extended docs.
      
      * added crowd whitelisting with tests
      
      * added group capping, plus tests
      
      * added modifiers in TimedCrowdsale and WhitelistedCrowdsale
      
      * polished tests for linter
      
      * moved check of whitelisted to modifier, mainly for testing coverage
      
      * fixed minor ordering/polishingafter review
      
      * modified TimedCrowdsale modifier/constructor ordering
      
      * unchanged truffle-config.js
      
      * changed indentation of visibility modifier in mocks
      
      * changed naming of modifier and function to use Open/Closed for TimedCrowdsale
      
      * changed ordering of constructor calls in SampleCrowdsale
      
      * changed startTime and endTime to openingTime and closingTime throughout
      
      * fixed exceeding line lenght for linter
      
      * renamed _emitTokens to _deliverTokens
      
      * renamed addCrowdToWhitelist to addManyToWhitelist
      
      * renamed UserCappedCrowdsale to IndividuallyCappedCrowdsale
      Alejo Salles authored
  24. 16 Feb, 2018 1 commit
  25. 15 Feb, 2018 1 commit
  26. 08 Feb, 2018 1 commit
  27. 26 Jan, 2018 1 commit
    • Enhancement/heritable encapsulation #692 (#702) · 7a0bfdfb
      * Modified Gitignore for Sublime
      
      * Added getter functions for public variables
      
      * Added encapsulation to Heritable public variables.
      
      * Added encapsulation to Heritable public variables.
      
      * Added encapsulation to Heritable public variables.
      
      * Updated tests to use getter methods instead of, now, private variables.
      
      * Conformed variable names to current conventions.
      
      * Requested changes
      
      * revert package-lock.json changes
      trejas authored
  28. 25 Jan, 2018 2 commits