You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,19 +42,27 @@ This monorepo contains all the code needed to build, deploy and interact with th
42
42
43
43
### Getting Started
44
44
45
-
These instructions are for setting up a development environment on a Mac. If you are using a different operating system, you will need to adjust the instructions accordingly.
46
-
47
-
* Install NodeJS and gcc-12 using `brew install node gcc@12`.
48
-
* Add gcc-12 headers to your cpath using `export CPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"`.
49
-
* Install Rust lang using `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`.
50
-
* Install the Solana CLI using `curl -sSfL https://release.solana.com/v1.17.22/install | sh`.
51
-
* Add the Solana CLI to your path using `export PATH="/Users/$(whoami)/.local/share/solana/install/active_release/bin:$PATH"`.
52
-
* Install Anchor version manager using `cargo install --git https://github.com/coral-xyz/anchor avm --locked --force`.
53
-
* Install the latest Anchor version using `avm install 0.29.0 && avm use 0.29.0`.
54
-
* Clone this repository using `git clone https://github.com/orca-so/whirlpools`.
55
-
* Install the dependencies using `yarn`.
56
-
* Set up a Solana wallet if you don't have one already (see below).
57
-
* Run one of the commands below to get started such as `yarn build`.
45
+
#### Automated Setup Script
46
+
47
+
For a complete development environment setup, use the provided setup script:
48
+
49
+
```bash
50
+
chmod +x scripts/setup.sh
51
+
./scripts/setup.sh
52
+
```
53
+
54
+
This script installs all required dependencies and builds the project. It's designed for fresh environments (cloud VMs, containers, new machines) and doesn't check for existing versions. The script also serves as a reference for understanding which dependencies are needed at each stage.
55
+
56
+
#### Manual Setup
57
+
58
+
If you prefer manual installation or already have some dependencies:
0 commit comments