Skip to content

Commit cde8d0b

Browse files
committed
chore: release
1 parent ce9acfb commit cde8d0b

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@deltadefi-protocol/sdk",
33
"description": "The Typescript SDK for DeltaDeFi protocol",
4-
"version": "0.3.25",
4+
"version": "0.3.65",
55
"main": "./dist/index.cjs",
66
"browser": "./dist/index.js",
77
"module": "./dist/index.js",

src/client/orders/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
SubmitPlaceOrderTransactionRequest,
77
SubmitPlaceOrderTransactionResponse,
88
SubmitCancelOrderTransactionRequest,
9-
SubmitCancelOrderTransactionResponse,
109
} from '../../types';
1110
import { Api } from '../api';
1211

@@ -64,11 +63,11 @@ export class Orders extends Api {
6463
/**
6564
* Submits a cancel order transaction.
6665
* @param data - The submit cancel order transaction request data.
67-
* @returns A promise that resolves to the submit cancel order transaction response.
66+
* @returns The transaction hash of cancelled order.
6867
*/
69-
public submitCancelOrderTransaction(
68+
public async submitCancelOrderTransaction(
7069
data: SubmitCancelOrderTransactionRequest,
71-
): Promise<SubmitCancelOrderTransactionResponse> {
70+
): Promise<object> {
7271
const res = this.axiosInstance.delete('/order/submit', { data });
7372
return this.resolveAxiosData(res);
7473
}

src/types/models/order.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export type TradingSymbol = 'ADAUSDM';
22

33
export type OrderStatus =
4+
| 'processing'
45
| 'open'
56
| 'fully_filled'
67
| 'partially_filled'

src/types/requests/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type SubmitWithdrawalTransactionRequest = {
3939

4040
export type BuildTransferalTransactionRequest = {
4141
transferal_amount: Asset[];
42-
to_address: string
42+
to_address: string;
4343
};
4444

4545
export type SubmitTransferalTransactionRequest = {

src/types/responses/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ export type BuildCancelOrderTransactionResponse = {
141141
tx_hex: string;
142142
};
143143

144-
export type SubmitCancelOrderTransactionResponse = object;
145-
146144
export type GetAPIKeyResponse = {
147145
api_key: string;
148146
created_at: string;

0 commit comments

Comments
 (0)