@nradko/metric-omm-sdk-v1 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +15 -3
package/README.md CHANGED
@@ -125,9 +125,10 @@ In the monorepo, run v1 tests with an isolated install (same pattern as v0):
125
125
 
126
126
  ```bash
127
127
  # from dev_sdk/
128
- npm install --no-workspaces --ignore-scripts --prefix packages/v1
129
- npm run sync:contracts --prefix packages/v1 # required before first test run
130
- npm test --prefix packages/v1
128
+ cd v1
129
+ npm ci
130
+ npm run sync:contracts # required before first test run
131
+ npm test
131
132
  ```
132
133
 
133
134
  ## Tests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nradko/metric-omm-sdk-v1",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Metric AMM SDK — v1 contracts (dev branch: Swapper, LiquidityAdder, add/removeLiquidity)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,9 +29,16 @@
29
29
  "sync:abis": "npm run sync:contracts && node ./scripts/sync-abis.mjs",
30
30
  "setup:contracts": "npm run init:submodules && npm run sync:abis",
31
31
  "prepare": "npm run build",
32
+ "pretest": "npm run init:submodules",
32
33
  "test": "hardhat test",
33
34
  "typecheck": "tsc --noEmit",
34
- "prepublishOnly": "npm run clean && npm run prepare"
35
+ "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\"",
36
+ "format": "prettier --write \"src/**/*.{ts,mjs}\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\"",
37
+ "format:check": "prettier --check \"src/**/*.{ts,mjs}\" \"scripts/**/*.{ts,mjs}\" \"test/**/*.ts\"",
38
+ "sync:versions:env": "node ./scripts/sync-versions-env.mjs",
39
+ "sync:versions:env:check": "node ./scripts/sync-versions-env.mjs --check",
40
+ "verify": "node ./scripts/verify.mjs",
41
+ "prepublishOnly": "npm run verify && npm run clean && npm run build"
35
42
  },
36
43
  "keywords": [
37
44
  "metric",
@@ -55,12 +62,17 @@
55
62
  "viem": "^2.x"
56
63
  },
57
64
  "devDependencies": {
65
+ "@eslint/js": "^10.0.1",
58
66
  "@metric/core": "github:Metric-OMM/metric-core#1e450c7c30085606edf462eac8af80816153d443",
59
67
  "@metric/periphery": "github:Metric-OMM/metric-periphery#ca248f3a753807868ab8ade8910e5e24ce0a73d2",
60
68
  "hardhat": "^3.0.17",
61
69
  "@nomicfoundation/hardhat-network-helpers": "^3.0.3",
62
70
  "@nomicfoundation/hardhat-node-test-runner": "^3.0.7",
63
71
  "@nomicfoundation/hardhat-viem": "^3.0.1",
64
- "typescript": "~5.8.0"
72
+ "eslint": "^10.1.0",
73
+ "globals": "^17.4.0",
74
+ "prettier": "^3.8.1",
75
+ "typescript": "~5.8.0",
76
+ "typescript-eslint": "^8.58.0"
65
77
  }
66
78
  }