From a22a201fe7ae96e209ea2a0d26ae8d8833ac7618 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 17 Feb 2020 15:31:07 +0100 Subject: [PATCH] Adapt scripts, config, docs to new folder name ./scripts/wasmd/ --- .circleci/config.yml | 6 +++--- README.md | 5 +++-- packages/cli/README.md | 4 ++-- packages/sdk/src/restclient.spec.ts | 2 +- scripts/wasmd/README.md | 3 ++- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e01095e1..56141402 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,7 +47,7 @@ jobs: steps: - checkout - run: # start early for less wait time below - command: ./scripts/cosm/start.sh + command: ./scripts/wasmd/start.sh background: true - attach_workspace: at: /tmp/builds @@ -82,7 +82,7 @@ jobs: - ~/.cache/yarn - run: name: Initialize blockchain (deploy contracts and friends) - command: ./scripts/cosm/init.sh + command: ./scripts/wasmd/init.sh - run: environment: COSMOS_ENABLED: 1 @@ -95,7 +95,7 @@ jobs: SKIP_BUILD: 1 command: yarn selftest - run: - command: ./scripts/cosm/stop.sh + command: ./scripts/wasmd/stop.sh lint: docker: - image: circleci/node:10 diff --git a/README.md b/README.md index 77d24bcf..2a6a7510 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ yarn format && yarn lint To run the entire test suite, you need to run a local blockchain to test against. This should work on any Linux/OSX system with docker installed. ```sh -./scripts/cosm/start.sh +./scripts/wasmd/start.sh +./scripts/wasmd/init.sh COSMOS_ENABLED=1 yarn test -./scripts/cosm/stop.sh +./scripts/wasmd/stop.sh ``` diff --git a/packages/cli/README.md b/packages/cli/README.md index 04df7756..385e2f46 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -81,9 +81,9 @@ The above code shows you the use of the API and various objects and is a great w how to embed cosmwasm-js into your project. However, if you just want a cli to perform some quick queries on a chain, you can use an extended set of helpers: -1. Start a local wasmd blockchain, for example running the setup from `../../scripts/cosm/start.sh` +1. Start a local wasmd blockchain, for example running the setup from `../../scripts/wasmd/start.sh` 2. Start with `./bin/cosmwasm-cli --init examples/helpers.ts` (note the new init file) -3. Deploy some erc20 contracts: `../../scripts/cosm/init.sh` +3. Deploy some erc20 contracts: `../../scripts/wasmd/init.sh` 4. Play around as in the following example code ```ts diff --git a/packages/sdk/src/restclient.spec.ts b/packages/sdk/src/restclient.spec.ts index 1e45b8e9..ea9716df 100644 --- a/packages/sdk/src/restclient.spec.ts +++ b/packages/sdk/src/restclient.spec.ts @@ -279,7 +279,7 @@ describe("RestClient", () => { }); }); - // This fails in the first test run if you forget to run `./scripts/cosm/init.sh` + // This fails in the first test run if you forget to run `./scripts/wasmd/init.sh` it("has correct pubkey for faucet", async () => { pendingWithoutCosmos(); const client = new RestClient(httpUrl); diff --git a/scripts/wasmd/README.md b/scripts/wasmd/README.md index 496073cd..a698a8d6 100644 --- a/scripts/wasmd/README.md +++ b/scripts/wasmd/README.md @@ -1,10 +1,11 @@ -# Local Cosmos test network +# Local Wasmd development network ## Starting the blockchain Run the following: ``` +cd scripts/wasmd ./start.sh && ./init.sh ```