Feature/expanded events (#1015)

* Expanded emitted events for delegation-related transactions

* Expanded emitted events for gateway-related transactions

* Expanded emitted events for mixnode-related transactions

* Expanded emitted events for settings update transaction

* Expanded emitted events for rewarding-related transactions

* Fixed attribute look up in tests

* Making linter happier

* Reorganised cosmwasm contract-related modules

* Introduced similar event handling to the vesting contract
This commit is contained in:
Jędrzej Stuczyński
2022-01-11 16:56:12 +00:00
committed by GitHub
parent e2e06df4e6
commit 6b3700aefe
87 changed files with 1147 additions and 414 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
use crate::mix_node::models::{NodeDescription, NodeStats};
use crate::mix_nodes::delegations::{get_mixnode_delegations, get_single_mixnode_delegations};
use crate::state::ExplorerApiStateContext;
use mixnet_contract::Delegation;
use mixnet_contract_common::Delegation;
use reqwest::Error as ReqwestError;
use rocket::serde::json::Json;
use rocket::{Route, State};
+1 -1
View File
@@ -3,7 +3,7 @@
use crate::mix_node::cache::Cache;
use crate::mix_nodes::location::Location;
use mixnet_contract::{Addr, Coin, Layer, MixNode};
use mixnet_contract_common::{Addr, Coin, Layer, MixNode};
use serde::Deserialize;
use serde::Serialize;
use std::sync::Arc;
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
use mixnet_contract::Delegation;
use mixnet_contract_common::Delegation;
pub(crate) async fn get_single_mixnode_delegations(pubkey: &str) -> Vec<Delegation> {
let client = super::utils::new_nymd_client();
+1 -1
View File
@@ -4,7 +4,7 @@
use crate::mix_node::models::{MixnodeStatus, PrettyDetailedMixNodeBond};
use crate::mix_nodes::location::{Location, LocationCache, LocationCacheItem};
use crate::mix_nodes::MIXNODES_CACHE_ENTRY_TTL;
use mixnet_contract::MixNodeBond;
use mixnet_contract_common::MixNodeBond;
use std::collections::{HashMap, HashSet};
use std::sync::Arc;
use std::time::{Duration, SystemTime};
+1 -1
View File
@@ -3,7 +3,7 @@
use crate::mix_nodes::MIXNODES_CACHE_REFRESH_RATE;
use crate::state::ExplorerApiStateContext;
use mixnet_contract::MixNodeBond;
use mixnet_contract_common::MixNodeBond;
use reqwest::Url;
use std::future::Future;
use validator_client::ValidatorClientError;
+1 -1
View File
@@ -8,7 +8,7 @@ use rocket_okapi::okapi::openapi3::OpenApi;
use rocket_okapi::openapi_get_routes_spec;
use rocket_okapi::settings::OpenApiSettings;
use mixnet_contract::MixNodeBond;
use mixnet_contract_common::MixNodeBond;
use crate::ping::models::PingResponse;
use crate::state::ExplorerApiStateContext;
+1 -1
View File
@@ -5,7 +5,7 @@ use chrono::{DateTime, Utc};
use log::info;
use serde::{Deserialize, Serialize};
use mixnet_contract::MixNodeBond;
use mixnet_contract_common::MixNodeBond;
use crate::country_statistics::country_nodes_distribution::{
ConcurrentCountryNodesDistribution, CountryNodesDistribution,