Skip to content

Commit def0d40

Browse files
authored
[TKN-742] improve initial setup (#1120)
1 parent 63e7c93 commit def0d40

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.changeset/good-beds-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@orca-so/whirlpools-program": patch
3+
---
4+
5+
Improve repository setup

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
steps:
4242
- name: Checkout repository
4343
uses: actions/checkout@v5
44+
- name: Remove Unnecessary Files
45+
uses: ./.github/actions/cleanup
4446
- name: Setup Anchor
4547
uses: ./.github/actions/anchor
4648
- name: Install dependencies

programs/whirlpool/src/constants/nft.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use anchor_lang::prelude::*;
22

33
pub mod whirlpool_nft_update_auth {
44
use super::*;
5-
declare_id!("3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr");
5+
pub static ID: Pubkey = solana_program::pubkey!("3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr");
66
}
77

88
// Based on Metaplex TokenMetadata

scripts/setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo "Detected: $OS"
2828
if [[ "$OS" == "Linux" ]]; then
2929
echo "=== Updating system packages (Linux) ==="
3030
sudo apt-get update && sudo apt-get upgrade -y
31-
sudo apt-get install -y build-essential pkg-config libssl-dev curl git
31+
sudo apt-get install -y build-essential pkg-config libudev-dev libssl-dev curl git
3232
elif [[ "$OS" == "Mac" ]]; then
3333
echo "=== Installing Xcode Command Line Tools ==="
3434
xcode-select --install || true
@@ -73,5 +73,8 @@ rustup default ${RUST_VERSION_FOR_PROJECT}
7373
cd "$REPO_ROOT"
7474
yarn install
7575
yarn build
76+
# NOTE: without this, most of the auto-generated code in `ts-sdk/client` is shown as unstaged,
77+
# even though there are no meaningful changes
78+
yarn format
7679

7780
echo "=== Setup complete ==="

0 commit comments

Comments
 (0)