@erc7824/nitrolite
Version:
The Nitrolite SDK empowers developers to build high-performance, scalable web3 applications using state channels. It's designed to provide near-instant transactions and significantly improved user experiences by minimizing direct blockchain interactions.
22 lines (21 loc) • 979 B
TypeScript
import { PreparerDependencies } from './prepare';
import { ChallengeChannelParams, ChannelId, CloseChannelParams, CreateChannelParams, ResizeChannelParams, State, Signature } from './types';
export declare function _prepareAndSignInitialState(deps: PreparerDependencies, params: CreateChannelParams): Promise<{
initialState: State;
channelId: ChannelId;
}>;
export declare function _prepareAndSignChallengeState(deps: PreparerDependencies, params: ChallengeChannelParams): Promise<{
channelId: ChannelId;
candidateState: State;
proofs: State[];
challengerSig: Signature;
}>;
export declare function _prepareAndSignResizeState(deps: PreparerDependencies, params: ResizeChannelParams): Promise<{
resizeStateWithSigs: State;
proofs: State[];
channelId: ChannelId;
}>;
export declare function _prepareAndSignFinalState(deps: PreparerDependencies, params: CloseChannelParams): Promise<{
finalStateWithSigs: State;
channelId: ChannelId;
}>;