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:
committed by
GitHub
parent
e2e06df4e6
commit
6b3700aefe
Vendored
+1
-1
@@ -6,7 +6,7 @@ use crate::rewarding::EpochRewardParams;
|
||||
use ::time::OffsetDateTime;
|
||||
use anyhow::Result;
|
||||
use config::defaults::VALIDATOR_API_VERSION;
|
||||
use mixnet_contract::{
|
||||
use mixnet_contract_common::{
|
||||
ContractStateParams, GatewayBond, IdentityKey, IdentityKeyRef, MixNodeBond,
|
||||
RewardingIntervalResponse,
|
||||
};
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
use crate::cache::ValidatorCache;
|
||||
use mixnet_contract::{GatewayBond, MixNodeBond};
|
||||
use mixnet_contract_common::{GatewayBond, MixNodeBond};
|
||||
use rocket::serde::json::Json;
|
||||
use rocket::State;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ use crate::network_monitor::test_packet::{NodeType, TestPacket};
|
||||
use crate::network_monitor::test_route::TestRoute;
|
||||
use crypto::asymmetric::{encryption, identity};
|
||||
use log::info;
|
||||
use mixnet_contract::{Addr, GatewayBond, Layer, MixNodeBond};
|
||||
use mixnet_contract_common::{Addr, GatewayBond, Layer, MixNodeBond};
|
||||
use nymsphinx::addressing::clients::Recipient;
|
||||
use nymsphinx::forwarding::packet::MixPacket;
|
||||
use rand::seq::SliceRandom;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
use crate::config::Config;
|
||||
use crate::rewarding::{error::RewardingError, EpochRewardParams, MixnodeToReward};
|
||||
use config::defaults::DEFAULT_VALIDATOR_API_PORT;
|
||||
use mixnet_contract::{
|
||||
use mixnet_contract_common::{
|
||||
ContractStateParams, Delegation, ExecuteMsg, GatewayBond, IdentityKey, MixNodeBond,
|
||||
MixnodeRewardingStatusResponse, RewardingIntervalResponse, MIXNODE_DELEGATORS_PAGE_LIMIT,
|
||||
};
|
||||
@@ -157,7 +157,7 @@ impl<C> Client<C> {
|
||||
|
||||
pub(crate) async fn get_rewarding_status(
|
||||
&self,
|
||||
mix_identity: mixnet_contract::IdentityKey,
|
||||
mix_identity: mixnet_contract_common::IdentityKey,
|
||||
rewarding_interval_nonce: u32,
|
||||
) -> Result<MixnodeRewardingStatusResponse, ValidatorClientError>
|
||||
where
|
||||
|
||||
@@ -12,8 +12,8 @@ use crate::storage::models::{
|
||||
use crate::storage::ValidatorApiStorage;
|
||||
use config::defaults::DENOM;
|
||||
use log::{error, info};
|
||||
use mixnet_contract::mixnode::NodeRewardParams;
|
||||
use mixnet_contract::{
|
||||
use mixnet_contract_common::mixnode::NodeRewardParams;
|
||||
use mixnet_contract_common::{
|
||||
ExecuteMsg, IdentityKey, MixNodeBond, RewardingStatus, MIXNODE_DELEGATORS_PAGE_LIMIT,
|
||||
};
|
||||
use std::convert::TryInto;
|
||||
|
||||
Reference in New Issue
Block a user