Socket
Socket
Sign inDemoInstall

@chainsafe/lodestar-types

Package Overview
Dependencies
Maintainers
3
Versions
840
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/lodestar-types - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

lib/ssz/generators/misc.d.ts

@@ -9,2 +9,3 @@ /**

export declare const ForkData: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;
export declare const ENRForkID: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;
export declare const Checkpoint: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;

@@ -23,2 +24,3 @@ export declare const Validator: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;

export declare const DepositData: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;
export declare const DepositEvent: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;
export declare const BeaconBlockHeader: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;

@@ -25,0 +27,0 @@ export declare const SignedBeaconBlockHeader: (ssz: IBeaconSSZTypes) => ContainerType<import("@chainsafe/ssz").ObjectLike>;

@@ -6,3 +6,3 @@ "use strict";

});
exports.AttestationSubnets = exports.DepositDataRootList = exports.SigningRoot = exports.SignedBeaconBlockHeader = exports.BeaconBlockHeader = exports.DepositData = exports.DepositMessage = exports.HistoricalBatch = exports.HistoricalStateRoots = exports.HistoricalBlockRoots = exports.Eth1Data = exports.PendingAttestation = exports.CommitteeBits = exports.IndexedAttestation = exports.CommitteeIndices = exports.AttestationData = exports.Validator = exports.Checkpoint = exports.ForkData = exports.Fork = void 0;
exports.AttestationSubnets = exports.DepositDataRootList = exports.SigningRoot = exports.SignedBeaconBlockHeader = exports.BeaconBlockHeader = exports.DepositEvent = exports.DepositData = exports.DepositMessage = exports.HistoricalBatch = exports.HistoricalStateRoots = exports.HistoricalBlockRoots = exports.Eth1Data = exports.PendingAttestation = exports.CommitteeBits = exports.IndexedAttestation = exports.CommitteeIndices = exports.AttestationData = exports.Validator = exports.Checkpoint = exports.ENRForkID = exports.ForkData = exports.Fork = void 0;

@@ -35,2 +35,12 @@ var _ssz = require("@chainsafe/ssz");

const ENRForkID = ssz => new _ssz.ContainerType({
fields: {
forkDigest: ssz.ForkDigest,
nextForkVersion: ssz.Version,
nextForkEpoch: ssz.Epoch
}
});
exports.ENRForkID = ENRForkID;
const Checkpoint = ssz => new _ssz.ContainerType({

@@ -164,2 +174,14 @@ fields: {

const DepositEvent = ssz => new _ssz.ContainerType({
fields: {
index: ssz.Number64,
pubkey: ssz.BLSPubkey,
withdrawalCredentials: ssz.Bytes32,
amount: ssz.Gwei,
signature: ssz.BLSSignature
}
});
exports.DepositEvent = DepositEvent;
const BeaconBlockHeader = ssz => new _ssz.ContainerType({

@@ -166,0 +188,0 @@ fields: {

@@ -30,2 +30,3 @@ import { BigIntUintType, BitListType, BooleanType, ByteVectorType, ContainerType, List, ListType, NumberUintType, Vector, VectorType, BitVectorType } from "@chainsafe/ssz";

ForkData: ContainerType<t.ForkData>;
ENRForkID: ContainerType<t.ENRForkID>;
Checkpoint: ContainerType<t.Checkpoint>;

@@ -44,2 +45,3 @@ Validator: ContainerType<t.Validator>;

DepositData: ContainerType<t.DepositData>;
DepositEvent: ContainerType<t.DepositEvent>;
BeaconBlockHeader: ContainerType<t.BeaconBlockHeader>;

@@ -46,0 +48,0 @@ SignedBeaconBlockHeader: ContainerType<t.SignedBeaconBlockHeader>;

2

lib/ssz/interface.js

@@ -29,3 +29,3 @@ "use strict";

// misc
"Fork", "ForkData", "Checkpoint", "Validator", "AttestationData", "CommitteeIndices", "IndexedAttestation", "CommitteeBits", "PendingAttestation", "Eth1Data", "HistoricalBlockRoots", "HistoricalStateRoots", "HistoricalBatch", "DepositMessage", "DepositData", "BeaconBlockHeader", "SignedBeaconBlockHeader", "SigningRoot", "DepositDataRootList", "AttestationSubnets", // operations
"Fork", "ForkData", "ENRForkID", "Checkpoint", "Validator", "AttestationData", "CommitteeIndices", "IndexedAttestation", "CommitteeBits", "PendingAttestation", "Eth1Data", "HistoricalBlockRoots", "HistoricalStateRoots", "HistoricalBatch", "DepositMessage", "DepositData", "DepositEvent", "BeaconBlockHeader", "SignedBeaconBlockHeader", "SigningRoot", "DepositDataRootList", "AttestationSubnets", // operations
"ProposerSlashing", "AttesterSlashing", "Attestation", "Deposit", "VoluntaryExit", "SignedVoluntaryExit", // block

@@ -32,0 +32,0 @@ "BeaconBlockBody", "BeaconBlock", "SignedBeaconBlock", // state

@@ -5,3 +5,3 @@ /**

import { BitList, List, Vector, BitVector } from "@chainsafe/ssz";
import { BLSPubkey, BLSSignature, Epoch, Gwei, Root, Number64, Slot, ValidatorIndex, Version, CommitteeIndex, Bytes32, Domain } from "./primitive";
import { BLSPubkey, BLSSignature, Epoch, Gwei, Root, Number64, Slot, ValidatorIndex, Version, CommitteeIndex, Bytes32, Domain, ForkDigest } from "./primitive";
export interface Fork {

@@ -16,2 +16,7 @@ previousVersion: Version;

}
export interface ENRForkID {
forkDigest: ForkDigest;
nextForkVersion: Version;
nextForkEpoch: Epoch;
}
export interface Checkpoint {

@@ -69,2 +74,9 @@ epoch: Epoch;

}
export interface DepositEvent {
index: Number64;
pubkey: BLSPubkey;
withdrawalCredentials: Bytes32;
amount: Gwei;
signature: BLSSignature;
}
export interface BeaconBlockHeader {

@@ -71,0 +83,0 @@ slot: Slot;

@@ -14,4 +14,4 @@ {

},
"version": "0.6.0",
"main": "",
"version": "0.7.0",
"main": "lib/index.js",
"files": [

@@ -37,4 +37,4 @@ "lib/**/*.d.ts",

"dependencies": {
"@chainsafe/lodestar-params": "^0.6.0",
"@chainsafe/ssz": "0.6.2"
"@chainsafe/lodestar-params": "^0.7.0",
"@chainsafe/ssz": "^0.6.4"
},

@@ -53,3 +53,3 @@ "devDependencies": {

],
"gitHead": "0e426d2e5816b88d2d1508f42a127a4f89082781"
"gitHead": "6d82733185253e922300cbeca7cd56f778b30008"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc