Skip to content

Commit c354e85

Browse files
authored
chore: Update Pyth Oracle Example Program (#375)
* chore: remove non-functioning Pyth Oracle Anchor program The SDK version used in the example is no longer supported and relies on the legacy Push Oracle, which has been decommissioned. Removing it to ensure the examples remain accurate and functional. * feat: add new Pyth Oracle example * chore: update program name and meta information The original Pyth Oracle example program has backlinks from external sites. Rename the new example program to `pythexample` so the directory structure and GitHub URL remain the same so we hopefully don't break links on external sites. * chore: migrate from Yarn to pnpm as per contributing guide * chore: remove unused files and configs Project no longer uses the Anchor client or any other TypeScript code/packages. Clean up related obsolete files.
1 parent 104a0d3 commit c354e85

File tree

12 files changed

+21
-1533
lines changed

12 files changed

+21
-1533
lines changed

oracles/pyth/anchor/.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
21
.anchor
32
.DS_Store
43
target
54
**/*.rs.bk
6-
node_modules
75
test-ledger

oracles/pyth/anchor/.prettierignore

-8
This file was deleted.

oracles/pyth/anchor/Anchor.toml

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1+
[toolchain]
2+
13
[features]
2-
seeds = false
4+
resolution = true
35
skip-lint = false
6+
47
[programs.localnet]
5-
pythexample = "F6mNuN1xoPdRaZcUX3Xviq7x1EFtoBXygpFggCLd62eU"
8+
pythexample = "GUkjQmrLPFXXNK1bFLKt8XQi6g3TjxcHVspbjDoHvMG2"
69

710
[registry]
811
url = "https://api.apr.dev"
912

1013
[provider]
1114
cluster = "Localnet"
12-
wallet = "~/.config/solana/id.json"
13-
14-
[scripts]
15-
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
16-
17-
[test.validator]
18-
url = "https://api.mainnet-beta.solana.com"
19-
20-
[[test.validator.clone]]
21-
address = "H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG"
15+
wallet = "~/.config/solana/id.json"

oracles/pyth/anchor/migrations/deploy.ts

-12
This file was deleted.

oracles/pyth/anchor/package.json

-19
This file was deleted.

0 commit comments

Comments
 (0)