Skip to content

Commit d81a97b

Browse files
committed
lnd-client wip
1 parent 25bf880 commit d81a97b

File tree

10 files changed

+236
-255
lines changed

10 files changed

+236
-255
lines changed

cabal.project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ else
6161
secp256k1-haskell,
6262
ghc,
6363
packages:
64+
pub/proto-lens/proto-lens-protoc/*.cabal
65+
pub/network-bitcoin/*.cabal
6466
pub/hs-bitcoin-hash/bitcoin-hash/*.cabal
6567
pub/hs-bitcoin-keys/bitcoin-keys/*.cabal
6668
pub/haskell-bitcoin-script/*.cabal

nix/doom.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ in
7171
-file ${../bak/doom/nashgore.pk3} \
7272
-file ${../bak/doom/dblood.pk3} \
7373
-file ${../bak/doom/bulletzborn.pk3} \
74-
-file ${../bak/doom/aenipuffs_v4.pk3} \
74+
-file ${../bak/doom/puff.pk3} \
7575
-file ${../bak/doom/SimpleSlots.1.1.pk7}
7676
'';
7777
}

pub/lnd-client/.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

pub/lnd-client/cabal.project

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
packages: *.cabal
1+
allow-newer: *
2+
packages:
3+
*.cabal
4+
../network-bitcoin/*.cabal
5+
../proto-lens/discrimination-ieee754/*.cabal
6+
../proto-lens/proto-lens/*.cabal
7+
../proto-lens/proto-lens-arbitrary/*.cabal
8+
../proto-lens/proto-lens-benchmarks/*.cabal
9+
../proto-lens/proto-lens-discrimination/*.cabal
10+
../proto-lens/proto-lens-optparse/*.cabal
11+
../proto-lens/proto-lens-protobuf-types/*.cabal
12+
../proto-lens/proto-lens-protoc/*.cabal
13+
../proto-lens/proto-lens-runtime/*.cabal
14+
../proto-lens/proto-lens-setup/*.cabal
15+
../proto-lens/proto-lens-tests/*.cabal
16+
../proto-lens/proto-lens-tests-dep/*.cabal
217

3-
index-state: 2022-04-06T00:00:00Z
18+
--
19+
-- TODO : upgrade all
20+
--
21+
constraints:
22+
tls < 1.8,
23+
http2 >= 3 && <= 3.0.3
424

525
package witch
626
flags: +remove-time
@@ -11,34 +31,6 @@ source-repository-package
1131
--sha256: 17dvcqj29883sysx5qcgjbi3smn1c9kjaj807a9a2vj24fg2jwja
1232
tag: ee0259bc5eb46d9c47d1c15473ff3e7d8212dc43
1333

14-
source-repository-package
15-
type: git
16-
location: https://github.com/coingaming/proto-lens.git
17-
tag: 7e75e2c95d9bf608965ff8335ee618978181034a
18-
--sha256: 11k3y5p7m771n48d5qkzm5dj2rzdc0b26ixm35yh71rvrbxszhnf
19-
subdir: proto-lens
20-
21-
source-repository-package
22-
type: git
23-
location: https://github.com/coingaming/proto-lens.git
24-
tag: 7e75e2c95d9bf608965ff8335ee618978181034a
25-
--sha256: 11k3y5p7m771n48d5qkzm5dj2rzdc0b26ixm35yh71rvrbxszhnf
26-
subdir: proto-lens-runtime
27-
28-
source-repository-package
29-
type: git
30-
location: https://github.com/coingaming/src.git
31-
tag: 79c3ac57bcd985d3952181d2cc22cf10e61b7db2
32-
--sha256: sha256-1T0cQARQMHBmsQAdOspqb+s6YravQ5TJb+NwMXZnbjY=
33-
subdir: generic-pretty-instances
34-
35-
source-repository-package
36-
type: git
37-
location: https://github.com/coingaming/src.git
38-
tag: 79c3ac57bcd985d3952181d2cc22cf10e61b7db2
39-
--sha256: sha256-1T0cQARQMHBmsQAdOspqb+s6YravQ5TJb+NwMXZnbjY=
40-
subdir: network-bitcoin
41-
4234
source-repository-package
4335
type: git
4436
location: https://github.com/coingaming/http2-client.git

pub/lnd-client/lnd-client.cabal

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
cabal-version: 2.0
22

3-
-- This file has been generated from package.yaml by hpack version 0.34.7.
3+
-- This file has been generated from package.yaml by hpack version 0.38.0.
44
--
55
-- see: https://github.com/sol/hpack
66

7-
name: lnd-client
8-
version: 0.1.0.2
9-
synopsis: Lightning Network Daemon (LND) client library for Haskell
10-
description: You can find documentation at <https://hackage.haskell.org/package/lnd-client>
11-
category: Lightning, Bitcoin, Finance, Network, Payments
12-
homepage: https://github.com/coingaming/lnd-client#readme
13-
bug-reports: https://github.com/coingaming/lnd-client/issues
14-
author: 21it <21[email protected]>, Mikhail Prushinskiy <[email protected]>, Artem Markov <[email protected]>
15-
maintainer: 21it <21[email protected]>, Mikhail Prushinskiy <[email protected]>, Artem Markov <[email protected]>
16-
copyright: 2022 Yolo <[email protected]>
17-
license: BSD3
18-
license-file: LICENSE
19-
build-type: Simple
7+
name: lnd-client
8+
version: 0.1.0.2
9+
synopsis: Lightning Network Daemon (LND) client library for Haskell
10+
description: You can find documentation at <https://hackage.haskell.org/package/lnd-client>
11+
category: Lightning, Bitcoin, Finance, Network, Payments
12+
homepage: https://github.com/coingaming/lnd-client#readme
13+
bug-reports: https://github.com/coingaming/lnd-client/issues
14+
author: 21it <21[email protected]>, Mikhail Prushinskiy <[email protected]>, Artem Markov <[email protected]>
15+
maintainer: 21it <21[email protected]>, Mikhail Prushinskiy <[email protected]>, Artem Markov <[email protected]>
16+
copyright: 2022 Yolo <[email protected]>
17+
license: BSD3
18+
license-file: LICENSE
19+
build-type: Simple
2020
extra-source-files:
2121
README.md
2222
ChangeLog.md
@@ -151,8 +151,7 @@ library
151151
FlexibleInstances
152152
ghc-options: -Weverything -Werror -Wno-missing-export-lists -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures
153153
build-depends:
154-
GenericPretty
155-
, JuicyPixels >=3.3.3 && <3.4
154+
JuicyPixels >=3.3.3 && <3.4
156155
, aeson >=1.4.4.0
157156
, async >=2.2.2 && <2.3
158157
, base >=4.7 && <5
@@ -165,9 +164,8 @@ library
165164
, cryptonite >=0.25 && <0.31
166165
, envparse ==0.4.1.*
167166
, extra >=1.6.18 && <1.8
168-
, generic-pretty-instances
169167
, http2 >=3.0.3
170-
, http2-client
168+
, http2-client >=0.10.0.0
171169
, http2-client-grpc >=0.8.0.0
172170
, http2-grpc-proto-lens >=0.1.0.0
173171
, http2-grpc-types >=0.5.0.0
@@ -192,9 +190,9 @@ library
192190
, witch
193191
, x509 ==1.7.5.*
194192
, x509-store
193+
default-language: Haskell2010
195194
if impl(ghc >= 8.10.7)
196195
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances
197-
default-language: Haskell2010
198196

199197
library lnd-client-tkit
200198
exposed-modules:
@@ -226,9 +224,9 @@ library lnd-client-tkit
226224
, http2-client-grpc
227225
, lnd-client
228226
, network-bitcoin
227+
default-language: Haskell2010
229228
if impl(ghc >= 8.10.7)
230229
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances
231-
default-language: Haskell2010
232230

233231
executable lnd-client-prof
234232
main-is: LndClient/Main.hs
@@ -260,6 +258,7 @@ executable lnd-client-prof
260258
, base >=4.7 && <5
261259
, lnd-client
262260
, lnd-client-tkit
261+
default-language: Haskell2010
263262
if impl(ghc >= 8.10.7)
264263
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances
265264
if flag(ghcid)
@@ -367,8 +366,7 @@ executable lnd-client-prof
367366
tkit
368367
ghc-options: -Wno-unused-packages
369368
build-depends:
370-
GenericPretty
371-
, JuicyPixels >=3.3.3 && <3.4
369+
JuicyPixels >=3.3.3 && <3.4
372370
, aeson >=1.4.4.0
373371
, async >=2.2.2 && <2.3
374372
, base >=4.7 && <5
@@ -381,9 +379,8 @@ executable lnd-client-prof
381379
, cryptonite >=0.25 && <0.31
382380
, envparse ==0.4.1.*
383381
, extra >=1.6.18 && <1.8
384-
, generic-pretty-instances
385382
, http2 >=3.0.3
386-
, http2-client
383+
, http2-client >=0.10.0.0
387384
, http2-client-grpc >=0.8.0.0
388385
, http2-grpc-proto-lens >=0.1.0.0
389386
, http2-grpc-types >=0.5.0.0
@@ -412,7 +409,6 @@ executable lnd-client-prof
412409
build-depends:
413410
lnd-client
414411
, lnd-client-tkit
415-
default-language: Haskell2010
416412

417413
test-suite lnd-client-test
418414
type: exitcode-stdio-1.0
@@ -449,6 +445,7 @@ test-suite lnd-client-test
449445
, containers
450446
, hspec
451447
, unliftio
448+
default-language: Haskell2010
452449
if impl(ghc >= 8.10.7)
453450
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -fenable-th-splice-warnings -fprint-potential-instances
454451
if flag(ghcid)
@@ -556,8 +553,7 @@ test-suite lnd-client-test
556553
tkit
557554
ghc-options: -Wno-unused-packages
558555
build-depends:
559-
GenericPretty
560-
, JuicyPixels >=3.3.3 && <3.4
556+
JuicyPixels >=3.3.3 && <3.4
561557
, aeson >=1.4.4.0
562558
, async >=2.2.2 && <2.3
563559
, base >=4.7 && <5
@@ -570,9 +566,8 @@ test-suite lnd-client-test
570566
, cryptonite >=0.25 && <0.31
571567
, envparse ==0.4.1.*
572568
, extra >=1.6.18 && <1.8
573-
, generic-pretty-instances
574569
, http2 >=3.0.3
575-
, http2-client
570+
, http2-client >=0.10.0.0
576571
, http2-client-grpc >=0.8.0.0
577572
, http2-grpc-proto-lens >=0.1.0.0
578573
, http2-grpc-types >=0.5.0.0
@@ -601,4 +596,3 @@ test-suite lnd-client-test
601596
build-depends:
602597
lnd-client
603598
, lnd-client-tkit
604-
default-language: Haskell2010
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let
2-
header = (import ./header.nix);
2+
header = import ./header.nix;
33
proto-lens-src = fetchGit {
4-
url = "git@github.com:coingaming/proto-lens.git";
4+
url = "https://github.com/coingaming/proto-lens.git";
55
ref = "master";
66
rev = "7e75e2c95d9bf608965ff8335ee618978181034a";
77
};
@@ -11,4 +11,3 @@ let
1111
};
1212
in
1313
proto-lens-protoc.hsPkgs.proto-lens-protoc.components.exes.proto-lens-protoc
14-

0 commit comments

Comments
 (0)