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.

22 lines (21 loc) 717 B
import { Schema, Model } from 'mongoose'; export interface ITransaction extends Document { _id: string; chainId: number; address: string; account: 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>;