2022-03-24 04:08:03 +00:00
|
|
|
# chiba-clonk-client
|
2022-03-24 06:40:03 +00:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
Follow these steps to run the tests:
|
|
|
|
|
|
|
|
- After cloning this repo run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn
|
|
|
|
```
|
|
|
|
|
2022-04-04 11:14:04 +00:00
|
|
|
- Clone the [chiba-clonk repo](https://github.com/deep-stack/chiba-clonk) and change to repo directory.
|
2022-03-24 06:40:03 +00:00
|
|
|
|
2022-04-04 11:14:04 +00:00
|
|
|
- Checkout to appropriate branch for running tests.
|
2022-03-24 06:40:03 +00:00
|
|
|
|
2022-03-29 11:01:23 +00:00
|
|
|
```bash
|
2022-04-05 09:20:12 +00:00
|
|
|
git checkout ng-v12-chiba-clonk-client
|
2022-03-29 11:01:23 +00:00
|
|
|
```
|
2022-03-24 06:40:03 +00:00
|
|
|
|
2022-04-04 11:14:04 +00:00
|
|
|
- Run the chain using `./init.sh`.
|
|
|
|
|
2022-03-29 11:01:23 +00:00
|
|
|
- Get the account details using:
|
|
|
|
```bash
|
|
|
|
ethermintd keys list
|
|
|
|
```
|
2022-03-24 06:40:03 +00:00
|
|
|
|
2022-04-04 11:14:04 +00:00
|
|
|
- Use the address of key `mykey` and assign it to `DEFAULT_ADDRESS` in the [test helper file](./src/testing/helper.ts).
|
2022-03-29 11:01:23 +00:00
|
|
|
|
2022-04-04 11:14:04 +00:00
|
|
|
- To export the private key run:
|
2022-03-24 06:40:03 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
ethermintd keys export mykey --unarmored-hex --unsafe
|
|
|
|
```
|
|
|
|
|
2022-04-04 11:14:04 +00:00
|
|
|
- Copy the private key and assign it to variable `DEFAULT_PRIVATE_KEY` in the [test helper file](./src/testing/helper.ts).
|
2022-03-30 05:21:03 +00:00
|
|
|
|
2022-03-24 06:40:03 +00:00
|
|
|
- Run the test in chiba-clonk-client repo:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn test
|
|
|
|
```
|