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
./test/run_tests.sh
./test/run_tests.sh cov ./test/run_tests.sh test ./test/test_ether_manager.js
Queue FIFO: https://programtheblockchain.com/posts/2018/03/23/storage-patterns-stacks-queues-and-deques/
- 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
- (abandoned) restrict the amount of ether (https://docs.soliditylang.org/en/v0.8.0/security-considerations.html#restrict-the-amount-of-ether)
- (abandoned) withdraw pattern, use OZ payment API
- (abandoned) pause mode: disable trading and withdrawals
- (abandoned) cancel order