Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.3 KB

readme.md

File metadata and controls

53 lines (36 loc) · 1.3 KB

ERC1155 Exchange

Dev

Use atom text editor and these extensions:

  • prettier-atom

  • language-solidity

  • atom-solidity-linter

  • autocomplete-solidity

  • solidity-comments

  • minimap

  • minimap-linter

  • minimap-plus

  • file-type-icons

    npx nodemon --watch contracts --ext sol --exec npm run compile

    npx nodemon --exec npm run deploy

    npx nodemon --watch contracts --watch test --ext sol,js --exec npm run test

    node src/sripts.js

    run tests and say result

    ./test/run_tests.sh

    run test coverage and say result

    ./test/run_tests.sh cov ./test/run_tests.sh test ./test/test_ether_manager.js

Ressources

Queue FIFO: https://programtheblockchain.com/posts/2018/03/23/storage-patterns-stacks-queues-and-deques/

https://medium.com/coinmonks/ethereum-solidity-memory-vs-storage-which-to-use-in-local-functions-72b593c3703a

Features

  • limit orders
  • fees paid by taker and 1/3 fees bonus earn by maker
  • deposit and withdraw fee credits (ether)
  • withdraw bonus fee credits (ether)
  • withdraw ether

TODO