"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MathError = void 0;
exports.getMathErrorEncoder = getMathErrorEncoder;
exports.getMathErrorDecoder = getMathErrorDecoder;
exports.getMathErrorCodec = getMathErrorCodec;
var kit_1 = require("@solana/kit");
var MathError;
(function (MathError) {
    MathError[MathError["MathOverflow"] = 0] = "MathOverflow";
    MathError[MathError["MathUnderflow"] = 1] = "MathUnderflow";
    MathError[MathError["ErrorInDivision"] = 2] = "ErrorInDivision";
})(MathError || (exports.MathError = MathError = {}));
function getMathErrorEncoder() {
    return (0, kit_1.getEnumEncoder)(MathError);
}
function getMathErrorDecoder() {
    return (0, kit_1.getEnumDecoder)(MathError);
}
function getMathErrorCodec() {
    return (0, kit_1.combineCodec)(getMathErrorEncoder(), getMathErrorDecoder());
}
//# sourceMappingURL=mathError.js.map