// SPDX-License-Identifier: Apache-2.0
export var RateStatus;
(function (RateStatus) {
    RateStatus["PENDING"] = "PENDING";
    RateStatus["SET"] = "SET";
})(RateStatus || (RateStatus = {}));
export 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;
    }
}
