Skip to content

Commit 3b0a243

Browse files
Merge pull request #1 from kda-community/enis/update-pact
Update Pact and embeed kadena-signing-api
2 parents 7d63ea8 + 09fa90a commit 3b0a243

File tree

21 files changed

+497
-99
lines changed

21 files changed

+497
-99
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
ghc: ['8.8.4', '8.10.7', '9.0.2']
12+
ghc: ['9.6.4']
1313
cabal: ['3.8']
1414
os: ['ubuntu-20.04', 'ubuntu-22.04', 'macOS-latest']
1515

@@ -29,12 +29,20 @@ jobs:
2929
ghc --version
3030
cabal --version
3131
32-
# Project Setup
33-
- name: Create cabal.project.local
34-
if: matrix.ghc == '9.0.2' || matrix.ghc == '8.10.7'
32+
# System dependencies
33+
- if: startsWith(matrix.os, 'macOS')
34+
name: Set up system depdendencies
3535
run: |
36+
brew install openssl
37+
3638
cat > cabal.project.local <<EOF
37-
allow-newer: *:base
39+
package *
40+
extra-include-dirs:
41+
/opt/homebrew/include
42+
/opt/homebrew/opt/openssl/include
43+
extra-lib-dirs:
44+
/opt/homebrew/lib
45+
/opt/homebrew/opt/openssl/lib
3846
EOF
3947
4048
# dist cache
@@ -92,7 +100,7 @@ jobs:
92100
strategy:
93101
fail-fast: false
94102
matrix:
95-
ghc: ["8.10.7"]
103+
ghc: ["9.6.4"]
96104
os: ["ubuntu-20.04"]
97105

98106
steps:

cabal.project

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ package pact
77

88
source-repository-package
99
type: git
10-
location: https://github.com/mightybyte/HsYAML.git
11-
tag: 2ad3cbd1c84f8ab362cf1f5fd4bb3e869dfcc102
12-
--sha256: 1cmwavqz7vdpjvfybxbjphnw7448xy0353wmy9h29ix24lv8w7rr
10+
location: https://github.com/kadena-io/HsYAML.git
11+
tag: b3c49dbceb39733dfc07c22f2097d3c74fc86e74
12+
--sha256: sha256-lnnUni7D949nM4faMrORMetZi5wJy2Qhchm9ne6Cqv8=
1313

1414
source-repository-package
1515
type: git
16-
location: https://github.com/mightybyte/HsYAML-aeson.git
17-
tag: 077110e5e52dc91d593c546dd1baaafd3066558d
18-
--sha256: 1r91ldq4sb49wqg1agvbjj21z6nwiyk3yx4r80arz0fhcv083czv
16+
location: https://github.com/kadena-io/HsYAML-aeson.git
17+
tag: 84292468200166b96ff4e8c7324ee01e6ab6d181
18+
--sha256: sha256-zaDcqwSs4ASb7PO3+E9oGzmSXlSt7bL1NiP0red7CiY=
1919

2020
source-repository-package
2121
type: git
@@ -26,36 +26,23 @@ source-repository-package
2626
source-repository-package
2727
type: git
2828
location: https://github.com/kadena-io/chainweb-api.git
29-
tag: b3e28d62c622ebda0d84e136ea6c995d5f97e46f
30-
--sha256: 1m9x9n5mwmv97fkv2z3hvlhlj59xm2mpsc816hzriw28pv1jb9zh
29+
tag: 1b2de025cfdc09698bfb1ec3807cd85405d6a339
30+
--sha256: sha256-06jvD1kmkmthcRkyWhVLTbytwabghInxqXQD/Lm7kbA=
3131

3232
source-repository-package
3333
type: git
34-
location: https://github.com/pcapriotti/optparse-applicative
35-
tag: 9399fd0f745e4d4d71e8bba03d402648b767363c
36-
--sha256: 0gkgccix898mafrs25fajqwxbb7zmg30livrj7b79knd6a5sqj76
34+
location: https://github.com/kadena-io/pact.git
35+
tag: a1c7906efbf32095883e71594a53a21162fbe5a7
36+
--sha256: sha256-Mtgz/ilxa81TDUoBKQv5x3BlOftFjNV1Ak0uYzSguNQ=
3737

