Skip to content

Commit

Permalink
chore: removed unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor-Aftermath committed Dec 10, 2024
1 parent 99a2468 commit a9f1c22
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/packages/dca/dcaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export interface DcaOrderOverviewObject {
tradesRemaining: number;
maxSlippageBps: number;
strategy?: DcaOrderStrategyData;
recipient?: SuiAddress;
recipient: SuiAddress;
progress: number;
created: {
time: Timestamp;
Expand Down
1 change: 1 addition & 0 deletions src/packages/limit/api/limitApiCastingTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 0 additions & 14 deletions src/packages/limit/limit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<LimitOrderObject> } 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<LimitOrderObject[], ApiLimitsOwnedBody>(
"orders",
inputs
);
}

/**
* Fetches the API for dollar cost averaging active orders list.
* @async
Expand Down
6 changes: 0 additions & 6 deletions src/packages/userData/userData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
}

0 comments on commit a9f1c22

Please sign in to comment.