Safe Haskell | None |
---|---|
Language | Haskell2010 |
- solidity :: Text -> Text -> IO (Maybe ByteString)
- data JumpType
- data SolcContract = SolcContract {}
- data SourceCache = SourceCache {
- _snippetCache :: Map (Int, Int) ByteString
- _sourceFiles :: Map Int (Text, ByteString)
- _sourceLines :: Map Int (Vector ByteString)
- _sourceAsts :: Map Text Value
- data SrcMap = SM {
- srcMapOffset :: Int
- srcMapLength :: Int
- srcMapFile :: Int
- srcMapJump :: JumpType
- data CodeType
- data Method = Method {
- _methodOutput :: Maybe (Text, AbiType)
- _methodInputs :: [(Text, AbiType)]
- _methodName :: Text
- _methodSignature :: Text
- methodName :: Lens' Method Text
- methodSignature :: Lens' Method Text
- methodInputs :: Lens' Method [(Text, AbiType)]
- methodOutput :: Lens' Method (Maybe (Text, AbiType))
- abiMap :: Lens' SolcContract (Map Word32 Method)
- eventMap :: Lens' SolcContract (Map W256 Event)
- contractName :: Lens' SolcContract Text
- creationCode :: Lens' SolcContract ByteString
- makeSrcMaps :: Text -> Maybe (Seq SrcMap)
- readSolc :: FilePath -> IO (Maybe (Map Text SolcContract, SourceCache))
- runtimeCode :: Lens' SolcContract ByteString
- snippetCache :: Lens' SourceCache (Map (Int, Int) ByteString)
- runtimeCodehash :: Lens' SolcContract W256
- creationCodehash :: Lens' SolcContract W256
- runtimeSrcmap :: Lens' SolcContract (Seq SrcMap)
- creationSrcmap :: Lens' SolcContract (Seq SrcMap)
- contractAst :: Lens' SolcContract Value
- sourceFiles :: Lens' SourceCache (Map Int (Text, ByteString))
- sourceLines :: Lens' SourceCache (Map Int (Vector ByteString))
- sourceAsts :: Lens' SourceCache (Map Text Value)
- stripBytecodeMetadata :: ByteString -> ByteString
- lineSubrange :: Vector ByteString -> (Int, Int) -> Int -> Maybe (Int, Int)
- astIdMap :: Foldable f => f Value -> Map Int Value
- astSrcMap :: Map Int Value -> SrcMap -> Maybe Value
Documentation
data SolcContract Source #
SolcContract | |
|
data SourceCache Source #
SourceCache | |
|
SM | |
|
Method | |
|
readSolc :: FilePath -> IO (Maybe (Map Text SolcContract, SourceCache)) Source #
snippetCache :: Lens' SourceCache (Map (Int, Int) ByteString) Source #
sourceFiles :: Lens' SourceCache (Map Int (Text, ByteString)) Source #
sourceLines :: Lens' SourceCache (Map Int (Vector ByteString)) Source #
sourceAsts :: Lens' SourceCache (Map Text Value) Source #