import { Repository } from "@lodestar/db";
import { signedBLSToExecutionChangeVersionedType } from "../../util/types.js";
import { Bucket, getBucketNameByValue } from "../buckets.js";
export class BLSToExecutionChangeRepository extends Repository {
    constructor(config, db) {
        const bucket = Bucket.capella_blsToExecutionChange;
        super(config, db, bucket, signedBLSToExecutionChangeVersionedType, getBucketNameByValue(bucket));
    }
    getId(value) {
        return value.data.message.validatorIndex;
    }
}
//# sourceMappingURL=blsToExecutionChange.js.map