From 5b4d3a253a9220bd09d430c6442f217c8db2d4b6 Mon Sep 17 00:00:00 2001 From: Farhad Shabani Date: Fri, 12 Apr 2024 22:54:26 -0700 Subject: [PATCH] chore: track ibc-rs PR 1158 (#174) * chore: track ibc-rs pr 1158 * chore: update ibc revision * fix: impl ProverContext on Upgrade module * use rev in git deps in cargo-toml * update cargo-lock file with correct ibc rev * chore: update ibc revision to point to main --------- Co-authored-by: Ranadeep Biswas --- Cargo.lock | 260 ++++++++++++-------------- Cargo.toml | 3 + basecoin/modules/Cargo.toml | 1 - basecoin/modules/src/gov/impls.rs | 4 +- basecoin/modules/src/upgrade/impls.rs | 17 +- 5 files changed, 141 insertions(+), 144 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 910115ee..d5a81f5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,9 +67,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" +checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "arrayref" @@ -102,18 +102,18 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] name = "async-trait" -version = "0.1.79" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -359,9 +359,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.15.4" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byteorder" @@ -380,9 +380,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.90" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" +checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41" [[package]] name = "cfg-if" @@ -422,7 +422,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -548,9 +548,9 @@ dependencies = [ [[package]] name = "der" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" +checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", "zeroize", @@ -605,7 +605,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -672,9 +672,9 @@ dependencies = [ [[package]] name = "encoding_rs" -version = "0.8.33" +version = "0.8.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" +checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" dependencies = [ "cfg-if", ] @@ -805,7 +805,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -851,9 +851,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "js-sys", @@ -881,9 +881,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fbd2820c5e49886948654ab546d0688ff24530286bdcf8fca3cefb16d4618eb" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", @@ -1034,8 +1034,7 @@ dependencies = [ [[package]] name = "ibc" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8af2325614ae3274b2e70834bea56c1fa2758d802d364d89992b0fe820847fca" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-apps", "ibc-clients", @@ -1048,8 +1047,7 @@ dependencies = [ [[package]] name = "ibc-app-transfer" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63113a979118ad1474833bc4f01ad4fe87b17dcdd2f1376a67a2ac59d8c11434" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-app-transfer-types", "ibc-core", @@ -1059,8 +1057,7 @@ dependencies = [ [[package]] name = "ibc-app-transfer-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1ff799a080f5c84316eb0b99f25fbc8b1790ab8c71c0ac465f88e4958e5a949" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1074,8 +1071,7 @@ dependencies = [ [[package]] name = "ibc-apps" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5325b71c21ea45f8a7f8df412e72a01b50f230b08b4120d6a233aeb4bf7b4a54" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-app-transfer", ] @@ -1083,8 +1079,7 @@ dependencies = [ [[package]] name = "ibc-client-tendermint" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afa7a3fc87f5bf15c521ef2d63120173b074874df99198302b32d36fc5874614" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "ibc-client-tendermint-types", @@ -1101,8 +1096,7 @@ dependencies = [ [[package]] name = "ibc-client-tendermint-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e24507c8a710df38924981bd087fc52808f12eb5e6fb1e15b49180979a162fe5" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "displaydoc", "ibc-core-client-types", @@ -1119,8 +1113,7 @@ dependencies = [ [[package]] name = "ibc-client-wasm-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5beac8a4f0affd642b47d21ac1dfc0d3c5fdccd032789ee40d882d46c1b677e3" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "base64", "displaydoc", @@ -1134,8 +1127,7 @@ dependencies = [ [[package]] name = "ibc-clients" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cf6dce5f55eac4930a6e00808cd91d9eccffcb8b5d7c4717b57e9a11217be90" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-client-tendermint", "ibc-client-wasm-types", @@ -1144,8 +1136,7 @@ dependencies = [ [[package]] name = "ibc-core" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecb68e9669c9946dec7453684b5ab05f9c307d908ebe174178bb63a839187f61" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-core-channel", "ibc-core-client", @@ -1161,8 +1152,7 @@ dependencies = [ [[package]] name = "ibc-core-channel" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee95045592a67c58d3efd045c17a0923ce956f43c344d9673ff5de4d359b5f6c" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-core-channel-types", "ibc-core-client", @@ -1177,8 +1167,7 @@ dependencies = [ [[package]] name = "ibc-core-channel-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "804776a40c68a3624b200a51ff9f9506e74d4eaf4dce482b07e68e7b12e6be7b" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1197,8 +1186,7 @@ dependencies = [ [[package]] name = "ibc-core-client" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "015b28dbb91d6ec2bb82eb57bb34f65cf56e1111e61b82181ae6fb794aceac06" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-core-client-context", "ibc-core-client-types", @@ -1211,8 +1199,7 @@ dependencies = [ [[package]] name = "ibc-core-client-context" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9413a8d97d2c4c5dd0d1b673a09e43c80aabb209355e60681865f608bac0756" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1228,8 +1215,7 @@ dependencies = [ [[package]] name = "ibc-core-client-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a053bd037d7a0d6d42c92321e4eafbc3a7dba2730a9172cb082ddca0215781a" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1245,8 +1231,7 @@ dependencies = [ [[package]] name = "ibc-core-commitment-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4202b39be2ef46a110fbe6c258df8721bc5377878a74b9025deafec2d3495e2" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1260,8 +1245,7 @@ dependencies = [ [[package]] name = "ibc-core-connection" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712bd6ca50a57b98dc514182f8046bb0456311c32950d149d0cc72a1aa07d012" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-core-client", "ibc-core-connection-types", @@ -1273,8 +1257,7 @@ dependencies = [ [[package]] name = "ibc-core-connection-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b86c2819e77deb658886b31cb50629ddca97a688a19cb962336a847305922c43" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1291,8 +1274,7 @@ dependencies = [ [[package]] name = "ibc-core-handler" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf6cfdfacf8664f178a20269bb4f47252ab1c9a57b2530b2602e8b0b4e29c66" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "ibc-core-channel", "ibc-core-client", @@ -1307,8 +1289,7 @@ dependencies = [ [[package]] name = "ibc-core-handler-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "032c96b6f1ad4ee17c301335f5d36f0207e837fc351b416fffab9010c63de061" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1328,8 +1309,7 @@ dependencies = [ [[package]] name = "ibc-core-host" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce0b51ac76f9542530ac531366702f16c732b1ba911890a153f1769e99a7277b" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1347,8 +1327,7 @@ dependencies = [ [[package]] name = "ibc-core-host-cosmos" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab6cb1c979d58e146910bca01978c9151cedd2b9eabad7125ae8e14a59695450" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1371,8 +1350,7 @@ dependencies = [ [[package]] name = "ibc-core-host-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b11fac91a80985a15eb3e0847fc962c21379982b6e06968595a4d274b10202eb" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1383,8 +1361,7 @@ dependencies = [ [[package]] name = "ibc-core-router" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4dc0d4b15127ebf3a31841830b57cbae7f3de1823d2e3f81b402fea4f9054e" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1398,8 +1375,7 @@ dependencies = [ [[package]] name = "ibc-core-router-types" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b60996d3dbd3d40a2b01046b4f3edb8e332f8a72c6ab98ad046262ab9a35bbdb" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1414,19 +1390,17 @@ dependencies = [ [[package]] name = "ibc-derive" version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f5010acf3b7fec09c24d05b946424a9f7884f9647ed837c1a1676d3eabac154" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] name = "ibc-primitives" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e02bc4f3159464458522624bc2177f4fda02070d56042e652f886a6b738223bd" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "derive_more", "displaydoc", @@ -1458,8 +1432,7 @@ dependencies = [ [[package]] name = "ibc-query" version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f9f34977f9906193439aebe9ba423d0a4db8cba09e4908aefa095c844b773a5" +source = "git+https://github.com/cosmos/ibc-rs.git?rev=c659e210d2#c659e210d202490b69719bc5aa4138aaeb8d82be" dependencies = [ "displaydoc", "ibc", @@ -1549,9 +1522,9 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "itertools" -version = "0.11.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" dependencies = [ "either", ] @@ -1634,9 +1607,9 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "mime" @@ -1822,14 +1795,14 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -1881,9 +1854,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" +checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" dependencies = [ "bytes", "prost-derive", @@ -1891,31 +1864,31 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" +checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48" dependencies = [ "anyhow", "itertools", "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] name = "prost-types" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" +checksum = "3235c33eb02c1f1e212abdbe34c78b264b038fb58ca612664343271e36e55ffe" dependencies = [ "prost", ] [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -2098,9 +2071,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" [[package]] name = "ryu" @@ -2158,9 +2131,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.2" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" +checksum = "770452e37cad93e0a50d5abc3990d2bc351c36d0328f86cefec2f2fb206eaef6" dependencies = [ "bitflags 1.3.2", "core-foundation", @@ -2171,9 +2144,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.1" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" +checksum = "41f3cc463c0ef97e11c3461a9d3787412d30e8e7eb907c79180c4a57bf7c04ef" dependencies = [ "core-foundation-sys", "libc", @@ -2220,7 +2193,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -2236,13 +2209,13 @@ dependencies = [ [[package]] name = "serde_repr" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2e6b945e9d3df726b65d6ee24060aff8e3533d431f677a9695db04eff9dfdb" +checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -2377,9 +2350,9 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "strsim" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "subtle" @@ -2415,9 +2388,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.55" +version = "2.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "002a1b3dbf967edfafc32655d0f377ab0bb7b994aa1d32c8cc7e9b8bf3ebb8f0" +checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" dependencies = [ "proc-macro2", "quote", @@ -2600,7 +2573,7 @@ checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -2660,9 +2633,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.36.0" +version = "1.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" +checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" dependencies = [ "backtrace", "bytes", @@ -2695,7 +2668,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -2902,7 +2875,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] [[package]] @@ -3072,7 +3045,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", "wasm-bindgen-shared", ] @@ -3106,7 +3079,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -3173,7 +3146,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.5", ] [[package]] @@ -3193,17 +3166,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" 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", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -3214,9 +3188,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" @@ -3226,9 +3200,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" @@ -3238,9 +3212,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" @@ -3250,9 +3230,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" @@ -3262,9 +3242,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" @@ -3274,9 +3254,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" @@ -3286,15 +3266,15 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winnow" -version = "0.6.5" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" +checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352" dependencies = [ "memchr", ] @@ -3326,5 +3306,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.58", ] diff --git a/Cargo.toml b/Cargo.toml index d941776e..c02afa5d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,4 +46,7 @@ tendermint-abci = { version = "0.34", default-features = false } tendermint-proto = { version = "0.34", default-features = false } tendermint-rpc = { version = "0.34", default-features = false } +[patch.crates-io] +ibc = { git = "https://github.com/cosmos/ibc-rs.git", rev = "c659e210d2" } +ibc-query = { git = "https://github.com/cosmos/ibc-rs.git", rev = "c659e210d2" } diff --git a/basecoin/modules/Cargo.toml b/basecoin/modules/Cargo.toml index 4443e376..775a6de8 100644 --- a/basecoin/modules/Cargo.toml +++ b/basecoin/modules/Cargo.toml @@ -38,4 +38,3 @@ tendermint-rpc = { workspace = true , features = ["http-client"] } # internal dependencies basecoin-store = { path = "../store" } - diff --git a/basecoin/modules/src/gov/impls.rs b/basecoin/modules/src/gov/impls.rs index b4409b40..41faadd8 100644 --- a/basecoin/modules/src/gov/impls.rs +++ b/basecoin/modules/src/gov/impls.rs @@ -8,7 +8,7 @@ use basecoin_store::impls::SharedStore; use basecoin_store::types::{Height, Path, ProtobufStore, TypedStore}; use basecoin_store::utils::{SharedRw, SharedRwExt}; use cosmrs::AccountId; -use ibc::cosmos_host::upgrade_proposal::{upgrade_client_proposal_handler, UpgradeProposal}; +use ibc::cosmos_host::upgrade_proposal::{execute_upgrade_client_proposal, UpgradeProposal}; use ibc_proto::cosmos::gov::v1beta1::query_server::QueryServer; use ibc_proto::google::protobuf::Any; use ibc_proto::Protobuf; @@ -71,7 +71,7 @@ where let mut upgrade_ctx = self.upgrade_ctx.write_access(); - let event = upgrade_client_proposal_handler(upgrade_ctx.deref_mut(), upgrade_proposal) + let event = execute_upgrade_client_proposal(upgrade_ctx.deref_mut(), upgrade_proposal) .map_err(|e| AppError::Custom { reason: format!("Error handling upgrade proposal: {:?}", e), })?; diff --git a/basecoin/modules/src/upgrade/impls.rs b/basecoin/modules/src/upgrade/impls.rs index 9d8e63a9..4464407d 100644 --- a/basecoin/modules/src/upgrade/impls.rs +++ b/basecoin/modules/src/upgrade/impls.rs @@ -8,8 +8,9 @@ use ibc::clients::tendermint::client_state::ClientState as TmClientState; use ibc::clients::tendermint::consensus_state::ConsensusState as TmConsensusState; use ibc::clients::tendermint::types::ConsensusState as ConsensusStateType; use ibc::core::client::types::error::UpgradeClientError; +use ibc::core::client::types::Height as IbcHeight; use ibc::core::commitment_types::commitment::CommitmentRoot; -use ibc::core::host::types::path::UpgradeClientPath; +use ibc::core::host::types::path::{Path as IbcPath, UpgradeClientPath}; use ibc::cosmos_host::upgrade_proposal::{ Plan, UpgradeChain, UpgradeExecutionContext, UpgradeValidationContext, UpgradedConsensusStateRef, @@ -17,6 +18,7 @@ use ibc::cosmos_host::upgrade_proposal::{ use ibc::cosmos_host::SDK_UPGRADE_QUERY_PATH; use ibc_proto::cosmos::upgrade::v1beta1::query_server::QueryServer; use ibc_proto::google::protobuf::Any; +use ibc_query::core::context::ProvableContext; use prost::Message; use tendermint::abci::Event; use tendermint::merkle::proof::ProofOp; @@ -46,6 +48,19 @@ where ProtobufStore, UpgradeClientPath, TmConsensusState, Any>, } +/// Trait to provide proofs in gRPC service blanket implementations. +impl ProvableContext for Upgrade +where + S: ProvableStore + Debug, +{ + /// Returns the proof for the given [`IbcHeight`] and [`Path`] + fn get_proof(&self, height: IbcHeight, path: &IbcPath) -> Option> { + self.store + .get_proof(height.revision_height().into(), &path.to_string().into()) + .map(|p| p.encode_to_vec()) + } +} + impl Upgrade where S: Store + Debug,