Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chainsafe/lodestar-types

Package Overview
Dependencies
Maintainers
4
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.12.0 to 0.13.0

2

lib/ssz/generators/api.js

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

index: ssz.ValidatorIndex,
pubkey: ssz.BLSPubkey,
balance: ssz.Gwei,
status: new _utils.StringType(),

@@ -146,0 +146,0 @@ validator: ssz.Validator

@@ -48,30 +48,9 @@ "use strict";

_interface.typeNames.forEach(type => {
for (const type of _interface.typeNames) {
// @ts-ignore
types[type] = allGenerators[type](types, params);
});
/* or if we can separate out types w/ dependencies into files
for (const type in misc) {
types[type] = misc[type](types, params);
}
for (const type in operations) {
types[type] = operations[type](types, params);
}
for (const type in block) {
types[type] = block[type](types, params);
}
for (const type in state) {
types[type] = state[type](types, params);
}
for (const type in validator) {
types[type] = validator[type](types, params);
}
for (const type in wire) {
types[type] = wire[type](types, params);
}
*/
return types;
}
//# sourceMappingURL=index.js.map

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

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

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

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

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

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

const SlotRoot = ssz => new _ssz.ContainerType({
fields: {
slot: ssz.Slot,
root: ssz.Root
}
});
exports.SlotRoot = SlotRoot;
const Validator = ssz => new _ssz.ContainerType({

@@ -56,0 +65,0 @@ fields: {

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

Checkpoint: ContainerType<t.Checkpoint>;
SlotRoot: ContainerType<t.SlotRoot>;
Validator: ContainerType<t.Validator>;

@@ -34,0 +35,0 @@ AttestationData: ContainerType<t.AttestationData>;

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

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

@@ -36,5 +36,5 @@ "BeaconBlockBody", "BeaconBlock", "SignedBeaconBlock", // state

"SlashingProtectionBlock", "SlashingProtectionAttestation", "SlashingProtectionAttestationLowerBound", // wire
"Status", "Goodbye", "Ping", "Metadata", "BeaconBlocksByRangeRequest", "BeaconBlocksByRootRequest", "P2pErrorMessage", //api
"Status", "Goodbye", "Ping", "Metadata", "BeaconBlocksByRangeRequest", "BeaconBlocksByRootRequest", "P2pErrorMessage", // api
"SignedBeaconHeaderResponse", "SubscribeToCommitteeSubnetPayload", "SyncingStatus", "AttesterDuty", "ProposerDuty", "Genesis", "ChainHead", "BlockEventPayload", "FinalizedCheckpoint", "ChainReorg", "ValidatorBalance", "ValidatorResponse", "BeaconCommitteeResponse"];
exports.typeNames = typeNames;
//# sourceMappingURL=interface.js.map

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

var _mainnet = require("@chainsafe/lodestar-params/lib/presets/mainnet");
var _mainnet = require("@chainsafe/lodestar-params/mainnet");

@@ -11,0 +11,0 @@ var _generators = require("../generators");

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

var _minimal = require("@chainsafe/lodestar-params/lib/presets/minimal");
var _minimal = require("@chainsafe/lodestar-params/minimal");

@@ -11,0 +11,0 @@ var _generators = require("../generators");

@@ -93,3 +93,3 @@ import { Checkpoint, SignedBeaconBlockHeader, Validator } from "./misc";

index: ValidatorIndex;
pubkey: BLSPubkey;
balance: Gwei;
status: ValidatorStatus;

@@ -96,0 +96,0 @@ validator: Validator;

@@ -7,4 +7,2 @@ "use strict";

exports.ValidatorStatus = void 0;
/* eslint-disable @typescript-eslint/interface-name-prefix */
let ValidatorStatus;

@@ -11,0 +9,0 @@ exports.ValidatorStatus = ValidatorStatus;

@@ -24,2 +24,6 @@ /**

}
export interface SlotRoot {
slot: Slot;
root: Root;
}
export interface Validator {

@@ -26,0 +30,0 @@ pubkey: BLSPubkey;

@@ -14,3 +14,3 @@ {

},
"version": "0.12.0",
"version": "0.13.0",
"main": "lib/index.js",

@@ -39,3 +39,3 @@ "files": [

"dependencies": {
"@chainsafe/lodestar-params": "^0.12.0",
"@chainsafe/lodestar-params": "^0.13.0",
"@chainsafe/ssz": "^0.6.13"

@@ -49,3 +49,3 @@ },

],
"gitHead": "5162c9136854c8c0b3816bb7622468ee0f3cc61b"
"gitHead": "739f164b086dab2584b7a55d5bdeb69071542a75"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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