Skip to content

Instantly share code, notes, and snippets.

View yohanelly95's full-sized avatar
🏠
Working from home

Yohan Nelson yohanelly95

🏠
Working from home
  • Interstellar Research
View GitHub Profile
import bls from "@chainsafe/bls";
import { deriveKeyFromMnemonic, deriveEth2ValidatorKeys } from "@chainsafe/bls-keygen";
import { fromHexString, toHexString } from "@chainsafe/ssz";
import { computeDomain, computeSigningRoot, ZERO_HASH } from "@lodestar/state-transition";
import { DOMAIN_DEPOSIT } from "@lodestar/params";
import { mainnetChainConfig } from "@lodestar/config/networks";
import { ssz } from "@lodestar/types/phase0";
const masterSK = deriveKeyFromMnemonic("your mnemonic phrase goes here");
@emo-eth
emo-eth / chain_funcs.sh
Last active June 22, 2023 14:43
Helper functions for interacting with chains and Foundry tests. Source from .zshrc etc
###########
# Imports #
###########
# the RPCs file should include RPC URLs and Etherscan API Keys for relevant networks
# (in a separate file so they don't get committed)
source "$(dirname "$0")/rpcs.sh"
# any useful addresses for various networks for easy reference
source "$(dirname "$0")/addresses.sh"
# any useful functions and definitions for interacting with Seaport