import { Repository } from "@lodestar/db";
import { ssz } from "@lodestar/types";
import { Bucket, getBucketNameByValue } from "../buckets.js";
export class VoluntaryExitRepository extends Repository {
    constructor(config, db) {
        const bucket = Bucket.phase0_exit;
        super(config, db, bucket, ssz.phase0.SignedVoluntaryExit, getBucketNameByValue(bucket));
    }
    getId(value) {
        return value.message.validatorIndex;
    }
}
//# sourceMappingURL=voluntaryExit.js.map