crosslightning-base
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -19,3 +19,3 @@ /// <reference types="node" /> | ||
}; | ||
export interface SwapContract<T extends SwapData, TX> { | ||
export interface SwapContract<T extends SwapData, TX, PreFetchData, PreFetchVerification> { | ||
claimWithSecretTimeout: number; | ||
@@ -55,4 +55,5 @@ claimWithTxDataTimeout: number; | ||
isRequestRefundable(swapData: T): Promise<boolean>; | ||
preFetchBlockDataForSignatures?(): Promise<any>; | ||
getClaimInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: any, feeRate?: any): Promise<{ | ||
preFetchBlockDataForSignatures?(): Promise<PreFetchData>; | ||
preFetchForInitSignatureVerification?(data: PreFetchData): Promise<PreFetchVerification>; | ||
getClaimInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: PreFetchData, feeRate?: any): Promise<{ | ||
prefix: string; | ||
@@ -62,6 +63,6 @@ timeout: string; | ||
}>; | ||
isValidClaimInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any): Promise<Buffer | null>; | ||
getClaimInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string): Promise<number>; | ||
isValidClaimInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any, preFetchedVerificationData?: PreFetchVerification): Promise<Buffer | null>; | ||
getClaimInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string, preFetchedVerificationData?: PreFetchVerification): Promise<number>; | ||
isClaimInitAuthorizationExpired(swapData: T, timeout: string, prefix: string, signature: string): Promise<boolean>; | ||
getInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: any, feeRate?: any): Promise<{ | ||
getInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: PreFetchData, feeRate?: any): Promise<{ | ||
prefix: string; | ||
@@ -71,4 +72,4 @@ timeout: string; | ||
}>; | ||
isValidInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any): Promise<Buffer | null>; | ||
getInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string): Promise<number>; | ||
isValidInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any, preFetchedVerificationData?: PreFetchVerification): Promise<Buffer | null>; | ||
getInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string, preFetchedVerificationData?: PreFetchVerification): Promise<number>; | ||
isInitAuthorizationExpired(swapData: T, timeout: string, prefix: string, signature: string): Promise<boolean>; | ||
@@ -75,0 +76,0 @@ getRefundSignature(swapData: T, authorizationTimeout: number): Promise<{ |
{ | ||
"name": "crosslightning-base", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Base classes and interfaces of SolLightning", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -20,3 +20,3 @@ import {SwapData} from "./SwapData"; | ||
export interface SwapContract<T extends SwapData, TX> { | ||
export interface SwapContract<T extends SwapData, TX, PreFetchData, PreFetchVerification> { | ||
@@ -59,5 +59,6 @@ claimWithSecretTimeout: number; | ||
preFetchBlockDataForSignatures?(): Promise<any>; | ||
preFetchBlockDataForSignatures?(): Promise<PreFetchData>; | ||
preFetchForInitSignatureVerification?(data: PreFetchData): Promise<PreFetchVerification>; | ||
getClaimInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: any, feeRate?: any): Promise<{ | ||
getClaimInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: PreFetchData, feeRate?: any): Promise<{ | ||
prefix: string, | ||
@@ -67,7 +68,7 @@ timeout: string, | ||
}>; | ||
isValidClaimInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any): Promise<Buffer | null>; | ||
getClaimInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string): Promise<number>; | ||
isValidClaimInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any, preFetchedVerificationData?: PreFetchVerification): Promise<Buffer | null>; | ||
getClaimInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string, preFetchedVerificationData?: PreFetchVerification): Promise<number>; | ||
isClaimInitAuthorizationExpired(swapData: T, timeout: string, prefix: string, signature: string): Promise<boolean>; | ||
getInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: any, feeRate?: any): Promise<{ | ||
getInitSignature(swapData: T, authorizationTimeout: number, preFetchedBlockData?: PreFetchData, feeRate?: any): Promise<{ | ||
prefix: string, | ||
@@ -77,4 +78,4 @@ timeout: string, | ||
}>; | ||
isValidInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any): Promise<Buffer | null>; | ||
getInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string): Promise<number>; | ||
isValidInitAuthorization(swapData: T, timeout: string, prefix: string, signature: string, feeRate?: any, preFetchedVerificationData?: PreFetchVerification): Promise<Buffer | null>; | ||
getInitAuthorizationExpiry(swapData: T, timeout: string, prefix: string, signature: string, preFetchedVerificationData?: PreFetchVerification): Promise<number>; | ||
isInitAuthorizationExpired(swapData: T, timeout: string, prefix: string, signature: string): Promise<boolean>; | ||
@@ -81,0 +82,0 @@ |
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
65092
1247