from dataclasses import dataclass, field
from typing import Any
from multiversx_sdk.core.address import Address
[docs]
@dataclass
class WildcardOrigin:
protocol: str = ""
domain: str = ""
[docs]
@dataclass
class NativeAuthDecoded:
ttl: int = 0
origin: str = ""
address: Address = field(default_factory=Address.empty)
signature: bytes = b""
block_hash: str = ""
body: str = ""
extra_info: Any = None
[docs]
@dataclass
class NativeAuthValidateResult:
issued: int = 0
expires: int = 0
address: Address = field(default_factory=Address.empty)
signer_address: Address = field(default_factory=Address.empty)
origin: str = ""
extra_info: dict[str, str] = field(default_factory=dict)