@pear-protocol/hyperliquid-sdk 0.1.25 → 0.1.26
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/dist/clients/auth.d.ts +1 -1
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/clients/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiResponse, GetEIP712MessageResponse, AuthenticateRequest, AuthenticateResponse, RefreshTokenResponse, LogoutResponse } from "../types";
|
|
2
|
-
export declare function getEIP712Message(baseUrl: string, address: string, clientId: string): Promise<ApiResponse<GetEIP712MessageResponse>>;
|
|
2
|
+
export declare function getEIP712Message(baseUrl: string, address: string, clientId: string, chainId?: number): Promise<ApiResponse<GetEIP712MessageResponse>>;
|
|
3
3
|
export declare function authenticate(baseUrl: string, body: AuthenticateRequest): Promise<ApiResponse<AuthenticateResponse>>;
|
|
4
4
|
/**
|
|
5
5
|
* Convenience wrapper for Privy access token authentication
|
package/dist/index.js
CHANGED
|
@@ -7817,11 +7817,15 @@ function usePortfolio() {
|
|
|
7817
7817
|
};
|
|
7818
7818
|
}
|
|
7819
7819
|
|
|
7820
|
-
async function getEIP712Message(baseUrl, address, clientId) {
|
|
7820
|
+
async function getEIP712Message(baseUrl, address, clientId, chainId) {
|
|
7821
7821
|
const url = joinUrl(baseUrl, "/auth/eip712-message");
|
|
7822
7822
|
try {
|
|
7823
7823
|
const resp = await apiClient.get(url, {
|
|
7824
|
-
params: {
|
|
7824
|
+
params: {
|
|
7825
|
+
address,
|
|
7826
|
+
chainId,
|
|
7827
|
+
clientId,
|
|
7828
|
+
},
|
|
7825
7829
|
timeout: 30000,
|
|
7826
7830
|
});
|
|
7827
7831
|
return {
|