diff --git a/Cargo.toml b/Cargo.toml index ef83b8d..58a1af9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,14 @@ members = [ "staking-anchor", ] +resolver = "2" + +[profile.release] +overflow-checks = true +lto = "fat" +codegen-units = 1 + +[profile.release.build-override] +opt-level = 3 +incremental = false +codegen-units = 1 diff --git a/amm-anchor/Cargo.toml b/amm-anchor/Cargo.toml index df57814..43f5bd0 100644 --- a/amm-anchor/Cargo.toml +++ b/amm-anchor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "amm-anchor" -version = "0.1.0" +version = "0.2.0" description = "Anchor bindings for the AMM native instruction." homepage = "https://raydium.io/" repository = "https://github.com/raydium-io/raydium-contract-instructions" @@ -8,7 +8,7 @@ edition = "2021" keywords = ["solana", "raydium", "amm", "anchor"] [dependencies] -anchor-lang = "0.28.0" -solana-program = "~1.14.6" -spl-token = { version="3.5.0", features = [ "no-entrypoint" ] } +anchor-lang = "0.29.0" +solana-program = "1.17.14" +spl-token = { version="4.0.0", features = [ "no-entrypoint" ] } raydium-contract-instructions = { path = "../lib"} diff --git a/amm-anchor/src/lib.rs b/amm-anchor/src/lib.rs index 0c13884..8edc656 100644 --- a/amm-anchor/src/lib.rs +++ b/amm-anchor/src/lib.rs @@ -1,5 +1,4 @@ //! Anchor-compatible SDK for the Raydium AMM program. -#![deny(missing_docs)] #![deny(rustdoc::all)] #![allow(rustdoc::missing_doc_code_examples)] #![allow(clippy::nonstandard_macro_braces)] diff --git a/client/Cargo.toml b/client/Cargo.toml index 7320c12..2ff2790 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "amm_client" -version = "0.3.0" +version = "0.4.0" edition = "2021" [[bin]] @@ -9,8 +9,8 @@ path = "src/main.rs" [dependencies] raydium-contract-instructions = { path = "../lib"} -spl-token = { version = "3.2.0", features = ["no-entrypoint"], default-features = false } -spl-associated-token-account = "1.0.3" +spl-token = { version = "4.0.0", features = ["no-entrypoint"], default-features = false } +spl-associated-token-account = "2.3.0" solana-client = "1.9.5" solana-sdk = "1.9.5" anyhow = "1.0.53" diff --git a/farm-anchor/Cargo.toml b/farm-anchor/Cargo.toml index db1273d..83467ad 100644 --- a/farm-anchor/Cargo.toml +++ b/farm-anchor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "farm-anchor" -version = "0.1.0" +version = "0.2.0" description = "Anchor bindings for the farm native instruction." homepage = "https://raydium.io/" repository = "https://github.com/raydium-io/raydium-contract-instructions" @@ -16,7 +16,7 @@ no-entrypoint = [] cpi = ["no-entrypoint"] [dependencies] -anchor-lang = "0.28.0" -solana-program = "~1.14.6" -spl-token = { version="3.5.0", features = [ "no-entrypoint" ] } -raydium-contract-instructions = { path = "../lib"} \ No newline at end of file +anchor-lang = "0.29.0" +solana-program = "1.17.15" +spl-token = { version="4.0.0", features = [ "no-entrypoint" ] } +raydium-contract-instructions = { path = "../lib"} diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 8304f2e..20bd29d 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "raydium-contract-instructions" -version = "0.1.0" +version = "0.2.0" edition = "2021" [dependencies] -solana-program = "1.14.6" -spl-token = { version="3.5.0", features = [ "no-entrypoint" ] } -spl-associated-token-account = { version = "1.1.2", features = ["no-entrypoint"]} +solana-program = "1.17.14" +spl-token = { version="4.0.0", features = [ "no-entrypoint" ] } +spl-associated-token-account = { version = "2.3.0", features = ["no-entrypoint"]} num-derive = "0.3" num-traits = "0.2.12" thiserror = "1.0.20" diff --git a/stable-amm-anchor/Cargo.toml b/stable-amm-anchor/Cargo.toml index 2f3ac02..4092849 100644 --- a/stable-amm-anchor/Cargo.toml +++ b/stable-amm-anchor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stable-amm-anchor" -version = "0.1.0" +version = "0.2.0" description = "Anchor bindings for the stable AMM native instruction." homepage = "https://raydium.io/" repository = "https://github.com/raydium-io/raydium-contract-instructions" @@ -16,7 +16,7 @@ no-entrypoint = [] cpi = ["no-entrypoint"] [dependencies] -anchor-lang = "0.28.0" -solana-program = "~1.14.6" -spl-token = { version="3.5.0", features = [ "no-entrypoint" ] } +anchor-lang = "0.29.0" +solana-program = "1.17.4" +spl-token = { version="4.0.0", features = [ "no-entrypoint" ] } raydium-contract-instructions = { path = "../lib"} diff --git a/staking-anchor/Cargo.toml b/staking-anchor/Cargo.toml index 060dbfd..78a2317 100644 --- a/staking-anchor/Cargo.toml +++ b/staking-anchor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "staking-anchor" -version = "0.1.0" +version = "0.2.0" description = "Anchor bindings for the farm native instruction." homepage = "https://raydium.io/" repository = "https://github.com/raydium-io/raydium-contract-instructions" @@ -16,7 +16,7 @@ no-entrypoint = [] cpi = ["no-entrypoint"] [dependencies] -anchor-lang = "0.28.0" -solana-program = "~1.14.6" -spl-token = { version="3.5.0", features = [ "no-entrypoint" ] } -raydium-contract-instructions = { path = "../lib"} \ No newline at end of file +anchor-lang = "0.29.0" +solana-program = "1.17.14" +spl-token = { version="4.0.0", features = [ "no-entrypoint" ] } +raydium-contract-instructions = { path = "../lib"} diff --git a/tests/amm-proxy/Cargo.toml b/tests/amm-proxy/Cargo.toml index a60de98..75ff4e4 100644 --- a/tests/amm-proxy/Cargo.toml +++ b/tests/amm-proxy/Cargo.toml @@ -2,3 +2,5 @@ members = [ "programs/*" ] + +resolver = "2" diff --git a/tests/amm-proxy/programs/amm-proxy/Cargo.toml b/tests/amm-proxy/programs/amm-proxy/Cargo.toml index 90bdca6..22457e7 100644 --- a/tests/amm-proxy/programs/amm-proxy/Cargo.toml +++ b/tests/amm-proxy/programs/amm-proxy/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "amm-proxy" -version = "0.1.0" +version = "0.2.0" description = "Created with Anchor" edition = "2018" @@ -16,6 +16,6 @@ cpi = ["no-entrypoint"] default = [] [dependencies] -anchor-lang = "0.25.0" -spl-token = { version="~3.3.0", features = [ "no-entrypoint" ] } -amm-anchor = {path = "../../../../amm-anchor"} \ No newline at end of file +anchor-lang = "0.29.0" +spl-token = { version="4.0.0", features = [ "no-entrypoint" ] } +amm-anchor = {path = "../../../../amm-anchor"}