Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crosslightning-evm

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosslightning-evm - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

3

dist/evm/swaps/EVMSwapProgram.d.ts

@@ -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";

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc