Helpers for removing decorations form solc output

This commit is contained in:
Kamil Śliwak
2023-06-07 10:29:45 +02:00
parent 25c78be73e
commit e6716e3208
2 changed files with 42 additions and 15 deletions
+27
View File
@@ -103,3 +103,30 @@ function compileFull
false
fi
}
function stripCLIDecorations
{
sed -e '/^=======.*=======$/d' \
-e '/^Binary:$/d' \
-e '/^Binary of the runtime part:$/d' \
-e '/^Opcodes:$/d' \
-e '/^IR:$/d' \
-e '/^Optimized IR:$/d' \
-e '/^EVM assembly:$/d' \
-e '/^JSON AST (compact format):$/d' \
-e '/^Function signatures:$/d' \
-e '/^Contract Storage Layout:$/d' \
-e '/^Developer Documentation$/d' \
-e '/^User Documentation$/d' \
-e '/^Contract JSON ABI$/d' \
-e '/^Metadata:$/d' \
-e '/^EVM$/d' \
-e '/^Pretty printed source:$/d' \
-e '/^Text representation:$/d' \
-e '/^Binary representation:$/d'
}
function stripEmptyLines
{
sed -e '/^\s*$/d'
}