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.

43 lines (42 loc) 1.12 kB
import { Types, Model } from 'mongoose'; import { NetworkSymbols } from '../../../basedauth/src/networks'; export interface IFollower { _id: string; network: NetworkSymbols; address: string; } export interface ISubBoard extends Document { _id: string; chainId: number; account: string; title: string; logo: string; banner: string; description: string; fees: { listingFee: Types.Decimal128; listingReferralFee: Types.Decimal128; buyFeePer: Types.Decimal128; sellFeePer: Types.Decimal128; finalizeFeePer: Types.Decimal128; }[]; isAllowed: boolean; followers: IFollower[]; privacy: { mode: "public" | "private" | "request_to_join"; allowRequests: boolean; requestsActiveUntil?: Date; requestTimeLimit?: number; }; members: IFollower[]; invitations: string[]; metaUri: string; telegram: string; twitter: string; gitbook: string; tiktok: string; youtube: string; createdAt: Date; updatedAt: Date; } export declare const SubBoardModel: Model<ISubBoard>;