@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
13 lines • 519 B
JavaScript
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