@defisaver/positions-sdk 2.1.22-dev-savings-4 → 2.1.23-dev-sena
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/.mocharc.json +4 -4
- package/.nvmrc +1 -1
- package/README.md +64 -64
- package/cjs/claiming/ethena.d.ts +3 -0
- package/cjs/claiming/ethena.js +73 -0
- package/cjs/config/contracts.d.ts +0 -149
- package/cjs/config/contracts.js +1 -15
- package/cjs/contracts.d.ts +0 -1344
- package/cjs/contracts.js +1 -20
- package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
- package/cjs/index.d.ts +1 -2
- package/cjs/index.js +1 -3
- package/cjs/portfolio/index.js +26 -0
- package/cjs/types/claiming.d.ts +6 -2
- package/cjs/types/claiming.js +1 -0
- package/cjs/types/index.d.ts +0 -1
- package/cjs/types/index.js +0 -1
- package/esm/claiming/ethena.d.ts +3 -0
- package/esm/claiming/ethena.js +65 -0
- package/esm/config/contracts.d.ts +0 -149
- package/esm/config/contracts.js +0 -14
- package/esm/contracts.d.ts +0 -1344
- package/esm/contracts.js +0 -17
- package/esm/helpers/morphoBlueHelpers/index.js +66 -66
- package/esm/index.d.ts +1 -2
- package/esm/index.js +1 -2
- package/esm/portfolio/index.js +26 -0
- package/esm/types/claiming.d.ts +6 -2
- package/esm/types/claiming.js +1 -0
- package/esm/types/index.d.ts +0 -1
- package/esm/types/index.js +0 -1
- package/package.json +47 -48
- package/src/aaveV2/index.ts +240 -240
- package/src/aaveV3/index.ts +614 -614
- package/src/aaveV3/merit.ts +97 -97
- package/src/aaveV3/merkl.ts +74 -74
- package/src/claiming/aaveV3.ts +154 -154
- package/src/claiming/compV3.ts +22 -22
- package/src/claiming/ethena.ts +67 -0
- package/src/claiming/index.ts +12 -12
- package/src/claiming/king.ts +66 -66
- package/src/claiming/morphoBlue.ts +118 -118
- package/src/claiming/spark.ts +225 -225
- package/src/compoundV2/index.ts +244 -244
- package/src/compoundV3/index.ts +274 -274
- package/src/config/contracts.ts +1259 -1273
- package/src/constants/index.ts +10 -10
- package/src/contracts.ts +121 -141
- package/src/curveUsd/index.ts +254 -254
- package/src/eulerV2/index.ts +324 -324
- package/src/exchange/index.ts +25 -25
- package/src/fluid/index.ts +1774 -1774
- package/src/helpers/aaveHelpers/index.ts +187 -187
- package/src/helpers/compoundHelpers/index.ts +283 -283
- package/src/helpers/curveUsdHelpers/index.ts +40 -40
- package/src/helpers/eulerHelpers/index.ts +222 -222
- package/src/helpers/fluidHelpers/index.ts +326 -326
- package/src/helpers/index.ts +10 -10
- package/src/helpers/liquityV2Helpers/index.ts +82 -82
- package/src/helpers/llamaLendHelpers/index.ts +53 -53
- package/src/helpers/makerHelpers/index.ts +52 -52
- package/src/helpers/morphoBlueHelpers/index.ts +396 -396
- package/src/helpers/sparkHelpers/index.ts +158 -158
- package/src/index.ts +47 -49
- package/src/liquity/index.ts +159 -159
- package/src/liquityV2/index.ts +703 -703
- package/src/llamaLend/index.ts +305 -305
- package/src/maker/index.ts +223 -223
- package/src/markets/aave/index.ts +116 -116
- package/src/markets/aave/marketAssets.ts +54 -54
- package/src/markets/compound/index.ts +238 -238
- package/src/markets/compound/marketsAssets.ts +97 -97
- package/src/markets/curveUsd/index.ts +69 -69
- package/src/markets/euler/index.ts +26 -26
- package/src/markets/fluid/index.ts +2900 -2900
- package/src/markets/index.ts +25 -25
- package/src/markets/liquityV2/index.ts +102 -102
- package/src/markets/llamaLend/contractAddresses.ts +141 -141
- package/src/markets/llamaLend/index.ts +235 -235
- package/src/markets/morphoBlue/index.ts +971 -971
- package/src/markets/spark/index.ts +29 -29
- package/src/markets/spark/marketAssets.ts +12 -12
- package/src/moneymarket/moneymarketCommonService.ts +84 -84
- package/src/morphoBlue/index.ts +274 -274
- package/src/portfolio/index.ts +598 -572
- package/src/services/priceService.ts +278 -278
- package/src/services/utils.ts +115 -115
- package/src/services/viem.ts +34 -34
- package/src/setup.ts +8 -8
- package/src/spark/index.ts +456 -456
- package/src/staking/eligibility.ts +53 -53
- package/src/staking/index.ts +1 -1
- package/src/staking/staking.ts +183 -183
- package/src/types/aave.ts +189 -189
- package/src/types/claiming.ts +114 -109
- package/src/types/common.ts +107 -107
- package/src/types/compound.ts +136 -136
- package/src/types/curveUsd.ts +123 -123
- package/src/types/euler.ts +175 -175
- package/src/types/fluid.ts +483 -483
- package/src/types/index.ts +14 -15
- package/src/types/liquity.ts +30 -30
- package/src/types/liquityV2.ts +126 -126
- package/src/types/llamaLend.ts +159 -159
- package/src/types/maker.ts +63 -63
- package/src/types/merit.ts +1 -1
- package/src/types/merkl.ts +70 -70
- package/src/types/morphoBlue.ts +200 -200
- package/src/types/portfolio.ts +60 -60
- package/src/types/spark.ts +133 -133
- package/src/umbrella/index.ts +69 -69
- package/src/umbrella/umbrellaUtils.ts +29 -29
- package/cjs/savings/index.d.ts +0 -6
- package/cjs/savings/index.js +0 -68
- package/cjs/savings/morphoVaults/index.d.ts +0 -7
- package/cjs/savings/morphoVaults/index.js +0 -118
- package/cjs/savings/morphoVaults/options.d.ts +0 -16
- package/cjs/savings/morphoVaults/options.js +0 -99
- package/cjs/savings/yearnVaults/index.d.ts +0 -7
- package/cjs/savings/yearnVaults/index.js +0 -97
- package/cjs/savings/yearnVaults/options.d.ts +0 -6
- package/cjs/savings/yearnVaults/options.js +0 -26
- package/cjs/types/savings/index.d.ts +0 -13
- package/cjs/types/savings/index.js +0 -18
- package/cjs/types/savings/morphoVaults.d.ts +0 -22
- package/cjs/types/savings/morphoVaults.js +0 -19
- package/cjs/types/savings/yearnVaults.d.ts +0 -11
- package/cjs/types/savings/yearnVaults.js +0 -9
- package/esm/savings/index.d.ts +0 -6
- package/esm/savings/index.js +0 -30
- package/esm/savings/morphoVaults/index.d.ts +0 -7
- package/esm/savings/morphoVaults/index.js +0 -77
- package/esm/savings/morphoVaults/options.d.ts +0 -16
- package/esm/savings/morphoVaults/options.js +0 -95
- package/esm/savings/yearnVaults/index.d.ts +0 -7
- package/esm/savings/yearnVaults/index.js +0 -56
- package/esm/savings/yearnVaults/options.d.ts +0 -6
- package/esm/savings/yearnVaults/options.js +0 -22
- package/esm/types/savings/index.d.ts +0 -13
- package/esm/types/savings/index.js +0 -2
- package/esm/types/savings/morphoVaults.d.ts +0 -22
- package/esm/types/savings/morphoVaults.js +0 -16
- package/esm/types/savings/yearnVaults.d.ts +0 -11
- package/esm/types/savings/yearnVaults.js +0 -6
- package/src/savings/index.ts +0 -35
- package/src/savings/morphoVaults/index.ts +0 -81
- package/src/savings/morphoVaults/options.ts +0 -110
- package/src/savings/yearnVaults/index.ts +0 -58
- package/src/savings/yearnVaults/options.ts +0 -27
- package/src/types/savings/index.ts +0 -16
- package/src/types/savings/morphoVaults.ts +0 -24
- package/src/types/savings/yearnVaults.ts +0 -13
package/esm/contracts.js
CHANGED
|
@@ -45,22 +45,6 @@ export const createViemContractFromConfigFunc = (name, _address) => (client, net
|
|
|
45
45
|
client,
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
export const getMorphoVaultContractViem = (client, address) => {
|
|
49
|
-
const abi = getConfigContractAbi('MorphoVault');
|
|
50
|
-
return getContract({
|
|
51
|
-
address,
|
|
52
|
-
abi,
|
|
53
|
-
client,
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
export const getYearnVaultContractViem = (client, address) => {
|
|
57
|
-
const abi = getConfigContractAbi('YearnVault');
|
|
58
|
-
return getContract({
|
|
59
|
-
address,
|
|
60
|
-
abi,
|
|
61
|
-
client,
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
48
|
export const MorphoBlueViewContractViem = createViemContractFromConfigFunc('MorphoBlueView');
|
|
65
49
|
export const AaveLoanInfoV2ContractViem = createViemContractFromConfigFunc('AaveLoanInfoV2');
|
|
66
50
|
export const AaveV3ViewContractViem = createViemContractFromConfigFunc('AaveV3View');
|
|
@@ -105,4 +89,3 @@ export const SparkRewardsControllerViem = createViemContractFromConfigFunc('Spar
|
|
|
105
89
|
export const AaveRewardsControllerViem = createViemContractFromConfigFunc('AaveRewardsController');
|
|
106
90
|
export const LiquityV2sBoldVaultViem = createViemContractFromConfigFunc('LiquityV2sBoldVault');
|
|
107
91
|
export const StkAAVEViem = createViemContractFromConfigFunc('StkAAVE');
|
|
108
|
-
export const YearnViewContractViem = createViemContractFromConfigFunc('YearnView');
|
|
@@ -118,73 +118,73 @@ export const getApyAfterValuesEstimation = (selectedMarket, actions, provider, n
|
|
|
118
118
|
return { borrowRate, supplyRate };
|
|
119
119
|
});
|
|
120
120
|
const API_URL = 'https://blue-api.morpho.org/graphql';
|
|
121
|
-
const MARKET_QUERY = `
|
|
122
|
-
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
123
|
-
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
124
|
-
reallocatableLiquidityAssets
|
|
125
|
-
targetBorrowUtilization
|
|
126
|
-
loanAsset {
|
|
127
|
-
address
|
|
128
|
-
decimals
|
|
129
|
-
priceUsd
|
|
130
|
-
}
|
|
131
|
-
state {
|
|
132
|
-
liquidityAssets
|
|
133
|
-
borrowAssets
|
|
134
|
-
supplyAssets
|
|
135
|
-
}
|
|
136
|
-
publicAllocatorSharedLiquidity {
|
|
137
|
-
assets
|
|
138
|
-
vault {
|
|
139
|
-
address
|
|
140
|
-
name
|
|
141
|
-
}
|
|
142
|
-
allocationMarket {
|
|
143
|
-
uniqueKey
|
|
144
|
-
loanAsset {
|
|
145
|
-
address
|
|
146
|
-
}
|
|
147
|
-
collateralAsset {
|
|
148
|
-
address
|
|
149
|
-
}
|
|
150
|
-
irmAddress
|
|
151
|
-
oracle {
|
|
152
|
-
address
|
|
153
|
-
}
|
|
154
|
-
lltv
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
loanAsset {
|
|
158
|
-
address
|
|
159
|
-
}
|
|
160
|
-
collateralAsset {
|
|
161
|
-
address
|
|
162
|
-
}
|
|
163
|
-
oracle {
|
|
164
|
-
address
|
|
165
|
-
}
|
|
166
|
-
irmAddress
|
|
167
|
-
lltv
|
|
168
|
-
}
|
|
169
|
-
}
|
|
121
|
+
const MARKET_QUERY = `
|
|
122
|
+
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
123
|
+
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
124
|
+
reallocatableLiquidityAssets
|
|
125
|
+
targetBorrowUtilization
|
|
126
|
+
loanAsset {
|
|
127
|
+
address
|
|
128
|
+
decimals
|
|
129
|
+
priceUsd
|
|
130
|
+
}
|
|
131
|
+
state {
|
|
132
|
+
liquidityAssets
|
|
133
|
+
borrowAssets
|
|
134
|
+
supplyAssets
|
|
135
|
+
}
|
|
136
|
+
publicAllocatorSharedLiquidity {
|
|
137
|
+
assets
|
|
138
|
+
vault {
|
|
139
|
+
address
|
|
140
|
+
name
|
|
141
|
+
}
|
|
142
|
+
allocationMarket {
|
|
143
|
+
uniqueKey
|
|
144
|
+
loanAsset {
|
|
145
|
+
address
|
|
146
|
+
}
|
|
147
|
+
collateralAsset {
|
|
148
|
+
address
|
|
149
|
+
}
|
|
150
|
+
irmAddress
|
|
151
|
+
oracle {
|
|
152
|
+
address
|
|
153
|
+
}
|
|
154
|
+
lltv
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
loanAsset {
|
|
158
|
+
address
|
|
159
|
+
}
|
|
160
|
+
collateralAsset {
|
|
161
|
+
address
|
|
162
|
+
}
|
|
163
|
+
oracle {
|
|
164
|
+
address
|
|
165
|
+
}
|
|
166
|
+
irmAddress
|
|
167
|
+
lltv
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
170
|
`;
|
|
171
|
-
const REWARDS_QUERY = `
|
|
172
|
-
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
173
|
-
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
174
|
-
uniqueKey
|
|
175
|
-
state {
|
|
176
|
-
rewards {
|
|
177
|
-
amountPerSuppliedToken
|
|
178
|
-
supplyApr
|
|
179
|
-
amountPerBorrowedToken
|
|
180
|
-
borrowApr
|
|
181
|
-
asset {
|
|
182
|
-
address
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
171
|
+
const REWARDS_QUERY = `
|
|
172
|
+
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
173
|
+
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
174
|
+
uniqueKey
|
|
175
|
+
state {
|
|
176
|
+
rewards {
|
|
177
|
+
amountPerSuppliedToken
|
|
178
|
+
supplyApr
|
|
179
|
+
amountPerBorrowedToken
|
|
180
|
+
borrowApr
|
|
181
|
+
asset {
|
|
182
|
+
address
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
188
|
`;
|
|
189
189
|
/**
|
|
190
190
|
* Get reallocatable liquidity to a given market and target borrow utilization
|
package/esm/index.d.ts
CHANGED
|
@@ -19,6 +19,5 @@ import * as llamaLend from './llamaLend';
|
|
|
19
19
|
import * as eulerV2 from './eulerV2';
|
|
20
20
|
import * as portfolio from './portfolio';
|
|
21
21
|
import * as claiming from './claiming';
|
|
22
|
-
import * as savings from './savings';
|
|
23
22
|
export * from './types';
|
|
24
|
-
export { aaveV2, aaveV3, compoundV2, compoundV3, spark, curveUsd, liquity, liquityV2, maker, exchange, staking, moneymarket, markets, helpers, morphoBlue, llamaLend, eulerV2, fluid, portfolio, claiming,
|
|
23
|
+
export { aaveV2, aaveV3, compoundV2, compoundV3, spark, curveUsd, liquity, liquityV2, maker, exchange, staking, moneymarket, markets, helpers, morphoBlue, llamaLend, eulerV2, fluid, portfolio, claiming, };
|
package/esm/index.js
CHANGED
|
@@ -19,6 +19,5 @@ import * as llamaLend from './llamaLend';
|
|
|
19
19
|
import * as eulerV2 from './eulerV2';
|
|
20
20
|
import * as portfolio from './portfolio';
|
|
21
21
|
import * as claiming from './claiming';
|
|
22
|
-
import * as savings from './savings';
|
|
23
22
|
export * from './types';
|
|
24
|
-
export { aaveV2, aaveV3, compoundV2, compoundV3, spark, curveUsd, liquity, liquityV2, maker, exchange, staking, moneymarket, markets, helpers, morphoBlue, llamaLend, eulerV2, fluid, portfolio, claiming,
|
|
23
|
+
export { aaveV2, aaveV3, compoundV2, compoundV3, spark, curveUsd, liquity, liquityV2, maker, exchange, staking, moneymarket, markets, helpers, morphoBlue, llamaLend, eulerV2, fluid, portfolio, claiming, };
|
package/esm/portfolio/index.js
CHANGED
|
@@ -33,6 +33,7 @@ import { getCompoundV3Rewards } from '../claiming/compV3';
|
|
|
33
33
|
import { fetchSparkAirdropRewards, fetchSparkRewards } from '../claiming/spark';
|
|
34
34
|
import { fetchMorphoBlueRewards } from '../claiming/morphoBlue';
|
|
35
35
|
import { getKingRewards } from '../claiming/king';
|
|
36
|
+
import { fetchEthenaAirdropRewards } from '../claiming/ethena';
|
|
36
37
|
export function getPortfolioData(provider, network, defaultProvider, addresses, summerFiAddresses) {
|
|
37
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
39
|
const isMainnet = network === NetworkNumber.Eth;
|
|
@@ -133,6 +134,7 @@ export function getPortfolioData(provider, network, defaultProvider, addresses,
|
|
|
133
134
|
spk: {},
|
|
134
135
|
king: {},
|
|
135
136
|
morpho: {},
|
|
137
|
+
ethena: {},
|
|
136
138
|
};
|
|
137
139
|
}
|
|
138
140
|
yield Promise.allSettled([
|
|
@@ -389,6 +391,30 @@ export function getPortfolioData(provider, network, defaultProvider, addresses,
|
|
|
389
391
|
}
|
|
390
392
|
}
|
|
391
393
|
}))(),
|
|
394
|
+
(() => __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
try {
|
|
396
|
+
if (!isMainnet) {
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
const ethenaAirdropRewards = yield fetchEthenaAirdropRewards(addresses);
|
|
400
|
+
for (const address of addresses) {
|
|
401
|
+
const lowerAddress = address.toLowerCase();
|
|
402
|
+
rewardsData[lowerAddress].ethena = {
|
|
403
|
+
error: '',
|
|
404
|
+
data: ethenaAirdropRewards[lowerAddress] || [],
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
catch (error) {
|
|
409
|
+
console.error('Error fetching Ethena Airdrop rewards data:', error);
|
|
410
|
+
for (const address of addresses) {
|
|
411
|
+
rewardsData[address.toLowerCase()].ethena = {
|
|
412
|
+
error: 'Error fetching Ethena Airdrop rewards data in batch',
|
|
413
|
+
data: null,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}))(),
|
|
392
418
|
]);
|
|
393
419
|
yield Promise.all([
|
|
394
420
|
...aaveV3Markets.map((market) => allAddresses.map((address) => __awaiter(this, void 0, void 0, function* () {
|
package/esm/types/claiming.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export declare enum ClaimType {
|
|
|
15
15
|
/** Spark Airdrop */
|
|
16
16
|
SPARK_AIRDROP = "SPARK_AIRDROP",
|
|
17
17
|
/** Spark Airdrop */
|
|
18
|
-
SPARK_WST_ETH_REWARDS = "SPARK_WST_ETH_REWARDS"
|
|
18
|
+
SPARK_WST_ETH_REWARDS = "SPARK_WST_ETH_REWARDS",// TODO: This will be removed once we fully refactor spark rewards
|
|
19
|
+
ETHENA_AIRDROP = "ETHENA_AIRDROP"
|
|
19
20
|
}
|
|
20
21
|
type _ClaimableTokenPartial = {
|
|
21
22
|
symbol: string;
|
|
@@ -89,5 +90,8 @@ export type SparkAirdropClaimableToken = _ClaimableTokenPartial & {
|
|
|
89
90
|
export type SparkWstEthRewardsClaimableToken = _ClaimableTokenPartial & {
|
|
90
91
|
claimType: ClaimType.SPARK_WST_ETH_REWARDS;
|
|
91
92
|
};
|
|
92
|
-
export type
|
|
93
|
+
export type EthenaAirdropClaimableToken = _ClaimableTokenPartial & {
|
|
94
|
+
claimType: ClaimType.ETHENA_AIRDROP;
|
|
95
|
+
};
|
|
96
|
+
export type ClaimableToken = AaveRewardsClaimableToken | AaveMeritRewardsClaimableToken | CompoundV3CompClaimableToken | MorphoClaimableToken | SparkRewardsClaimableToken | KingRewardsClaimableToken | SparkAirdropClaimableToken | SparkWstEthRewardsClaimableToken | EthenaAirdropClaimableToken;
|
|
93
97
|
export {};
|
package/esm/types/claiming.js
CHANGED
|
@@ -16,6 +16,7 @@ export var ClaimType;
|
|
|
16
16
|
ClaimType["SPARK_AIRDROP"] = "SPARK_AIRDROP";
|
|
17
17
|
/** Spark Airdrop */
|
|
18
18
|
ClaimType["SPARK_WST_ETH_REWARDS"] = "SPARK_WST_ETH_REWARDS";
|
|
19
|
+
ClaimType["ETHENA_AIRDROP"] = "ETHENA_AIRDROP";
|
|
19
20
|
})(ClaimType || (ClaimType = {}));
|
|
20
21
|
export var SparkAirdropType;
|
|
21
22
|
(function (SparkAirdropType) {
|
package/esm/types/index.d.ts
CHANGED
package/esm/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@defisaver/positions-sdk",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "./cjs/index.js",
|
|
6
|
-
"module": "./esm/index.js",
|
|
7
|
-
"types": "./esm/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build:esm": "rm -rf esm && tsc -p tsconfig.esm.json",
|
|
10
|
-
"build:cjs": "rm -rf cjs && tsc -p tsconfig.cjs.json",
|
|
11
|
-
"build": "npm run lint && npm run build:cjs && npm run build:esm",
|
|
12
|
-
"dev": "tsc -p tsconfig.json --watch",
|
|
13
|
-
"lint": "eslint src/ --fix",
|
|
14
|
-
"lint-check": "eslint src/",
|
|
15
|
-
"test": "mocha tests/*",
|
|
16
|
-
"test-single": "mocha ./tests/$npm_config_name.ts",
|
|
17
|
-
"test:debugger": "mocha --inspect-brk tests/*",
|
|
18
|
-
"version-bump": "git commit -am \"Version bump to $(npm version patch | cut -c 2-)\""
|
|
19
|
-
},
|
|
20
|
-
"keywords": [],
|
|
21
|
-
"author": "",
|
|
22
|
-
"license": "ISC",
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@defisaver/tokens": "
|
|
25
|
-
"@types/lodash": "^4.17.15",
|
|
26
|
-
"@types/memoizee": "^0.4.12",
|
|
27
|
-
"decimal.js": "^10.6.0",
|
|
28
|
-
"lodash": "^4.17.21",
|
|
29
|
-
"memoizee": "^0.4.17",
|
|
30
|
-
"viem": "^2.37.9"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"@
|
|
35
|
-
"@metamask/eth-json-rpc-
|
|
36
|
-
"@
|
|
37
|
-
"@types/
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@defisaver/positions-sdk",
|
|
3
|
+
"version": "2.1.23-dev-sena",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./cjs/index.js",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"types": "./esm/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build:esm": "rm -rf esm && tsc -p tsconfig.esm.json",
|
|
10
|
+
"build:cjs": "rm -rf cjs && tsc -p tsconfig.cjs.json",
|
|
11
|
+
"build": "npm run lint && npm run build:cjs && npm run build:esm",
|
|
12
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
13
|
+
"lint": "eslint src/ --fix",
|
|
14
|
+
"lint-check": "eslint src/",
|
|
15
|
+
"test": "mocha tests/*",
|
|
16
|
+
"test-single": "mocha ./tests/$npm_config_name.ts",
|
|
17
|
+
"test:debugger": "mocha --inspect-brk tests/*",
|
|
18
|
+
"version-bump": "git commit -am \"Version bump to $(npm version patch | cut -c 2-)\""
|
|
19
|
+
},
|
|
20
|
+
"keywords": [],
|
|
21
|
+
"author": "",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@defisaver/tokens": "1.7.12-dev-sena",
|
|
25
|
+
"@types/lodash": "^4.17.15",
|
|
26
|
+
"@types/memoizee": "^0.4.12",
|
|
27
|
+
"decimal.js": "^10.6.0",
|
|
28
|
+
"lodash": "^4.17.21",
|
|
29
|
+
"memoizee": "^0.4.17",
|
|
30
|
+
"viem": "^2.37.9"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@defisaver/eslint-config": "^1.0.1",
|
|
34
|
+
"@metamask/eth-json-rpc-middleware": "^15.0.1",
|
|
35
|
+
"@metamask/eth-json-rpc-provider": "^4.1.6",
|
|
36
|
+
"@types/chai": "^5.0.0",
|
|
37
|
+
"@types/mocha": "^10.0.9",
|
|
38
|
+
"chai": "^4.3.8",
|
|
39
|
+
"dotenv": "^16.3.1",
|
|
40
|
+
"eslint": "^8.49.0",
|
|
41
|
+
"eslint-plugin-import": "^2.31.0",
|
|
42
|
+
"mocha": "^10.2.0",
|
|
43
|
+
"nock": "^14.0.0",
|
|
44
|
+
"ts-node": "^10.9.2",
|
|
45
|
+
"typescript": "^5.2.2"
|
|
46
|
+
}
|
|
47
|
+
}
|