@panoptic-eng/sdk 1.0.5 → 1.0.6
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/LICENSE +21 -0
- package/dist/cow/index.d.ts +5 -0
- package/dist/cow/index.js +5 -0
- package/dist/cow/types.d.ts +4 -0
- package/dist/cow/types.js +0 -0
- package/dist/cow-Dy-Cd09v.js +1405 -0
- package/dist/cow-Dy-Cd09v.js.map +1 -0
- package/dist/index-BuJcj5aO.d.ts +275 -0
- package/dist/index-BuJcj5aO.d.ts.map +1 -0
- package/dist/index-DVMjZi1E.d.ts +1801 -0
- package/dist/index-DVMjZi1E.d.ts.map +1 -0
- package/dist/index.d.ts +4222 -2177
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2345 -5532
- package/dist/index.js.map +1 -1
- package/dist/irm-CBrX8bjH.js +2375 -0
- package/dist/irm-CBrX8bjH.js.map +1 -0
- package/dist/irm-CGykVo3q.d.ts +32 -0
- package/dist/irm-CGykVo3q.d.ts.map +1 -0
- package/dist/irm-zWjtffWA.d.ts +85 -0
- package/dist/irm-zWjtffWA.d.ts.map +1 -0
- package/dist/panoptic/v2/index.d.ts +3972 -4004
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +7074 -9212
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/types/index.d.ts +3 -0
- package/dist/panoptic/v2/types/index.js +0 -0
- package/dist/{rates-D-7EWaPS.js → position-FxaZi608.js} +7246 -5375
- package/dist/position-FxaZi608.js.map +1 -0
- package/dist/router-gzYGM1OO.js +1012 -0
- package/dist/router-gzYGM1OO.js.map +1 -0
- package/dist/types-BQejAFnu.d.ts +245 -0
- package/dist/types-BQejAFnu.d.ts.map +1 -0
- package/dist/types-CRvvn2ce.d.ts +128 -0
- package/dist/types-CRvvn2ce.d.ts.map +1 -0
- package/dist/uniswap/index.d.ts +291 -0
- package/dist/uniswap/index.d.ts.map +1 -0
- package/dist/uniswap/index.js +5 -0
- package/dist/writes-CVCD6Ers.js +4302 -0
- package/dist/writes-CVCD6Ers.js.map +1 -0
- package/package.json +17 -5
- package/dist/rates-BQ91Bbn6.d.ts +0 -38
- package/dist/rates-BQ91Bbn6.d.ts.map +0 -1
- package/dist/rates-D-7EWaPS.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panoptic-eng/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/panoptic-labs/panoptic-sdk.git"
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"types": "./dist/panoptic/v2/index.d.ts",
|
|
20
20
|
"import": "./dist/panoptic/v2/index.js"
|
|
21
21
|
},
|
|
22
|
+
"./uniswap": {
|
|
23
|
+
"types": "./dist/uniswap/index.d.ts",
|
|
24
|
+
"import": "./dist/uniswap/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./cow": {
|
|
27
|
+
"types": "./dist/cow/index.d.ts",
|
|
28
|
+
"import": "./dist/cow/index.js"
|
|
29
|
+
},
|
|
22
30
|
"./test": {
|
|
23
31
|
"types": "./dist/test/index.d.ts",
|
|
24
32
|
"import": "./dist/test/index.js"
|
|
@@ -28,8 +36,10 @@
|
|
|
28
36
|
"dist"
|
|
29
37
|
],
|
|
30
38
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
39
|
+
"check:no-src-dts": "node ./scripts/check-no-src-dts.mjs",
|
|
40
|
+
"clean:tsbuildinfo": "node -e \"require('fs').rmSync('tsconfig.tsbuildinfo',{force:true})\"",
|
|
41
|
+
"build": "pnpm run check:no-src-dts && pnpm run clean:tsbuildinfo && pnpm run codegen:graphql && node ./scripts/tsdown-with-retry.mjs",
|
|
42
|
+
"build:ci": "pnpm run check:no-src-dts && pnpm run clean:tsbuildinfo && pnpm run codegen && pnpm tsdown",
|
|
33
43
|
"dev": "pnpm concurrently \"pnpm run codegen:graphql --watch\" \"pnpm tsdown --watch\"",
|
|
34
44
|
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
35
45
|
"lint": "eslint . --ext .ts,.tsx --ignore-pattern 'dist/**' --ignore-pattern 'graphql/**' --ignore-pattern 'src/graphql/**' --ignore-pattern 'lib/**' --max-warnings=0",
|
|
@@ -39,13 +49,15 @@
|
|
|
39
49
|
"test:fork:watch": "vitest watch --config src/panoptic/v2/examples/__tests__/vitest.config.fork.ts",
|
|
40
50
|
"test:examples": "pnpm test && pnpm test:fork",
|
|
41
51
|
"codegen": "pnpm run codegen:graphql && pnpm run codegen:wagmi",
|
|
42
|
-
"codegen:graphql": "graphql-codegen
|
|
43
|
-
"codegen:wagmi": "wagmi generate",
|
|
52
|
+
"codegen:graphql": "node ./scripts/run-graphql-codegen.mjs",
|
|
53
|
+
"codegen:wagmi": "wagmi generate && eslint src/generated.ts --fix",
|
|
44
54
|
"sync-contracts": "./scripts/sync-contracts.sh",
|
|
55
|
+
"gen:xstock-wrappers": "tsx scripts/gen-xstock-wrappers.ts",
|
|
45
56
|
"prepack": "pnpm build",
|
|
46
57
|
"prepublishOnly": "pnpm build"
|
|
47
58
|
},
|
|
48
59
|
"dependencies": {
|
|
60
|
+
"@panoptic-eng/deployments": "workspace:*",
|
|
49
61
|
"graphql": "^16.12.0",
|
|
50
62
|
"graphql-request": "^7.3.1",
|
|
51
63
|
"graphql-tag": "^2.12.6",
|
package/dist/rates-BQ91Bbn6.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region src/panoptic/v2/formatters/rates.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Per-second rate helpers.
|
|
4
|
-
*
|
|
5
|
-
* Collateral tracker rates are returned as WAD-scaled per-second rates.
|
|
6
|
-
* These helpers annualize them for display.
|
|
7
|
-
*
|
|
8
|
-
* @module v2/formatters/rates
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Annualize a per-second WAD-scaled rate to annual WAD.
|
|
12
|
-
*
|
|
13
|
-
* @param ratePerSecondWad - Rate in WAD per second
|
|
14
|
-
* @returns Annualized rate in WAD
|
|
15
|
-
*/
|
|
16
|
-
declare function annualizePerSecondRateWad(ratePerSecondWad: bigint): bigint;
|
|
17
|
-
/**
|
|
18
|
-
* Format a per-second WAD rate as APY percentage text.
|
|
19
|
-
* Uses linear annualization, then formats as WAD percent.
|
|
20
|
-
*
|
|
21
|
-
* @param ratePerSecondWad - Rate in WAD per second
|
|
22
|
-
* @param precision - Decimal places
|
|
23
|
-
* @returns Percentage string, e.g. "2.41%"
|
|
24
|
-
*/
|
|
25
|
-
declare function formatPerSecondRateWadAsApyPct(ratePerSecondWad: bigint, precision: bigint): string;
|
|
26
|
-
/**
|
|
27
|
-
* Format a per-second WAD rate as APR percentage text.
|
|
28
|
-
* For this rate model, APR presentation uses the same annualized output.
|
|
29
|
-
*
|
|
30
|
-
* @param ratePerSecondWad - Rate in WAD per second
|
|
31
|
-
* @param precision - Decimal places
|
|
32
|
-
* @returns Percentage string, e.g. "2.41%"
|
|
33
|
-
*/
|
|
34
|
-
declare function formatPerSecondRateWadAsAprPct(ratePerSecondWad: bigint, precision: bigint): string;
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { annualizePerSecondRateWad as annualizePerSecondRateWad$1, formatPerSecondRateWadAsAprPct as formatPerSecondRateWadAsAprPct$1, formatPerSecondRateWadAsApyPct as formatPerSecondRateWadAsApyPct$1 };
|
|
38
|
-
//# sourceMappingURL=rates-BQ91Bbn6.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rates-BQ91Bbn6.d.ts","names":["annualizePerSecondRateWad","formatPerSecondRateWadAsApyPct","formatPerSecondRateWadAsAprPct"],"sources":["../src/panoptic/v2/formatters/rates.d.ts"],"sourcesContent":null,"mappings":";;;;;;;;;;;;;;;iBAcwBA,yBAAAA;AAAxB;;;;;;;;iBASwBC,8BAAAA;AAAxB;;;;;;;;iBASwBC,8BAAAA"}
|