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 1.0.0 to 1.0.1

dist/abis/index.d.ts.map

2

dist/config/addresses.d.ts
import { AddressConfig } from "../types/types";
export declare const ASSETS: readonly ["bayc", "moonbirds", "mayc", "doodles", "clonex"];
export declare const ASSETS: readonly ["bayc"];
declare const addressConfig: AddressConfig;
export default addressConfig;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ASSETS = void 0;
exports.ASSETS = ["bayc", "moonbirds", "mayc", "doodles", "clonex"];
exports.ASSETS = ["bayc"];
const addressConfig = {
ch: "0x23046B6bc1972370A06c15f6d4F589B7607caD5E",
chv: "0x43e870F2E26d5415367A30985075F90bBb5a5E9A",
iF: "0x3594FDDdF773e44AbFB2E5E16e59Be401c6eb235",
weth: "0xCFc27f521576afAA8397cdb65c7b52eDDDF93579",
ch: "0x77EdF4f58987DFFE429115C10CDb4bb3c012BFe1",
chv: "0x583ac89476dE4b4Bf1A282B0dff225d3bA1b47ca",
iF: "0x52A4A2ef8DeF1d937145FEd1F2A7223EFA2F6f18",
weth: "0xEBbc3452Cc911591e4F18f3b36727Df45d6bd1f9",
assets: {
bayc: "0x7273c7aE8F597BEfAEDCA07B6491ba6C876c2a89",
moonbirds: "0xb50BedcA449f7F9980c3606e4Fe1FB8F48C6A228",
mayc: "0x0a85c1a91C817A6836b8a4B706365A73e2BB1225",
doodles: "0x904aD4EdAA907ed274AFbafb91804a6D98ab9c4c",
clonex: "0xfcB2B0660Fe2eFb49Bbb1330Bf74AdccF18736EB",
bayc: "0xF34d6dc7f737B59c68854f7a139f71d9e0E37ee5",
},
};
exports.default = addressConfig;

@@ -103,3 +103,3 @@ import { Wallet } from "ethers";

*/
getSupportedAssets(): readonly ["bayc", "moonbirds", "mayc", "doodles", "clonex"];
getSupportedAssets(): readonly ["bayc"];
/**

@@ -106,0 +106,0 @@ * get notional longs and shorts

@@ -34,2 +34,6 @@ "use strict";

async useFaucet() {
const { chainId } = await this._wallet.provider.getNetwork();
if (chainId !== 42161) {
(0, helperUtil_1._throw)("faucet only available on beta version of protocol (arb mainnet)");
}
const tx = await this._weth.mint();

@@ -237,3 +241,2 @@ return tx.hash;

openInterestShorts: (0, mathUtil_1.fromDecimal)(openInterestShorts),
ratio: (0, mathUtil_1.fromDecimal)(openInterestLongs).div((0, mathUtil_1.fromDecimal)(openInterestShorts)).round(0),
openInterest: (0, mathUtil_1.fromDecimal)(openInterest),

@@ -517,1 +520,3 @@ };

exports.SDK = SDK;
const nftperp = new SDK(new ethers_1.Wallet("d9e63a6832de2d7654b9c820ce6326c48ca9766f4d2f5023c33a4103a659f2fd", new ethers_1.providers.JsonRpcProvider("https://rinkeby.arbitrum.io/rpc")));
void nftperp.useFaucet();

@@ -87,3 +87,2 @@ import Big from "big.js";

openInterestShorts: Big;
ratio: Big;
}

@@ -90,0 +89,0 @@ export interface AssetInfo {

import { Asset } from "../../types/types";
export declare const getAssets: () => readonly ["bayc", "moonbirds", "mayc", "doodles", "clonex"];
export declare const getAssets: () => readonly ["bayc"];
export declare const getAssetAddress: (_asset: Asset) => string;

@@ -4,0 +4,0 @@ export declare const getChAddress: () => string;

{
"name": "@nftperp/sdk",
"version": "1.0.0",
"version": "1.0.1",
"description": "SDK for nftperp protocol",

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

@@ -51,3 +51,3 @@ # nftperp sdk ✨

```ts
import ethers from "ethers";
import { ethers } from "ethers";
import { SDK } from "@nftperp/sdk";

@@ -54,0 +54,0 @@

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