crosslightning-evm
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -122,5 +122,6 @@ /// <reference types="node" /> | ||
deserializeTx(txData: string): Promise<UnsignedTransaction>; | ||
getTxStatus(txId: string): Promise<"success" | "not_found" | "pending" | "reverted">; | ||
getTxStatus(txData: string): Promise<"success" | "not_found" | "pending" | "reverted">; | ||
getTxIdStatus(txId: string): Promise<"not_found" | "pending" | "success" | "reverted">; | ||
onBeforeTxReplace(callback: (oldTx: string, oldTxId: string, newTx: string, newTxId: string) => Promise<void>): void; | ||
offBeforeTxReplace(callback: (oldTx: string, oldTxId: string, newTx: string, newTxId: string) => Promise<void>): boolean; | ||
} |
@@ -831,3 +831,8 @@ "use strict"; | ||
} | ||
getTxStatus(txId) { | ||
getTxStatus(txData) { | ||
const parsedTx = utils.parseTransaction(txData); | ||
const txId = parsedTx.hash; | ||
return this.getTxIdStatus(txId); | ||
} | ||
getTxIdStatus(txId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -834,0 +839,0 @@ if (this.signer instanceof EVMSigner_1.EVMWallet) { |
{ | ||
"name": "crosslightning-evm", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "EVM specific base implementation", | ||
@@ -27,3 +27,3 @@ "main": "./dist/index.js", | ||
"bn.js": "^5.2.1", | ||
"crosslightning-base": "^4.0.5", | ||
"crosslightning-base": "^4.0.6", | ||
"ethers": "^5.7.2", | ||
@@ -30,0 +30,0 @@ "typescript": "^4.9.5" |
@@ -1018,3 +1018,9 @@ import * as BN from "bn.js"; | ||
async getTxStatus(txId: string): Promise<"success" | "not_found" | "pending" | "reverted"> { | ||
getTxStatus(txData: string): Promise<"success" | "not_found" | "pending" | "reverted"> { | ||
const parsedTx = utils.parseTransaction(txData); | ||
const txId = parsedTx.hash; | ||
return this.getTxIdStatus(txId); | ||
} | ||
async getTxIdStatus(txId: string): Promise<"not_found" | "pending" | "success" | "reverted"> { | ||
if(this.signer instanceof EVMWallet) { | ||
@@ -1021,0 +1027,0 @@ if(this.signer.isTxPending(txId)) return "pending"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
356220
8399
Updatedcrosslightning-base@^4.0.6