From 5f01fe2f10c3b9869af94fe7bbf05b85e3411c46 Mon Sep 17 00:00:00 2001 From: Valentine Reese Date: Thu, 8 Feb 2024 15:46:27 +0800 Subject: [PATCH 1/2] add script for connecting to remote starcoin node --- scripts/starcoin.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 scripts/starcoin.sh diff --git a/scripts/starcoin.sh b/scripts/starcoin.sh new file mode 100755 index 0000000..9fd3d9c --- /dev/null +++ b/scripts/starcoin.sh @@ -0,0 +1,31 @@ +#!/bin/bash +function usage() { + echo -e "usage: astarcoin net" + echo -e "net is main, barnard, proxima, halley" + echo -e "to_dir like ~/.starcoin/main, ~/.starcoin/barnard, ~/.starcoin/proxima" +} + +function connect_node() { + net=$1 + account_dir=$2 + ws_url="ws://$net.seed.starcoin.org:9870" + echo -e "starcoin --connect $ws_url --local-account-dir $account_dir console" + starcoin --connect "$ws_url" --local-account-dir "$account_dir" console +} + +if [ $# != 2 ]; then + usage + exit 1 +fi +net=$1 +to_dir=$2 +account_dir="$to_dir/account_vaults" +case $net in +"main" | "barnard" | "proxima" |"halley") + connect_node "$net" "$account_dir" + ;; +*) + echo "$net not supported" + usage + ;; +esac \ No newline at end of file From 4f823db70ea10d1192e084a72904d5e624f15100 Mon Sep 17 00:00:00 2001 From: Valentine Reese Date: Thu, 8 Feb 2024 15:47:08 +0800 Subject: [PATCH 2/2] change version number --- Move.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Move.toml b/Move.toml index 097c29e..e49d61b 100644 --- a/Move.toml +++ b/Move.toml @@ -1,6 +1,6 @@ [package] name = "Starswap-Core" -version = "2.0.5" +version = "2.0.6" [addresses] StarcoinFramework = "0x1"