26 Commits

Author SHA1 Message Date
Nico Flaig
0f30a6d7d6 chore: add tsconfig to detect unused imports, variables, and functions (#7759)
**Motivation**

Get rid of dead code, improve code clarity, no more unused imports

**Description**

Add tsconfig to detect unused imports, variables, and functions
2025-05-08 19:44:35 +01:00
Nazar Hussain
9f78c9dad8 chore: fix broken type check for test files (#7567)
**Motivation**

Check the types for test files

**Description**

- Add `test` folder for the `tsconfig.json` files

**Steps to test or reproduce**

- Run all tests
2025-03-13 13:47:22 +00:00
Nazar Hussain
b2ebe4921b deps: upgrade tyepscript to 5.7 (#7160)
**Motivation**

Keep the deps updated.

**Description**

Use latest features provided by Typescript. See the comments below. 

**Steps to test or reproduce**

- Run all tests
2025-02-25 14:24:14 +01:00
Nazar Hussain
4fd3d4d302 refactor: restructure to tests and CI workflow to reduce CI time (#5951)
* Enable debug logging for e2e tests

* Reduce the duration of lightclient test

* Run all e2e tests with minimal preset

* Fix the few e2e tests

* Fix test job names

* Fix the task script

* Add yarn cache to node actions

* Update few e2e tests after code review

* Fix the type export to use with transpilation

* Remove unused file

* Revert changes to an e2e test file

* Reduce the genesis delay

* Refactor workflow jobs

* Add .git-data to build cache

* Fix spec tests option

* Upgrade the github action version

* Add a package dev dependency

* Add artifact name

* Update the workflow to add env variables

* Update the workflow to add env variables

* Add tsnode option

* Parallelize the spec tests

* Add the ts-node configuration

* Update tsconfig for the e2e tests

* Update the tsconfig for the project

* Fix the types issue

* Remove unused file
2023-09-22 06:05:46 -04:00
Nazar Hussain
c4ba9ff9cd Add eth_getCode support to prover (#5364)
* Add eth_getCode support for the prover

* Move some functions to a utility file

* Add more unit tests

* Add unit test for getCode

* Cleanup fixture files

* Update the tsconfig
2023-04-19 09:23:27 -04:00
Lion - dapplion
157693a428 Move types dir to root (#4216)
* Move types dir to root

* Update types location in root
2022-06-28 21:35:58 +02:00
tuyennhv
98ab4d2174 Apply gossip attestations to forkchoice (#3585)
* Apply gossip attestations to forkchoice

* Only add unaggregated attestation to forkchoice if shouldProcess

* Add forkchoice.onAttestation() benchmark

* Add hidden cli option network.passGossipAttestationsToForkchoice

* Remove single quote to run yarn:benchmark

* Cache validated attestation data roots per slot

* Fix type issue in yarn:benchmark

* Change cli flag to dontSendGossipAttestationsToForkchoice
2022-01-14 08:31:21 +01:00
dapplion
94ce117184 Fix conflicting tsc options for check-types 2021-03-07 12:19:23 +01:00
dapplion
d3b40cbed0 Reference tsconfig.build.json 2021-03-07 11:19:21 +01:00
dapplion
4cb0ee2cc9 Remove comments from root tsconfig 2021-03-07 10:51:32 +01:00
dapplion
2c52d5559a Remove unnecessary "typeRoots": ["../../node_modules/@types"], 2021-03-07 10:31:38 +01:00
3xtr4t3rr3str14l
e7458896c0 set source mapping in tsconfig 2020-11-12 16:31:58 -06:00
dapplion
6a4ea67c13 Use agreed tsconfig settings lib: es2020, target: es2019 2020-08-30 18:17:05 +02:00
dapplion
409e07fd4d Fix test scripts in packages 2020-08-22 21:38:43 +02:00
dapplion
fc0075c593 Set 'strictNullChecks': true and format tsconfigs 2020-08-19 13:03:26 +02:00
Marin Petrunić
0fcbf19818 remove babel/runtime dep as we don't support old browsers anyways 2019-12-06 13:09:48 +01:00
Marin Petrunić
efcad3c276 fix ts errors 2019-09-17 21:02:32 +02:00
Marin Petrunić
9e578bdc66 Merge remote-tracking branch 'origin/master' into cayman/style-guide
# Conflicts:
#	.eslintrc
#	package.json
#	packages/bls/src/@types/keccak256/index.d.ts
#	packages/bls/src/helpers/g1point.ts
#	packages/bls/src/helpers/g2point.ts
#	packages/bls/src/index.ts
#	packages/bls/src/privateKey.ts
#	packages/bls/test/spec/spec-tests
#	packages/eth2.0-types/src/validator.ts
#	packages/eth2.0-types/src/wire.ts
#	packages/lodestar/package.json
#	packages/lodestar/src/api/rpc/api/beacon/beacon.ts
#	packages/lodestar/src/api/rpc/api/beacon/interface.ts
#	packages/lodestar/src/api/rpc/api/validator/interface.ts
#	packages/lodestar/src/api/rpc/transport/http.ts
#	packages/lodestar/src/api/rpc/transport/ws.ts
#	packages/lodestar/src/chain/chain.ts
#	packages/lodestar/src/chain/factory/attestation/index.ts
#	packages/lodestar/src/chain/factory/block/eth1Data.ts
#	packages/lodestar/src/chain/factory/duties/index.ts
#	packages/lodestar/src/chain/forkChoice/interface.ts
#	packages/lodestar/src/chain/forkChoice/statefulDag/lmdGhost.ts
#	packages/lodestar/src/chain/stateTransition/block/randao.ts
#	packages/lodestar/src/chain/stateTransition/util/attestation.ts
#	packages/lodestar/src/chain/stateTransition/util/domain.ts
#	packages/lodestar/src/cli/commands/beacon.ts
#	packages/lodestar/src/cli/commands/create-config.ts
#	packages/lodestar/src/cli/commands/deposit.ts
#	packages/lodestar/src/cli/commands/eth1-private-network.ts
#	packages/lodestar/src/cli/commands/validator.ts
#	packages/lodestar/src/cli/commands/wallet.ts
#	packages/lodestar/src/db/api/beacon/interface.ts
#	packages/lodestar/src/db/api/validator/interface.ts
#	packages/lodestar/src/db/api/validator/validator.ts
#	packages/lodestar/src/db/controller/impl/level.ts
#	packages/lodestar/src/eth1/dev/network.ts
#	packages/lodestar/src/eth1/impl/ethers.ts
#	packages/lodestar/src/logger/abstract.ts
#	packages/lodestar/src/logger/winston.ts
#	packages/lodestar/src/network/codec.ts
#	packages/lodestar/src/network/gossip.ts
#	packages/lodestar/src/network/interface.ts
#	packages/lodestar/src/network/libp2p/peer.ts
#	packages/lodestar/src/network/libp2p/rpc.ts
#	packages/lodestar/src/network/libp2p/syncRpc.ts
#	packages/lodestar/src/network/libp2p/util.ts
#	packages/lodestar/src/node/nodejs.ts
#	packages/lodestar/src/rpc/api/interface.ts
#	packages/lodestar/src/rpc/api/validator/validator.ts
#	packages/lodestar/src/rpc/options.ts
#	packages/lodestar/src/rpc/protocol/jsonRpc.ts
#	packages/lodestar/src/sync/index.ts
#	packages/lodestar/src/sync/initial.ts
#	packages/lodestar/src/sync/regular.ts
#	packages/lodestar/src/sync/rpc/interface.ts
#	packages/lodestar/src/util/bytes.ts
#	packages/lodestar/src/util/io.ts
#	packages/lodestar/src/util/merkleTree/merkleTree.ts
#	packages/lodestar/src/validator/options.ts
#	packages/lodestar/src/validator/rpc/abstract.ts
#	packages/lodestar/src/validator/services/attestation.ts
#	packages/lodestar/src/validator/services/block.ts
#	packages/lodestar/src/validator/validator.ts
#	packages/lodestar/test/e2e/sync/reqResp.test.ts
#	packages/lodestar/test/unit/sync/index.test.ts
#	packages/lodestar/test/unit/sync/rpc.test.ts
#	packages/ssz/src/hashTreeRoot.ts
#	packages/ssz/test/unit/hashTreeRoot.test.ts
#	yarn.lock
2019-09-17 12:52:06 +02:00
Marin Petrunić
13def1e314 fix type generation 2019-08-07 14:32:36 +02:00
Cayman
8b2a523fb9 Increase eslint/tsconfig strictness 2019-08-04 12:32:21 -05:00
Marin Petrunić
303160ea8e addess PR comments 2019-07-26 14:03:40 +02:00
Marin Petrunić
044058dae2 pull tsconfig to root 2019-07-17 12:50:07 +02:00
Gregory Markou
5d1847c40e switched to lerna 2019-07-16 01:49:00 -04:00
Cayman
82d222bf31 Update polkadot/ts 2019-05-30 14:32:53 -05:00
Cayman
765aeaf53f Add stateful dag lmd ghost impl
Based on https://github.com/protolambda/lmd-ghost#state-ful-dag
2019-04-15 23:01:33 -05:00
Cayman
82a5ebd083 Remove deposit contract
We can rely on https://github.com/ethereum/deposit_contract
2019-03-18 00:08:57 -05:00