Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 6c954f4d45d483df17378751289297e10f31296a
  • Loading branch information
Copybara authored and actions-user committed Aug 7, 2023
1 parent 9c61791 commit ebe2941
Show file tree
Hide file tree
Showing 29 changed files with 316 additions and 96 deletions.
4 changes: 1 addition & 3 deletions examples/feeds/01_feed_client/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions examples/feeds/01_feed_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "switchboard-feed-client"
version = "0.1.0"
Expand All @@ -16,6 +18,6 @@ no-log-ix-name = []
cpi = ["no-entrypoint"]

[dependencies]
# switchboard-solana = "0.9.5"
switchboard-solana = { version = "0.9.5", path = "../../../rust/switchboard-solana" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../rust/switchboard-solana" }
bytemuck = "1.13.1"
29 changes: 22 additions & 7 deletions examples/feeds/01_feed_client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,38 @@
}
},
"compilerOptions": {
"types": ["mocha", "chai", "node"],
"typeRoots": ["./node_modules/@types"],
"types": [
"mocha",
"chai",
"node"
],
"typeRoots": [
"./node_modules/@types"
],
"module": "commonjs",
"noEmit": true,
"esModuleInterop": true,
"strict": false,
"strictNullChecks": false,
"target": "es6",
"paths": {
"@switchboard-xyz/solana.js": ["../../../javascript/solana.js"]
"@switchboard-xyz/solana.js": [
"../../../../../javascript/solana.js"
]
}
},
"include": ["tests/**/*", "./cli.ts", "./client/**/*"],
"exclude": ["target", "lib"],
"include": [
"tests/**/*",
"./cli.ts",
"./client/**/*"
],
"exclude": [
"target",
"lib"
],
"references": [
{
"path": "../../../javascript/solana.js"
"path": "../../../../../javascript/solana.js"
}
]
}
}
6 changes: 4 additions & 2 deletions examples/feeds/02_spl_native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "native-feed-parser"
version = "0.1.0"
Expand All @@ -11,5 +13,5 @@ name = "native_feed_parser"
no-entrypoint = []

[dependencies]
# switchboard-solana = "0.9.5"
switchboard-solana = { version = "0.9.5", path = "../../../rust/switchboard-solana" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../rust/switchboard-solana" }
25 changes: 18 additions & 7 deletions examples/feeds/02_spl_native/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{
"compilerOptions": {
"types": ["mocha", "chai"],
"typeRoots": ["./node_modules/@types"],
"lib": ["es2015"],
"types": [
"mocha",
"chai"
],
"typeRoots": [
"./node_modules/@types"
],
"lib": [
"es2015"
],
"module": "commonjs",
"target": "es6",
"esModuleInterop": true,
"noEmit": true,
"paths": {
"@switchboard-xyz/solana.js": ["../../../javascript/solana.js"]
"@switchboard-xyz/solana.js": [
"../../../../../javascript/solana.js"
]
}
},
"exclude": ["target"],
"exclude": [
"target"
],
"references": [
{
"path": "../../../javascript/solana.js"
"path": "../../../../../javascript/solana.js"
}
]
}
}
6 changes: 4 additions & 2 deletions examples/functions/01_basic_oracle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "basic_oracle"
version = "0.1.0"
Expand All @@ -17,7 +19,7 @@ cpi = ["no-entrypoint"]
default = []

[dependencies]
switchboard-solana = { version = "0.9.5" }
# switchboard-solana = { version = "0.9.5", path = "../../../rust/switchboard-solana" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../rust/switchboard-solana" }
bytemuck = "^1"
anchor-lang = { version = "0.28.0" }
6 changes: 4 additions & 2 deletions examples/functions/01_basic_oracle/sgx-function/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "basic-oracle-function"
version = "0.1.0"
Expand All @@ -14,5 +16,5 @@ futures = "0.3"
serde = "^1"
serde_json = "^1"
switchboard-utils = { version = "0.8.0" }
# switchboard-solana = { version = "0.9.4", path = "../../../rust/switchboard-solana" }
switchboard-solana = "0.9.5"
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../../rust/switchboard-solana" }
26 changes: 20 additions & 6 deletions examples/functions/01_basic_oracle/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,37 @@
}
},
"compilerOptions": {
"types": ["mocha", "chai", "node"],
"typeRoots": ["./node_modules/@types"],
"types": [
"mocha",
"chai",
"node"
],
"typeRoots": [
"./node_modules/@types"
],
"module": "commonjs",
"noEmit": true,
"esModuleInterop": true,
"strict": false,
"strictNullChecks": false,
"target": "es6",
"paths": {
"@switchboard-xyz/solana.js": ["../../../javascript/solana.js"]
"@switchboard-xyz/solana.js": [
"../../../../../javascript/solana.js"
]
}
},
"include": ["tests/**/*", "target/types/*.ts"],
"exclude": ["target", "lib"],
"include": [
"tests/**/*",
"target/types/*.ts"
],
"exclude": [
"target",
"lib"
],
"references": [
{
"path": "../../../../../javascript/solana.js"
}
]
}
}
6 changes: 4 additions & 2 deletions examples/functions/02_liquidity_oracle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "basic_oracle"
version = "0.1.0"
Expand All @@ -17,8 +19,8 @@ cpi = ["no-entrypoint"]
default = []

