├── .babelrc ├── .gitignore ├── LICENSE ├── README.md ├── app ├── index.html ├── javascripts │ └── app.js └── stylesheets │ └── app.css ├── contracts ├── DoSGas │ ├── DoSGas.sol │ └── DoSGasVictim.sol ├── DoSRevert │ ├── DoSRevert.sol │ └── DoSRevertVictim.sol ├── ForceEther │ ├── ForceEther.sol │ └── ForceEtherVictim.sol ├── Homoglyph │ └── Homoglyph.sol ├── HoneyPot1 │ ├── Log.sol │ ├── Migrations.sol │ └── TrustFund.sol ├── HoneyPot2 │ └── FakeBank.sol ├── Migrations.sol ├── Reentrancy │ ├── ReentrancyAttacker.sol │ └── ReentrancyVictim.sol ├── ShortAddress │ └── ShortAddress.sol ├── StorageAllocation │ └── StorageAllocation.sol ├── UnderOverFlow │ └── Flow.sol └── ethorse │ ├── Betting.sol │ ├── BettingController.sol │ ├── BettingMock.sol │ ├── Migrations.sol │ └── lib │ ├── SafeMath.sol │ └── usingOraclize.sol ├── migrations └── 1_initial_migration.js ├── package.json ├── scripts └── test.sh ├── test ├── DoSGas │ └── DoSGas.js ├── DoSRevert │ └── DoSRevert.js ├── Ethorse │ └── Ethorse.js ├── ForceEther │ └── ForceEther.js ├── HoneyPot1 │ ├── log.js │ └── pot.js ├── HoneyPot2 │ └── FakeBank.js ├── Reentrancy │ └── Reentrancy.js ├── ShortAddress │ └── ShortAddress.js ├── StorageAllocation │ └── StorageAllocation.js ├── UnderOverFlow │ └── UnderOverFlow.js └── helpers │ ├── EVMRevert.js │ ├── EVMThrow.js │ ├── advanceToBlock.js │ ├── assertJump.js │ ├── assertRevert.js │ ├── decodeLogs.js │ ├── ether.js │ ├── expectEvent.js │ ├── expectThrow.js │ ├── hashMessage.js │ ├── increaseTime.js │ ├── latestTime.js │ ├── merkleTree.js │ ├── toPromise.js │ └── transactionMined.js ├── truffle.js └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/README.md -------------------------------------------------------------------------------- /app/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/app/index.html -------------------------------------------------------------------------------- /app/javascripts/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/app/javascripts/app.js -------------------------------------------------------------------------------- /app/stylesheets/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/app/stylesheets/app.css -------------------------------------------------------------------------------- /contracts/DoSGas/DoSGas.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/DoSGas/DoSGas.sol -------------------------------------------------------------------------------- /contracts/DoSGas/DoSGasVictim.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/DoSGas/DoSGasVictim.sol -------------------------------------------------------------------------------- /contracts/DoSRevert/DoSRevert.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/DoSRevert/DoSRevert.sol -------------------------------------------------------------------------------- /contracts/DoSRevert/DoSRevertVictim.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/DoSRevert/DoSRevertVictim.sol -------------------------------------------------------------------------------- /contracts/ForceEther/ForceEther.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ForceEther/ForceEther.sol -------------------------------------------------------------------------------- /contracts/ForceEther/ForceEtherVictim.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ForceEther/ForceEtherVictim.sol -------------------------------------------------------------------------------- /contracts/Homoglyph/Homoglyph.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/Homoglyph/Homoglyph.sol -------------------------------------------------------------------------------- /contracts/HoneyPot1/Log.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/HoneyPot1/Log.sol -------------------------------------------------------------------------------- /contracts/HoneyPot1/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/HoneyPot1/Migrations.sol -------------------------------------------------------------------------------- /contracts/HoneyPot1/TrustFund.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/HoneyPot1/TrustFund.sol -------------------------------------------------------------------------------- /contracts/HoneyPot2/FakeBank.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/HoneyPot2/FakeBank.sol -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/Reentrancy/ReentrancyAttacker.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/Reentrancy/ReentrancyAttacker.sol -------------------------------------------------------------------------------- /contracts/Reentrancy/ReentrancyVictim.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/Reentrancy/ReentrancyVictim.sol -------------------------------------------------------------------------------- /contracts/ShortAddress/ShortAddress.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ShortAddress/ShortAddress.sol -------------------------------------------------------------------------------- /contracts/StorageAllocation/StorageAllocation.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/StorageAllocation/StorageAllocation.sol -------------------------------------------------------------------------------- /contracts/UnderOverFlow/Flow.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/UnderOverFlow/Flow.sol -------------------------------------------------------------------------------- /contracts/ethorse/Betting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ethorse/Betting.sol -------------------------------------------------------------------------------- /contracts/ethorse/BettingController.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ethorse/BettingController.sol -------------------------------------------------------------------------------- /contracts/ethorse/BettingMock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ethorse/BettingMock.sol -------------------------------------------------------------------------------- /contracts/ethorse/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ethorse/Migrations.sol -------------------------------------------------------------------------------- /contracts/ethorse/lib/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ethorse/lib/SafeMath.sol -------------------------------------------------------------------------------- /contracts/ethorse/lib/usingOraclize.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/contracts/ethorse/lib/usingOraclize.sol -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/package.json -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/scripts/test.sh -------------------------------------------------------------------------------- /test/DoSGas/DoSGas.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/DoSGas/DoSGas.js -------------------------------------------------------------------------------- /test/DoSRevert/DoSRevert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/DoSRevert/DoSRevert.js -------------------------------------------------------------------------------- /test/Ethorse/Ethorse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/Ethorse/Ethorse.js -------------------------------------------------------------------------------- /test/ForceEther/ForceEther.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/ForceEther/ForceEther.js -------------------------------------------------------------------------------- /test/HoneyPot1/log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/HoneyPot1/log.js -------------------------------------------------------------------------------- /test/HoneyPot1/pot.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/HoneyPot1/pot.js -------------------------------------------------------------------------------- /test/HoneyPot2/FakeBank.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/HoneyPot2/FakeBank.js -------------------------------------------------------------------------------- /test/Reentrancy/Reentrancy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/Reentrancy/Reentrancy.js -------------------------------------------------------------------------------- /test/ShortAddress/ShortAddress.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/ShortAddress/ShortAddress.js -------------------------------------------------------------------------------- /test/StorageAllocation/StorageAllocation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/StorageAllocation/StorageAllocation.js -------------------------------------------------------------------------------- /test/UnderOverFlow/UnderOverFlow.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/UnderOverFlow/UnderOverFlow.js -------------------------------------------------------------------------------- /test/helpers/EVMRevert.js: -------------------------------------------------------------------------------- 1 | export default 'revert'; 2 | -------------------------------------------------------------------------------- /test/helpers/EVMThrow.js: -------------------------------------------------------------------------------- 1 | export default 'invalid opcode'; 2 | -------------------------------------------------------------------------------- /test/helpers/advanceToBlock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/advanceToBlock.js -------------------------------------------------------------------------------- /test/helpers/assertJump.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/assertJump.js -------------------------------------------------------------------------------- /test/helpers/assertRevert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/assertRevert.js -------------------------------------------------------------------------------- /test/helpers/decodeLogs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/decodeLogs.js -------------------------------------------------------------------------------- /test/helpers/ether.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/ether.js -------------------------------------------------------------------------------- /test/helpers/expectEvent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/expectEvent.js -------------------------------------------------------------------------------- /test/helpers/expectThrow.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/expectThrow.js -------------------------------------------------------------------------------- /test/helpers/hashMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/hashMessage.js -------------------------------------------------------------------------------- /test/helpers/increaseTime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/increaseTime.js -------------------------------------------------------------------------------- /test/helpers/latestTime.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/latestTime.js -------------------------------------------------------------------------------- /test/helpers/merkleTree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/merkleTree.js -------------------------------------------------------------------------------- /test/helpers/toPromise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/toPromise.js -------------------------------------------------------------------------------- /test/helpers/transactionMined.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/test/helpers/transactionMined.js -------------------------------------------------------------------------------- /truffle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/truffle.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tenthirtyone/weaponized_math/HEAD/webpack.config.js --------------------------------------------------------------------------------