2022-03-24 04:08:03 +00:00
|
|
|
# chiba-clonk-client
|
2022-03-24 06:40:03 +00:00
|
|
|
|
2022-04-05 14:11:06 +00:00
|
|
|
## Tests
|
2022-03-24 06:40:03 +00:00
|
|
|
|
|
|
|
Follow these steps to run the tests:
|
|
|
|
|
|
|
|
- After cloning this repo run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn
|
|
|
|
```
|
|
|
|
|
2022-04-05 14:11:06 +00:00
|
|
|
- Copy [.env.example](./.env.example) file and create a `.env` file.
|
2022-03-24 06:40:03 +00:00
|
|
|
|
2022-04-05 14:11:06 +00:00
|
|
|
- Clone the [chiba-clonk repo](https://github.com/vulcanize/chiba-clonk) and change to repo directory.
|
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-05 14:11:06 +00:00
|
|
|
- Use the address of key `mykey` and assign it to `ACCOUNT_ADDRESS` in the `.env` file.
|
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-05 14:11:06 +00:00
|
|
|
- Copy the private key and assign it to variable `PRIVATE_KEY` in the `.env` file.
|
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
|
|
|
|
```
|
2022-04-05 14:11:06 +00:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
[README](./DEVELOPMENT.md)
|