Skip to content

Commit 4f31b9b

Browse files
committed
Bump nixpkgs and hevm dependencies
1 parent c9562ac commit 4f31b9b

File tree

10 files changed

+576
-35
lines changed

10 files changed

+576
-35
lines changed

default.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{ system ? builtins.currentSystem , ... }:
22

33
let
4-
rev = "aa576357673d609e618d87db43210e49d4bb1789";
4+
rev = "bd4dffcdb7c577d74745bd1eff6230172bd176d5";
55
nixpkgs = builtins.fetchTarball {
6-
name = "nixpkgs-release-21.05";
6+
name = "nixpkgs-unstable-2022-04-17";
77
url = "https://github.com/nixos/nixpkgs/tarball/${rev}";
8-
sha256 = "1868s3mp0lwg1jpxsgmgijzddr90bjkncf6k6zhdjqihf0i1n2np";
8+
sha256 = "18zacrykj2k5x42d0grr7g1y7xhy5ppq7j0gm3lrghwflyrdkslj";
99
};
1010
in
1111
# Now return the Nixpkgs configured to use our overlay.

nix/geth.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ in buildGoModule rec {
1818
sha256 = "sha256-4lapkoxSKdXlD6rmUxnlSKrfH+DeV6/wV05CqJjuzjA=";
1919
};
2020

21-
runVend = true;
21+
proxyVendor = true;
2222
vendorSha256 = "sha256-5qi01y0SIEI0WRYu2I2RN94QFS8rrlioFvnRqqp6wtk=";
2323

2424
doCheck = false;

nix/solc-static.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ stdenv.mkDerivation rec {
4040
sha256 = "${sha256}";
4141
};
4242

43-
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
43+
nativeBuildInputs = [ makeWrapper ]
44+
++ lib.optional stdenv.isLinux autoPatchelfHook;
4445

4546
postFixup = if (platform == "linux-amd64") then ''
4647
wrapProgram $out/bin/solc-${version} \

