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

Tung/hyperspace #20

Open
wants to merge 4 commits into
base: feat/sdk50
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ ictest-push-wasm:

include contrib/make/release.mk


test-upgrade: clean-testing-data
@echo "Starting upgrade test"
./scripts/tweak-test-upgrade.sh
Expand Down
20 changes: 20 additions & 0 deletions scripts/relayer_hyperspace/config-chain-a.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type = "cosmos"
name = "centauri"
rpc_url = "http://127.0.0.1:26657/"
grpc_url = "http://127.0.0.1:9090/"
websocket_url = "ws://127.0.0.1:26657/websocket"
chain_id = "centauri-dev"
client_id = "07-tendermint-0"
connection_id = "connection-0"
account_prefix = "centauri"
fee_denom = "upica"
fee_amount = "10000000000000000"
gas_limit = 9223372036854775806
store_prefix = "ibc"
max_tx_size = 20000000
wasm_code_id = "58c7623a3ab78f4cb2e4c5d02876ac36c3b38bb472118173a7ec7faa688a66d2"
channel_whitelist = [["channel-0", "transfer"]]
mnemonic = "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
skip_optional_client_updates = false
max_packets_to_process = 50
skip_tokens_list = []
13 changes: 13 additions & 0 deletions scripts/relayer_hyperspace/config-chain-b.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type = "picasso_kusama"
name = "picasso_dev"
para_id = 2087
parachain_rpc_url = "ws://127.0.0.1:9988"
relay_chain_rpc_url = "ws://127.0.0.1:9944"
client_id = "08-wasm-0"
connection_id = "connection-0"
commitment_prefix = "0x6962632f"
private_key = "//Alice"
ss58_version = 49
channel_whitelist = [["channel-0", "transfer"]]
finality_protocol = "Grandpa"
key_type = "sr25519"
1 change: 1 addition & 0 deletions scripts/relayer_hyperspace/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prometheus_endpoint = "https://127.0.0.1"
15 changes: 15 additions & 0 deletions scripts/relayer_hyperspace/config_relayer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# create client
../composable-ibc/target/release/hyperspace create-clients --config-a ./scripts/relayer_hyperspace/config-chain-a.toml --config-b ./scripts/relayer_hyperspace/config-chain-b.toml --config-core ./scripts/relayer_hyperspace/config.toml --delay-period 10

# # create connection
# ../composable-ibc/target/release/hyperspace create-connection --config-a ./scripts/relayer_hyperspace/config-chain-a.toml --config-b ./scripts/relayer_hyperspace/config-chain-b.toml --config-core ./scripts/relayer_hyperspace/config.toml --delay-period 1 --port-id transfer --order unordered

# # create channel
# ../composable-ibc/target/release/hyperspace create-channel --config-a ./scripts/relayer_hyperspace/config-chain-a.toml --config-b ./scripts/relayer_hyperspace/config-chain-b.toml --config-core ./scripts/relayer_hyperspace/config.toml --delay-period 0 --port-id tranfer --order unordered --version ics20-1

# # start relayer
# ../composable-ibc/target/release/hyperspace relay --config-a ./scripts/relayer_hyperspace/config-chain-a.toml --config-b ./scripts/relayer_hyperspace/config-chain-b.toml --config-core ./scripts/relayer_hyperspace/config.toml --delay-period 1 --port-id transfer --order unordered --version ics20-1

# # send ibc
# centaurid tx ibc-transfer transfer transfer channel-0 --chain-id test-1 5yNZjX24n2eg7W6EVamaTXNQbWCwchhThEaSWB7V3GRjtHeL 100stake
6 changes: 6 additions & 0 deletions scripts/tweak-test-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ screen -dms old-node bash scripts/localnode.sh _build/old/centaurid $DENOM

sleep 2 # wait for note to start

docker run -d --publish 38391:38391 --publish 9988:9988 --publish 9944:9944 --publish 34165:34165 composablefi/devnet-picasso

# execute additional pre scripts
if [ ! -z "$ADDITIONAL_PRE_SCRIPTS" ]; then
# slice ADDITIONAL_SCRIPTS by ,
Expand All @@ -81,6 +83,10 @@ if [ ! -z "$ADDITIONAL_PRE_SCRIPTS" ]; then
done
fi

bash scripts/relayer_hyperspace/config_relayer.sh

# Wait parachain to start
sleep 10

run_fork () {
echo "forking"
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/v6_to_7/post_08_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
KEY="mykey"
KEYALGO="secp256k1"
KEYRING="test"
HOME_DIR="mytestnet"
HOME_DIR=mytestnet


sleep 2
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/v6_to_7/pre_08_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
KEY="mykey"
KEYALGO="secp256k1"
KEYRING="test"
HOME_DIR="mytestnet"
HOME_DIR=mytestnet



Expand Down
Loading