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

ci: add sui key import script #884

Merged
merged 4 commits into from
Sep 20, 2024
Merged
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
21 changes: 18 additions & 3 deletions .github/deployer/init_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ set -x

cd /tmp
# Install go
sysctl -p
wget -q https://go.dev/dl/go$${GO_VERS}.linux-amd64.tar.gz
tar xf go$${GO_VERS}.linux-amd64.tar.gz -C /usr/local

Expand Down Expand Up @@ -235,15 +236,29 @@ alias make='sudo /opt/deployer/bin/deploy.sh'" >> $${DEPLOYR_HOME}/.bashrc

chmod +x /opt/deployer/root/keyutils/add_secret.sh
echo "## Aliases
alias add-secrets='/opt/deployer/root/keyutils/add_secret.sh'" >> /root/.bashrc
alias add-secrets='/opt/deployer/root/keyutils/add_secret.sh'
alias add-stellar-key='/opt/deployer/root/keyutils/add_stellar_key.sh'" >> /root/.bashrc

## Install solana
source "/root/.cargo/env"

export PATH=$${PATH}:/root/.cargo/bin
sh -c "$(curl -sSfL https://release.solana.com/v1.18.18/install)"

sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
/root/.cargo/bin/cargo install --git https://github.com/coral-xyz/anchor avm --locked --force || true
avm install 0.30.1 ||
chmod 400 /tmp/user_data_log.out || true
avm install 0.30.1 || true

echo "export PATH=$${PATH}:/root/.local/share/solana/install/releases/1.18.18/solana-release/bin" >> /root/.bashrc



## Install multisig
cargo install --git https://github.com/icon-project/cw-plus.git --branch feat/test-multisig cwmultisig

## Install Stellar
wget https://github.com/stellar/stellar-cli/releases/download/v21.4.1/stellar-cli-21.4.1-x86_64-unknown-linux-gnu.tar.gz
tar -xvzf stellar-cli-21.4.1-x86_64-unknown-linux-gnu.tar.gz
mv stellar /usr/local/bin/stellar

chmod 400 /tmp/user_data_log.out || true
6 changes: 6 additions & 0 deletions .github/deployer/sui_import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

ARCHWAY_KEY=$(archwayd keys export ibc_wallet --unsafe --unarmored-hex --keyring-backend test)
SUI_KEY=$(sui keytool convert $ARCHWAY_KEY --json | grep suiprivkey | awk -F\" '{print $4}')
rm -rf /root/.sui/sui_config/*
sui keytool import --alias sui_wallet_testnet $SUI_KEY ed25519 >/dev/null && echo "SUCCESS" || echo "FAILED"
Loading