Skip to content

Commit 81ff71c

Browse files
authored
chore: release solana pull oracle sdks (#1361)
* chore: release rust sdk for solana receiver * Go * Publish pythnet sdk
1 parent 9256673 commit 81ff71c

File tree

21 files changed

+61
-25
lines changed

21 files changed

+61
-25
lines changed

.github/workflows/ci-solana-contract.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- name: Run tests
3333
run: cargo-test-sbf
3434
- name: Run sdk tests
35-
run: cargo test --package pyth-solana-receiver-state
35+
run: cargo test --package pyth-solana-receiver-sdk
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Pyth SDK for the Solana Receiver to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- pyth-solana-receiver-sdk-v*
7+
jobs:
8+
publish-pyth-solana-receiver-sdk:
9+
name: Publish Pyth SDK for the Solana Receiver
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
working-directory: "target_chains/solana/pyth_solana_receiver_sdk"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Pythnet SDK to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- pythnet-sdk-v*
7+
jobs:
8+
publish-pythnet-sdk:
9+
name: Publish Pythnet SDK
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
working-directory: "pythnet/pythnet_sdk"

target_chains/solana/Cargo.lock

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

target_chains/solana/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [
33
"programs/*",
44
"cli/",
55
"program_simulator/",
6-
"pyth_solana_receiver_state/"
6+
"pyth_solana_receiver_sdk/"
77
]
88

99
[profile.release]

target_chains/solana/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ serde_wormhole = { workspace = true }
1919
hex = "0.4.3"
2020
borsh = "0.9.3" # Old version of borsh needed for wormhole-solana
2121
wormhole-core-bridge-solana = {workspace = true}
22-
pyth-solana-receiver-state = {path = "../pyth_solana_receiver_state"}
22+
pyth-solana-receiver-sdk = {path = "../pyth_solana_receiver_sdk"}

target_chains/solana/cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use {
2424
PostUpdateAtomicParams,
2525
PostUpdateParams,
2626
},
27-
pyth_solana_receiver_state::config::DataSource,
27+
pyth_solana_receiver_sdk::config::DataSource,
2828
pythnet_sdk::wire::v1::MerklePriceUpdate,
2929
serde_wormhole::RawMessage,
3030
solana_client::{
@@ -184,7 +184,7 @@ fn main() -> Result<()> {
184184
program_id: pyth_solana_receiver::ID,
185185
accounts: initialize_pyth_receiver_accounts,
186186
data: pyth_solana_receiver::instruction::Initialize {
187-
initial_config: pyth_solana_receiver_state::config::Config {
187+
initial_config: pyth_solana_receiver_sdk::config::Config {
188188
governance_authority: payer.pubkey(),
189189
target_governance_authority: None,
190190
wormhole,

target_chains/solana/programs/pyth-solana-receiver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ solana-program = { workspace = true }
2222
byteorder = "1.4.3"
2323
wormhole-core-bridge-solana = {workspace = true}
2424
wormhole-raw-vaas = {version = "0.1.3", features = ["ruint", "on-chain"], default-features = false }
25-
pyth-solana-receiver-state = { path = "../../pyth_solana_receiver_state"}
25+
pyth-solana-receiver-sdk = { path = "../../pyth_solana_receiver_sdk"}
2626

2727
[dev-dependencies]
2828
pyth-sdk = "0.8.0"

target_chains/solana/programs/pyth-solana-receiver/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use {
22
crate::error::ReceiverError,
33
anchor_lang::prelude::*,
4-
pyth_solana_receiver_state::{
4+
pyth_solana_receiver_sdk::{
55
config::{
66
Config,
77
DataSource,
@@ -47,7 +47,7 @@ use {
4747
pub mod error;
4848
pub mod sdk;
4949

50-
declare_id!(pyth_solana_receiver_state::ID);
50+
declare_id!(pyth_solana_receiver_sdk::ID);
5151

5252
#[program]
5353
pub mod pyth_solana_receiver {

target_chains/solana/programs/pyth-solana-receiver/src/sdk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use {
1313
system_program,
1414
InstructionData,
1515
},
16-
pyth_solana_receiver_state::config::{
16+
pyth_solana_receiver_sdk::config::{
1717
Config,
1818
DataSource,
1919
},

0 commit comments

Comments
 (0)