Skip to content

Commit

Permalink
Add eth2 provider (#3743)
Browse files Browse the repository at this point in the history
* Init eth2-core

* Init eth2-beaconchain

* Remove compiled ts files

* WIP error handling

* WIP added more API methods

* WIP eth2 packages refactor

* WIP typescript fixes

* Add lodestar-types

* Update schema from Typescript interface, to just an object

* Give Beaconchain default schema type IBaseAPISchema

* Add I to beginning of interface names

* Cleanup and update interface names

* Update name of imported interface

* WIP uncommenting for example

* Add ETH22Function type, update ETH2CoreOpts to ETH2BaseOpts

* Add chainHead to schema, remove param and return types from base schema

* Fix malformed URL

* WIP

* Remove testing code

* Add notImplemented flag

* add providerSuffix

* Handle no router indentifiers and methods not implemented

* Add notImplemented flag

* Init makefile with docker command for local lodestar node

* Init Jest

* Init tests for API wrappers

* Additional notImplemented methods

* Finish initial pass of integration tests

* Add jest and types

* Init jest

* Switch order of constructor params, add check in routeBuilder

* Formatting

* Init constructor test

* Init routeBuilder test

* Fix linter errors

* Additional notImplemented methods

* Update providerSuffix to match latest Lodestar URL

* Requested changes

* Update tsconfig

* Add rule to enforce I in interface

* Update tsconfig

* Update tsconfigs

* Remove sudo from Docker command

* Ran npm run postinstall & npm update

* Ran lerna add web3-eth2-core --scope=web3-eth2-beaconchain

* Temporarily add ts-ignore to fix imports

* Remove ./ from outDir in tsconfig

* Debugging failing linter test

* Remove scripts not used

* Give eth2BeaconChain any type since types aren't implemented yet

* Update changelog

Co-authored-by: frankiebee <frankie.diamond@gmail.com>
  • Loading branch information
spacesailor24 and frankiebee committed Oct 22, 2020
1 parent 16320d2 commit edf481d
Show file tree
Hide file tree
Showing 50 changed files with 28,002 additions and 41,238 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ Released with 1.0.0-beta.37 code base.

## [1.3.1]

### Added

- Add `web3-eth2-core` package (#3743)
- Add `web3-eth2-beaconchain` package (#3743)

### Changed

- bump utils 0.10.0^ -> 0.12.0 (#3733)
Expand Down
42,279 changes: 21,081 additions & 21,198 deletions package-lock.json

Large diffs are not rendered by default.

49 changes: 26 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,52 +87,55 @@
}
],
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/runtime": "^7.10.4",
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@chainsafe/geth-dev-assistant": "^0.1.5",
"@ensdomains/ens": "^0.4.5",
"@ensdomains/resolver": "^0.2.4",
"@types/bignumber.js": "^4.0.2",
"@types/bn.js": "^4.11.5",
"@types/node": "^12.12.6",
"@types/underscore": "^1.8.0",
"@types/bn.js": "^4.11.6",
"@types/node": "^12.12.68",
"@types/underscore": "^1.10.24",
"babel-loader": "^8.1.0",
"bignumber.js": "^9.0.0",
"bignumber.js": "^9.0.1",
"bn.js": "^4.11.9",
"browserify": "^16.5.1",
"browserify": "^16.5.2",
"buffer": "^4.9.2",
"bundlesize": "^0.18.0",
"chai": "^4.2.0",
"clean-webpack-plugin": "^3.0.0",
"core-js": "^3.4.8",
"crypto-js": "^3.1.9-1",
"core-js": "^3.6.5",
"crypto-js": "^3.3.0",
"decache": "^4.6.0",
"dependency-check": "^4.1.0",
"ethereumjs-common": "^1.3.2",
"ethereumjs-tx": "^2.1.1",
"ethereumjs-tx": "^2.1.2",
"ethers": "^5.0.18",
"ethjs-signer": "^0.1.1",
"ganache-cli": "^6.7.0",
"jshint": "^2.10.2",
"karma": "^5.1.0",
"ganache-cli": "^6.12.0",
"jshint": "^2.12.0",
"karma": "^5.2.3",
"karma-browserify": "^7.0.0",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^1.2.0",
"karma-firefox-launcher": "^1.3.0",
"karma-mocha": "^2.0.1",
"karma-spec-reporter": "0.0.32",
"lerna": "^3.20.2",
"mocha": "^6.2.1",
"lerna": "^3.22.1",
"mocha": "^6.2.3",
"nyc": "^14.1.1",
"pify": "^4.0.1",
"sandboxed-module": "^2.0.3",
"sandboxed-module": "^2.0.4",
"ts-node": "^8.10.2",
"typescript": "^3.9.5",
"typescript": "^3.9.7",
"underscore": "1.9.1",
"wait-port": "^0.2.6",
"webpack": "^4.43.0",
"wait-port": "^0.2.9",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12"
},
"dependencies": {}
Expand Down
Loading

0 comments on commit edf481d

Please sign in to comment.