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.

31 lines (30 loc) 802 B
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; seo: 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[]; metaUri: string; createdAt: Date; updatedAt: Date; } export declare const SubBoardModel: Model<ISubBoard>;