3
3
4
4
Haskell library and API server for composing balanced Cardano transactions.
5
5
6
+ [ KuberIDE.com] ( https://kuberide.com ) is Oficial IDE and plutus development and trying out kuber-server features.
6
7
7
- ** Notice:** Playground for kuber has been moved to [ dquadrant/kuber-playground] ( https://dquadrant.github.io/kuber-playgrounnd/ )
8
-
8
+ OpenSource Kuber playground is [ here] ( https://dquadrant.github.io/kuber-playgrounnd/ )
9
9
10
10
11
11
## Docs
@@ -16,38 +16,6 @@ Haskell library and API server for composing balanced Cardano transactions.
16
16
[ cardano-marketplace] ( https://github.com/dQuadrant/cardano-marketplace )
17
17
18
18
19
- ### Kuber Kontract usage Example
20
- ``` haskell
21
-
22
- remoteKuberConnection :: IO RemoteKuberConnection
23
- remoteKuberConnection = do
24
- (networkName,network) <- getNetworkFromEnv " NETWORK"
25
- createRemoteKuberConnection network " http://localhost:8081" Nothing
26
-
27
- localNodeConnection :: IO ChainConnectInfo
28
- localNodeConnection = chainInfoFromEnv
29
-
30
- printBalanceKontract :: HasChainQueryAPI api => Kontract api w FrameworkError ()
31
- printBalanceKontract= do
32
- addr <- kWrapParser $ parseAddressBech32 (T. pack " addr_test1qrmntnd29t3kpnn8uf7d9asr3fzvw7lnah55h52yvaxnfe4g2v2ge520usmkn0zcl46gy38877hej5cnqe6s602xpkyqtpcsrj" )
33
- tip <- kQueryChainPoint
34
- utxos <- kQueryUtxoByAddress (Set. singleton $ addressInEraToAddressAny addr)
35
- liftIO $ do
36
- putStrLn (" Chain is at " ++ (case tip of
37
- ChainPointAtGenesis -> " Genesis"
38
- ChainPoint (SlotNo sn) ha -> " SlotNo:" ++ show sn ++ " BlockHeaderHash:" ++ T. unpack (serialiseToRawBytesHexText ha)) )
39
- putStrLn $ " Your utxos : \n " ++ toConsoleText " - " utxos
40
-
41
- main :: IO ()
42
- main = do
43
- kuberConn <- localNodeConnection
44
- -- kuberConn <- remoteKuberConnection
45
- result <- evaluateKontract kuberConn printBalanceKontract
46
- case result of
47
- Left e -> putStrLn $ " Unexpected error evaluating printBalance kontract:\n " ++ show e
48
- _ -> pure ()
49
- ```
50
-
51
19
# Run Kuber-Server with docker-compose
52
20
53
21
Kuber can be stared easily with [ docker-compose.yml] ( ./docker-compose.yml ) file. But you will have to wait for cardano-node to sync to latest block
@@ -64,6 +32,5 @@ If you want to build docker image locally, you can use the helper script
64
32
$ ./.ci/build
65
33
```
66
34
67
-
68
35
## Developer guide
69
- Instructions for local development is available in [ DEVELOPER.md] ( DEVELOPER.md )
36
+ Instructions for local development of kuber is available in [ DEVELOPER.md] ( DEVELOPER.md )
0 commit comments