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.

25 lines (24 loc) 786 B
import { Schema, Model, ObjectId } from 'mongoose'; export interface ITransaction extends Document { id: string; _id?: ObjectId; __v?: number; chainId: number; address: string; account: string; referrer: string; time: Date; currentPrice: Schema.Types.Decimal128; isBought: boolean; signature: string; decimals: number; reserveETH: Schema.Types.Decimal128; reserveToken: Schema.Types.Decimal128; amountETH: Schema.Types.Decimal128; amountToken: Schema.Types.Decimal128; amountOwnerFee: Schema.Types.Decimal128; amountSubBoardFee: Schema.Types.Decimal128; amountTokenOwnerFee: Schema.Types.Decimal128; amountReferralFee: Schema.Types.Decimal128; } export declare const TransactionModel: Model<ITransaction>;