@rabby-wallet/hyperliquid-sdk 1.0.9-beta.1 → 1.0.9-beta.2

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.
@@ -443,10 +443,10 @@ class ExchangeClient {
443
443
  const nonce = Date.now();
444
444
  const assetIndex = yield this.symbolConversion.getAssetIndex(params.coin);
445
445
  const action = {
446
+ type: constants_1.ExchangeType.UPDATE_ISOLATED_MARGIN,
446
447
  asset: assetIndex,
447
448
  isBuy: true,
448
449
  ntli: (0, number_1.floatToInt)(params.value, 6), // 6 decimals
449
- type: constants_1.ExchangeType.UPDATE_ISOLATED_MARGIN,
450
450
  };
451
451
  const signature = (0, signer_1.signL1AgentAction)(this.getAgentPrivateKey(), action, this.isTestnet, nonce);
452
452
  return this.httpClient.exchange({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/hyperliquid-sdk",
3
- "version": "1.0.9-beta.1",
3
+ "version": "1.0.9-beta.2",
4
4
  "description": "Simplified Hyperliquid Perpetuals Trading SDK for Frontend Applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",