@neutral-trade/sdk 0.4.18 → 1.0.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.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@neutral-trade/sdk",
3
3
  "type": "module",
4
- "version": "0.4.18",
5
- "description": "SDK for Neutral Trade vaults",
4
+ "version": "1.0.1",
5
+ "description": "Neutral Trade vault registry and Codama-generated ntbundle client for @solana/kit",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/neutral-trade/sdk#readme",
8
8
  "repository": {
@@ -10,11 +10,19 @@
10
10
  "url": "git+https://github.com/neutral-trade/sdk.git"
11
11
  },
12
12
  "bugs": "https://github.com/neutral-trade/sdk/issues",
13
- "keywords": [],
13
+ "keywords": [
14
+ "solana",
15
+ "neutral-trade",
16
+ "ntbundle",
17
+ "sdk",
18
+ "codama",
19
+ "solana-kit"
20
+ ],
14
21
  "sideEffects": false,
15
22
  "exports": {
16
23
  ".": "./dist/index.mjs",
17
- "./internal": "./dist/internal.mjs",
24
+ "./generated": "./dist/generated/index.mjs",
25
+ "./idl": "./dist/idl/index.mjs",
18
26
  "./package.json": "./package.json"
19
27
  },
20
28
  "main": "./dist/index.mjs",
@@ -23,23 +31,26 @@
23
31
  "files": [
24
32
  "dist"
25
33
  ],
34
+ "engines": {
35
+ "node": ">=20"
36
+ },
37
+ "peerDependencies": {
38
+ "@solana/kit": "^6.10.0"
39
+ },
26
40
  "dependencies": {
27
- "@coral-xyz/anchor": "0.32.0",
28
- "@solana/spl-token": "^0.4.14",
29
- "@solana/web3.js": "^1.98.4",
30
- "@types/bn.js": "^5.2.0",
31
- "bn.js": "^5.2.3",
41
+ "@solana/program-client-core": "^6.10.0",
32
42
  "zod": "^4.3.5"
33
43
  },
34
44
  "devDependencies": {
35
45
  "@antfu/eslint-config": "^6.6.1",
36
46
  "@antfu/ni": "^28.0.0",
37
47
  "@antfu/utils": "^9.3.0",
38
- "@coral-xyz/anchor": "0.32.0",
39
- "@solana/web3.js": "^1.98.4",
48
+ "@solana/kit": "^6.10.0",
49
+ "@types/chai": "^5.2.2",
40
50
  "@types/node": "^25.0.1",
41
51
  "baseline-browser-mapping": "^2.10.27",
42
52
  "bumpp": "^10.3.2",
53
+ "chai": "^5.2.0",
43
54
  "dotenv": "^17.2.3",
44
55
  "eslint": "^9.39.2",
45
56
  "lint-staged": "^16.2.7",
@@ -53,8 +64,7 @@
53
64
  "vite": "^7.2.7",
54
65
  "vitest": "^4.0.15",
55
66
  "vitest-package-exports": "^0.1.1",
56
- "yaml": "^2.8.2",
57
- "zod": "^4.3.5"
67
+ "yaml": "^2.8.2"
58
68
  },
59
69
  "simple-git-hooks": {
60
70
  "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
@@ -63,17 +73,14 @@
63
73
  "*.{js,cjs,mjs,ts,mts,cts,tsx,jsx}": "eslint --fix"
64
74
  },
65
75
  "scripts": {
66
- "generate": "tsx scripts/generate-vault-ids.ts",
76
+ "cli": "pnpm --filter @neutral-trade/cli dev --",
77
+ "generate": "node --import tsx scripts/generate-vault-ids.ts",
67
78
  "prebuild": "pnpm generate",
68
79
  "build": "tsdown",
69
80
  "dev": "tsdown --watch",
70
81
  "lint": "eslint",
71
82
  "release": "bumpp",
72
83
  "start": "tsx src/index.ts",
73
- "example:devnet:deposit": "tsx examples/devnet-deposit.ts",
74
- "example:devnet:withdraw": "tsx examples/devnet-withdraw.ts",
75
- "example:api:deposit": "tsx examples/api-deposit.ts",
76
- "example:api:withdraw": "tsx examples/api-withdraw.ts",
77
84
  "test": "vitest",
78
85
  "typecheck": "tsc",
79
86
  "docs:build": "typedoc",
@@ -1,2 +0,0 @@
1
- import { a as initNeutralTradeCore, c as BuildBundleRequestWithdrawInstructionCoreParams, d as buildBundleRequestWithdrawInstructionWithVault, i as getBundleProgramForVault, l as buildBundleDepositInstructionsWithVault, n as buildDepositInstructionsForVaultId, o as BuildBundleDepositInstructionsCoreParams, r as buildRequestWithdrawInstructionForVaultId, s as BuildBundleRequestSwitchInstructionCoreParams, t as NeutralTradeCoreContext, u as buildBundleRequestSwitchInstructionWithVault } from "./neutral-trade-core-CtFKbCrr.mjs";
2
- export { type BuildBundleDepositInstructionsCoreParams, type BuildBundleRequestSwitchInstructionCoreParams, type BuildBundleRequestWithdrawInstructionCoreParams, type NeutralTradeCoreContext, buildBundleDepositInstructionsWithVault, buildBundleRequestSwitchInstructionWithVault, buildBundleRequestWithdrawInstructionWithVault, buildDepositInstructionsForVaultId, buildRequestWithdrawInstructionForVaultId, getBundleProgramForVault, initNeutralTradeCore };
package/dist/internal.mjs DELETED
@@ -1,3 +0,0 @@
1
- import { c as buildBundleDepositInstructionsWithVault, i as initNeutralTradeCore, l as buildBundleRequestSwitchInstructionWithVault, n as buildRequestWithdrawInstructionForVaultId, r as getBundleProgramForVault, t as buildDepositInstructionsForVaultId, u as buildBundleRequestWithdrawInstructionWithVault } from "./neutral-trade-core-D0QhHaLD.mjs";
2
-
3
- export { buildBundleDepositInstructionsWithVault, buildBundleRequestSwitchInstructionWithVault, buildBundleRequestWithdrawInstructionWithVault, buildDepositInstructionsForVaultId, buildRequestWithdrawInstructionForVaultId, getBundleProgramForVault, initNeutralTradeCore };