Expect null if bond or authority is not found #6
@ -1,2 +1,4 @@
|
|||||||
PRIVATE_KEY=75f719e613d05efab06a3f1dde5250b497723b13d4afa4f8ed80145764e40cf7
|
PRIVATE_KEY=
|
||||||
COSMOS_CHAIN_ID=laconic_9000-1
|
COSMOS_CHAIN_ID=laconic_9000-1
|
||||||
|
LACONICD_GQL_ENDPOINT=http://localhost:9473/api
|
||||||
|
LACONICD_REST_ENDPOINT=http://127.0.0.1:26657
|
||||||
|
30
README.md
30
README.md
@ -14,14 +14,18 @@ Follow these steps to run the tests:
|
|||||||
|
|
||||||
- Copy [.env.example](./.env.example) file and create a `.env` file.
|
- 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:
|
- Export the private key using:
|
||||||
|
|
||||||
```bash
|
```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.
|
- 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
|
- Run the tests with auctions enabled
|
||||||
|
|
||||||
- Remove laconicd data from previous run
|
|
||||||
|
|
||||||
```bash
|
|
||||||
rm -rf ~/.laconicd
|
|
||||||
```
|
|
||||||
|
|
||||||
- In laconicd repo run:
|
- In laconicd repo run:
|
||||||
|
|
||||||
```bash
|
```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:
|
- Export the private key and change it in `.env` file again using:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconicd keys export mykey --unarmored-hex --unsafe
|
laconic2d keys export alice --keyring-backend test --unarmored-hex --unsafe
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run tests:
|
- Run tests:
|
||||||
@ -60,22 +58,16 @@ Follow these steps to run the tests:
|
|||||||
|
|
||||||
- Run the tests for record and authority expiry
|
- Run the tests for record and authority expiry
|
||||||
|
|
||||||
- Remove laconicd data from previous run
|
|
||||||
|
|
||||||
```bash
|
|
||||||
rm -rf ~/.laconicd
|
|
||||||
```
|
|
||||||
|
|
||||||
- In laconicd repo run:
|
- In laconicd repo run:
|
||||||
|
|
||||||
```bash
|
```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:
|
- Export the private key and change it in `.env` file again using:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconicd keys export mykey --unarmored-hex --unsafe
|
laconic2d keys export alice --keyring-backend test --unarmored-hex --unsafe
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run tests:
|
- Run tests:
|
||||||
|
@ -26,7 +26,7 @@ export const getConfig = () => {
|
|||||||
return {
|
return {
|
||||||
chainId: process.env.COSMOS_CHAIN_ID || DEFAULT_CHAIN_ID,
|
chainId: process.env.COSMOS_CHAIN_ID || DEFAULT_CHAIN_ID,
|
||||||
privateKey: process.env.PRIVATE_KEY,
|
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',
|
gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api',
|
||||||
fee: {
|
fee: {
|
||||||
amount: [{ denom: 'photon', amount: '40' }],
|
amount: [{ denom: 'photon', amount: '40' }],
|
||||||
|
Loading…
Reference in New Issue
Block a user