Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update anchor to 0.30 and solana-program to 1.18 #208

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6e0d960
Squash
wjthieme Aug 2, 2024
d1117cd
Structure
wjthieme Aug 2, 2024
2f9ddf4
Fixes
wjthieme Aug 2, 2024
c788f18
README
wjthieme Aug 2, 2024
663b993
README
wjthieme Aug 2, 2024
2d33c2d
Update CODEOWNERS
wjthieme Aug 5, 2024
4ebd0f3
Delete legacy/sdk/src/tsconfig.json
wjthieme Aug 5, 2024
6b3f9c8
Delete legacy/sdk/tests/tsconfig.json
wjthieme Aug 5, 2024
b885241
Build fix
wjthieme Aug 6, 2024
e56f1f5
Squash
wjthieme Aug 6, 2024
e6b0aa8
Box
wjthieme Aug 6, 2024
ca6b04c
`constraint` instead of `address` for expressions
wjthieme Aug 6, 2024
dcb6395
Readme files
wjthieme Aug 6, 2024
b94b89d
Build before test
wjthieme Aug 6, 2024
fd6db77
Merge branch 'wjthieme/nx-monorepo' into wjthieme/anchor-0.30.1
wjthieme Aug 6, 2024
972fa6d
Sdk changes
wjthieme Aug 6, 2024
de095d6
Tweak
wjthieme Aug 6, 2024
2a27487
Test
wjthieme Aug 6, 2024
3cb4d9b
Tweaks
wjthieme Aug 7, 2024
0b18b3b
Merge branch 'wjthieme/nx-monorepo' into wjthieme/anchor-0.30.1
wjthieme Aug 7, 2024
bef4d3c
Small fixes
wjthieme Aug 7, 2024
b5f3e4c
Merge branch 'wjthieme/nx-monorepo' into wjthieme/anchor-0.30.1
wjthieme Aug 7, 2024
8377a8d
Readme update
wjthieme Aug 7, 2024
d963680
Merge branch 'wjthieme/nx-monorepo' into wjthieme/anchor-0.30.1
wjthieme Aug 7, 2024
e215721
Fix failing build and tests
wjthieme Aug 7, 2024
13cac19
Rename folders
wjthieme Aug 8, 2024
d82135f
Merge branch 'wjthieme/nx-monorepo' into wjthieme/anchor-0.30.1
wjthieme Aug 8, 2024
e9011f5
Merge branch 'main' into wjthieme/anchor-0.30.1
wjthieme Aug 8, 2024
762c831
Template labels
wjthieme Aug 8, 2024
e441eed
Merge branch 'main' into wjthieme/anchor-0.30.1
wjthieme Aug 8, 2024
7325123
Tweak
wjthieme Aug 8, 2024
ec1e1f7
Version bumps
wjthieme Aug 9, 2024
ac69e16
Merge branch 'main' into wjthieme/anchor-0.30.1
wjthieme Aug 9, 2024
4cbf541
Tweaks
wjthieme Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report
description: When you want to report something not working as expected.
title: "[Bug] "
labels: ["bug"]
labels: []
body:
- type: textarea
id: details
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Feature Request
description: When you have an idea for an improvement or new feature.
title: "[Feature] "
labels: ["feature"]
labels: []
body:
- type: textarea
id: details
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/anchor/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
anchor-version:
description: 'The version of anchor to use.'
required: false
default: 'v0.29.0'
default: 'v0.30.1'
solana-key:
description: 'The private key to use for the solana sdk.'
required: false
Expand Down
10 changes: 2 additions & 8 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@ cluster = "localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "ts-mocha -t 1000000 legacy-sdk/whirlpool/tests/**/*.test.ts"
test = "yarn ts-mocha --timeout 1000000 legacy-sdk/whirlpool/**/*.test.ts"

[test.validator]
slots_per_epoch = "33"
ticks_per_slot = 7
url = "https://api.mainnet-beta.solana.com"

# In v0.29.0, this doesn't work because ProgramData account is cloned with executable = false (anchor bug ?)
# So we need to use test.genesis config.
# [[test.validator.clone]]
# address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"

[[test.genesis]]
[[test.validator.clone]]
address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
program = "legacy-sdk/whirlpool/tests/external_program/mpl_token_metadata.20240214.so"

[[test.genesis]]
address = "EBZDYx7599krFc4m2govwBdZcicr4GgepqC78m71nsHS"
Expand Down
Loading
Loading