This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ethereum helper methods | |
| # source this in your .bashrc or .zshrc file with `. ~/.ethrc` | |
| # --- Token addresses --- | |
| aave=0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9 | |
| comp=0xc00e94Cb662C3520282E6f5717214004A7f26888 | |
| crv=0xD533a949740bb3306d119CC777fa900bA034cd52 | |
| dai=0x6B175474E89094C44Da98b954EedeAC495271d0F | |
| gtc=0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F | |
| mkr=0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Benchmark = require("benchmark").Benchmark; | |
| const perf_hooks = require("perf_hooks"); | |
| const lTestData = []; | |
| for (let i = 0; i < 1000; ++i) { | |
| lTestData.push(i); | |
| } | |
| function SyncCompute() { | |
| const lResult = lTestData.map((aData) => (aData + Math.random()).toString()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x2b2f82d1cbd4e226f5e7c9eb1f4020d4c7a6057d |