Socket
Socket
Sign inDemoInstall

@dahlia-labs/numoen-config

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dahlia-labs/numoen-config - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

1

dist/cjs/arbitrumMarkets.d.ts

@@ -5,2 +5,3 @@ import type { IMarket } from "@dahlia-labs/numoen-utils";

export declare const market: IMarket;
export declare const marketUSDC: IMarket;
//# sourceMappingURL=arbitrumMarkets.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.market = exports.WETH = void 0;
exports.marketUSDC = exports.market = exports.WETH = void 0;
const token_utils_1 = require("@dahlia-labs/token-utils");

@@ -23,2 +23,21 @@ const use_ethers_1 = require("@dahlia-labs/use-ethers");

});
const USDC = new token_utils_1.Token({
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
chainId: use_ethers_1.chainID.arbitrum,
name: "USD Coin",
symbol: "USDC",
decimals: 6,
logoURI: imageRegistry.concat("usdc.jpg"),
});
const uniPairUSDC = {
tokens: [exports.WETH, USDC],
address: "0x905dfCD5649217c42684f23958568e533C711Aa3",
lpToken: new token_utils_1.Token({
chainId: use_ethers_1.chainID.arbitrum,
name: "Sushiswap LP Token",
symbol: "SLP",
decimals: 18,
address: "0x905dfCD5649217c42684f23958568e533C711Aa3",
}),
};
const uniPair = {

@@ -50,2 +69,17 @@ tokens: [DPX, exports.WETH],

};
const pairUSDC = {
speculativeToken: exports.WETH,
baseToken: USDC,
lp: new token_utils_1.Token({
chainId: use_ethers_1.chainID.arbitrum,
name: "NLP",
symbol: "NLP",
decimals: 18,
address: "0x0a2A65259EA7d5c052745c7EA3D617F4AB3Bfaa0",
}),
bound: new token_utils_1.Price(exports.WETH, USDC, 1, 4000),
baseScaleFactor: 6,
speculativeScaleFactor: 18,
address: "0x0a2A65259EA7d5c052745c7EA3D617F4AB3Bfaa0",
};
exports.market = {

@@ -63,2 +97,14 @@ pair,

};
exports.marketUSDC = {
pair: pairUSDC,
referenceMarket: uniPairUSDC,
address: "0xE48347Fc02117303dfe10A801AB539D414BF39DC",
token: new token_utils_1.Token({
address: "0xE48347Fc02117303dfe10A801AB539D414BF39DC",
name: "ETH+",
symbol: "ETH+",
decimals: 18,
chainId: use_ethers_1.chainID.arbitrum,
}),
};
//# sourceMappingURL=arbitrumMarkets.js.map

4

dist/cjs/goerliMarkets.js

@@ -52,5 +52,5 @@ "use strict";

referenceMarket: uniPair,
address: "0xEF96b187c414DfdF38aA200D9e011Df6673dcC34",
address: "0x98B8b1B265bcA8ef56833fafb73d5287694608ee",
token: new token_utils_1.Token({
address: "0xEF96b187c414DfdF38aA200D9e011Df6673dcC34",
address: "0x98B8b1B265bcA8ef56833fafb73d5287694608ee",
name: "ETH+",

@@ -57,0 +57,0 @@ symbol: "ETH+",

@@ -8,3 +8,3 @@ "use strict";

goerli: [goerliMarkets_1.market],
arbitrum: [arbitrumMarkets_1.market],
arbitrum: [arbitrumMarkets_1.market, arbitrumMarkets_1.marketUSDC],
};

@@ -11,0 +11,0 @@ exports.weth = {

@@ -5,2 +5,3 @@ import type { IMarket } from "@dahlia-labs/numoen-utils";

export declare const market: IMarket;
export declare const marketUSDC: IMarket;
//# sourceMappingURL=arbitrumMarkets.d.ts.map

@@ -20,2 +20,21 @@ import { Price, Token } from "@dahlia-labs/token-utils";

});
const USDC = new Token({
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
chainId: chainID.arbitrum,
name: "USD Coin",
symbol: "USDC",
decimals: 6,
logoURI: imageRegistry.concat("usdc.jpg"),
});
const uniPairUSDC = {
tokens: [WETH, USDC],
address: "0x905dfCD5649217c42684f23958568e533C711Aa3",
lpToken: new Token({
chainId: chainID.arbitrum,
name: "Sushiswap LP Token",
symbol: "SLP",
decimals: 18,
address: "0x905dfCD5649217c42684f23958568e533C711Aa3",
}),
};
const uniPair = {

@@ -47,2 +66,17 @@ tokens: [DPX, WETH],

};
const pairUSDC = {
speculativeToken: WETH,
baseToken: USDC,
lp: new Token({
chainId: chainID.arbitrum,
name: "NLP",
symbol: "NLP",
decimals: 18,
address: "0x0a2A65259EA7d5c052745c7EA3D617F4AB3Bfaa0",
}),
bound: new Price(WETH, USDC, 1, 4000),
baseScaleFactor: 6,
speculativeScaleFactor: 18,
address: "0x0a2A65259EA7d5c052745c7EA3D617F4AB3Bfaa0",
};
export const market = {

@@ -60,2 +94,14 @@ pair,

};
export const marketUSDC = {
pair: pairUSDC,
referenceMarket: uniPairUSDC,
address: "0xE48347Fc02117303dfe10A801AB539D414BF39DC",
token: new Token({
address: "0xE48347Fc02117303dfe10A801AB539D414BF39DC",
name: "ETH+",
symbol: "ETH+",
decimals: 18,
chainId: chainID.arbitrum,
}),
};
//# sourceMappingURL=arbitrumMarkets.js.map

