dexscreener-sdk
Version:
A TypeScript wrapper for the DEX Screener API, providing easy access to token profiles, boosts, orders, pairs, and more.
17 lines (16 loc) • 491 B
JavaScript
import { BaseModel } from './BaseModel.js';
/**
* Order represents a payment order associated with a token.
*/
export class Order extends BaseModel {
/**
* Creates an instance of Order.
* @param data Partial data to initialize the order.
*/
constructor(data) {
super(data);
this.paymentTimestamp = data.paymentTimestamp || 0;
this.type = data.type || 'tokenProfile';
this.status = data.status || 'processing';
}
}