3838
source-repository-package
39-
type: git
40-
location: https://github.com/kadena-io/pact.git
41-
tag: 83c5944991d6edcd34d79f9fbf8e537d060689c6
42-
--sha256: 0l59xi2by6l6gi10r8c437m7ics29215zr0zl1syyr3039vgmv0x
39+
type: git
40+
location: https://github.com/kadena-io/pact-json.git
41+
tag: 1d260bfaa48312b54851057885de4c43c420e35f
42+
--sha256: 0fzq4mzaszj5clvixx9mn1x6r4dcrnwvbl2znd0p5mmy5h2jr0hh
4343

4444
source-repository-package
45-
type: git
46-
location: https://github.com/kadena-io/signing-api.git
47-
tag: b60553cc61fa15c26763ca59974e0de3512b2d66
48-
--sha256: 1xi6g67grs2dm4z4jj4l6h3lz0zy3pgi7xj2yy3y1d07m6gfwbrx
49-
subdir: kadena-signing-api
50-
51-
allow-newer: hashable:base
52-
allow-newer: chainweb-api:aeson
53-
54-
-- bounds from pact
55-
constraints: aeson <2
56-
constraints: base16-bytestring <1
57-
constraints: base64-bytestring <1.1
58-
constraints: hashable <1.3.1
59-
constraints: prettyprinter <1.6.1
60-
constraints: unordered-containers <0.2.16
61-
constraints: tls <1.7.0
45+
type: git
46+
location: https://github.com/kadena-io/kadena-ethereum-bridge.git
47+
tag: a32d901e4a79be62af9c27c01152c9a4c3912a62
48+
--sha256: sha256-xdawv/tdjh61MbJKcBqm9Fje36+gVljuZsAxOTX1gP0=

flake.lock

Lines changed: 58 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
kdaToolProject =
1313
final.haskell-nix.project' {
1414
src = ./.;
15-
compiler-nix-name = "ghc8107";
15+
compiler-nix-name = "ghc964";
1616
shell.tools = {
1717
cabal = {};
1818
};

kda-tool.cabal

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ library
2828
Commands.Sign
2929
Commands.Verify
3030
Commands.WalletSign
31+
Kadena.SigningApi
32+
Kadena.SigningTypes
3133
Keys
3234
Logger
3335
TxTemplate
@@ -43,7 +45,7 @@ library
4345
Decimal
4446
, HsYAML
4547
, HsYAML-aeson
46-
, aeson < 2
48+
, aeson
4749
, async
4850
, attoparsec
4951
, base >= 4.13 && < 5
@@ -68,7 +70,6 @@ library
6870
, http-client
6971
, http-client-tls
7072
, http-types
71-
, kadena-signing-api
7273
, katip
7374
, lens
7475
, lens-aeson
@@ -79,13 +80,15 @@ library
7980
, network-uri
8081
, optparse-applicative
8182
, pact
83+
, pact-json
8284
, process
8385
, resource-pool
8486
, retry
8587
, safe-exceptions
8688
, scientific
8789
, servant
8890
, servant-client
91+
, split
8992
, stm
9093
, stm-linkedlist
9194
, string-conv
@@ -149,7 +152,6 @@ test-suite kda-tool-tests
149152
, http-client
150153
, http-client-tls
151154
, http-types
152-
, kadena-signing-api
153155
, katip
154156
, lens
155157
, lens-aeson
@@ -160,12 +162,14 @@ test-suite kda-tool-tests
160162
, network-uri
161163
, optparse-applicative
162164
, pact
165+
, pact-json
163166
, process
164167
, resource-pool
165168
, retry
166169
, scientific
167170
, servant
168171
, servant-client
172+
, split
169173
, stm
170174
, stm-linkedlist
171175
, string-conv

src/AppMain.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ module AppMain where
99
import Control.Monad.IO.Class
1010
import Data.Aeson
1111
import Data.Default
12+
import Data.String (fromString)
1213
import Katip
1314
import Network.HTTP.Client hiding (withConnection)
1415
import Network.HTTP.Client.TLS
1516
import Options.Applicative
16-
import Options.Applicative.Help.Pretty hiding ((</>))
1717
import System.Directory
1818
import System.FilePath
1919
import System.IO
@@ -81,7 +81,7 @@ appMain = do
8181
, header "kda - Command line tool for interacting with the Kadena blockchain"
8282
, footerDoc (Just theFooter)
8383
]
84-
theFooter = string $ unlines
84+
theFooter = fromString $ unlines
8585
[ "Run the following command to enable tab completion:"
8686
, ""
8787
, "source <(kda --bash-completion-script `which kda`)"

0 commit comments

Comments
 (0)