@gardenfi/orderbook 2.1.8-beta.1 → 2.1.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ export declare class Orderbook implements IOrderbook {
16
16
  * @param {IAuth} auth - The auth object.
17
17
  * @returns {string} The create order ID.
18
18
  */
19
- createOrder(order: CreateOrderReqWithStrategyId, auth: IAuth): AsyncResult<string, string>;
19
+ createOrder(order: CreateOrderReqWithStrategyId, auth: IAuth): AsyncResult<MatchedOrder, string>;
20
20
  getOrder<T extends boolean>(id: string, matched: T): AsyncResult<T extends true ? MatchedOrder : CreateOrder, string>;
21
21
  getMatchedOrders(address: string, status: Status, paginationConfig?: PaginationConfig): AsyncResult<PaginatedData<MatchedOrder>, string>;
22
22
  getUnMatchedOrders(address: string, paginationConfig?: PaginationConfig): AsyncResult<PaginatedData<CreateOrder>, string>;
@@ -89,7 +89,7 @@ export interface IOrderbook {
89
89
  * @param {CreateOrderConfig} orderConfig - The configuration for the creating the order.
90
90
  * @returns {number} The create order ID.
91
91
  */
92
- createOrder(order: CreateOrderReqWithStrategyId, auth: IAuth): AsyncResult<string, string>;
92
+ createOrder(order: CreateOrderReqWithStrategyId, auth: IAuth): AsyncResult<MatchedOrder, string>;
93
93
  /**
94
94
  * Get the order from orderbook based on provided Id and match status.
95
95
  * @param id - The create Id of the order
@@ -247,7 +247,7 @@ export type PaginatedData<T> = {
247
247
  total_items: number;
248
248
  per_page: number;
249
249
  };
250
- export type CreateOrderResponse = APIResponse<string>;
250
+ export type CreateOrderResponse = APIResponse<MatchedOrder>;
251
251
  export type PaginationConfig = {
252
252
  page?: number;
253
253
  per_page?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/orderbook",
3
- "version": "2.1.8-beta.1",
3
+ "version": "2.1.8-beta.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",