Skip to content

Commit 00eca44

Browse files
gallynautCopybaragallynaut
authored
chore: pull monorepo changes (#113)
* Project import generated by Copybara. GitOrigin-RevId: 20a39c08b5f2bd4c44c08303a3c29290d20005ce * chore: Update pnpm lockfile --------- Co-authored-by: Copybara <[email protected]> Co-authored-by: gallynaut <[email protected]>
1 parent 33cf78d commit 00eca44

37 files changed

+17382
-583
lines changed

examples/README.md

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

examples/functions/01_basic_oracle/Anchor.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ basic_oracle = "BkTMjFhosJ1xKtLMV2xchGtnTDBABLJ45aXzs7x9FdeX"
1212
basic_oracle = "BkTMjFhosJ1xKtLMV2xchGtnTDBABLJ45aXzs7x9FdeX"
1313

1414
[provider]
15-
# cluster = "https://api.devnet.solana.com"
15+
cluster = "https://api.devnet.solana.com"
1616
# wallet = "~/switchboard_environments_v2/devnet/upgrade_authority/upgrade_authority.json"
17-
cluster = "Localnet"
17+
# cluster = "Localnet"
1818
wallet = "~/.config/solana/id.json"
1919

2020
# cluster = "devnet"

examples/functions/01_basic_oracle/Cargo.lock

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

examples/functions/01_basic_oracle/Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ cpi = ["no-entrypoint"]
1717
default = []
1818

1919
[dependencies]
20-
switchboard-solana = { version = "=0.9.1" }
21-
# switchboard-solana = { version = "0.9.1", path = "../../../rust/switchboard-solana" }
20+
switchboard-solana = { version = "=0.9.5" }
21+
# switchboard-solana = { version = "0.9.4", path = "../../../rust/switchboard-solana" }
2222
bytemuck = "^1"
23-
anchor-lang = { version = "0.28.0", features = [
24-
"init-if-needed",
25-
"allow-missing-optionals"
26-
] }
23+
anchor-lang = { version = "0.28.0" }

examples/functions/01_basic_oracle/sgx-function/.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
debug/
44
target/
55

6-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8-
# Cargo.lock
9-
106
# These are backup files generated by rustfmt
117
**/*.rs.bk
128

examples/functions/01_basic_oracle/sgx-function/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ futures = "0.3"
1414
serde = "^1"
1515
serde_json = "^1"
1616
switchboard-utils = { version = "0.8.0" }
17-
switchboard-solana = { version = "0.9.1", path = "../../../rust/switchboard-solana" }
17+
# switchboard-solana = { version = "0.9.4", path = "../../../rust/switchboard-solana" }
18+
switchboard-solana = "0.9.5"

examples/functions/01_basic_oracle/sgx-function/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ WORKDIR /sgx
2626
COPY --from=builder /sgx/app /sgx
2727

2828
# Get the measurement from the enclave
29-
RUN /get_measurement.sh
29+
RUN /get_measurement.sh && cat /measurement.txt
3030

3131
ENTRYPOINT ["bash", "/boot.sh"]

examples/functions/01_basic_oracle/src/actions/refresh_prices.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ pub struct RefreshPrices<'info> {
1515
function.load()?.validate(
1616
&enclave_signer.to_account_info()
1717
)? @ BasicOracleError::FunctionValidationFailed
18-
// FunctionAccountData::validate(
19-
// &function.to_account_info(),
20-
// &enclave_signer.to_account_info()
21-
// )? @ BasicOracleError::FunctionValidationFailed
2218
)]
2319
pub function: AccountLoader<'info, FunctionAccountData>,
2420
pub enclave_signer: Signer<'info>,

examples/functions/02_liquidity_oracle/sgx-function/src/main.rs

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

examples/functions/04_randomness_callback/Anchor.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ url = "https://api.apr.dev"
1414
[provider]
1515
# cluster = "Localnet"
1616
cluster = "https://api.devnet.solana.com"
17-
wallet = "~/.config/solana/id.json"
17+
wallet = "~/switchboard_environments_v2/devnet/upgrade_authority/upgrade_authority.json"
1818

1919
[scripts]
2020
test = "pnpm exec ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
@@ -44,4 +44,4 @@ address = "sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx"
4444
address = "5ExuoQR69trmKQfB95fDsUGsUrrChbGq9PFgt8qouncz"
4545

4646
[[test.validator.clone]] # sb devnet programState
47-
address = "5MFs7RGTjLi1wtKNBFRtuLipCkkjs4YQwRRU9sjnbQbS"
47+
address = "5MFs7RGTjLi1wtKNBFRtuLipCkkjs4YQwRRU9sjnbQbS"

0 commit comments

Comments
 (0)