Skip to content

Commit

Permalink
Remove vasil-dev from known networks
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Nov 30, 2022
1 parent 914fd52 commit cbad60a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/smoke-test.yaml
Expand Up @@ -5,10 +5,9 @@ on:
network:
description: "Cardano network to run against"
required: true
default: "vasil-dev"
default: "preview"
type: choice
options:
- vasil-dev
- testnet
- preview
- preprod
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -36,4 +36,3 @@ demo/headstate

# Testnet setups
testnet/logs/
vasil-testnet/logs/
5 changes: 0 additions & 5 deletions hydra-cluster/hydra-cluster.cabal
Expand Up @@ -28,11 +28,6 @@ data-files:
config/cardano-configurations/network/testnet/genesis/alonzo.json
config/cardano-configurations/network/testnet/genesis/byron.json
config/cardano-configurations/network/testnet/genesis/shelley.json
config/cardano-configurations/network/vasil-dev/cardano-node/config.json
config/cardano-configurations/network/vasil-dev/cardano-node/topology.json
config/cardano-configurations/network/vasil-dev/genesis/alonzo.json
config/cardano-configurations/network/vasil-dev/genesis/byron.json
config/cardano-configurations/network/vasil-dev/genesis/shelley.json
config/credentials/alice.sk
config/credentials/alice.vk
config/credentials/bob.sk
Expand Down
24 changes: 12 additions & 12 deletions testnets/README.md
Expand Up @@ -4,28 +4,28 @@ Includes scripts to launch a recent enough `cardano-node`, `hydra-node` and
`hydra-tui`. Make sure they are in scope, e.g. by `cabal build
hydra-node:exe:hydra-node` or using the `nix-shell -A demo`.

Let's assume you want to run a simple scenario on the `vasil-dev` testnet with a single actor. If you have multiple parties, the fueling needs to be done for each party's `hydra-node` and configuration needs to be adapted accordingly below.
Let's assume you want to run a simple scenario on the `preview` testnet with a single actor. If you have multiple parties, the fueling needs to be done for each party's `hydra-node` and configuration needs to be adapted accordingly below.

First start a cardano-node and see whether it synchronizes:

```sh
./cardano-node.sh vasil-dev
./cardano-node.sh preview
```

A minimal scenario would be a single actor running a hydra-node on the testnet.

Now, we need funds on the testnet and have them sent to an address owned by our `cardano-signing-key` in order to open a Hydra Head.

For `vasil-dev` we can use this faucet request:
For `preview` we can use this faucet request:

``` sh
curl -X POST -s "https://faucet.vasil-dev.world.dev.cardano.org/send-money/$(cat credentials/sebastian.cardano.address)?api_key=oochuyai3ku4Fei4ahth9ooch9ohth7d"
curl -X POST -s "https://faucet.preview.world.dev.cardano.org/send-money/$(cat credentials/sebastian.cardano.address)?api_key=oochuyai3ku4Fei4ahth9ooch9ohth7d"
```

With these available we can now mark them as fuel and fork of some ADA to be committable into a hydra head. In this example we prepare some 500ADA (minus fees):

``` sh
./fuel-testnet.sh vasil-dev credentials/sebastian.cardano.sk 500000000
./fuel-testnet.sh preview credentials/sebastian.cardano.sk 500000000
```

Now we need to locate the Hydra scripts for the given testnet. For tagged &
Expand All @@ -37,8 +37,8 @@ command and keep:

``` sh
hydra-node publish-scripts \
--network-id $(cat vasil-dev/db/protocolMagicId) \
--node-socket "vasil-dev/node.socket" \
--network-id $(cat preview/db/protocolMagicId) \
--node-socket "preview/node.socket" \
--cardano-signing-key credentials/sebastian.cardano.sk
```

Expand All @@ -56,10 +56,10 @@ launch the `hydra-node`:
``` sh
hydra-node \
--node-id 314 \
--node-socket "vasil-dev/node.socket" \
--network-id $(cat vasil-dev/db/protocolMagicId) \
--node-socket "preview/node.socket" \
--network-id $(cat preview/db/protocolMagicId) \
--hydra-scripts-tx-id ${HYDRA_SCRIPTS_TX_ID} \
--ledger-genesis "vasil-dev/genesis/shelley.json" \
--ledger-genesis "preview/genesis/shelley.json" \
--ledger-protocol-parameters "../hydra-cluster/config/protocol-parameters.json" \
--hydra-signing-key "credentials/sebastian.hydra.sk" \
--cardano-signing-key "credentials/sebastian.cardano.sk"
Expand All @@ -71,8 +71,8 @@ To start the `hydra-tui`:
hydra-tui \
--connect "0.0.0.0:4001" \
--cardano-signing-key "credentials/sebastian.cardano.sk" \
--network-id $(cat vasil-dev/db/protocolMagicId) \
--node-socket "vasil-dev/node.socket"
--network-id $(cat preview/db/protocolMagicId) \
--node-socket "preview/node.socket"
```

Now we should be able to `[i]nit`, `[c]ommit` & `[c]lose` a hydra head using the interactive terminal client.
1 change: 0 additions & 1 deletion testnets/vasil-dev/cardano-node

This file was deleted.

1 change: 0 additions & 1 deletion testnets/vasil-dev/genesis

This file was deleted.

0 comments on commit cbad60a

Please sign in to comment.