Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

feat(rpc): Backend Scaffolding #244

Merged
merged 42 commits into from
Feb 23, 2023
Merged

feat(rpc): Backend Scaffolding #244

merged 42 commits into from
Feb 23, 2023

Conversation

itsdevbear
Copy link

No description provided.

@itsdevbear itsdevbear requested a review from calbera February 20, 2023 00:41
@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Merging #244 (3fb733d) into main (ab364c7) will decrease coverage by 7.44%.
The diff coverage is 22.98%.

❗ Current head 3fb733d differs from pull request most recent head 1e76203. Consider uploading reports for the commit 1e76203 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #244      +/-   ##
==========================================
- Coverage   87.72%   80.28%   -7.44%     
==========================================
  Files          53       59       +6     
  Lines        2101     2283     +182     
==========================================
- Hits         1843     1833      -10     
- Misses        214      402     +188     
- Partials       44       48       +4     
Flag Coverage Δ
integration 7.05% <3.44%> (-1.90%) ⬇️
unit 73.71% <21.83%> (-5.30%) ⬇️
Impacted Files Coverage Δ
eth/core/chain.go 0.00% <0.00%> (ø)
eth/core/chain_reader.go 0.00% <0.00%> (ø)
x/evm/plugins/block/historical_data.go 0.00% <0.00%> (ø)
x/evm/plugins/configuration/genesis.go 0.00% <0.00%> (ø)
x/evm/types/codec.go 0.00% <0.00%> (ø)
x/evm/types/tx_helper.go 0.00% <0.00%> (ø)
x/evm/plugins/configuration/plugin.go 47.05% <20.00%> (-6.28%) ⬇️
eth/core/types/block.go 68.75% <38.88%> (-22.92%) ⬇️
x/evm/types/tx.go 39.53% <39.53%> (ø)
store/offchain/store.go 50.00% <50.00%> (ø)
... and 8 more

@itsdevbear
Copy link
Author

@calbera first pass, need to figure out a better place to spin up the RPC server.

The problem, is on intialization of the TransactionAPI, it needs to go get the chainconfig, which means the configuration plugin must be "prepared" already.

@itsdevbear
Copy link
Author

itsdevbear commented Feb 20, 2023

other than that minor headache, it works and clicks together nicely. So once we figure out a solution to that, knocks on wood basically should just be plug and play lego pieces from here on out

@itsdevbear
Copy link
Author

image


// `CurrentHeader` returns the current header from the local chain.
func (b *backend) CurrentHeader() *types.Header {
return b.chain.CurrentHeader().Header
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs nil check

transmissions12 and others added 9 commits February 21, 2023 16:42
Signed-off-by: t12s <118035857+transmissions12@users.noreply.github.com>
Co-authored-by: Devon Bear <itsdevbear@berachain.com>
@itsdevbear
Copy link
Author

Added TxPool Scaffolding and Tx Proto

@itsdevbear
Copy link
Author

image

@itsdevbear
Copy link
Author

Add caching

@itsdevbear itsdevbear marked this pull request as ready for review February 23, 2023 17:09
@itsdevbear itsdevbear enabled auto-merge February 23, 2023 17:10
@itsdevbear itsdevbear disabled auto-merge February 23, 2023 17:17
@itsdevbear itsdevbear merged commit a00a09b into main Feb 23, 2023
@itsdevbear itsdevbear deleted the rpc-backend branch May 3, 2023 14:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants