@pioneer-platform/solana-network 8.19.0 → 8.21.0

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.
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @pioneer-platform/solana-network@8.19.0 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/coins/solana/solana-network
3
+ > @pioneer-platform/solana-network@8.21.0 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/coins/solana/solana-network
4
4
  > tsc -p .
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @pioneer-platform/solana-network
2
2
 
3
+ ## 8.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - chore: feat(e2e): add --blue and --production flags to pioneer-sdk test
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @pioneer-platform/pioneer-nodes@8.33.0
13
+
14
+ ## 8.20.0
15
+
16
+ ### Minor Changes
17
+
18
+ - feat(e2e): add --blue and --production flags to pioneer-sdk test
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+ - @pioneer-platform/pioneer-nodes@8.32.0
24
+
3
25
  ## 8.19.0
4
26
 
5
27
  ### Minor Changes
package/lib/index.js CHANGED
@@ -76,8 +76,8 @@ var getSolanaNode = function () {
76
76
  log.warn(TAG, 'No NowNodes API key found, using fallback endpoint');
77
77
  return "https://api.mainnet-beta.solana.com";
78
78
  }
79
- // No longer need to replace {API_KEY} in URL - auth is header-based
80
- return solNode.service;
79
+ // Replace {API_KEY} placeholder with actual API key for NOWNodes
80
+ return solNode.service.replace('{API_KEY}', apiKey);
81
81
  };
82
82
  var DEFAULT_RPC_URL = getSolanaNode();
83
83
  // Helper to get request headers with API key for NowNodes
@@ -270,6 +270,7 @@ function get_balance(address) {
270
270
  return [4 /*yield*/, axios({
271
271
  url: rpcUrl,
272
272
  method: 'POST',
273
+ headers: getHeaders(),
273
274
  data: {
274
275
  "jsonrpc": "2.0",
275
276
  "id": 1,
@@ -313,6 +314,7 @@ function get_account_info(address) {
313
314
  return [4 /*yield*/, axios({
314
315
  url: rpcUrl,
315
316
  method: 'POST',
317
+ headers: getHeaders(),
316
318
  data: {
317
319
  "jsonrpc": "2.0",
318
320
  "id": 1,
@@ -355,6 +357,7 @@ function get_recent_blockhash() {
355
357
  return [4 /*yield*/, axios({
356
358
  url: rpcUrl,
357
359
  method: 'POST',
360
+ headers: getHeaders(),
358
361
  data: {
359
362
  "jsonrpc": "2.0",
360
363
  "id": 1,
@@ -392,6 +395,7 @@ function broadcast_transaction(tx) {
392
395
  return [4 /*yield*/, axios({
393
396
  url: rpcUrl,
394
397
  method: 'POST',
398
+ headers: getHeaders(),
395
399
  data: {
396
400
  "jsonrpc": "2.0",
397
401
  "id": 1,
@@ -442,6 +446,7 @@ function get_transaction(signature) {
442
446
  return [4 /*yield*/, axios({
443
447
  url: rpcUrl,
444
448
  method: 'POST',
449
+ headers: getHeaders(),
445
450
  data: {
446
451
  "jsonrpc": "2.0",
447
452
  "id": 1,
@@ -536,6 +541,7 @@ function estimate_fee() {
536
541
  return [4 /*yield*/, axios({
537
542
  url: rpcUrl,
538
543
  method: 'POST',
544
+ headers: getHeaders(),
539
545
  data: {
540
546
  "jsonrpc": "2.0",
541
547
  "id": 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/solana-network",
3
- "version": "8.19.0",
3
+ "version": "8.21.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "description": "Pioneer Platform Solana Network module",
@@ -14,7 +14,7 @@
14
14
  "@solana/web3.js": "^1.95.0",
15
15
  "axios": "^1.6.0",
16
16
  "dotenv": "^16.0.0",
17
- "@pioneer-platform/pioneer-nodes": "8.31.0",
17
+ "@pioneer-platform/pioneer-nodes": "8.33.0",
18
18
  "@pioneer-platform/loggerdog": "8.11.0"
19
19
  },
20
20
  "devDependencies": {