crosslightning-base
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -26,4 +26,7 @@ /// <reference types="node" /> | ||
initPayIn(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsInitPayIn(swapData: T, timeout: string, prefix: string, signature: string, nonce: number): Promise<TX[]>; | ||
init(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, txoHash?: Buffer, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsInit(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, txoHash?: Buffer): Promise<TX[]>; | ||
claimWithSecret(swapData: T, secret: string, checkExpiry?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsClaimWithSecret(swapData: T, secret: string): Promise<TX[]>; | ||
claimWithTxData(swapData: T, blockheight: number, tx: { | ||
@@ -35,6 +38,2 @@ blockhash: string; | ||
}, vout: number, storedHeader?: BtcStoredHeader<any>, synchronizer?: RelaySynchronizer<any, TX, any>, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
refund(swapData: T, check?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
refundWithAuthorization(swapData: T, timeout: string, prefix: string, signature: string, check?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
initAndClaimWithSecret(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, secret: string, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string[]>; | ||
txsClaimWithSecret(swapData: T, secret: string): Promise<TX[]>; | ||
txsClaimWithTxData(swapData: T, blockheight: number, tx: { | ||
@@ -46,3 +45,7 @@ blockhash: string; | ||
}, vout: number, storedHeader?: BtcStoredHeader<any>, synchronizer?: RelaySynchronizer<any, TX, any>, initAta?: boolean): Promise<TX[]>; | ||
refund(swapData: T, check?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsRefund(swapData: T): Promise<TX[]>; | ||
refundWithAuthorization(swapData: T, timeout: string, prefix: string, signature: string, check?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsRefundWithAuthorization(swapData: T, timeout: string, prefix: string, signature: string, check?: boolean, initAta?: boolean): Promise<TX[]>; | ||
initAndClaimWithSecret(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, secret: string, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string[]>; | ||
isExpired(swapData: T): boolean; | ||
@@ -49,0 +52,0 @@ isClaimable(swapData: T): Promise<boolean>; |
{ | ||
"name": "crosslightning-base", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Base classes and interfaces of SolLightning", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -30,13 +30,15 @@ import {SwapData} from "./SwapData"; | ||
initPayIn(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsInitPayIn(swapData: T, timeout: string, prefix: string, signature: string, nonce: number): Promise<TX[]>; | ||
init(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, txoHash?: Buffer, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsInit(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, txoHash?: Buffer): Promise<TX[]>; | ||
claimWithSecret(swapData: T, secret: string, checkExpiry?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsClaimWithSecret(swapData: T, secret: string): Promise<TX[]>; | ||
claimWithTxData(swapData: T, blockheight: number, tx: {blockhash: string, confirmations: number, txid: string, hex: string}, vout: number, storedHeader?: BtcStoredHeader<any>, synchronizer?: RelaySynchronizer<any, TX, any>, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsClaimWithTxData(swapData: T, blockheight: number, tx: {blockhash: string, confirmations: number, txid: string, hex: string}, vout: number, storedHeader?: BtcStoredHeader<any>, synchronizer?: RelaySynchronizer<any, TX, any>, initAta?: boolean): Promise<TX[]>; | ||
refund(swapData: T, check?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsRefund(swapData: T): Promise<TX[]>; | ||
refundWithAuthorization(swapData: T, timeout: string, prefix: string, signature: string, check?: boolean, initAta?: boolean, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string>; | ||
txsRefundWithAuthorization(swapData: T, timeout: string, prefix: string, signature: string, check?: boolean, initAta?: boolean): Promise<TX[]>; | ||
initAndClaimWithSecret(swapData: T, timeout: string, prefix: string, signature: string, nonce: number, secret: string, waitForConfirmation?: boolean, abortSignal?: AbortSignal): Promise<string[]>; | ||
txsClaimWithSecret(swapData: T, secret: string): Promise<TX[]>; | ||
txsClaimWithTxData(swapData: T, blockheight: number, tx: {blockhash: string, confirmations: number, txid: string, hex: string}, vout: number, storedHeader?: BtcStoredHeader<any>, synchronizer?: RelaySynchronizer<any, TX, any>, initAta?: boolean): Promise<TX[]>; | ||
txsRefund(swapData: T): Promise<TX[]>; | ||
isExpired(swapData: T): boolean; | ||
@@ -43,0 +45,0 @@ isClaimable(swapData: T): Promise<boolean>; |
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
56366
1147