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

crosslightning-base

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosslightning-base - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

13

dist/btcrelay/BtcRelay.d.ts

@@ -8,11 +8,17 @@ /// <reference types="node" />

getTipData(): Promise<{
blockheight: number;
commitHash: string;
blockhash: string;
chainWork: Buffer;
}>;
retrieveLogAndBlockheight(blockhash: string, requiredBlockheight?: number): Promise<{
retrieveLogAndBlockheight(blockData: {
blockhash: string;
height: number;
}, requiredBlockheight?: number): Promise<{
header: V;
height: number;
}>;
retrieveLogByCommitHash(commitHash: string, blockHash: string): Promise<V>;
retrieveLogByCommitHash(commitHash: string, blockData: {
blockhash: string;
height: number;
}): Promise<V>;
retrieveLatestKnownBlockLog(): Promise<{

@@ -22,3 +28,2 @@ resultStoredHeader: V;

}>;
retrieveOnchainTip(): Promise<B>;
saveMainHeaders(mainHeaders: B[], storedHeader: V): Promise<{

@@ -25,0 +30,0 @@ forkId: number;

@@ -75,3 +75,3 @@ /// <reference types="node" />

getBalance(token: TokenAddress, inContract: boolean): Promise<BN>;
createSwapData(type: ChainSwapType, offerer: string, claimer: string, token: TokenAddress, amount: BN, paymentHash: string, expiry: BN, escrowNonce: BN, confirmations: number, payOut: boolean): T;
createSwapData(type: ChainSwapType, offerer: string, claimer: string, token: TokenAddress, amount: BN, paymentHash: string, expiry: BN, escrowNonce: BN, confirmations: number, payIn: boolean, payOut: boolean): Promise<T>;
areWeClaimer(swapData: T): boolean;

@@ -84,7 +84,8 @@ areWeOfferer(swapData: T): boolean;

toTokenAddress(address: string): TokenAddress;
getCommitFee(): BN;
getClaimFee(): BN;
getRefundFee(): BN;
getCommitFee(): Promise<BN>;
getClaimFee(): Promise<BN>;
getRefundFee(): Promise<BN>;
setUsAsClaimer(swapData: T): any;
setUsAsOfferer(swapData: T): any;
getHashForOnchain(outputScript: Buffer, amount: BN, nonce: BN): Buffer;
}
{
"name": "crosslightning-base",
"version": "1.0.0",
"version": "1.0.1",
"description": "Base classes and interfaces of SolLightning",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -10,12 +10,12 @@ import {BtcStoredHeader} from "./types/BtcStoredHeader";

getTipData(): Promise<{
blockheight: number,
commitHash: string,
blockhash: string,
chainWork: Buffer
}>;
retrieveLogAndBlockheight(blockhash: string, requiredBlockheight?: number): Promise<{
retrieveLogAndBlockheight(blockData: {blockhash: string, height: number}, requiredBlockheight?: number): Promise<{
header: V,
height: number
}>;
retrieveLogByCommitHash(commitHash: string, blockHash: string): Promise<V>;
retrieveLogByCommitHash(commitHash: string, blockData: {blockhash: string, height: number}): Promise<V>;

@@ -26,3 +26,3 @@ retrieveLatestKnownBlockLog(): Promise<{

}>;
retrieveOnchainTip(): Promise<B>;
//retrieveOnchainTip(): Promise<B>;

@@ -29,0 +29,0 @@

@@ -89,4 +89,5 @@ import {SwapData} from "./SwapData";

confirmations: number,
payIn: boolean,
payOut: boolean
): T;
): Promise<T>;

@@ -103,5 +104,5 @@ areWeClaimer(swapData: T): boolean;

getCommitFee(): BN;
getClaimFee(): BN;
getRefundFee(): BN;
getCommitFee(): Promise<BN>;
getClaimFee(): Promise<BN>;
getRefundFee(): Promise<BN>;

@@ -111,2 +112,4 @@ setUsAsClaimer(swapData: T);

getHashForOnchain(outputScript: Buffer, amount: BN, nonce: BN): Buffer;
}
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