Skip to main content

Crate nym_mixnet_contract_common

Crate nym_mixnet_contract_common 

Source

Re-exports§

pub use delegation::Delegation;
pub use delegation::PagedAllDelegationsResponse;
pub use delegation::PagedDelegatorDelegationsResponse;
pub use delegation::PagedNodeDelegationsResponse;
pub use gateway::Gateway;
pub use gateway::GatewayBond;
pub use gateway::GatewayBondResponse;
pub use gateway::GatewayConfigUpdate;
pub use gateway::GatewayOwnershipResponse;
pub use gateway::PagedGatewayResponse;
pub use interval::CurrentIntervalResponse;
pub use interval::EpochId;
pub use interval::EpochState;
pub use interval::EpochStatus;
pub use interval::Interval;
pub use interval::IntervalId;
pub use mixnode::LegacyMixLayer;
pub use mixnode::MixNode;
pub use mixnode::MixNodeBond;
pub use mixnode::MixNodeConfigUpdate;
pub use mixnode::MixNodeDetails;
pub use mixnode::MixOwnershipResponse;
pub use mixnode::MixnodeDetailsByIdentityResponse;
pub use mixnode::MixnodeDetailsResponse;
pub use mixnode::NodeCostParams;
pub use mixnode::NodeRewarding;
pub use mixnode::PagedMixnodeBondsResponse;
pub use mixnode::UnbondedMixnode;
pub use nym_node::NymNode;
pub use nym_node::NymNodeBond;
pub use nym_node::NymNodeDetails;
pub use nym_node::PendingNodeChanges;
pub use pending_events::EpochEventId;
pub use pending_events::IntervalEventId;
pub use pending_events::NumberOfPendingEventsResponse;
pub use pending_events::PendingEpochEvent;
pub use pending_events::PendingEpochEventData;
pub use pending_events::PendingEpochEventKind;
pub use pending_events::PendingEpochEventResponse;
pub use pending_events::PendingEpochEventsResponse;
pub use pending_events::PendingIntervalEvent;
pub use pending_events::PendingIntervalEventData;
pub use pending_events::PendingIntervalEventKind;
pub use pending_events::PendingIntervalEventResponse;
pub use pending_events::PendingIntervalEventsResponse;
pub use reward_params::IntervalRewardParams;
pub use reward_params::IntervalRewardingParamsUpdate;
pub use reward_params::RewardingParams;
pub use rewarding::EstimatedCurrentEpochRewardResponse;
pub use rewarding::PendingRewardResponse;
pub use constants::*;
pub use key_rotation::*;
pub use msg::*;
pub use signing_types::*;
pub use types::*;

Modules§

constants
delegation
error
events
gateway
helpers
interval
key_rotation
mixnode
msg
nym_node
pending_events
reward_params
rewarding
signing_types
types

Structs§

Addr
A human readable address.
Coin
ConfigScoreParams
ContractBuildInformation
CurrentNymNodeVersionResponse
Decimal
A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0
HistoricalNymNodeVersion
HistoricalNymNodeVersionEntry
NymNodeVersionHistoryResponse
OutdatedVersionWeights
Defines weights for calculating numbers of versions behind the current release.
Percent
Percent represents a value between 0 and 100% (i.e. between 0.0 and 1.0)
TotalVersionDifference
VersionScoreFormulaParams
Given the formula of version_score = penalty ^ (versions_behind_factor ^ penalty_scaling) define the relevant parameters

Enums§

ContractsCommonError

Traits§

Fraction
A fraction p/q with integers p and q.

Functions§

truncate_decimal

Type Aliases§

IdentityKey
Ed25519 public key strinfified into base58.
IdentityKeyRef