refactored code

This commit is contained in:
shivaji43
2025-01-12 12:13:37 +05:30
parent fcbb2e18c6
commit 58a9edd7e2
17 changed files with 776 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export interface Config {
JUPITER_REFERRAL_ACCOUNT?: string;
JUPITER_FEE_BPS?: number;
FLASH_PRIVILEGE?: string;
HELIUS_API_KEY?: string;
}
export interface Creator {
@@ -237,3 +238,25 @@ export interface FlashCloseTradeParams {
token: string;
side: "long" | "short";
}
export interface HeliusWebhookResponse {
webhookURL: string;
webhookID: string;
}
export interface HeliusWebhookIdResponse {
wallet: string;
webhookURL: string;
transactionTypes: string[];
accountAddresses: string[];
webhookType: string;
}
export interface PriorityFeeResponse {
jsonrpc: string;
id: string;
method: string;
params: Array<{
transaction: string;
options: { priorityLevel: string };
}>;
}