Skip to content

Commit

Permalink
feat: unique-polkadot-v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigoriy Simonov committed Aug 6, 2024
1 parent 3fd83a4 commit 7369282
Show file tree
Hide file tree
Showing 30 changed files with 525 additions and 586 deletions.
610 changes: 322 additions & 288 deletions Cargo.lock

Large diffs are not rendered by default.

129 changes: 65 additions & 64 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,76 +75,77 @@ thiserror = "1.0"
tokio = "1.32.0"

# Substrate Client
sc-basic-authorship = "0.32.0"
sc-block-builder = "0.31.0"
sc-chain-spec = "25.0.0"
sc-cli = { version = "0.34.0", default-features = false }
sc-client-api = "26.0.0"
sc-client-db = { version = "0.33.0", default-features = false }
sc-consensus = "0.31.0"
sc-consensus-aura = "0.32.0"
sc-consensus-grandpa = "0.17.0"
sc-consensus-manual-seal = "0.33.0"
sc-executor = "0.30.0"
sc-keystore = "23.0.0"
sc-network = "0.32.0"
sc-network-common = "0.31.0"
sc-network-sync = "0.31.0"
sc-offchain = "27.0.0"
sc-rpc = "27.0.0"
sc-rpc-api = "0.31.0"
sc-service = { version = "0.33.0", default-features = false }
sc-telemetry = "13.0.0"
sc-transaction-pool = "26.0.0"
sc-transaction-pool-api = "26.0.0"
sc-utils = "12.0.0"
sc-basic-authorship = "0.33.0"
sc-block-builder = "0.32.0"
sc-chain-spec = "26.0.0"
sc-cli = { version = "0.35.0", default-features = false }
sc-client-api = "27.0.0"
sc-client-db = { version = "0.34.0", default-features = false }
sc-consensus = "0.32.0"
sc-consensus-aura = "0.33.0"
sc-consensus-grandpa = "0.18.0"
sc-consensus-manual-seal = "0.34.0"
sc-executor = "0.31.0"
sc-keystore = "24.0.0"
sc-network = "0.33.0"
sc-network-common = "0.32.0"
sc-network-sync = "0.32.0"
sc-offchain = "28.0.0"
sc-rpc = "28.0.0"
sc-rpc-api = "0.32.0"
sc-service = { version = "0.34.0", default-features = false }
sc-telemetry = "14.0.0"
sc-transaction-pool = "27.0.0"
sc-transaction-pool-api = "27.0.0"
sc-utils = "13.0.0"
# Substrate Primitive
sp-api = { version = "24.0.0", default-features = false }
sp-block-builder = { version = "24.0.0", default-features = false }
sp-blockchain = "26.0.0"
sp-consensus = "0.30.0"
sp-consensus-aura = { version = "0.30.0", default-features = false }
sp-consensus-grandpa = { version = "11.0.0", default-features = false }
sp-core = { version = "26.0.0", default-features = false }
sp-core-hashing = { version = "13.0.0", default-features = false }
sp-core-hashing-proc-macro = { version = "13.0.0", default-features = false }
sp-api = { version = "25.0.0", default-features = false }
sp-block-builder = { version = "25.0.0", default-features = false }
sp-blockchain = "27.0.0"
sp-consensus = "0.31.0"
sp-consensus-aura = { version = "0.31.0", default-features = false }
sp-consensus-grandpa = { version = "12.0.0", default-features = false }
sp-core = { version = "27.0.0", default-features = false }
sp-core-hashing = { version = "14.0.0", default-features = false }
sp-core-hashing-proc-macro = { version = "14.0.0", default-features = false }
sp-database = "9.0.0"
sp-inherents = { version = "24.0.0", default-features = false }
sp-io = { version = "28.0.0", default-features = false }
sp-keyring = "29.0.0"
sp-offchain = { version = "24.0.0", default-features = false }
sp-runtime = { version = "29.0.0", default-features = false }
sp-runtime-interface = { version = "22.0.0", default-features = false }
sp-session = { version = "25.0.0", default-features = false }
sp-state-machine = { version = "0.33.0", default-features = false }
sp-std = { version = "12.0.0", default-features = false }
sp-storage = { version = "17.0.0", default-features = false }
sp-timestamp = { version = "24.0.0", default-features = false }
sp-transaction-pool = { version = "24.0.0", default-features = false }
sp-version = { version = "27.0.0", default-features = false }
sp-externalities = "0.24.0"
sp-inherents = { version = "25.0.0", default-features = false }
sp-io = { version = "29.0.0", default-features = false }
sp-keyring = "30.0.0"
sp-offchain = { version = "25.0.0", default-features = false }
sp-runtime = { version = "30.0.1", default-features = false }
sp-runtime-interface = { version = "23.0.0", default-features = false }
sp-session = { version = "26.0.0", default-features = false }
sp-state-machine = { version = "0.34.0", default-features = false }
sp-std = { version = "13.0.0", default-features = false }
sp-storage = { version = "18.0.0", default-features = false }
sp-timestamp = { version = "25.0.0", default-features = false }
sp-transaction-pool = { version = "25.0.0", default-features = false }
sp-version = { version = "28.0.0", default-features = false }
# Substrate FRAME
frame-benchmarking = { version = "26.0.0", default-features = false }
frame-executive = { version = "26.0.0", default-features = false }
frame-support = { version = "26.0.0", default-features = false }
frame-system = { version = "26.0.0", default-features = false }
frame-system-benchmarking = { version = "26.0.0", default-features = false }
frame-system-rpc-runtime-api = { version = "24.0.0", default-features = false }
pallet-aura = { version = "25.0.0", default-features = false }
pallet-balances = { version = "26.0.0", default-features = false }
pallet-grandpa = { version = "26.0.0", default-features = false }
pallet-sudo = { version = "26.0.0", default-features = false }
pallet-timestamp = { version = "25.0.0", default-features = false }
pallet-transaction-payment = { version = "26.0.0", default-features = false }
pallet-transaction-payment-rpc = "28.0.0"
pallet-transaction-payment-rpc-runtime-api = { version = "26.0.0", default-features = false }
pallet-utility = { version = "26.0.0", default-features = false }
frame-benchmarking = { version = "27.0.0", default-features = false }
frame-executive = { version = "27.0.0", default-features = false }
frame-support = { version = "27.0.0", default-features = false }
frame-system = { version = "27.0.0", default-features = false }
frame-system-benchmarking = { version = "27.0.0", default-features = false }
frame-system-rpc-runtime-api = { version = "25.0.0", default-features = false }
pallet-aura = { version = "26.0.0", default-features = false }
pallet-balances = { version = "27.0.0", default-features = false }
pallet-grandpa = { version = "27.0.0", default-features = false }
pallet-sudo = { version = "27.0.0", default-features = false }
pallet-timestamp = { version = "26.0.0", default-features = false }
pallet-transaction-payment = { version = "27.0.0", default-features = false }
pallet-transaction-payment-rpc = "29.0.0"
pallet-transaction-payment-rpc-runtime-api = { version = "27.0.0", default-features = false }
pallet-utility = { version = "27.0.0", default-features = false }
# Substrate Utility
frame-benchmarking-cli = "30.0.0"
frame-benchmarking-cli = "31.0.0"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.16.0" }
substrate-build-script-utils = "9.0.0"
substrate-frame-rpc-system = "26.0.0"
substrate-build-script-utils = "10.0.0"
substrate-frame-rpc-system = "27.0.0"
#substrate-test-runtime-client = "0.1.0"
substrate-wasm-builder = "15.0.0"
substrate-wasm-builder = "16.0.0"

