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 6.0.0 to 6.0.1

17

dist/swaps/SwapContract.d.ts

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

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