Skip to content

Commit

Permalink
chore: pull monorepo changes (#120)
Browse files Browse the repository at this point in the history
* Project import generated by Copybara.

GitOrigin-RevId: 08821e148b21e3b2c212fdd5342909d92844d84a

* chore: manual fix build deps

* chore: Update pnpm lockfile

---------

Co-authored-by: Copybara <copybara@example.com>
Co-authored-by: gallynaut <gallynaut@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 8, 2023
1 parent 795d71d commit 559ca34
Show file tree
Hide file tree
Showing 44 changed files with 1,373 additions and 665 deletions.
4 changes: 2 additions & 2 deletions examples/feeds/01_feed_client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"@project-serum/borsh": "^0.2.5",
"@solana/spl-token": "^0.3.8",
"@solana/web3.js": "^1.78.3",
"@switchboard-xyz/common": "^2.3.4",
"@switchboard-xyz/common": "^2.3.3",
"@switchboard-xyz/oracle": "latest",
"@switchboard-xyz/solana.js": "^2.5.6",
"@switchboard-xyz/solana.js": "^2.5.0",
"chalk": "^4.1.2",
"dotenv": "^16.0.1",
"yargs": "^17.5.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/feeds/02_spl_native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"dependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@solana/web3.js": "^1.77.3",
"@switchboard-xyz/common": "^2.3.4",
"@switchboard-xyz/common": "^2.3.3",
"@switchboard-xyz/oracle": "latest",
"@switchboard-xyz/solana.js": "^2.5.6"
"@switchboard-xyz/solana.js": "^2.5.0"
},
"devDependencies": {
"@types/chai": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/functions/01_basic_oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@coral-xyz/anchor": "^0.28.0",
"@solana/spl-token": "^0.3.6",
"@solana/web3.js": "^1.78.0",
"@switchboard-xyz/solana.js": "^2.5.6"
"@switchboard-xyz/solana.js": "workspace:^"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/functions/01_basic_oracle/sgx-function/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Variables
CARGO_NAME=basic-oracle-function
DOCKER_IMAGE_NAME=${CONTAINER_NAME?}
DOCKER_IMAGE_NAME=${CONTAINER_NAME}

DOCKER_BUILD_COMMAND=DOCKER_BUILDKIT=1 docker buildx build --platform linux/amd64 --build-arg CARGO_NAME=${CARGO_NAME}

Expand Down
4 changes: 2 additions & 2 deletions examples/functions/02_liquidity_oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@coral-xyz/anchor": "^0.28.0",
"@solana/spl-token": "^0.3.8",
"@solana/web3.js": "^1.78.3",
"@switchboard-xyz/common": "^2.3.4",
"@switchboard-xyz/solana.js": "^2.5.6"
"@switchboard-xyz/common": "^2.3.3",
"@switchboard-xyz/solana.js": "^2.5.0"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/functions/03_candles_oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"@coral-xyz/anchor": "^0.28.0",
"@solana/spl-token": "^0.3.8",
"@solana/web3.js": "^1.78.3",
"@switchboard-xyz/common": "^2.3.4",
"@switchboard-xyz/solana.js": "^2.5.6"
"@switchboard-xyz/common": "^2.3.3",
"@switchboard-xyz/solana.js": "^2.5.0"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand Down
36 changes: 18 additions & 18 deletions examples/functions/04_randomness_callback/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@ wallet = "~/.config/solana/id.json"
[scripts]
test = "pnpm exec ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

# [test.validator]
# url = "https://api.devnet.solana.com"
[test.validator]
url = "https://api.devnet.solana.com"

# [test]
# startup_wait = 15000
[test]
startup_wait = 15000

# [[test.validator.clone]] # sb devnet oracle programID
# address = "SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f"
[[test.validator.clone]] # sb devnet oracle programID
address = "SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f"

# [[test.validator.clone]] # sb devnet oracle IDL
# address = "Fi8vncGpNKbq62gPo56G4toCehWNy77GgqGkTaAF5Lkk"
[[test.validator.clone]] # sb devnet oracle IDL
address = "Fi8vncGpNKbq62gPo56G4toCehWNy77GgqGkTaAF5Lkk"

# [[test.validator.clone]] # sb devnet oracle SbState
# address = "CyZuD7RPDcrqCGbNvLCyqk6Py9cEZTKmNKujfPi3ynDd"
[[test.validator.clone]] # sb devnet oracle SbState
address = "CyZuD7RPDcrqCGbNvLCyqk6Py9cEZTKmNKujfPi3ynDd"

# [[test.validator.clone]] # sb devnet oracle tokenVault
# address = "7hkp1xfPBcD2t1vZMoWWQPzipHVcXeLAAaiGXdPSfDie"
[[test.validator.clone]] # sb devnet oracle tokenVault
address = "7hkp1xfPBcD2t1vZMoWWQPzipHVcXeLAAaiGXdPSfDie"

# [[test.validator.clone]] # sb devnet attestation programID
# address = "sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx"
[[test.validator.clone]] # sb devnet attestation programID
address = "sbattyXrzedoNATfc4L31wC9Mhxsi1BmFhTiN8gDshx"

# [[test.validator.clone]] # sb devnet attestation IDL
# address = "5ExuoQR69trmKQfB95fDsUGsUrrChbGq9PFgt8qouncz"
[[test.validator.clone]] # sb devnet attestation IDL
address = "5ExuoQR69trmKQfB95fDsUGsUrrChbGq9PFgt8qouncz"

# [[test.validator.clone]] # sb devnet programState
# address = "5MFs7RGTjLi1wtKNBFRtuLipCkkjs4YQwRRU9sjnbQbS"
[[test.validator.clone]] # sb devnet programState
address = "5MFs7RGTjLi1wtKNBFRtuLipCkkjs4YQwRRU9sjnbQbS"
Loading

0 comments on commit 559ca34

Please sign in to comment.