Skip to content

Commit 7bb2456

Browse files
committed
Bump nixpkgs and hevm dependencies
1 parent c9562ac commit 7bb2456

File tree

12 files changed

+585
-42
lines changed

12 files changed

+585
-42
lines changed

default.nix

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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/dapp/libexec/dapp/dapp-address

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ nonce=$(seth --to-hex "$2")
99

1010
# manually create the rlp encoding of [sender,nonce], with length prefix
1111
# `192+len(sender)+len(nonce):len(sender):sender:128+len(nonce):nonce`
12-
if [[ $nonce -eq 0x00 ]]; then
12+
if [[ $nonce = 0x00 ]]; then
1313
# encoding of scalar 0 is special and requires the length prefix
1414
rlp="0xd694${sender##0x}80"
15-
elif [[ $nonce -lt 0x80 ]]; then
15+
elif [[ $nonce < 0x80 ]]; then
1616
nonce=$(printf "0x%02x" "$nonce")
1717
# no length prefix if nonce < 128
1818
rlp="0xd694${sender##0x}${nonce##0x}"
19-
elif [[ $nonce -lt 0x100 ]]; then
19+
elif [[ $nonce < 0x100 ]]; then
2020
# even padding for hex
2121
nonce=$(printf "0x%02x" "$nonce")
2222
rlp="0xd794${sender##0x}81${nonce##0x}"
23-
elif [[ $nonce -lt 0x10000 ]]; then
23+
elif [[ $nonce < 0x10000 ]]; then
2424
# even padding for hex
2525
nonce=$(printf "0x%04x" "$nonce")
2626
rlp="0xd894${sender##0x}82${nonce##0x}"

src/ethsign/default.nix

Lines changed: 2 additions & 2 deletions
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

Lines changed: 0 additions & 13 deletions
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

Lines changed: 554 additions & 0 deletions
Large diffs are not rendered by default.

src/hevm/hevm.cabal

Lines changed: 5 additions & 7 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 4 deletions
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

src/jays/src/Jays.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
module Jays where
77

88
import Data.Aeson
9+
import qualified Data.Aeson.Key as Key
10+
import qualified Data.Aeson.KeyMap as KeyMap
911
import Data.ByteString.Lazy (ByteString)
1012
import Data.ByteString.Lazy (fromStrict, toStrict)
1113
import Data.Foldable (toList)
@@ -147,7 +149,7 @@ work stk ops =
147149
(xs, OpNewValue v : ops') -> work (v : xs) ops'
148150

149151
(v : Object o : xs, OpInsert k : ops') ->
150-
work (Object (Map.insert k v o) : xs) ops'
152+
work (Object (KeyMap.insert (Key.fromText k) v o) : xs) ops'
151153
(v : Array o : xs, OpInsert "append" : ops') ->
152154
work (Array (snoc o v) : xs) ops'
153155
(_, OpInsert "append" : _) ->
@@ -156,7 +158,7 @@ work stk ops =
156158
Left "error in -i"
157159

158160
(Object o : xs, OpExtract k : ops') ->
159-
case Map.lookup k o of
161+
case KeyMap.lookup (Key.fromText k) o of
160162
Nothing ->
161163
Left ("error in -e: no such key: " <> k)
162164
Just x ->
@@ -185,7 +187,7 @@ work stk ops =
185187
Left "error in -t"
186188

187189
(Object o : xs, OpKeys : ops') ->
188-
(map (fromStrict . encodeUtf8) (sort (Map.keys o)) ++) <$> work xs ops'
190+
(map (fromStrict . encodeUtf8 . Key.toText) (sort (KeyMap.keys o)) ++) <$> work xs ops'
189191
(_, OpKeys : _) ->
190192
Left "error in -k"
191193

0 commit comments

Comments
 (0)