diff --git a/research/ethereum/Pipfile.lock b/research/ethereum/Pipfile.lock index 854ba382..de910c0c 100644 --- a/research/ethereum/Pipfile.lock +++ b/research/ethereum/Pipfile.lock @@ -24,10 +24,10 @@ }, "certifi": { "hashes": [ - "sha256:376690d6f16d32f9d1fe8932551d80b23e9d393a8578c5633a2ed39a64861638", - "sha256:456048c7e371c089d0a77a5212fb37a2c2dce1e24146e3b7e0261736aaeaa22a" + "sha256:339dc09518b07e2fa7eda5450740925974815557727d6bd35d319c1524a04a4c", + "sha256:6d58c986d22b038c8c0df30d639f23a3e6d172a05c3583e766f4c0b785c0986a" ], - "version": "==2018.8.24" + "version": "==2018.10.15" }, "chardet": { "hashes": [ @@ -59,10 +59,10 @@ }, "eth-abi": { "hashes": [ - "sha256:d893f8c8732e53c39338ef0a813732c1b1869db9d3e1fd096c1968ae8afbab9c", - "sha256:fd8ff5a21d710fa6751190992fd3483ba21d57e53cb1092f091dfeea29f66ba4" + "sha256:4afbe6890554531086682fa27bcdb9192bc80ef812569422eb7022e227a90e2b", + "sha256:930c68ff30b9d45b7990171180c9356113a214cf1cb857ba51e85e5e6162a673" ], - "version": "==1.2.0" + "version": "==1.2.1" }, "eth-account": { "hashes": [ @@ -179,63 +179,63 @@ }, "matplotlib": { "hashes": [ - "sha256:0f5ab0736e76d1626770aa1d330647806e6609b785801d25fb1b7bfcd0fc502d", - "sha256:25cb49bcde226dcf11bdeabe571b8311ee49e50aae92c8105ee35c5820d5ec02", - "sha256:35ea69c8524f5931949f67134ed5b763706ef99a3f80b7fc3f2994aacf70e362", - "sha256:44136f1fcec98ee7dc75dfae73d567d10a55906cb2d6468469ec58d133ff44e6", - "sha256:5e823d5502fc6c032ac56812a6226f98416b38e1e35b43b5c605a17f6fe19f05", - "sha256:641466e8e16a18bee55cfc10d83219f32297d50a392f4a06e0217a26115be765", - "sha256:8538076ab19e02fb8723d9850f7d895c2bf6b7c86e0fa82aedd5051859288b94", - "sha256:8e23f9c9bca5ffdf6c86fac0e8a0a3c3daeb616042f082bda96cbe94458e234a", - "sha256:95e99a64db209e9bb80731cddb2705021f3d06c08bd52787016c97d5ee5f6f63", - "sha256:9945cf086cca6fa8f929a8926fbb5cd116cf860eff65395aadda725aabde35c9", - "sha256:aeda129b0149ac5554b11c6a539fb1e5347e6f088752fb79e2b71b76d6e10116", - "sha256:c6e83ca4e70dc5d3185ee15544a66fbf25aff6f242d6102c2358cee240963785", - "sha256:e041d42e6cf4a363aa544e6affedc7ce21c71232147c9f206044e7dfb034bc94" - ], - "markers": "python_version != '3.1.*' and python_version != '3.2.*' and python_version >= '2.7' and python_version != '3.3.*' and python_version != '3.0.*'", - "version": "==3.0.0rc2" + "sha256:0f738b57051e8a0f8bc8282031d0a82e9dedbd10a94fd54d4c3830d708607a8b", + "sha256:0f87d188528ff3c86286603bc13170a5932e631c0c69d9995aae86448a7d9692", + "sha256:290864f3c69d1e71d6648c9c75093db28486f1bf058b0ab2fda9d2d6814ddf19", + "sha256:70aba3a1c7dbef5a997db8afe06e256c6b67e1dc15bb16d8b55d140ea5375a8d", + "sha256:7318d11a4784c3e37f5de0c9141d18eac08565d303da7d3d557662369f2f866b", + "sha256:77c6edc4e25b36430df8a445195030abc8d5766d068b9aeed1a58a684cc0eb3b", + "sha256:91669d38938ae7b66db084e444ee5dceed09b59a6622fda10dfb021d5ce6d0dc", + "sha256:a547edc4d0ce68f3eb397ed8701314f254a0de593045ee0eecad4f1efc664951", + "sha256:b4e2333c98a7c2c1ff6eb930cd2b57d4b818de5437c5048802096b32f66e65f9", + "sha256:c99b3908e76de5d1582e6941dc34de086eb38d18539520f4ae4ffa29b8f2644f", + "sha256:e3acc990b3672132a670b23cc055b967d0aa04183dbc5be82a38a0426ee6d1a6", + "sha256:eaa8f8248c20eacfade26faf749e248adc1bec1edc2d08b05916297cc76a72bd", + "sha256:ede6d9676c43844e4994b041ffca08dd157ce171190a8ccb40fed9b377db5653" + ], + "markers": "python_version != '3.0.*' and python_version != '3.3.*' and python_version != '3.1.*' and python_version != '3.2.*' and python_version >= '2.7'", + "version": "==3.0.0" }, "networkx": { "hashes": [ - "sha256:74cf18c8e808e731a67bfce23cca678e7cd0ebb14495ac4f5421be02beb3ce77" + "sha256:45e56f7ab6fe81652fb4bc9f44faddb0e9025f469f602df14e3b2551c2ea5c8b" ], "index": "pypi", - "version": "==2.2rc1" + "version": "==2.2" }, "numpy": { "hashes": [ - "sha256:1c362ad12dd09a43b348bb28dd2295dd9cdf77f41f0f45965e04ba97f525b864", - "sha256:2156a06bd407918df4ac0122df6497a9c137432118f585e5b17d543e593d1587", - "sha256:24e4149c38489b51fc774b1e1faa9103e82f73344d7a00ba66f6845ab4769f3f", - "sha256:340ec1697d9bb3a9c464028af7a54245298502e91178bddb4c37626d36e197b7", - "sha256:35db8d419345caa4eeaa65cd63f34a15208acd87530a30f0bc25fc84f55c8c80", - "sha256:361370e9b7f5e44c41eee29f2bb5cb3b755abb4b038bce6d6cbe08db7ff9cb74", - "sha256:36e8dcd1813ca92ce7e4299120cee6c03adad33d89b54862c1b1a100443ac399", - "sha256:378378973546ecc1dfaf9e24c160d683dd04df871ecd2dcc86ce658ca20f92c0", - "sha256:419e6faee16097124ee627ed31572c7e80a1070efa25260b78097cca240e219a", - "sha256:4287104c24e6a09b9b418761a1e7b1bbde65105f110690ca46a23600a3c606b8", - "sha256:549f3e9778b148a47f4fb4682955ed88057eb627c9fe5467f33507c536deda9d", - "sha256:5e359e9c531075220785603e5966eef20ccae9b3b6b8a06fdfb66c084361ce92", - "sha256:5ee7f3dbbdba0da75dec7e94bd7a2b10fe57a83e1b38e678200a6ad8e7b14fdc", - "sha256:62d55e96ec7b117d3d5e618c15efcf769e70a6effaee5842857b64fb4883887a", - "sha256:719b6789acb2bc86ea9b33a701d7c43dc2fc56d95107fd3c5b0a8230164d4dfb", - "sha256:7a70f2b60d48828cba94a54a8776b61a9c2657a803d47f5785f8062e3a9c7c55", - "sha256:7b9e37f194f8bcdca8e9e6af92e2cbad79e360542effc2dd6b98d63955d8d8a3", - "sha256:83b8fc18261b70f45bece2d392537c93dc81eb6c539a16c9ac994c47fc79f09a", - "sha256:9473ad28375710ab18378e72b59422399b27e957e9339c413bf00793b4b12df0", - "sha256:95b085b253080e5d09f7826f5e27dce067bae813a132023a77b739614a29de6e", - "sha256:98b86c62c08c2e5dc98a9c856d4a95329d11b1c6058cb9b5191d5ea6891acd09", - "sha256:a3bd01d6d3ed3d7c06d7f9979ba5d68281f15383fafd53b81aa44b9191047cf8", - "sha256:c81a6afc1d2531a9ada50b58f8c36197f8418ef3d0611d4c1d7af93fdcda764f", - "sha256:ce75ed495a746e3e78cfa22a77096b3bff2eda995616cb7a542047f233091268", - "sha256:dae8618c0bcbfcf6cf91350f8abcdd84158323711566a8c5892b5c7f832af76f", - "sha256:df0b02c6705c5d1c25cc35c7b5d6b6f9b3b30833f9d178843397ae55ecc2eebb", - "sha256:e3660744cda0d94b90141cdd0db9308b958a372cfeee8d7188fdf5ad9108ea82", - "sha256:f2362d0ca3e16c37782c1054d7972b8ad2729169567e3f0f4e5dd3cdf85f188e" + "sha256:1b1cf8f7300cf7b11ddb4250b3898c711a6187df05341b5b7153db23ffe5d498", + "sha256:27a0d018f608a3fe34ac5e2b876f4c23c47e38295c47dd0775cc294cd2614bc1", + "sha256:3fde172e28c899580d32dc21cb6d4a1225d62362f61050b654545c662eac215a", + "sha256:497d7c86df4f85eb03b7f58a7dd0f8b948b1f582e77629341f624ba301b4d204", + "sha256:4e28e66cf80c09a628ae680efeb0aa9a066eb4bb7db2a5669024c5b034891576", + "sha256:58be95faf0ca2d886b5b337e7cba2923e3ad1224b806a91223ea39f1e0c77d03", + "sha256:5b4dfb6551eaeaf532054e2c6ef4b19c449c2e3a709ebdde6392acb1372ecabc", + "sha256:63f833a7c622e9082df3cbaf03b4fd92d7e0c11e2f9d87cb57dbf0e84441964b", + "sha256:71bf3b7ca15b1967bba3a1ef6a8e87286382a8b5e46ac76b42a02fe787c5237d", + "sha256:733dc5d47e71236263837825b69c975bc08728ae638452b34aeb1d6fa347b780", + "sha256:82f00a1e2695a0e5b89879aa25ea614530b8ebdca6d49d4834843d498e8a5e92", + "sha256:866bf72b9c3bfabe4476d866c70ee1714ad3e2f7b7048bb934892335e7b6b1f7", + "sha256:8aeac8b08f4b8c52129518efcd93706bb6d506ccd17830b67d18d0227cf32d9e", + "sha256:8d2cfb0aef7ec8759736cce26946efa084cdf49797712333539ef7d135e0295e", + "sha256:981224224bbf44d95278eb37996162e8beb6f144d2719b144e86dfe2fce6c510", + "sha256:981daff58fa3985a26daa4faa2b726c4e7a1d45178100125c0e1fdaf2ac64978", + "sha256:9ad36dbfdbb0cba90a08e7343fadf86f43cf6d87450e8d2b5d71d7c7202907e4", + "sha256:a251570bb3cb04f1627f23c234ad09af0e54fc8194e026cf46178f2e5748d647", + "sha256:b5ff7dae352fd9e1edddad1348698e9fea14064460a7e39121ef9526745802e6", + "sha256:c898f9cca806102fcacb6309899743aa39efb2ad2a302f4c319f54db9f05cd84", + "sha256:cf4b970042ce148ad8dce4369c02a4078b382dadf20067ce2629c239d76460d1", + "sha256:d1569013e8cc8f37e9769d19effdd85e404c976cd0ca28a94e3ddc026c216ae8", + "sha256:dca261e85fe0d34b2c242ecb31c9ab693509af2cf955d9caf01ee3ef3669abd0", + "sha256:ec8bf53ef7c92c99340972519adbe122e82c81d5b87cbd955c74ba8a8cd2a4ad", + "sha256:f2e55726a9ee2e8129d6ce6abb466304868051bcc7a09d652b3b07cd86e801a2", + "sha256:f4dee74f2626c783a3804df9191e9008946a104d5a284e52427a53ff576423cb", + "sha256:f592fd7fe1f20b5041928cce1330937eca62f9058cb41e69c2c2d83cffc0d1e3", + "sha256:ffab5b80bba8c86251291b8ce2e6c99a61446459d4c6637f5d5cc8c9ce37c972" ], "index": "pypi", - "version": "==1.15.1" + "version": "==1.15.2" }, "pandas": { "hashes": [ @@ -305,10 +305,11 @@ }, "pyparsing": { "hashes": [ - "sha256:0832bcf47acd283788593e7a0f542407bd9550a55a8a8435214a1960e04bcb04", - "sha256:fee43f17a9c4087e7ed1605bd6df994c6173c1e977d7ade7b651292fab2bd010" + "sha256:bc6c7146b91af3f567cf6daeaec360bc07d45ffec4cf5353f4d7a208ce7ca30a", + "sha256:d29593d8ebe7b57d6967b62494f8c72b03ac0262b1eed63826c6f788b3606401" ], - "version": "==2.2.0" + "markers": "python_version != '3.2.*' and python_version != '3.0.*' and python_version != '3.1.*' and python_version >= '2.6'", + "version": "==2.2.2" }, "python-dateutil": { "hashes": [ @@ -334,10 +335,11 @@ }, "rlp": { "hashes": [ - "sha256:040fb5172fa23d27953a886c40cac989fc031d0629db934b5a9edcd2fb28df1e", - "sha256:43d8e660fd1d4d8ba31a15edc36116a32d49d68fbb332aad9cd8253bdca06d46" + "sha256:163bd534b19250e077bae04212e962667766e9b38c922949ffbceb603f9f8aa0", + "sha256:b0ad3f3173dedf416565299f684717d4ae7620207d562d3ef94b818a40a48781" ], - "version": "==1.0.2" + "markers": "python_version >= '3.5' and python_version < '4'", + "version": "==1.0.3" }, "scipy": { "hashes": [ @@ -404,11 +406,11 @@ }, "web3": { "hashes": [ - "sha256:949183cc0c6fc37ea5472998f527c4e7da3305e9c5d959332c39ed3eb8437f23", - "sha256:d01885ad24579d2e8e91a9b8bfa404c390616845f7681dedb5504e487a61dd66" + "sha256:8bd0d4e024948a2d42f9ec9c9f45f98f145bbbec2309661f6d637fc4a692d545", + "sha256:c594551d4ef9542934acef5e80cfa1ff8a9aedaf2c492d4cfa9bcfa5f049d586" ], "index": "pypi", - "version": "==4.7.1" + "version": "==4.7.2" }, "websockets": { "hashes": [ diff --git a/research/ethereum/common/ethereum_chain_to_adjacency_list.py b/research/ethereum/common/ethereum_chain_to_adjacency_list.py index 17b5399f..815fb16d 100644 --- a/research/ethereum/common/ethereum_chain_to_adjacency_list.py +++ b/research/ethereum/common/ethereum_chain_to_adjacency_list.py @@ -1,6 +1,6 @@ import sys -from web3 import IPCProvider, Web3 +from web3 import HTTPProvider, Web3 """ Collects ethereum transactions as adjacency list. @@ -21,7 +21,7 @@ 2) Run Script with two params: start block and end blocknumbers ex: python ethereum_chain_to_adjacency_list.py 6235000 6235009 """ -w3 = Web3(IPCProvider(timeout=180)) +w3 = Web3(HTTPProvider(endpoint_uri='http://localhost:34545')) first_block_to_download = int(sys.argv[1]) last_block_to_download = int(sys.argv[2]) @@ -37,7 +37,6 @@ for block_number in range(first_block_to_download, last_block_to_download + 1): print("Downloading {} block".format(block_number)) - block = w3.eth.getBlock(block_number, True) traces = w3.parity.traceBlock(block_number) "Looking only for succeed call traces"