# Frontier Client
fc-api = { version = "1.0.0-dev", path = "client/api" }
Expand Down
2 changes: 1 addition & 1 deletion client/mapping-sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod kv;
#[cfg(feature = "sql")]
pub mod sql;

use sp_api::BlockT;
use sp_runtime::traits::Block as BlockT;

#[derive(Copy, Clone, Eq, PartialEq)]
pub enum SyncStrategy {
Expand Down
4 changes: 2 additions & 2 deletions client/mapping-sync/src/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ use std::{ops::DerefMut, sync::Arc, time::Duration};
use futures::prelude::*;
// Substrate
use sc_client_api::backend::{Backend as BackendT, StateBackend, StorageProvider};
use sp_api::{HeaderT, ProvideRuntimeApi};
use sp_api::ProvideRuntimeApi;
use sp_blockchain::{Backend, HeaderBackend};
use sp_consensus::SyncOracle;
use sp_core::H256;
use sp_runtime::traits::{BlakeTwo256, Block as BlockT, UniqueSaturatedInto};
use sp_runtime::traits::{BlakeTwo256, Block as BlockT, Header as HeaderT, UniqueSaturatedInto};
// Frontier
use fp_rpc::EthereumRuntimeRPCApi;

Expand Down
1 change: 1 addition & 0 deletions client/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tokio = { workspace = true, features = ["sync"] }
prometheus-endpoint = { workspace = true }
sc-client-api = { workspace = true }
sc-consensus-aura = { workspace = true }
sp-externalities = { workspace = true }
sc-network = { workspace = true }
sc-network-common = { workspace = true }
sc-network-sync = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion client/rpc/src/eth/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ use scale_codec::{Decode, Encode};
// Substrate
use sc_client_api::backend::{Backend, StorageProvider};
use sc_transaction_pool::ChainApi;
use sp_api::{ApiExt, CallApiAt, CallApiAtParams, CallContext, Extensions, ProvideRuntimeApi};
use sp_api::{ApiExt, CallApiAt, CallApiAtParams, CallContext, ProvideRuntimeApi};
use sp_block_builder::BlockBuilder as BlockBuilderApi;
use sp_blockchain::HeaderBackend;
use sp_externalities::Extensions;
use sp_inherents::CreateInherentDataProviders;
use sp_io::hashing::{blake2_128, twox_128};
use sp_runtime::{
Expand Down
2 changes: 1 addition & 1 deletion client/rpc/src/eth/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use sp_block_builder::BlockBuilder as BlockBuilderApi;
use sp_blockchain::HeaderBackend;
use sp_inherents::CreateInherentDataProviders;
use sp_runtime::{
generic::BlockId, traits::Block as BlockT, transaction_validity::TransactionSource,
traits::Block as BlockT, transaction_validity::TransactionSource,
};
// Frontier
use fc_rpc_core::types::*;
Expand Down
2 changes: 0 additions & 2 deletions frame/dynamic-fee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { workspace = true }
sp-inherents = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }
# Frontier
fp-dynamic-fee = { workspace = true }
Expand All @@ -38,7 +37,6 @@ std = [
# Substrate
"sp-core/std",
"sp-inherents/std",
"sp-runtime/std",
"sp-std/std",
# Substrate
"frame-system/std",
Expand Down
2 changes: 0 additions & 2 deletions frame/evm-chain-id/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ scale-info = { workspace = true }
# Substrate
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = ["std"]
Expand All @@ -26,7 +25,6 @@ std = [
# Substrate
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
]
try-runtime = [
"frame-support/try-runtime",
Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/blake2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/bn128/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/curve25519/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/dispatch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/ed25519/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/modexp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::comparison_chain)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/sha3fips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion frame/evm/precompile/simple/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion primitives/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::large_enum_variant)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

use scale_codec::{Decode, Encode};
use sp_core::H256;
Expand Down
2 changes: 1 addition & 1 deletion primitives/dynamic-fee/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Core types and inherents for dynamic fee.
#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

use sp_core::U256;
use sp_inherents::InherentIdentifier;
Expand Down
2 changes: 1 addition & 1 deletion primitives/ethereum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

pub use ethereum::{
AccessListItem, BlockV2 as Block, LegacyTransactionMessage, Log, ReceiptV3 as Receipt,
Expand Down
2 changes: 1 addition & 1 deletion primitives/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

mod precompile;
mod validation;
Expand Down
2 changes: 1 addition & 1 deletion primitives/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::too_many_arguments)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

use ethereum::Log;
use ethereum_types::Bloom;
Expand Down
2 changes: 1 addition & 1 deletion primitives/self-contained/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

mod checked_extrinsic;
mod unchecked_extrinsic;
Expand Down
2 changes: 1 addition & 1 deletion primitives/storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]
#![deny(unused_crate_dependencies)]
#![warn(unused_crate_dependencies)]

use scale_codec::{Decode, Encode};

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Stable
#channel = "1.70.0" # rustc 1.70.0 (84c898d65 2023-05-13)
# Nightly
channel = "nightly-2023-05-23" # rustc 1.71.0-nightly (8b4b20836 2023-05-22)
channel = "nightly-2024-01-21" # rustc 1.71.0-nightly (8b4b20836 2023-05-22)
components = ["cargo", "clippy", "rustc", "rustfmt", "rust-src"]
profile = "minimal"
targets = ["wasm32-unknown-unknown"]
2 changes: 1 addition & 1 deletion template/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hex-literal = { workspace = true }
jsonrpsee = { workspace = true, features = ["server", "macros"] }
log = { workspace = true }
scale-codec = { package = "parity-scale-codec", workspace = true }
serde = { workspace = true }
serde_json = { workspace = true, features = ["arbitrary_precision"] }

# Substrate
prometheus-endpoint = { package = "substrate-prometheus-endpoint", workspace = true }
Expand Down
Loading

0 comments on commit 7369282

Please sign in to comment.