* POC of delivering status information using server-sent events
* deliver only events instead of status lines
* Stream JSON events
* Hide event server behind config
---------
Co-authored-by: Artur Cygan <artur.cygan@trailofbits.com>
* Update to GHC 9.4
* ci: Update to GHC 9.4
* ci: fix GHC 9.4 support on Windows
GHC 9.4 has changed toolchains to Clang, which causes issues when building
with our current setup. We perform the following changes to support
GHC 9.4 and later:
* Use MSYS2 CLANG64 MSYS. See https://gitlab.haskell.org/ghc/ghc/-/issues/22561
* Use MSYS2 minimal $PATH. There's many things in the default GitHub
environment that cause conflicts. To achieve this, we have to also
manually re-add the Stack, Cabal and GHC paths.
* Bump the Stack resolver. GHC 9.4.7 has some compilation fixes that
are good to have around.
* Replace the GHC linker with our MSYS2 linker. The GHC linker is old
(~LLVM 14?) and does not fully understand the static libraries
produced by the newer Clang 17 in MSYS2.
* Refactor the way we invoke Stack and take advantage of the Stack
config to indicate extra library and include paths.
* Drop the 'strip' workaround for the test suite, as it is not needed
any longer.
* Fix the linking of the standard C++ library. GHC 9.4 introduces a
nice way to do it in a platform-independent way, but unfortunately
it does not work properly in Nix and it attempts to link clang++
instead of libc++.so, so we have to use some trickery.
addDLL: stdc++ or dependencies not loaded. (Win32 error 126)
See also:
* https://gitlab.haskell.org/ghc/ghc/-/issues/22738
* https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.4?version_id=b60e52482a666d25638d59cd7e86851ddf971dc1#link-against-system-cxx-std-lib-instead-of-stdc
* hevm: pin to newer version supporting GHC 9.4
* ci: linux: update to GHC 9.4.7
* ci: do not cache Stack config
---------
Co-authored-by: Emilio López <emilio.lopez@trailofbits.com>
* hevm: enable compact-unwind on macOS
Refer to https://gitlab.haskell.org/ghc/ghc/-/issues/11829
* Add test for precompile unwinding
* Revert hevm pin from "hevm: enable compact-unwind on macOS"
This partially reverts commit 37270701a7.
hevm will be upgraded separately.
* Build static Linux binaries with musl
Statically building glibc can be problematic, e.g. it requires the same
(dynamic) glibc version in the system you're running the binary:
function hsnet_getaddrinfo: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
This changes the build workflow to build the Linux binaries on a musl environment.
* Add container used for static builds
* Adjust package guards to match after merge
* ci: Fix defaults duplication after merge
* ci: disable haskell setup when using a container
* ci: bump GHC to 9.2.7
* ci: Add README documenting container
* ci: unify cache artifacts
Basic logging for Etherscan fetches
Fix fetch cache populated from constructor
Persist and load fetch cache
Save fetch cache per block
Code cleanup
Fetch contract name from Etherscan
ghc-9.2.5.exe: | D:\a\_temp\msys64\home\runneradmin\.local\lib\libsecp256k1.a: unknown symbol `__imp___gmpn_gcdext'
ghc-9.2.5.exe: | C:\sr\snapshots\0f12f00e\lib\x86_64-windows-ghc-9.2.5\hevm-0.50.2-8r7d7yHNo9G4MeqIafLjGL\HShevm-0.50.2-8r7d7yHNo9G4MeqIafLjGL.o: unknown symbol `secp256k1_context_create'
ghc-9.2.5.exe: Could not load Object Code C:\sr\snapshots\0f12f00e\lib\x86_64-windows-ghc-9.2.5\hevm-0.50.2-8r7d7yHNo9G4MeqIafLjGL\HShevm-0.50.2-8r7d7yHNo9G4MeqIafLjGL.o.
* Use `bit` instead of power of two (2 ^ i)
We are computing powers of two, so using `bit` performs better.
* Consider case with i=256
2^256 is not representable in a Word256.
* added colored html output based on @samalws code
* hlint fix
* Exclude non-runtime lines from coverage display
* Use a lighter grey as background
* make sure coverage filenames have the same prefix
Co-authored-by: Artur Cygan <artur.cygan@trailofbits.com>