Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7a6285d

Browse files
committedApr 24, 2025
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.
1 parent 4de4987 commit 7a6285d

File tree

7 files changed

+18
-33
lines changed

7 files changed

+18
-33
lines changed
 

‎oracles/pyth/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolution = true
55
skip-lint = false
66

77
[programs.localnet]
8-
anchor_pyth = "2NDo3yaaVNdUyu7NMXrLXox4HsUi6ubw7Ve2g9pSxrd6"
8+
pythexample = "GUkjQmrLPFXXNK1bFLKt8XQi6g3TjxcHVspbjDoHvMG2"
99

1010
[registry]
1111
url = "https://api.apr.dev"

‎oracles/pyth/anchor/migrations/deploy.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎oracles/pyth/anchor/package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2-
"license": "ISC",
2+
"private": true,
3+
"version": "1.0.0-example",
4+
"author": "guibescos (https://github.com/guibescos)",
5+
"description": "Example Pyth Oracle Program",
6+
"homepage": "https://github.com/guibescos/anchor-pyth",
7+
"bugs": {
8+
"url": "https://github.com/guibescos/anchor-pyth/issues",
9+
"email": "support@pyth.network"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/guibescos/anchor-pyth.git"
14+
},
15+
"license": "ISC",
316
"scripts": {
417
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
518
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"

‎oracles/pyth/anchor/programs/anchor-pyth/Cargo.toml renamed to ‎oracles/pyth/anchor/programs/pythexample/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "anchor-pyth"
2+
name = "pythexample"
33
version = "0.1.0"
44
description = "Created with Anchor"
55
edition = "2021"
66

77
[lib]
88
crate-type = ["cdylib", "lib"]
9-
name = "anchor_pyth"
9+
name = "pythexample"
1010

1111
[features]
1212
default = []

‎oracles/pyth/anchor/programs/anchor-pyth/src/lib.rs renamed to ‎oracles/pyth/anchor/programs/pythexample/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use pyth_solana_receiver_sdk::price_update::PriceUpdateV2;
22
use anchor_lang::prelude::*;
33

4-
declare_id!("46T9wfa7dRLJwMmMtLnzQji1B2ydjzm28uxQuhn9p9sR");
4+
declare_id!("GUkjQmrLPFXXNK1bFLKt8XQi6g3TjxcHVspbjDoHvMG2");
55

66
#[program]
77
pub mod anchor_test {

‎oracles/pyth/anchor/tests/anchor-pyth.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.