Socket
Book a DemoInstallSign in
Socket

@chainsafe/lodestar-beacon-state-transition

Package Overview
Dependencies
Maintainers
5
Versions
841
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/lodestar-beacon-state-transition

Beacon Chain state transition function and utils

0.39.0
latest
Source
npmnpm
Version published
Weekly downloads
153
427.59%
Maintainers
5
Weekly downloads
 
Created
Source

lodestar-beacon-state-transition

npm License Eth Consensus Spec v1.1.10 ES Version Node Version

This package is part of ChainSafe's Lodestar project

The beacon state transition and state transition utilities

Usage

import {CachedBeaconStateAllForks, allForks} from "@chainsafe/lodestar-beacon-state-transition";
import {generateEmptySignedBlock} from "../test/utils/block";
import {generateState} from "../test/utils/state";

// dummy test state
const preState: CachedBeaconStateAllForks = generateState() as CachedBeaconStateAllForks;

// dummy test block
const block: allForks.SignedBeaconBlock = generateEmptySignedBlock();

// Run state transition on block
const postState = allForks.stateTransition(preState, block);

License

Apache-2.0 ChainSafe Systems

Keywords

ethereum

FAQs

Package last updated on 28 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.