@rabby-wallet/hyperliquid-sdk 1.1.1-beta.4 → 1.1.1-beta.5

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.
@@ -1,3 +1,4 @@
1
+ import { ExchangeType } from '../types/constants';
1
2
  import type { OrderResponse, CancelResponse, ExchangeClientConfig, PlaceOrderParams, MultiOrderParams, CancelOrderParams, ModifyOrderParams, WithdrawParams, ApproveBuilderFeeParams, PrepareApproveBuilderFeeResult, SendApproveParams, MarketOrderParams, UpdateLeverageParams, BindTpslByOrderIdParams, UpdateIsolatedMarginParams } from '../types';
2
3
  /**
3
4
  * Client for executing trades on Hyperliquid (perpetuals only)
@@ -72,7 +73,14 @@ export declare class ExchangeClient {
72
73
  */
73
74
  modifyOrder(params: ModifyOrderParams): Promise<any>;
74
75
  updateIsolatedMargin(params: UpdateIsolatedMarginParams): Promise<any>;
75
- prepareSetReferrer(code: string): import("@metamask/eth-sig-util").TypedMessage<import("@metamask/eth-sig-util").MessageTypes>;
76
+ prepareSetReferrer(code: string): {
77
+ typedData: import("@metamask/eth-sig-util").TypedMessage<import("@metamask/eth-sig-util").MessageTypes>;
78
+ action: {
79
+ type: ExchangeType;
80
+ code: string;
81
+ };
82
+ nonce: number;
83
+ };
76
84
  sendSetReferrer(params: SendApproveParams): Promise<any>;
77
85
  /**
78
86
  * Set referrer for 10% fee
@@ -477,7 +477,7 @@ class ExchangeClient {
477
477
  code,
478
478
  };
479
479
  const typedData = (0, signer_1.prepareSetReferrerTypedData)({ action, isTestnet: this.isTestnet, nonce });
480
- return typedData;
480
+ return { typedData, action, nonce };
481
481
  }
482
482
  catch (error) {
483
483
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/hyperliquid-sdk",
3
- "version": "1.1.1-beta.4",
3
+ "version": "1.1.1-beta.5",
4
4
  "description": "Simplified Hyperliquid Perpetuals Trading SDK for Frontend Applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",