@dydxprotocol/v4-client-js 1.12.2 → 1.13.0

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.
@@ -26,7 +26,7 @@ async function test(): Promise<void> {
26
26
  const paramsInJson = `{
27
27
  "endpointUrls":[
28
28
  "https://dydx-testnet.nodefleet.org",
29
- "https://test-dydx.kingnodes.com",
29
+ "https://test-dydx-rpc.kingnodes.com",
30
30
  "https://dydx-rpc.liquify.com/api=8878132/dydx"
31
31
  ],
32
32
  "chainId":"dydx-testnet-4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-client-js",
3
- "version": "1.12.2",
3
+ "version": "1.13.0",
4
4
  "description": "General client library for the new dYdX system (v4 decentralized)",
5
5
  "main": "build/src/index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@ export enum IndexerApiHost {
30
30
  }
31
31
 
32
32
  export enum IndexerWSHost {
33
- TESTNET = 'wss://dydx-testnet.imperator.co/v4/ws',
33
+ TESTNET = 'wss://indexer.v4testnet.dydx.exchange/v4/ws',
34
34
  STAGING = 'wss://indexer.v4staging.dydx.exchange/v4/ws',
35
35
  LOCAL = 'ws://localhost:3003',
36
36
  // For the deployment by DYDX token holders
@@ -42,7 +42,7 @@ export enum FaucetApiHost {
42
42
  }
43
43
 
44
44
  export enum ValidatorApiHost {
45
- TESTNET = 'https://test-dydx.kingnodes.com',
45
+ TESTNET = 'https://test-dydx-rpc.kingnodes.com',
46
46
  STAGING = 'https://validator.v4staging.dydx.exchange',
47
47
  LOCAL = 'http://localhost:26657',
48
48
  // For the deployment by DYDX token holders
@@ -439,7 +439,7 @@ export async function withdraw(payload: string): Promise<string> {
439
439
  }
440
440
 
441
441
  const subaccount = new SubaccountInfo(wallet, subaccountNumber);
442
- const tx = await client.withdrawFromSubaccount(subaccount, amount, json.recipient);
442
+ const tx = await client.withdrawFromSubaccount(subaccount, amount, json.recipient, json.memo);
443
443
  return encodeJson(tx);
444
444
  } catch (error) {
445
445
  return wrappedError(error);
@@ -560,7 +560,7 @@ export async function transferNativeToken(payload: string): Promise<string> {
560
560
  },
561
561
  false,
562
562
  client.validatorClient.post.defaultDydxGasPrice,
563
- undefined,
563
+ json.memo,
564
564
  );
565
565
  return encodeJson(tx);
566
566
  } catch (error) {