ethereum/solc-js

Support Natspec Flags

IstoraMandiri opened this issue · 1 comments

One difference between the solc-js and solc native binary is that the additional flags for natspec flags don't seem to be supported with the JS version.

These include:

  --combined-json abi,asm,ast,bin,bin-runtime,clone-bin,devdoc,interface,opcodes,srcmap,srcmap-runtime,userdoc
  --ast                AST of all source files.
  --ast-json           AST of all source files in JSON format.
  --asm                EVM assembly of the contracts.
  --asm-json           EVM assembly of the contracts in JSON format.
  --opcodes            Opcodes of the contracts.
  --bin                Binary of the contracts in hex.
  --bin-runtime        Binary of the runtime part of the contracts in hex.
  --clone-bin          Binary of the clone contracts in hex.
  --abi                ABI specification of the contracts.
  --hashes             Function signature hashes of the contracts.
  --userdoc            Natspec user documentation of all contracts.
  --devdoc             Natspec developer documentation of all contracts.
  --formal             Translated source suitable for formal analysis.
axic commented

This is not possible with the old compiler interface. However, the new compiler interface called compileStandard() has them. It has been merged and is available on the nightly build of Solidity.