Cipher parsing
This commit is contained in:
parent
2593676fae
commit
fbf20ab5d5
@ -189,23 +189,23 @@ export default class Services {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async parseCipher(message: string) {
|
async parseCipher(message: string) {
|
||||||
|
// try {
|
||||||
|
// JSON.parse(message)
|
||||||
|
// const router = await Routing.getInstance();
|
||||||
|
// router.closeLoginModal()
|
||||||
|
// this.injectProcessListPage()
|
||||||
|
// } catch {
|
||||||
|
// console.log('Not proper format for cipher')
|
||||||
|
// }
|
||||||
try {
|
try {
|
||||||
const services = await Services.getInstance();
|
console.log('parsing new cipher');
|
||||||
try {
|
const apiReturn = await this.sdkClient.parse_cipher(message, 0.00001);
|
||||||
JSON.parse(message)
|
console.log("🚀 ~ Services ~ parseCipher ~ apiReturn:", apiReturn);
|
||||||
const router = await Routing.getInstance();
|
await this.handleApiReturn(apiReturn)
|
||||||
router.closeLoginModal()
|
} catch (e) {
|
||||||
this.injectProcessListPage()
|
console.log("Cipher isn't for us");
|
||||||
} catch {
|
|
||||||
console.log('Not proper format for cipher')
|
|
||||||
}
|
}
|
||||||
const parsedTx = await services.sdkClient.parse_cipher(message, 0.00001)
|
|
||||||
console.log("🚀 ~ Services ~ parseCipher ~ parsedTx:", parsedTx)
|
|
||||||
await this.handleApiReturn(parsedTx)
|
|
||||||
// await this.saveCipherTxToDb(parsedTx)
|
// await this.saveCipherTxToDb(parsedTx)
|
||||||
} catch(e) {
|
|
||||||
console.log(e)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async parseNewTx(tx: string) {
|
async parseNewTx(tx: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user