currency's People
currency's Issues
[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.
[TESTS]
Token Test:
it should revert if owner has not given approval
it should revert if transferFrom function is not called by Contribution 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
[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] add function that will accept a wallet address and return the amount of ETH that a wallet address has contributed to the `Contribution` contract
[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.
[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
[CONTRIBUTION] should store the addresses of users that donate as well as the amount of ETH they’ve donated
[CONTRIBUTION] inherit OpenZeppelin's Pausable to allow owner to pause the function which accepts ETH from users
Add comments
Add commenting using similar format to LottoDAO:
https://github.com/upstateinteractive/lottoDAO/blob/next/contracts/LottoDAO.sol
[TOKEN CONTRACT] inherit ownable contract
Inherit the openzeppelin ownable contract and use onlyOwner
modifier so only owner can setStartDate
and setEndDate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.