@velora-dex/sdk 8.1.1-dev.0 → 8.1.1-dev.1
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.
- package/dist/methods/delta/cancelDeltaOrder.d.ts +1 -2
- package/dist/methods/delta/cancelDeltaOrder.d.ts.map +1 -1
- package/dist/methods/delta/getDeltaPrice.d.ts +2 -0
- package/dist/methods/delta/getDeltaPrice.d.ts.map +1 -1
- package/dist/sdk.cjs.development.js +3 -6
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +3 -6
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/methods/delta/cancelDeltaOrder.ts +2 -4
- package/src/methods/delta/getDeltaPrice.ts +2 -0
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ import type {
|
|
|
2
2
|
ConstructProviderFetchInput,
|
|
3
3
|
RequestParameters,
|
|
4
4
|
} from '../../types';
|
|
5
|
-
import { DeltaAuction } from './helpers/types';
|
|
6
5
|
import {
|
|
7
6
|
buildCancelDeltaOrderSignableData,
|
|
8
7
|
CancelDeltaOrderData,
|
|
@@ -27,7 +26,7 @@ export type PostCancelDeltaOrderRequest = (
|
|
|
27
26
|
) => Promise<SuccessResponse>;
|
|
28
27
|
|
|
29
28
|
export type CancelDeltaOrder = (
|
|
30
|
-
params:
|
|
29
|
+
params: CancelDeltaOrderData,
|
|
31
30
|
requestParams?: RequestParameters
|
|
32
31
|
) => Promise<SuccessResponse>;
|
|
33
32
|
|
|
@@ -83,10 +82,9 @@ export const constructCancelDeltaOrder = (
|
|
|
83
82
|
};
|
|
84
83
|
|
|
85
84
|
const cancelLimitDeltaOrders: CancelDeltaOrder = async (
|
|
86
|
-
|
|
85
|
+
{ orderIds },
|
|
87
86
|
requestParams
|
|
88
87
|
) => {
|
|
89
|
-
const orderIds = params.map(({ id }) => id);
|
|
90
88
|
const signature = await signCancelLimitDeltaOrderRequest(
|
|
91
89
|
{ orderIds },
|
|
92
90
|
requestParams
|
|
@@ -24,6 +24,8 @@ export type DeltaPriceParams = {
|
|
|
24
24
|
destDecimals: number;
|
|
25
25
|
/** @description User's Wallet Address */
|
|
26
26
|
userAddress?: string;
|
|
27
|
+
/** @description Beneficiary Address */
|
|
28
|
+
beneficiary?: string; // beneficiary==owner if no transferTo
|
|
27
29
|
/** @description Partner string. */
|
|
28
30
|
partner?: string;
|
|
29
31
|
/** @description Destination Chain ID for Crosschain Orders */
|