MythXvsc is an extension for running MythX smart contract analysis from Visual Studio Code. The extensions provides:
AuthenticationMythX uses an API key for authentication. Once your account is set up, head over to the dashboard.mythx.io/. In the Profile section there is an element labeled On successful authentication, a new API key is generated, which can be used for further authentication by API clients. It will only be shown once, and can be copied using the icon on the right of the truncated secret string. If the token is lost, a new one can be generated again in the same way as explained above. Copy the token and paste it in the Mythx extension user settings as shown below. Authentication via Ethereum address/Username and password is deprecated. Please note that the credentials stored this way are exposed to VS Code. Be sure to understand the security risk this entails or contact the extension developers if you don’t. UsageMythX give their users the ability to choose from three different scan options. This extension supports all three:
Refer to the plans page to see which plan you need for each mode. Once the solidity compilation is done, if there is only one contract in the solidity file you can just wait for analysis results. If there are multiple contracts in the same file you will be asked to pick a contract from a dropdown list of contracts that exist in the compiled AST. Please make sure to pick the main contract to avoid inconsistent results. You will also get a popup window with a link to the dashboard that will take straight to your results, or if using quick mode you will see highlighted issues in your solidity code. The exact time it takes to perform an analysis will depend on the plan associated with your account. Please see the MythX Pricing page for details on plans. Multiple file submissionThis is a new feature of the extension that is currently being developed. Please stay alert on our twitter page for extra information on release date! DependenciesThe MythXvsc extension depends on Juan Blanco solidity extension. Make sure you install it from Visual Studio Code Marketplace before installing MythXvsc. Known bugs
Features that will be implemented in the future
Acknowledgements
|