crosslightning-base
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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; | ||
} |
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
55588
1141