vectis_wallet/types/
authenticator.rs1use cosmwasm_schema::cw_serde;
2
3#[cw_serde]
5pub enum AuthenticatorProvider {
6 Vectis,
8 Custom(String),
10}
11
12#[cw_serde]
14pub enum AuthenticatorType {
15 Webauthn,
16 Other(String),
19}
20
21impl std::fmt::Display for AuthenticatorType {
22 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
23 write!(f, "{self:?}")
24 }
25}
26
27#[cw_serde]
29pub struct Authenticator {
30 pub ty: AuthenticatorType,
31 pub provider: AuthenticatorProvider,
32}
33
34impl Authenticator {
35 pub fn ty(&self) -> &AuthenticatorType {
36 &self.ty
37 }
38
39 pub fn provider(&self) -> &AuthenticatorProvider {
40 &self.provider
41 }
42}
43
44#[cw_serde]
45pub struct EmptyInstantiateMsg {}