Skip to content

Commit 5f3673d

Browse files
committed
Wait on aniket to release cardano-api then use that as your base
branch
1 parent 0b135de commit 5f3673d

File tree

4 files changed

+32
-75
lines changed

4 files changed

+32
-75
lines changed

cabal-wasm-foundation-only.project

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ packages:
66

77
source-repository-package
88
type: git
9-
location: https://github.com/haskell-wasm/foundation.git
10-
tag: 8e6dd48527fb429c1922083a5030ef88e3d58dd3
9+
location: https://github.com/Jimbo4350/foundation.git
10+
tag: b3cb78484fe6f6ce1dfcef59e72ceccc530e86ac
1111
subdir: basement

cabal-wasm-ledger-only.project

+27-71
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
active-repositories: hackage.haskell.org, cardano-haskell-packages
2+
13
-- Custom repository for cardano haskell packages, see CONTRIBUTING for more
24
repository cardano-haskell-packages
35
url: https://chap.intersectmbo.org/
@@ -74,57 +76,18 @@ if impl (ghc >= 9.12)
7476
, http-api-data:base
7577

7678

77-
-- with-compiler: wasm32-wasi-ghc
78-
-- with-hc-pkg: wasm32-wasi-ghc-pkg
79+
with-compiler: wasm32-wasi-ghc
80+
with-hc-pkg: wasm32-wasi-ghc-pkg
7981

80-
source-repository-package
81-
type: git
82-
location: https://github.com/IntersectMBO/cardano-ledger.git
83-
tag: f5b35692b4d92d664187781a98b7af3fab445bad
84-
subdir:
85-
eras/byron/chain/executable-spec
86-
eras/byron/crypto
87-
eras/byron/crypto/test
88-
eras/byron/ledger/executable-spec
89-
eras/byron/ledger/impl
90-
eras/byron/ledger/impl/test
91-
eras/shelley/impl
92-
eras/allegra/impl
93-
eras/mary/impl
94-
eras/alonzo/impl
95-
eras/babbage/impl
96-
eras/conway/impl
97-
libs/cardano-data
98-
libs/cardano-ledger-api
99-
libs/cardano-ledger-binary
100-
libs/cardano-ledger-core
101-
libs/non-integral
102-
libs/set-algebra
103-
libs/small-steps
104-
libs/vector-map
10582

106-
source-repository-package
107-
type: git
108-
location: https://github.com/IntersectMBO/cardano-base.git
109-
tag: b2cec3fbcde4bacb9c961e5510d5a1d3754c4e2b
110-
subdir:
111-
cardano-crypto-class
112-
cardano-slotting
113-
base-deriving-via
114-
cardano-binary
115-
-- cardano-crypto-class
116-
cardano-crypto-praos
117-
cardano-crypto-tests
118-
-- cardano-slotting
119-
cardano-strict-containers
120-
heapwords
121-
measures
122-
123-
-- cuddle-0.3.2.1
124-
source-repository-package
125-
type: git
126-
location: https://github.com/input-output-hk/cuddle.git
127-
tag: 609bf9c3a2c4eae6cac0455d744b00e2731eda0e
83+
84+
85+
86+
-- WASM related
87+
88+
allow-older: cborg
89+
-- TODO: Wait on aniket to release cardano-api. Then use that instead because it drops
90+
-- the cardano-crypto-class dependency that depends on cryptonite
12891

12992
-- 1.40.0.0 Modified with "do-not-build-plutus-exec" flag to avoid building plutus executable
13093
source-repository-package
@@ -142,33 +105,26 @@ package plutus-core
142105

143106
source-repository-package
144107
type: git
145-
location: https://github.com/IntersectMBO/cardano-prelude.git
146-
tag: 68e015f6e7f17e67d8dbf16bc1590b926d064962
147-
subdir:
148-
cardano-prelude
149-
cardano-prelude-test
108+
location: https://github.com/amesgen/cborg
109+
tag: c3b5c696f62d04c0d87f55250bfc0016ab94d800
110+
subdir: cborg
111+
150112

151113
source-repository-package
152114
type: git
153-
location: https://github.com/input-output-hk/iohk-monitoring-framework.git
154-
tag: 1c097a1cafb066b264432e6df27bbc959f3dc715
155-
subdir: contra-tracer
156-
157-
allow-newer:contra-tracer
158-
allow-older: cborg
159-
160-
161-
-- WASM related
115+
location: https://github.com/Jimbo4350/foundation.git
116+
tag: b3cb78484fe6f6ce1dfcef59e72ceccc530e86ac
117+
subdir:
118+
basement
119+
foundation
162120

163121
source-repository-package
164122
type: git
165-
location: https://github.com/amesgen/cborg
166-
tag: c3b5c696f62d04c0d87f55250bfc0016ab94d800
167-
subdir: cborg
123+
location: https://github.com/haskell-wasm/hs-memory.git
124+
tag: a198a76c584dc2cfdcde6b431968de92a5fed65e
168125

126+
package digest
127+
flags: -pkg-config
169128

170-
source-repository-package
171-
type: git
172-
location: https://github.com/haskell-wasm/foundation.git
173-
tag: 8e6dd48527fb429c1922083a5030ef88e3d58dd3
174-
subdir: basement
129+
package crypton
130+
ghc-options: -optc-DARGON2_NO_THREADS

cardano-api-wasm-foundation-only/src/Cardano/Api/Wasm.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ module Cardano.Api.Wasm where
33
import Basement.Base16
44

55
test :: IO ()
6-
test =
6+
test = do
7+
print $ hexWord16 12
78
print $ hexWord16 12

scripts/enable_wasm_toolchain_ledger_only.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ else
1717
echo "Happy is already installed. Skipping installation."
1818
fi
1919

20-
20+
wasm32-wasi-cabal update --project-file=cabal-wasm-ledger-only.project --keep-going
2121
wasm32-wasi-cabal build --project-file=cabal-wasm-ledger-only.project \
2222
cardano-api-wasm-ledger-only
2323

0 commit comments

Comments
 (0)