UNPKG

@dappykit/sdk

Version:

Web3 SDK for DApps

60 lines (59 loc) 1.22 kB
/** * Information about user */ export interface UserInfo { /** * Version of the server */ version: string; /** * Smart Account address */ address: string; /** * User verification status */ verification: UserVerification; } /** * Checks that value is a UserInfo * @param value Value to check */ export declare function isUserInfo(value: unknown): value is UserInfo; /** * Asserts that value is a UserInfo * @param data Value to check */ export declare function assertUserInfo(data: unknown): asserts data is UserInfo; /** * User verification status */ export declare enum UserVerificationStatus { /** * User is not verified and not in the process of verification */ IDLE = "IDLE", /** * User is in the process of verification */ PENDING = "PENDING", /** * User is verified */ DONE = "DONE" } /** * User verification */ export interface UserVerification { /** * Verification on-chain has been successfully completed or not. * * @type {boolean} */ onChainVerified: boolean; /** * Explanation of the verification status. */ status: UserVerificationStatus; }