diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 4de0076..433e637 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -5,6 +5,8 @@ on: branches: - master - main + tags: + - "v*.*.*" pull_request: branches: - master @@ -33,3 +35,10 @@ jobs: with: name: artifacts path: artifacts/ + + - name: Add artifacts to release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: artifacts/* + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/cc.yml b/.github/workflows/cc.yml index e9e3aee..cf7c23e 100644 --- a/.github/workflows/cc.yml +++ b/.github/workflows/cc.yml @@ -16,4 +16,4 @@ jobs: uses: actions/checkout@v3 - name: Check all commit messages for adherence - uses: bilalshaikh42/action-conventional-commits@v2.0.1 + uses: webiny/action-conventional-commits@v1.3.0 diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 9bcf1ab..e316547 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -20,6 +20,9 @@ jobs: - name: Install nightly toolchain run: cargo make install-nightly + - name: Install stable toolchain + run: cargo make install-stable + - name: Run cargo clippy run: cargo make clippy-check diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a4bc48..f92be7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.0] - 2024-03-07 + +### Changed + +- Bumped `cw-dex` to `0.5.3` +- Use crates `cw-dex-astroport` and `cw-dex-osmosis` instead of the now deprecated features of `cw-dex`. This means moving the `Pool` enum to this crate. +- Bump `cw2` to `1.1.2` +- Bump `cw-it` to `0.3.1` +- Bump `locked-astroport-vault` and `locked-astroport-vault-test-helpers` to `0.4.2`. +- Bump `cw-vault-standard-test-helpers` to `0.4.1`. + ## [0.2.0] - 2023-11-06 ### Changed diff --git a/Cargo.lock b/Cargo.lock index c343900..9913889 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "ahash" -version = "0.7.6" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ "getrandom", "once_cell", @@ -34,28 +34,28 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "423502406a307052f6877030f48b5fb4e9fb338fc5e7c8ca1064210def52876b" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-std", - "cw-storage-plus 1.1.0", - "cw20 1.1.0", + "cw-storage-plus 1.2.0", + "cw20 1.1.2", "schemars", "serde", ] [[package]] name = "apollo-cw-multi-test" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b88d6037608a781a95ab1125941e2358c37272dcf0d4613de795b81b6ffbf3" +checksum = "f79f4204575175473a9b7fff8083596d09e6edb07469d2a4176846b353b2d1ef" dependencies = [ "anyhow", "cosmwasm-std", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "cw-utils 1.0.1", "derivative", - "itertools", + "itertools 0.10.5", "k256 0.11.6", - "osmosis-std 0.19.2", + "osmosis-std 0.22.0", "prost 0.9.0", "regex", "schemars", @@ -72,7 +72,7 @@ dependencies = [ "apollo-cw-asset", "cosmwasm-schema", "cosmwasm-std", - "cw20 1.1.0", + "cw20 1.1.2", ] [[package]] @@ -88,33 +88,34 @@ dependencies = [ [[package]] name = "astroport" -version = "2.9.0" +version = "2.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b863a982595743e181f89540d7aaeda35c60b6b5cac9c36c9be30cf11a5ece" +checksum = "d102b618016b3c1f1ebb5750617a73dbd294a3c941e54b12deabc931d771bc6e" dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", "cw-utils 0.15.1", "cw20 0.15.1", - "itertools", + "itertools 0.10.5", "uint", ] [[package]] name = "astroport" -version = "3.6.1" +version = "3.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "195a7441515817c0d114ec3bebe9faa21393781f796c179c38c75e3cfb9fb4ec" +checksum = "c001a7f97db88ffe6fc6cca97bbdbfe926e55599184921ff7e72cd47559440de" dependencies = [ "astroport-circular-buffer", "cosmwasm-schema", "cosmwasm-std", + "cw-asset", "cw-storage-plus 0.15.1", "cw-utils 1.0.1", "cw20 0.15.1", "cw3", - "itertools", + "itertools 0.10.5", "uint", ] @@ -136,12 +137,12 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ecf768e2d3153bebfbe0c502ffa4199a52598e9b6e89fca54339615b2de77eb" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", "cw2 0.15.1", - "itertools", + "itertools 0.10.5", "protobuf", "thiserror", ] @@ -152,7 +153,7 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6144780ac014665b07616de0cfb35ca6a9411ed821e20c21e02f4f428c8ed51f" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "astroport-governance", "cosmwasm-schema", "cosmwasm-std", @@ -170,13 +171,30 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72806ace350e81c4e1cab7e275ef91f05bad830275d697d67ad1bd4acc6f016d" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", "cw20 0.15.1", ] +[[package]] +name = "astroport-incentives" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba05c27479d2885ba313086aa0b7d09284f1393f1ebb6d385f96d93b3c6fb72a" +dependencies = [ + "astroport 3.11.1", + "cosmwasm-schema", + "cosmwasm-std", + "cw-storage-plus 0.15.1", + "cw-utils 1.0.1", + "cw2 1.1.2", + "cw20 1.1.2", + "itertools 0.11.0", + "thiserror", +] + [[package]] name = "astroport-liquidity-helper" version = "0.3.0" @@ -189,26 +207,26 @@ dependencies = [ "cosmwasm-std", "cw-bigint", "cw-dex", - "cw-storage-plus 1.1.0", - "cw2 1.1.0", - "cw20 1.1.0", + "cw-storage-plus 1.2.0", + "cw2 1.1.2", + "cw20 1.1.2", "liquidity-helper", "thiserror", ] [[package]] name = "astroport-liquidity-manager" -version = "1.0.3" +version = "1.0.3-astroport-v2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a5673fe63b0284e30d1b456dea067cfaa82d2be6eafe5468cc0442917d49a04" +checksum = "ae4bf7689e7c37cfecc200aab3401c1ff6a507cccc9fb1baadfa71a73addaa2f" dependencies = [ - "astroport 3.6.1", + "astroport 2.9.5", "astroport-factory", "astroport-pair", - "astroport-pair-stable 3.3.0", + "astroport-pair-stable", "cosmwasm-schema", "cosmwasm-std", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "cw20 0.15.1", "cw20-base", "thiserror", @@ -221,7 +239,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92403e5d00e3c77d13d9616661ea9d9308d493fff6bec5e6e5e7bd7b7e0ff6af" dependencies = [ "astro-satellite-package", - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", @@ -236,7 +254,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "648ed6827a8f11012c0377fb60329204e8511fe46c86db3220113e70bdc57826" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cosmwasm-storage", @@ -247,15 +265,14 @@ dependencies = [ [[package]] name = "astroport-pair" -version = "1.5.0" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd96bc64722440636ed6267a6945ccce076231a08467d6d46a4af4c4ff062c69" +checksum = "e760b91eaf269bb2843b75b34eb73d474374bd2ebefbbe3cdb0a58d69959573b" dependencies = [ - "astroport 3.6.1", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", - "cw-utils 1.0.1", "cw2 0.15.1", "cw20 0.15.1", "integer-sqrt", @@ -269,7 +286,7 @@ version = "1.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04a90ce51403c81af3acf8e7028bb0eb095fce802365453b7e4a13bc0eb0d6d7" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "astroport-factory", "cosmwasm-schema", "cosmwasm-std", @@ -277,52 +294,34 @@ dependencies = [ "cw-utils 0.15.1", "cw2 0.15.1", "cw20 0.15.1", - "itertools", - "thiserror", -] - -[[package]] -name = "astroport-pair-stable" -version = "2.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3a262f2b6916e2a83808b246ff16cb2306a416e88b15a47ddbea5f8b666b1a4" -dependencies = [ - "astroport 2.9.0", - "cosmwasm-schema", - "cosmwasm-std", - "cw-storage-plus 0.15.1", - "cw-utils 1.0.1", - "cw2 0.15.1", - "cw20 0.15.1", - "itertools", + "itertools 0.10.5", "thiserror", ] [[package]] name = "astroport-pair-stable" -version = "3.3.0" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ac52657fa25194936d5218a258c2c041df00f0647e954a23f35e99b730f92b" +checksum = "d052966163fc2dd3eb46ae3c948ee7032a28726e046bc44431f9b488cb1dba90" dependencies = [ - "astroport 3.6.1", - "astroport-circular-buffer", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", "cw-utils 1.0.1", "cw2 0.15.1", "cw20 0.15.1", - "itertools", + "itertools 0.10.5", "thiserror", ] [[package]] name = "astroport-router" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e3bbb33c00370bd194cf3a166f1e3f4029a2add2bea01a5eb61e886aefbc85b" +checksum = "61d62a810fa14d25b850cbaf1b8c6d25fd309cf9455eb6b73b4fef630727811f" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", @@ -338,7 +337,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67adbc4240794e886ca1edbc7d46bc8a54c7aca7217d73ddcfbc90e1dbb030e7" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", @@ -354,7 +353,7 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3360383a2e585211da9a455ad57eb100578253b5d18a387f025cadd666604d99" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw2 0.15.1", @@ -369,7 +368,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dffce7cf86bf4d4f177ef941145352499e802abc4b898032af7808d16cca6371" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 0.15.1", @@ -385,7 +384,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44156757bfab3d4bd208d9b86b890d1478f45d07c8f8d3d1c3e3da91081cb54d" dependencies = [ - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw1-whitelist", @@ -401,18 +400,7 @@ checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", -] - -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", + "syn 2.0.52", ] [[package]] @@ -441,9 +429,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.3" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "base64ct" @@ -459,38 +447,36 @@ checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" [[package]] name = "bindgen" -version = "0.60.1" +version = "0.69.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6" +checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" dependencies = [ - "bitflags", + "bitflags 2.4.2", "cexpr", "clang-sys", - "clap", - "env_logger", + "itertools 0.11.0", "lazy_static", "lazycell", "log", - "peeking_take_while", + "prettyplease", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", + "syn 2.0.52", "which", ] [[package]] name = "bip32" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b30ed1d6f8437a487a266c8293aeb95b61a23261273e3e02912cdb8b68bf798b" +checksum = "7e141fb0f8be1c7b45887af94c88b182472b57c96b56773250ae00cd6a14a164" dependencies = [ "bs58", "hmac", - "k256 0.11.6", - "once_cell", - "pbkdf2", + "k256 0.13.1", "rand_core 0.6.4", "ripemd", "sha2 0.10.6", @@ -504,6 +490,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" + [[package]] name = "block-buffer" version = "0.9.0" @@ -524,17 +516,17 @@ dependencies = [ [[package]] name = "bnum" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128a44527fc0d6abf05f9eda748b9027536e12dff93f5acc8449f51583309350" +checksum = "56953345e39537a3e18bdaeba4cb0c58a78c1f61f361dc0fa7c5c7340ae87c5f" [[package]] name = "bs58" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" +checksum = "f5353f36341f7451062466f0b755b96ac3a9547e4d7f6b70d603fc721a7d7896" dependencies = [ - "sha2 0.9.9", + "sha2 0.10.6", ] [[package]] @@ -554,6 +546,9 @@ name = "bytes" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" +dependencies = [ + "serde", +] [[package]] name = "cc" @@ -599,30 +594,6 @@ dependencies = [ "libloading", ] -[[package]] -name = "clap" -version = "3.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" -dependencies = [ - "atty", - "bitflags", - "clap_lex", - "indexmap", - "strsim", - "termcolor", - "textwrap", -] - -[[package]] -name = "clap_lex" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" -dependencies = [ - "os_str_bytes", -] - [[package]] name = "config" version = "0.13.3" @@ -666,30 +637,30 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cosmos-sdk-proto" -version = "0.14.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20b42021d8488665b1a0d9748f1f81df7235362d194f44481e2e61bf376b77b4" +checksum = "32560304ab4c365791fd307282f76637213d8083c1a98490c35159cd67852237" dependencies = [ - "prost 0.11.9", - "prost-types", + "prost 0.12.3", + "prost-types 0.12.3", "tendermint-proto", ] [[package]] name = "cosmrs" -version = "0.9.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3903590099dcf1ea580d9353034c9ba1dbf55d1389a5bd2ade98535c3445d1f9" +checksum = "47126f5364df9387b9d8559dcef62e99010e1d4098f39eb3f7ee4b5c254e40ea" dependencies = [ "bip32", "cosmos-sdk-proto", - "ecdsa 0.14.8", + "ecdsa 0.16.7", "eyre", - "getrandom", - "k256 0.11.6", + "k256 0.13.1", "rand_core 0.6.4", "serde", "serde_json", + "signature 2.1.0", "subtle-encoding", "tendermint", "tendermint-rpc", @@ -698,9 +669,9 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.5.0" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8bb3c77c3b7ce472056968c745eb501c440fbc07be5004eba02782c35bfbbe3" +checksum = "9934c79e58d9676edfd592557dee765d2a6ef54c09d5aa2edb06156b00148966" dependencies = [ "digest 0.10.6", "ecdsa 0.16.7", @@ -712,9 +683,9 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.5.0" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea73e9162e6efde00018d55ed0061e93a108b5d6ec4548b4f8ce3c706249687" +checksum = "bc5e72e330bd3bdab11c52b5ecbdeb6a8697a004c57964caeb5d876f0b088b3c" dependencies = [ "syn 1.0.107", ] @@ -745,11 +716,11 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.5.0" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04d6864742e3a7662d024b51a94ea81c9af21db6faea2f9a6d2232bb97c6e53e" +checksum = "ef8666e572a3a2519010dde88c04d16e9339ae751b56b2bb35081fe3f7d6be74" dependencies = [ - "base64 0.21.3", + "base64 0.21.7", "bech32", "bnum", "cosmwasm-crypto", @@ -824,15 +795,6 @@ dependencies = [ "typenum", ] -[[package]] -name = "ct-logs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1a816186fa68d9e426e3cb4ae4dff1fcd8e4a2c34b781bf7a822574a0d0aac8" -dependencies = [ - "sct", -] - [[package]] name = "curve25519-dalek" version = "3.2.0" @@ -846,6 +808,19 @@ dependencies = [ "zeroize", ] +[[package]] +name = "curve25519-dalek-ng" +version = "4.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c359b7249347e46fb28804470d071c921156ad62b3eef5d34e2ba867533dec8" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.6.4", + "subtle-ng", + "zeroize", +] + [[package]] name = "cw-address-like" version = "1.0.4" @@ -855,6 +830,20 @@ dependencies = [ "cosmwasm-std", ] +[[package]] +name = "cw-asset" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c999a12f8cd8736f6f86e9a4ede5905530cb23cfdef946b9da1c506ad1b70799" +dependencies = [ + "cosmwasm-schema", + "cosmwasm-std", + "cw-address-like", + "cw-storage-plus 1.2.0", + "cw20 1.1.2", + "thiserror", +] + [[package]] name = "cw-bigint" version = "0.4.3" @@ -874,7 +863,7 @@ checksum = "91440ce8ec4f0642798bc8c8cb6b9b53c1926c6dadaf0eed267a5145cd529071" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "cw-utils 1.0.1", "schemars", "serde", @@ -883,22 +872,54 @@ dependencies = [ [[package]] name = "cw-dex" -version = "0.5.0" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b8d40af4c29539a1c01e71d7c20cc0d65500b49ab98655e5ee7b5e7972c8bb5" +checksum = "cd655e137d57d6c77696247d2417cfee75b15d027b1465741f45fa88bfcbf1b7" dependencies = [ "apollo-cw-asset", "apollo-utils", - "astroport 2.9.0", + "astroport 2.9.5", "cosmwasm-schema", "cosmwasm-std", "cw-utils 1.0.1", - "cw2 1.1.0", - "cw20 1.1.0", - "osmosis-std 0.19.2", + "cw2 1.1.2", + "cw20 1.1.2", "thiserror", ] +[[package]] +name = "cw-dex-astroport" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cc11c6de1f93dbc38e92418c068a835148cf7126b47eb7879e1ef5054721e0b" +dependencies = [ + "apollo-cw-asset", + "apollo-utils", + "astroport 2.9.5", + "astroport 3.11.1", + "cosmwasm-schema", + "cosmwasm-std", + "cw-dex", + "cw-utils 1.0.1", + "cw2 1.1.2", + "cw20 1.1.2", +] + +[[package]] +name = "cw-dex-osmosis" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1691781e4deda5b4fb564542752e9226763997996a71abadb80f770cd7ec04c" +dependencies = [ + "apollo-cw-asset", + "apollo-utils", + "cosmwasm-schema", + "cosmwasm-std", + "cw-dex", + "cw-utils 1.0.1", + "osmosis-std 0.22.0", +] + [[package]] name = "cw-dex-router" version = "0.3.0" @@ -911,29 +932,31 @@ dependencies = [ "cosmwasm-std", "cw-controllers", "cw-dex", - "cw-storage-plus 1.1.0", - "cw2 1.1.0", - "cw20 1.1.0", + "cw-storage-plus 1.2.0", + "cw2 1.1.2", + "cw20 1.1.2", "thiserror", ] [[package]] name = "cw-it" -version = "0.2.3" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f452b759fc448ec05d20dc70f25dda8b83ba0a7c994049d27556fd1813a5ad0d" +checksum = "3d9bf95d529e18676d6915a26c6d0ff254baf71d6a46ddae5c2014c276dae546" dependencies = [ "anyhow", "apollo-cw-multi-test", - "astroport 2.9.0", + "astroport 2.9.5", + "astroport 3.11.1", "astroport-factory", "astroport-generator", + "astroport-incentives", "astroport-liquidity-manager", "astroport-maker", "astroport-native-coin-registry", "astroport-pair", "astroport-pair-concentrated", - "astroport-pair-stable 2.1.2", + "astroport-pair-stable", "astroport-router", "astroport-staking", "astroport-token", @@ -944,13 +967,12 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw20 0.15.1", - "osmosis-std 0.19.2", + "osmosis-std 0.22.0", "osmosis-test-tube", "paste", - "prost 0.11.9", + "prost 0.12.3", "regex", "serde", - "serde_json", "strum 0.24.1", "test-tube", "thiserror", @@ -963,7 +985,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dea5a233bd67babedbe96a514178a64b0c597f1f38bc474fa8d63e3f26bdceb2" dependencies = [ "cosmwasm-std", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", ] [[package]] @@ -976,7 +998,7 @@ dependencies = [ "cosmwasm-std", "cw-address-like", "cw-ownable-derive", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "cw-utils 1.0.1", "thiserror", ] @@ -1005,9 +1027,9 @@ dependencies = [ [[package]] name = "cw-storage-plus" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f0e92a069d62067f3472c62e30adedb4cab1754725c0f2a682b3128d2bf3c79" +checksum = "d5ff29294ee99373e2cd5fd21786a3c0ced99a52fec2ca347d565489c61b723c" dependencies = [ "cosmwasm-std", "schemars", @@ -1037,7 +1059,7 @@ checksum = "c80e93d1deccb8588db03945016a292c3c631e6325d349ebb35d2db6f4f946f7" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "cw2 1.1.0", + "cw2 1.1.2", "schemars", "semver", "serde", @@ -1072,9 +1094,9 @@ dependencies = [ [[package]] name = "cw-vault-standard-test-helpers" -version = "0.3.3" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9e5f04b9bc896433854415371e33480082d7d3047a0e9a1d2c633317088f9cd" +checksum = "9f19de876e259aa5ce90799a7f866c8be81da625266abc988a858169d6ae1614" dependencies = [ "cosmwasm-std", "cw-it", @@ -1126,14 +1148,15 @@ dependencies = [ [[package]] name = "cw2" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ac2dc7a55ad64173ca1e0a46697c31b7a5c51342f55a1e84a724da4eb99908" +checksum = "c6c120b24fbbf5c3bedebb97f2cc85fbfa1c3287e09223428e7e597b5293c1fa" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "schemars", + "semver", "serde", "thiserror", ] @@ -1153,9 +1176,9 @@ dependencies = [ [[package]] name = "cw20" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "011c45920f8200bd5d32d4fe52502506f64f2f75651ab408054d4cfc75ca3a9b" +checksum = "526e39bb20534e25a1cd0386727f0038f4da294e5e535729ba3ef54055246abd" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1191,7 +1214,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-utils 1.0.1", - "cw20 1.1.0", + "cw20 1.1.2", "schemars", "serde", "thiserror", @@ -1287,7 +1310,7 @@ checksum = "0997c976637b606099b9985693efa3581e84e41f5c11ba5255f88711058ad428" dependencies = [ "der 0.7.8", "digest 0.10.6", - "elliptic-curve 0.13.5", + "elliptic-curve 0.13.8", "rfc6979 0.4.0", "signature 2.1.0", "spki 0.7.2", @@ -1295,21 +1318,23 @@ dependencies = [ [[package]] name = "ed25519" -version = "1.5.3" +version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ - "signature 1.6.4", + "pkcs8 0.10.2", + "signature 2.1.0", ] [[package]] -name = "ed25519-dalek" -version = "1.0.1" +name = "ed25519-consensus" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +checksum = "3c8465edc8ee7436ffea81d21a019b16676ee3db267aa8d5a8d729581ecf998b" dependencies = [ - "curve25519-dalek", - "ed25519", + "curve25519-dalek-ng", + "hex", + "rand_core 0.6.4", "sha2 0.9.9", "zeroize", ] @@ -1321,7 +1346,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c24f403d068ad0b359e577a77f92392118be3f3c927538f2bb544a5ecd828c6" dependencies = [ "curve25519-dalek", - "hashbrown", + "hashbrown 0.12.3", "hex", "rand_core 0.6.4", "serde", @@ -1357,9 +1382,9 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.13.5" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct 0.2.0", "crypto-bigint 0.5.3", @@ -1375,18 +1400,20 @@ dependencies = [ ] [[package]] -name = "env_logger" -version = "0.9.3" +name = "encoding_rs" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", + "cfg-if", ] +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + [[package]] name = "eyre" version = "0.6.8" @@ -1456,7 +1483,6 @@ checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" dependencies = [ "futures-channel", "futures-core", - "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -1479,34 +1505,12 @@ version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" -[[package]] -name = "futures-executor" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - [[package]] name = "futures-io" version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" -[[package]] -name = "futures-macro" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.31", -] - [[package]] name = "futures-sink" version = "0.3.28" @@ -1525,16 +1529,11 @@ version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ - "futures-channel", "futures-core", - "futures-io", - "futures-macro", "futures-sink", "futures-task", - "memchr", "pin-project-lite", "pin-utils", - "slab", ] [[package]] @@ -1550,9 +1549,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.8" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" dependencies = [ "cfg-if", "js-sys", @@ -1591,9 +1590,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" +checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", @@ -1618,28 +1617,10 @@ dependencies = [ ] [[package]] -name = "headers" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06683b93020a07e3dbcf5f8c0f6d40080d725bea7936fc01ad345c01b97dc270" -dependencies = [ - "base64 0.21.3", - "bytes", - "headers-core", - "http", - "httpdate", - "mime", - "sha1", -] - -[[package]] -name = "headers-core" -version = "0.2.0" +name = "hashbrown" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7f66481bfee273957b1f20485a4ff3362987f85b2c236580d81b4eb7a326429" -dependencies = [ - "http", -] +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" @@ -1647,15 +1628,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] - [[package]] name = "hermit-abi" version = "0.3.2" @@ -1711,12 +1683,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - [[package]] name = "hyper" version = "0.14.27" @@ -1741,41 +1707,18 @@ dependencies = [ "want", ] -[[package]] -name = "hyper-proxy" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca815a891b24fdfb243fa3239c86154392b0953ee584aa1a2a1f66d20cbe75cc" -dependencies = [ - "bytes", - "futures", - "headers", - "http", - "hyper", - "hyper-rustls", - "rustls-native-certs", - "tokio", - "tokio-rustls", - "tower-service", - "webpki", -] - [[package]] name = "hyper-rustls" -version = "0.22.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ - "ct-logs", "futures-util", + "http", "hyper", - "log", "rustls", - "rustls-native-certs", "tokio", "tokio-rustls", - "webpki", - "webpki-roots", ] [[package]] @@ -1796,12 +1739,12 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" [[package]] name = "indexmap" -version = "1.9.3" +version = "2.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4" dependencies = [ - "autocfg", - "hashbrown", + "equivalent", + "hashbrown 0.14.3", ] [[package]] @@ -1813,6 +1756,12 @@ dependencies = [ "num-traits", ] +[[package]] +name = "ipnet" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" + [[package]] name = "itertools" version = "0.10.5" @@ -1822,6 +1771,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.5" @@ -1858,7 +1816,6 @@ dependencies = [ "ecdsa 0.14.8", "elliptic-curve 0.12.3", "sha2 0.10.6", - "sha3", ] [[package]] @@ -1869,21 +1826,12 @@ checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" dependencies = [ "cfg-if", "ecdsa 0.16.7", - "elliptic-curve 0.13.5", + "elliptic-curve 0.13.8", "once_cell", "sha2 0.10.6", "signature 2.1.0", ] -[[package]] -name = "keccak" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" -dependencies = [ - "cpufeatures", -] - [[package]] name = "lazy_static" version = "1.4.0" @@ -1898,9 +1846,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.139" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libloading" @@ -1928,7 +1876,7 @@ dependencies = [ "apollo-utils", "cosmwasm-schema", "cosmwasm-std", - "cw20 1.1.0", + "cw20 1.1.2", ] [[package]] @@ -1946,11 +1894,11 @@ dependencies = [ "cw-dex-router", "cw-item-set", "cw-ownable", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "cw-utils 1.0.1", "cw-vault-standard 0.3.3", - "cw2 1.1.0", - "cw20 1.1.0", + "cw2 1.1.2", + "cw20 1.1.2", "liquidity-helper", "optional_struct", "osmosis-std 0.14.0", @@ -1961,26 +1909,59 @@ dependencies = [ ] [[package]] -name = "locked-astroport-vault-test-helpers" -version = "0.2.0" +name = "locked-astroport-vault" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7036cb51702be26d282b7fe18eba1a8fcea0bebe484563da23256fb9cdbf70bf" +checksum = "8ca1bacb8bd942e3f05c30e7930ce3cecffe9468e00bc5e14b59bc416c75f228" dependencies = [ "apollo-cw-asset", - "astroport-liquidity-helper", + "apollo-utils", "cosmwasm-schema", "cosmwasm-std", + "cw-address-like", "cw-dex", + "cw-dex-astroport", "cw-dex-router", - "cw-it", + "cw-item-set", "cw-ownable", + "cw-storage-plus 1.2.0", "cw-utils 1.0.1", "cw-vault-standard 0.3.3", - "cw-vault-standard-test-helpers", - "cw2 1.1.0", - "cw20 1.1.0", + "cw2 1.1.2", + "cw20 1.1.2", "liquidity-helper", - "locked-astroport-vault", + "locked-astroport-vault 0.2.0", + "optional_struct", + "osmosis-std 0.14.0", + "schemars", + "semver", + "serde", + "strum 0.25.0", + "thiserror", +] + +[[package]] +name = "locked-astroport-vault-test-helpers" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ab49abb6d77e1d1313458f1e27c9227b979fdb143dda28d602205b2714ac479" +dependencies = [ + "apollo-cw-asset", + "astroport-liquidity-helper", + "cosmwasm-schema", + "cosmwasm-std", + "cw-dex", + "cw-dex-astroport", + "cw-dex-router", + "cw-it", + "cw-ownable", + "cw-utils 1.0.1", + "cw-vault-standard 0.3.3", + "cw-vault-standard-test-helpers", + "cw2 1.1.2", + "cw20 1.1.2", + "liquidity-helper", + "locked-astroport-vault 0.4.2", ] [[package]] @@ -2009,13 +1990,13 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "mio" -version = "0.8.8" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] @@ -2064,7 +2045,7 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.2", + "hermit-abi", "libc", ] @@ -2130,15 +2111,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccd746e37177e1711c20dd619a1620f34f5c8b569c53590a72dedd5344d8924a" dependencies = [ "dlv-list", - "hashbrown", + "hashbrown 0.12.3", ] -[[package]] -name = "os_str_bytes" -version = "6.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" - [[package]] name = "osmosis-std" version = "0.14.0" @@ -2149,7 +2124,7 @@ dependencies = [ "cosmwasm-std", "osmosis-std-derive 0.13.2", "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "schemars", "serde", "serde-cw-value", @@ -2157,15 +2132,15 @@ dependencies = [ [[package]] name = "osmosis-std" -version = "0.19.2" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "798fade51443a0e07eb25b59a11b320b9e8f03e6e8fbe14c520258f04742fe13" +checksum = "8641c376f01f5af329dc2a34e4f5527eaeb0bde18cda8d86fed958d04c86159c" dependencies = [ "chrono", "cosmwasm-std", - "osmosis-std-derive 0.16.2", - "prost 0.11.9", - "prost-types", + "osmosis-std-derive 0.20.1", + "prost 0.12.3", + "prost-types 0.12.3", "schemars", "serde", "serde-cw-value", @@ -2177,7 +2152,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a455e262a6fdfd3914f3a4e11e6bc0ce491901cb9d507d7856d7ef6e129e90c6" dependencies = [ - "itertools", + "itertools 0.10.5", "proc-macro2", "quote", "syn 1.0.107", @@ -2185,29 +2160,29 @@ dependencies = [ [[package]] name = "osmosis-std-derive" -version = "0.16.2" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f47f0b2f22adb341bb59e5a3a1b464dde033181954bd055b9ae86d6511ba465b" +checksum = "c5ebdfd1bc8ed04db596e110c6baa9b174b04f6ed1ec22c666ddc5cb3fa91bd7" dependencies = [ - "itertools", + "itertools 0.10.5", "proc-macro2", - "prost-types", + "prost-types 0.11.9", "quote", "syn 1.0.107", ] [[package]] name = "osmosis-test-tube" -version = "19.2.0" +version = "22.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0dde0a21f1323e7c78f46da4bd0b24149d26483785fb5b39f74016f3f524aad" +checksum = "a082b97136d15470a37aa758f227c865594590b69d74721248ed5adf59bf1ca2" dependencies = [ - "base64 0.13.1", + "base64 0.21.7", "bindgen", "cosmrs", "cosmwasm-std", - "osmosis-std 0.19.2", - "prost 0.11.9", + "osmosis-std 0.22.0", + "prost 0.12.3", "serde", "serde_json", "test-tube", @@ -2226,26 +2201,11 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" -[[package]] -name = "pbkdf2" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" -dependencies = [ - "digest 0.10.6", -] - -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - [[package]] name = "peg" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07c0b841ea54f523f7aa556956fbd293bcbe06f2e67d2eb732b7278aaf1d166a" +checksum = "400bcab7d219c38abf8bd7cc2054eb9bbbd4312d66f6a5557d572a203f646f61" dependencies = [ "peg-macros", "peg-runtime", @@ -2253,9 +2213,9 @@ dependencies = [ [[package]] name = "peg-macros" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aa52829b8decbef693af90202711348ab001456803ba2a98eb4ec8fb70844c" +checksum = "46e61cce859b76d19090f62da50a9fe92bab7c2a5f09e183763559a2ac392c90" dependencies = [ "peg-runtime", "proc-macro2", @@ -2264,9 +2224,9 @@ dependencies = [ [[package]] name = "peg-runtime" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c719dcf55f09a3a7e764c6649ab594c18a177e3599c467983cdf644bfc0a4088" +checksum = "36bae92c60fa2398ce4678b98b2c4b5a7c61099961ca1fa305aec04a9ad28922" [[package]] name = "percent-encoding" @@ -2305,7 +2265,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] @@ -2336,7 +2296,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] @@ -2371,6 +2331,22 @@ dependencies = [ "spki 0.7.2", ] +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "prettyplease" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" +dependencies = [ + "proc-macro2", + "syn 2.0.52", +] + [[package]] name = "proc-macro-error" version = "1.0.4" @@ -2397,9 +2373,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.66" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -2424,6 +2400,16 @@ dependencies = [ "prost-derive 0.11.9", ] +[[package]] +name = "prost" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" +dependencies = [ + "bytes", + "prost-derive 0.12.3", +] + [[package]] name = "prost-derive" version = "0.9.0" @@ -2431,7 +2417,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe" dependencies = [ "anyhow", - "itertools", + "itertools 0.10.5", "proc-macro2", "quote", "syn 1.0.107", @@ -2444,12 +2430,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4" dependencies = [ "anyhow", - "itertools", + "itertools 0.10.5", "proc-macro2", "quote", "syn 1.0.107", ] +[[package]] +name = "prost-derive" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" +dependencies = [ + "anyhow", + "itertools 0.11.0", + "proc-macro2", + "quote", + "syn 2.0.52", +] + [[package]] name = "prost-types" version = "0.11.9" @@ -2459,6 +2458,15 @@ dependencies = [ "prost 0.11.9", ] +[[package]] +name = "prost-types" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" +dependencies = [ + "prost 0.12.3", +] + [[package]] name = "protobuf" version = "2.28.0" @@ -2470,13 +2478,34 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + [[package]] name = "rand_core" version = "0.5.1" @@ -2521,6 +2550,47 @@ version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" +[[package]] +name = "reqwest" +version = "0.11.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" +dependencies = [ + "base64 0.21.7", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "hyper", + "hyper-rustls", + "ipnet", + "js-sys", + "log", + "mime", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-native-certs", + "rustls-pemfile", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-rustls", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "winreg", +] + [[package]] name = "rfc6979" version = "0.3.1" @@ -2544,17 +2614,17 @@ dependencies = [ [[package]] name = "ring" -version = "0.16.20" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", + "cfg-if", + "getrandom", "libc", - "once_cell", "spin", "untrusted", - "web-sys", - "winapi", + "windows-sys 0.52.0", ] [[package]] @@ -2566,17 +2636,6 @@ dependencies = [ "digest 0.10.6", ] -[[package]] -name = "ripemd160" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251" -dependencies = [ - "block-buffer 0.9.0", - "digest 0.9.0", - "opaque-debug", -] - [[package]] name = "ron" version = "0.7.1" @@ -2584,7 +2643,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88073939a61e5b7680558e6be56b419e208420c2adb92be54921fa6b72283f1a" dependencies = [ "base64 0.13.1", - "bitflags", + "bitflags 1.3.2", "serde", ] @@ -2606,29 +2665,47 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustls" -version = "0.19.1" +version = "0.21.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" +checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" dependencies = [ - "base64 0.13.1", "log", "ring", + "rustls-webpki", "sct", - "webpki", ] [[package]] name = "rustls-native-certs" -version = "0.5.0" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", - "rustls", + "rustls-pemfile", "schannel", "security-framework", ] +[[package]] +name = "rustls-pemfile" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +dependencies = [ + "base64 0.21.7", +] + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "rustversion" version = "1.0.14" @@ -2656,14 +2733,14 @@ version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" dependencies = [ - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "schemars" -version = "0.8.13" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763f8cd0d4c71ed8389c90cb8100cba87e763bd01a8e614d4f0af97bcd50a161" +checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29" dependencies = [ "dyn-clone", "schemars_derive", @@ -2673,9 +2750,9 @@ dependencies = [ [[package]] name = "schemars_derive" -version = "0.8.13" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0f696e21e10fa546b7ffb1c9672c6de8fbc7a81acf59524386d8639bf12737" +checksum = "c767fd6fa65d9ccf9cf026122c1b555f2ef9a4f0cea69da4d7dbc3e258d30967" dependencies = [ "proc-macro2", "quote", @@ -2685,9 +2762,9 @@ dependencies = [ [[package]] name = "sct" -version = "0.6.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ "ring", "untrusted", @@ -2727,7 +2804,7 @@ version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "core-foundation-sys", "libc", @@ -2746,9 +2823,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.16" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" +checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" [[package]] name = "serde" @@ -2770,9 +2847,9 @@ dependencies = [ [[package]] name = "serde-json-wasm" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a15bee9b04dd165c3f4e142628982ddde884c2022a89e8ddf99c4829bf2c3a58" +checksum = "9e9213a07d53faa0b8dd81e767a54a8188a242fdb9be99ab75ec576a774bfdd7" dependencies = [ "serde", ] @@ -2794,7 +2871,7 @@ checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] @@ -2827,18 +2904,19 @@ checksum = "8725e1dfadb3a50f7e5ce0b1a540466f6ed3fe7a0fca2ac2b8b831d31316bd00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] -name = "sha1" -version = "0.10.5" +name = "serde_urlencoded" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" dependencies = [ - "cfg-if", - "cpufeatures", - "digest 0.10.6", + "form_urlencoded", + "itoa", + "ryu", + "serde", ] [[package]] @@ -2865,16 +2943,6 @@ dependencies = [ "digest 0.10.6", ] -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest 0.10.6", - "keccak", -] - [[package]] name = "shlex" version = "1.2.0" @@ -2943,9 +3011,9 @@ dependencies = [ [[package]] name = "spin" -version = "0.5.2" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spki" @@ -2973,12 +3041,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - [[package]] name = "strum" version = "0.24.1" @@ -3020,7 +3082,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] @@ -3038,6 +3100,12 @@ dependencies = [ "zeroize", ] +[[package]] +name = "subtle-ng" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "734676eb262c623cec13c3155096e08d1f8f29adce39ba17948b18dad1e54142" + [[package]] name = "syn" version = "1.0.107" @@ -3051,39 +3119,66 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.31" +version = "2.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718fa2415bcb8d8bd775917a1bf12a7931b6dfa890753378538118181e0cb398" +checksum = "b699d15b36d1f02c3e7c69f8ffef53de37aefae075d8488d4ba1a7788d574a07" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "tendermint" -version = "0.23.9" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467f82178deeebcd357e1273a0c0b77b9a8a0313ef7c07074baebe99d87851f4" +checksum = "15ab8f0a25d0d2ad49ac615da054d6a76aa6603ff95f7d18bafdd34450a1a04b" dependencies = [ - "async-trait", "bytes", + "digest 0.10.6", "ed25519", - "ed25519-dalek", + "ed25519-consensus", "flex-error", "futures", - "k256 0.11.6", + "k256 0.13.1", "num-traits", "once_cell", - "prost 0.11.9", - "prost-types", - "ripemd160", + "prost 0.12.3", + "prost-types 0.12.3", + "ripemd", "serde", "serde_bytes", "serde_json", "serde_repr", - "sha2 0.9.9", - "signature 1.6.4", + "sha2 0.10.6", + "signature 2.1.0", "subtle", "subtle-encoding", "tendermint-proto", @@ -3093,9 +3188,9 @@ dependencies = [ [[package]] name = "tendermint-config" -version = "0.23.9" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d42ee0abc27ef5fc34080cce8d43c189950d331631546e7dfb983b6274fa327" +checksum = "e1a02da769166e2052cd537b1a97c78017632c2d9e19266367b27e73910434fc" dependencies = [ "flex-error", "serde", @@ -3107,16 +3202,16 @@ dependencies = [ [[package]] name = "tendermint-proto" -version = "0.23.9" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ce80bf536476db81ecc9ebab834dc329c9c1509a694f211a73858814bfe023" +checksum = "b797dd3d2beaaee91d2f065e7bdf239dc8d80bba4a183a288bc1279dd5a69a1e" dependencies = [ "bytes", "flex-error", "num-derive", "num-traits", - "prost 0.11.9", - "prost-types", + "prost 0.12.3", + "prost-types 0.12.3", "serde", "serde_bytes", "subtle-encoding", @@ -3125,24 +3220,24 @@ dependencies = [ [[package]] name = "tendermint-rpc" -version = "0.23.9" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f14aafe3528a0f75e9f3f410b525617b2de16c4b7830a21f717eee62882ec60" +checksum = "71afae8bb5f6b14ed48d4e1316a643b6c2c3cbad114f510be77b4ed20b7b3e42" dependencies = [ "async-trait", "bytes", "flex-error", "futures", "getrandom", - "http", - "hyper", - "hyper-proxy", - "hyper-rustls", "peg", "pin-project", + "rand", + "reqwest", + "semver", "serde", "serde_bytes", "serde_json", + "subtle", "subtle-encoding", "tendermint", "tendermint-config", @@ -3156,15 +3251,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "termcolor" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" -dependencies = [ - "winapi-util", -] - [[package]] name = "test-case" version = "3.2.1" @@ -3184,7 +3270,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] @@ -3196,50 +3282,44 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", "test-case-core", ] [[package]] name = "test-tube" -version = "0.1.7" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04de0d85f2438f0b64a5c135a1524564f2b89263cfbce011542446b6681d006f" +checksum = "09184c7655b2bdaf4517b06141a2e4c44360904f2706a05b24c831bd97ad1db6" dependencies = [ - "base64 0.13.1", + "base64 0.21.7", "cosmrs", "cosmwasm-std", - "osmosis-std 0.19.2", - "prost 0.11.9", + "osmosis-std 0.22.0", + "prost 0.12.3", "serde", "serde_json", "thiserror", ] -[[package]] -name = "textwrap" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" - [[package]] name = "thiserror" -version = "1.0.48" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d6d7a740b8a666a7e828dd00da9c0dc290dff53154ea77ac109281de90589b7" +checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.48" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49922ecae66cc8a249b77e68d1d0623c1b2c514f0060c27cdc68bd62a1219d35" +checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] @@ -3288,7 +3368,7 @@ dependencies = [ "pin-project-lite", "socket2", "tokio-macros", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] @@ -3299,18 +3379,17 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] [[package]] name = "tokio-rustls" -version = "0.22.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ "rustls", "tokio", - "webpki", ] [[package]] @@ -3415,9 +3494,9 @@ dependencies = [ [[package]] name = "untrusted" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" @@ -3432,13 +3511,13 @@ dependencies = [ [[package]] name = "uuid" -version = "0.8.2" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" [[package]] name = "vault-zapper" -version = "0.2.0" +version = "0.3.0" dependencies = [ "apollo-cw-asset", "apollo-utils", @@ -3446,16 +3525,18 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-dex", + "cw-dex-astroport", + "cw-dex-osmosis", "cw-dex-router", "cw-it", - "cw-storage-plus 1.1.0", + "cw-storage-plus 1.2.0", "cw-utils 1.0.1", "cw-vault-standard 0.4.0", "cw-vault-standard-test-helpers", - "cw2 1.1.0", - "cw20 1.1.0", + "cw2 1.1.2", + "cw20 1.1.2", "liquidity-helper", - "locked-astroport-vault", + "locked-astroport-vault 0.4.2", "locked-astroport-vault-test-helpers", "test-case", "thiserror", @@ -3513,10 +3594,22 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", "wasm-bindgen-shared", ] +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" +dependencies = [ + "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "wasm-bindgen-macro" version = "0.2.87" @@ -3535,7 +3628,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -3556,25 +3649,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.21.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" -dependencies = [ - "ring", - "untrusted", -] - -[[package]] -name = "webpki-roots" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" -dependencies = [ - "webpki", -] - [[package]] name = "which" version = "4.4.0" @@ -3623,7 +3697,16 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets", + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.4", ] [[package]] @@ -3632,13 +3715,28 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" +dependencies = [ + "windows_aarch64_gnullvm 0.52.4", + "windows_aarch64_msvc 0.52.4", + "windows_i686_gnu 0.52.4", + "windows_i686_msvc 0.52.4", + "windows_x86_64_gnu 0.52.4", + "windows_x86_64_gnullvm 0.52.4", + "windows_x86_64_msvc 0.52.4", ] [[package]] @@ -3647,42 +3745,94 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" + [[package]] name = "windows_aarch64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" + [[package]] name = "windows_i686_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" + [[package]] name = "windows_i686_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" + [[package]] name = "windows_x86_64_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" + [[package]] name = "windows_x86_64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" + [[package]] name = "windows_x86_64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" + +[[package]] +name = "winreg" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + [[package]] name = "yaml-rust" version = "0.4.5" @@ -3694,9 +3844,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.5.7" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" dependencies = [ "zeroize_derive", ] @@ -3709,5 +3859,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.31", + "syn 2.0.52", ] diff --git a/Cargo.toml b/Cargo.toml index ab677b4..45daa49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vault-zapper" -version = "0.2.0" +version = "0.3.0" authors = ["Sturdy "] edition = "2021" @@ -30,11 +30,10 @@ overflow-checks = true default = [] # use library feature to disable all instantiate/execute/query exports library = [] -osmosis = ["cw-dex/osmosis"] -astroport = ["cw-dex/astroport"] +osmosis = ["cw-dex-osmosis"] +astroport = ["cw-dex-astroport"] osmosis-test-tube = ["cw-it/osmosis-test-tube", "locked-astroport-vault-test-helpers/osmosis-test-tube"] - [package.metadata.optimizer] builds = [ { name = "astroport", features = ["astroport"] }, @@ -46,20 +45,22 @@ apollo-utils = "0.1.1" cosmwasm-schema = "1.5.0" cosmwasm-std = "1.5.0" cw-storage-plus = "1.1.0" -cw2 = "1.1.0" +cw2 = "1.1.2" cw20 = "1.1.0" thiserror = { version = "1.0.48" } cw-vault-standard = { version = "0.4.0", features = ["lockup"] } cw-dex-router = { version = "0.3.0", features = ["library"] } apollo-cw-asset = "0.1.2" -cw-dex = "0.5.0" +cw-dex = "0.5.3" +cw-dex-astroport = { version = "0.1.1", optional = true } +cw-dex-osmosis = { version = "0.1.0", optional = true } liquidity-helper = "0.3.0" [dev-dependencies] -cw-it = { version = "0.2.3", features = ["astroport-multi-test"] } -cw-vault-standard-test-helpers = "0.3.3" -locked-astroport-vault-test-helpers = "0.2.0" -locked-astroport-vault = "0.2.0" +cw-it = { version = "0.3.1", features = ["astroport-multi-test"] } +cw-vault-standard-test-helpers = "0.4.1" +locked-astroport-vault = "0.4.2" +locked-astroport-vault-test-helpers = "0.4.2" astroport-liquidity-helper = "0.3.0" test-case = "3.2.1" cw-utils = "1.0.1" diff --git a/Makefile.toml b/Makefile.toml index 6439ffa..b180a8a 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -9,7 +9,7 @@ skip_core_tasks = true RUST_OPTIMIZER_VERSION = "0.15.0" # Use rust version from rust-optimizer Dockerfile (see https://github.com/CosmWasm/rust-optimizer/blob/main/Dockerfile#L1) # to be sure that we compile / test against the same version -RUST_VERSION = "1.69.0" +RUST_VERSION = "1.72.0" NIGHTLY_VERSION = "nightly-2023-08-29" [tasks.install-stable] @@ -61,7 +61,7 @@ args = ["deny", "check"] [tasks.check] toolchain = "${RUST_VERSION}" command = "cargo" -args = ["check"] +args = ["check", "--features", "astroport,osmosis"] [tasks.clippy-check] toolchain = "${NIGHTLY_VERSION}" @@ -108,7 +108,7 @@ args = [ # This task requires the `cargo-machete` package: https://crates.io/crates/cargo-machete [tasks.machete-check] -toolchain = "${NIGHTLY_VERSION}" +toolchain = "${RUST_VERSION}" command = "cargo" args = ["machete"] [tasks.machete-fix] @@ -146,7 +146,7 @@ args = [ "test", "--lib", "--features", - "astroport" + "astroport,osmosis" ] # Run integration tests diff --git a/deny.toml b/deny.toml index 3290f10..0968aed 100644 --- a/deny.toml +++ b/deny.toml @@ -4,22 +4,15 @@ targets = [ { triple = "x86_64-unknown-linux-musl" }, ] +# Ignore dev dependencies +exclude-dev = true + [advisories] vulnerability = "deny" unmaintained = "deny" notice = "deny" unsound = "deny" -ignore = [ - # Potential unaligned pointer read on windows. Doesn't happen in practice. - "RUSTSEC-2021-0145", - # Not valid regarding the `chrono` dependency on `time`. May be valid for - # other crates. See - # https://github.com/chronotope/chrono/issues/602#issuecomment-1075915577 - "RUSTSEC-2020-0071", # Alias: RUSTSEC-2020-26235 - # Only in dev deps - "RUSTSEC-2022-0093", - "RUSTSEC-2023-0052" -] +ignore = [] [bans] multiple-versions = "allow" @@ -31,32 +24,14 @@ unknown-registry = "deny" unknown-git = "deny" allow-git = [] [sources.allow-org] -github = [ - "apollodao", -] +github = [] [licenses] unlicensed = "deny" copyleft = "deny" # We want really high confidence when inferring licenses from text confidence-threshold = 0.93 -allow = ["Apache-2.0", "MIT", "BSD-3-Clause", "MPL-2.0", "ISC"] +allow = ["Apache-2.0", "MIT", "BSD-3-Clause", "MPL-2.0"] exceptions = [ { allow = ["Unicode-DFS-2016"], name = "unicode-ident" }, - { allow = ["BUSL-1.1"], name = "locked-astroport-vault" }, - { allow = ["BUSL-1.1"], name = "locked-astroport-vault-test-helpers" } -] - -[[licenses.clarify]] -name = "webpki" -expression = "ISC" -license-files = [ - { path = "LICENSE", hash = 0x001c7e6c }, -] - -[[licenses.clarify]] -name = "ring" -expression = "ISC" -license-files = [ - { path = "LICENSE", hash = 0xbd0eed23 }, ] diff --git a/src/deposit.rs b/src/deposit.rs index 0367cd2..0110241 100644 --- a/src/deposit.rs +++ b/src/deposit.rs @@ -3,12 +3,10 @@ use apollo_utils::assets::receive_assets; use cosmwasm_std::{ to_json_binary, Addr, Binary, Coin, DepsMut, Empty, Env, Event, MessageInfo, Response, Uint128, }; -use cw_dex::traits::Pool as PoolTrait; -use cw_dex::Pool; use cw_vault_standard::VaultContract; use crate::helpers::VaultHelper; -use crate::msg::CallbackMsg; +use crate::msg::{CallbackMsg, Pool}; use crate::state::{ASTROPORT_LIQUIDITY_MANAGER, LIQUIDITY_HELPER, ROUTER}; use crate::ContractError; @@ -165,6 +163,7 @@ pub fn callback_provide_liquidity( Pool::Astroport(pool) => to_json_binary(&pool)?, #[cfg(feature = "osmosis")] Pool::Osmosis(pool) => to_json_binary(&pool)?, + #[allow(unreachable_patterns)] _ => panic!("Unsupported pool type"), }; diff --git a/src/lib.rs b/src/lib.rs index 961ef5e..17ddfa8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ pub mod contract; pub mod deposit; -mod error; +pub mod error; pub mod helpers; pub mod lockup; pub mod msg; diff --git a/src/msg.rs b/src/msg.rs index 196c6b2..082e684 100644 --- a/src/msg.rs +++ b/src/msg.rs @@ -1,10 +1,87 @@ +use std::ops::Deref; + use apollo_cw_asset::{AssetInfo, AssetList, AssetListUnchecked, AssetUnchecked}; use cosmwasm_schema::{cw_serde, QueryResponses}; -use cosmwasm_std::{to_json_binary, Addr, CosmosMsg, Env, StdResult, Uint128, WasmMsg}; -use cw_dex::Pool; +use cosmwasm_std::{to_json_binary, Addr, CosmosMsg, Deps, Env, StdResult, Uint128, WasmMsg}; +use cw_dex::traits::Pool as PoolTrait; +use cw_dex::CwDexError; use cw_dex_router::helpers::CwDexRouterUnchecked; use liquidity_helper::LiquidityHelperUnchecked; +#[cfg(feature = "astroport")] +use cw_dex_astroport::AstroportPool; + +#[cfg(feature = "osmosis")] +use cw_dex_osmosis::OsmosisPool; + +use crate::ContractError; + +/// An enum with all known variants that implement the cw-dex Pool trait. +#[cw_serde] +#[non_exhaustive] +pub enum Pool { + /// Contains an Osmosis pool implementation + #[cfg(feature = "osmosis")] + Osmosis(OsmosisPool), + /// Contains an Astroport pool implementation + #[cfg(feature = "astroport")] + Astroport(AstroportPool), +} + +impl Deref for Pool { + type Target = dyn PoolTrait; + + fn deref(&self) -> &Self::Target { + match self { + #[cfg(feature = "osmosis")] + Pool::Osmosis(pool) => pool as &dyn PoolTrait, + #[cfg(feature = "astroport")] + Pool::Astroport(pool) => pool as &dyn PoolTrait, + #[allow(unreachable_patterns)] + _ => unimplemented!("No pool implementation available"), + } + } +} + +impl Pool { + /// Returns the matching pool given a LP token. + /// + /// Arguments: + /// - `lp_token`: Said LP token + /// - `astroport_liquidity_manager`: The Astroport liquidity manager + /// address. This must be set if the LP token is an Astroport LP token. + #[allow(unused_assignments)] + #[allow(unused_mut)] + #[allow(unused_variables)] + pub fn get_pool_for_lp_token( + deps: Deps, + lp_token: &AssetInfo, + astroport_liquidity_manager: Option, + ) -> Result { + let mut res: Result = Err(CwDexError::NotLpToken {}.into()); + + #[cfg(feature = "osmosis")] + { + res = OsmosisPool::get_pool_for_lp_token(deps, lp_token) + .map(Pool::Osmosis) + .map_err(|e| e.into()); + } + + #[cfg(feature = "astroport")] + { + res = AstroportPool::get_pool_for_lp_token( + deps, + lp_token, + astroport_liquidity_manager.unwrap(), + ) + .map(Pool::Astroport) + .map_err(|e| e.into()); + } + + res + } +} + #[cw_serde] pub struct InstantiateMsg { pub router: CwDexRouterUnchecked, diff --git a/src/query.rs b/src/query.rs index a270188..5b6b527 100644 --- a/src/query.rs +++ b/src/query.rs @@ -1,9 +1,8 @@ use std::collections::HashMap; +use crate::msg::Pool; use apollo_cw_asset::AssetInfo; use cosmwasm_std::{Addr, Deps, Empty, Env, Order, StdError, StdResult}; -use cw_dex::traits::Pool as PoolTrait; -use cw_dex::Pool; use cw_storage_plus::Bound; use crate::msg::ReceiveChoice; diff --git a/src/withdraw.rs b/src/withdraw.rs index bf14bfe..048f329 100644 --- a/src/withdraw.rs +++ b/src/withdraw.rs @@ -1,3 +1,4 @@ +use crate::msg::Pool; use apollo_cw_asset::{Asset, AssetInfo, AssetList}; use apollo_utils::assets::receive_assets; use cosmwasm_schema::cw_serde; @@ -5,8 +6,6 @@ use cosmwasm_std::{ to_json_binary, Addr, CosmosMsg, DepsMut, Empty, Env, Event, MessageInfo, Response, Uint128, WasmMsg, }; -use cw_dex::traits::Pool as PoolTrait; -use cw_dex::Pool; use cw_vault_standard::extensions::lockup::LockupExecuteMsg; use cw_vault_standard::msg::{ExtensionExecuteMsg, VaultStandardExecuteMsg as VaultExecuteMsg}; use cw_vault_standard::VaultContract; diff --git a/tests/common/robot.rs b/tests/common/robot.rs index c6bdfe9..fdccb22 100644 --- a/tests/common/robot.rs +++ b/tests/common/robot.rs @@ -7,7 +7,6 @@ use apollo_utils::assets::separate_natives_and_cw20s; use cosmwasm_schema::cw_serde; use cosmwasm_std::testing::mock_dependencies; use cosmwasm_std::{assert_approx_eq, coin, Addr, Api, Coin, Coins, Decimal, Uint128}; -use cw_dex::Pool; use cw_dex_router::helpers::CwDexRouterUnchecked; use cw_it::astroport::robot::AstroportTestRobot; use cw_it::astroport::utils::AstroportContracts; @@ -20,9 +19,10 @@ use cw_it::{ContractType, TestRunner}; use cw_vault_standard::extensions::lockup::UnlockingPosition; use cw_vault_standard_test_helpers::traits::CwVaultStandardRobot; use liquidity_helper::LiquidityHelperUnchecked; +use locked_astroport_vault::state::FeeConfig; use locked_astroport_vault_test_helpers::robot::LockedAstroportVaultRobot; use locked_astroport_vault_test_helpers::router::CwDexRouterRobot; -use vault_zapper::msg::{ExecuteMsg, InstantiateMsg, QueryMsg, ReceiveChoice}; +use vault_zapper::msg::{ExecuteMsg, InstantiateMsg, Pool, QueryMsg, ReceiveChoice}; #[cfg(feature = "osmosis-test-tube")] use cw_it::Artifact; @@ -143,13 +143,18 @@ impl<'a> VaultZapperRobot<'a> { let vault_dependencies = LockedAstroportVaultRobot::instantiate_deps(runner, signer, dependency_artifacts_dir); let vault_treasury_addr = runner.init_account(&[]).unwrap().address(); + let performance_fee = Some(FeeConfig { + fee_rate: Decimal::percent(5), + fee_recipients: vec![(vault_treasury_addr, Decimal::percent(100))], + }); let (reward_vault_robot, axl_ntrn_pool, _astro_ntrn_pool) = LockedAstroportVaultRobot::new_axlr_ntrn_vault( runner, LockedAstroportVaultRobot::contract(runner, dependency_artifacts_dir), Coin::from_str(DENOM_CREATION_FEE).unwrap(), - vault_treasury_addr, - Decimal::percent(5), + performance_fee, + None, + None, vault_lock_duration, &vault_dependencies, signer, @@ -202,7 +207,7 @@ impl<'a> VaultZapperRobot<'a> { code_id, &instantiate_msg, Some(&admin.address()), - None, + Some("Vault Zapper"), &[], admin, ) diff --git a/tests/test_artifacts/VERSION.md b/tests/test_artifacts/VERSION.md index f910bd6..1acfd2c 100644 --- a/tests/test_artifacts/VERSION.md +++ b/tests/test_artifacts/VERSION.md @@ -3,4 +3,4 @@ - cw_dex_router_astroport.wasm - Built locally with rust-optimizer-arm 0.13.0 from v0.2.0-rc.2. - locked_astroport_vault.wasm - - Built locally with rust-optimizer-arm 0.13.0 from v0.1.0-rc.2. + - Downloaded from [Github Releases v0.4.2](https://github.com/apollodao/locked-astroport-vault/releases/tag/v0.4.2) diff --git a/tests/test_artifacts/astroport-artifacts/VERSION.md b/tests/test_artifacts/astroport-artifacts/VERSION.md index 9cb03fc..469e900 100644 --- a/tests/test_artifacts/astroport-artifacts/VERSION.md +++ b/tests/test_artifacts/astroport-artifacts/VERSION.md @@ -1,3 +1,5 @@ These artifacts, except for `astroport_liquidity_manager.wasm`, were downloaded from the Github repository `astroport-core` on the [v2.8.0 release page](https://github.com/astroport-fi/astroport-core/releases/tag/v2.8.0). `astroport_liquidity_manager.wasm` was downloaded from the Github repository `astroport-core` on the [v3.6.1 release page](https://github.com/astroport-fi/astroport-core/releases/tag/v3.6.1). + +`astroport_incentives.wasm` was downloaded from the Github repository `astroport-core` on the [v3.11.0 release page](https://github.com/astroport-fi/astroport-core/releases/tag/v3.11.0). diff --git a/tests/test_artifacts/astroport-artifacts/astroport_incentives.wasm b/tests/test_artifacts/astroport-artifacts/astroport_incentives.wasm new file mode 100644 index 0000000..371ad05 Binary files /dev/null and b/tests/test_artifacts/astroport-artifacts/astroport_incentives.wasm differ diff --git a/tests/test_artifacts/astroport-artifacts/checksums.txt b/tests/test_artifacts/astroport-artifacts/checksums.txt index 784f97b..cc6f031 100644 --- a/tests/test_artifacts/astroport-artifacts/checksums.txt +++ b/tests/test_artifacts/astroport-artifacts/checksums.txt @@ -14,3 +14,4 @@ fa7f8377bc02cecdffc8ac0859e326cd47115babdf8eb56b4c684469205ea284 astroport_nati 936ed932d96188178a6a1a13ee0af0a49e17ba72c48c5185922c16003ddaccbc astroport_vesting.wasm c24adab7ccce236bfbfc1945f9fc0bcc58c10aef606648e56e534733cd16d62f astroport_whitelist.wasm 1b79f716c62a05445b4cc23df6feddd9e91374c5388171f072021a4489e0fa7a astroport_xastro_token.wasm +9bf67ed14b8272cd600e0496f87b3e5c3d8301cc4b03570090761f5c48efc095 astroport_incentives.wasm diff --git a/tests/test_artifacts/locked_astroport_vault.wasm b/tests/test_artifacts/locked_astroport_vault.wasm index 79d0085..f80fedf 100644 Binary files a/tests/test_artifacts/locked_astroport_vault.wasm and b/tests/test_artifacts/locked_astroport_vault.wasm differ diff --git a/tests/test_deposit.rs b/tests/test_deposit.rs index 1aa25f4..ed1d4da 100644 --- a/tests/test_deposit.rs +++ b/tests/test_deposit.rs @@ -1,7 +1,6 @@ use apollo_cw_asset::{Asset, AssetInfo}; use common::setup; use cosmwasm_std::Uint128; -use cw_dex::traits::Pool; use cw_it::astroport::robot::AstroportTestRobot; use cw_it::helpers::Unwrap; use cw_it::test_tube::Account; diff --git a/tests/test_query.rs b/tests/test_query.rs index f30b84e..c2a303d 100644 --- a/tests/test_query.rs +++ b/tests/test_query.rs @@ -6,7 +6,6 @@ use common::{ DEPENDENCY_ARTIFACTS_DIR, UNOPTIMIZED_PATH, }; use cosmwasm_std::{coin, Addr, Coin, Decimal, Timestamp, Uint128}; -use cw_dex::pool::Pool; use cw_dex::traits::Pool as PoolTrait; use cw_it::helpers::Unwrap; use cw_it::robot::TestRobot; @@ -17,9 +16,10 @@ use cw_vault_standard::extensions::lockup::UnlockingPosition; use cw_vault_standard_test_helpers::traits::CwVaultStandardRobot; use liquidity_helper::LiquidityHelperUnchecked; use locked_astroport_vault::msg::InstantiateMsg as AstroportVaultInstantiateMsg; +use locked_astroport_vault::state::FeeConfig; use locked_astroport_vault_test_helpers::robot::LockedAstroportVaultRobot; use locked_astroport_vault_test_helpers::router::CwDexRouterRobot; -use vault_zapper::msg::ReceiveChoice; +use vault_zapper::msg::{Pool, ReceiveChoice}; pub mod common; @@ -174,6 +174,10 @@ fn query_unlocking_positions_for_two_vaults() { let vault_dependencies = LockedAstroportVaultRobot::instantiate_deps(&runner, &admin, DEPENDENCY_ARTIFACTS_DIR); let vault_treasury_addr = runner.init_account(&[]).unwrap().address(); + let performance_fee = Some(FeeConfig { + fee_rate: Decimal::percent(5), + fee_recipients: vec![(vault_treasury_addr, Decimal::percent(100))], + }); // Instantiate first vault let (axl_ntrn_vault, axl_ntrn_pool, astro_ntrn_pool) = @@ -181,8 +185,9 @@ fn query_unlocking_positions_for_two_vaults() { &runner, LockedAstroportVaultRobot::contract(&runner, DEPENDENCY_ARTIFACTS_DIR), Coin::from_str(DENOM_CREATION_FEE).unwrap(), - vault_treasury_addr.clone(), - Decimal::percent(5), + performance_fee.clone(), + None, + None, vault_lock_duration, &vault_dependencies, &admin, @@ -195,8 +200,7 @@ fn query_unlocking_positions_for_two_vaults() { lock_duration: vault_lock_duration, reward_tokens: vec![AssetInfo::native("uastro").into()], deposits_enabled: true, - treasury: vault_treasury_addr.clone(), - performance_fee: Decimal::percent(5), + performance_fee, router: vault_dependencies .cw_dex_router_robot .cw_dex_router @@ -204,12 +208,6 @@ fn query_unlocking_positions_for_two_vaults() { .into(), reward_liquidation_target: AssetInfo::native("uastro").into(), pool_addr: astro_ntrn_pool.pair_addr.to_string(), - astro_token: apollo_cw_asset::AssetInfoUnchecked::native("uastro"), - astroport_generator: vault_dependencies - .astroport_contracts - .generator - .address - .clone(), liquidity_helper: LiquidityHelperUnchecked::new( vault_dependencies.liquidity_helper_addr.clone(), ), @@ -218,6 +216,13 @@ fn query_unlocking_positions_for_two_vaults() { .liquidity_manager .address .clone(), + astroport_incentives_addr: vault_dependencies + .astroport_contracts + .incentives + .address + .clone(), + deposit_fee: None, + withdrawal_fee: None, }; let astro_ntrn_vault_robot = LockedAstroportVaultRobot::new_with_instantiate_msg( &runner, diff --git a/tests/test_withdraw.rs b/tests/test_withdraw.rs index 5f009be..9d5aff3 100644 --- a/tests/test_withdraw.rs +++ b/tests/test_withdraw.rs @@ -1,7 +1,6 @@ use apollo_cw_asset::{Asset, AssetInfo, AssetList, AssetUnchecked}; use common::setup; use cosmwasm_std::{Decimal, Uint128}; -use cw_dex::traits::Pool; use cw_it::astroport::robot::AstroportTestRobot; use cw_it::helpers::Unwrap; use cw_it::test_tube::Account; diff --git a/tests/test_zap_base_token.rs b/tests/test_zap_base_token.rs index b82c5c8..517ef5d 100644 --- a/tests/test_zap_base_token.rs +++ b/tests/test_zap_base_token.rs @@ -1,7 +1,6 @@ use apollo_cw_asset::{Asset, AssetInfo, AssetList, AssetUnchecked}; use common::setup; use cosmwasm_std::{Decimal, Uint128}; -use cw_dex::traits::Pool; use cw_it::astroport::robot::AstroportTestRobot; use cw_it::helpers::Unwrap; use cw_it::test_tube::Account;