ton-watcher
Advanced tools
Comparing version
@@ -62,8 +62,7 @@ "use strict"; | ||
for (let i = 0; i < txs.length; i++) { | ||
if (txs[i].hash().toString('hex') === this.last_hash) { | ||
break; | ||
} | ||
await this.parseTx(txs[i]); | ||
all_txs.push(txs[i]); | ||
const hash = txs[i].hash().toString('hex'); | ||
if (hash === this.last_hash) { | ||
break; | ||
} | ||
} | ||
@@ -89,6 +88,2 @@ if (txs.length < params.limit || (this.last_lt && txs[txs.length - 1].lt <= BigInt(this.last_lt))) { | ||
const parsed_tx = (0, Transaction_1.parse_tx)(tx); | ||
//const store_data = await this.store.get(parsed_tx.hash); | ||
// if (store_data) { | ||
// return; | ||
// } | ||
if (parsed_tx.inMessage.jeton_notify) { | ||
@@ -112,3 +107,2 @@ const source = parsed_tx.inMessage.sender; | ||
this.processing_jetton(jeton_transfer_data); | ||
//await this.store.set(parsed_tx.hash, jeton_transfer_data); | ||
} | ||
@@ -115,0 +109,0 @@ ; |
{ | ||
"name": "ton-watcher", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -86,9 +86,7 @@ import { Address, TonClient, Transaction } from "@ton/ton"; | ||
for (let i = 0; i < txs.length; i++) { | ||
if (txs[i].hash().toString('hex') === this.last_hash) { | ||
break; | ||
} | ||
await this.parseTx(txs[i]); | ||
all_txs.push(txs[i]); | ||
const hash = txs[i].hash().toString('hex'); | ||
if (hash === this.last_hash) { | ||
break; | ||
} | ||
} | ||
@@ -120,8 +118,2 @@ | ||
//const store_data = await this.store.get(parsed_tx.hash); | ||
// if (store_data) { | ||
// return; | ||
// } | ||
if (parsed_tx.inMessage.jeton_notify) { | ||
@@ -145,3 +137,2 @@ const source = parsed_tx.inMessage.sender; | ||
this.processing_jetton(jeton_transfer_data); | ||
//await this.store.set(parsed_tx.hash, jeton_transfer_data); | ||
}; | ||
@@ -148,0 +139,0 @@ } else { |
Sorry, the diff of this file is not supported yet
109457
-0.55%1810
-0.66%