-
Install Foundry
-
Configure environment variable RPC to be your Alchemy/Infura endpoint.
-
Run the following miniscript in the terminal
for i in {0..999}
do| rule delegationToZeroAlwaysPossible() { | |
| env e; | |
| require e.msg.value == 0; | |
| require validDelegationState(e.msg.sender); // _balances[e.msg.sender].delegationState < 4 | |
| address v_delegateFrom = getVotingDelegate(e.msg.sender); | |
| address p_delegateFrom = getPropositionDelegate(e.msg.sender); | |
| mathint dvbFrom = getDelegatedVotingBalance(v_delegateFrom); | |
| mathint pvbFrom = getDelegatedPropositionBalance(p_delegateFrom); | |
| require dvbFrom >= balanceOf(e.msg.sender) / DELEGATED_POWER_DIVIDER(); |
Install Foundry
Configure environment variable RPC to be your Alchemy/Infura endpoint.
Run the following miniscript in the terminal
for i in {0..999}
do| address,counts | |
| 0x6977e753e022f65ebeb170d8267b2ea54a431523,7 | |
| 0x549c0421c69be943a2a60e76b19b4a801682cbd3,7 | |
| 0xee2826453a4fd5afeb7ceffeef3ffa2320081268,6 | |
| 0x93f5af632ce523286e033f0510e9b3c9710f4489,6 | |
| 0xc7bfd896cc6a8bf1d09486dd08f590691b20c2ff,6 | |
| 0x83aba53382af0754e2599312f02dfc6774489f82,6 | |
| 0x047b3e73043bbf7421b78893110fc30b7db6b126,6 | |
| 0x87616fa850c87a78f307878f32d808dad8f4d401,6 | |
| 0x316f99537b4bade5eea51073f1b7c38dfbf69a70,6 |
| {"id":0,"name":"Bitcoin","owner":"0xc0F030eac8b588817f8dA16b9a2CDCcc6451B25c"} | |
| {"id":1,"name":"Trump","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":2,"name":"King","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":3,"name":"Joe","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":4,"name":"china","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":5,"name":"usa","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":6,"name":"love","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":7,"name":"covid19","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":8,"name":"Obama","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":9,"name":"buterin","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} |
| {"id":0,"name":"Bitcoin","owner":"0xc0F030eac8b588817f8dA16b9a2CDCcc6451B25c"} | |
| {"id":1,"name":"Trump","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":2,"name":"King","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":3,"name":"Joe","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":4,"name":"china","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":5,"name":"usa","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":6,"name":"love","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":7,"name":"covid19","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":8,"name":"Obama","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} | |
| {"id":9,"name":"buterin","owner":"0x874c44A007168b1f4B260Bc7017504D151b0aF7a"} |
| [ | |
| { | |
| "address": "0xdd27fBfD9e2eBc345140542BAB7bd4235172C3B3", | |
| "uni": "2103516.590248" | |
| }, | |
| { | |
| "address": "0x274d9E726844AB52E351e8F1272e7fc3f58B7E5F", | |
| "uni": "1199494.611096" | |
| }, | |
| { |
| const getManyUsers = async (ids) => { | |
| const USERS = { | |
| 1: { name: "foo" }, | |
| 2: { name: "bar" } | |
| }; | |
| return ids.map(id => USERS[id] || null); | |
| } | |
| function createLoader(getMany) { |
yarn add eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-react eslint-plugin-react-hooks
npx install-peerdeps --dev eslint-config-airbnb
eslint --init
In .eslintrc.json:
{