UNPKG

based-auth

Version:

A Next.js/Node.js authentication and wallet API kit for Ethereum and Solana, with utilities for serialization and contract interaction, designed for serverless and API route usage.

30 lines (29 loc) 814 B
import { Model } from 'mongoose'; import { NetworkSymbols } from '../../../basedauth/src/networks'; export declare enum NotificationTypes { FOLLOW = "FOLLOW", UNFOLLOW = "UNFOLLOW", INVITE = "INVITE", GIVE_INVITE_ROLE = "GIVE_INVITE_ROLE", TRADING_FEE_EARNED = "TRADING_FEE_EARNED", TOKEN_LAUNCHED = "TOKEN_LAUNCHED" } export interface INotification extends Document { recipient: { network: NetworkSymbols; address: string; }; actor: { network: NetworkSymbols; address: string; name?: string; image?: string; }; type: NotificationTypes; read: boolean; data: Record<string, any>; formatMessage(): string; createdAt: Date; updatedAt: Date; } export declare const NotificationModel: Model<INotification>;