Skip to content

Commit

Permalink
unsigned balances refactor (#202)
Browse files Browse the repository at this point in the history
* bump pallet deps

* fix warnings
  • Loading branch information
brenzi authored Sep 22, 2023
1 parent 6f1db95 commit b1372fd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 32 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion polkadot-parachains/encointer-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ parameter_types! {
parameter_types! {
pub const MomentsPerDay: Moment = 86_400_000; // [ms/d]
pub const DefaultDemurrage: Demurrage = Demurrage::from_bits(0x0000000000000000000001E3F0A8A973_i128);
pub const EncointerExistentialDeposit: BalanceType = BalanceType::from_bits(0x0000000000000000000053e2d6238da4_i128);
// 0.000005
pub const EncointerExistentialDeposit: BalanceType = BalanceType::from_bits(0x0000000000000000000053e2d6238da4_u128);
pub const MeetupSizeTarget: u64 = 10;
pub const MeetupMinSize: u64 = 3;
pub const MeetupNewbieLimitDivider: u64 = 2; // 2 means 1/3 of participants may be newbies
Expand Down
11 changes: 3 additions & 8 deletions polkadot-parachains/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,17 @@ use crate::{
chain_spec,
chain_spec::{EncointerChainSpec, GenesisKeys, LaunchChainSpec, RelayChain},
cli::{Cli, RelayChainCli, Subcommand},
service::{
new_partial, Block, EncointerParachainRuntimeExecutor, LaunchParachainRuntimeExecutor,
},
service::{new_partial, Block},
};
use codec::Encode;
use cumulus_client_cli::generate_genesis_block;
use cumulus_primitives_core::ParaId;
use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
use log::info;
use sc_cli::{
ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams,
NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli,
NetworkParams, Result, SharedParams, SubstrateCli,
};
use sc_service::config::{BasePath, PrometheusConfig};
use sp_core::hexdisplay::HexDisplay;
use sp_runtime::traits::{AccountIdConversion, Block as BlockT};
use sp_runtime::traits::AccountIdConversion;
use std::net::SocketAddr;

trait IdentifyChain {
Expand Down
4 changes: 1 addition & 3 deletions polkadot-parachains/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ use cumulus_client_consensus_aura::{AuraConsensus, BuildAuraConsensusParams, Slo
use cumulus_client_consensus_common::{
ParachainBlockImport as TParachainBlockImport, ParachainCandidate, ParachainConsensus,
};
use cumulus_client_network::BlockAnnounceValidator;
use cumulus_client_service::{
build_network, build_relay_chain_interface, prepare_node_config, start_collator,
start_full_node, BuildNetworkParams, StartCollatorParams, StartFullNodeParams,
};
use cumulus_primitives_core::{relay_chain::v2::Hash as PHash, ParaId, PersistedValidationData};
use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface};
use cumulus_relay_chain_interface::RelayChainInterface;
use sc_consensus::ImportQueue;
use sp_core::Pair;

Expand Down Expand Up @@ -325,7 +324,6 @@ where
})
.await?;

let rpc_client = client.clone();
let rpc_builder = {
let client = client.clone();
let transaction_pool = transaction_pool.clone();
Expand Down

0 comments on commit b1372fd

Please sign in to comment.