@chainsafe/lodestar-types
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -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>; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107128
1363
+ Added@chainsafe/lodestar-params@0.7.0(transitive)
+ Added@chainsafe/persistent-merkle-tree@0.2.3(transitive)
+ Added@chainsafe/ssz@0.6.13(transitive)
+ Addedcase@1.6.3(transitive)
- Removed@chainsafe/lodestar-params@0.6.0(transitive)
- Removed@chainsafe/persistent-merkle-tree@0.1.3(transitive)
- Removed@chainsafe/ssz@0.6.2(transitive)
Updated@chainsafe/ssz@^0.6.4