Update README and example env file

This commit is contained in:
neeraj 2024-03-12 12:43:18 +05:30
parent c8d4783577
commit 40470d1e8a
3 changed files with 15 additions and 21 deletions

View File

@ -1,2 +1,4 @@
PRIVATE_KEY=75f719e613d05efab06a3f1dde5250b497723b13d4afa4f8ed80145764e40cf7
PRIVATE_KEY=
COSMOS_CHAIN_ID=laconic_9000-1
LACONICD_GQL_ENDPOINT=http://localhost:9473/api
LACONICD_REST_ENDPOINT=http://127.0.0.1:26657

View File

@ -14,14 +14,18 @@ Follow these steps to run the tests:
- Copy [.env.example](./.env.example) file and create a `.env` file.
- Clone the [laconicd repo](https://github.com/cerc-io/laconicd) and change to repo directory.
```bash
cp .env.example .env
```
- Run the chain using `./init.sh`.
- Clone the [laconic2d repo](https://git.vdb.to/deep-stack/laconic2d) and change to repo directory.
- Run the chain using `./scripts/init.sh`.
- Export the private key using:
```bash
laconicd keys export mykey --unarmored-hex --unsafe
laconic2d keys export alice --keyring-backend test --unarmored-hex --unsafe
```
- Copy the private key and assign it to variable `PRIVATE_KEY` in the `.env` file.
@ -34,22 +38,16 @@ Follow these steps to run the tests:
- Run the tests with auctions enabled
- Remove laconicd data from previous run
```bash
rm -rf ~/.laconicd
```
- In laconicd repo run:
```bash
TEST_AUCTION_ENABLED=true ./init.sh
TEST_AUCTION_ENABLED=true ./scripts/init.sh clean
```
- Export the private key and change it in `.env` file again using:
```bash
laconicd keys export mykey --unarmored-hex --unsafe
laconic2d keys export alice --keyring-backend test --unarmored-hex --unsafe
```
- Run tests:
@ -60,22 +58,16 @@ Follow these steps to run the tests:
- Run the tests for record and authority expiry
- Remove laconicd data from previous run
```bash
rm -rf ~/.laconicd
```
- In laconicd repo run:
```bash
TEST_REGISTRY_EXPIRY=true ./init.sh
TEST_REGISTRY_EXPIRY=true ./scripts/init.sh clean
```
- Export the private key and change it in `.env` file again using:
```bash
laconicd keys export mykey --unarmored-hex --unsafe
laconic2d keys export alice --keyring-backend test --unarmored-hex --unsafe
```
- Run tests:

View File

@ -26,7 +26,7 @@ export const getConfig = () => {
return {
chainId: process.env.COSMOS_CHAIN_ID || DEFAULT_CHAIN_ID,
privateKey: process.env.PRIVATE_KEY,
restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:1317',
restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:26657',
gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api',
fee: {
amount: [{ denom: 'photon', amount: '40' }],