@atomiqlabs/sdk
Version:
atomiq labs SDK for cross-chain swaps between smart chains and bitcoin
16 lines (15 loc) • 476 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isIClaimableSwap = void 0;
/**
* Type guard to check if an object is an {@link IClaimableSwap}
*
* @category Swaps/Types
*/
function isIClaimableSwap(obj) {
return obj != null &&
typeof (obj.isClaimable) === "function" &&
typeof (obj.txsClaim) === "function" &&
typeof (obj.claim) === "function";
}
exports.isIClaimableSwap = isIClaimableSwap;