@atomiqlabs/base
Version:
Base classes and interfaces for atomiq protocol
28 lines (27 loc) • 877 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwapEvent = exports.SwapEventType = void 0;
const ChainEvent_1 = require("../ChainEvent");
/**
* Enum of the different types of escrow-swap specific events
*
* @category Events
*/
var SwapEventType;
(function (SwapEventType) {
SwapEventType[SwapEventType["INITIALIZE"] = 0] = "INITIALIZE";
SwapEventType[SwapEventType["REFUND"] = 1] = "REFUND";
SwapEventType[SwapEventType["CLAIM"] = 2] = "CLAIM";
})(SwapEventType = exports.SwapEventType || (exports.SwapEventType = {}));
/**
* Represents an escrow-specific event
*
* @category Events
*/
class SwapEvent extends ChainEvent_1.ChainEvent {
constructor(escrowHash, contractVersion) {
super(contractVersion);
this.escrowHash = escrowHash;
}
}
exports.SwapEvent = SwapEvent;