@nexusmutual/sdk 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/product-types.json +1 -1
- package/dist/data/products.json +14 -0
- package/dist/index.d.mts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +329 -133
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -133
- package/dist/index.mjs.map +1 -1
- package/dist/logos/equilibria.svg +1 -0
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"id": 7,
|
|
53
|
-
"coverWordingURL": "https://api.nexusmutual.io/ipfs/
|
|
53
|
+
"coverWordingURL": "https://api.nexusmutual.io/ipfs/QmQfYgbBhyC3gJMvan9gbzUaZtd4Xy4gubEYfgTFKycBDZ",
|
|
54
54
|
"name": "Sherlock Quota Share",
|
|
55
55
|
"gracePeriod": 3024000,
|
|
56
56
|
"claimMethod": 0
|
package/dist/data/products.json
CHANGED
|
@@ -1958,5 +1958,19 @@
|
|
|
1958
1958
|
"DAI"
|
|
1959
1959
|
],
|
|
1960
1960
|
"isPrivate": false
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"id": 132,
|
|
1964
|
+
"name": "Equilibria",
|
|
1965
|
+
"productType": 0,
|
|
1966
|
+
"isDeprecated": false,
|
|
1967
|
+
"useFixedPrice": false,
|
|
1968
|
+
"logo": "equilibria.svg",
|
|
1969
|
+
"metadata": {},
|
|
1970
|
+
"coverAssets": [
|
|
1971
|
+
"ETH",
|
|
1972
|
+
"DAI"
|
|
1973
|
+
],
|
|
1974
|
+
"isPrivate": false
|
|
1961
1975
|
}
|
|
1962
1976
|
]
|
package/dist/index.d.mts
CHANGED
|
@@ -2064,6 +2064,21 @@ var products = [
|
|
|
2064
2064
|
"DAI"
|
|
2065
2065
|
],
|
|
2066
2066
|
isPrivate: false
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
id: 132,
|
|
2070
|
+
name: "Equilibria",
|
|
2071
|
+
productType: 0,
|
|
2072
|
+
isDeprecated: false,
|
|
2073
|
+
useFixedPrice: false,
|
|
2074
|
+
logo: "equilibria.svg",
|
|
2075
|
+
metadata: {
|
|
2076
|
+
},
|
|
2077
|
+
coverAssets: [
|
|
2078
|
+
"ETH",
|
|
2079
|
+
"DAI"
|
|
2080
|
+
],
|
|
2081
|
+
isPrivate: false
|
|
2067
2082
|
}
|
|
2068
2083
|
];
|
|
2069
2084
|
|
|
@@ -2119,7 +2134,7 @@ var productTypes = [
|
|
|
2119
2134
|
},
|
|
2120
2135
|
{
|
|
2121
2136
|
id: 7,
|
|
2122
|
-
coverWordingURL: "https://api.nexusmutual.io/ipfs/
|
|
2137
|
+
coverWordingURL: "https://api.nexusmutual.io/ipfs/QmQfYgbBhyC3gJMvan9gbzUaZtd4Xy4gubEYfgTFKycBDZ",
|
|
2123
2138
|
name: "Sherlock Quota Share",
|
|
2124
2139
|
gracePeriod: 3024000,
|
|
2125
2140
|
claimMethod: 0
|
|
@@ -2147,8 +2162,10 @@ var productTypes = [
|
|
|
2147
2162
|
}
|
|
2148
2163
|
];
|
|
2149
2164
|
|
|
2150
|
-
declare const allLogoFileNames: readonly ["
|
|
2165
|
+
declare const allLogoFileNames: readonly ["zerox.svg", "oneinch.svg", "aavev2.svg", "abracadabra.svg", "alchemix.svg", "anchor.svg", "angle.svg", "argent.svg", "aura.svg", "babylon.svg", "badgerdao.svg", "balancer.svg", "bancor.svg", "bancor.svg", "beefy.svg", "binance.svg", "blockFi.svg", "gelt.svg", "centrifuge.svg", "coinbase.svg", "compoundv2.svg", "convex.svg", "convex.svg", "convex.svg", "crypto-com.svg", "curve.svg", "curve.svg", "curve.svg", "dydx.svg", "ease.svg", "enzyme.svg", "enzyme.svg", "eth.svg", "euler.svg", "fodl.svg", "ftx.svg", "gearbox.svg", "gemini.svg", "gmx.svg", "goldfinch.svg", "hodlnaut.svg", "kraken.svg", "ledn.svg", "liquidcollective.svg", "liquity.svg", "makerdao.svg", "mstable.svg", "nested.svg", "nexo.svg", "notional-finance.svg", "olympusdao.svg", "opyn.png", "originusd.svg", "pangolin.svg", "perpetual.svg", "pooltogether.svg", "premia.svg", "rari.svg", "reflexer.png", "ribbon.svg", "gnosis-safe.svg", "tokensets.svg", "tokensets.svg", "sherlock.svg", "stakedao.svg", "stakewise.svg", "stakewise.svg", "sushiswap.svg", "synthetix.svg", "thorchain.svg", "trader-joe.svg", "uniswapv2.svg", "uniswapv2.svg", "vector.svg", "vesper.svg", "yearn.svg", "yearn.svg", "yeti.png", "yield-app.svg", "alpaca.svg", "wefi.png", "exactly.svg", "etherfi.png", "squeeth-by-opyn.png", "rage-trade.svg", "sentiment.png", "lyra.svg", "perennial.jpeg", "liquify.svg", "lyra.svg", "buffer-finance.svg", "hook.jpeg", "holyheld.jpeg", "union-finance.svg", "openq.png", "level-finance.png", "offramp.png", "aavev3.svg", "morpho.svg", "chorusone.svg", "kiln.svg", "vertex.svg", "the-retail-mutual.png", "figment.svg", "teller.svg", "ajna.svg", "eigenlayer.png", "vox.png", "mahalend.svg", "self.svg", "scallop.svg", "wefi.png", "zktsunami.svg", "hats.svg", "makerdao-dsr.svg", "spark-lending.svg", "defi-edge.svg", "stakewisev3.svg", "compoundv3.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "yearn.svg", "velodrome2.svg", "gmxv2.svg", "dhedge.svg", "term-finance.png", "pendle.svg", "aerodrome.svg", "hyperliquid.svg", "maverick.svg", "equilibria.svg", "akropolis.svg", "alpha-homora.svg", "ampleforth.svg", "arbitrum.svg", "aurora.svg", "avalanche.svg", "bunnypancake.svg", "celo.svg", "celsius.svg", "cowswap.svg", "cronos.svg", "dforce.svg", "dodo.svg", "element-finance.svg", "fantom.svg", "fuse.svg", "gamma.svg", "gnosis-multisig.svg", "harmony.svg", "heco.svg", "homora.svg", "idleDAIYield.svg", "idleUSDTYield.svg", "ironbank.svg", "metis.svg", "moonbeam.svg", "mooniswap.svg", "moonriver.svg", "nexus-mutual.svg", "nucypher.svg", "ondo.svg", "optimism.svg", "pancakeswap.svg", "polkadot.svg", "polygon.svg", "popsicle.svg", "ren.svg", "solana.svg", "starkware.svg", "tbtc.svg", "terra-chain.svg", "venus.svg", "vesper-veth.svg", "zksync.svg"];
|
|
2151
2166
|
type LogoFileName = (typeof allLogoFileNames)[number];
|
|
2167
|
+
declare const allLogoNames: readonly ["zerox", "oneinch", "aavev2", "abracadabra", "alchemix", "anchor", "angle", "argent", "aura", "babylon", "badgerdao", "balancer", "bancor", "bancor", "beefy", "binance", "blockFi", "gelt", "centrifuge", "coinbase", "compoundv2", "convex", "convex", "convex", "crypto-com", "curve", "curve", "curve", "dydx", "ease", "enzyme", "enzyme", "eth", "euler", "fodl", "ftx", "gearbox", "gemini", "gmx", "goldfinch", "hodlnaut", "kraken", "ledn", "liquidcollective", "liquity", "makerdao", "mstable", "nested", "nexo", "notional-finance", "olympusdao", "opyn", "originusd", "pangolin", "perpetual", "pooltogether", "premia", "rari", "reflexer", "ribbon", "gnosis-safe", "tokensets", "tokensets", "sherlock", "stakedao", "stakewise", "stakewise", "sushiswap", "synthetix", "thorchain", "trader-joe", "uniswapv2", "uniswapv2", "vector", "vesper", "yearn", "yearn", "yeti", "yield-app", "alpaca", "wefi", "exactly", "etherfi", "squeeth-by-opyn", "rage-trade", "sentiment", "lyra", "perennial", "liquify", "lyra", "buffer-finance", "hook", "holyheld", "union-finance", "openq", "level-finance", "offramp", "aavev3", "morpho", "chorusone", "kiln", "vertex", "the-retail-mutual", "figment", "teller", "ajna", "eigenlayer", "vox", "mahalend", "self", "scallop", "wefi", "zktsunami", "hats", "makerdao-dsr", "spark-lending", "defi-edge", "stakewisev3", "compoundv3", "deprecated", "deprecated", "deprecated", "deprecated", "yearn", "velodrome2", "gmxv2", "dhedge", "term-finance", "pendle", "aerodrome", "hyperliquid", "maverick", "equilibria", "akropolis", "alpha-homora", "ampleforth", "arbitrum", "aurora", "avalanche", "bunnypancake", "celo", "celsius", "cowswap", "cronos", "dforce", "dodo", "element-finance", "fantom", "fuse", "gamma", "gnosis-multisig", "harmony", "heco", "homora", "idleDAIYield", "idleUSDTYield", "ironbank", "metis", "moonbeam", "mooniswap", "moonriver", "nexus-mutual", "nucypher", "ondo", "optimism", "pancakeswap", "polkadot", "polygon", "popsicle", "ren", "solana", "starkware", "tbtc", "terra-chain", "venus", "vesper-veth", "zksync"];
|
|
2168
|
+
type LogoName = (typeof allLogoNames)[number];
|
|
2152
2169
|
|
|
2153
2170
|
type Reserves = {
|
|
2154
2171
|
ethReserve: bigint;
|
|
@@ -2186,4 +2203,4 @@ declare const calculateSpotPrice: (reserves: Reserves) => {
|
|
|
2186
2203
|
spotPriceB: bigint;
|
|
2187
2204
|
};
|
|
2188
2205
|
|
|
2189
|
-
export { LogoFileName, Reserves, allLogoFileNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, productTypes, products };
|
|
2206
|
+
export { LogoFileName, LogoName, Reserves, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, productTypes, products };
|
package/dist/index.d.ts
CHANGED
|
@@ -2064,6 +2064,21 @@ var products = [
|
|
|
2064
2064
|
"DAI"
|
|
2065
2065
|
],
|
|
2066
2066
|
isPrivate: false
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
id: 132,
|
|
2070
|
+
name: "Equilibria",
|
|
2071
|
+
productType: 0,
|
|
2072
|
+
isDeprecated: false,
|
|
2073
|
+
useFixedPrice: false,
|
|
2074
|
+
logo: "equilibria.svg",
|
|
2075
|
+
metadata: {
|
|
2076
|
+
},
|
|
2077
|
+
coverAssets: [
|
|
2078
|
+
"ETH",
|
|
2079
|
+
"DAI"
|
|
2080
|
+
],
|
|
2081
|
+
isPrivate: false
|
|
2067
2082
|
}
|
|
2068
2083
|
];
|
|
2069
2084
|
|
|
@@ -2119,7 +2134,7 @@ var productTypes = [
|
|
|
2119
2134
|
},
|
|
2120
2135
|
{
|
|
2121
2136
|
id: 7,
|
|
2122
|
-
coverWordingURL: "https://api.nexusmutual.io/ipfs/
|
|
2137
|
+
coverWordingURL: "https://api.nexusmutual.io/ipfs/QmQfYgbBhyC3gJMvan9gbzUaZtd4Xy4gubEYfgTFKycBDZ",
|
|
2123
2138
|
name: "Sherlock Quota Share",
|
|
2124
2139
|
gracePeriod: 3024000,
|
|
2125
2140
|
claimMethod: 0
|
|
@@ -2147,8 +2162,10 @@ var productTypes = [
|
|
|
2147
2162
|
}
|
|
2148
2163
|
];
|
|
2149
2164
|
|
|
2150
|
-
declare const allLogoFileNames: readonly ["
|
|
2165
|
+
declare const allLogoFileNames: readonly ["zerox.svg", "oneinch.svg", "aavev2.svg", "abracadabra.svg", "alchemix.svg", "anchor.svg", "angle.svg", "argent.svg", "aura.svg", "babylon.svg", "badgerdao.svg", "balancer.svg", "bancor.svg", "bancor.svg", "beefy.svg", "binance.svg", "blockFi.svg", "gelt.svg", "centrifuge.svg", "coinbase.svg", "compoundv2.svg", "convex.svg", "convex.svg", "convex.svg", "crypto-com.svg", "curve.svg", "curve.svg", "curve.svg", "dydx.svg", "ease.svg", "enzyme.svg", "enzyme.svg", "eth.svg", "euler.svg", "fodl.svg", "ftx.svg", "gearbox.svg", "gemini.svg", "gmx.svg", "goldfinch.svg", "hodlnaut.svg", "kraken.svg", "ledn.svg", "liquidcollective.svg", "liquity.svg", "makerdao.svg", "mstable.svg", "nested.svg", "nexo.svg", "notional-finance.svg", "olympusdao.svg", "opyn.png", "originusd.svg", "pangolin.svg", "perpetual.svg", "pooltogether.svg", "premia.svg", "rari.svg", "reflexer.png", "ribbon.svg", "gnosis-safe.svg", "tokensets.svg", "tokensets.svg", "sherlock.svg", "stakedao.svg", "stakewise.svg", "stakewise.svg", "sushiswap.svg", "synthetix.svg", "thorchain.svg", "trader-joe.svg", "uniswapv2.svg", "uniswapv2.svg", "vector.svg", "vesper.svg", "yearn.svg", "yearn.svg", "yeti.png", "yield-app.svg", "alpaca.svg", "wefi.png", "exactly.svg", "etherfi.png", "squeeth-by-opyn.png", "rage-trade.svg", "sentiment.png", "lyra.svg", "perennial.jpeg", "liquify.svg", "lyra.svg", "buffer-finance.svg", "hook.jpeg", "holyheld.jpeg", "union-finance.svg", "openq.png", "level-finance.png", "offramp.png", "aavev3.svg", "morpho.svg", "chorusone.svg", "kiln.svg", "vertex.svg", "the-retail-mutual.png", "figment.svg", "teller.svg", "ajna.svg", "eigenlayer.png", "vox.png", "mahalend.svg", "self.svg", "scallop.svg", "wefi.png", "zktsunami.svg", "hats.svg", "makerdao-dsr.svg", "spark-lending.svg", "defi-edge.svg", "stakewisev3.svg", "compoundv3.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "yearn.svg", "velodrome2.svg", "gmxv2.svg", "dhedge.svg", "term-finance.png", "pendle.svg", "aerodrome.svg", "hyperliquid.svg", "maverick.svg", "equilibria.svg", "akropolis.svg", "alpha-homora.svg", "ampleforth.svg", "arbitrum.svg", "aurora.svg", "avalanche.svg", "bunnypancake.svg", "celo.svg", "celsius.svg", "cowswap.svg", "cronos.svg", "dforce.svg", "dodo.svg", "element-finance.svg", "fantom.svg", "fuse.svg", "gamma.svg", "gnosis-multisig.svg", "harmony.svg", "heco.svg", "homora.svg", "idleDAIYield.svg", "idleUSDTYield.svg", "ironbank.svg", "metis.svg", "moonbeam.svg", "mooniswap.svg", "moonriver.svg", "nexus-mutual.svg", "nucypher.svg", "ondo.svg", "optimism.svg", "pancakeswap.svg", "polkadot.svg", "polygon.svg", "popsicle.svg", "ren.svg", "solana.svg", "starkware.svg", "tbtc.svg", "terra-chain.svg", "venus.svg", "vesper-veth.svg", "zksync.svg"];
|
|
2151
2166
|
type LogoFileName = (typeof allLogoFileNames)[number];
|
|
2167
|
+
declare const allLogoNames: readonly ["zerox", "oneinch", "aavev2", "abracadabra", "alchemix", "anchor", "angle", "argent", "aura", "babylon", "badgerdao", "balancer", "bancor", "bancor", "beefy", "binance", "blockFi", "gelt", "centrifuge", "coinbase", "compoundv2", "convex", "convex", "convex", "crypto-com", "curve", "curve", "curve", "dydx", "ease", "enzyme", "enzyme", "eth", "euler", "fodl", "ftx", "gearbox", "gemini", "gmx", "goldfinch", "hodlnaut", "kraken", "ledn", "liquidcollective", "liquity", "makerdao", "mstable", "nested", "nexo", "notional-finance", "olympusdao", "opyn", "originusd", "pangolin", "perpetual", "pooltogether", "premia", "rari", "reflexer", "ribbon", "gnosis-safe", "tokensets", "tokensets", "sherlock", "stakedao", "stakewise", "stakewise", "sushiswap", "synthetix", "thorchain", "trader-joe", "uniswapv2", "uniswapv2", "vector", "vesper", "yearn", "yearn", "yeti", "yield-app", "alpaca", "wefi", "exactly", "etherfi", "squeeth-by-opyn", "rage-trade", "sentiment", "lyra", "perennial", "liquify", "lyra", "buffer-finance", "hook", "holyheld", "union-finance", "openq", "level-finance", "offramp", "aavev3", "morpho", "chorusone", "kiln", "vertex", "the-retail-mutual", "figment", "teller", "ajna", "eigenlayer", "vox", "mahalend", "self", "scallop", "wefi", "zktsunami", "hats", "makerdao-dsr", "spark-lending", "defi-edge", "stakewisev3", "compoundv3", "deprecated", "deprecated", "deprecated", "deprecated", "yearn", "velodrome2", "gmxv2", "dhedge", "term-finance", "pendle", "aerodrome", "hyperliquid", "maverick", "equilibria", "akropolis", "alpha-homora", "ampleforth", "arbitrum", "aurora", "avalanche", "bunnypancake", "celo", "celsius", "cowswap", "cronos", "dforce", "dodo", "element-finance", "fantom", "fuse", "gamma", "gnosis-multisig", "harmony", "heco", "homora", "idleDAIYield", "idleUSDTYield", "ironbank", "metis", "moonbeam", "mooniswap", "moonriver", "nexus-mutual", "nucypher", "ondo", "optimism", "pancakeswap", "polkadot", "polygon", "popsicle", "ren", "solana", "starkware", "tbtc", "terra-chain", "venus", "vesper-veth", "zksync"];
|
|
2168
|
+
type LogoName = (typeof allLogoNames)[number];
|
|
2152
2169
|
|
|
2153
2170
|
type Reserves = {
|
|
2154
2171
|
ethReserve: bigint;
|
|
@@ -2186,4 +2203,4 @@ declare const calculateSpotPrice: (reserves: Reserves) => {
|
|
|
2186
2203
|
spotPriceB: bigint;
|
|
2187
2204
|
};
|
|
2188
2205
|
|
|
2189
|
-
export { LogoFileName, Reserves, allLogoFileNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, productTypes, products };
|
|
2206
|
+
export { LogoFileName, LogoName, Reserves, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, productTypes, products };
|