UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

13 lines 576 B
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