"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.CastRateStatus = exports.RateStatus = void 0;
var RateStatus;
(function (RateStatus) {
    RateStatus["PENDING"] = "PENDING";
    RateStatus["SET"] = "SET";
})(RateStatus || (exports.RateStatus = RateStatus = {}));
class CastRateStatus {
    static fromBigint(id) {
        return this.fromNumber(Number(id));
    }
    static fromNumber(value) {
        return value === 0 ? RateStatus.PENDING : RateStatus.SET;
    }
    static toNumber(value) {
        if (value == RateStatus.PENDING)
            return 0;
        return 1;
    }
}
exports.CastRateStatus = CastRateStatus;