[dependencies]
switchboard-solana = { version = "0.9.5" }
# switchboard-solana = { version = "0.9.5", path = "../../../rust/switchboard-solana" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../rust/switchboard-solana" }
bytemuck = "^1"
anchor-lang = { version = "0.28.0", features = [
"init-if-needed",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "basic-oracle-function"
version = "0.1.0"
Expand All @@ -14,6 +16,7 @@ futures = "0.3"
serde = "^1"
serde_json = "^1"
switchboard-utils = { version = "0.8.0" }
switchboard-solana = { version = "=0.9.1" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../../rust/switchboard-solana" }
bytemuck = "1.13.1"
rust_decimal = "1.30.0"
26 changes: 20 additions & 6 deletions examples/functions/02_liquidity_oracle/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,37 @@
}
},
"compilerOptions": {
"types": ["mocha", "chai", "node"],
"typeRoots": ["./node_modules/@types"],
"types": [
"mocha",
"chai",
"node"
],
"typeRoots": [
"./node_modules/@types"
],
"module": "commonjs",
"noEmit": true,
"esModuleInterop": true,
"strict": false,
"strictNullChecks": false,
"target": "es6",
"paths": {
"@switchboard-xyz/solana.js": ["../../../javascript/solana.js"]
"@switchboard-xyz/solana.js": [
"../../../../../javascript/solana.js"
]
}
},
"include": ["tests/**/*", "target/types/*.ts"],
"exclude": ["target", "lib"],
"include": [
"tests/**/*",
"target/types/*.ts"
],
"exclude": [
"target",
"lib"
],
"references": [
{
"path": "../../../../../javascript/solana.js"
}
]
}
}
6 changes: 4 additions & 2 deletions examples/functions/03_candles_oracle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "basic_oracle"
version = "0.1.0"
Expand All @@ -17,8 +19,8 @@ cpi = ["no-entrypoint"]
default = []

[dependencies]
switchboard-solana = { version = "0.9.5" }
# switchboard-solana = { version = "0.9.5", path = "../../../rust/switchboard-solana" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../rust/switchboard-solana" }
bytemuck = "^1"
anchor-lang = { version = "0.28.0", features = [
"init-if-needed",
Expand Down
5 changes: 4 additions & 1 deletion examples/functions/03_candles_oracle/sgx-function/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]

[package]
name = "basic-oracle-function"
version = "0.1.0"
Expand All @@ -14,6 +16,7 @@ futures = "0.3"
serde = "^1"
serde_json = "^1"
switchboard-utils = { version = "0.8.0" }
switchboard-solana = { version = "=0.9.1" }
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../../rust/switchboard-solana" }
bytemuck = "1.13.1"
rust_decimal = "1.30.0"
26 changes: 20 additions & 6 deletions examples/functions/03_candles_oracle/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,37 @@
}
},
"compilerOptions": {
"types": ["mocha", "chai", "node"],
"typeRoots": ["./node_modules/@types"],
"types": [
"mocha",
"chai",
"node"
],
"typeRoots": [
"./node_modules/@types"
],
"module": "commonjs",
"noEmit": true,
"esModuleInterop": true,
"strict": false,
"strictNullChecks": false,
"target": "es6",
"paths": {
"@switchboard-xyz/solana.js": ["../../../javascript/solana.js"]
"@switchboard-xyz/solana.js": [
"../../../../../javascript/solana.js"
]
}
},
"include": ["tests/**/*", "target/types/*.ts"],
"exclude": ["target", "lib"],
"include": [
"tests/**/*",
"target/types/*.ts"
],
"exclude": [
"target",
"lib"
],
"references": [
{
"path": "../../../../../javascript/solana.js"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ default = []
[dependencies]
bytemuck = "^1"
anchor-spl = "0.28.0"
switchboard-solana = { version = "0.9.5", path = "../../../../../../../rust/switchboard-solana" }
switchboard-solana = { version = "0.28.0", path = "../../../../../../../rust/switchboard-solana" }
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ path = "src/main.rs"
tokio = "^1"
futures = "0.3"
# switchboard-utils = { version = "0.8.0" }
# switchboard-solana = { version = "0.9.4", path = "../../../../rust/switchboard-solana" }
switchboard-solana = "0.9.4"
# switchboard-solana = "0.28.0"
switchboard-solana = { version = "0.28.0", path = "../../../../rust/switchboard-solana" }
Loading

0 comments on commit ebe2941

Please sign in to comment.