Skip to content

Commit eedd4df

Browse files
committed
docs update
1 parent 6303f03 commit eedd4df

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ This format is based on [Keep A Changelog](https://keepachangelog.com/en/1.0.0).
77
- Wallets with Base Address support
88
- Lookups for wallets in tasty integration
99

10+
## [1.3.1] - 2022-10-26
11+
12+
### Added
13+
14+
- control on `chain-index` launch
15+
- `chainIndexPort` in `PlutipConfig` replaced with `chainIndexMode :: ChainIndexMode`
16+
- `local-cluster` options added: `--chain-index-port`, `--no-index`
17+
18+
## [1.2.1] - 2022-10-25
19+
20+
### Fixed
21+
22+
- eDSL function to await till wallet is funded `awaitWalletFunded`
23+
24+
### Added
25+
26+
- package with example of how to execute arbitrary contract on private network from Haskell
27+
1028
## [1.2.0] - 2022-10-21
1129

1230
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ NOTE: This branch launches local network in `Vasil`. It was tested with node `1.
4141
## Tutorials
4242

4343
* [Running disposable local network and building own runners](./local-cluster/README.md)
44+
* [Running chain-index](./docs/running-chain-index.md)
4445
* [Tasty integration](./docs/tasty-integration.md)
4546
* [Running Contracts is REPL](./docs/interactive-plutip.md)
4647
* [Providing constant keys](./docs/constant-keys.md)

docs/running-chain-index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Running chain index
2+
3+
It is possible to launch private network with or without `chain-index`.
4+
5+
This can be configured via `PlutipConfig` using `chainIndexMode :: ChainIndexMode` field. BE AWARE, that `chain-index` is required to run contracts with `Plutip` in [tasty integration](./tasty-integration.md), [interactive mode](./interactive-plutip.md) or with [custom runner](../contract-execution/Main.hs).
6+
7+
In case of `local-cluster` launch of `chain-index` can be controlled via options, see [readme](../local-cluster/README.md#available-arguments) for details.

local-cluster/Main.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,20 @@ pEpochSize =
180180

181181
pChainIndexMode :: Parser ChainIndexMode
182182
pChainIndexMode =
183-
withIndex <|> withIndexPort <|> pure NotNeeded
183+
noIndex <|> withIndexPort <|> pure DefaultPort
184184
where
185-
withIndex =
185+
noIndex =
186186
Options.flag'
187-
DefaultPort
188-
( Options.long "with-index"
187+
NotNeeded
188+
( Options.long "no-index"
189189
<> Options.help "Start cluster with chain-index on default port"
190190
)
191191
withIndexPort = CustomPort <$> portParser
192192

193193
portParser =
194194
Options.option
195195
Options.auto
196-
( Options.long "with-index-port"
196+
( Options.long "chain-index-port"
197197
<> Options.metavar "PORT"
198198
<> Options.help "Start cluster with chain-index on custom port"
199199
)

local-cluster/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Full | Short | Description
4040
--working-dir /path/ | -w /path/ | This determines where the node database, chain-index database, and bot-plutus-interface files will be stored for a running cluster. If specified, this will store cluster data in the provided path (can be relative or absolute), the files will be deleted on cluster shutdown by default. Otherwise, the cluster data is stored in a temporary directory and will be deleted on cluster shutdown.
4141
--slot-len SECONDS | -s SECONDS | Sets slot length of created network, is seconds. E.g. `--slot-len 1s`, `-s 0.2s`. <br /> Addition of `s` is important for correct parsing of this option.
4242
--epoch-size NUM | -s NUM | Sets epoch size of created network, is slots.
43+
--slot-len SECONDS | -s SECONDS | Sets slot length of created network, is seconds. E.g. `--slot-len 1s`, `-s 0.2s`. <br /> Addition of `s` is important for correct parsing of this option.
44+
--chain-index-port PORT<br />or<br />--no-index| - | With `--chain-index-port` and `PORT` specified `chain-index` will be launched on specified port together with private network.<br /> With `--no-index` only private network will be launched without `chain-index`.<br /> When nothing specified `chain-index` will be launched on default port `9083`.<br />
4345

4446
## Making own local network launcher
4547

0 commit comments

Comments
 (0)