Skip to content

Refactor: Language module #741

Open
Open
@JoranHonig

Description

@JoranHonig

Description

Right now we have a module mythril.solidity. A new module is needed called mythril.lang which should contain the before mentioned module.

This module should also contain a base abstract class BaseContract, which is inherited by SolidityContract.

Requirements

  • mythril.solidity is moved to mythril.lang.solidity
  • BaseContract is implemented and Extended by Solidity
  • Implement mythril.lang.viper and ViperContract. Which would be the equivalent of SolidityContract but for viper
  • myth -x ./contract.vy analyzes the viper contract like it would have a solidity contract

Useful Info:

The following link describes how to use the vyper compiler to get some relevant fields
https://vyper.readthedocs.io/en/latest/compiling-a-contract.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions