Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM/EVM: Update and align README Documentation #2016

Merged
merged 11 commits into from
Jul 7, 2022
Merged

Conversation

holgerd77
Copy link
Member

WIP, will continue tomorrow on this.

@codecov
Copy link

codecov bot commented Jul 5, 2022

Codecov Report

Merging #2016 (c0156f2) into master (6618e55) will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

Flag Coverage Δ
block 84.30% <ø> (ø)
blockchain 80.06% <ø> (ø)
client 78.34% <ø> (ø)
common 95.03% <ø> (ø)
devp2p 82.38% <ø> (-0.40%) ⬇️
ethash 90.81% <ø> (ø)
evm 40.34% <ø> (ø)
statemanager 84.55% <ø> (ø)
trie 73.72% <ø> (ø)
tx 92.17% <ø> (ø)
util 87.03% <ø> (ø)
vm 78.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@holgerd77
Copy link
Member Author

Ok, this is now ready for review. 🙂

@holgerd77
Copy link
Member Author

(note that it likely makes sense to primarily (or at least: additionally) directly take a peek in the resulting EVM README and VM README files instead of comparing the diffs in this PR)

@holgerd77
Copy link
Member Author

Will admin-merge here since people are already getting confused by the state of the READMEs and submit unnecessary PRs, see #2023.

It would still be good if someone can give this a read.

@holgerd77 holgerd77 merged commit 5b1da6a into master Jul 7, 2022
@holgerd77 holgerd77 deleted the vm-evm-readme-updates branch July 7, 2022 08:30
@g11tech
Copy link
Contributor

g11tech commented Jul 7, 2022

LGTM! 🚀

@ScottyPoi ScottyPoi self-requested a review July 7, 2022 15:42
Copy link
Contributor

@ScottyPoi ScottyPoi left a comment

Choose a reason for hiding this comment

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

LGTM

I edited one sentence for an editing mistake, but very minor.


### Clique/PoA Chains
To ensure a unified interface the `EVM` provides a TypeScript `EEI` interface providing which includes the necessary function signatures for access to environmental parameters as well as the VM state.
Copy link
Contributor

Choose a reason for hiding this comment

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

To ensure a unified interface the EVM provides a TypeScript EEI interface which includes the necessary function signatures for access to environmental parameters as well as the VM state.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, have added these tasks to the newly revived "Tiny Fixes Meta Issue" issue #2032 🙂, since otherwise too small left-overs to address separately.

const common = new Common({ chain: Chain.Goerli })
const hardforkByBlockNumber = true
const vm = new VM({ common, hardforkByBlockNumber })
To build the EVM for standalone use in the browser, see: [Running the EVM in a browser](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/evm/examples/run-code-browser.js).
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not currently work, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, you're right, we should give a short mention.

@holgerd77 holgerd77 mentioned this pull request Jul 11, 2022
13 tasks
@holgerd77 holgerd77 mentioned this pull request Aug 5, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants