f328f3fa9e
* Squashing all the changes initial router started expanding the API initial empty openapi/swagger populated build-info endpoint wip: populating rest of swagger missing swagger data + using closure capture for immutable state running the api as a proper task in gateway 'run' fixing some version/feature clashes refactored routes structures initial host information endpoint expanded on gateway-related endpoints signing host information moved all models to separate crate unified http api client routes unification + node api client new generic cache and refresher nym-api caching node self described information removed old cache type temporarily wired up NymContractCache to NodeDescriptionProvider caching self reported host info clients using self-described gateway information fixed request timeouts for wasm fixed wasm builds post rebase fixes cargo fmt brought in wg routes into nym-node router added ErrorResponse for wireguard routes basic swagger support for wg endpoints turns out swagger can be happy with strongly typed requests output type support for wg routes using concrete error type for nym node request error fixed the registration test landing page configurability increased configurability fixed build and lints of other crates added default user-agent to http-api-client reduced severity of gateway details lookup failure changed default http port from 80 to 8080 nym-api using new default port for queries added health endpoint nym-api trying multiple ports for the client using camelcase for node status corrected health endpoint description restored and revamped 'force_tls' flag to filter all gateways that support the wss protocol fixed 'pub_key' path param in open api schema derived Debug on 'NymNodeDescription' ensuring valid public ips added init and run flags to set hostname and public ips fixed listening address being pushed to public ip fixed the positional local flag logging remote ip address of the request updated helper function to query for described gateways enabled tls in gateway client removed hack-opts from mix fetch additional changes after rebasing against origin/develop * clippy * wasm-related target locking * more clippy, but this time in tests
Nym vesting contract
- Initial vesting tokens are deposited and assigned to existing addresses via
CreatePeriodicVestingAccount - Admin account can then delegate vested and unvested tokens to mixnodes on behalf of vesting accounts
- Vesting accounts can withdraw vested and undelegated (spendable) coins to their addresses
Glossary
| Term | Definition |
|---|---|
| original vesting coins | vesting amount specified at account creation |
| vested coins | coins vested up to the current vesting period, current period excluded |
| vesting coins | original vesting amount minus vested coins, claimed rewards are not part of vesting coins |
| delegated free coins | delegated coins that have vested |
| delegated vesting coins | total delegation amount minus delegated free coins |
| pledged free coins | pledged coins that have vested |
| pledged vesting coins | total pledge amount minus pledged free coins |
| locked coins | vesting coins minus delegated vesting and pledged vesting coins |
| spendable coins | current vesting account balance minus locked coins |
