@pear-protocol/exchanges-sdk
Advanced tools
@@ -29,3 +29,3 @@ import { fetchApiKeys, fetchAccount, fetchAccountsByL1Address } from '../../client/lighter/rest'; | ||
| const apiKeys = await fetchApiKeys(params.accountIndex); | ||
| const apiKeyIndex = apiKeys.length === 0 ? 3 : apiKeys.reduce((max, k) => k.api_key_index > max ? k.api_key_index : max, 0) + 1; | ||
| const apiKeyIndex = Math.max(4, ...apiKeys.map((k) => k.api_key_index + 1)); | ||
| const { privateKey, messageToSign, txInfo } = await sdk.core.misc.lighter.createApiKey({ | ||
@@ -32,0 +32,0 @@ accountIndex: params.accountIndex, |
+1
-1
| { | ||
| "name": "@pear-protocol/exchanges-sdk", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "description": "Pear Protocol Exchanges SDK", | ||
@@ -5,0 +5,0 @@ "private": false, |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
182044
-0.03%