@@ -49,5 +49,5 @@ import { Price, Token } from "@dahlia-labs/token-utils";

referenceMarket: uniPair,
address: "0xEF96b187c414DfdF38aA200D9e011Df6673dcC34",
address: "0x98B8b1B265bcA8ef56833fafb73d5287694608ee",
token: new Token({
address: "0xEF96b187c414DfdF38aA200D9e011Df6673dcC34",
address: "0x98B8b1B265bcA8ef56833fafb73d5287694608ee",
name: "ETH+",

@@ -54,0 +54,0 @@ symbol: "ETH+",

@@ -1,6 +0,6 @@

import { market as arbiMarket, WETH as arbiWeth } from "./arbitrumMarkets";
import { market as arbiMarket, marketUSDC, WETH as arbiWeth, } from "./arbitrumMarkets";
import { market as goerliMarket, WETH as goerliWeth } from "./goerliMarkets";
export const markets = {
goerli: [goerliMarket],
arbitrum: [arbiMarket],
arbitrum: [arbiMarket, marketUSDC],
};

@@ -7,0 +7,0 @@ export const weth = {

{
"name": "@dahlia-labs/numoen-config",
"version": "0.4.5",
"version": "0.4.6",
"description": "Configuration for the Numoen app",

@@ -5,0 +5,0 @@ "repository": {

@@ -27,2 +27,23 @@ import type { IMarket, IPair } from "@dahlia-labs/numoen-utils";

const USDC = new Token({
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
chainId: chainID.arbitrum,
name: "USD Coin",
symbol: "USDC",
decimals: 6,
logoURI: imageRegistry.concat("usdc.jpg"),
});
const uniPairUSDC: IUniswapV2Pair = {
tokens: [WETH, USDC],
address: "0x905dfCD5649217c42684f23958568e533C711Aa3",
lpToken: new Token({
chainId: chainID.arbitrum,
name: "Sushiswap LP Token",
symbol: "SLP",
decimals: 18,
address: "0x905dfCD5649217c42684f23958568e533C711Aa3",
}),
} as const;
const uniPair: IUniswapV2Pair = {

@@ -58,2 +79,20 @@ tokens: [DPX, WETH],

const pairUSDC: IPair = {
speculativeToken: WETH,
baseToken: USDC,
lp: new Token({
chainId: chainID.arbitrum,
name: "NLP",
symbol: "NLP",
decimals: 18,
address: "0x0a2A65259EA7d5c052745c7EA3D617F4AB3Bfaa0",
}),
bound: new Price(WETH, USDC, 1, 4000),
baseScaleFactor: 6,
speculativeScaleFactor: 18,
address: "0x0a2A65259EA7d5c052745c7EA3D617F4AB3Bfaa0",
} as const;
export const market: IMarket = {

@@ -71,1 +110,14 @@ pair,

} as const;
export const marketUSDC: IMarket = {
pair: pairUSDC,
referenceMarket: uniPairUSDC,
address: "0xE48347Fc02117303dfe10A801AB539D414BF39DC",
token: new Token({
address: "0xE48347Fc02117303dfe10A801AB539D414BF39DC",
name: "ETH+",
symbol: "ETH+",
decimals: 18,
chainId: chainID.arbitrum,
}),
} as const;

@@ -60,5 +60,5 @@ import type { IMarket, IPair } from "@dahlia-labs/numoen-utils";

referenceMarket: uniPair,
address: "0xEF96b187c414DfdF38aA200D9e011Df6673dcC34",
address: "0x98B8b1B265bcA8ef56833fafb73d5287694608ee",
token: new Token({
address: "0xEF96b187c414DfdF38aA200D9e011Df6673dcC34",
address: "0x98B8b1B265bcA8ef56833fafb73d5287694608ee",
name: "ETH+",

@@ -65,0 +65,0 @@ symbol: "ETH+",

import type { ChainsV1, IMarket } from "@dahlia-labs/numoen-utils";
import type { Token } from "@dahlia-labs/token-utils";
import { market as arbiMarket, WETH as arbiWeth } from "./arbitrumMarkets";
import {
market as arbiMarket,
marketUSDC,
WETH as arbiWeth,
} from "./arbitrumMarkets";
import { market as goerliMarket, WETH as goerliWeth } from "./goerliMarkets";

@@ -9,3 +13,3 @@

goerli: [goerliMarket],
arbitrum: [arbiMarket],
arbitrum: [arbiMarket, marketUSDC],
} as const;

@@ -12,0 +16,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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