Commit Graph

4 Commits

Author SHA1 Message Date
Drazen Urch bf502f6338 Squashed commit of the following:
commit 020cad897d
Author: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>
Date:   Fri Sep 24 15:49:21 2021 +0100

    Feature/rust rewarding (#750)

    * Calculating gas fees

    * Ability to set custom fees

    * Added extra test

    * Removed commented code

    * Moved all msg types to common contract crate

    * Temporarily disabling get_tx method

    * Finishing up nymd client API

    * Comment fix

    * Remaining fee values

    * Some cleanup

    * Removed needless borrow

    * Fixed imports in contract tests

    * Moved error types around

    * New ValidatorClient

    * Experiment with new type of defaults

    * Removed dead module

    * Dealt with unwrap

    * Migrated mixnode to use new validator client

    * Migrated gateway to use new validator client

    * Mixnode and gateway adjustments

    * More exported defaults

    * Clients using new validator client

    * Fixed mixnode upgrade

    * Moved default values to a new crate

    * Changed behaviour of validator client features

    * Migrated basic functions of validator api

    * Updated config + fixed startup

    * Fixed wasm client build

    * Integration with the explorer api

    * Removed tokio dev dependency

    * Needless borrow

    * Fixex wasm client build

    * Fixed tauri client build

    * Needless borrows

    * New tables for rewarding

    * Updated cosmos-sdk version

    * Removed reward-specific node status routes

    * New rewarding-specific config entries

    * Additional network defaults

    * Initial periodic rewards from validator api

    * Replaced print with log

    * Filtering nodes with uptime > 0

    * Additional failure logging statements

    * Fixed operation ordering

    * Adjusted next rewarding epoch determination

    * Modified rewarding behaviour to keep track of rewarding in progress

    * Improved error message on config load failure

    * Additional log statement

    * Adjusted rewarding gas limit calculation

    * Made naming slightly more consistent

    * Fixed incorrect parentheses placement

    * Fixed fee calculation

    * Cargo fmt

    * Removed failed merge artifacts

    * Introduced comment for any future reward modification

    * typos

    * Helper functions for the future

    * Making @mfahampshire 's life easier

    * Redesigned epoch + rewarding skipped epochs (if possible)

    * Removed old merge artifacts

    * Naming consistency

    * Constraining arguments

    * Removed unnecessary if branch

    * Ignore monitor check for current epoch

    * Additional checks for current epoch data

    * Monitor threshold check

    * cargo fmt

    * Fixed post-merge issues in transactions.rs

commit 5dfaff6296
Author: Drazen Urch <drazen@urch.eu>
Date:   Tue Sep 21 10:59:17 2021 +0200

    Update hmac and blake3 (#673)

    * Update hmac and blake3

    * Remain paranoid for `0.*` crates

    * Most paranoid versions :)

    * Updated aes and using published version of blake3

    Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>

commit 5b03982043
Author: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>
Date:   Mon Sep 20 10:40:03 2021 +0100

    Replaced unwrap_or_else with unwrap_or_default (#780)

commit 8f6856d6fb
Author: Drazen Urch <drazen@urch.eu>
Date:   Mon Sep 20 11:15:06 2021 +0200

    Make fee helpers public (#777)

    Co-authored-by: Drazen Urch <durch@users.noreply.guthub.com>
2021-09-27 11:36:51 +02:00
Jędrzej Stuczyński c81454e00b Validator API storage fixes and adjustments 2021-07-22 15:15:08 +01:00
Jędrzej Stuczyński e5afd54ce0 Feature/node status api (#680)
* Basic storage stub

* New models for new node status api

* Route handling

* Mounting new routes

* Missing selective commit

* Moved network monitor related files to separate package

* Starting to see some sqlx action

* Schema updates

* Log statement upon finished migration

* Removed old diesel related imports

* Converted mixnode cache initialisation into a fairing

* Moved cache related functionalities to separate package

Also defined staging there

* Created run method for validator cache + removed unwrap

* Removed old node-status-api types and left bunch of todo placeholders in their place

* Fixed managing validatorcache

* Status reports are starting to get constructed

* Submitting some dummy results to the database

* Removing duplicate code for generating reports

* Removed statuses older than 48h

* Initial attempt at trying to obtain reports for all active nodes

* Removed duplicates from the full report

* Grabbing uptime history

* Updating historical uptimes of active nodes

* Updated sqlx-data.json

* Removed all placeholder foomp owner values

* Changed Layer serde behaviour for easier usage

* Extended validator api config

* Initial (seems working !) integration with network monitor

* Added database path configuration to config

* Using ValidatorCache in NetworkMonitor

* Flag indicating whether validator cache has been initialised

* Introduced a locla-only route for reward script to perform daily chores

* Flag to save config to a file

* Moved spawning of receiving future to run method rather than new

* Removed arguments that dont make sense to be configured via CLI

* Removed dead code from config file

* More dead code removal

* Added validator API to CI

* Corrected manifest-path arguments

* Constructing network monitor by passing config

* Combined validator API CI with the main CI file

* Using query_as for NodeStatus

* Checking if historical uptimes were already calculated on particular day

* Making id field NOT NULL

* More query_as! action

* Updated sqlx-data.json

* Removed unused chrono feature

* Renamed the migration file

* Changed default validator endpoint to point to local validator

* Removing unnecessary clone

* More appropriate naming

* Removed dead code

* Lock file updates

* Updated network monitor address in contract code

* Don't stage node status api if network monitor is disabled

* cargo fmt

* Updated all license notices to SPDX
2021-07-19 14:02:47 +01:00
Drazen Urch b30f11ed7a Rename network-monitor (#662) 2021-06-29 14:48:15 +02:00