diff --git a/.gitignore b/.gitignore index 5ae1546..14d8c21 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,8 @@ -/bower_components/ node_modules/ -/.pulp-cache/ /output/ /generated-docs/ -/.psc* -/.purs* /.psa* -*.swp -*#* package-lock.json /.vscode -yarn.lock -/test/chanterelle/.spago /.spago/ +spago.lock diff --git a/package.json b/package.json index 4ad4996..6d58aaf 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "build": "spago build", "tidy": "purs-tidy format-in-place \"src/**/*.purs\" \"test/**/*.purs\"", "tidy-check": "purs-tidy check \"src/**/*.purs\" \"test/**/*.purs\"", - "test": "spago -x test.dhall test" + "test": "spago test" }, "dependencies": { "ethjs-provider-http": "^0.1.6", @@ -16,6 +16,6 @@ "purescript": "^0.15.8", "purescript-psa": "^0.8.2", "purs-tidy": "^0.10.0", - "spago": "^0.21.0" + "spago": "next" } } diff --git a/packages.dhall b/packages.dhall deleted file mode 100644 index 5d899ff..0000000 --- a/packages.dhall +++ /dev/null @@ -1,62 +0,0 @@ -let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.15-20240416/packages.dhall - sha256:ca727657c01cc31d0e79c2113b59126b9826f4b56d20a8193be3c725599fb754 - -let eth-core-deps = - https://raw.githubusercontent.com/f-o-a-m/purescript-eth-core/aaa64b175717247f0ea6fe3c35780dea02ac8e3a/packages.dhall - sha256:ca727657c01cc31d0e79c2113b59126b9826f4b56d20a8193be3c725599fb754 - -let additions = - { coroutine-transducers = - { dependencies = - [ "console" - , "either" - , "foldable-traversable" - , "freet" - , "functors" - , "newtype" - , "parallel" - , "prelude" - , "tailrec" - , "transformers" - , "tuples" - , "aff" - , "coroutines" - , "effect" - , "maybe" - , "psci-support" - ] - , repo = "https://github.com/martyall/purescript-coroutine-transducers" - , version = "v1.0.0" - } - , eth-core = - { dependencies = - [ "argonaut" - , "arrays" - , "effect" - , "either" - , "foldable-traversable" - , "foreign" - , "functions" - , "gen" - , "integers" - , "js-bigints" - , "lists" - , "maybe" - , "newtype" - , "node-buffer" - , "nonempty" - , "ordered-collections" - , "partial" - , "prelude" - , "simple-json" - , "strings" - , "unfoldable" - , "unsafe-coerce" - ] - , repo = "https://github.com/f-o-a-m/purescript-eth-core" - , version = "v10.1.0" - } - } - -in upstream // additions diff --git a/spago.dhall b/spago.dhall deleted file mode 100644 index c4a9f67..0000000 --- a/spago.dhall +++ /dev/null @@ -1,44 +0,0 @@ -{ name = "web3" -, dependencies = - [ "aff" - , "argonaut" - , "arrays" - , "bifunctors" - , "control" - , "coroutine-transducers" - , "coroutines" - , "effect" - , "either" - , "eth-core" - , "exceptions" - , "foldable-traversable" - , "foreign" - , "foreign-object" - , "fork" - , "gen" - , "heterogeneous" - , "identity" - , "maybe" - , "newtype" - , "node-buffer" - , "parallel" - , "parsing" - , "partial" - , "prelude" - , "profunctor-lenses" - , "record" - , "ring-modules" - , "simple-json" - , "strings" - , "tagged" - , "tailrec" - , "transformers" - , "tuples" - , "typelevel-prelude" - , "unfoldable" - , "unsafe-coerce" - , "variant" - ] -, packages = ./packages.dhall -, sources = [ "src/**/*.purs" ] -} diff --git a/spago.yaml b/spago.yaml new file mode 100644 index 0000000..f66cf61 --- /dev/null +++ b/spago.yaml @@ -0,0 +1,96 @@ +package: + name: web3 + dependencies: + - aff: ">=7.1.0 <8.0.0" + - argonaut: ">=9.0.0 <10.0.0" + - arrays: ">=7.3.0 <8.0.0" + - bifunctors: ">=6.0.0 <7.0.0" + - control: ">=6.0.0 <7.0.0" + - coroutine-transducers: "*" + - coroutines: ">=7.0.0 <8.0.0" + - effect: ">=4.0.0 <5.0.0" + - either: ">=6.1.0 <7.0.0" + - eth-core: "*" + - exceptions: ">=6.1.0 <7.0.0" + - foldable-traversable: ">=6.0.0 <7.0.0" + - foreign: ">=7.0.0 <8.0.0" + - foreign-object: ">=4.1.0 <5.0.0" + - fork: ">=6.0.0 <7.0.0" + - gen: ">=4.0.0 <5.0.0" + - heterogeneous: ">=0.6.0 <0.7.0" + - identity: ">=6.0.0 <7.0.0" + - maybe: ">=6.0.0 <7.0.0" + - newtype: ">=5.0.0 <6.0.0" + - node-buffer: ">=9.0.0 <10.0.0" + - parallel: ">=6.0.0 <7.0.0" + - parsing: ">=10.2.0 <11.0.0" + - partial: ">=4.0.0 <5.0.0" + - prelude: ">=6.0.1 <7.0.0" + - profunctor-lenses: ">=8.0.0 <9.0.0" + - record: ">=4.0.0 <5.0.0" + - ring-modules: ">=5.0.1 <6.0.0" + - simple-json: ">=9.0.0 <10.0.0" + - strings: ">=6.0.1 <7.0.0" + - tagged: ">=4.0.2 <5.0.0" + - tailrec: ">=6.1.0 <7.0.0" + - transformers: ">=6.1.0 <7.0.0" + - tuples: ">=7.0.0 <8.0.0" + - typelevel-prelude: ">=7.0.0 <8.0.0" + - unfoldable: ">=6.0.0 <7.0.0" + - unsafe-coerce: ">=6.0.0 <7.0.0" + - variant: ">=8.0.0 <9.0.0" + test: + main: Test.Main + dependencies: + - quickcheck + - quickcheck-laws + - spec + - spec-node +workspace: + extraPackages: + coroutine-transducers: + dependencies: + - aff + - console + - coroutines + - effect + - either + - foldable-traversable + - freet + - functors + - maybe + - newtype + - parallel + - prelude + - psci-support + - tailrec + - transformers + - tuples + git: https://github.com/martyall/purescript-coroutine-transducers + ref: v1.0.0 + eth-core: + dependencies: + - argonaut + - arrays + - effect + - either + - foldable-traversable + - foreign + - functions + - gen + - integers + - js-bigints + - lists + - maybe + - newtype + - node-buffer + - nonempty + - ordered-collections + - partial + - prelude + - simple-json + - strings + - unfoldable + - unsafe-coerce + git: https://github.com/f-o-a-m/purescript-eth-core + ref: 3db27d22f738498a1e4263f537cd25279fc88088 diff --git a/test.dhall b/test.dhall deleted file mode 100644 index 7008b0d..0000000 --- a/test.dhall +++ /dev/null @@ -1,19 +0,0 @@ -let conf = ./spago.dhall - -in conf - ⫽ { sources = conf.sources # [ "test/web3/**/*.purs" ] - , dependencies = - conf.dependencies - # [ "console" - , "enums" - , "identity" - , "integers" - , "lists" - , "node-buffer" - , "nonempty" - , "quickcheck" - , "quickcheck-laws" - , "spec" - , "unsafe-coerce" - ] - }