Skip to content

Commit 257e2e5

Browse files
authored
decrease deps size (#174)
* decrease deps size * bump base package set * upgrade node deps
1 parent f2f4db7 commit 257e2e5

File tree

5 files changed

+66
-15
lines changed

5 files changed

+66
-15
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
},
99
"dependencies": {
1010
"ethjs-provider-http": "^0.1.6",
11-
"keccak": "^1.0.2",
11+
"keccak": "^3.0.0",
1212
"rlp": "^2.0.0",
13-
"secp256k1": "^3.0.1"
13+
"secp256k1": "^5.0.0"
1414
},
1515
"devDependencies": {
1616
"purescript": "^0.15.8",

packages.dhall

+62-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,66 @@
11
let upstream =
2-
https://raw.githubusercontent.com/f-o-a-m/package-sets/09b71674a327f7601276846c1afb537342bb57ff/purs-0.15.7-web3.dhall
3-
sha256:7e32f0c65a7b5d334ee98d7fda1d7d3a557b6b478421f545694bd8e1cd4d16ac
4-
with eth-core.version = "v10.0.0"
5-
with js-bigints.version = "v2.2.1"
2+
https://github.com/purescript/package-sets/releases/download/psc-0.15.15-20240416/packages.dhall
3+
sha256:ca727657c01cc31d0e79c2113b59126b9826f4b56d20a8193be3c725599fb754
64

5+
let eth-core-deps =
6+
https://raw.githubusercontent.com/f-o-a-m/purescript-eth-core/master/packages.dhall
7+
sha256:af2751772a729d58edf7056805007934e3687b3079f8a02ac514e705aeab8c42
78

8-
let overrides = {=}
9+
let additions =
10+
{ bytestrings = eth-core-deps.bytestrings
11+
, coroutine-transducers =
12+
{ dependencies = [
13+
"console",
14+
"either",
15+
"foldable-traversable",
16+
"freet",
17+
"functors",
18+
"newtype",
19+
"parallel",
20+
"prelude",
21+
"tailrec",
22+
"transformers",
23+
"tuples",
24+
"aff",
25+
"coroutines",
26+
"effect",
27+
"maybe",
28+
"psci-support"
29+
]
30+
, repo = "https://github.com/martyall/purescript-coroutine-transducers"
31+
, version = "v1.0.0"
32+
}
33+
, eth-core =
34+
{ dependencies =
35+
[ "argonaut"
36+
, "arrays"
37+
, "bytestrings"
38+
, "effect"
39+
, "either"
40+
, "foldable-traversable"
41+
, "foreign"
42+
, "functions"
43+
, "gen"
44+
, "integers"
45+
, "js-bigints"
46+
, "lists"
47+
, "maybe"
48+
, "newtype"
49+
, "node-buffer"
50+
, "nonempty"
51+
, "ordered-collections"
52+
, "partial"
53+
, "prelude"
54+
, "quotient"
55+
, "simple-json"
56+
, "strings"
57+
, "unfoldable"
58+
, "unsafe-coerce"
59+
]
60+
, repo = "https://github.com/f-o-a-m/purescript-eth-core"
61+
, version = "v10.1.0"
62+
}
63+
, quotient = eth-core-deps.quotient
64+
}
965

10-
let additions = {=}
11-
12-
in upstream // overrides // additions
66+
in upstream // additions

spago.dhall

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
, "coroutines"
1111
, "effect"
1212
, "either"
13-
, "errors"
1413
, "eth-core"
1514
, "exceptions"
1615
, "foldable-traversable"

src/Network/Ethereum/Web3/Solidity/Event.purs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ module Network.Ethereum.Web3.Solidity.Event
1111

1212
import Prelude
1313

14-
import Control.Error.Util (note)
1514
import Control.Monad.Error.Class (throwError)
1615
import Data.Array (uncons)
1716
import Data.Bifunctor (lmap)
18-
import Data.Either (Either(..))
17+
import Data.Either (Either(..), note)
1918
import Data.Generic.Rep (class Generic, Argument(..), Constructor(..), NoArguments(..), Product(..), to)
2019
import Data.Maybe (Maybe(..))
2120
import Data.Newtype (class Newtype, wrap)

src/Network/Ethereum/Web3/Types/Types.purs

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ import Prelude
4545

4646
import Control.Alt (class Alt)
4747
import Control.Alternative (class Alternative, class Plus, (<|>))
48-
import Control.Error.Util (hush)
4948
import Control.Monad.Error.Class (class MonadError, class MonadThrow, catchError)
5049
import Control.Monad.Except (runExcept)
5150
import Control.Monad.Fork.Class (class MonadBracket, class MonadFork, class MonadKill, bracket, fork, join, kill, suspend, uninterruptible, never) as MFork
5251
import Control.Monad.Reader (class MonadAsk, class MonadReader, ReaderT, ask, lift, runReaderT)
5352
import Control.Monad.Rec.Class (class MonadRec)
5453
import Control.Parallel.Class (class Parallel, parallel, sequential)
5554
import Data.Argonaut as A
56-
import Data.Either (Either(..))
55+
import Data.Either (Either(..), hush)
5756
import Data.Generic.Rep (class Generic)
5857
import Data.Lens.Lens (Lens', Lens, lens)
5958
import Data.Maybe (Maybe(..), maybe)

0 commit comments

Comments
 (0)