Skip to content

Commit 1e79b31

Browse files
authored
apply remaining updates for anchor upgrade (#1111)
1 parent 3d49b17 commit 1e79b31

File tree

32 files changed

+79
-75
lines changed

32 files changed

+79
-75
lines changed

.github/actions/anchor/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ inputs:
2121
default: 'v22.8.0'
2222
solana-version:
2323
description: 'The version of solana to use.'
24-
default: 'v1.17.25'
24+
default: 'v2.1.0'
2525
anchor-version:
2626
description: 'The version of anchor to use.'
27-
default: 'v0.29.0'
27+
default: 'v0.31.1'
2828

2929
runs:
3030
using: "composite"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ This monorepo contains all the code needed to build, deploy and interact with th
3737

3838
### Requirements
3939

40-
- Anchor v0.29.0
41-
- Solana v1.17.22
40+
- Anchor v0.31.1
41+
- Solana v2.1.0
4242

4343
### Getting Started
4444

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: whirlpools
33
services:
44

55
build-solana-program:
6-
image: backpackapp/build:v0.29.0
6+
image: backpackapp/build:v0.31.1
77
working_dir: /usr/src/whirlpools
88
command: >
99
anchor build

docs/rust/Cargo.lock

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

docs/whirlpool/docs/03-SDKs/02-Environment Setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In your project, run:
1616
\`\`\`bash
1717
yarn add "@orca-so/whirlpools-sdk"
1818
yarn add "@orca-so/common-sdk"
19-
yarn add "@coral-xyz/anchor@0.29.0"
19+
yarn add "@coral-xyz/anchor@0.31.1"
2020
yarn add "@solana/web3.js"
2121
yarn add "@solana/spl-token"
2222
yarn add "decimal.js"
@@ -250,7 +250,7 @@ This document covers the essential setup required to start building on Orca's SD
250250
```bash
251251
yarn add "@orca-so/whirlpools-sdk"
252252
yarn add "@orca-so/common-sdk"
253-
yarn add "@coral-xyz/anchor@0.29.0"
253+
yarn add "@coral-xyz/anchor@0.31.1"
254254
yarn add "@solana/web3.js"
255255
yarn add "@solana/spl-token"
256256
yarn add "decimal.js"

docs/whirlpool/docs/05-Examples/02-CPI.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The classic `@solana/web3.js` implementation with Anchor provides:
7171

7272
### Important Note on Dependencies
7373

74-
The `@orca-so/whirlpools-sdk` is dependent on Anchor v0.29.0. For other Anchor versions, the examples include `resolutions` in the `package.json` to manage dependency conflicts.
74+
The `@orca-so/whirlpools-sdk` is dependent on Anchor v0.31.0. For other Anchor versions, the examples include `resolutions` in the `package.json` to manage dependency conflicts.
7575

7676
## Specific Use Case: Launchpad Integration
7777

examples/rust-sdk/whirlpool_repositioning_bot/Cargo.lock

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

examples/ts-sdk/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@orca-so/whirlpools": "*",
13-
"@solana/kit": "^2.1.0",
13+
"@solana/kit": "^3.0.3",
1414
"next": "^15.2.4",
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1"

legacy-sdk/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "tsx src/index.ts"
99
},
1010
"dependencies": {
11-
"@coral-xyz/anchor": "0.31.0",
11+
"@coral-xyz/anchor": "0.31.1",
1212
"@orca-so/common-sdk": "*",
1313
"@orca-so/whirlpools-sdk": "*",
1414
"@solana/spl-token": "^0.4.14",

legacy-sdk/whirlpool/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In your project, run:
1313
```bash
1414
yarn add "@orca-so/whirlpools-sdk"
1515
yarn add "@orca-so/common-sdk"
16-
yarn add "@coral-xyz/anchor@0.29.0"
16+
yarn add "@coral-xyz/anchor@0.31.1"
1717
yarn add "@solana/web3.js"
1818
yarn add "@solana/spl-token"
1919
yarn add "decimal.js"

0 commit comments

Comments
 (0)