src/ethsign/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ buildGoModule rec {
66

77
src = ./.;
88

9-
vendorSha256 = "1zbsq1lyqinyzv5x4p1xgkxsyb7y92fbmf44gyaix34xrag5s27m";
10-
runVend = true;
9+
vendorSha256 = "sha256-LSnwKW79m70RiVv9INJb8oEzDmouJtiqYLHNBD8KAzY=";
10+
proxyVendor = true;
1111

1212
meta = {
1313
homepage = http://github.com/dapphub/dapptools;

src/ethsign/go.mod

-13
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,7 @@ module github.com/dapphub/ethsign
33
go 1.13
44

55
require (
6-
github.com/OneOfOne/xxhash v1.2.5 // indirect
7-
github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847 // indirect
8-
github.com/aws/aws-sdk-go v1.25.48 // indirect
9-
github.com/elastic/gosigar v0.8.1-0.20180330100440-37f05ff46ffa // indirect
106
github.com/ethereum/go-ethereum v1.10.6
11-
github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222 // indirect
12-
github.com/robertkrimen/otto v0.0.0-20170205013659-6a77b7cbc37d // indirect
13-
github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521 // indirect
14-
github.com/spaolacci/murmur3 v1.0.1-0.20190317074736-539464a789e9 // indirect
15-
github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570 // indirect
16-
github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3 // indirect
17-
github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208 // indirect
187
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
19-
golang.org/x/mobile v0.0.0-20200801112145-973feb4309de // indirect
20-
gopkg.in/sourcemap.v1 v1.0.5 // indirect
218
gopkg.in/urfave/cli.v1 v1.20.0
229
)

src/ethsign/go.sum

+554
Large diffs are not rendered by default.

src/hevm/hevm.cabal

+5-7
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ library
7070
ghc-options:
7171
-Wall -Wno-deprecations
7272
extra-libraries:
73-
secp256k1, ff
73+
secp256k1, ff, c++
7474
c-sources:
7575
ethjet/tinykeccak.c, ethjet/ethjet.c
7676
cxx-sources:
@@ -88,7 +88,7 @@ library
8888
transformers >= 0.5.6 && < 0.6,
8989
tree-view >= 0.5 && < 0.6,
9090
abstract-par >= 0.3.3 && < 0.4,
91-
aeson >= 1.5.6 && < 1.6,
91+
aeson >= 2.0 && < 2.1,
9292
bytestring >= 0.10.8 && < 0.11,
9393
scientific >= 0.3.6 && < 0.4,
9494
binary >= 0.8.6 && < 0.9,
@@ -97,21 +97,21 @@ library
9797
vector >= 0.12.1 && < 0.13,
9898
ansi-wl-pprint >= 0.6.9 && < 0.7,
9999
base16-bytestring >= 1.0.0 && < 2.0,
100-
brick >= 0.58 && < 0.63,
100+
brick >= 0.58 && < 0.69,
101101
megaparsec >= 9.0.0 && < 10.0,
102102
mtl >= 2.2.2 && < 2.3,
103103
directory >= 1.3.3 && < 1.4,
104104
filepath >= 1.4.2 && < 1.5,
105105
vty >= 5.25.1 && < 5.34,
106106
cereal >= 0.5.8 && < 0.6,
107107
cryptonite >= 0.27 && <= 0.29,
108-
memory >= 0.14.18 && < 0.16,
108+
memory >= 0.14.18 && < 0.20,
109109
data-dword >= 0.3.1 && < 0.4,
110110
fgl >= 5.7.0 && < 5.8,
111111
free >= 5.1.3 && < 5.2,
112112
haskeline >= 0.8.0 && < 0.9,
113113
process >= 1.6.5 && < 1.7,
114-
lens >= 4.17.1 && < 4.20,
114+
lens >= 4.17.1 && < 5.1,
115115
lens-aeson >= 1.0.2 && < 1.2,
116116
monad-par >= 0.3.5 && < 0.4,
117117
multiset >= 0.3.4 && < 0.4,
@@ -124,7 +124,6 @@ library
124124
sbv >= 8.9,
125125
semver-range >= 0.2.7 && < 0.3,
126126
temporary >= 1.3 && < 1.4,
127-
text-format >= 0.3.2 && < 0.4,
128127
witherable >= 0.3.5 && < 0.5,
129128
wreq >= 0.5.3 && < 0.6,
130129
regex-tdfa >= 1.2.3 && < 1.4,
@@ -190,7 +189,6 @@ executable hevm
190189
sbv,
191190
temporary,
192191
text,
193-
text-format,
194192
unordered-containers,
195193
vector,
196194
vty

src/hevm/src/EVM/Solidity.hs

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ import Control.Monad
7070
import Control.Lens hiding (Indexed, (.=))
7171
import qualified Data.String.Here as Here
7272
import Data.Aeson hiding (json)
73+
import qualified Data.Aeson.KeyMap as KeyMap
7374
import Data.Aeson.Types
7475
import Data.Aeson.Lens
7576
import Data.Scientific
@@ -714,8 +715,8 @@ astIdMap = foldMap f
714715
f :: Value -> Map Int Value
715716
f (Array x) = foldMap f x
716717
f v@(Object x) =
717-
let t = foldMap f (HMap.elems x)
718-
in case HMap.lookup "id" x of
718+
let t = foldMap f (KeyMap.elems x)
719+
in case KeyMap.lookup "id" x of
719720
Nothing -> t
720721
Just (Number i) -> t <> Map.singleton (round i) v
721722
Just _ -> t

src/hevm/src/EVM/SymExec.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ type EquivalenceResult = ProofResult ([VM], [VM]) VM ()
4040

4141
-- | Convenience functions for generating large symbolic byte strings
4242
sbytes32, sbytes128, sbytes256, sbytes512, sbytes1024 :: Query ([SWord 8])
43-
sbytes32 = toBytes <$> freshVar_ @ (WordN 256)
44-
sbytes128 = toBytes <$> freshVar_ @ (WordN 1024)
43+
sbytes32 = toBytes <$> freshVar_ @(WordN 256)
44+
sbytes128 = toBytes <$> freshVar_ @(WordN 1024)
4545
sbytes256 = liftA2 (++) sbytes128 sbytes128
4646
sbytes512 = liftA2 (++) sbytes256 sbytes256
4747
sbytes1024 = liftA2 (++) sbytes512 sbytes512

src/hevm/src/EVM/Types.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -434,17 +434,17 @@ readN s = fromIntegral (read s :: Integer)
434434
readNull :: Read a => a -> String -> a
435435
readNull x = fromMaybe x . Text.Read.readMaybe
436436

437-
wordField :: JSON.Object -> Text -> JSON.Parser W256
437+
wordField :: JSON.Object -> Key -> JSON.Parser W256
438438
wordField x f = ((readNull 0) . Text.unpack)
439439
<$> (x .: f)
440440

441-
addrField :: JSON.Object -> Text -> JSON.Parser Addr
441+
addrField :: JSON.Object -> Key -> JSON.Parser Addr
442442
addrField x f = (read . Text.unpack) <$> (x .: f)
443443

444-
addrFieldMaybe :: JSON.Object -> Text -> JSON.Parser (Maybe Addr)
444+
addrFieldMaybe :: JSON.Object -> Key -> JSON.Parser (Maybe Addr)
445445
addrFieldMaybe x f = (Text.Read.readMaybe . Text.unpack) <$> (x .: f)
446446

447-
dataField :: JSON.Object -> Text -> JSON.Parser ByteString
447+
dataField :: JSON.Object -> Key -> JSON.Parser ByteString
448448
dataField x f = hexText <$> (x .: f)
449449

450450
toWord512 :: W256 -> Word512

0 commit comments

Comments
 (0)