-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add statemint as trustable chain for pendulum + integration tests #192
Add statemint as trustable chain for pendulum + integration tests #192
Conversation
add pendulum integration tests
configure pendulum runtime for xcm simulator
* finished configuration of polkadot + pendulum TestNet * add transfer_ksm_from_relay_chain_to_pendulum * add unit tests to integration * use xcm emulator instead of xcm simulator from polkadot repo. (#194) * transfer_polkadot_from_relay_chain_to_pendulum works
…fer Pendulum <-> Statemint (#196) * add statemint-runtime to integration tests * add Statemint to RelayNet as system chain 1000 * add statemine_transfer_asset_to_pendulum unit tests * check BOB balance in statemine_transfer_asset_to_pendulum test * add statemine_transfer_asset_to_statemint * rename statemine to statemint. because this is tests for polkadot net * add statemint_transfer_incorrect_asset_to_pendulum_fails * move pendulum and statemint configuration from lib.rs to setup.rs * move test from lib.rs to test.rs * move polkadot net configuration to polkadot_test_net * split tests, setup and polkadot_test_net to different files * remove unused import in all files * rename to pendulum-runtime-integration-tests * Revert "rename to pendulum-runtime-integration-tests" This reverts commit 2f18be6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good and has some very valuable changes. Great job @RustNinja 👍
I think I would restructure the folder, so that it is /runtime/integration-tests/src/pendulum
and not /runtime/integration-tests/pendulum/src
. Maybe we don't need to have that pendulum
subfolder anyways.
Also, @RustNinja I assume we would need to change the XCM config for amplitude as well to support non-native assets? Which XCM assets do we actually support with these changes, I suppose it's actually any asset from any chain that we have an open channel to?
* rename dot function ot one * refactor setup rs file * add #[cfg(test)] attribute for all modules * add comments about fees and rename TEN to TEN_UNITS * update comment and constants name to show what is it * wrap Parachain into X1 to have the same approach everywhere * update transfer_dot_from_pendulum_to_relay_chain assert statement * add. comment statemint_transfer_incorrect_asset_to_pendulum_should_fails * add comment statemint_transfer_asset_to_statemint * move use pendulum_runtime::{RuntimeEvent, System}; to top of the file
Here is the all changes that i made in one pr I would like to keep integration tests separate(in different packages) for each runtime(Pendulum/Amplitude/Foucoco).
@ebma Amplitude does not have any open channel with other chains. so we do not need to change xcm config for amplitude yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RustNinja so if I understand correctly, USDT (1984) is the only asset that will work because it's the only asset that we implemented a conversion for in the xcm_config
here?
Exactly. We declared here that we trust(support) as reserve backed assets only two multilocation:
no other assets until we get approval from product team. |
…table-chain-for-pendulum
make foucoco xcm config identical to pendulum runtime
Now that you added the changes to the Foucoco XCM config as well, maybe we should go ahead and change it also for Amplitude? Would it look any different for Amplitude compared to the other two? |
I added the changes to Foucoco to first upgrade foucoco runtime before Pendulum runtime upgrade and check that it will works with DOT transfer from relay chain to our chain and back. |
I see. Well, the reasoning makes sense, I would just be afraid that we miss or forget about it once we need it. But if there really is no need to have it on Amplitude yet then let's not add it there. |
PR related to #174 and #191
configure statemint runtime for MockNet.