@ritbit/v4-client-js 2.1.9 → 2.1.10

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.
@@ -13,7 +13,7 @@ import {
13
13
  import LocalWallet from '../src/clients/modules/local-wallet';
14
14
  import { SubaccountInfo } from '../src/clients/subaccount';
15
15
  import {
16
- createNewRandomDydxWallet,
16
+ createNewRandomChainWallet,
17
17
  getAuthorizeNewTradingKeyArguments,
18
18
  getAuthorizedTradingKeysMetadata,
19
19
  } from '../src/lib/trading-key-utils';
@@ -107,7 +107,7 @@ async function createApiTradingWallet(
107
107
  client: CompositeClient,
108
108
  subaccount: SubaccountInfo,
109
109
  ): Promise<{ privteKeyHex: string; forDydxAddress: string }> {
110
- const wallet = await createNewRandomDydxWallet();
110
+ const wallet = await createNewRandomChainWallet();
111
111
  if (wallet == null) {
112
112
  throw new Error("Couldn't create wallet");
113
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ritbit/v4-client-js",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "General client library for the new RITBIT Chain",
5
5
  "main": "build/cjs/src/index.js",
6
6
  "module": "build/esm/src/index.js",
@@ -15,7 +15,7 @@ import LocalWallet from '../clients/modules/local-wallet';
15
15
  import { BECH32_PREFIX } from './constants';
16
16
  import { deriveHDKeyFromMnemonic } from './onboarding';
17
17
 
18
- export const createNewRandomDydxWallet = async (): Promise<
18
+ export const createNewRandomChainWallet = async (): Promise<
19
19
  { privateKeyHex: string; mnemonic: string; publicKey: string; address: string } | undefined
20
20
  > => {
21
21
  const mnemonic = generateMnemonic(wordlist, 128);