@jpool/bond-sdk 0.0.1-next.0 → 0.1.0-next.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/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0-next.1 (2025-09-19)
4
+
5
+ ### 🌟 Features
6
+
7
+ * basic validator bond history implemented. WIP ([dfa5517](https://github.com/mfactory-lab/jbond/commit/dfa5517218dd44e672da3e62e8f363c3b33d9513))
8
+ * bond client & config update ([dc72fa4](https://github.com/mfactory-lab/jbond/commit/dc72fa45b90d2a0163b73a523159fc73a933825a))
9
+ * getHistory implemented ([90c2831](https://github.com/mfactory-lab/jbond/commit/90c2831c07c6dce4169e629824834b2ef1f1e1be))
10
+ * global refactoring & client improvements, tests update with client usage ([fcb6bca](https://github.com/mfactory-lab/jbond/commit/fcb6bcaaebb1c7f1222292f87c010ffdbe7eafa7))
11
+ * withdraw collateral & claim compensation introduced ([34256fe](https://github.com/mfactory-lab/jbond/commit/34256feebafea6eab351b87dbf273bf98a89e6e4))
12
+
13
+ ### 🐞 Bug Fixes
14
+
15
+ * code reformat ([d027fdd](https://github.com/mfactory-lab/jbond/commit/d027fddcbdcbcf8feb308da0ba2d8994c3b4ddd3))
16
+ * eslint ([4ad5fac](https://github.com/mfactory-lab/jbond/commit/4ad5face4ade6c431e8dd5bfab8d70ae026d4f1a))
17
+ * export program id, main src ([785fe3a](https://github.com/mfactory-lab/jbond/commit/785fe3aae031f2b38a34828d37053228d0355633))
18
+ * import reserve address ([05290fe](https://github.com/mfactory-lab/jbond/commit/05290fe253c859b51b68f262b5410b377f353bb3))
19
+ * remove dotenv ([63bc4a6](https://github.com/mfactory-lab/jbond/commit/63bc4a623ed897113f09813b95221d4f3110e770))
20
+ * sdk, imports, provider, add pnpm ([c2b1a64](https://github.com/mfactory-lab/jbond/commit/c2b1a646912b47b5901bfde436116b4817df1012))
21
+ * update sorting methods and improve error handling in transaction processing ([20a62d4](https://github.com/mfactory-lab/jbond/commit/20a62d4d1ee4ae2f773edb38b2bfcc134a46af1d))
package/package.json CHANGED
@@ -1,29 +1,16 @@
1
1
  {
2
2
  "name": "@jpool/bond-sdk",
3
- "version": "0.0.1-next.0",
3
+ "version": "0.1.0-next.1",
4
4
  "description": "JBond SDK for interacting with the Solana program",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/mfactory-lab/jloop.git",
7
+ "url": "https://github.com/mfactory-lab/jbond.git",
8
8
  "directory": "packages/sdk"
9
9
  },
10
10
  "sideEffects": false,
11
11
  "main": "./dist/index.js",
12
12
  "module": "./dist/index.mjs",
13
13
  "types": "./dist/index.d.ts",
14
- "peerDependencies": {
15
- "@coral-xyz/anchor": "^0.31.0",
16
- "@solana/web3.js": "^1.98.0"
17
- },
18
- "dependencies": {
19
- "@coral-xyz/anchor": "^0.31.0",
20
- "@solana/web3.js": "^1.98.0",
21
- "bs58": "^6.0.0",
22
- "dotenv": "^17.2.1"
23
- },
24
- "devDependencies": {
25
- "release-it-config": "0.0.1"
26
- },
27
14
  "scripts": {
28
15
  "build": "tsup",
29
16
  "dev": "tsup --watch",
@@ -32,5 +19,14 @@
32
19
  "release:ci": "release-it --ci -VV",
33
20
  "release:dry": "release-it --ci --dry-run",
34
21
  "release:pre": "release-it --preRelease=next"
22
+ },
23
+ "dependencies": {
24
+ "@coral-xyz/anchor": "^0.31.0",
25
+ "@solana/web3.js": "^1.98.0",
26
+ "bs58": "^6.0.0"
27
+ },
28
+ "devDependencies": {
29
+ "dotenv": "^17.2.1",
30
+ "release-it-config": "workspace:*"
35
31
  }
36
- }
32
+ }
package/src/config.ts CHANGED
@@ -1,14 +1,10 @@
1
1
  import type { Config } from './types'
2
2
  import { readFileSync } from 'node:fs'
3
3
  import { Keypair, PublicKey } from '@solana/web3.js'
4
- import dotenv from 'dotenv'
5
4
  import { PROGRAM_ID, RESERVE_ADDRESS } from './common'
6
5
 
7
- dotenv.config()
8
-
9
6
  export function loadConfig(): Config {
10
- const rpcUrl
11
- = process.env.SOLANA_RPC_URL || 'https://api.devnet.solana.com'
7
+ const rpcUrl = process.env.SOLANA_RPC_URL || 'https://api.devnet.solana.com'
12
8
  const programId = new PublicKey(
13
9
  PROGRAM_ID || '4a3YovKEfm4jWhczCzJciHXL1xVkXWfGQjRCaMft7M4G',
14
10
  )
@@ -704,4 +704,4 @@
704
704
  }
705
705
  }
706
706
  ]
707
- }
707
+ }