Skip to content

Commit

Permalink
chore: rename from past to executed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor-Aftermath committed Dec 26, 2024
1 parent eeabcea commit 1df3f54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/packages/limitOrders/limitOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class LimitOrders extends Caller {
* Fetches the API for dollar cost averaging active 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 dca's.
* @returns { Promise<LimitOrderObject[]> } A promise that resolves to object with array of fetched events for active limit orders
*/

public async getActiveLimitOrders(
Expand All @@ -55,12 +55,12 @@ export class LimitOrders extends Caller {
* Fetches the API for limit cost finished 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 past dca's.
* @returns { Promise<LimitOrderObject[]> } A promise that resolves to object with array of fetched events for past limit orders
*/

public async getExecutedLimitOrders(inputs: { walletAddress: SuiAddress }) {
public async getPastLimitOrders(inputs: { walletAddress: SuiAddress }) {
return this.fetchApi<LimitOrderObject[], ApiLimitOrdersOwnedBody>(
"orders/executed",
"orders/past",
inputs
);
}
Expand Down Expand Up @@ -104,7 +104,7 @@ export class LimitOrders extends Caller {
// =========================================================================

/**
* Method for getting the cancellation dca order message to sign.
* Method for getting the cancellation limit order message to sign.
* @param inputs - The inputs for the message.
* @returns Message to sign.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/packages/limitOrders/limitOrdersTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type LimitOrdersIndexerOrderStatus =

export interface LimitOrdersObject {
active: LimitOrderObject[];
executed: LimitOrderObject[];
past: LimitOrderObject[];
}

export interface LimitOrderObject {
Expand Down Expand Up @@ -86,7 +86,7 @@ export interface LimitOrderObject {
}

// =========================================================================
// DCA Events
// Limit Orders Events
// =========================================================================

export interface LimitOrdersCreatedOrderEvent extends Event {
Expand All @@ -102,7 +102,7 @@ export interface LimitOrdersCreatedOrderEvent extends Event {
}

// =========================================================================
// Owned DCAs
// Owned Limit Orders
// =========================================================================

export interface ApiLimitOrdersOwnedBody {
Expand Down

0 comments on commit 1df3f54

Please sign in to comment.