Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wpha Council #1269

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion pallets/phala/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ rmrk-traits = { git = "https://github.com/Phala-Network/rmrk-substrate", branch
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
pallet-insecure-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
pallet-elections-phragmen = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false }
Expand Down Expand Up @@ -73,6 +74,7 @@ std = [
"frame-system/std",
"pallet-assets/std",
"pallet-democracy/std",
"pallet-elections-phragmen/std",
"sp-io/std",
"sp-std/std",
"sp-core/std",
Expand All @@ -91,7 +93,8 @@ std = [
"pallet-preimage/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks"
"frame-benchmarking/runtime-benchmarks",
"pallet-elections-phragmen/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime"]
native = [
Expand Down
10 changes: 5 additions & 5 deletions pallets/phala/src/compute/stake_pool_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ pub mod pallet {
BalanceOf<T>: sp_runtime::traits::AtLeast32BitUnsigned + Copy + FixedPointConvert + Display,
T: pallet_uniques::Config<CollectionId = CollectionId, ItemId = NftId>,
T: pallet_assets::Config<AssetId = u32, Balance = BalanceOf<T>>,
T: Config + vault::Config,
T: Config + vault::Config + pallet_elections_phragmen::Config,
{
/// Creates a new stake pool
#[pallet::call_index(0)]
Expand Down Expand Up @@ -984,7 +984,7 @@ pub mod pallet {
BalanceOf<T>: FixedPointConvert + Display,
T: pallet_uniques::Config<CollectionId = CollectionId, ItemId = NftId>,
T: pallet_assets::Config<AssetId = u32, Balance = BalanceOf<T>>,
T: Config + vault::Config,
T: Config + vault::Config + pallet_elections_phragmen::Config,
{
pub fn do_start_computing(
owner: &T::AccountId,
Expand Down Expand Up @@ -1178,7 +1178,7 @@ pub mod pallet {
BalanceOf<T>: FixedPointConvert + Display,
T: pallet_uniques::Config<CollectionId = CollectionId, ItemId = NftId>,
T: pallet_assets::Config<AssetId = u32, Balance = BalanceOf<T>>,
T: Config + vault::Config,
T: Config + vault::Config + pallet_elections_phragmen::Config,
{
/// Called when gk send new payout information.
/// Append specific worker's reward balance of current round,
Expand Down Expand Up @@ -1211,7 +1211,7 @@ pub mod pallet {
BalanceOf<T>: FixedPointConvert + Display,
T: pallet_uniques::Config<CollectionId = CollectionId, ItemId = NftId>,
T: pallet_assets::Config<AssetId = u32, Balance = BalanceOf<T>>,
T: Config + vault::Config,
T: Config + vault::Config + pallet_elections_phragmen::Config,
{
fn on_unbound(worker: &WorkerPublicKey, _force: bool) {
// Usually called on worker force unbinding (force == true), but it's also possible
Expand All @@ -1233,7 +1233,7 @@ pub mod pallet {
BalanceOf<T>: FixedPointConvert + Display,
T: pallet_uniques::Config<CollectionId = CollectionId, ItemId = NftId>,
T: pallet_assets::Config<AssetId = u32, Balance = BalanceOf<T>>,
T: Config + vault::Config,
T: Config + vault::Config + pallet_elections_phragmen::Config,
{
fn on_stopped(
_worker: &WorkerPublicKey,
Expand Down
1 change: 1 addition & 0 deletions pallets/phala/src/compute/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ pub mod pallet {
BalanceOf<T>: sp_runtime::traits::AtLeast32BitUnsigned + Copy + FixedPointConvert + Display,
T: pallet_uniques::Config<CollectionId = CollectionId, ItemId = NftId>,
T: pallet_assets::Config<AssetId = u32, Balance = BalanceOf<T>>,
T: Config + pallet_elections_phragmen::Config,
{
/// Creates a new vault
#[pallet::call_index(0)]
Expand Down
Loading