Merge pull request #569 from JoranHonig/reafactor/interfaces

Move blockchain interfacing code to ethereum.interface
pull/573/head
JoranHonig 6 years ago committed by GitHub
commit 1c1c1f2d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      mythril/ethereum/__init__.py
  2. 0
      mythril/ethereum/interface/__init__.py
  3. 0
      mythril/ethereum/interface/leveldb/__init__.py
  4. 0
      mythril/ethereum/interface/leveldb/accountindexing.py
  5. 8
      mythril/ethereum/interface/leveldb/client.py
  6. 0
      mythril/ethereum/interface/leveldb/eth_db.py
  7. 0
      mythril/ethereum/interface/leveldb/state.py
  8. 0
      mythril/ethereum/interface/rpc/__init__.py
  9. 0
      mythril/ethereum/interface/rpc/base_client.py
  10. 0
      mythril/ethereum/interface/rpc/client.py
  11. 0
      mythril/ethereum/interface/rpc/constants.py
  12. 0
      mythril/ethereum/interface/rpc/exceptions.py
  13. 0
      mythril/ethereum/interface/rpc/utils.py
  14. 6
      mythril/mythril.py
  15. 2
      tests/rpc_test.py

@ -1,12 +1,12 @@
import binascii import binascii
import rlp import rlp
from mythril.leveldb.accountindexing import CountableList from mythril.ethereum.interface.leveldb.accountindexing import CountableList
from mythril.leveldb.accountindexing import ReceiptForStorage, AccountIndexer from mythril.ethereum.interface.leveldb.accountindexing import ReceiptForStorage, AccountIndexer
import logging import logging
from ethereum import utils from ethereum import utils
from ethereum.block import BlockHeader, Block from ethereum.block import BlockHeader, Block
from mythril.leveldb.state import State from mythril.ethereum.interface.leveldb.state import State
from mythril.leveldb.eth_db import ETH_DB from mythril.ethereum.interface.leveldb.eth_db import ETH_DB
from mythril.ether.ethcontract import ETHContract from mythril.ether.ethcontract import ETHContract
from mythril.exceptions import AddressNotFoundError from mythril.exceptions import AddressNotFoundError

@ -20,8 +20,8 @@ import platform
from mythril.ether import util from mythril.ether import util
from mythril.ether.ethcontract import ETHContract from mythril.ether.ethcontract import ETHContract
from mythril.ether.soliditycontract import SolidityContract, get_contracts_from_file from mythril.ether.soliditycontract import SolidityContract, get_contracts_from_file
from mythril.rpc.client import EthJsonRpc from mythril.ethereum.interface.rpc.client import EthJsonRpc
from mythril.rpc.exceptions import ConnectionError from mythril.ethereum.interface.rpc.exceptions import ConnectionError
from mythril.support import signatures from mythril.support import signatures
from mythril.support.truffle import analyze_truffle_project from mythril.support.truffle import analyze_truffle_project
from mythril.support.loader import DynLoader from mythril.support.loader import DynLoader
@ -31,7 +31,7 @@ from mythril.analysis.callgraph import generate_graph
from mythril.analysis.traceexplore import get_serializable_statespace from mythril.analysis.traceexplore import get_serializable_statespace
from mythril.analysis.security import fire_lasers from mythril.analysis.security import fire_lasers
from mythril.analysis.report import Report from mythril.analysis.report import Report
from mythril.leveldb.client import EthLevelDB from mythril.ethereum.interface.leveldb.client import EthLevelDB
# logging.basicConfig(level=logging.DEBUG) # logging.basicConfig(level=logging.DEBUG)

@ -1,6 +1,6 @@
from unittest import TestCase from unittest import TestCase
from mythril.rpc.client import EthJsonRpc from mythril.ethereum.interface.rpc.client import EthJsonRpc
class RpcTest(TestCase): class RpcTest(TestCase):
client = None client = None

Loading…
Cancel
Save