@dydxprotocol/v4-client-js 3.0.4 → 3.0.6

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": "@dydxprotocol/v4-client-js",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "General client library for the new dYdX system (v4 decentralized)",
5
5
  "main": "build/cjs/src/index.js",
6
6
  "module": "build/esm/src/index.js",
@@ -421,6 +421,7 @@ export class CompositeClient {
421
421
  currentHeight?: number,
422
422
  goodTilBlock?: number,
423
423
  memo?: string,
424
+ broadcastMode?: BroadcastMode,
424
425
  ): Promise<BroadcastTxAsyncResponse | BroadcastTxSyncResponse | IndexedTx> {
425
426
  const msgs: Promise<EncodeObject[]> = new Promise((resolve) => {
426
427
  const msg = this.placeOrderMessage(
@@ -458,7 +459,7 @@ export class CompositeClient {
458
459
  true,
459
460
  undefined,
460
461
  memo,
461
- undefined,
462
+ broadcastMode,
462
463
  () => account,
463
464
  );
464
465
  }
@@ -230,7 +230,7 @@ export const MAX_MEMO_CHARACTERS: number = 256;
230
230
 
231
231
  export const SHORT_BLOCK_WINDOW: number = 20;
232
232
 
233
- export const SHORT_BLOCK_FORWARD: number = 3;
233
+ export const SHORT_BLOCK_FORWARD: number = 15;
234
234
 
235
235
  // Querying
236
236
  export const PAGE_REQUEST: PageRequest = {