mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Update docs to changes of development blockchains
This commit is contained in:
parent
c9fad49aca
commit
8e6906b471
28
HACKING.md
28
HACKING.md
@ -46,15 +46,19 @@ yarn test
|
||||
```
|
||||
|
||||
To run the entire test suite, you need to run some local blockchain to test
|
||||
against. We use [wasmd](https://github.com/CosmWasm/wasmd) for both CosmWasm
|
||||
tests and as a generic Cosmos SDK 0.39 (Launchpad) blockchain. We also spawn
|
||||
multiple versions of raw Tendermint and a basic WebSocket server.
|
||||
against. We use [wasmd](https://github.com/CosmWasm/wasmd) for CosmWasm tests.
|
||||
For generis Cosmos SDK tests we use simapp. We also spawn multiple versions of
|
||||
raw Tendermint and a basic WebSocket server.
|
||||
|
||||
```sh
|
||||
# Start wasmd
|
||||
./scripts/launchpad/start.sh
|
||||
./scripts/launchpad/init.sh
|
||||
export LAUNCHPAD_ENABLED=1
|
||||
./scripts/wasmd/start.sh
|
||||
./scripts/wasmd/init.sh
|
||||
export WASMD_ENABLED=1
|
||||
|
||||
# Start simapp
|
||||
./scripts/simapp44/start.sh
|
||||
export SIMAPP44_ENABLED=1
|
||||
|
||||
# Start Tendermint
|
||||
./scripts/tendermint/all_start.sh
|
||||
@ -75,11 +79,13 @@ yarn test
|
||||
unset HTTPSERVER_ENABLED
|
||||
unset SOCKETSERVER_ENABLED
|
||||
unset TENDERMINT_ENABLED
|
||||
unset LAUNCHPAD_ENABLED
|
||||
unset SIMAPP44_ENABLED
|
||||
unset WASMD_ENABLED
|
||||
./scripts/httpserver/stop.sh
|
||||
./scripts/socketserver/stop.sh
|
||||
./scripts/tendermint/all_stop.sh
|
||||
./scripts/launchpad/stop.sh
|
||||
./scripts/simapp/stop.sh
|
||||
./scripts/wasmd/stop.sh
|
||||
```
|
||||
|
||||
## Sanity
|
||||
@ -100,14 +106,14 @@ started for testing purposes. Some ports need to be changed from the default in
|
||||
order to avoid conflicts. Here is an overview of the ports used:
|
||||
|
||||
| Port | Application | Usage |
|
||||
| ----- | --------------------- | ------------------------------- |
|
||||
| 1317 | wasmd LCD API | @cosmjs/launchpad tests |
|
||||
| ----- | ------------------------------ | ------------------------------- |
|
||||
| 1318 | simapp LCD API | Manual Stargate debugging |
|
||||
| 1319 | wasmd LCD API | Manual Stargate debugging |
|
||||
| 4444 | socketserver | @cosmjs/sockets tests |
|
||||
| 4445 | socketserver slow | @cosmjs/sockets tests |
|
||||
| 5555 | httpserver | @cosmjs/tendermint-rpc tests |
|
||||
| 9090 | simapp gRPC | Manual Stargate debugging |
|
||||
| 11134 | Tendermint 0.34 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 11134 | Standalone Tendermint 0.34 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 11135 | Standalone Tendermint 0.35 RPC | @cosmjs/tendermint-rpc tests |
|
||||
| 26658 | simapp Tendermint RPC | Stargate client tests |
|
||||
| 26659 | wasmd Tendermint RPC | @cosmjs/cosmwasm-stargate tests |
|
||||
|
@ -47,7 +47,7 @@ Then follow the instructions on that page.
|
||||
The tests in this package require a Ledger device
|
||||
[initialized with the mnemonic](https://support.ledger.com/hc/en-us/articles/360005434914)
|
||||
from
|
||||
[scripts/launchpad/README.md#preset-accounts](https://github.com/cosmos/cosmjs/blob/main/scripts/launchpad/README.md#preset-accounts)
|
||||
[scripts/wasmd/README.md#preset-accounts](https://github.com/cosmos/cosmjs/blob/main/scripts/wasmd/README.md#preset-accounts)
|
||||
(see "Ledger: accounts for Ledger based demos and tests") with an installed
|
||||
"Cosmos (ATOM)" app. The device must be connected via USB, unlocked and the
|
||||
Cosmos app must be opened. The tests require the user to manually approve
|
||||
@ -65,18 +65,6 @@ export SIMAPP42_ENABLED=1
|
||||
yarn test
|
||||
```
|
||||
|
||||
### Launchpad tests
|
||||
|
||||
Start a local Launchpad blockchain as described in
|
||||
[scripts/launchpad/README.md](https://github.com/cosmos/cosmjs/blob/main/scripts/launchpad/README.md)
|
||||
and execute:
|
||||
|
||||
```sh
|
||||
export LEDGER_ENABLED=1
|
||||
export LAUNCHPAD_ENABLED=1
|
||||
yarn test
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This package is part of the cosmjs repository, licensed under the Apache License
|
||||
|
@ -2,7 +2,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
command -v shellcheck >/dev/null && shellcheck "$0"
|
||||
|
||||
echo "Waiting for blockchain and REST server to be available ..."
|
||||
echo "Waiting for blockchain and LCD server to be available ..."
|
||||
timeout 60 bash -c "until curl -s http://localhost:1319/node_info > /dev/null; do sleep 0.5; done"
|
||||
# The chain is unreliable in the first second of its existence (https://gist.github.com/webmaster128/8175692d4af5e6c572fddda7a9ef437c)
|
||||
sleep 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user