-
Notifications
You must be signed in to change notification settings - Fork 773
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
Bridge testing: Add manual test for P<>K asset transfer #3429
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
99babfd
Add support for AHP local and AHK local
serban300 cfdefdb
Add P<>K test
serban300 6c9218c
Update README.md
serban300 6306e36
Renamings
serban300 2564a33
increase timeouts
serban300 750779b
Add Alice as BridgeOwner
serban300 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
bridges/testing/environments/polkadot-kusama/bridge_hub_kusama_local_network.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
[settings] | ||
node_spawn_timeout = 240 | ||
|
||
[relaychain] | ||
default_command = "{{POLKADOT_BINARY}}" | ||
default_args = ["-lparachain=debug,xcm=trace"] | ||
chain = "kusama-local" | ||
chain_spec_command = "{{CHAIN_SPEC_GEN_BINARY}} {% raw %} {{chainName}} {% endraw %}" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
rpc_port = 9935 | ||
ws_port = 9945 | ||
balance = 2000000000000 | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
rpc_port = 9936 | ||
ws_port = 9946 | ||
balance = 2000000000000 | ||
|
||
[[relaychain.nodes]] | ||
name = "charlie" | ||
validator = true | ||
rpc_port = 9937 | ||
ws_port = 9947 | ||
balance = 2000000000000 | ||
|
||
[[parachains]] | ||
id = 1000 | ||
chain = "asset-hub-kusama-local" | ||
chain_spec_command = "{{CHAIN_SPEC_GEN_BINARY}} {% raw %} {{chainName}} {% endraw %}" | ||
cumulus_based = true | ||
|
||
[[parachains.collators]] | ||
name = "asset-hub-kusama-collator-1" | ||
rpc_port = 9011 | ||
ws_port = 9010 | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
args = [ | ||
"-lparachain=debug,xcm=trace,runtime::bridge-transfer=trace" | ||
] | ||
|
||
[[parachains.collators]] | ||
name = "asset-hub-kusama-collator-2" | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
args = [ | ||
"-lparachain=debug,xcm=trace,runtime::bridge-transfer=trace" | ||
] | ||
|
||
[[parachains]] | ||
id = 1002 | ||
chain = "bridge-hub-kusama-local" | ||
chain_spec_command = "{{ENV_PATH}}/generate_bh_spec.sh Polkadot {% raw %} {{chainName}} {% endraw %}" | ||
cumulus_based = true | ||
|
||
# run alice as parachain collator | ||
[[parachains.collators]] | ||
name = "bridge-hub-kusama-collator-1" | ||
validator = true | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
rpc_port = 8935 | ||
ws_port = 8945 | ||
args = [ | ||
"-lparachain=debug,runtime::mmr=info,substrate=info,runtime=info,runtime::bridge-hub=trace,runtime::bridge=trace,runtime::bridge-dispatch=trace,bridge=trace,runtime::bridge-messages=trace,xcm=trace" | ||
] | ||
|
||
# run bob as parachain collator | ||
[[parachains.collators]] | ||
name = "bridge-hub-kusama-collator-2" | ||
validator = true | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
rpc_port = 8936 | ||
ws_port = 8946 | ||
args = [ | ||
"-lparachain=trace,runtime::mmr=info,substrate=info,runtime=info,runtime::bridge-hub=trace,runtime::bridge=trace,runtime::bridge-dispatch=trace,bridge=trace,runtime::bridge-messages=trace,xcm=trace" | ||
] |
77 changes: 77 additions & 0 deletions
77
bridges/testing/environments/polkadot-kusama/bridge_hub_polkadot_local_network.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[settings] | ||
node_spawn_timeout = 240 | ||
|
||
[relaychain] | ||
default_command = "{{POLKADOT_BINARY}}" | ||
default_args = ["-lparachain=debug,xcm=trace"] | ||
chain = "polkadot-local" | ||
chain_spec_command = "{{CHAIN_SPEC_GEN_BINARY}} {% raw %} {{chainName}} {% endraw %}" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
rpc_port = 9932 | ||
ws_port = 9942 | ||
balance = 2000000000000 | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
rpc_port = 9933 | ||
ws_port = 9943 | ||
balance = 2000000000000 | ||
|
||
[[relaychain.nodes]] | ||
name = "charlie" | ||
validator = true | ||
rpc_port = 9934 | ||
ws_port = 9944 | ||
balance = 2000000000000 | ||
|
||
[[parachains]] | ||
id = 1000 | ||
chain = "asset-hub-polkadot-local" | ||
chain_spec_command = "{{CHAIN_SPEC_GEN_BINARY}} {% raw %} {{chainName}} {% endraw %}" | ||
cumulus_based = true | ||
|
||
[[parachains.collators]] | ||
name = "asset-hub-polkadot-collator-1" | ||
rpc_port = 9911 | ||
ws_port = 9910 | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
args = [ | ||
"-lparachain=debug,xcm=trace,runtime::bridge-transfer=trace" | ||
] | ||
|
||
[[parachains.collators]] | ||
name = "asset-hub-polkadot-collator-2" | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
args = [ | ||
"-lparachain=debug,xcm=trace,runtime::bridge-transfer=trace" | ||
] | ||
|
||
[[parachains]] | ||
id = 1002 | ||
chain = "bridge-hub-polkadot-local" | ||
chain_spec_command = "{{ENV_PATH}}/generate_bh_spec.sh Kusama {% raw %} {{chainName}} {% endraw %}" | ||
cumulus_based = true | ||
|
||
[[parachains.collators]] | ||
name = "bridge-hub-polkadot-collator-1" | ||
validator = true | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
rpc_port = 8933 | ||
ws_port = 8943 | ||
args = [ | ||
"-lparachain=debug,runtime::bridge-hub=trace,runtime::bridge=trace,runtime::bridge-dispatch=trace,bridge=trace,runtime::bridge-messages=trace,xcm=trace" | ||
] | ||
|
||
[[parachains.collators]] | ||
name = "bridge-hub-polkadot-collator-2" | ||
validator = true | ||
command = "{{POLKADOT_PARACHAIN_BINARY}}" | ||
rpc_port = 8934 | ||
ws_port = 8944 | ||
args = [ | ||
"-lparachain=trace,runtime::bridge-hub=trace,runtime::bridge=trace,runtime::bridge-dispatch=trace,bridge=trace,runtime::bridge-messages=trace,xcm=trace" | ||
] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You could use a
sudofi
to add pallet to runtimes. For chain specs, maybe: maybe we could patchchain-spec-generator
for that? I.e. addsudo
feature? Alternatively, we could prepare a chain spec patch and ajq
call to patch chain spec, generated bychain-spec-generator
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.
(also: please do not consider this as a requirement - the current version looks good as is, but we may improve it in the future)
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.
Thanks for the suggestion. I didn't know about
sudofi
. Will try.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.
sudofi
doesn't seem to work correctly on theruntimes
repo, and I'm not sure if we could patch the chain spec. For example I don't know if we could open the HRMP channels by patching the chain spec. I would keep this step manual for the moment and maybe improve it in the future.