mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 20:37:22 +00:00
fc253e6e4d
* CI: add spellcheck * revert me * CI: explicit command for spellchecker * spellcheck: edit misspells * CI: run spellcheck on diff * spellcheck: edits * spellcheck: edit misspells * spellcheck: add rules * spellcheck: mv configs * spellcheck: more edits * spellcheck: chore * spellcheck: one more thing * spellcheck: and another one * spellcheck: seems like it doesn't get to an end * spellcheck: new words after rebase * spellcheck: new words appearing out of nowhere * chore * review edits * more review edits * more edits * wonky behavior * wonky behavior 2 * wonky behavior 3 * change git behavior * spellcheck: another bunch of new edits * spellcheck: new words are koming out of nowhere * CI: finding the master * CI: fetching master implicitly * CI: undebug * new errors * a bunch of new edits * and some more * Update node/core/approval-voting/src/approval_db/v1/mod.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update xcm/xcm-executor/src/assets.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Apply suggestions from code review Co-authored-by: Andronik Ordian <write@reusable.software> * Suggestions from the code review * CI: scan only changed files Co-authored-by: Andronik Ordian <write@reusable.software>
49 lines
1.9 KiB
Rust
49 lines
1.9 KiB
Rust
// Copyright 2021 Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Polkadot is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Types that we don't fetch from a particular runtime and just assume that they are constant all
|
|
//! of the place.
|
|
//!
|
|
//! It is actually easy to convert the rest as well, but it'll be a lot of noise in our codebase,
|
|
//! needing to sprinkle `any_runtime` in a few extra places.
|
|
|
|
/// The account id type.
|
|
pub type AccountId = core_primitives::AccountId;
|
|
/// The block number type.
|
|
pub type BlockNumber = core_primitives::BlockNumber;
|
|
/// The balance type.
|
|
pub type Balance = core_primitives::Balance;
|
|
/// The index of an account.
|
|
pub type Index = core_primitives::AccountIndex;
|
|
/// The hash type. We re-export it here, but we can easily get it from block as well.
|
|
pub type Hash = core_primitives::Hash;
|
|
|
|
pub use sp_runtime::traits::{Block as BlockT, Header as HeaderT};
|
|
|
|
/// Default URI to connect to.
|
|
pub const DEFAULT_URI: &'static str = "wss://rpc.polkadot.io";
|
|
/// The logging target.
|
|
pub const LOG_TARGET: &'static str = "staking-miner";
|
|
|
|
/// The election provider pallet.
|
|
pub use pallet_election_provider_multi_phase as EPM;
|
|
|
|
/// The externalities type.
|
|
pub type Ext = sp_io::TestExternalities;
|
|
|
|
/// The key pair type being used. We "strongly" assume sr25519 for simplicity.
|
|
pub type Pair = sp_core::sr25519::Pair;
|