-
Notifications
You must be signed in to change notification settings - Fork 721
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
Test P<>K bridge-init calls using chopsticks #3522
Comments
We can simulate an approved preimage in chopsticks with something like this:
|
Looks like there is this tool that can be used for forking-off chains: https://github.com/hack-ink/subalfred Trying to experiment with it a bit. The plan would be to:
|
If you can list all the RPCs used by relayer, we maybe able to provide a mock implementation in Chopsticks |
@xlc thank you, it would be great if you could provide mock implementations in chopsticks. As far as I can tell there are only 2 additional RPCs that we would need apart from what is already available (@svyatonik please correct me if I'm wrong):
Do you think this would be doable ? |
The full set of RPC calls we use is quite large: https://github.com/paritytech/parity-bridges-common/blob/polkadot-staging/relays/client-substrate/src/rpc.rs#L37-L170 (everything except BEEFY). |
I think it is doable. However, Chopsticks is only a mocking client that doesn't actually finalize blocks using grandpa/beefy protocol so that it cannot provide real justifications. There are two possible solutions:
Let me know what do you think. Also opened a tracking issue at Chopsticks AcalaNetwork/chopsticks#681 |
Thanks for the answer ! Moved the discussion to AcalaNetwork/chopsticks#681 |
Closing this issue since the Polkadot <> Kusama bridge has been initialized |
We should test the bridge-init calls using chopsticks before actually executing them
Submitting the calls and checking the effects on the storage would be a first step.
With chopsticks we won't be able to run the relayer, since chopsticks doesn't come with the grandpa subscriptions and many RPCs. So as a second step it would be nice if we could take the forked chains and run them in zombienet somehow.
The text was updated successfully, but these errors were encountered: