use cosmwasm_schema::cw_serde;
#[cw_serde]
pub enum AuthenticatorProvider {
Vectis,
Custom(String),
}
#[cw_serde]
pub enum AuthenticatorType {
Webauthn,
Other(String),
}
impl std::fmt::Display for AuthenticatorType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "{self:?}")
}
}
#[cw_serde]
pub struct Authenticator {
pub ty: AuthenticatorType,
pub provider: AuthenticatorProvider,
}
impl Authenticator {
pub fn ty(&self) -> &AuthenticatorType {
&self.ty
}
pub fn provider(&self) -> &AuthenticatorProvider {
&self.provider
}
}
#[cw_serde]
pub struct EmptyInstantiateMsg {}