🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@pear-protocol/exchanges-sdk

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pear-protocol/exchanges-sdk - npm Package Compare versions

Comparing version
0.1.4
to
0.1.5
+1
-1
dist/helper/lighter/helper.js

@@ -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,

{
"name": "@pear-protocol/exchanges-sdk",
"version": "0.1.4",
"version": "0.1.5",
"description": "Pear Protocol Exchanges SDK",

@@ -5,0 +5,0 @@ "private": false,