Skip to content

Commit fb118f0

Browse files
authored
Merge pull request #356 from streamflow-finance/feat/vx-simplify-apis
Feat/vx simplify apis
2 parents 2d4651e + 1d8adda commit fb118f0

86 files changed

Lines changed: 4570 additions & 751 deletions

File tree

Some content is hidden

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

.cursor/rules/general.mdc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
description: Streamflow JS SDK project conventions and structure
3+
globs:
4+
alwaysApply: true
5+
---
6+
7+
# Streamflow JS SDK
8+
9+
This project reads `AGENTS.md` at the repository root for full project context, conventions, commands, and anti-patterns. See also `CODESTYLE.md` for detailed formatting and TypeScript rules.
10+
11+
## Cursor-specific
12+
13+
- Use `pnpm` for all package operations (not npm, not yarn)
14+
- Before considering work done: `pnpm lint && pnpm tsc:lint`
15+
- Run `pnpm test` to verify changes (Vitest, zero-config)
16+
- Do not hand-edit files in `packages/*/solana/descriptor/` — they are auto-generated Anchor IDLs
17+
- All Solana BN conversions must use `getBN()` / `getNumberFromBN()` from `@streamflow/common`

.github/workflows/version-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
cache: "pnpm"
2222
- name: 📂 Install dependencies
2323
run: pnpm install
24+
- name: ✨ Prettier
25+
run: pnpm format:check
2426
- name: 📦 Build packages
2527
run: pnpm build
2628
- name: 🧪 Run Tests

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ yarn-error.log*
77

88
# Dependency directories
99
node_modules/
10+
1011
# dotenv environment variables file
1112
.env
1213

1314
target/
15+
dist/
16+
/local/
17+
1418
.idea/
1519
.gitattributes
1620

17-
dist/
18-
/local/
1921
.DS_Store
2022
packages/.DS_Store
2123
*.tgz
@@ -26,4 +28,7 @@ docs/
2628
vite.config.ts.timestamp-*
2729
vite.config.js.timestamp-*
2830

29-
scripts/local
31+
scripts/local
32+
33+
# agents
34+
.sisyphus

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
. "$(dirname -- "$0")/_/husky.sh"
44

5+
pnpm exec lint-staged
56
pnpm lint --parallel

.huskyrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.lintstagedrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.md
2-
pnpm-lock.yaml
2+
pnpm-lock.yaml
3+
**/descriptor/**

.superset/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"setup": ["pnpm install"],
3+
"teardown": [],
4+
"run": ["pnpm build"]
5+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
{
2-
"prettier.requireConfig": false,
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"[typescript]": {
5+
"editor.defaultFormatter": "esbenp.prettier-vscode"
6+
},
7+
"[javascript]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
},
10+
"[json]": {
11+
"editor.defaultFormatter": "esbenp.prettier-vscode"
12+
},
13+
"[jsonc]": {
14+
"editor.defaultFormatter": "esbenp.prettier-vscode"
15+
},
16+
"[yaml]": {
17+
"editor.defaultFormatter": "esbenp.prettier-vscode"
18+
},
19+
"prettier.requireConfig": true,
320
"eslint.enable": true,
421
"eslint.debug": false,
522
"eslint.workingDirectories": [
@@ -8,15 +25,7 @@
825
"pattern": "./packages/*/"
926
}
1027
],
11-
"cSpell.words": [
12-
"Blockhash",
13-
"lamports",
14-
"merkle",
15-
"permissionless",
16-
"Solana",
17-
"Streamflow",
18-
"Unstake"
19-
],
28+
"cSpell.words": ["Blockhash", "lamports", "merkle", "permissionless", "Solana", "Streamflow", "Unstake"],
2029
"typescript.tsdk": "node_modules/typescript/lib",
2130
"javascript.preferences.importModuleSpecifierEnding": "js",
2231
"typescript.preferences.importModuleSpecifierEnding": "js",

0 commit comments

Comments
 (0)