Skip to content

Commit 31ab822

Browse files
authored
Merge branch 'MystenLabs:main' into feat-resuseSuiClient
2 parents 9824ab5 + 5e82e2d commit 31ab822

File tree

4 files changed

+29
-12
lines changed

4 files changed

+29
-12
lines changed

.github/workflows/deepbookv3-build-tx.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,28 @@ jobs:
4646
with:
4747
fetch-depth: 1
4848

49-
- name: Install Homebrew
49+
- name: Install Sui 1.62.1
5050
run: |
51-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
52-
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
53-
54-
- name: Install Sui using Homebrew
55-
run: brew install sui
51+
echo "Installing Sui 1.62.1..."
52+
mkdir -p $HOME/sui-bin
53+
SUI_URL="https://github.com/MystenLabs/sui/releases/download/mainnet-v1.62.1/sui-mainnet-v1.62.1-macos-x86_64.tgz"
54+
echo "Downloading Sui from $SUI_URL"
55+
# Use curl with fail flag and check response
56+
HTTP_STATUS=$(curl -o sui.tar.gz -w "%{http_code}" -L $SUI_URL)
57+
if [[ "$HTTP_STATUS" -ne 200 ]]; then
58+
echo "Error: Failed to download Sui. HTTP Status: $HTTP_STATUS"
59+
exit 1
60+
fi
61+
if ! file sui.tar.gz | grep -q "gzip compressed"; then
62+
echo "Error: Downloaded file is not a valid tar.gz archive."
63+
exit 1
64+
fi
65+
tar -xvzf sui.tar.gz -C $HOME/sui-bin
66+
chmod +x $HOME/sui-bin/sui
67+
echo "$HOME/sui-bin" >> $GITHUB_PATH
68+
export PATH="$HOME/sui-bin:$PATH"
69+
# Verify installation
70+
sui --version
5671
5772
- name: YAML Setup
5873
run: |

scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "",
1212
"license": "ISC",
1313
"dependencies": {
14-
"@mysten/deepbook-v3": "^0.26.1",
14+
"@mysten/deepbook-v3": "^0.26.2",
1515
"@mysten/sui": "^1.45.2",
1616
"dotenv": "^16.6.1",
1717
"esbuild": "^0.20.2",

scripts/pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/transactions/enableVersion.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import { getFullnodeUrl, SuiClient } from "@mysten/sui/client";
4040
dbClient.deepBookAdmin.updateAllowedVersions("WAL_SUI")(tx);
4141
dbClient.deepBookAdmin.updateAllowedVersions("XBTC_USDC")(tx);
4242
dbClient.deepBookAdmin.updateAllowedVersions("IKA_USDC")(tx);
43+
dbClient.deepBookAdmin.updateAllowedVersions("ALKIMI_SUI")(tx);
44+
dbClient.deepBookAdmin.updateAllowedVersions("LZWBTC_USDC")(tx);
4345

4446
let res = await prepareMultisigTx(tx, env, adminCapOwner[env]);
4547

0 commit comments

Comments
 (0)