Giter Club home page Giter Club logo

currency's People

Contributors

kseniya292 avatar laurenamy avatar

currency's Issues

[TESTS]

Token Test:
it should revert if owner has not given approval
it should revert if transferFrom function is not called by Contribution contract

[ERC721 Token]

  • add function that creates(mints) an NFT token
  • each NFT token represents an animal (a struct with a name, type of animal, age)
  • a function the returns the animal for a user
  • any user should be allowed to mint an NFT token
  • only owner should be able to pause and unpause contract

Implement Gnosis mock-contract

@laurenamy Take a look through this: https://github.com/gnosis/mock-contract

This application may be too simple to use this right now, but I want you to familiarize yourself with this because I want to start using it with projects. It's really useful when you have to do a lot of setup in other contracts before testing a specific function. It enables true unit testing.

To see how this makes things easier, you can take a look at this PR that I submitted for LottoDAO to refactor one of the testing files for a smart contract:
https://github.com/upstateinteractive/lottoDAO/pull/169/files

[ERC20 TOKEN CONTRACT]

Develop a token contract that inherits from OpenZeppelin's ERC20 contract and extends its functionality so that tokens can only be transferred after a particular _startTime and before a particular _endTime that are provided in the constructor.

[CROWDFUNDING] Develop a crowdfunding contract

  • users must be token holders
  • add a function for users to start a project with a title, amount of tokens to raise, and duration in days
  • get a project by projectId
  • get all projects
  • allow user to submit tokens for a specific project
  • keep track of users who submitted tokens for each project
  • check tokens raised for each project
  • do not allow users to submit tokens if duration has passed
  • function to allow user to get refund if duration has passed and full amount of tokens was not raised

[CONTRIBUTION]

Implement a Contribution contract that users can donate ETH to. In return for their ETH-based contributions, your Contribution contract should issue them tokens from your token contract in return.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.