forked from igneous-labs/S
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
140 lines (132 loc) · 7.35 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[workspace]
resolver = "2"
members = [
"cli/cli-test-utils",
"cli/s-cli-utils",
"cli/s-controller",
"cli/generic-pool-calculator",
"cli/pricing-programs/*",
"generated/pricing-programs/*",
"generated/s_controller_interface",
"generated/sol-value-calculator-programs/*",
"keys/*",
"libs/aggregate/*",
"libs/pricing-programs/*",
"libs/s-controller-lib",
"libs/s-controller-test-utils",
"libs/s-jup-interface",
"libs/sanctum-s-common",
"libs/sol-value-calculator-programs/*",
"programs/pricing-programs/*",
"programs/s-controller",
"programs/sol-value-calculator-programs/*",
"test-utils",
]
#[profile.release]
#overflow-checks = true # increases binary size, we're using checked ops everywhere
#lto = "fat" # doesn't affect binary size
#panic = "abort" # cargo-build-sbf does this
#strip = true # cargo-build-sbf strips symbols after building
[workspace.dependencies]
anyhow = "^1"
assert_cmd = "^2"
async-trait = ">=0.1"
bincode = "^1"
borsh = ">=0.9,<1.0.0"
bytemuck = "^1"
clap = { version = "^4", features = ["derive"] }
data-encoding = "^2"
inquire = { version = "^0.7", default-features = false, features = ["crossterm"] }
jupiter-amm-interface = "^0.3"
lazy_static = "^1"
num-derive = ">=0.3"
num-traits = ">=0.2"
proptest = "^1"
rust_decimal = ">=1.0,<=1.32.0" # anything >1.32 uses borsh ^1
sanctum-macros = "^1.2"
serde = "^1"
serde_json = "^1"
spl-pod = ">=0.1.0"
spl-token = ">=0.1.0"
spl-token-2022 = ">=0.1.0"
spl-token-metadata-interface = ">=0.1.0"
spl-associated-token-account = ">=0.1.0"
static_assertions = "^1"
thiserror = "^1"
tokio = "^1"
# DO NOT ENABLE `features = ["solana-sdk"]` HERE OR ELSE IT'LL MAKE ALL ONCHAIN PROGRAMS UNCOMPILABLE
# CLIENT CRATES SHOULD ENABLE IT SEPARATELY
solana-readonly-account = "^1.1"
# solana libraries (not pure rust)
# Use ^1 for flexibility for library users, but lock to 1.17.6 for deploy.
# To update versions, set solana-program and solana-program-test to `=<new-vers>`,
# then restore `^1` after Cargo.lock is updated
solana-account-decoder = "^1"
solana-client = "^1"
solana-program = "^1"
solana-program-test = "^1"
solana-rpc-client-api = "^1"
solana-sdk = "^1"
solana-transaction-status = "^1"
# sanctum-solana-utils
# TODO: use the same commit for everything once all the *-lib libs are ready, requires refactor
# 2d1718f is the older version, frozen for now due to breaking changes in these 3 libs
sanctum-associated-token-lib = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "2d1718f" }
sanctum-misc-utils = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "2d1718f" }
sanctum-token-lib = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "2d1718f" }
sanctum-solana-cli-utils = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "f6c40a0", features = ["clap"] }
sanctum-solana-client-utils = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "f6c40a0" }
sanctum-solana-test-utils = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "f6c40a0" }
sanctum-system-program-lib = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "f6c40a0" }
sanctum-token-ratio = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "f6c40a0" }
system_program_interface = { git = "https://github.com/igneous-labs/sanctum-solana-utils.git", rev = "f6c40a0" }
# sanctum-lst-list
sanctum-lst-list = { git = "https://github.com/igneous-labs/sanctum-lst-list.git", branch = "master" }
# stakedex
stakedex_interface = { git = "https://github.com/igneous-labs/stakedex-sdk.git", branch = "master" }
stakedex_marinade = { git = "https://github.com/igneous-labs/stakedex-sdk.git", branch = "master" }
stakedex_sdk_common = { git = "https://github.com/igneous-labs/stakedex-sdk.git", branch = "master" }
stakedex_spl_stake_pool = { git = "https://github.com/igneous-labs/stakedex-sdk.git", branch = "master" }
# workspace members
cli-test-utils = { path = "./cli/cli-test-utils" }
flat_fee_interface = { path = "./generated/pricing-programs/flat_fee_interface" }
pricing_programs_interface = { path = "./generated/pricing-programs/pricing_programs_interface" }
s_controller_interface = { path = "./generated/s_controller_interface" }
generic_pool_calculator_interface = { path = "./generated/sol-value-calculator-programs/generic_pool_calculator_interface" }
lido_calculator_interface = { path = "./generated/sol-value-calculator-programs/lido_calculator_interface" }
marinade_calculator_interface = { path = "./generated/sol-value-calculator-programs/marinade_calculator_interface" }
sol_value_calculator_interface = { path = "./generated/sol-value-calculator-programs/sol_value_calculator_interface" }
spl_calculator_interface = { path = "./generated/sol-value-calculator-programs/spl_calculator_interface" }
wsol_calculator_interface = { path = "./generated/sol-value-calculator-programs/wsol_calculator_interface" }
lido-keys = { path = "./keys/lido-keys" }
marinade-keys = { path = "./keys/marinade-keys" }
sanctum-spl-multi-stake-pool-keys = { path = "./keys/sanctum-spl-multi-stake-pool-keys" }
spl-stake-pool-keys = { path = "./keys/spl-stake-pool-keys" }
wsol-keys = { path = "./keys/wsol-keys" }
flat-fee-lib = { path = "./libs/pricing-programs/flat-fee-lib" }
flat-fee-test-utils = { path = "./libs/pricing-programs/flat-fee-test-utils" }
s-controller-lib = { path = "./libs/s-controller-lib" }
generic-pool-calculator-lib = { path = "./libs/sol-value-calculator-programs/generic-pool-calculator-lib" }
generic-pool-calculator-onchain = { path = "./libs/sol-value-calculator-programs/generic-pool-calculator-onchain" }
generic-pool-calculator-test-utils = { path = "./libs/sol-value-calculator-programs/generic-pool-calculator-test-utils" }
lido-calculator-lib = { path = "./libs/sol-value-calculator-programs/lido-calculator-lib" }
marinade-calculator-lib = { path = "./libs/sol-value-calculator-programs/marinade-calculator-lib" }
s-jup-interface = { path = "./libs/s-jup-interface"}
s-pricing-prog-aggregate = { path = "./libs/aggregate/s-pricing-prog-aggregate"}
s-sol-val-calc-prog-aggregate = { path = "./libs/aggregate/s-sol-val-calc-prog-aggregate" }
sanctum-s-common = { path = "./libs/sanctum-s-common" }
sanctum-spl-stake-pool-keys = { path = "./keys/sanctum-spl-stake-pool-keys" }
sol-value-calculator-lib = { path = "./libs/sol-value-calculator-programs/sol-value-calculator-lib" }
sol-value-calculator-onchain = { path = "./libs/sol-value-calculator-programs/sol-value-calculator-onchain" }
spl-calculator-lib = { path = "./libs/sol-value-calculator-programs/spl-calculator-lib" }
wsol-calculator-lib = { path = "./libs/sol-value-calculator-programs/wsol-calculator-lib" }
flat-fee = { path = "./programs/pricing-programs/flat-fee" }
no-fee-pricing-program = { path = "./programs/pricing-programs/no-fee-pricing-program" }
s-cli-utils = { path = "./cli/s-cli-utils" }
s-controller = { path = "./programs/s-controller" }
s-controller-test-utils = { path = "./libs/s-controller-test-utils" }
lido-calculator = { path = "./programs/sol-value-calculator-programs/lido-calculator" }
marinade-calculator = { path = "./programs/sol-value-calculator-programs/marinade-calculator" }
spl-calculator = { path = "./programs/sol-value-calculator-programs/spl-calculator" }
wsol-calculator = { path = "./programs/sol-value-calculator-programs/wsol-calculator" }
test-utils = { path = "./test-utils" }