* Calculating reward per epoch * Initial uptime-based rewards * Setting monitor address on init + minor cleanup * Ability to reward nodes through validator client * Preemptively updated client version * Using hardcoded monitor address * Removed unnecessary let binding * Comment typo * Changed validator-client package.json version * Checking for broadcast error * Added epoch_length to typescript client's stateparams * Setting default state on migration * Removed reward mixnode/gateway methods from the client api * api for executing custom contract methods * Removed whitespace leftover from the merge * Extra comments * Cleanup Co-authored-by: Dave Hrycyszyn <futurechimp@users.noreply.github.com>
Nym Validator Client
A TypeScript client for interacting with CosmWasm smart contracts in Nym validators.
Running examples
With the code checked out, cd examples. This folder contains runnable example code that will set up a blockchain and allow you to interact with it through the client.
Running tests
npm test
You can also trigger test execution with a test watcher. I don't have the centuries of life left to me that are needed to fight through the arcana of wiring up a working TypeScript mocha triggered execution setup, so for now my Cargo-based hack is:
cargo watch -s "cd clients/validator && npm test"
It's ugly but works fine if you have Cargo installed. TypeScript setup help happily accepted here.
Generating Documentation
You can generate docs by running npm run docs. Generated output will appear in the docs directory.
Packaging
If you're a Nym platform developer who's made changes to the client and wants to re-publish the package to NPM, here's how you do it:
- Bump the version number (use SemVer)
npm run buildnpm login(if you haven't already)npm publish