@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velora-dex/sdk",
3
- "version": "9.3.4-dev.4",
3
+ "version": "9.3.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/sdk.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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 { Bridge, DeltaAuctionOrder } from './helpers/types';
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
- bridgeOverride?: Pick<Bridge, 'protocolSelector' | 'protocolData'>;
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
- cosignature,
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>({