@nftperp/sdk
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -34,4 +34,7 @@ "use strict"; | ||
PUNKS: "0xB504aC5a974c0856732E6DB14589A0A7CC2199e8", | ||
AZUKI: "0xaf588bca9175cC4d6e981Ade462f0Af40331cb2e", | ||
MILADY: "0x28d45Df0D075f229aDcbAfF59Bf90d39e80D875E", | ||
MAYC: "0x6BcCA37F6DEAcB3cfCA095f08F6d72C65D01992B", | ||
}, | ||
}, | ||
}; |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1084502
17483
138