//@ts-nocheck
/** buf:lint:ignore ENUM_VALUE_PREFIX */
export var Algorithm;
(function (Algorithm) {
    /** UNSPECIFIED - buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX */
    Algorithm[Algorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
    Algorithm[Algorithm["STABLESWAP"] = 1] = "STABLESWAP";
    Algorithm[Algorithm["PERFECTPRICE"] = 2] = "PERFECTPRICE";
    Algorithm[Algorithm["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(Algorithm || (Algorithm = {}));
export const AlgorithmSDKType = Algorithm;
export function algorithmFromJSON(object) {
    switch (object) {
        case 0:
        case 'UNSPECIFIED':
            return Algorithm.UNSPECIFIED;
        case 1:
        case 'STABLESWAP':
            return Algorithm.STABLESWAP;
        case 2:
        case 'PERFECTPRICE':
            return Algorithm.PERFECTPRICE;
        case -1:
        case 'UNRECOGNIZED':
        default:
            return Algorithm.UNRECOGNIZED;
    }
}
export function algorithmToJSON(object) {
    switch (object) {
        case Algorithm.UNSPECIFIED:
            return 'UNSPECIFIED';
        case Algorithm.STABLESWAP:
            return 'STABLESWAP';
        case Algorithm.PERFECTPRICE:
            return 'PERFECTPRICE';
        case Algorithm.UNRECOGNIZED:
        default:
            return 'UNRECOGNIZED';
    }
}
//# sourceMappingURL=algorithm.js.map