@defisaver/positions-sdk 2.1.16 → 2.1.17

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/CLAUDE.md ADDED
@@ -0,0 +1,32 @@
1
+ # DeFiSaver Positions SDK
2
+
3
+ TypeScript SDK for DeFi positions tracking and management.
4
+
5
+ ## Commands
6
+
7
+ ```bash
8
+ # Development
9
+ npm run dev # Watch mode compilation
10
+ npm run build # Lint and build both CJS and ESM
11
+ npm run build:cjs # Build CommonJS
12
+ npm run build:esm # Build ES modules
13
+
14
+ # Linting
15
+ npm run lint # Lint and fix
16
+ npm run lint-check # Lint without fixing
17
+
18
+ # Testing
19
+ npm run test # Run all tests
20
+ npm run test-single # Run single test (use --name=filename)
21
+ npm run test:debugger # Run tests with debugger
22
+
23
+ # Versioning
24
+ npm run version-bump # Commit and bump patch version
25
+ ```
26
+
27
+ ## Project Structure
28
+
29
+ - `src/` - TypeScript source code
30
+ - `tests/` - Test files
31
+ - `esm/` - ES module build output
32
+ - `cjs/` - CommonJS build output
@@ -71006,6 +71006,9 @@ export declare const ETHPriceFeed: {
71006
71006
  readonly "42161": {
71007
71007
  readonly address: "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612";
71008
71008
  };
71009
+ readonly "9745": {
71010
+ readonly address: "0x43A7dd2125266c5c4c26EB86cd61241132426Fe7";
71011
+ };
71009
71012
  };
71010
71013
  };
71011
71014
  export declare const BTCPriceFeed: {
@@ -71415,6 +71418,9 @@ export declare const BTCPriceFeed: {
71415
71418
  readonly "42161": {
71416
71419
  readonly address: "0x6ce185860a4963106506C203335A2910413708e9";
71417
71420
  };
71421
+ readonly "9745": {
71422
+ readonly address: "0x3Bc5434dd1Fc6a1B68625e0269B9818cDd9E21B5";
71423
+ };
71418
71424
  };
71419
71425
  };
71420
71426
  export declare const USDCPriceFeed: {
@@ -75037,6 +75043,9 @@ export declare const DFSFeedRegistry: {
75037
75043
  readonly "42161": {
75038
75044
  readonly address: "0x158E27De8B5E5bC3FA1C6D5b365a291c54f6b0Fd";
75039
75045
  };
75046
+ readonly "9745": {
75047
+ readonly address: "0x2226836ec16FF5974dFD8DF740CD461B42FAffD5";
75048
+ };
75040
75049
  };
75041
75050
  };
75042
75051
  export declare const LlamaLendView: {
@@ -81995,6 +82004,9 @@ export declare const FluidView: {
81995
82004
  readonly "8453": {
81996
82005
  readonly address: "0x6cd4D6af4F292817eA2A2311F099dF26cd015028";
81997
82006
  };
82007
+ readonly "9745": {
82008
+ readonly address: "0x27C0BAe2338cE28097122393faF90375B9395dd1";
82009
+ };
81998
82010
  readonly "42161": {
81999
82011
  readonly address: "0xf9e6d5568887ac8eC6fA33B7eefD2A176A958e71";
82000
82012
  };
@@ -989,7 +989,8 @@ exports.ETHPriceFeed = {
989
989
  "1": { "address": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419" },
990
990
  "10": { "address": "0x13e3Ee699D1909E989722E753853AE30b17e08c5" },
991
991
  "8453": { "address": "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70" },
992
- "42161": { "address": "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612" }
992
+ "42161": { "address": "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612" },
993
+ "9745": { "address": "0x43A7dd2125266c5c4c26EB86cd61241132426Fe7" },
993
994
  },
994
995
  };
995
996
  exports.BTCPriceFeed = {
@@ -998,7 +999,8 @@ exports.BTCPriceFeed = {
998
999
  "1": { "address": "0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c" },
999
1000
  "10": { "address": "0xD702DD976Fb76Fffc2D3963D037dfDae5b04E593" },
1000
1001
  "8453": { "address": "0x64c911996D3c6aC71f9b455B1E8E7266BcbD848F" },
1001
- "42161": { "address": "0x6ce185860a4963106506C203335A2910413708e9" }
1002
+ "42161": { "address": "0x6ce185860a4963106506C203335A2910413708e9" },
1003
+ "9745": { "address": "0x3Bc5434dd1Fc6a1B68625e0269B9818cDd9E21B5" }
1002
1004
  },
1003
1005
  };
1004
1006
  exports.USDCPriceFeed = {
@@ -1066,7 +1068,8 @@ exports.DFSFeedRegistry = {
1066
1068
  "abi": [{ "inputs": [], "name": "NonContractCall", "type": "error" }, { "inputs": [], "name": "SenderNotAdmin", "type": "error" }, { "inputs": [], "name": "SenderNotOwner", "type": "error" }, { "inputs": [], "name": "adminVault", "outputs": [{ "internalType": "contract AdminVault", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "aggregators", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getFeed", "outputs": [{ "internalType": "address", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "kill", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestRoundData", "outputs": [{ "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "name": "setFeed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "bases", "type": "address[]" }, { "internalType": "address[]", "name": "quotes", "type": "address[]" }, { "internalType": "address[]", "name": "aggregator", "type": "address[]" }], "name": "setFeeds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "withdrawStuckFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }],
1067
1069
  "networks": {
1068
1070
  "8453": { "address": "0x7dFF34190d0307fC234fc7E8C152C9715083eB02" },
1069
- "42161": { "address": "0x158E27De8B5E5bC3FA1C6D5b365a291c54f6b0Fd" }
1071
+ "42161": { "address": "0x158E27De8B5E5bC3FA1C6D5b365a291c54f6b0Fd" },
1072
+ "9745": { "address": "0x2226836ec16FF5974dFD8DF740CD461B42FAffD5" }
1070
1073
  }
1071
1074
  };
1072
1075
  exports.LlamaLendView = {
@@ -1126,6 +1129,7 @@ exports.FluidView = {
1126
1129
  "networks": {
1127
1130
  "1": { "address": "0xc8df052bD7A8d76a34c09e758Dff3c6298C0115c" },
1128
1131
  "8453": { "address": "0x6cd4D6af4F292817eA2A2311F099dF26cd015028" },
1132
+ "9745": { "address": "0x27C0BAe2338cE28097122393faF90375B9395dd1" },
1129
1133
  "42161": { "address": "0xf9e6d5568887ac8eC6fA33B7eefD2A176A958e71" }
1130
1134
  }
1131
1135
  };