New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nftperp/sdk

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nftperp/sdk - npm Package Compare versions

Comparing version 10.0.0 to 10.1.0

2

config/index.js

@@ -26,4 +26,6 @@ "use strict";

remilio_blast: "0x8111ACc4cb1C9b9D8960107f37592144459D121b",
sproto_blast: "0xE16D67b1a744C2F3e8a46C29c4ac005590455358",
schizo_blast: "0x4c4763782260e5d05BeB6D3A85a4550824bf4a71",
},
},
};

2

package.json
{
"name": "@nftperp/sdk",
"version": "10.0.0",
"version": "10.1.0",
"description": "SDK for nftperp protocol",

@@ -5,0 +5,0 @@ "main": "sdk.js",

@@ -5,3 +5,2 @@ import * as config from "./config";

export declare class SDK {
readonly wallet?: web3.Wallet;
readonly wallet_blast?: web3.Wallet;

@@ -8,0 +7,0 @@ readonly clearingHouse_blast: types.ClearingHouse;

@@ -33,3 +33,2 @@ "use strict";

class SDK {
wallet;
wallet_blast;

@@ -361,3 +360,3 @@ // contract instances

async getPosition(amm, trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -373,3 +372,3 @@ this._checkAmm(amm);

async getMakerPosition(amm, trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -384,3 +383,3 @@ this._checkAmm(amm);

async getLimitOrders(amm, trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -395,3 +394,3 @@ this._checkAmm(amm);

async getTriggerOrders(amm, trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -414,3 +413,3 @@ this._checkAmm(amm);

async getBalances(trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -478,3 +477,3 @@ return this._api.balances(trader ?? (await this._getAddress()));

async getUpnl(amm, trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -510,3 +509,3 @@ this._checkAmm(amm);

async getLiquidationPrice(amm, trader) {
if (!this.wallet && !trader)
if (!this.wallet_blast && !trader)
throw new Error(`mising param: trader`);

@@ -768,3 +767,3 @@ this._checkAmm(amm);

async _getAddress() {
const addy = this.wallet.address ?? (await this.wallet.getAddress());
const addy = this.wallet_blast.address ?? (await this.wallet_blast.getAddress());
if (!addy)

@@ -787,3 +786,3 @@ throw new Error("signer has no address attached");

_checkWallet() {
if (!this.wallet) {
if (!this.wallet_blast) {
throw new Error(`sdk initialized as read-only, as private key is not provided`);

@@ -790,0 +789,0 @@ }

@@ -11,3 +11,5 @@ import * as config from "../config";

PUPPETS_WBTC_BLAST = "puppets_wbtc_blast",
REMILIO_BLAST = "remilio_blast"
REMILIO_BLAST = "remilio_blast",
SPROTO_BLAST = "sproto_blast",
SCHIZO_BLAST = "schizo_blast"
}

@@ -14,0 +16,0 @@ export declare enum Side {

@@ -29,2 +29,4 @@ "use strict";

Amm["REMILIO_BLAST"] = "remilio_blast";
Amm["SPROTO_BLAST"] = "sproto_blast";
Amm["SCHIZO_BLAST"] = "schizo_blast";
})(Amm || (exports.Amm = Amm = {}));

@@ -31,0 +33,0 @@ var Side;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc