Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

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

37 changes: 0 additions & 37 deletions contract-tests/src/contracts/drand.ts

This file was deleted.

98 changes: 0 additions & 98 deletions contract-tests/test/drand.precompile.test.ts

This file was deleted.

2 changes: 0 additions & 2 deletions pallets/admin-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ pub mod pallet {
AddressMapping,
/// Voting power precompile
VotingPower,
/// Drand randomness precompile
Drand,
}

#[pallet::type_value]
Expand Down
2 changes: 0 additions & 2 deletions precompiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pallet-admin-utils.workspace = true
subtensor-swap-interface.workspace = true
pallet-crowdloan.workspace = true
pallet-shield.workspace = true
pallet-drand.workspace = true

[lints]
workspace = true
Expand All @@ -66,7 +65,6 @@ std = [
"pallet-subtensor-swap/std",
"pallet-subtensor/std",
"pallet-shield/std",
"pallet-drand/std",
"precompile-utils/std",
"scale-info/std",
"sp-core/std",
Expand Down
57 changes: 0 additions & 57 deletions precompiles/src/drand.rs

This file was deleted.

11 changes: 1 addition & 10 deletions precompiles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub use address_mapping::AddressMappingPrecompile;
pub use alpha::AlphaPrecompile;
pub use balance_transfer::BalanceTransferPrecompile;
pub use crowdloan::CrowdloanPrecompile;
pub use drand::DrandPrecompile;
pub use ed25519::Ed25519Verify;
pub use extensions::PrecompileExt;
pub use leasing::LeasingPrecompile;
Expand All @@ -49,7 +48,6 @@ mod address_mapping;
mod alpha;
mod balance_transfer;
mod crowdloan;
mod drand;
mod ed25519;
mod extensions;
mod leasing;
Expand Down Expand Up @@ -77,7 +75,6 @@ where
+ pallet_crowdloan::Config
+ pallet_shield::Config
+ pallet_subtensor_proxy::Config
+ pallet_drand::Config
+ Send
+ Sync
+ scale_info::TypeInfo,
Expand Down Expand Up @@ -115,7 +112,6 @@ where
+ pallet_crowdloan::Config
+ pallet_shield::Config
+ pallet_subtensor_proxy::Config
+ pallet_drand::Config
+ Send
+ Sync
+ scale_info::TypeInfo,
Expand All @@ -140,7 +136,7 @@ where
Self(Default::default())
}

pub fn used_addresses() -> [H160; 28] {
pub fn used_addresses() -> [H160; 27] {
[
hash(1),
hash(2),
Expand Down Expand Up @@ -169,7 +165,6 @@ where
hash(VotingPowerPrecompile::<R>::INDEX),
hash(ProxyPrecompile::<R>::INDEX),
hash(AddressMappingPrecompile::<R>::INDEX),
hash(DrandPrecompile::<R>::INDEX),
]
}
}
Expand All @@ -185,7 +180,6 @@ where
+ pallet_crowdloan::Config
+ pallet_shield::Config
+ pallet_subtensor_proxy::Config
+ pallet_drand::Config
+ Send
+ Sync
+ scale_info::TypeInfo,
Expand Down Expand Up @@ -279,9 +273,6 @@ where
PrecompileEnum::AddressMapping,
)
}
a if a == hash(DrandPrecompile::<R>::INDEX) => {
DrandPrecompile::<R>::try_execute::<R>(handle, PrecompileEnum::Drand)
}
_ => None,
}
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 393,
spec_version: 394,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading
Loading