-
Notifications
You must be signed in to change notification settings - Fork 0
Fork runtime state PoC #2
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
base: master
Are you sure you want to change the base?
Conversation
|
The approach will very much need to change if we take into account lazy loading. Moreover, this prototype is currently not really forking. It's downloading the state and injecting it into the chainspec as the genesis state and starting the chain from scratch. Things like the block number that the chain is currently at will be lost. |
|
I was playing with this a bit today, what is currently supposed to work? I was not able to fork anything. Tried with a local zombienet. |
My bad @skunert, how-to run to the PR description |
* add lint cmd, variable lints * wip * wip * wip * wip * wip * wip * add keccak256 opt test * wip * wip * wip * wip * fix div before mul * update lint args * wip * update declare lints macro * update with_severity * configure linter * wip * update hash value * fix read in source * rayon * reorder lint declarations * clippy * add placeholder for additional lints * more placeholders * wip * wip * refactor into sol linter * impl Linter for SolidityLinter * fmt * wip * wip * refactor lints into SolLint enum * update lint trait * wip * wip * wip * wip * wip * update lint * update forge lint to use ProjectLinter * wip * include/exclude files from linting * linter output display note * configure with severity and description * fmt * implementing display * wip * wip * implement display for linter output, clippy fixes * add note to update colors * update linter output display * remove todos, clean up comments * clean up display * update med finding color * add optional help message * display help message * simplify lint args, make severity configurable * updating lints, update tests * add tests for info patterns, fix regex * remove function mixed case * doc comments * clippy * fmt * reorganize, crate level docs * fix info lints * Use Solar daignostics instead of `LinterOutput` (#6) * use solar diagnostics, remove unneeded types * update diagnostic emission * clippy * set track daignostics to false * display help message * set level according to severity * update descriptions to be more concise * removed LinterError from lint trait * early pass + tests * fix: fmt + clippy * fix: fmt + clippy * fix: fmt + clippy * fix: fmt + clippy * fix: feedback * fix: feedback * fix: regex Co-authored-by: zerosnacks <[email protected]> * tests: cli integration * fix: broken test * fix: fmt Co-authored-by: DaniPopes <[email protected]> * style: naming Co-authored-by: DaniPopes <[email protected]> * style: fmt Co-authored-by: DaniPopes <[email protected]> * fix: use heck + individual lint macros + housekeeping * fix: single session with parallel linting per file * style: fix docs errors + typos * docs: ref to deleted field * fix: preprocessor regression + cargo.toml + default lint config tests * test(forge): solar test runner (#2) * style: clippy * typo Co-authored-by: DaniPopes <[email protected]> * fix: housekeeping * docs: linter docs for users + devs * docs: style * docs: style * clone lint testdata with lf * fix: out dir constructor * update toml * fix: merge conflicts * fix: cargo.lock merge conflicts * style: clippy * style: whitespace * fix: clippy * Cargo.lock update to weekly task * Preserve alloy patch placeholders * Clippy --------- Co-authored-by: 0xKitsune <[email protected]> Co-authored-by: 0xKitsune <[email protected]> Co-authored-by: zerosnacks <[email protected]> Co-authored-by: DaniPopes <[email protected]> Co-authored-by: grandizzy <[email protected]> Co-authored-by: grandizzy <[email protected]>
917d0c5 to
bca5547
Compare
d2e00bb to
0670fdd
Compare
1930a49 to
ec0ddaa
Compare
Motivation
Solution
PR Checklist
Run PoC
Current PoC debug setup is suppose to be run with a westend AssetHub using zombinets:
Install zombinets:
https://github.com/paritytech/zombienet
install polkadot-parachain executable
zombienet setup polkadot polkadot-parachain. (u can leave them localy or move to PATH)Download config:
curl https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/master/cumulus/zombienet/examples/asset_hub_westend_local_network.toml > asset-hub_westend_zombient.tomlReplace executable cmd for
polkadotandpolkadot-parachaininasset-hub_westend_zombient.tomlfile to much yuur PATHRun zombienet
zombienet spawn --provider native asset-hub_westend_zombient.tomlFind Asset hub RPC Url in starting logs (useually takes around 5 mints to start) It will be uner the sign
│ Westend Asset Hub Local ⚙ Added Boot Nodesjust take the first one, in my case it was dave-1 and link is provided in the very end of logs in Nodes informationhttps://polkadot.js.org/apps/?rpc=ws://127.0.0.1:54439#/explorerRun forking
cargo run -p anvil-polkadot -- --fork-url http://127.0.0.1:54439