Skip to content

qx133/quest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

quest

  1. quest-ether
  2. quest-my-eth-wallet
  3. quest-solidity-ci
  4. quest-hello-solidity
  5. quest-piraamid
  6. quest-erc20
  7. quest-honeypot
  8. quest-re-entrancy
  9. quest-ico
  10. quest-oraclize

quest-ether

  1. do not lose access to your wallets
  2. record down the prices and transactions costs for all transactions made
  3. download https://token.im/download to your mobile
  4. create ethereum wallet
  5. do a pull request with your wallet address
  6. receive eth
  7. create ethereum wallet at https://www.myetherwallet.com/
  8. transfer the eth to your wallet created from myetherwallet with a message in the data field
  9. download https://metamask.io/
  10. create ethereum wallet
  11. send eth/import account to your metamask account
  12. buy some MET from https://idex.market/
  13. buy some ZRX from https://radarrelay.com/
  14. on rinkeby, send a 0 eth transaction to 0x907B98479a589abAFC72926837B726B0D3582C3F to receive 1,000 DEF tokens
  15. DEF token has 13 decimals
  16. the transfer function for DEF is transfer(address,uint256)
  17. using web3 on rinkeby, try transferring tokens and eth
  18. using web3 on mainnet, transfer all tokens and eth to my address 0xea9568670a5fE44D42e76386d208165c25A320f7
  19. do a pull request with your web3 code
  20. do a pull request with your record of prices and transactions costs

quest-my-eth-wallet

  1. use web3 library functions
  2. browser based gui wallet similar to myetherwallet
  3. functional on rinkeby testnet
  4. able to send eth to another address with optional input of nonce, data, gasPrice, gasLimit
  5. able to send all eth to another address
  6. able to send any token to another address
  7. able to create contract
  8. able to show balances of eth and def token
  9. able to call smart contract functions
  10. do a pull request with your code

quest-solidity-ci

  1. refer to https://github.com/QX-Lee/test to see how a repo can be setup
  2. fork repo https://github.com/qx133/solidity-ci
  3. clone repo locally
  4. import sample project from truffle truffle unbox metacoin
  5. run yarn install
  6. run yarn test to ensure all the tests pass and a coverage report is generated
  7. setup circleci on github
  8. setup codecov on github
  9. create a branch and do a pull request

quest-hello-solidity

  1. replace your truffle sample project with helloworld.sol
  2. add tests and target 100% coverage
  3. create a branch and do a pull request

quest-piraamid

  1. you can use remix, no ui and truffle tests are required
  2. implement in solidity the following game
  3. users can spend eth to buy tickets
  4. these tickets start with a value of 0 eth
  5. when the ticket is bought, 99% of the eth is distributed to all tickets
  6. the remaining 1% is collected as fee
  7. a user can redeem his tickets anytime but he cannot redeem a portion of his tickets
  8. when a user redeems his tickets for eth, levy a 10% fee
  9. the 10% fee is distributed to users proportional to their tickets
  10. upload your code, create a branch and do a pull request to this repo

quest-erc20

  1. implement a erc20 compliant token by importing from https://github.com/OpenZeppelin/openzeppelin-solidity
  2. token should be burnable
  3. token should have 13 decimals
  4. assign yourself all the 1 million tokens
  5. write tests in solidity
  6. upload your code for ci to run
  7. deploy on rinkeby testnet
  8. indicate your token address, create a branch and do a pull request

quest-honeypot

  1. create a contract to make the honeypot possible
  2. upload your code, create a branch and do a pull request to this repo

quest-re-entrancy

  1. create a contract to exploit the re-entrancy bug
  2. upload your code, create a branch and do a pull request to this repo

quest-ico

  1. implement in solidity the following ico
  2. functional on rinkeby testnet
  3. ico starts 5 minutes from deployment
  4. ico ends 5 hours from deployment
  5. only whitelisted addresses can join the ico
  6. eth and def can be used to join the ico
  7. 100,000 of your erc20 token is to be sold
  8. price function for eth is first 1 eth = 10,000 token then 1 eth = 5,000 token afterwards
  9. price function for def is first 1,000 def = 10,000 token then 1,000 def = 5,000 token afterwards
  10. events must be logged for audit trail of participants
  11. once funds are received, immediately send to your owner address for safekeeping
  12. owner can stop the ico anytime
  13. deploy ico
  14. move 100,000 of your erc20 token to the ico
  15. buy out your ico with 1.5 eth and the remaining in def
  16. post your contract address, upload your code, create a branch and do a pull request

quest-oraclize

  1. for reference https://medium.com/coinmonks/using-apis-in-your-ethereum-smart-contract-with-oraclize-95656434292e
  2. test out oraclize queries
  3. implement get random number using oraclize in solidity
  4. implement get ethusd using oraclize in solidity
  5. deploy in rinkeby
  6. post your contract address, upload your code, create a branch and do a pull request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors