UNPKG

@atomiqlabs/sdk

Version:

atomiq labs SDK for cross-chain swaps between smart chains and bitcoin

15 lines (14 loc) 460 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isIRefundableSwap = void 0; /** * Type guard to check if an object is an {@link IRefundableSwap} * * @category Swaps/Types */ function isIRefundableSwap(obj) { return typeof (obj.isRefundable) === "function" && typeof (obj.txsRefund) === "function" && typeof (obj.refund) === "function"; } exports.isIRefundableSwap = isIRefundableSwap;