Socket
Socket
Sign inDemoInstall

@chainsafe/lodestar-types

Package Overview
Dependencies
Maintainers
5
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.39.0 to 0.40.0-dev.138225fed4

3

lib/allForks/types.d.ts

@@ -53,3 +53,6 @@ import { CompositeType, ContainerType, ValueOf, CompositeView, CompositeViewDU } from "@chainsafe/ssz";

};
export declare type FullOrBlindedExecutionPayload = bellatrix.ExecutionPayload | bellatrix.ExecutionPayloadHeader;
export declare type FullOrBlindedBeaconBlock = BeaconBlock | bellatrix.BlindedBeaconBlock;
export declare type FullOrBlindedSignedBeaconBlock = SignedBeaconBlock | bellatrix.SignedBlindedBeaconBlock;
export {};
//# sourceMappingURL=types.d.ts.map

@@ -516,2 +516,435 @@ import { ByteListType, ByteVectorType, ContainerType, ListCompositeType, VectorCompositeType } from "@chainsafe/ssz";

}>;
export declare const BlindedBeaconBlockBody: ContainerType<{
executionPayloadHeader: ContainerType<{
transactionsRoot: ByteVectorType;
parentHash: ByteVectorType;
feeRecipient: ByteVectorType;
stateRoot: ByteVectorType;
receiptsRoot: ByteVectorType;
logsBloom: ByteVectorType;
prevRandao: ByteVectorType;
blockNumber: import("@chainsafe/ssz").UintNumberType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
gasUsed: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
extraData: ByteListType;
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
blockHash: ByteVectorType;
}>;
syncAggregate: ContainerType<{
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
syncCommitteeSignature: ByteVectorType;
}>;
randaoReveal: ByteVectorType;
eth1Data: ContainerType<{
depositRoot: ByteVectorType;
depositCount: import("@chainsafe/ssz").UintNumberType;
blockHash: ByteVectorType;
}>;
graffiti: ByteVectorType;
proposerSlashings: ListCompositeType<ContainerType<{
signedHeader1: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
bodyRoot: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
signedHeader2: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
bodyRoot: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
}>>;
attesterSlashings: ListCompositeType<ContainerType<{
attestation1: ContainerType<{
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
index: import("@chainsafe/ssz").UintBigintType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>;
attestation2: ContainerType<{
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
index: import("@chainsafe/ssz").UintBigintType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>;
}>>;
attestations: ListCompositeType<ContainerType<{
aggregationBits: import("@chainsafe/ssz").BitListType;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintNumberType;
index: import("@chainsafe/ssz").UintNumberType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>>;
deposits: ListCompositeType<ContainerType<{
proof: VectorCompositeType<ByteVectorType>;
data: ContainerType<{
pubkey: ByteVectorType;
withdrawalCredentials: ByteVectorType;
amount: import("@chainsafe/ssz").UintNumberType;
signature: ByteVectorType;
}>;
}>>;
voluntaryExits: ListCompositeType<ContainerType<{
message: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
validatorIndex: import("@chainsafe/ssz").UintNumberType;
}>;
signature: ByteVectorType;
}>>;
}>;
export declare const BlindedBeaconBlock: ContainerType<{
slot: import("@chainsafe/ssz").UintNumberType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
body: ContainerType<{
executionPayloadHeader: ContainerType<{
transactionsRoot: ByteVectorType;
parentHash: ByteVectorType;
feeRecipient: ByteVectorType;
stateRoot: ByteVectorType;
receiptsRoot: ByteVectorType;
logsBloom: ByteVectorType;
prevRandao: ByteVectorType;
blockNumber: import("@chainsafe/ssz").UintNumberType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
gasUsed: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
extraData: ByteListType;
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
blockHash: ByteVectorType;
}>;
syncAggregate: ContainerType<{
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
syncCommitteeSignature: ByteVectorType;
}>;
randaoReveal: ByteVectorType;
eth1Data: ContainerType<{
depositRoot: ByteVectorType;
depositCount: import("@chainsafe/ssz").UintNumberType;
blockHash: ByteVectorType;
}>;
graffiti: ByteVectorType;
proposerSlashings: ListCompositeType<ContainerType<{
signedHeader1: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
bodyRoot: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
signedHeader2: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
bodyRoot: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
}>>;
attesterSlashings: ListCompositeType<ContainerType<{
attestation1: ContainerType<{
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
index: import("@chainsafe/ssz").UintBigintType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>;
attestation2: ContainerType<{
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
index: import("@chainsafe/ssz").UintBigintType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>;
}>>;
attestations: ListCompositeType<ContainerType<{
aggregationBits: import("@chainsafe/ssz").BitListType;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintNumberType;
index: import("@chainsafe/ssz").UintNumberType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>>;
deposits: ListCompositeType<ContainerType<{
proof: VectorCompositeType<ByteVectorType>;
data: ContainerType<{
pubkey: ByteVectorType;
withdrawalCredentials: ByteVectorType;
amount: import("@chainsafe/ssz").UintNumberType;
signature: ByteVectorType;
}>;
}>>;
voluntaryExits: ListCompositeType<ContainerType<{
message: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
validatorIndex: import("@chainsafe/ssz").UintNumberType;
}>;
signature: ByteVectorType;
}>>;
}>;
}>;
export declare const SignedBlindedBeaconBlock: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintNumberType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
body: ContainerType<{
executionPayloadHeader: ContainerType<{
transactionsRoot: ByteVectorType;
parentHash: ByteVectorType;
feeRecipient: ByteVectorType;
stateRoot: ByteVectorType;
receiptsRoot: ByteVectorType;
logsBloom: ByteVectorType;
prevRandao: ByteVectorType;
blockNumber: import("@chainsafe/ssz").UintNumberType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
gasUsed: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
extraData: ByteListType;
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
blockHash: ByteVectorType;
}>;
syncAggregate: ContainerType<{
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
syncCommitteeSignature: ByteVectorType;
}>;
randaoReveal: ByteVectorType;
eth1Data: ContainerType<{
depositRoot: ByteVectorType;
depositCount: import("@chainsafe/ssz").UintNumberType;
blockHash: ByteVectorType;
}>;
graffiti: ByteVectorType;
proposerSlashings: ListCompositeType<ContainerType<{
signedHeader1: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
bodyRoot: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
signedHeader2: ContainerType<{
message: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
proposerIndex: import("@chainsafe/ssz").UintNumberType;
parentRoot: ByteVectorType;
stateRoot: ByteVectorType;
bodyRoot: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
}>>;
attesterSlashings: ListCompositeType<ContainerType<{
attestation1: ContainerType<{
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
index: import("@chainsafe/ssz").UintBigintType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>;
attestation2: ContainerType<{
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintBigintType;
index: import("@chainsafe/ssz").UintBigintType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintBigintType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>;
}>>;
attestations: ListCompositeType<ContainerType<{
aggregationBits: import("@chainsafe/ssz").BitListType;
data: ContainerType<{
slot: import("@chainsafe/ssz").UintNumberType;
index: import("@chainsafe/ssz").UintNumberType;
beaconBlockRoot: ByteVectorType;
source: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
root: ByteVectorType;
}>;
target: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
root: ByteVectorType;
}>;
}>;
signature: ByteVectorType;
}>>;
deposits: ListCompositeType<ContainerType<{
proof: VectorCompositeType<ByteVectorType>;
data: ContainerType<{
pubkey: ByteVectorType;
withdrawalCredentials: ByteVectorType;
amount: import("@chainsafe/ssz").UintNumberType;
signature: ByteVectorType;
}>;
}>>;
voluntaryExits: ListCompositeType<ContainerType<{
message: ContainerType<{
epoch: import("@chainsafe/ssz").UintNumberType;
validatorIndex: import("@chainsafe/ssz").UintNumberType;
}>;
signature: ByteVectorType;
}>>;
}>;
}>;
signature: ByteVectorType;
}>;
export declare const ValidatorRegistrationV1: ContainerType<{
feeRecipient: ByteVectorType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
pubkey: ByteVectorType;
}>;
export declare const SignedValidatorRegistrationV1: ContainerType<{
message: ContainerType<{
feeRecipient: ByteVectorType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
pubkey: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
export declare const BuilderBid: ContainerType<{
header: ContainerType<{
transactionsRoot: ByteVectorType;
parentHash: ByteVectorType;
feeRecipient: ByteVectorType;
stateRoot: ByteVectorType;
receiptsRoot: ByteVectorType;
logsBloom: ByteVectorType;
prevRandao: ByteVectorType;
blockNumber: import("@chainsafe/ssz").UintNumberType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
gasUsed: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
extraData: ByteListType;
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
blockHash: ByteVectorType;
}>;
value: import("@chainsafe/ssz").UintBigintType;
pubkey: ByteVectorType;
}>;
export declare const SignedBuilderBid: ContainerType<{
message: ContainerType<{
header: ContainerType<{
transactionsRoot: ByteVectorType;
parentHash: ByteVectorType;
feeRecipient: ByteVectorType;
stateRoot: ByteVectorType;
receiptsRoot: ByteVectorType;
logsBloom: ByteVectorType;
prevRandao: ByteVectorType;
blockNumber: import("@chainsafe/ssz").UintNumberType;
gasLimit: import("@chainsafe/ssz").UintNumberType;
gasUsed: import("@chainsafe/ssz").UintNumberType;
timestamp: import("@chainsafe/ssz").UintNumberType;
extraData: ByteListType;
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
blockHash: ByteVectorType;
}>;
value: import("@chainsafe/ssz").UintBigintType;
pubkey: ByteVectorType;
}>;
signature: ByteVectorType;
}>;
//# sourceMappingURL=sszTypes.d.ts.map

@@ -6,3 +6,3 @@ import { ByteListType, ByteVectorType, ContainerType, ListCompositeType, VectorCompositeType } from "@chainsafe/ssz";

import { ssz as altairSsz } from "../altair/index.js";
const { Bytes20, Bytes32, UintNum64, Slot, ValidatorIndex, Root, BLSSignature, UintBn256: Uint256 } = primitiveSsz;
const { Bytes20, Bytes32, UintNum64, Slot, ValidatorIndex, Root, BLSSignature, UintBn256: Uint256, BLSPubkey, } = primitiveSsz;
/**

@@ -111,2 +111,37 @@ * ByteList[MAX_BYTES_PER_TRANSACTION]

}, { typeName: "BeaconState", jsonCase: "eth2" });
export const BlindedBeaconBlockBody = new ContainerType({
...altairSsz.BeaconBlockBody.fields,
executionPayloadHeader: ExecutionPayloadHeader,
}, { typeName: "BlindedBeaconBlockBody", jsonCase: "eth2", cachePermanentRootStruct: true });
export const BlindedBeaconBlock = new ContainerType({
slot: Slot,
proposerIndex: ValidatorIndex,
// Reclare expandedType() with altair block and altair state
parentRoot: Root,
stateRoot: Root,
body: BlindedBeaconBlockBody,
}, { typeName: "BlindedBeaconBlock", jsonCase: "eth2", cachePermanentRootStruct: true });
export const SignedBlindedBeaconBlock = new ContainerType({
message: BlindedBeaconBlock,
signature: BLSSignature,
}, { typeName: "SignedBlindedBeaconBlock", jsonCase: "eth2" });
export const ValidatorRegistrationV1 = new ContainerType({
feeRecipient: Bytes20,
gasLimit: UintNum64,
timestamp: UintNum64,
pubkey: BLSPubkey,
}, { typeName: "ValidatorRegistrationV1", jsonCase: "eth2" });
export const SignedValidatorRegistrationV1 = new ContainerType({
message: ValidatorRegistrationV1,
signature: BLSSignature,
}, { typeName: "SignedValidatorRegistrationV1", jsonCase: "eth2" });
export const BuilderBid = new ContainerType({
header: ExecutionPayloadHeader,
value: Uint256,
pubkey: BLSPubkey,
}, { typeName: "BuilderBid", jsonCase: "eth2" });
export const SignedBuilderBid = new ContainerType({
message: BuilderBid,
signature: BLSSignature,
}, { typeName: "SignedBuilderBid", jsonCase: "eth2" });
//# sourceMappingURL=sszTypes.js.map

@@ -11,2 +11,9 @@ import { ValueOf } from "@chainsafe/ssz";

export declare type PowBlock = ValueOf<typeof ssz.PowBlock>;
export declare type BlindedBeaconBlockBody = ValueOf<typeof ssz.BlindedBeaconBlockBody>;
export declare type BlindedBeaconBlock = ValueOf<typeof ssz.BlindedBeaconBlock>;
export declare type SignedBlindedBeaconBlock = ValueOf<typeof ssz.SignedBlindedBeaconBlock>;
export declare type ValidatorRegistrationV1 = ValueOf<typeof ssz.ValidatorRegistrationV1>;
export declare type SignedValidatorRegistrationV1 = ValueOf<typeof ssz.SignedValidatorRegistrationV1>;
export declare type BuilderBid = ValueOf<typeof ssz.BuilderBid>;
export declare type SignedBuilderBid = ValueOf<typeof ssz.SignedBuilderBid>;
//# sourceMappingURL=types.d.ts.map

6

package.json

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

},
"version": "0.39.0",
"version": "0.40.0-dev.138225fed4",
"type": "module",

@@ -66,3 +66,3 @@ "exports": {

"dependencies": {
"@chainsafe/lodestar-params": "^0.39.0",
"@chainsafe/lodestar-params": "0.40.0-dev.138225fed4",
"@chainsafe/ssz": "^0.9.2"

@@ -76,3 +76,3 @@ },

],
"gitHead": "55e7ca2d544bd786fe287a1254b95a0d784d553e"
"gitHead": "635b0e025be917bbd0595ef8b336018b6cb15179"
}

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