@gardenfi/orderbook 2.4.6-beta.2 → 2.4.6-beta.3
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.
|
@@ -23,8 +23,8 @@ export declare class Orderbook implements IOrderbook {
|
|
|
23
23
|
getOrders<T extends boolean>(matched: T, filters: {
|
|
24
24
|
address?: string;
|
|
25
25
|
tx_hash?: string;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
from_chain?: Chain;
|
|
27
|
+
to_chain?: Chain;
|
|
28
28
|
status?: OrderStatus;
|
|
29
29
|
[key: string]: string | undefined;
|
|
30
30
|
}, paginationConfig?: PaginationConfig, request?: UtilsRequest): AsyncResult<PaginatedData<T extends true ? MatchedOrder : CreateOrder>, string>;
|
|
@@ -114,7 +114,7 @@ export interface IOrderbook {
|
|
|
114
114
|
/**
|
|
115
115
|
* Get all orders from the orderbook based on the match status.
|
|
116
116
|
* @param matched - If true, returns matched orders, else returns unmatched orders.
|
|
117
|
-
* @param filters - Object containing filter parameters like: `address`, `tx_hash`, `
|
|
117
|
+
* @param filters - Object containing filter parameters like: `address`, `tx_hash`, `from_chain`, `to_chain`, `status` and any additional key-value pairs for query parameters.
|
|
118
118
|
* @param paginationConfig - The configuration for the pagination.
|
|
119
119
|
* @param request - Optional request configuration.
|
|
120
120
|
* @returns {AsyncResult<PaginatedData<T extends true ? MatchedOrder : CreateOrder>, string>} A promise that resolves to the orders.
|
|
@@ -122,8 +122,8 @@ export interface IOrderbook {
|
|
|
122
122
|
getOrders<T extends boolean>(matched: T, filters: {
|
|
123
123
|
address?: string;
|
|
124
124
|
tx_hash?: string;
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
from_chain?: Chain;
|
|
126
|
+
to_chain?: Chain;
|
|
127
127
|
status?: OrderStatus;
|
|
128
128
|
[key: string]: string | undefined;
|
|
129
129
|
}, paginationConfig?: PaginationConfig, request?: UtilsRequest): AsyncResult<PaginatedData<T extends true ? MatchedOrder : CreateOrder>, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/orderbook",
|
|
3
|
-
"version": "2.4.6-beta.
|
|
3
|
+
"version": "2.4.6-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@coral-xyz/anchor": "^0.31.1",
|
|
31
|
-
"@gardenfi/utils": "2.4.6-beta.
|
|
31
|
+
"@gardenfi/utils": "2.4.6-beta.2",
|
|
32
32
|
"bufferutil": "^4.0.8",
|
|
33
33
|
"siwe": "^2.1.4",
|
|
34
34
|
"utf-8-validate": "^6.0.3",
|