@pioneer-platform/pioneer-sdk 8.15.22 → 8.15.24
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 +10 -0
- package/dist/index.es.js +10 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
- package/src/txbuilder/createUnsignedUxtoTx.ts +12 -0
package/dist/index.cjs
CHANGED
|
@@ -2575,6 +2575,16 @@ async function createUnsignedUxtoTx(caip, to, amount, memo, pubkeys, pioneer, pu
|
|
|
2575
2575
|
unit: "sat/byte",
|
|
2576
2576
|
description: "Hardcoded DOGE fees - API unreliable"
|
|
2577
2577
|
};
|
|
2578
|
+
} else if (networkId === "bip122:4da631f2ac1bed857bd968c67c913978") {
|
|
2579
|
+
console.log(`${tag}: Using hardcoded fees for DigiByte (100-150 sat/byte - min relay: 22,600 sats)`);
|
|
2580
|
+
feeRateFromNode = {
|
|
2581
|
+
slow: 100,
|
|
2582
|
+
average: 120,
|
|
2583
|
+
fast: 150,
|
|
2584
|
+
fastest: 150,
|
|
2585
|
+
unit: "sat/byte",
|
|
2586
|
+
description: "Hardcoded DGB fees - min relay fee requirement"
|
|
2587
|
+
};
|
|
2578
2588
|
} else {
|
|
2579
2589
|
try {
|
|
2580
2590
|
let feeResponse;
|
package/dist/index.es.js
CHANGED
|
@@ -2759,6 +2759,16 @@ async function createUnsignedUxtoTx(caip, to, amount, memo, pubkeys, pioneer, pu
|
|
|
2759
2759
|
unit: "sat/byte",
|
|
2760
2760
|
description: "Hardcoded DOGE fees - API unreliable"
|
|
2761
2761
|
};
|
|
2762
|
+
} else if (networkId === "bip122:4da631f2ac1bed857bd968c67c913978") {
|
|
2763
|
+
console.log(`${tag}: Using hardcoded fees for DigiByte (100-150 sat/byte - min relay: 22,600 sats)`);
|
|
2764
|
+
feeRateFromNode = {
|
|
2765
|
+
slow: 100,
|
|
2766
|
+
average: 120,
|
|
2767
|
+
fast: 150,
|
|
2768
|
+
fastest: 150,
|
|
2769
|
+
unit: "sat/byte",
|
|
2770
|
+
description: "Hardcoded DGB fees - min relay fee requirement"
|
|
2771
|
+
};
|
|
2762
2772
|
} else {
|
|
2763
2773
|
try {
|
|
2764
2774
|
let feeResponse;
|
package/dist/index.js
CHANGED
|
@@ -2759,6 +2759,16 @@ async function createUnsignedUxtoTx(caip, to, amount, memo, pubkeys, pioneer, pu
|
|
|
2759
2759
|
unit: "sat/byte",
|
|
2760
2760
|
description: "Hardcoded DOGE fees - API unreliable"
|
|
2761
2761
|
};
|
|
2762
|
+
} else if (networkId === "bip122:4da631f2ac1bed857bd968c67c913978") {
|
|
2763
|
+
console.log(`${tag}: Using hardcoded fees for DigiByte (100-150 sat/byte - min relay: 22,600 sats)`);
|
|
2764
|
+
feeRateFromNode = {
|
|
2765
|
+
slow: 100,
|
|
2766
|
+
average: 120,
|
|
2767
|
+
fast: 150,
|
|
2768
|
+
fastest: 150,
|
|
2769
|
+
unit: "sat/byte",
|
|
2770
|
+
description: "Hardcoded DGB fees - min relay fee requirement"
|
|
2771
|
+
};
|
|
2762
2772
|
} else {
|
|
2763
2773
|
try {
|
|
2764
2774
|
let feeResponse;
|
package/package.json
CHANGED
|
@@ -209,6 +209,18 @@ export async function createUnsignedUxtoTx(
|
|
|
209
209
|
unit: 'sat/byte',
|
|
210
210
|
description: 'Hardcoded DOGE fees - API unreliable'
|
|
211
211
|
};
|
|
212
|
+
}
|
|
213
|
+
// HARDCODE DGB FEES - Minimum relay fee is 22,600 sats (~100 sat/byte for 226 byte tx)
|
|
214
|
+
else if (networkId === 'bip122:4da631f2ac1bed857bd968c67c913978') {
|
|
215
|
+
console.log(`${tag}: Using hardcoded fees for DigiByte (100-150 sat/byte - min relay: 22,600 sats)`);
|
|
216
|
+
feeRateFromNode = {
|
|
217
|
+
slow: 100,
|
|
218
|
+
average: 120,
|
|
219
|
+
fast: 150,
|
|
220
|
+
fastest: 150,
|
|
221
|
+
unit: 'sat/byte',
|
|
222
|
+
description: 'Hardcoded DGB fees - min relay fee requirement'
|
|
223
|
+
};
|
|
212
224
|
} else {
|
|
213
225
|
try {
|
|
214
226
|
// Try GetFeeRateByNetwork first (newer API), then fallback to GetFeeRate
|