pub struct BvsMultiTest {
pub pauser: PauserContract,
pub registry: RegistryContract,
pub guardrail: GuardrailContract,
pub vault_router: VaultRouterContract,
}Fields§
§pauser: PauserContract§registry: RegistryContract§guardrail: GuardrailContract§vault_router: VaultRouterContractImplementations§
Source§impl BvsMultiTest
BvsMultiTest provides a convenient way to bootstrap all the necessary contracts
for testing a Service in the BVS ecosystem.
impl BvsMultiTest
BvsMultiTest provides a convenient way to bootstrap all the necessary contracts for testing a Service in the BVS ecosystem.
Sourcepub fn new(app: &mut App, env: &Env) -> Self
pub fn new(app: &mut App, env: &Env) -> Self
Creates a new instance of BvsMultiTest with the given App and Env. It initializes the PauserContract, RegistryContract, and VaultRouterContract.
Sourcepub fn deploy_bank_vault(
&self,
app: &mut App,
env: &Env,
operator: impl Into<String>,
denom: impl Into<String>,
) -> VaultBankContract
pub fn deploy_bank_vault( &self, app: &mut App, env: &Env, operator: impl Into<String>, denom: impl Into<String>, ) -> VaultBankContract
Deploys a new VaultBankContract with the given operator and denom.
Sourcepub fn deploy_cw20_vault(
&self,
app: &mut App,
env: &Env,
operator: impl Into<String>,
cw20_contract: Addr,
) -> VaultCw20Contract
pub fn deploy_cw20_vault( &self, app: &mut App, env: &Env, operator: impl Into<String>, cw20_contract: Addr, ) -> VaultCw20Contract
Deploys a new VaultCw20Contract with the given operator and cw20 contract address.
Sourcepub fn deploy_cw20_token(
&self,
app: &mut App,
env: &Env,
symbol: impl Into<String>,
minter: impl Into<String>,
) -> Cw20TokenContract
pub fn deploy_cw20_token( &self, app: &mut App, env: &Env, symbol: impl Into<String>, minter: impl Into<String>, ) -> Cw20TokenContract
Deploys a new Cw20TokenContract with the given symbol and minter address.
Auto Trait Implementations§
impl Freeze for BvsMultiTest
impl RefUnwindSafe for BvsMultiTest
impl Send for BvsMultiTest
impl Sync for BvsMultiTest
impl Unpin for BvsMultiTest
impl UnwindSafe for BvsMultiTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more