Skip to content

Commit 5236388

Browse files
vbrvkkrboktvdm3chrharutyunyan
authored
chore: aqua doc mvp (#8)
* chore: aqua doc mvp * chore: cleanup aqua sdk * wip swapvm docs * Update package.json * Update README.md * chore: cleanup events * Update swapped-event.ts * fix(tests): SwapVmProgram import * chore(release): - project: sdk-core 1.0.2 * chore: add consistent-type-imports rule for native esm modules support * chore: cleanup * Remove eslint-config-standard dev dependency * Modernize Aqua README examples - Switch examples to viem wallet client with env-based keys and hex validation - Remove "monorepo" and "nx" keywords from package.json - Add test:e2e script to package.json - Rename anvil container prefix in swap-vm tests * fix: maker traits (#9) * fix: maker traits * chore: lint * chore: remove forge std * maker traits update * update abi * chore: add Order tests/docs * Feat/taker traits (#10) * feat(PT4-566): adjust taker traits * feat(PT3-566): adjustments in taker traits * chore: rename `to` to `customReceiver` --------- Co-authored-by: Vladimir Borovik <[email protected]> * chore: deadline ix --------- Co-authored-by: Vladimir Borovik <[email protected]> --------- Co-authored-by: Kirill Kuznetcov <[email protected]> Co-authored-by: Dmitry Chepurovskiy <[email protected]> Co-authored-by: Radik Harutyunyan <[email protected]>
1 parent 99e79d5 commit 5236388

File tree

140 files changed

+2451
-3073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+2451
-3073
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# @1inch/sdks - multi-language SDKs monorepo
2+
3+
This repository contains a collection of 1inch Protocol SDKs.
4+
5+
## 📁 Project structure
6+
7+
```
8+
sdks/
9+
├── typescript/ # TypeScript SDKs
10+
│ ├── aqua/ # Aqua Protocol SDK
11+
│ ├── cross-chain/ # Cross-chain Protocol SDK
12+
│ ├── fusion/ # Fusion Protocol SDK
13+
│ ├── limit-order/ # Limit Order Protocol SDK
14+
│ ├── sdk-core/ # Shared core among all sdks
15+
│ └── swap-vm/ # Swap VM SDK
16+
├── rust/ # Rust SDKs (future)
17+
└── python/ # Python SDKs (future)
18+
```
19+
20+
## 🚀 Getting Started
21+
22+
### Prerequisites
23+
24+
- Node.js >= 22.0.0
25+
- pnpm >= 10.0.0
26+
- Foundry/Forge (for contract compilation)
27+
28+
### Installation
29+
30+
```bash
31+
# Install dependencies
32+
pnpm install
33+
34+
# Build Solidity contracts (required for tests and linting)
35+
pnpm build:contracts
36+
```

package.json

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,77 +15,44 @@
1515
"build": "nx run-many -t build",
1616
"build:contracts": "forge build",
1717
"test": "nx run-many -t test",
18+
"test:e2e": "nx run-many -t test:e2e",
1819
"lint": "nx run-many -t lint",
1920
"lint:fix": "nx run-many -t lint --fix",
2021
"lint:types": "nx run-many -t type-check",
2122
"format": "nx format:write",
2223
"format:check": "nx format:check",
2324
"clean": "nx run-many -t clean && rimraf node_modules dist .nx",
2425
"reset": "nx reset",
25-
"changelog:generate": "changelog generate -a",
26-
"aqua:build": "nx build aqua",
27-
"aqua:test": "nx test aqua",
28-
"aqua:test:e2e": "nx test:e2e aqua",
29-
"aqua:lint": "nx lint aqua",
30-
"aqua:lint:fix": "nx lint aqua --fix",
31-
"cross-chain:build": "nx build cross-chain",
32-
"cross-chain:test": "nx test cross-chain",
33-
"cross-chain:lint": "nx lint cross-chain",
34-
"cross-chain:lint:fix": "nx lint cross-chain --fix",
35-
"fusion:build": "nx build fusion",
36-
"fusion:test": "nx test fusion",
37-
"fusion:lint": "nx lint fusion",
38-
"fusion:lint:fix": "nx lint fusion --fix",
39-
"limit-order:build": "nx build limit-order",
40-
"limit-order:test": "nx test limit-order",
41-
"limit-order:lint": "nx lint limit-order",
42-
"limit-order:lint:fix": "nx lint limit-order --fix",
43-
"sdk-core:build": "nx build sdk-core",
44-
"sdk-core:test": "nx test sdk-core",
45-
"sdk-core:lint": "nx lint sdk-core",
46-
"sdk-core:lint:fix": "nx lint sdk-core --fix",
47-
"swap-vm:build": "nx build swap-vm",
48-
"swap-vm:test": "nx test swap-vm",
49-
"swap-vm:lint": "nx lint swap-vm",
50-
"swap-vm:lint:fix": "nx lint swap-vm --fix",
51-
"test:publish:aqua": "./scripts/test-publish-local.sh aqua",
52-
"test:publish:cross-chain": "./scripts/test-publish-local.sh cross-chain",
53-
"test:publish:fusion": "./scripts/test-publish-local.sh fusion",
54-
"test:publish:limit-order": "./scripts/test-publish-local.sh limit-order",
55-
"test:publish:swap-vm": "./scripts/test-publish-local.sh swap-vm",
5626
"test:workflows": "act -l",
5727
"clean:graph": "rm -rf dist/graphs static *-graph.html"
5828
},
5929
"keywords": [
6030
"1inch",
6131
"sdk",
62-
"monorepo",
63-
"nx",
6432
"typescript",
6533
"defi",
6634
"protocol"
6735
],
6836
"author": "@1inch",
69-
"license": "MIT",
7037
"repository": {
7138
"type": "git",
7239
"url": "ssh://[email protected]:1inch/sdks.git"
7340
},
7441
"engines": {
7542
"node": ">=22.0.0",
76-
"pnpm": ">=8.0.0"
43+
"pnpm": ">=10.0.0"
7744
},
78-
"packageManager": "pnpm@10.19.0",
45+
"packageManager": "pnpm@10.22.0",
7946
"volta": {
8047
"node": "22.13.1"
8148
},
8249
"dependencies": {
8350
"@1inch/byte-utils": "3.0.0"
8451
},
8552
"devDependencies": {
86-
"@1inch/aqua": "github:1inch/aqua",
53+
"@1inch/aqua": "github:1inch/aqua#a7eb2858d76aee98e697be602601ca28ca19c697",
8754
"@1inch/eslint-config": "^3.0.8",
88-
"@1inch/swap-vm": "github:1inch/swap-vm#893aecb201b292f703ff0c7226c755a21b4a5b1c",
55+
"@1inch/swap-vm": "github:1inch/swap-vm",
8956
"@1inch/tsconfig": "^1.0.12",
9057
"@nx/devkit": "^22.0.3",
9158
"@nx/eslint": "^22.0.3",
@@ -99,15 +66,13 @@
9966
"@vitest/coverage-v8": "^3.2.4",
10067
"eslint": "^9.39.1",
10168
"eslint-config-prettier": "^10.1.8",
102-
"eslint-config-standard": "^17.1.0",
10369
"eslint-import-resolver-typescript": "^4.4.4",
10470
"eslint-plugin-import": "^2.32.0",
10571
"eslint-plugin-n": "^17.23.1",
10672
"eslint-plugin-prettier": "^5.5.4",
10773
"eslint-plugin-promise": "^7.2.1",
10874
"eslint-plugin-unicorn": "^59.0.1",
10975
"eslint-plugin-unused-imports": "^4.3.0",
110-
"generate-changelog": "^1.8.0",
11176
"nx": "^22.0.3",
11277
"prettier": "^3.6.2",
11378
"testcontainers": "11.7.2",

0 commit comments

Comments
 (0)