Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "test/spec/test-cases"]
path = test/spec/test-cases
[submodule "spec-test-cases"]
path = packages/lodestar/test/spec/test-cases
url = https://github.com/ChainSafe/eth2.0-spec-tests.git
branch = master
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,35 @@ cache:
yarn: true
directories:
- node_modules
- packages/lodestar/node_modules

install:
- yarn
- lerna bootstrap

jobs:
include:
- stage: Lint and Check types
name: Check types
script: yarn run check-types & yarn run lint
script: lerna run check-types & lerna run lint

- stage: Tests
name: Unit
script: yarn run test:unit && yarn run codecov
script: lerna run test:unit && lerna run codecov
-
name: e2e
script: yarn run test:e2e
script: lerna run test:e2e
-
name: spec
script: yarn run test:spec
script: lerna run test:spec

before_deploy: yarn run build:docs
before_deploy: lerna run --scope @chainsafe/lodestar build:docs

deploy:
provider: pages
skip_cleanup: true
github_token: $GH_PAGES_TOKEN
keep_history: true
local_dir: docs
local_dir: packages/lodestar/docs
on:
branch: master
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
}
119 changes: 6 additions & 113 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,120 +1,13 @@
{
"name": "@chainsafe/lodestar",
"version": "0.1.0",
"description": "A Typescript implementation of the beacon chain and validator client",
"author": "ChainSafe Systems",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"homepage": "https://github.com/ChainSafe/lodestar#readme",
"main": "lib/index.js",
"files": [
"lib"
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"build": "babel src -x .ts -d lib --source-maps",
"build:docs": "typedoc --exclude src/index.ts --out docs src",
"check-types": "tsc --noEmit --incremental",
"lint": "eslint --ext .ts src/",
"lint-fix": "eslint --ext .ts src/ --fix",
"pretest": "yarn run check-types",
"test:unit": "nyc --cache-dir .nyc_output/.cache -r lcov -e .ts mocha -r ts-node/register 'test/unit/**/*.test.ts' && nyc report",
"test:e2e": "mocha --timeout 5000 -r ./.babel-register 'test/e2e/**/*.test.ts'",
"test:spec": "mocha -r ./.babel-register 'test/spec/**/*.test.ts'",
"test": "yarn test:unit && yarn test:spec && yarn test:e2e",
"coverage": "codecov"
},
"repository": {
"type": "git",
"url": "git+https://github.com:ChainSafe/lodestar.git"
},
"keywords": [
"Ethereum",
"beacon",
"future",
"p2p",
"blockchain"
],
"dependencies": {
"@chainsafe/bls-js": "^0.1.5",
"@chainsafe/ssz": "0.4.3",
"@iarna/toml": "^2.2.3",
"@nodeutils/defaults-deep": "^1.1.0",
"@polkadot/util-crypto": "^0.93.1",
"assert": "^2.0.0",
"await-to-js": "^2.1.1",
"bignumber.js": "^9.0.0",
"blakejs": "^1.1.0",
"bn.js": "^4.11.8",
"buffer-xor": "^2.0.2",
"commander": "^2.19.0",
"deepmerge": "^3.2.0",
"ethers": "^4.0.27",
"level": "^5.0.1",
"libp2p": "^0.25.3",
"libp2p-bootstrap": "^0.9.7",
"libp2p-gossipsub": "^0.0.2",
"libp2p-kad-dht": "^0.15.2",
"libp2p-mplex": "^0.8.5",
"libp2p-tcp": "^0.13.0",
"libp2p-webrtc-star": "^0.16.1",
"noice-json-rpc": "^1.2.0",
"peer-book": "^0.9.1",
"peer-id": "^0.12.2",
"peer-info": "^0.15.1",
"pouchdb-adapter-memory": "^7.0.0",
"pouchdb-core": "^7.0.0",
"promisify-es6": "^1.0.3",
"pull-abortable": "^4.1.1",
"pull-pushable": "^2.2.0",
"winston": "^3.2.1",
"ws": "^7.0.1"
},
"bin": {
"lodestar": "./bin/lodestar",
"lodestar-validator": "./bin/lodestar-validator"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/plugin-proposal-class-properties": "^7.3.3",
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
"@babel/plugin-transform-runtime": "^7.3.4",
"@babel/preset-env": "^7.3.1",
"@babel/preset-typescript": "^7.3.3",
"@babel/register": "^7.0.0",
"@chainsafe/eth2.0-spec-test-util": "0.3.6",
"@polkadot/ts": "^0.1.57",
"@types/bn.js": "^4.11.4",
"@types/chai": "^4.1.7",
"@types/chai-as-promised": "^7.1.0",
"@types/levelup": "^3.1.0",
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.10",
"@types/sinon": "^7.0.11",
"@types/ws": "^6.0.1",
"lerna": "^3.15.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"@typescript-eslint/parser": "^1.3.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"codecov": "^3.1.0",
"eslint": "^5.14.1",
"ganache-core": "^2.5.3",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"sinon": "^7.2.7",
"supertest": "^4.0.2",
"ts-node": "^8.3.0",
"typedoc": "^0.14.2",
"typedoc-plugin-external-module-name": "^2.1.0",
"typedoc-plugin-internal-external": "^2.0.2",
"typedoc-plugin-markdown": "^2.0.6",
"typescript": "^3.5.1"
},
"greenkeeper": {
"ignore": [
"eslint"
]
"eslint": "^5.14.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions packages/lodestar/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules/
lib
.nyc_output/
coverage/**
.DS_Store
*.swp
.idea
beaconchain
lodestar-db
lodestar-config.toml
validator-db
keys/
test-db
yarn-error.log
package-lock.json
LodestarValidatorDB/
File renamed without changes.
Loading