ton-watcher
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -90,2 +90,3 @@ "use strict"; | ||
else { | ||
this.in_progress = false; | ||
this.tmr = setTimeout(() => this.run(), 1000 / this.limit_per_sec); | ||
@@ -92,0 +93,0 @@ } |
@@ -78,5 +78,6 @@ "use strict"; | ||
} | ||
let retries = 30; | ||
let retries = 31; | ||
while (retries) { | ||
retries--; | ||
await (0, common_helpers_1.wait)(2000); | ||
try { | ||
@@ -93,6 +94,5 @@ const txs = await this.ton.getTransactions(this.ton.address); | ||
catch (e) { | ||
await (0, common_helpers_1.wait)(2000); | ||
} | ||
} | ||
throw new Error(`Can't find tx in ton blockchain in 150 sec`); | ||
throw new Error(`Can't find tx in ton blockchain in 60 sec`); | ||
} | ||
@@ -99,0 +99,0 @@ } |
@@ -167,3 +167,3 @@ "use strict"; | ||
.storeUint(0xf8a7ea5, 32) // opcode for jetton transfer | ||
.storeUint(seqno, 64) // query id | ||
.storeUint(0, 64) // query id | ||
.storeCoins(amount) // jetton amount, amount * 10^decimals | ||
@@ -170,0 +170,0 @@ .storeAddress(parsed_address) // destination:MsgAddress |
{ | ||
"name": "ton-watcher", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -119,2 +119,3 @@ | ||
} else { | ||
this.in_progress = false; | ||
this.tmr = setTimeout(() => this.run(), 1000 / this.limit_per_sec); | ||
@@ -121,0 +122,0 @@ } |
@@ -95,6 +95,7 @@ import { Cell } from "@ton/core"; | ||
let retries = 30 | ||
let retries = 31 | ||
while(retries) { | ||
retries--; | ||
await wait(2000); | ||
try { | ||
@@ -110,8 +111,7 @@ const txs = await this.ton.getTransactions(this.ton.address); | ||
} catch(e) { | ||
await wait(2000); | ||
} | ||
} | ||
throw new Error(`Can't find tx in ton blockchain in 150 sec`); | ||
throw new Error(`Can't find tx in ton blockchain in 60 sec`); | ||
} | ||
} |
@@ -208,3 +208,3 @@ import { TonClient4, WalletContractV5R1, internal, SendMode, OpenedContract, Address, JettonMaster, JettonWallet, beginCell, toNano, external, Cell, storeMessage } from "@ton/ton"; | ||
.storeUint(0xf8a7ea5, 32) // opcode for jetton transfer | ||
.storeUint(seqno, 64) // query id | ||
.storeUint(0, 64) // query id | ||
.storeCoins(amount) // jetton amount, amount * 10^decimals | ||
@@ -211,0 +211,0 @@ .storeAddress(parsed_address) // destination:MsgAddress |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
375512
6336