fn register_provider<T: Config>() -> Result<(T::AccountId, T::ProviderId), &'static str> {
	let operator: T::AccountId = account("operator", 10000, SEED);
	T::Currency::make_free_balance_be(&operator, BalanceOf::<T>::max_value());
	let provider_id = T::ProviderId::default();
	let deposit = T::RegisterDeposit::get() + T::MinimumStakingAmount::get();
	DapiStaking::<T>::register(operator.clone(), provider_id.clone(), deposit)?;
	Ok((operator, provider_id))
}
/// Used to register a provider.
Used to register a provider.
Used to register a provider .
fn register_provider<T: Config>() -> Result<(T::AccountId, T::ProviderId), &'static str> {
	let operator: T::AccountId = account("operator", 10000, SEED);
	T::Currency::make_free_balance_be(&operator, BalanceOf::<T>::max_value());
	let provider_id = T::ProviderId::default();
	let deposit = T::RegisterDeposit::get() + T::MinimumStakingAmount::get();
	DapiStaking::<T>::register(operator.clone(), provider_id.clone(), deposit)?;
	Ok((operator, provider_id))
}
fn register_provider < T : Config > ( ) -> Result < ( T :: AccountId , T :: ProviderId ) , & ' static str > { let operator : T :: AccountId = account ( " " , 10000 , SEED ) ; T :: Currency :: make_free_balance_be ( & operator , BalanceOf :: < T > :: max_value ( ) ) ; let provider_id = T :: ProviderId :: default ( ) ; let deposit = T :: RegisterDeposit :: get ( ) + T :: MinimumStakingAmount :: get ( ) ; DapiStaking :: < T > :: register ( operator . clone ( ) , provider_id . clone ( ) , deposit ) ? ; Ok ( ( operator , provider_id ) ) }
Used to register a provider.
Used to register a provider .