Skip to content

Commit 9fc27e0

Browse files
committed
Update Changelog for 3.0.0-rc1
1 parent 8930d8d commit 9fc27e0

File tree

5 files changed

+43
-49
lines changed

5 files changed

+43
-49
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
## v3.0.0-rc1 : Full Refactor and ConwayEra Support
3+
4+
### Changes on kuber-server
5+
- Add new chain-query api-endpoints.
6+
* **GET** /api/v3/protocol-params
7+
* **GET** /api/v3/chain-point
8+
* **GET** /api/v3/utxo
9+
* **GET** /api/v3/system-start
10+
* **GET** /api/v3/genesis-params
11+
- Update default healthcheck url in docker image. (`/api/v3/chain-point` is used for healthcheck )
12+
- Server starts by querying NodeEra and enables fields based on `BabbageEra` or `ConwayEra`
13+
- TxBuilder json now supports following new fields.
14+
* **$.proposal[s]** Conway Era Governance proposals.
15+
* **$.votes[s]** Conway Era votes.
16+
* **$.certificate[s]** Registration and dregistration certs only for Conway era. (Not available when node is running in babbage era).
17+
18+
19+
#### Known Issues:
20+
- If node is at Babbage era when kuber-server starts, after node reaches Conway era, restart is required to enable Conway features.
21+
- `$.validtyStart` is broken and is ignored.
22+
23+
24+
### Changes on Kontract-example [WIP]
25+
- Introduced new package to showcase usage of `Kontract`
26+
27+
28+
### Changes on lib:kuber
29+
- Update code comments for better haddock docs generation
30+
- Implement both `ToJson` and `FromJson` for all the entities used in api
31+
- Reorganize code and introduction of `Kontact` for offchain code.
32+
- Support For ConwayEra **[BREAKING change ]**
33+
- `TxBuilder` is now parametrized on `era` suppporting `Babbage` and `Conway` eras, with `IsTxBuilderEra` constraint.
34+
- Kuber Offchain code required Local Node Socket. **WIP** support running kuber code by connecting to kuber server
35+
- Remove `ChainConnectInfo`and related classes. Instead, use `LocalNodeConnectInfo CardanoMode` directly.
36+

Changelog.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Kuber
33

44
Haskell library and API server for composing balanced Cardano transactions.
55

6+
[KuberIDE.com](https://kuberide.com) is Oficial IDE and plutus development and trying out kuber-server features.
67

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/)
99

1010

1111
## Docs
@@ -16,38 +16,6 @@ Haskell library and API server for composing balanced Cardano transactions.
1616
[cardano-marketplace](https://github.com/dQuadrant/cardano-marketplace)
1717

1818

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-
5119
# Run Kuber-Server with docker-compose
5220

5321
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
6432
$ ./.ci/build
6533
```
6634

67-
6835
## 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)

kuber-server/app/Main.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,16 @@ opts = info (sample <**> helper)
7272
)
7373
main :: IO ()
7474
main = do
75+
7576
KuberConfig hostStr port healthCheckUrl doHealthCheck <- execParser opts
7677

7778
if doHealthCheck
7879
then
7980
performRequest healthCheckUrl
8081

8182
else do
83+
-- enable line buffering for instantaneous logs when kuber-server is run in docker container
84+
hSetBuffering stdout LineBuffering
8285
dcinfo <- chainInfoFromEnv
8386
let settings = setPort port defaultSettings
8487
let settings2 = (case hostStr of

kuber.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ maintainer: Sudip Bhattarai
1818
-- A copyright notice.
1919
-- copyright:
2020
-- category:
21-
-- extra-source-files: CHANGELOG.md
21+
extra-source-files: CHANGELOG.md
2222

2323
library
2424
default-language: Haskell2010

0 commit comments

Comments
 (0)