@openocean.finance/widget-types
Version:
Types for the OpenOcean Widget
27 lines • 646 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._StepType = void 0;
exports.isSwapStep = isSwapStep;
exports.isCrossStep = isCrossStep;
exports.isProtocolStep = isProtocolStep;
exports.isCustomStep = isCustomStep;
exports._StepType = [
'openocean',
'swap',
'cross',
'protocol',
'custom',
];
function isSwapStep(step) {
return step.type === 'swap';
}
function isCrossStep(step) {
return step.type === 'cross';
}
function isProtocolStep(step) {
return step.type === 'protocol';
}
function isCustomStep(step) {
return step.type === 'custom';
}
//# sourceMappingURL=step.js.map