Skip to content

Commit 5e4cde7

Browse files
gallynautCopybara
andauthored
chore: pull monorepo changes (#118)
* Project import generated by Copybara. GitOrigin-RevId: bcb5f68066b800e0bf8a68ed706a47a798292f3c * chore: cleanup --------- Co-authored-by: Copybara <[email protected]>
1 parent c8b6ec9 commit 5e4cde7

File tree

22 files changed

+255
-362
lines changed

22 files changed

+255
-362
lines changed

examples/feeds/01_feed_client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"@project-serum/borsh": "^0.2.5",
1919
"@solana/spl-token": "^0.3.8",
2020
"@solana/web3.js": "^1.78.3",
21-
"@switchboard-xyz/common": "^2.3.0",
21+
"@switchboard-xyz/common": "^2.3.2",
2222
"@switchboard-xyz/oracle": "latest",
23-
"@switchboard-xyz/solana.js": "^2.5.0",
23+
"@switchboard-xyz/solana.js": "^2.5.4",
2424
"chalk": "^4.1.2",
2525
"dotenv": "^16.0.1",
2626
"yargs": "^17.5.1"

examples/feeds/02_spl_native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"dependencies": {
1818
"@coral-xyz/anchor": "^0.28.0",
1919
"@solana/web3.js": "^1.77.3",
20-
"@switchboard-xyz/common": "^2.3.0",
20+
"@switchboard-xyz/common": "^2.3.2",
2121
"@switchboard-xyz/oracle": "latest",
22-
"@switchboard-xyz/solana.js": "^2.5.0"
22+
"@switchboard-xyz/solana.js": "^2.5.4"
2323
},
2424
"devDependencies": {
2525
"@types/chai": "^4.3.0",

examples/functions/01_basic_oracle/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"dependencies": {
1515
"@coral-xyz/anchor": "^0.28.0",
16-
"@solana/spl-token": "^0.3.6",
17-
"@solana/web3.js": "^1.78.0",
18-
"@switchboard-xyz/solana.js": "^"
16+
"@solana/spl-token": "^0.3.8",
17+
"@solana/web3.js": "^1.78.4",
18+
"@switchboard-xyz/solana.js": "^2.5.4"
1919
},
2020
"devDependencies": {
2121
"@types/bn.js": "^5.1.0",
@@ -26,4 +26,4 @@
2626
"mocha": "^9.0.3",
2727
"ts-mocha": "^10.0.0"
2828
}
29-
}
29+
}

examples/functions/01_basic_oracle/sgx-function/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ async fn main() {
2525
// Finally, emit the signed quote and partially signed transaction to the functionRunner oracle
2626
// The functionRunner oracle will use the last outputted word to stdout as the serialized result. This is what gets executed on-chain.
2727
runner.emit(ixs).await.unwrap();
28-
}
28+
}

examples/functions/02_liquidity_oracle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"@coral-xyz/anchor": "^0.28.0",
1515
"@solana/spl-token": "^0.3.8",
1616
"@solana/web3.js": "^1.78.3",
17-
"@switchboard-xyz/common": "^2.3.0",
18-
"@switchboard-xyz/solana.js": "^2.5.0"
17+
"@switchboard-xyz/common": "^2.3.2",
18+
"@switchboard-xyz/solana.js": "^2.5.4"
1919
},
2020
"devDependencies": {
2121
"@types/bn.js": "^5.1.0",

examples/functions/03_candles_oracle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"@coral-xyz/anchor": "^0.28.0",
1616
"@solana/spl-token": "^0.3.8",
1717
"@solana/web3.js": "^1.78.3",
18-
"@switchboard-xyz/common": "^2.3.0",
19-
"@switchboard-xyz/solana.js": "^2.5.0"
18+
"@switchboard-xyz/common": "^2.3.2",
19+
"@switchboard-xyz/solana.js": "^2.5.4"
2020
},
2121
"devDependencies": {
2222
"@types/bn.js": "^5.1.0",

examples/functions/03_candles_oracle/src/actions/initialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ impl Initialize<'_> {
5050
oracle.bump = *ctx.bumps.get("oracle").unwrap();
5151
Ok(())
5252
}
53-
}
53+
}

examples/functions/03_candles_oracle/src/actions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ pub mod set_function;
88
pub use set_function::*;
99

1010
pub mod trigger_function;
11-
pub use trigger_function::*;
11+
pub use trigger_function::*;

examples/functions/03_candles_oracle/src/actions/refresh_prices.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ impl RefreshPrices<'_> {
4545

4646
Ok(())
4747
}
48-
}
48+
}

examples/functions/03_candles_oracle/src/actions/set_function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct SetFunction<'info> {
1818
}
1919

2020
#[derive(Clone, AnchorSerialize, AnchorDeserialize)]
21-
pub struct SetFunctionParams { }
21+
pub struct SetFunctionParams {}
2222

2323
impl SetFunction<'_> {
2424
pub fn validate(
@@ -34,4 +34,4 @@ impl SetFunction<'_> {
3434
program.function = ctx.accounts.function.key();
3535
Ok(())
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)