@pear-protocol/utils 0.8.0 → 0.8.1
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/position/key.d.ts +3 -0
- package/package.json +2 -2
package/dist/position/key.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ type PositionKeyInput = {
|
|
|
10
10
|
* no side — same-asset positions therefore produce the SAME key, which is
|
|
11
11
|
* exactly what the active-position unique index relies on and what makes the
|
|
12
12
|
* apply UPSERT find-or-create the single correct target.
|
|
13
|
+
*
|
|
14
|
+
* PHASE-1 LEG ID WARNING: `symbols` must be instrument ids
|
|
15
|
+
* (`leg.id ?? leg.symbol`, or exposure keys). A phase-3 ticker here re-hashes and orphans every position.
|
|
13
16
|
*/
|
|
14
17
|
export declare function generateDeterministicPositionKey(input: PositionKeyInput): string;
|
|
15
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pear-protocol/utils",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Pear Protocol Utility functions",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@noble/hashes": "^1.3.2",
|
|
30
|
-
"@pear-protocol/types": "^1.
|
|
30
|
+
"@pear-protocol/types": "^1.32.0",
|
|
31
31
|
"@scure/base": "^2.3.0",
|
|
32
32
|
"bignumber.js": "9.3.1"
|
|
33
33
|
},
|