@teleportdao/bitcoin 1.5.1 → 1.5.3
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teleportdao/bitcoin",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "teleswap bitcoin package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "dist/bundle.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@bitcoinerlab/secp256k1": "^1.0.5",
|
|
18
|
-
"@teleportdao/configs": "^1.5.
|
|
18
|
+
"@teleportdao/configs": "^1.5.2",
|
|
19
19
|
"@teleportdao/providers": "^1.5.1",
|
|
20
20
|
"axios": "^0.27.2",
|
|
21
21
|
"bignumber.js": "^9.1.1",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "b51bbf242df97f245be04b04a00155cc67063eaa",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@babel/preset-react": "^7.23.3"
|
|
40
40
|
}
|
package/src/bitcoin-interface.ts
CHANGED
|
@@ -294,8 +294,8 @@ export class BitcoinInterface extends BitcoinInterfaceUtils {
|
|
|
294
294
|
let startBlock = Math.max(+startBlockNumber, +endBlock - 20)
|
|
295
295
|
return this.getMultipleBlocksTransactions(addresses, startBlock, endBlock)
|
|
296
296
|
}
|
|
297
|
-
if (this.apiProviderName !== "BlockStream") {
|
|
298
|
-
throw new Error("
|
|
297
|
+
if (this.apiProviderName !== "BlockStream" && this.apiProviderName !== "MempoolSpace") {
|
|
298
|
+
throw new Error("not support this api provider")
|
|
299
299
|
}
|
|
300
300
|
let txs = await (this.apiProvider as any).getTransactionHistoryForMultipleAddresses(
|
|
301
301
|
addresses,
|
|
@@ -306,8 +306,8 @@ export class BitcoinInterface extends BitcoinInterfaceUtils {
|
|
|
306
306
|
|
|
307
307
|
// ------------------just blockstream----------------------
|
|
308
308
|
async getMempoolTransactionHistory(addresses: string[]) {
|
|
309
|
-
if (this.apiProviderName !== "BlockStream") {
|
|
310
|
-
throw new Error("
|
|
309
|
+
if (this.apiProviderName !== "BlockStream" && this.apiProviderName !== "MempoolSpace") {
|
|
310
|
+
throw new Error("not support this api provider")
|
|
311
311
|
}
|
|
312
312
|
let txs = await (this.apiProvider as any).getMempoolTransactionHistoryForMultipleAddresses(
|
|
313
313
|
addresses,
|