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.10.2 to 0.11.0

1

lib/ssz/generators/api.d.ts

@@ -10,1 +10,2 @@ import { IBeaconSSZTypes } from "../interface";

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

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

});
exports.ValidatorResponse = exports.SyncingStatus = exports.ProposerDuty = exports.AttesterDuty = exports.ForkResponse = exports.SubscribeToCommitteeSubnetPayload = exports.SignedBeaconHeaderResponse = void 0;
exports.Genesis = exports.ValidatorResponse = exports.SyncingStatus = exports.ProposerDuty = exports.AttesterDuty = exports.ForkResponse = exports.SubscribeToCommitteeSubnetPayload = exports.SignedBeaconHeaderResponse = void 0;

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

exports.ValidatorResponse = ValidatorResponse;
const Genesis = ssz => new _ssz.ContainerType({
fields: {
genesisValidatorsRoot: ssz.Root,
genesisTime: ssz.Uint64,
genesisForkVersion: ssz.Version
}
});
exports.Genesis = Genesis;
//# sourceMappingURL=api.js.map

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

ValidatorResponse: ContainerType<t.ValidatorResponse>;
Genesis: ContainerType<t.Genesis>;
}
export declare const typeNames: (keyof IBeaconSSZTypes)[];

2

lib/ssz/interface.js

@@ -35,4 +35,4 @@ "use strict";

"Status", "Goodbye", "Ping", "Metadata", "BeaconBlocksByRangeRequest", "BeaconBlocksByRootRequest", "P2pErrorMessage", //api
"SignedBeaconHeaderResponse", "SubscribeToCommitteeSubnetPayload", "ForkResponse", "SyncingStatus", "AttesterDuty", "ProposerDuty", "ValidatorResponse"];
"SignedBeaconHeaderResponse", "SubscribeToCommitteeSubnetPayload", "ForkResponse", "SyncingStatus", "AttesterDuty", "ProposerDuty", "ValidatorResponse", "Genesis"];
exports.typeNames = typeNames;
//# sourceMappingURL=interface.js.map

@@ -1,2 +0,2 @@

import { BLSPubkey, BLSSignature, CommitteeIndex, Gwei, Number64, Slot, Uint64, ValidatorIndex, Root } from "./primitive";
import { BLSPubkey, BLSSignature, CommitteeIndex, Gwei, Number64, Slot, Uint64, ValidatorIndex, Root, Version } from "./primitive";
import { Fork, SignedBeaconBlockHeader, Validator } from "./misc";

@@ -39,1 +39,6 @@ export interface SignedBeaconHeaderResponse {

}
export interface Genesis {
genesisTime: Uint64;
genesisValidatorsRoot: Root;
genesisForkVersion: Version;
}

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

},
"version": "0.10.2",
"version": "0.11.0",
"main": "lib/index.js",

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

"dependencies": {
"@chainsafe/lodestar-params": "^0.10.2",
"@chainsafe/ssz": "^0.6.9"
"@chainsafe/lodestar-params": "^0.11.0",
"@chainsafe/ssz": "^0.6.11"
},

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

],
"gitHead": "4e0dde631208a44d9a9fdfa547f1f91c018f68e8"
"gitHead": "d84564bda2f3548a1d7e419c1c621f005a4f1dca"
}

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