Skip to content

Commit

Permalink
fix connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
1xstj committed Jul 8, 2024
1 parent 2e0dd7e commit 6043589
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions primitives/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ use xcm::v3::{Junction, Junctions, MultiLocation};

pub type QueryId = u64;

pub trait StakingAgentDelegator<AccountId, MultiLocation, CurrencyId, Balance, Error> {
/// Delegate to some validators.
fn delegate(
who: &AccountId,
targets: &Vec<MultiLocation>,
currency_id: CurrencyId,
weight_and_fee: Option<(Weight, Balance)>,
) -> Result<QueryId, Error>;
}

/// Abstraction over a staking agent for a certain POS chain.
pub trait StakingAgent<
Balance,
Expand Down

0 comments on commit 6043589

Please sign in to comment.