@velora-dex/sdk 9.3.4-dev.4 → 9.3.4
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/deltaTokenModule.d.ts +2 -3
- package/dist/methods/delta/deltaTokenModule.d.ts.map +1 -1
- package/dist/sdk.cjs.development.js +9 -7
- 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 +9 -7
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/methods/delta/deltaTokenModule.ts +10 -15
package/package.json
CHANGED
|
@@ -8,14 +8,13 @@ import { sanitizeDeltaOrderData } from './helpers/misc';
|
|
|
8
8
|
import { SignableDeltaOrderData } from './helpers/buildDeltaOrderData';
|
|
9
9
|
import { produceDeltaOrderHash } from './preSignDeltaOrder';
|
|
10
10
|
import type { ExtractAbiMethodNames } from '../../helpers/misc';
|
|
11
|
-
import type {
|
|
11
|
+
import type { DeltaAuctionOrder } from './helpers/types';
|
|
12
12
|
import { DEFAULT_BRIDGE } from './constants';
|
|
13
13
|
|
|
14
14
|
export type CancelAndWithdrawDeltaOrderParams = {
|
|
15
15
|
order: DeltaAuctionOrder;
|
|
16
16
|
signature: string;
|
|
17
|
-
|
|
18
|
-
cosignature?: string;
|
|
17
|
+
/** @description A boolean indicating whether the order is a fillable order. False by default */
|
|
19
18
|
isFillable?: boolean;
|
|
20
19
|
};
|
|
21
20
|
|
|
@@ -260,16 +259,7 @@ export const constructDeltaTokenModule = <T>(
|
|
|
260
259
|
const { getDeltaContract } = constructGetDeltaContract(options);
|
|
261
260
|
|
|
262
261
|
const cancelAndWithdrawDeltaOrder: CancelAndWithdrawDeltaOrder<T> = async (
|
|
263
|
-
{
|
|
264
|
-
order,
|
|
265
|
-
signature,
|
|
266
|
-
bridgeOverride = {
|
|
267
|
-
protocolData: DEFAULT_BRIDGE.protocolData,
|
|
268
|
-
protocolSelector: DEFAULT_BRIDGE.protocolSelector,
|
|
269
|
-
},
|
|
270
|
-
cosignature = '0x',
|
|
271
|
-
isFillable = false,
|
|
272
|
-
},
|
|
262
|
+
{ order, signature, isFillable = false },
|
|
273
263
|
overrides = {},
|
|
274
264
|
requestParams
|
|
275
265
|
) => {
|
|
@@ -281,8 +271,13 @@ export const constructDeltaTokenModule = <T>(
|
|
|
281
271
|
const orderWithSig = {
|
|
282
272
|
order,
|
|
283
273
|
signature,
|
|
284
|
-
bridgeOverride,
|
|
285
|
-
|
|
274
|
+
// bridgeOverride and cosignature are not used by the contract,
|
|
275
|
+
// can always provide defaults
|
|
276
|
+
bridgeOverride: {
|
|
277
|
+
protocolData: DEFAULT_BRIDGE.protocolData,
|
|
278
|
+
protocolSelector: DEFAULT_BRIDGE.protocolSelector,
|
|
279
|
+
},
|
|
280
|
+
cosignature: '0x',
|
|
286
281
|
};
|
|
287
282
|
|
|
288
283
|
const res = await options.contractCaller.transactCall<AvailableMethods>({
|