This repository was archived by the owner on Jul 20, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 2.16 KB
/
Copy pathpackage.json
File metadata and controls
80 lines (80 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"name": "onlyswaps-js",
"version": "1.0.8",
"description": "A client for crosschain token swaps using only swaps",
"keywords": [
"dcipher",
"onlyswaps",
"usdt",
"evm",
"threshold",
"swaps",
"crosschain",
"stablecoin",
"defi"
],
"homepage": "https://github.com/randa-mu/onlyswaps-js#readme",
"bugs": {
"url": "https://github.com/randa-mu/onlyswaps-js/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/randa-mu/onlyswaps-js.git"
},
"license": "MIT",
"author": "Randamu",
"source": "src/index.ts",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/cjs/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/esm/index.mjs"
}
}
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "npm run clean && npm run build:solidity && npm run build:esm && npm run build:cjs && npm run build:types",
"build:esm": "esbuild src/index.ts --bundle --platform=browser --format=esm --outdir=dist/esm --sourcemap --target=es2020 --out-extension:.js=.mjs",
"build:cjs": "esbuild src/index.ts --bundle --platform=node --format=cjs --outdir=dist/cjs --sourcemap --target=es2020 --out-extension:.js=.cjs",
"build:solidity": "(cd onlyswaps-solidity && npm ci && npm run build)",
"build:types": "tsc",
"clean": "rm -rf dist",
"lint": "eslint src",
"lint:fix": "eslint --fix",
"test": "jest ./test/*.test.ts --update-snapshot"
},
"engines": {
"node": ">= 22.0.0"
},
"devDependencies": {
"@jest/globals": "^30.0.3",
"@types/decimal.js": "^0.0.32",
"@types/jest": "^30.0.0",
"@types/node": "^24.0.4",
"dotenv": "^16.6.1",
"esbuild": "^0.25.5",
"eslint": "^9.29.0",
"jest": "^30.0.3",
"ts-jest": "^29.4.0",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.35.0"
},
"dependencies": {
"abitype": "^1.1.1",
"decimal.js": "^10.6.0",
"viem": "^2.38.2",
"zod": "^3.25.76"
}
}