diff --git a/Cargo.lock b/Cargo.lock index 263e918ba..d39744dd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -33,7 +33,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.4", + "getrandom 0.2.5", "once_cell", "version_check", ] @@ -242,9 +242,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.53" +version = "1.0.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" +checksum = "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd" [[package]] name = "arrayref" @@ -288,9 +288,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" @@ -351,7 +351,7 @@ dependencies = [ "cc", "cfg-if", "constant_time_eq", - "digest 0.10.1", + "digest 0.10.3", ] [[package]] @@ -366,9 +366,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95" +checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" dependencies = [ "generic-array", ] @@ -596,9 +596,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.72" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" dependencies = [ "jobserver", ] @@ -729,7 +729,7 @@ dependencies = [ [[package]] name = "cronos-bot" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anchor-client", "cronos-sdk", @@ -745,7 +745,7 @@ dependencies = [ [[package]] name = "cronos-cli" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anchor-lang", "clap 3.1.2", @@ -766,7 +766,7 @@ dependencies = [ [[package]] name = "cronos-program" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anchor-lang", "solana-program", @@ -774,7 +774,7 @@ dependencies = [ [[package]] name = "cronos-sdk" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anchor-client", "cronos-program", @@ -835,11 +835,12 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-common" -version = "0.1.1" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "683d6b536309245c849479fba3da410962a43ed8e51c26b729208ec0ac2798d0" +checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" dependencies = [ "generic-array", + "typenum", ] [[package]] @@ -928,13 +929,12 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.1" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b" +checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" dependencies = [ - "block-buffer 0.10.0", + "block-buffer 0.10.2", "crypto-common", - "generic-array", "subtle", ] @@ -1334,9 +1334,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77" dependencies = [ "cfg-if", "libc", @@ -1444,11 +1444,11 @@ dependencies = [ [[package]] name = "hmac" -version = "0.12.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddca131f3e7f2ce2df364b57949a9d47915cfbd35e46cfee355ccebbf794d6a2" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.1", + "digest 0.10.3", ] [[package]] @@ -1655,9 +1655,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.117" +version = "0.2.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c" +checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" [[package]] name = "libloading" @@ -1749,11 +1749,11 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" [[package]] name = "md-5" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6a38fc55c8bbc10058782919516f88826e70320db6d206aebc49611d24216ae" +checksum = "658646b21e0b72f7866c7038ab086d3d5e1cd6271f060fd37defb241949d0582" dependencies = [ - "digest 0.10.1", + "digest 0.10.3", ] [[package]] @@ -1764,9 +1764,9 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "memmap2" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe3179b85e1fd8b14447cbebadb75e45a1002f541b925f0bfec366d56a81c56d" +checksum = "057a3db23999c867821a7a59feb06a578fcb03685e983dff90daf9e7d24ac08f" dependencies = [ "libc", ] @@ -2093,11 +2093,11 @@ dependencies = [ "byteorder", "bytes", "fallible-iterator", - "hmac 0.12.0", + "hmac 0.12.1", "md-5", "memchr", "rand 0.8.5", - "sha2 0.10.1", + "sha2 0.10.2", "stringprep", ] @@ -2278,7 +2278,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ - "getrandom 0.2.4", + "getrandom 0.2.5", ] [[package]] @@ -2330,7 +2330,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ - "getrandom 0.2.4", + "getrandom 0.2.5", "redox_syscall", ] @@ -2510,9 +2510,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.4" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" +checksum = "a4a3381e03edd24287172047536f20cabde766e2cd3e65e6b00fb3af51c4f38d" [[package]] name = "serde" @@ -2606,13 +2606,13 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99c3bd8169c58782adad9290a9af5939994036b76187f7b4f0e6de91dbbfc0ec" +checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.1", + "digest 0.10.3", ] [[package]] @@ -3777,9 +3777,9 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" [[package]] name = "unicode-width" @@ -4088,9 +4088,9 @@ checksum = "9fc79f4a1e39857fc00c3f662cbf2651c771f00e9c15fe2abc341806bd46bd71" [[package]] name = "zeroize" -version = "1.5.2" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c88870063c39ee00ec285a2f8d6a966e5b6fb2becc4e8dac77ed0d370ed6006" +checksum = "50344758e2f40e3a1fcfc8f6f91aa57b5f8ebd8d27919fe6451f15aaaf9ee608" dependencies = [ "zeroize_derive", ] diff --git a/VERSION b/VERSION index b1e80bb24..845639eef 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.3 +0.1.4 diff --git a/bot/Cargo.toml b/bot/Cargo.toml index d52132d13..92139c31c 100644 --- a/bot/Cargo.toml +++ b/bot/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-bot" -version = "0.1.3" +version = "0.1.4" edition = "2021" description = "Worker bot to execute Cronos tasks" license = "Apache-2.0" @@ -14,7 +14,7 @@ keywords = ["solana", "cronos", "program"] [dependencies] anchor-client = "0.22.0" -cronos-sdk = { path = "../sdk", version = "0.1.3"} +cronos-sdk = { path = "../sdk", version = "0.1.4" } dotenv = "0.15.0" postgres = "0.19.2" solana-account-decoder = "1.9.9" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index b1183564d..b78c1073a 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-cli" -version = "0.1.3" +version = "0.1.4" description = "Command line instruction scheduler for Solana" edition = "2021" license = "Apache-2.0" @@ -14,8 +14,8 @@ keywords = ["solana", "cronos", "cli"] [dependencies] anchor-lang = "0.22.0" -clap = { version = "3.0.14", features = ["derive"] } -cronos-sdk = { path = "../sdk", version = "0.1.3" } +clap = { version = "3.1.2", features = ["derive"] } +cronos-sdk = { path = "../sdk", version = "0.1.4" } serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" solana-account-decoder = "1.9.5" diff --git a/programs/cronos/Cargo.toml b/programs/cronos/Cargo.toml index 71aa32266..793cad2f0 100644 --- a/programs/cronos/Cargo.toml +++ b/programs/cronos/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-program" -version = "0.1.3" +version = "0.1.4" description = "Decentralized task scheduler for Solana" edition = "2021" license = "Apache-2.0" diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index c490096c9..13894d76b 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cronos-sdk" -version = "0.1.3" +version = "0.1.4" edition = "2021" description = "Cronos program Rust client" license = "Apache-2.0" @@ -14,7 +14,7 @@ keywords = ["solana", "cronos", "sdk"] [dependencies] anchor-client = { version = "0.22.0", features = ["debug"] } -cronos-program = { path = "../programs/cronos", features = ["no-entrypoint"], version = "0.1.3" } +cronos-program = { path = "../programs/cronos", features = ["no-entrypoint"], version = "0.1.4" } solana-client-helpers = "1.1.0" solana-program = "1.9.5" solana-sdk = "1.9.8" diff --git a/version_bump.sh b/version_bump.sh index 6e755360d..69e4aca35 100755 --- a/version_bump.sh +++ b/version_bump.sh @@ -6,7 +6,7 @@ echo "Bumping from $(cat VERSION) to ${new_version}" old_version=$(cat VERSION) # Build -RUSTFLAGS="--deny warnings" cargo build || (echo "❌ Build failed!" && exit) +RUSTFLAGS="--deny warnings" cargo build || (echo "Build failed" && exit) # Bump cronos-program sed -i '' -e '3s/^version = "'${old_version}'"/version = "'${new_version}'"/g' programs/cronos/Cargo.toml @@ -23,20 +23,17 @@ sed -i '' -e '3s/^version = "'${old_version}'"/version = "'${new_version}'"/g' b sed -i '' -e 's/^cronos-sdk =.*/cronos-sdk = { path = "..\/sdk", version = "'${new_version}'" }/g' cli/Cargo.toml sed -i '' -e '3s/^version = "'${old_version}'"/version = "'${new_version}'"/g' cli/Cargo.toml -# Update version -echo $new_version > VERSION -echo "$(git diff --stat | tail -n1)" - # Cargo publish -cargo publish --allow-dirty --manifest-path programs/cronos/Cargo.toml -cargo publish --allow-dirty --manifest-path sdk/Cargo.toml -cargo publish --allow-dirty --manifest-path bot/Cargo.toml -cargo publish --allow-dirty --manifest-path cli/Cargo.toml +cargo publish --allow-dirty --manifest-path programs/cronos/Cargo.toml || (echo "Failed to publish cronos-program" && exit) +cargo publish --allow-dirty --manifest-path sdk/Cargo.toml || (echo "Failed to publish cronos-sdk" && exit) +cargo publish --allow-dirty --manifest-path bot/Cargo.toml || (echo "Failed to publish cronos-bot" && exit) +cargo publish --allow-dirty --manifest-path cli/Cargo.toml || (echo "Failed to publish cronos-cli" && exit) -# Re-build -cargo build +# Update version +echo $new_version > VERSION # Git commit +echo "$(git diff --stat | tail -n1)" git checkout -b release/${new_version} git add . git commit -m "Bump to $new_version"