UNPKG

@atomiqlabs/base

Version:

Base classes and interfaces for atomiq protocol

19 lines (13 loc) 572 B
import {SwapEvent, SwapEventType} from "./SwapEvent"; import {SwapData} from "../../../swaps/SwapData"; import {ChainSwapType} from "../../../swaps/ChainSwapType"; export class InitializeEvent<T extends SwapData> extends SwapEvent<T, SwapEventType.INITIALIZE> { readonly eventType: SwapEventType.INITIALIZE; swapType: ChainSwapType; swapData: () => Promise<T>; constructor(escrowHash: string, swapType: ChainSwapType, swapData: () => Promise<T>) { super(escrowHash); this.swapType = swapType; this.swapData = swapData; } }