Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nftperp/sdk

Package Overview
Dependencies
Maintainers
2
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 3.3.0 to 3.4.0

3

config/index.js

@@ -34,4 +34,7 @@ "use strict";

PUNKS: "0xB504aC5a974c0856732E6DB14589A0A7CC2199e8",
AZUKI: "0xaf588bca9175cC4d6e981Ade462f0Af40331cb2e",
MILADY: "0x28d45Df0D075f229aDcbAfF59Bf90d39e80D875E",
MAYC: "0x6BcCA37F6DEAcB3cfCA095f08F6d72C65D01992B",
},
},
};

2

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

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

@@ -53,8 +53,2 @@ # nftperp sdk ✨

#### Obtaining mock WETH from faucet
```ts
await nftperp.faucet(); // grants 5 mock weth
```
#### Open a position

@@ -78,3 +72,3 @@

/**
[ 'BAYC', 'MILADY', 'AZUKI', '...' ]
[ 'BAYC', 'PUNKS', '...' ]
*/

@@ -97,3 +91,3 @@ ```

#### Calculate fee on position
#### Estimate fee on position

@@ -100,0 +94,0 @@ ```ts

@@ -19,8 +19,2 @@ import { Wallet } from "ethers";

/**
* use trading comp faucet
* grants 5 `mock weth`
* @returns tx hash
*/
faucet(): Promise<string>;
/**
* Open a new position

@@ -27,0 +21,0 @@ * @param params params for opening position

@@ -35,11 +35,2 @@ "use strict";

/**
* use trading comp faucet
* grants 5 `mock weth`
* @returns tx hash
*/
async faucet() {
const tx = await this._weth.faucet();
return tx.hash;
}
/**
* Open a new position

@@ -46,0 +37,0 @@ * @param params params for opening position

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