Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit edf481d

Browse files
Add eth2 provider (#3743)
* 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 <[email protected]>
1 parent 16320d2 commit edf481d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+28002
-41238
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ Released with 1.0.0-beta.37 code base.
290290

291291
## [1.3.1]
292292

293+
### Added
294+
295+
- Add `web3-eth2-core` package (#3743)
296+
- Add `web3-eth2-beaconchain` package (#3743)
297+
293298
### Changed
294299

295300
- bump utils 0.10.0^ -> 0.12.0 (#3733)

package-lock.json

Lines changed: 21081 additions & 21198 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,52 +87,55 @@
8787
}
8888
],
8989
"devDependencies": {
90-
"@babel/core": "^7.10.4",
91-
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
92-
"@babel/plugin-transform-runtime": "^7.10.4",
93-
"@babel/preset-env": "^7.10.4",
94-
"@babel/runtime": "^7.10.4",
90+
"@babel/cli": "^7.12.1",
91+
"@babel/core": "^7.12.3",
92+
"@babel/plugin-proposal-class-properties": "^7.12.1",
93+
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
94+
"@babel/plugin-transform-runtime": "^7.12.1",
95+
"@babel/preset-env": "^7.12.1",
96+
"@babel/preset-typescript": "^7.12.1",
97+
"@babel/runtime": "^7.12.1",
9598
"@chainsafe/geth-dev-assistant": "^0.1.5",
9699
"@ensdomains/ens": "^0.4.5",
97100
"@ensdomains/resolver": "^0.2.4",
98101
"@types/bignumber.js": "^4.0.2",
99-
"@types/bn.js": "^4.11.5",
100-
"@types/node": "^12.12.6",
101-
"@types/underscore": "^1.8.0",
102+
"@types/bn.js": "^4.11.6",
103+
"@types/node": "^12.12.68",
104+
"@types/underscore": "^1.10.24",
102105
"babel-loader": "^8.1.0",
103-
"bignumber.js": "^9.0.0",
106+
"bignumber.js": "^9.0.1",
104107
"bn.js": "^4.11.9",
105-
"browserify": "^16.5.1",
108+
"browserify": "^16.5.2",
106109
"buffer": "^4.9.2",
107110
"bundlesize": "^0.18.0",
108111
"chai": "^4.2.0",
109112
"clean-webpack-plugin": "^3.0.0",
110-
"core-js": "^3.4.8",
111-
"crypto-js": "^3.1.9-1",
113+
"core-js": "^3.6.5",
114+
"crypto-js": "^3.3.0",
112115
"decache": "^4.6.0",
113116
"dependency-check": "^4.1.0",
114117
"ethereumjs-common": "^1.3.2",
115-
"ethereumjs-tx": "^2.1.1",
118+
"ethereumjs-tx": "^2.1.2",
116119
"ethers": "^5.0.18",
117120
"ethjs-signer": "^0.1.1",
118-
"ganache-cli": "^6.7.0",
119-
"jshint": "^2.10.2",
120-
"karma": "^5.1.0",
121+
"ganache-cli": "^6.12.0",
122+
"jshint": "^2.12.0",
123+
"karma": "^5.2.3",
121124
"karma-browserify": "^7.0.0",
122125
"karma-chrome-launcher": "^3.1.0",
123-
"karma-firefox-launcher": "^1.2.0",
126+
"karma-firefox-launcher": "^1.3.0",
124127
"karma-mocha": "^2.0.1",
125128
"karma-spec-reporter": "0.0.32",
126-
"lerna": "^3.20.2",
127-
"mocha": "^6.2.1",
129+
"lerna": "^3.22.1",
130+
"mocha": "^6.2.3",
128131
"nyc": "^14.1.1",
129132
"pify": "^4.0.1",
130-
"sandboxed-module": "^2.0.3",
133+
"sandboxed-module": "^2.0.4",
131134
"ts-node": "^8.10.2",
132-
"typescript": "^3.9.5",
135+
"typescript": "^3.9.7",
133136
"underscore": "1.9.1",
134-
"wait-port": "^0.2.6",
135-
"webpack": "^4.43.0",
137+
"wait-port": "^0.2.9",
138+
"webpack": "^4.44.2",
136139
"webpack-cli": "^3.3.12"
137140
},
138141
"dependencies": {}

0 commit comments

Comments
 (0)