@@ -16,7 +16,7 @@ JAVA_VERS="11.0.18_10"
16
16
ARCHWAY_VERS=" 7.0.0"
17
17
INJECTIVE_VERS=" 1.12.1-1705909076"
18
18
NEUTRON_VERS=" 3.0.2"
19
- SUI_VERS=" mainnet-v1.25 .1"
19
+ SUI_VERS=" mainnet-v1.30 .1"
20
20
21
21
set -x
22
22
export GOROOT=/usr/local/go
@@ -64,6 +64,7 @@ systemctl enable auditd
64
64
systemctl start auditd
65
65
66
66
67
+
67
68
# Configure auditd
68
69
echo ' -a always,exit -F arch=b64 -S execve -k command-exec
69
70
-a always,exit -F arch=b32 -S execve -k command-exec' >> /etc/audit/audit.rules
98
99
chmod +x clone.expect
99
100
git config --global credential.helper " cache --timeout=604800"
100
101
./clone.expect " $CI_USER " " $GITHUB_ACCESS_TOKEN "
101
- CI_USER_ESCAPED=" $$ {CI_USER//@/%40}"
102
- echo -e " [credential]\n\thelper = store" >> ~ /.gitconfig
103
- echo " https://$$ {CI_USER_ESCAPED}.com :$$ {GITHUB_ACCESS_TOKEN}@gihub.com" > ~ /.git-credentials
102
+ # CI_USER_ESCAPED="$${CI_USER//@/%40}"
103
+ # echo -e "[credential]\n\thelper = store" >> ~/.gitconfig
104
+ # echo "https://$${CI_USER_ESCAPED}:$${GITHUB_ACCESS_TOKEN}@gihub.com" > ~/.git-credentials
104
105
105
106
cd /opt/deployer/root/ibc-devops
106
107
git checkout $$ {DEPLOY_SCRIPT_BRANCH}
@@ -136,8 +137,8 @@ tar xf OpenJDK11U-jdk_x64_linux_hotspot_$${JAVA_VERS}.tar.gz -C /opt/java
136
137
go install github.com/icon-project/goloop/cmd/goloop@latest
137
138
138
139
# Install archway
139
- wget -q https://github.com/archway-network/archway/releases/download/v$$ {ARCHWAY_VERS}/archwayd_ $$ {ARCHWAY_VERS}_linux_amd64.zip
140
- unzip archwayd_ $$ {ARCHWAY_VERS}_linux_amd64.zip
140
+ wget -q https://github.com/archway-network/archway/releases/download/v$$ {ARCHWAY_VERS}/archwayd_v $$ {ARCHWAY_VERS}_linux_amd64.zip
141
+ unzip archwayd_v $$ {ARCHWAY_VERS}_linux_amd64.zip
141
142
sudo cp archwayd /usr/local/bin
142
143
143
144
# Install injectived
@@ -164,13 +165,57 @@ sudo chmod a+x /usr/local/bin/dasel
164
165
165
166
# Install boto3, yq, and jq
166
167
apt-get install python3-pip -y
167
- pip3 install boto3
168
+ pip3 install boto3 pwinput
168
169
apt-get install jq -y
169
170
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
170
171
chmod +x /usr/local/bin/yq
171
172
173
+ # # Install rust
174
+ echo " Installing cargo"
175
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh
176
+
177
+ cat << 'EOF ' > cargo.expect
178
+ #!/usr/bin/expect
179
+ set timeout -1
180
+ spawn sh rustup-init.sh
181
+ expect "1) Proceed with standard installation (default - just press enter)"
182
+ send "\r"
183
+ expect {
184
+ "2) Customize installation" {
185
+ send "\r"
186
+ exp_continue
187
+ }
188
+ "3) Cancel installation" {
189
+ send "\r"
190
+ exp_continue
191
+ }
192
+ eof
193
+ }
194
+ EOF
195
+
196
+ chmod +x cargo.expect
197
+ ./cargo.expect
198
+
172
199
cd -
173
200
201
+ # Create sui client config
202
+ mkdir -p /root/.sui/sui_config
203
+ cat << EOF > /root/.sui/sui_config/sui.keystore
204
+ keystore:
205
+ File: /root/.sui/sui_config/sui.keystore
206
+ envs:
207
+ - alias: testnet
208
+ rpc: "https://fullnode.testnet.sui.io:443"
209
+ ws: ~
210
+ basic_auth: ~
211
+ - alias: mainnet
212
+ rpc: "https://fullnode.mainnet.sui.io:443"
213
+ ws: ~
214
+ basic_auth: ~
215
+ active_env: mainnet
216
+ active_address: "0x539c665cd9899d040c56756df8f7ed34649ab6aeae28da5cb07d3274dc9f9d36"
217
+ EOF
218
+
174
219
# Configure sudo
175
220
echo ' deployr ALL=(ALL) NOPASSWD: /opt/deployer/bin/run.sh
176
221
deployr ALL=(ALL) NOPASSWD: /opt/deployer/bin/fetch_keys.sh
@@ -188,5 +233,17 @@ alias pull-deploy-script='sudo /opt/deployer/bin/update_git.sh'
188
233
alias check-env='sudo /opt/deployer/bin/check-parameter.sh'
189
234
alias make='sudo /opt/deployer/bin/deploy.sh'" >> $$ {DEPLOYR_HOME}/.bashrc
190
235
236
+ chmod +x /opt/deployer/root/keyutils/add_secret.sh
237
+ echo " ## Aliases
238
+ alias add-secrets='/opt/deployer/root/keyutils/add_secret.sh'" >> /root/.bashrc
239
+
240
+ # # Install solana
241
+ source " /root/.cargo/env"
242
+
243
+ export PATH=$$ {PATH}:/root/.cargo/bin
244
+
245
+ sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
246
+ /root/.cargo/bin/cargo install --git https://github.com/coral-xyz/anchor avm --locked --force || true
247
+ avm install 0.30.1 ||
191
248
chmod 400 /tmp/user_data_log.out || true
192
249
0 commit comments