Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
avive committed Jun 20, 2023
1 parent 614b207 commit 5726bd8
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ yarn lint
## docs and tutorial
https://polkadot.js.org/docs/api/examples/promise/typegen/

## Test
## Testing

Firstly need to run local Karmachain node in verifier node and with enabled offchain worker. More information about node
configuration can be found in tests documentation. Tests automatically add verifier key using next command:s
1. Run a local Karmachain node in verifier mode and with an enabled offchain worker.

2. Run the tests

```bash
yarn test
```

Note that the tests config adds verifier and offchain keys using these commands so there's no need to manually run them.

```bash
curl --location 'http://localhost:9933/' \
Expand All @@ -37,11 +44,6 @@ curl --location 'http://localhost:9933/' \
"public": "0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d"
}
}'
```

Add offchain keys for karma rewards distribution:

```bash
curl --location 'http://localhost:9933/' \
--header 'Content-Type: application/json' \
--data '{
Expand All @@ -54,10 +56,4 @@ curl --location 'http://localhost:9933/' \
"public": "0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d"
}
}'
```

To run tests:

```bash
yarn test
```

0 comments on commit 5726bd8

Please sign in to comment.