@pioneer-platform/pioneer-sdk 8.15.19 → 8.15.21

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/dist/index.cjs CHANGED
@@ -3403,6 +3403,38 @@ async function getFees(pioneer, networkId) {
3403
3403
  raw: { hardcoded: true, reason: "DOGE fee estimation unreliable" }
3404
3404
  };
3405
3405
  }
3406
+ if (networkId === "bip122:4da631f2ac1bed857bd968c67c913978") {
3407
+ console.log(tag, "Using hardcoded fees for DigiByte: 100 sat/byte minimum (min relay: 22,600 sats)");
3408
+ return {
3409
+ slow: {
3410
+ label: "Economy",
3411
+ value: "100",
3412
+ unit: "sat/byte",
3413
+ description: "Minimum relay fee - 30+ minutes",
3414
+ estimatedTime: "~30 minutes",
3415
+ priority: "low"
3416
+ },
3417
+ average: {
3418
+ label: "Standard",
3419
+ value: "120",
3420
+ unit: "sat/byte",
3421
+ description: "Normal priority - 10-20 minutes",
3422
+ estimatedTime: "~15 minutes",
3423
+ priority: "medium"
3424
+ },
3425
+ fastest: {
3426
+ label: "Priority",
3427
+ value: "150",
3428
+ unit: "sat/byte",
3429
+ description: "High priority - next block",
3430
+ estimatedTime: "~5 minutes",
3431
+ priority: "high"
3432
+ },
3433
+ networkId,
3434
+ networkType: "UTXO",
3435
+ raw: { hardcoded: true, reason: "DGB has high minimum relay fee requirement (22,600 sats)" }
3436
+ };
3437
+ }
3406
3438
  let feeResponse;
3407
3439
  if (networkId === "bip122:000007d91d1254d60e2dd1ae58038307") {
3408
3440
  try {
package/dist/index.es.js CHANGED
@@ -3587,6 +3587,38 @@ async function getFees(pioneer, networkId) {
3587
3587
  raw: { hardcoded: true, reason: "DOGE fee estimation unreliable" }
3588
3588
  };
3589
3589
  }
3590
+ if (networkId === "bip122:4da631f2ac1bed857bd968c67c913978") {
3591
+ console.log(tag, "Using hardcoded fees for DigiByte: 100 sat/byte minimum (min relay: 22,600 sats)");
3592
+ return {
3593
+ slow: {
3594
+ label: "Economy",
3595
+ value: "100",
3596
+ unit: "sat/byte",
3597
+ description: "Minimum relay fee - 30+ minutes",
3598
+ estimatedTime: "~30 minutes",
3599
+ priority: "low"
3600
+ },
3601
+ average: {
3602
+ label: "Standard",
3603
+ value: "120",
3604
+ unit: "sat/byte",
3605
+ description: "Normal priority - 10-20 minutes",
3606
+ estimatedTime: "~15 minutes",
3607
+ priority: "medium"
3608
+ },
3609
+ fastest: {
3610
+ label: "Priority",
3611
+ value: "150",
3612
+ unit: "sat/byte",
3613
+ description: "High priority - next block",
3614
+ estimatedTime: "~5 minutes",
3615
+ priority: "high"
3616
+ },
3617
+ networkId,
3618
+ networkType: "UTXO",
3619
+ raw: { hardcoded: true, reason: "DGB has high minimum relay fee requirement (22,600 sats)" }
3620
+ };
3621
+ }
3590
3622
  let feeResponse;
3591
3623
  if (networkId === "bip122:000007d91d1254d60e2dd1ae58038307") {
3592
3624
  try {
package/dist/index.js CHANGED
@@ -3587,6 +3587,38 @@ async function getFees(pioneer, networkId) {
3587
3587
  raw: { hardcoded: true, reason: "DOGE fee estimation unreliable" }
3588
3588
  };
3589
3589
  }
3590
+ if (networkId === "bip122:4da631f2ac1bed857bd968c67c913978") {
3591
+ console.log(tag, "Using hardcoded fees for DigiByte: 100 sat/byte minimum (min relay: 22,600 sats)");
3592
+ return {
3593
+ slow: {
3594
+ label: "Economy",
3595
+ value: "100",
3596
+ unit: "sat/byte",
3597
+ description: "Minimum relay fee - 30+ minutes",
3598
+ estimatedTime: "~30 minutes",
3599
+ priority: "low"
3600
+ },
3601
+ average: {
3602
+ label: "Standard",
3603
+ value: "120",
3604
+ unit: "sat/byte",
3605
+ description: "Normal priority - 10-20 minutes",
3606
+ estimatedTime: "~15 minutes",
3607
+ priority: "medium"
3608
+ },
3609
+ fastest: {
3610
+ label: "Priority",
3611
+ value: "150",
3612
+ unit: "sat/byte",
3613
+ description: "High priority - next block",
3614
+ estimatedTime: "~5 minutes",
3615
+ priority: "high"
3616
+ },
3617
+ networkId,
3618
+ networkType: "UTXO",
3619
+ raw: { hardcoded: true, reason: "DGB has high minimum relay fee requirement (22,600 sats)" }
3620
+ };
3621
+ }
3590
3622
  let feeResponse;
3591
3623
  if (networkId === "bip122:000007d91d1254d60e2dd1ae58038307") {
3592
3624
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "highlander",
3
3
  "name": "@pioneer-platform/pioneer-sdk",
4
- "version": "8.15.19",
4
+ "version": "8.15.21",
5
5
  "dependencies": {
6
6
  "@keepkey/keepkey-sdk": "^0.2.62",
7
7
  "@pioneer-platform/pioneer-caip": "^9.10.2",
package/src/fees/index.ts CHANGED
@@ -137,6 +137,40 @@ export async function getFees(
137
137
  };
138
138
  }
139
139
 
140
+ // Hardcode DGB fees at 100 sat/byte minimum (min relay fee is 22,600 sats for ~226 byte tx)
141
+ if (networkId === 'bip122:4da631f2ac1bed857bd968c67c913978') {
142
+ console.log(tag, 'Using hardcoded fees for DigiByte: 100 sat/byte minimum (min relay: 22,600 sats)');
143
+ return {
144
+ slow: {
145
+ label: 'Economy',
146
+ value: '100',
147
+ unit: 'sat/byte',
148
+ description: 'Minimum relay fee - 30+ minutes',
149
+ estimatedTime: '~30 minutes',
150
+ priority: 'low'
151
+ },
152
+ average: {
153
+ label: 'Standard',
154
+ value: '120',
155
+ unit: 'sat/byte',
156
+ description: 'Normal priority - 10-20 minutes',
157
+ estimatedTime: '~15 minutes',
158
+ priority: 'medium'
159
+ },
160
+ fastest: {
161
+ label: 'Priority',
162
+ value: '150',
163
+ unit: 'sat/byte',
164
+ description: 'High priority - next block',
165
+ estimatedTime: '~5 minutes',
166
+ priority: 'high'
167
+ },
168
+ networkId,
169
+ networkType: 'UTXO',
170
+ raw: { hardcoded: true, reason: 'DGB has high minimum relay fee requirement (22,600 sats)' }
171
+ };
172
+ }
173
+
140
174
  // Get raw fee data from API with timeout for Dash (slow API)
141
175
  let feeResponse;
142
176
  if (networkId === 'bip122:000007d91d1254d60e2dd1ae58038307') {