import { Repository } from "@lodestar/db";
import { ssz } from "@lodestar/types";
import { Bucket, getBucketNameByValue } from "../buckets.js";
export class ProposerSlashingRepository extends Repository {
    constructor(config, db) {
        const bucket = Bucket.phase0_proposerSlashing;
        super(config, db, bucket, ssz.phase0.ProposerSlashing, getBucketNameByValue(bucket));
    }
    getId(value) {
        return value.signedHeader1.message.proposerIndex;
    }
}
//# sourceMappingURL=proposerSlashing.js.map