From a9f1c228d2614a9f996842b1e312d9c1ed5d97df Mon Sep 17 00:00:00 2001 From: Fedor-Aftermath Date: Tue, 10 Dec 2024 13:13:29 +0200 Subject: [PATCH] chore: removed unused methods --- src/packages/dca/dcaTypes.ts | 2 +- src/packages/limit/api/limitApiCastingTypes.ts | 1 + src/packages/limit/limit.ts | 14 -------------- src/packages/userData/userData.ts | 6 ------ 4 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/packages/dca/dcaTypes.ts b/src/packages/dca/dcaTypes.ts index e62670db..47d563d4 100644 --- a/src/packages/dca/dcaTypes.ts +++ b/src/packages/dca/dcaTypes.ts @@ -95,7 +95,7 @@ export interface DcaOrderOverviewObject { tradesRemaining: number; maxSlippageBps: number; strategy?: DcaOrderStrategyData; - recipient?: SuiAddress; + recipient: SuiAddress; progress: number; created: { time: Timestamp; diff --git a/src/packages/limit/api/limitApiCastingTypes.ts b/src/packages/limit/api/limitApiCastingTypes.ts index d8ffe3b0..5ef1eb76 100644 --- a/src/packages/limit/api/limitApiCastingTypes.ts +++ b/src/packages/limit/api/limitApiCastingTypes.ts @@ -90,6 +90,7 @@ export type LimitIndexerOrderCreateRequest = { order: { input_coin: ServiceCoinData; input_coin_type: CoinType; + input_coin_amount: string; output_coin_type: CoinType; gas_coin: ServiceCoinData; owner: SuiAddress; diff --git a/src/packages/limit/limit.ts b/src/packages/limit/limit.ts index a68982d1..3cf7771c 100644 --- a/src/packages/limit/limit.ts +++ b/src/packages/limit/limit.ts @@ -35,20 +35,6 @@ export class LimitOrders extends Caller { // Class Objects // ========================================================================= - /** - * Fetches the API for dollar cost averaging orders list. - * @async - * @param { LimitOrderObject } inputs - An object containing the walletAddress. - * @returns { Promise } A promise that resolves to object with array of fetched events for active and past dca's. - */ - - public async getAllLimitOrders(inputs: ApiLimitsOwnedBody) { - return this.fetchApi( - "orders", - inputs - ); - } - /** * Fetches the API for dollar cost averaging active orders list. * @async diff --git a/src/packages/userData/userData.ts b/src/packages/userData/userData.ts index 150fa0a6..0f386055 100644 --- a/src/packages/userData/userData.ts +++ b/src/packages/userData/userData.ts @@ -80,10 +80,4 @@ export class UserData extends Caller { action: `SIGN_TERMS_AND_CONDITIONS`, }; } - - public static getTermsAndConsKey(inputs: { - walletAddress: SuiAddress | undefined; - }) { - return `${this.constants.termsAndConsKey}-${inputs.walletAddress}`; - } }