From 3551d456e6eaa791aac0021f31b1f4c316fff24d Mon Sep 17 00:00:00 2001 From: Guy S Garcia <34169809+FloppyDisck@users.noreply.github.com> Date: Thu, 23 May 2024 09:35:34 -0400 Subject: [PATCH] feat(proto): add serde trait generation (#34) Co-authored-by: Guy Garcia --- Cargo.lock | 584 +++++++++++------- packages/proto/Cargo.toml | 3 + packages/proto/src/gen/archway.callback.v1.rs | 34 +- packages/proto/src/gen/archway.cwerrors.v1.rs | 31 +- packages/proto/src/gen/archway.cwfees.v1.rs | 7 + packages/proto/src/gen/archway.cwica.v1.rs | 30 +- packages/proto/src/gen/archway.genmsg.v1.rs | 3 +- packages/proto/src/gen/archway.rewards.v1.rs | 42 +- packages/proto/src/gen/archway.tracking.v1.rs | 21 +- .../src/gen/cosmos.app.runtime.v1alpha1.rs | 2 + packages/proto/src/gen/cosmos.app.v1alpha1.rs | 10 +- .../proto/src/gen/cosmos.auth.module.v1.rs | 2 + packages/proto/src/gen/cosmos.auth.v1beta1.rs | 39 +- .../proto/src/gen/cosmos.authz.module.v1.rs | 1 + .../proto/src/gen/cosmos.authz.v1beta1.rs | 29 +- packages/proto/src/gen/cosmos.autocli.v1.rs | 7 + .../proto/src/gen/cosmos.bank.module.v1.rs | 1 + packages/proto/src/gen/cosmos.bank.v1beta1.rs | 41 ++ .../proto/src/gen/cosmos.base.abci.v1beta1.rs | 16 +- .../proto/src/gen/cosmos.base.kv.v1beta1.rs | 2 + .../proto/src/gen/cosmos.base.node.v1beta1.rs | 2 + .../src/gen/cosmos.base.query.v1beta1.rs | 2 + .../src/gen/cosmos.base.reflection.v1beta1.rs | 4 + .../gen/cosmos.base.reflection.v2alpha1.rs | 26 + .../src/gen/cosmos.base.snapshots.v1beta1.rs | 10 + .../src/gen/cosmos.base.store.v1beta1.rs | 8 +- .../src/gen/cosmos.base.tendermint.v1beta1.rs | 25 +- packages/proto/src/gen/cosmos.base.v1beta1.rs | 4 + .../src/gen/cosmos.capability.module.v1.rs | 1 + .../src/gen/cosmos.capability.v1beta1.rs | 5 + .../src/gen/cosmos.consensus.module.v1.rs | 1 + packages/proto/src/gen/cosmos.consensus.v1.rs | 4 + .../proto/src/gen/cosmos.crisis.module.v1.rs | 1 + .../proto/src/gen/cosmos.crisis.v1beta1.rs | 5 + .../proto/src/gen/cosmos.crypto.ed25519.rs | 2 + packages/proto/src/gen/cosmos.crypto.hd.v1.rs | 1 + .../proto/src/gen/cosmos.crypto.keyring.v1.rs | 10 +- .../proto/src/gen/cosmos.crypto.multisig.rs | 3 +- .../src/gen/cosmos.crypto.multisig.v1beta1.rs | 2 + .../proto/src/gen/cosmos.crypto.secp256k1.rs | 2 + .../proto/src/gen/cosmos.crypto.secp256r1.rs | 2 + .../src/gen/cosmos.distribution.module.v1.rs | 1 + .../src/gen/cosmos.distribution.v1beta1.rs | 52 ++ .../src/gen/cosmos.evidence.module.v1.rs | 1 + .../proto/src/gen/cosmos.evidence.v1beta1.rs | 18 +- .../src/gen/cosmos.feegrant.module.v1.rs | 1 + .../proto/src/gen/cosmos.feegrant.v1beta1.rs | 27 +- .../proto/src/gen/cosmos.genutil.module.v1.rs | 1 + .../proto/src/gen/cosmos.genutil.v1beta1.rs | 1 + .../proto/src/gen/cosmos.gov.module.v1.rs | 1 + packages/proto/src/gen/cosmos.gov.v1.rs | 88 ++- packages/proto/src/gen/cosmos.gov.v1beta1.rs | 78 ++- .../proto/src/gen/cosmos.group.module.v1.rs | 3 +- packages/proto/src/gen/cosmos.group.v1.rs | 162 ++++- packages/proto/src/gen/cosmos.ics23.v1.rs | 44 +- .../proto/src/gen/cosmos.mint.module.v1.rs | 1 + packages/proto/src/gen/cosmos.mint.v1beta1.rs | 11 + .../proto/src/gen/cosmos.nft.module.v1.rs | 1 + packages/proto/src/gen/cosmos.nft.v1beta1.rs | 27 +- .../src/gen/cosmos.orm.module.v1alpha1.rs | 1 + .../src/gen/cosmos.orm.query.v1alpha1.rs | 17 +- packages/proto/src/gen/cosmos.orm.v1.rs | 4 + packages/proto/src/gen/cosmos.orm.v1alpha1.rs | 16 +- .../proto/src/gen/cosmos.params.module.v1.rs | 1 + .../proto/src/gen/cosmos.params.v1beta1.rs | 7 + .../proto/src/gen/cosmos.reflection.v1.rs | 4 +- .../src/gen/cosmos.slashing.module.v1.rs | 1 + .../proto/src/gen/cosmos.slashing.v1beta1.rs | 20 +- .../proto/src/gen/cosmos.staking.module.v1.rs | 1 + .../proto/src/gen/cosmos.staking.v1beta1.rs | 128 +++- packages/proto/src/gen/cosmos.tx.config.v1.rs | 1 + .../src/gen/cosmos.tx.signing.v1beta1.rs | 22 +- packages/proto/src/gen/cosmos.tx.v1beta1.rs | 70 ++- .../proto/src/gen/cosmos.upgrade.module.v1.rs | 1 + .../proto/src/gen/cosmos.upgrade.v1beta1.rs | 22 +- .../proto/src/gen/cosmos.vesting.module.v1.rs | 1 + .../proto/src/gen/cosmos.vesting.v1beta1.rs | 12 + packages/proto/src/gen/cosmos_proto.rs | 16 +- packages/proto/src/gen/cosmwasm.wasm.v1.rs | 130 +++- .../proto/src/gen/ibc.applications.fee.v1.rs | 39 ++ ...tions.interchain_accounts.controller.v1.rs | 9 + ...ications.interchain_accounts.genesis.v1.rs | 5 + ...pplications.interchain_accounts.host.v1.rs | 3 + ...ibc.applications.interchain_accounts.v1.rs | 20 +- .../src/gen/ibc.applications.transfer.v1.rs | 19 + .../src/gen/ibc.applications.transfer.v2.rs | 1 + packages/proto/src/gen/ibc.core.channel.v1.rs | 100 ++- packages/proto/src/gen/ibc.core.client.v1.rs | 62 +- .../proto/src/gen/ibc.core.commitment.v1.rs | 4 + .../proto/src/gen/ibc.core.connection.v1.rs | 48 +- packages/proto/src/gen/ibc.core.types.v1.rs | 1 + .../src/gen/ibc.lightclients.localhost.v2.rs | 1 + .../gen/ibc.lightclients.solomachine.v2.rs | 40 +- .../gen/ibc.lightclients.solomachine.v3.rs | 14 +- .../src/gen/ibc.lightclients.tendermint.v1.rs | 13 +- proto-build/buf.gen.yaml | 9 + 96 files changed, 2030 insertions(+), 376 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2273f09..ecee69d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[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", @@ -30,18 +30,18 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.75" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "archway-bindings" @@ -59,8 +59,11 @@ name = "archway-proto" version = "0.2.0" dependencies = [ "anyhow", + "pbjson", + "pbjson-types", "prost", "prost-types", + "serde", "tendermint-proto", "tokio", "tonic 0.11.0", @@ -90,9 +93,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.73" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", @@ -101,9 +104,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "axum" @@ -113,7 +116,7 @@ checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" dependencies = [ "async-trait", "axum-core", - "bitflags", + "bitflags 1.3.2", "bytes", "futures-util", "http", @@ -152,9 +155,9 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" dependencies = [ "addr2line", "cc", @@ -173,9 +176,9 @@ checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64" -version = "0.21.4" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "base64" @@ -201,6 +204,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" + [[package]] name = "block-buffer" version = "0.9.0" @@ -233,21 +242,18 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" dependencies = [ "serde", ] [[package]] name = "cc" -version = "1.0.83" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" -dependencies = [ - "libc", -] +checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f" [[package]] name = "cfg-if" @@ -255,17 +261,26 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "chrono" +version = "0.4.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +dependencies = [ + "num-traits", +] + [[package]] name = "const-oid" -version = "0.9.5" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "core-foundation" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ "core-foundation-sys", "libc", @@ -273,9 +288,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.4" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "cosmwasm-crypto" @@ -330,7 +345,7 @@ version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78c1556156fdf892a55cced6115968b961eaaadd6f724a2c2cb7d1e168e32dd3" dependencies = [ - "base64 0.21.4", + "base64 0.21.7", "bech32", "bnum", "cosmwasm-crypto", @@ -358,27 +373,27 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.9" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" +checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ "libc", ] [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] [[package]] name = "crypto-bigint" -version = "0.5.3" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "740fe28e594155f10cfc383984cbefd529d7396050557148f79cb0f621204124" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", "rand_core 0.6.4", @@ -452,9 +467,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", @@ -503,15 +518,15 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.14" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd" +checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "ecdsa" -version = "0.16.8" +version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der", "digest 0.10.7", @@ -538,15 +553,15 @@ dependencies = [ [[package]] name = "either" -version = "1.9.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" [[package]] name = "elliptic-curve" -version = "0.13.6" +version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d97ca172ae9dc9f9b779a6e3a65d308f2af74e5b8c921299075bdb4a0370e914" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct", "crypto-bigint", @@ -567,6 +582,16 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +[[package]] +name = "errno" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "error-chain" version = "0.12.4" @@ -577,6 +602,12 @@ dependencies = [ "version_check", ] +[[package]] +name = "fastrand" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" + [[package]] name = "ff" version = "0.13.0" @@ -587,11 +618,17 @@ dependencies = [ "subtle", ] +[[package]] +name = "fixedbitset" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" + [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ "crc32fast", "miniz_oxide", @@ -620,36 +657,36 @@ checksum = "c8cbd1169bd7b4a0a20d92b9af7a7e0422888bd38a6f5ec29c1fd8c1558a272e" [[package]] name = "futures-channel" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-sink" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-util" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-core", "futures-task", @@ -670,9 +707,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.10" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", @@ -681,9 +718,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "glob" @@ -714,7 +751,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 2.0.2", + "indexmap 2.2.6", "slab", "tokio", "tokio-util", @@ -732,15 +769,27 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.1" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dfda62a12f55daeae5015f81b0baea145391cb4520f86c248fc615d72640d12" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "hex" @@ -759,9 +808,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.9" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ "bytes", "fnv", @@ -770,9 +819,9 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", "http", @@ -793,9 +842,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.14.27" +version = "0.14.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" +checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" dependencies = [ "bytes", "futures-channel", @@ -808,7 +857,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.9", + "socket2", "tokio", "tower-service", "tracing", @@ -840,7 +889,7 @@ dependencies = [ "cw2", "schemars", "serde", - "serde-json-wasm 1.0.0", + "serde-json-wasm 1.0.1", "thiserror", ] @@ -856,28 +905,37 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.0.2" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown 0.14.1", + "hashbrown 0.14.5", +] + +[[package]] +name = "itertools" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +dependencies = [ + "either", ] [[package]] name = "itertools" -version = "0.10.5" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" dependencies = [ "either", ] [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "k256" @@ -895,15 +953,21 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.149" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" + +[[package]] +name = "linux-raw-sys" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -911,9 +975,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.20" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "matchit" @@ -923,9 +987,9 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "memchr" -version = "2.6.4" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "mime" @@ -935,30 +999,45 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "87dfd01fe195c66b572b37921ad8803d010623c0aca821bea2302239d155cdae" dependencies = [ "adler", ] [[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 0.48.0", ] +[[package]] +name = "multimap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" + [[package]] name = "num-conv" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + [[package]] name = "num_cpus" version = "1.16.0" @@ -971,24 +1050,24 @@ dependencies = [ [[package]] name = "object" -version = "0.32.1" +version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opaque-debug" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "openssl-probe" @@ -998,9 +1077,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb" dependencies = [ "lock_api", "parking_lot_core", @@ -1008,15 +1087,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-targets 0.48.5", + "windows-targets 0.52.5", ] [[package]] @@ -1025,26 +1104,73 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" +[[package]] +name = "pbjson" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1030c719b0ec2a2d25a5df729d6cff1acf3cc230bf766f4f97833591f7577b90" +dependencies = [ + "base64 0.21.7", + "serde", +] + +[[package]] +name = "pbjson-build" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2580e33f2292d34be285c5bc3dba5259542b083cfad6037b6d70345f24dcb735" +dependencies = [ + "heck 0.4.1", + "itertools 0.11.0", + "prost", + "prost-types", +] + +[[package]] +name = "pbjson-types" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18f596653ba4ac51bdecbb4ef6773bc7f56042dc13927910de1684ad3d32aa12" +dependencies = [ + "bytes", + "chrono", + "pbjson", + "pbjson-build", + "prost", + "prost-build", + "serde", +] + [[package]] name = "percent-encoding" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "petgraph" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +dependencies = [ + "fixedbitset", + "indexmap 2.2.6", +] [[package]] name = "pin-project" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.3" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", @@ -1053,9 +1179,9 @@ dependencies = [ [[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" @@ -1085,6 +1211,16 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +[[package]] +name = "prettyplease" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" +dependencies = [ + "proc-macro2", + "syn 2.0.65", +] + [[package]] name = "proc-macro2" version = "1.0.83" @@ -1096,22 +1232,43 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.4" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" +checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" dependencies = [ "bytes", "prost-derive", ] +[[package]] +name = "prost-build" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" +dependencies = [ + "bytes", + "heck 0.5.0", + "itertools 0.12.1", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "regex", + "syn 2.0.65", + "tempfile", +] + [[package]] name = "prost-derive" -version = "0.12.5" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9554e3ab233f0a932403704f1a1d08c30d5ccd931adfdfa1e8b5a19b52c1d55a" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" dependencies = [ "anyhow", - "itertools", + "itertools 0.12.1", "proc-macro2", "quote", "syn 2.0.65", @@ -1119,9 +1276,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.12.4" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3235c33eb02c1f1e212abdbe34c78b264b038fb58ca612664343271e36e55ffe" +checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" dependencies = [ "prost", ] @@ -1182,18 +1339,18 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.4.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" dependencies = [ - "bitflags", + "bitflags 2.5.0", ] [[package]] name = "regex" -version = "1.10.0" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d119d7c7ca818f8a53c300863d4f87566aac09943aef5b355bb83969dae75d87" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", @@ -1203,9 +1360,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.1" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "465c6fc0621e4abc4187a2bda0937bfd4f722c2730b29562e19689ea796c9a4b" +checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ "aho-corasick", "memchr", @@ -1214,9 +1371,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.1" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56d84fdd47036b038fc80dd333d10b6aab10d5d31f4a366e20014def75328d33" +checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "rfc6979" @@ -1245,9 +1402,22 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustix" +version = "0.38.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +dependencies = [ + "bitflags 2.5.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.52.0", +] [[package]] name = "rustls" @@ -1288,15 +1458,15 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.4.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247" +checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" [[package]] name = "rustls-webpki" -version = "0.102.3" +version = "0.102.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3bce581c0dd41bce533ce695a1437fa16a7ab5ac3ccfa99fe1a620a7885eabf" +checksum = "ff448f7e92e913c4b7d4c6d8e4540a1724b319b4152b8aef6d4cf8339712b33e" dependencies = [ "ring", "rustls-pki-types", @@ -1305,23 +1475,23 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "ryu" -version = "1.0.15" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "schannel" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1370,11 +1540,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.2" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" +checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" dependencies = [ - "bitflags", + "bitflags 2.5.0", "core-foundation", "core-foundation-sys", "libc", @@ -1383,9 +1553,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" +checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" dependencies = [ "core-foundation-sys", "libc", @@ -1393,9 +1563,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.20" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" @@ -1417,9 +1587,9 @@ dependencies = [ [[package]] name = "serde-json-wasm" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83c37d03f3b0f6b5f77c11af1e7c772de1c9af83e50bef7bb6069601900ba67b" +checksum = "f05da0d153dd4595bdffd5099dc0e9ce425b205ee648eb93437ff7302af8c9a5" dependencies = [ "serde", ] @@ -1457,9 +1627,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.107" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", "ryu", @@ -1492,18 +1662,18 @@ dependencies = [ [[package]] name = "signal-hook-registry" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] [[package]] name = "signature" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest 0.10.7", "rand_core 0.6.4", @@ -1520,28 +1690,18 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.4.9" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", - "winapi", -] - -[[package]] -name = "socket2" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4031e820eb552adee9295814c0ced9e5cf38ddf1e8b7d566d6de8e2538ea989e" -dependencies = [ - "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1552,9 +1712,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spki" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", "der", @@ -1609,6 +1769,18 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "tempfile" +version = "3.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +dependencies = [ + "cfg-if", + "fastrand", + "rustix", + "windows-sys 0.52.0", +] + [[package]] name = "tendermint-proto" version = "0.36.0" @@ -1677,9 +1849,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.33.0" +version = "1.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f38200e3ef7995e5ef13baec2f432a6da0aa9ac495b2c0e8f3b7eec2c92d653" +checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" dependencies = [ "backtrace", "bytes", @@ -1689,7 +1861,7 @@ dependencies = [ "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2 0.5.4", + "socket2", "tokio-macros", "windows-sys 0.48.0", ] @@ -1706,9 +1878,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" +checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", @@ -1728,9 +1900,9 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" +checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" dependencies = [ "futures-core", "pin-project-lite", @@ -1739,16 +1911,15 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.9" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d68074620f57a0b21594d9735eb2e98ab38b17f80d3fcb189fca266771ca60d" +checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", - "tracing", ] [[package]] @@ -1760,7 +1931,7 @@ dependencies = [ "async-stream", "async-trait", "axum", - "base64 0.21.4", + "base64 0.21.7", "bytes", "h2", "http", @@ -1787,7 +1958,7 @@ dependencies = [ "async-stream", "async-trait", "axum", - "base64 0.21.4", + "base64 0.21.7", "bytes", "flate2", "h2", @@ -1844,11 +2015,10 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.37" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "cfg-if", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -1856,9 +2026,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.26" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", @@ -1867,18 +2037,18 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.31" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", ] [[package]] name = "try-lock" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typenum" @@ -1919,28 +2089,6 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "windows-sys" version = "0.48.0" @@ -2082,6 +2230,6 @@ checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "zeroize" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" diff --git a/packages/proto/Cargo.toml b/packages/proto/Cargo.toml index b0bc1dd..5097183 100644 --- a/packages/proto/Cargo.toml +++ b/packages/proto/Cargo.toml @@ -18,7 +18,10 @@ categories = [ keywords = ["archway", "blockchain", "cosmwasm", "proto", "smart-contracts"] [dependencies] +serde = "1.0" prost = "0.12.4" +pbjson = "0.6.0" +pbjson-types = "0.6.0" prost-types = "0.12.4" tonic = { version = "0.11.0", optional = true, default-features = false, features = [ "codegen", diff --git a/packages/proto/src/gen/archway.callback.v1.rs b/packages/proto/src/gen/archway.callback.v1.rs index 6a50d93..03d42fe 100644 --- a/packages/proto/src/gen/archway.callback.v1.rs +++ b/packages/proto/src/gen/archway.callback.v1.rs @@ -1,5 +1,6 @@ // @generated /// Callback defines the callback structure. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Callback { @@ -30,6 +31,7 @@ impl ::prost::Name for Callback { } } /// CallbackFeesFeeSplit is the breakdown of all the fees that need to be paid by the contract to reserve a callback +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallbackFeesFeeSplit { @@ -56,6 +58,7 @@ impl ::prost::Name for CallbackFeesFeeSplit { } } /// Params defines the module parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -83,7 +86,19 @@ impl ::prost::Name for Params { } } /// ModuleErrors defines the module level error codes -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ModuleErrors { /// ERR_UNKNOWN is the default error code @@ -116,6 +131,7 @@ impl ModuleErrors { } } /// CallbackRegisteredEvent is emitted when a callback is registered. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallbackRegisteredEvent { @@ -143,6 +159,7 @@ impl ::prost::Name for CallbackRegisteredEvent { } } /// CallbackCancelledEvent is emitted when a callback is cancelled. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallbackCancelledEvent { @@ -170,6 +187,7 @@ impl ::prost::Name for CallbackCancelledEvent { } } /// CallbackExecutedSuccessEvent is emitted when a callback is executed successfully. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallbackExecutedSuccessEvent { @@ -194,6 +212,7 @@ impl ::prost::Name for CallbackExecutedSuccessEvent { } } /// CallbackExecutedFailedEvent is emitted when a callback execution fails. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CallbackExecutedFailedEvent { @@ -221,6 +240,7 @@ impl ::prost::Name for CallbackExecutedFailedEvent { } } /// GenesisState defines the initial state of the callback module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -239,6 +259,7 @@ impl ::prost::Name for GenesisState { } } /// QueryParamsRequest is the request for Query.Params. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -250,6 +271,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response for Query.Params. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -265,6 +287,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryEstimateCallbackFeesRequest is the request for Query.EstimateCallbackFees. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEstimateCallbackFeesRequest { @@ -280,6 +303,7 @@ impl ::prost::Name for QueryEstimateCallbackFeesRequest { } } /// QueryEstimateCallbackFeesResponse is the response for Query.EstimateCallbackFees. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEstimateCallbackFeesResponse { @@ -298,6 +322,7 @@ impl ::prost::Name for QueryEstimateCallbackFeesResponse { } } /// QueryCallbacksRequest is the request for Query.Callbacks. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCallbacksRequest { @@ -313,6 +338,7 @@ impl ::prost::Name for QueryCallbacksRequest { } } /// QueryCallbacksResponse is the response for Query.Callbacks. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCallbacksResponse { @@ -328,6 +354,7 @@ impl ::prost::Name for QueryCallbacksResponse { } } /// MsgUpdateParams is the Msg/UpdateParams request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -348,6 +375,7 @@ impl ::prost::Name for MsgUpdateParams { } } /// MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} @@ -359,6 +387,7 @@ impl ::prost::Name for MsgUpdateParamsResponse { } } /// MsgRequestCallback is the Msg/RequestCallback request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRequestCallback { @@ -386,6 +415,7 @@ impl ::prost::Name for MsgRequestCallback { } } /// MsgRequestCallbackResponse defines the response structure for executing a MsgRequestCallback message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRequestCallbackResponse {} @@ -397,6 +427,7 @@ impl ::prost::Name for MsgRequestCallbackResponse { } } /// MsgCancelCallback is the Msg/CancelCallback request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelCallback { @@ -421,6 +452,7 @@ impl ::prost::Name for MsgCancelCallback { } } /// MsgCancelCallbackResponse defines the response structure for executing a MsgCancelCallback message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelCallbackResponse { diff --git a/packages/proto/src/gen/archway.cwerrors.v1.rs b/packages/proto/src/gen/archway.cwerrors.v1.rs index 493497a..6536939 100644 --- a/packages/proto/src/gen/archway.cwerrors.v1.rs +++ b/packages/proto/src/gen/archway.cwerrors.v1.rs @@ -1,5 +1,6 @@ // @generated /// SudoError defines the sudo message for the error callback +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SudoError { @@ -28,7 +29,19 @@ impl ::prost::Name for SudoError { } } /// ModuleErrors defines the module level error codes -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ModuleErrors { /// ERR_UNKNOWN is the default error code @@ -57,6 +70,7 @@ impl ModuleErrors { } } /// Params defines the set of parameters for the cwerrors module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -79,6 +93,7 @@ impl ::prost::Name for Params { } /// ParamsUpdatedEvent defines the event which is thrown when the module /// parameters are updated +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParamsUpdatedEvent { @@ -98,6 +113,7 @@ impl ::prost::Name for ParamsUpdatedEvent { } /// SubscribedToErrorsEvent defines the event which is thrown when a contract /// subscribes to errors +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscribedToErrorsEvent { @@ -124,6 +140,7 @@ impl ::prost::Name for SubscribedToErrorsEvent { } } /// StoringErrorEvent defines the event which is thrown when an error is stored +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoringErrorEvent { @@ -144,6 +161,7 @@ impl ::prost::Name for StoringErrorEvent { } /// SudoErrorCallbackFailedEvent defines the event which is thrown when a sudo /// error callback fails +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SudoErrorCallbackFailedEvent { @@ -162,6 +180,7 @@ impl ::prost::Name for SudoErrorCallbackFailedEvent { } } /// GenesisState defines the cwerrors module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -180,6 +199,7 @@ impl ::prost::Name for GenesisState { } } /// QueryParamsRequest is the request for Query.Params. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -191,6 +211,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response for Query.Params. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -206,6 +227,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryErrorsRequest is the request for Query.Errors. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryErrorsRequest { @@ -221,6 +243,7 @@ impl ::prost::Name for QueryErrorsRequest { } } /// QueryErrorsResponse is the response for Query.Errors. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryErrorsResponse { @@ -236,6 +259,7 @@ impl ::prost::Name for QueryErrorsResponse { } } /// QueryIsSubscribedRequest is the request for Query.IsSubscribed. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIsSubscribedRequest { @@ -251,6 +275,7 @@ impl ::prost::Name for QueryIsSubscribedRequest { } } /// QueryIsSubscribedResponse is the response for Query.IsSubscribed. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIsSubscribedResponse { @@ -270,6 +295,7 @@ impl ::prost::Name for QueryIsSubscribedResponse { } } /// MsgUpdateParams is the Msg/UpdateParams request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -292,6 +318,7 @@ impl ::prost::Name for MsgUpdateParams { } /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} @@ -303,6 +330,7 @@ impl ::prost::Name for MsgUpdateParamsResponse { } } /// MsgSubscribeToError is the Msg/SubscribeToError request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubscribeToError { @@ -327,6 +355,7 @@ impl ::prost::Name for MsgSubscribeToError { } /// MsgSubscribeToErrorResponse defines the response structure for executing a /// MsgSubscribeToError message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubscribeToErrorResponse { diff --git a/packages/proto/src/gen/archway.cwfees.v1.rs b/packages/proto/src/gen/archway.cwfees.v1.rs index 6ed2f8a..074a289 100644 --- a/packages/proto/src/gen/archway.cwfees.v1.rs +++ b/packages/proto/src/gen/archway.cwfees.v1.rs @@ -1,5 +1,6 @@ // @generated /// MsgRegisterAsGranter allows a contract to register itself as a fee granter. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterAsGranter { @@ -14,6 +15,7 @@ impl ::prost::Name for MsgRegisterAsGranter { } } /// MsgRegisterAsGranterResponse defines the response of RegisterAsGranter. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterAsGranterResponse {} @@ -25,6 +27,7 @@ impl ::prost::Name for MsgRegisterAsGranterResponse { } } /// MsgUnregisterAsGranter can be used by a cosmwasm contract to unregister itself as a fee granter. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnregisterAsGranter { @@ -39,6 +42,7 @@ impl ::prost::Name for MsgUnregisterAsGranter { } } /// MsgUnregisterAsGranterResponse defines the response of UnregisterAsGranter. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnregisterAsGranterResponse {} @@ -50,6 +54,7 @@ impl ::prost::Name for MsgUnregisterAsGranterResponse { } } /// IsGrantingContract is the request type of IsGrantingContract RPC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IsGrantingContractRequest { @@ -66,6 +71,7 @@ impl ::prost::Name for IsGrantingContractRequest { } } /// IsGrantingContractResponse is the response type of IsGRantingContract RPC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IsGrantingContractResponse { @@ -81,6 +87,7 @@ impl ::prost::Name for IsGrantingContractResponse { } } /// GenesisState represents the genesis state of the cwfeesant module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { diff --git a/packages/proto/src/gen/archway.cwica.v1.rs b/packages/proto/src/gen/archway.cwica.v1.rs index 99c78cc..e29c3e2 100644 --- a/packages/proto/src/gen/archway.cwica.v1.rs +++ b/packages/proto/src/gen/archway.cwica.v1.rs @@ -1,6 +1,18 @@ // @generated /// ModuleErrors defines the module level error codes -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ModuleErrors { /// ERR_UNKNOWN is the default error code @@ -33,6 +45,7 @@ impl ModuleErrors { } } /// Params defines the parameters for the module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -48,6 +61,7 @@ impl ::prost::Name for Params { } } /// GenesisState defines the cwica module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -63,6 +77,7 @@ impl ::prost::Name for GenesisState { } } /// QueryParamsRequest is request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -74,6 +89,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -90,6 +106,7 @@ impl ::prost::Name for QueryParamsResponse { } /// Sudopayload is the payload for the sudo call sent by the cwica module on IBC /// actions +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SudoPayload { @@ -105,6 +122,7 @@ impl ::prost::Name for SudoPayload { } } /// ICASuccess is the success message after the ICA operation has taken place +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IcaSuccess { @@ -126,6 +144,7 @@ impl ::prost::Name for IcaSuccess { } /// AccountRegistered is contains the address of the registered account on the /// counterparty chain +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccountRegistered { @@ -142,6 +161,7 @@ impl ::prost::Name for AccountRegistered { } } /// TxExecuted is the response message after the execute of the ICA tx +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxExecuted { @@ -161,6 +181,7 @@ impl ::prost::Name for TxExecuted { } /// MsgRegisterInterchainAccount defines the Msg/RegisterInterchainAccount /// request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterInterchainAccount { @@ -181,6 +202,7 @@ impl ::prost::Name for MsgRegisterInterchainAccount { } /// MsgRegisterInterchainAccountResponse defines the response for /// Msg/RegisterInterchainAccount +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterInterchainAccountResponse {} @@ -192,6 +214,7 @@ impl ::prost::Name for MsgRegisterInterchainAccountResponse { } } /// MsgSendTx defines the Msg/SendTx request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendTx { @@ -204,7 +227,7 @@ pub struct MsgSendTx { pub connection_id: ::prost::alloc::string::String, /// msgs are the messages to be submitted to the counterparty chain #[prost(message, repeated, tag = "3")] - pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub msgs: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// memo is the memo to be included in the packet #[prost(string, tag = "4")] pub memo: ::prost::alloc::string::String, @@ -220,6 +243,7 @@ impl ::prost::Name for MsgSendTx { } } /// MsgSendTxResponse defines the response for Msg/SendTx +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendTxResponse { @@ -239,6 +263,7 @@ impl ::prost::Name for MsgSendTxResponse { } } /// MsgUpdateParams is the MsgUpdateParams request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -259,6 +284,7 @@ impl ::prost::Name for MsgUpdateParams { } } /// MsgUpdateParamsResponse is the MsgUpdateParams response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/archway.genmsg.v1.rs b/packages/proto/src/gen/archway.genmsg.v1.rs index 9053cfa..6865135 100644 --- a/packages/proto/src/gen/archway.genmsg.v1.rs +++ b/packages/proto/src/gen/archway.genmsg.v1.rs @@ -1,10 +1,11 @@ // @generated /// GenesisState represents the messages to be processed during genesis by the genmsg module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { #[prost(message, repeated, tag = "1")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for GenesisState { const NAME: &'static str = "GenesisState"; diff --git a/packages/proto/src/gen/archway.rewards.v1.rs b/packages/proto/src/gen/archway.rewards.v1.rs index 293a714..4a44f41 100644 --- a/packages/proto/src/gen/archway.rewards.v1.rs +++ b/packages/proto/src/gen/archway.rewards.v1.rs @@ -1,5 +1,6 @@ // @generated /// Params defines the module parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -34,6 +35,7 @@ impl ::prost::Name for Params { } /// ContractMetadata defines the contract rewards distribution options for a /// particular contract. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractMetadata { @@ -64,6 +66,7 @@ impl ::prost::Name for ContractMetadata { } } /// BlockRewards defines block related rewards distribution data. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockRewards { @@ -86,6 +89,7 @@ impl ::prost::Name for BlockRewards { } } /// TxRewards defines transaction related rewards distribution data. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxRewards { @@ -113,6 +117,7 @@ impl ::prost::Name for TxRewards { /// might be triggered by a Tx (via CLI for example) or by a contract via WASM /// bindings. For a contract to trigger rewards transfer, contract address must /// be set as the rewards_address in a corresponding ContractMetadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RewardsRecord { @@ -130,7 +135,7 @@ pub struct RewardsRecord { pub calculated_height: i64, /// calculated_time defines the block time of rewards calculation event. #[prost(message, optional, tag = "5")] - pub calculated_time: ::core::option::Option<::prost_types::Timestamp>, + pub calculated_time: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for RewardsRecord { const NAME: &'static str = "RewardsRecord"; @@ -140,6 +145,7 @@ impl ::prost::Name for RewardsRecord { } } /// FlatFee defines the flat fee for a particular contract. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FlatFee { @@ -159,6 +165,7 @@ impl ::prost::Name for FlatFee { } /// ContractMetadataSetEvent is emitted when the contract metadata is created or /// updated. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractMetadataSetEvent { @@ -178,6 +185,7 @@ impl ::prost::Name for ContractMetadataSetEvent { } /// ContractRewardCalculationEvent is emitted when the contract reward is /// calculated. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractRewardCalculationEvent { @@ -209,6 +217,7 @@ impl ::prost::Name for ContractRewardCalculationEvent { /// RewardsWithdrawEvent is emitted when credited rewards for a specific /// rewards_address are distributed. Event could be triggered by a transaction /// (via CLI for example) or by a contract via WASM bindings. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RewardsWithdrawEvent { @@ -227,6 +236,7 @@ impl ::prost::Name for RewardsWithdrawEvent { } } /// MinConsensusFeeSetEvent is emitted when the minimum consensus fee is updated. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MinConsensusFeeSetEvent { @@ -242,6 +252,7 @@ impl ::prost::Name for MinConsensusFeeSetEvent { } } /// ContractFlatFeeSetEvent is emitted when the contract flat fee is updated +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractFlatFeeSetEvent { @@ -262,6 +273,7 @@ impl ::prost::Name for ContractFlatFeeSetEvent { } } /// GenesisState defines the initial state of the tracking module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -300,6 +312,7 @@ impl ::prost::Name for GenesisState { } } /// QueryParamsRequest is the request for Query.Params. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -311,6 +324,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response for Query.Params. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -325,6 +339,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryContractMetadataRequest is the request for Query.ContractMetadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractMetadataRequest { @@ -340,6 +355,7 @@ impl ::prost::Name for QueryContractMetadataRequest { } } /// QueryContractMetadataResponse is the response for Query.ContractMetadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractMetadataResponse { @@ -355,6 +371,7 @@ impl ::prost::Name for QueryContractMetadataResponse { } /// QueryBlockRewardsTrackingRequest is the request for /// Query.BlockRewardsTracking. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBlockRewardsTrackingRequest {} @@ -367,6 +384,7 @@ impl ::prost::Name for QueryBlockRewardsTrackingRequest { } /// QueryBlockRewardsTrackingResponse is the response for /// Query.BlockRewardsTracking. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBlockRewardsTrackingResponse { @@ -381,6 +399,7 @@ impl ::prost::Name for QueryBlockRewardsTrackingResponse { } } /// QueryRewardsPoolRequest is the request for Query.RewardsPool. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRewardsPoolRequest {} @@ -392,6 +411,7 @@ impl ::prost::Name for QueryRewardsPoolRequest { } } /// QueryRewardsPoolResponse is the response for Query.RewardsPool. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRewardsPoolResponse { @@ -413,6 +433,7 @@ impl ::prost::Name for QueryRewardsPoolResponse { } } /// QueryEstimateTxFeesRequest is the request for Query.EstimateTxFees. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEstimateTxFeesRequest { @@ -431,6 +452,7 @@ impl ::prost::Name for QueryEstimateTxFeesRequest { } } /// QueryEstimateTxFeesResponse is the response for Query.EstimateTxFees. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEstimateTxFeesResponse { @@ -449,6 +471,7 @@ impl ::prost::Name for QueryEstimateTxFeesResponse { } } /// BlockTracking is the tracking information for a block. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockTracking { @@ -467,6 +490,7 @@ impl ::prost::Name for BlockTracking { } } /// QueryRewardsRecordsRequest is the request for Query.RewardsRecords. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRewardsRecordsRequest { @@ -487,6 +511,7 @@ impl ::prost::Name for QueryRewardsRecordsRequest { } } /// QueryRewardsRecordsResponse is the response for Query.RewardsRecords. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRewardsRecordsResponse { @@ -506,6 +531,7 @@ impl ::prost::Name for QueryRewardsRecordsResponse { } } /// QueryOutstandingRewardsRequest is the request for Query.OutstandingRewards. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryOutstandingRewardsRequest { @@ -522,6 +548,7 @@ impl ::prost::Name for QueryOutstandingRewardsRequest { } } /// QueryOutstandingRewardsResponse is the response for Query.OutstandingRewards. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryOutstandingRewardsResponse { @@ -541,6 +568,7 @@ impl ::prost::Name for QueryOutstandingRewardsResponse { } } /// QueryFlatFeeRequest is the request for Query.FlatFeet +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFlatFeeRequest { @@ -556,6 +584,7 @@ impl ::prost::Name for QueryFlatFeeRequest { } } /// QueryFlatFeeResponse is the response for Query.FlatFee +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFlatFeeResponse { @@ -572,6 +601,7 @@ impl ::prost::Name for QueryFlatFeeResponse { } } /// MsgSetContractMetadata is the request for Msg.SetContractMetadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetContractMetadata { @@ -591,6 +621,7 @@ impl ::prost::Name for MsgSetContractMetadata { } } /// MsgSetContractMetadataResponse is the response for Msg.SetContractMetadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetContractMetadataResponse {} @@ -602,6 +633,7 @@ impl ::prost::Name for MsgSetContractMetadataResponse { } } /// MsgWithdrawRewards is the request for Msg.WithdrawRewards. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawRewards { @@ -614,6 +646,7 @@ pub struct MsgWithdrawRewards { } /// Nested message and enum types in `MsgWithdrawRewards`. pub mod msg_withdraw_rewards { + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordsLimit { @@ -627,6 +660,7 @@ pub mod msg_withdraw_rewards { ::prost::alloc::format!("archway.rewards.v1.MsgWithdrawRewards.{}", Self::NAME) } } + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RecordIDs { @@ -641,6 +675,7 @@ pub mod msg_withdraw_rewards { } } /// mode defines the operation type. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Mode { @@ -661,6 +696,7 @@ impl ::prost::Name for MsgWithdrawRewards { } } /// MsgWithdrawRewardsResponse is the response for Msg.WithdrawRewards. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawRewardsResponse { @@ -679,6 +715,7 @@ impl ::prost::Name for MsgWithdrawRewardsResponse { } } /// MsgSetFlatFee is the request for Msg.SetFlatFee. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetFlatFee { @@ -700,6 +737,7 @@ impl ::prost::Name for MsgSetFlatFee { } } /// MsgSetFlatFeeResponse is the response for Msg.SetFlatFee. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetFlatFeeResponse {} @@ -713,6 +751,7 @@ impl ::prost::Name for MsgSetFlatFeeResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: archway v5 && cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -736,6 +775,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: archway v5 && cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/archway.tracking.v1.rs b/packages/proto/src/gen/archway.tracking.v1.rs index 4fba99b..b5896e0 100644 --- a/packages/proto/src/gen/archway.tracking.v1.rs +++ b/packages/proto/src/gen/archway.tracking.v1.rs @@ -1,6 +1,7 @@ // @generated /// TxInfo keeps a transaction gas tracking data. /// Object is being created at the module EndBlocker. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxInfo { @@ -24,6 +25,7 @@ impl ::prost::Name for TxInfo { } /// ContractOperationInfo keeps a single contract operation gas consumption data. /// Object is being created by the IngestGasRecord call from the wasmd. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractOperationInfo { @@ -57,6 +59,7 @@ impl ::prost::Name for ContractOperationInfo { } } /// BlockTracking is the tracking information for a block. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockTracking { @@ -72,6 +75,7 @@ impl ::prost::Name for BlockTracking { } } /// TxTracking is the tracking information for a single transaction. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxTracking { @@ -91,7 +95,19 @@ impl ::prost::Name for TxTracking { } } /// ContractOperation denotes which operation consumed gas. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ContractOperation { /// Invalid or unknown operation @@ -144,6 +160,7 @@ impl ContractOperation { } } /// GenesisState defines the initial state of the tracking module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -169,6 +186,7 @@ impl ::prost::Name for GenesisState { } } /// QueryBlockGasTrackingRequest is the request for Query.BlockGasTracking. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBlockGasTrackingRequest {} @@ -180,6 +198,7 @@ impl ::prost::Name for QueryBlockGasTrackingRequest { } } /// QueryBlockGasTrackingResponse is the response for Query.BlockGasTracking. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBlockGasTrackingResponse { diff --git a/packages/proto/src/gen/cosmos.app.runtime.v1alpha1.rs b/packages/proto/src/gen/cosmos.app.runtime.v1alpha1.rs index 1492c67..e179b6d 100644 --- a/packages/proto/src/gen/cosmos.app.runtime.v1alpha1.rs +++ b/packages/proto/src/gen/cosmos.app.runtime.v1alpha1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object for the runtime module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { @@ -40,6 +41,7 @@ impl ::prost::Name for Module { } /// StoreKeyConfig may be supplied to override the default module store key, which /// is the module name. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreKeyConfig { diff --git a/packages/proto/src/gen/cosmos.app.v1alpha1.rs b/packages/proto/src/gen/cosmos.app.v1alpha1.rs index 603ba0c..a46f454 100644 --- a/packages/proto/src/gen/cosmos.app.v1alpha1.rs +++ b/packages/proto/src/gen/cosmos.app.v1alpha1.rs @@ -1,5 +1,6 @@ // @generated /// ModuleDescriptor describes an app module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleDescriptor { @@ -32,6 +33,7 @@ impl ::prost::Name for ModuleDescriptor { } } /// PackageReference is a reference to a protobuf package used by a module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PackageReference { @@ -85,6 +87,7 @@ impl ::prost::Name for PackageReference { } /// MigrateFromInfo is information on a module version that a newer module /// can migrate from. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MigrateFromInfo { @@ -107,6 +110,7 @@ impl ::prost::Name for MigrateFromInfo { /// allow a mixture of declarative and imperative app wiring, however, apps /// that strive for the maximum ease of maintainability should be able to describe /// their state machine with a config object alone. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Config { @@ -127,6 +131,7 @@ impl ::prost::Name for Config { } } /// ModuleConfig is a module configuration for an app. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleConfig { @@ -145,7 +150,7 @@ pub struct ModuleConfig { /// config is the config object for the module. Module config messages should /// define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. #[prost(message, optional, tag = "2")] - pub config: ::core::option::Option<::prost_types::Any>, + pub config: ::core::option::Option<::pbjson_types::Any>, /// golang_bindings specifies explicit interface to implementation type bindings which /// depinject uses to resolve interface inputs to provider functions. The scope of this /// field's configuration is module specific. @@ -160,6 +165,7 @@ impl ::prost::Name for ModuleConfig { } } /// GolangBinding is an explicit interface type to implementing type binding for dependency injection. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GolangBinding { @@ -178,6 +184,7 @@ impl ::prost::Name for GolangBinding { } } /// QueryConfigRequest is the Query/Config request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConfigRequest {} @@ -189,6 +196,7 @@ impl ::prost::Name for QueryConfigRequest { } } /// QueryConfigRequest is the Query/Config response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConfigResponse { diff --git a/packages/proto/src/gen/cosmos.auth.module.v1.rs b/packages/proto/src/gen/cosmos.auth.module.v1.rs index adbcd4e..aaf47dd 100644 --- a/packages/proto/src/gen/cosmos.auth.module.v1.rs +++ b/packages/proto/src/gen/cosmos.auth.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object for the auth module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { @@ -21,6 +22,7 @@ impl ::prost::Name for Module { } } /// ModuleAccountPermission represents permissions for a module account. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleAccountPermission { diff --git a/packages/proto/src/gen/cosmos.auth.v1beta1.rs b/packages/proto/src/gen/cosmos.auth.v1beta1.rs index 42656a9..8490cf1 100644 --- a/packages/proto/src/gen/cosmos.auth.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.auth.v1beta1.rs @@ -2,13 +2,14 @@ /// BaseAccount defines a base account type. It contains all the necessary fields /// for basic account functionality. Any custom account type should extend this /// type for additional functionality (e.g. vesting). +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BaseAccount { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub pub_key: ::core::option::Option<::prost_types::Any>, + pub pub_key: ::core::option::Option<::pbjson_types::Any>, #[prost(uint64, tag = "3")] pub account_number: u64, #[prost(uint64, tag = "4")] @@ -22,6 +23,7 @@ impl ::prost::Name for BaseAccount { } } /// ModuleAccount defines an account for modules that holds coins on a pool. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleAccount { @@ -42,6 +44,7 @@ impl ::prost::Name for ModuleAccount { /// ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleCredential { @@ -61,6 +64,7 @@ impl ::prost::Name for ModuleCredential { } } /// Params defines the parameters for the auth module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -83,6 +87,7 @@ impl ::prost::Name for Params { } } /// GenesisState defines the auth module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -91,7 +96,7 @@ pub struct GenesisState { pub params: ::core::option::Option, /// accounts are the accounts present at genesis. #[prost(message, repeated, tag = "2")] - pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub accounts: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for GenesisState { const NAME: &'static str = "GenesisState"; @@ -103,6 +108,7 @@ impl ::prost::Name for GenesisState { /// QueryAccountsRequest is the request type for the Query/Accounts RPC method. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountsRequest { @@ -120,12 +126,13 @@ impl ::prost::Name for QueryAccountsRequest { /// QueryAccountsResponse is the response type for the Query/Accounts RPC method. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountsResponse { /// accounts are the existing accounts #[prost(message, repeated, tag = "1")] - pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub accounts: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] pub pagination: ::core::option::Option, @@ -138,6 +145,7 @@ impl ::prost::Name for QueryAccountsResponse { } } /// QueryAccountRequest is the request type for the Query/Account RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountRequest { @@ -153,12 +161,13 @@ impl ::prost::Name for QueryAccountRequest { } } /// QueryAccountResponse is the response type for the Query/Account RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountResponse { /// account defines the account of the corresponding address. #[prost(message, optional, tag = "1")] - pub account: ::core::option::Option<::prost_types::Any>, + pub account: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for QueryAccountResponse { const NAME: &'static str = "QueryAccountResponse"; @@ -168,6 +177,7 @@ impl ::prost::Name for QueryAccountResponse { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -179,6 +189,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -196,6 +207,7 @@ impl ::prost::Name for QueryParamsResponse { /// QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsRequest {} @@ -209,11 +221,12 @@ impl ::prost::Name for QueryModuleAccountsRequest { /// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountsResponse { #[prost(message, repeated, tag = "1")] - pub accounts: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub accounts: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for QueryModuleAccountsResponse { const NAME: &'static str = "QueryModuleAccountsResponse"; @@ -223,6 +236,7 @@ impl ::prost::Name for QueryModuleAccountsResponse { } } /// QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountByNameRequest { @@ -237,11 +251,12 @@ impl ::prost::Name for QueryModuleAccountByNameRequest { } } /// QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleAccountByNameResponse { #[prost(message, optional, tag = "1")] - pub account: ::core::option::Option<::prost_types::Any>, + pub account: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for QueryModuleAccountByNameResponse { const NAME: &'static str = "QueryModuleAccountByNameResponse"; @@ -253,6 +268,7 @@ impl ::prost::Name for QueryModuleAccountByNameResponse { /// Bech32PrefixRequest is the request type for Bech32Prefix rpc method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bech32PrefixRequest {} @@ -266,6 +282,7 @@ impl ::prost::Name for Bech32PrefixRequest { /// Bech32PrefixResponse is the response type for Bech32Prefix rpc method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bech32PrefixResponse { @@ -282,6 +299,7 @@ impl ::prost::Name for Bech32PrefixResponse { /// AddressBytesToStringRequest is the request type for AddressString rpc method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBytesToStringRequest { @@ -298,6 +316,7 @@ impl ::prost::Name for AddressBytesToStringRequest { /// AddressBytesToStringResponse is the response type for AddressString rpc method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressBytesToStringResponse { @@ -314,6 +333,7 @@ impl ::prost::Name for AddressBytesToStringResponse { /// AddressStringToBytesRequest is the request type for AccountBytes rpc method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressStringToBytesRequest { @@ -330,6 +350,7 @@ impl ::prost::Name for AddressStringToBytesRequest { /// AddressStringToBytesResponse is the response type for AddressBytes rpc method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddressStringToBytesResponse { @@ -346,6 +367,7 @@ impl ::prost::Name for AddressStringToBytesResponse { /// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method /// /// Since: cosmos-sdk 0.46.2 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountAddressByIdRequest { @@ -373,6 +395,7 @@ impl ::prost::Name for QueryAccountAddressByIdRequest { /// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method /// /// Since: cosmos-sdk 0.46.2 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountAddressByIdResponse { @@ -389,6 +412,7 @@ impl ::prost::Name for QueryAccountAddressByIdResponse { /// QueryAccountInfoRequest is the Query/AccountInfo request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountInfoRequest { @@ -406,6 +430,7 @@ impl ::prost::Name for QueryAccountInfoRequest { /// QueryAccountInfoResponse is the Query/AccountInfo response type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAccountInfoResponse { @@ -423,6 +448,7 @@ impl ::prost::Name for QueryAccountInfoResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -446,6 +472,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.authz.module.v1.rs b/packages/proto/src/gen/cosmos.authz.module.v1.rs index d9aa4d0..a5e4445 100644 --- a/packages/proto/src/gen/cosmos.authz.module.v1.rs +++ b/packages/proto/src/gen/cosmos.authz.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the authz module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.authz.v1beta1.rs b/packages/proto/src/gen/cosmos.authz.v1beta1.rs index 40c95fb..f1d32b2 100644 --- a/packages/proto/src/gen/cosmos.authz.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.authz.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// GenericAuthorization gives the grantee unrestricted permissions to execute /// the provided method on behalf of the granter's account. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenericAuthorization { @@ -17,16 +18,17 @@ impl ::prost::Name for GenericAuthorization { } /// Grant gives permissions to execute /// the provide method with expiration time. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Grant { #[prost(message, optional, tag = "1")] - pub authorization: ::core::option::Option<::prost_types::Any>, + pub authorization: ::core::option::Option<::pbjson_types::Any>, /// time when the grant will expire and will be pruned. If null, then the grant /// doesn't have a time expiration (other conditions in `authorization` /// may apply to invalidate the grant) #[prost(message, optional, tag = "2")] - pub expiration: ::core::option::Option<::prost_types::Timestamp>, + pub expiration: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for Grant { const NAME: &'static str = "Grant"; @@ -37,6 +39,7 @@ impl ::prost::Name for Grant { } /// GrantAuthorization extends a grant with both the addresses of the grantee and granter. /// It is used in genesis.proto and query.proto +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GrantAuthorization { @@ -45,9 +48,9 @@ pub struct GrantAuthorization { #[prost(string, tag = "2")] pub grantee: ::prost::alloc::string::String, #[prost(message, optional, tag = "3")] - pub authorization: ::core::option::Option<::prost_types::Any>, + pub authorization: ::core::option::Option<::pbjson_types::Any>, #[prost(message, optional, tag = "4")] - pub expiration: ::core::option::Option<::prost_types::Timestamp>, + pub expiration: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for GrantAuthorization { const NAME: &'static str = "GrantAuthorization"; @@ -57,6 +60,7 @@ impl ::prost::Name for GrantAuthorization { } } /// GrantQueueItem contains the list of TypeURL of a sdk.Msg. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GrantQueueItem { @@ -72,6 +76,7 @@ impl ::prost::Name for GrantQueueItem { } } /// EventGrant is emitted on Msg/Grant +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventGrant { @@ -93,6 +98,7 @@ impl ::prost::Name for EventGrant { } } /// EventRevoke is emitted on Msg/Revoke +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventRevoke { @@ -114,6 +120,7 @@ impl ::prost::Name for EventRevoke { } } /// GenesisState defines the authz module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -128,6 +135,7 @@ impl ::prost::Name for GenesisState { } } /// QueryGrantsRequest is the request type for the Query/Grants RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGrantsRequest { @@ -150,6 +158,7 @@ impl ::prost::Name for QueryGrantsRequest { } } /// QueryGrantsResponse is the response type for the Query/Authorizations RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGrantsResponse { @@ -168,6 +177,7 @@ impl ::prost::Name for QueryGrantsResponse { } } /// QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranterGrantsRequest { @@ -185,6 +195,7 @@ impl ::prost::Name for QueryGranterGrantsRequest { } } /// QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranterGrantsResponse { @@ -203,6 +214,7 @@ impl ::prost::Name for QueryGranterGrantsResponse { } } /// QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranteeGrantsRequest { @@ -220,6 +232,7 @@ impl ::prost::Name for QueryGranteeGrantsRequest { } } /// QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGranteeGrantsResponse { @@ -239,6 +252,7 @@ impl ::prost::Name for QueryGranteeGrantsResponse { } /// MsgGrant is a request type for Grant method. It declares authorization to the grantee /// on behalf of the granter with the provided expiration time. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgGrant { @@ -257,6 +271,7 @@ impl ::prost::Name for MsgGrant { } } /// MsgExecResponse defines the Msg/MsgExecResponse response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecResponse { @@ -273,6 +288,7 @@ impl ::prost::Name for MsgExecResponse { /// MsgExec attempts to execute the provided messages using /// authorizations granted to the grantee. Each message should have only /// one signer corresponding to the granter of the authorization. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExec { @@ -282,7 +298,7 @@ pub struct MsgExec { /// The x/authz will try to find a grant matching (msg.signers\[0\], grantee, MsgTypeURL(msg)) /// triple and validate it. #[prost(message, repeated, tag = "2")] - pub msgs: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub msgs: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for MsgExec { const NAME: &'static str = "MsgExec"; @@ -292,6 +308,7 @@ impl ::prost::Name for MsgExec { } } /// MsgGrantResponse defines the Msg/MsgGrant response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgGrantResponse {} @@ -304,6 +321,7 @@ impl ::prost::Name for MsgGrantResponse { } /// MsgRevoke revokes any authorization with the provided sdk.Msg type on the /// granter's account with that has been granted to the grantee. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRevoke { @@ -322,6 +340,7 @@ impl ::prost::Name for MsgRevoke { } } /// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRevokeResponse {} diff --git a/packages/proto/src/gen/cosmos.autocli.v1.rs b/packages/proto/src/gen/cosmos.autocli.v1.rs index c8bca17..75c547f 100644 --- a/packages/proto/src/gen/cosmos.autocli.v1.rs +++ b/packages/proto/src/gen/cosmos.autocli.v1.rs @@ -1,5 +1,6 @@ // @generated /// ModuleOptions describes the CLI options for a Cosmos SDK module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleOptions { @@ -18,6 +19,7 @@ impl ::prost::Name for ModuleOptions { } } /// ServiceCommandDescriptor describes a CLI command based on a protobuf service. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ServiceCommandDescriptor { @@ -47,6 +49,7 @@ impl ::prost::Name for ServiceCommandDescriptor { } /// RpcCommandOptions specifies options for commands generated from protobuf /// rpc methods. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RpcCommandOptions { @@ -109,6 +112,7 @@ impl ::prost::Name for RpcCommandOptions { /// By default, all request fields are configured as flags based on the /// kebab-case name of the field. Fields can be turned into positional arguments /// instead by using RpcCommandOptions.positional_args. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FlagOptions { @@ -145,6 +149,7 @@ impl ::prost::Name for FlagOptions { } } /// PositionalArgDescriptor describes a positional argument. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PositionalArgDescriptor { @@ -166,6 +171,7 @@ impl ::prost::Name for PositionalArgDescriptor { } } /// AppOptionsRequest is the RemoteInfoService/AppOptions request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AppOptionsRequest {} @@ -177,6 +183,7 @@ impl ::prost::Name for AppOptionsRequest { } } /// AppOptionsResponse is the RemoteInfoService/AppOptions response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AppOptionsResponse { diff --git a/packages/proto/src/gen/cosmos.bank.module.v1.rs b/packages/proto/src/gen/cosmos.bank.module.v1.rs index 9e5ad20..da57216 100644 --- a/packages/proto/src/gen/cosmos.bank.module.v1.rs +++ b/packages/proto/src/gen/cosmos.bank.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the bank module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.bank.v1beta1.rs b/packages/proto/src/gen/cosmos.bank.v1beta1.rs index 5407ea7..9599963 100644 --- a/packages/proto/src/gen/cosmos.bank.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.bank.v1beta1.rs @@ -3,6 +3,7 @@ /// the granter's account. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendAuthorization { @@ -23,6 +24,7 @@ impl ::prost::Name for SendAuthorization { } } /// Params defines the parameters for the bank module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -46,6 +48,7 @@ impl ::prost::Name for Params { } /// SendEnabled maps coin denom to a send_enabled status (whether a denom is /// sendable). +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendEnabled { @@ -62,6 +65,7 @@ impl ::prost::Name for SendEnabled { } } /// Input models transaction input. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Input { @@ -78,6 +82,7 @@ impl ::prost::Name for Input { } } /// Output models transaction outputs. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Output { @@ -96,6 +101,7 @@ impl ::prost::Name for Output { /// Supply represents a struct that passively keeps track of the total supply /// amounts in the network. /// This message is deprecated now that supply is indexed by denom. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Supply { @@ -111,6 +117,7 @@ impl ::prost::Name for Supply { } /// DenomUnit represents a struct that describes a given /// denomination unit of the basic token. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DenomUnit { @@ -137,6 +144,7 @@ impl ::prost::Name for DenomUnit { } /// Metadata represents a struct that describes /// a basic token. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { @@ -183,6 +191,7 @@ impl ::prost::Name for Metadata { } } /// GenesisState defines the bank module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -214,6 +223,7 @@ impl ::prost::Name for GenesisState { } /// Balance defines an account address and balance pair used in the bank module's /// genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Balance { @@ -232,6 +242,7 @@ impl ::prost::Name for Balance { } } /// QueryBalanceRequest is the request type for the Query/Balance RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceRequest { @@ -250,6 +261,7 @@ impl ::prost::Name for QueryBalanceRequest { } } /// QueryBalanceResponse is the response type for the Query/Balance RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceResponse { @@ -265,6 +277,7 @@ impl ::prost::Name for QueryBalanceResponse { } } /// QueryBalanceRequest is the request type for the Query/AllBalances RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllBalancesRequest { @@ -284,6 +297,7 @@ impl ::prost::Name for QueryAllBalancesRequest { } /// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllBalancesResponse { @@ -305,6 +319,7 @@ impl ::prost::Name for QueryAllBalancesResponse { /// an account's spendable balances. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySpendableBalancesRequest { @@ -326,6 +341,7 @@ impl ::prost::Name for QuerySpendableBalancesRequest { /// an account's spendable balances. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySpendableBalancesResponse { @@ -347,6 +363,7 @@ impl ::prost::Name for QuerySpendableBalancesResponse { /// querying an account's spendable balance for a specific denom. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySpendableBalanceByDenomRequest { @@ -368,6 +385,7 @@ impl ::prost::Name for QuerySpendableBalanceByDenomRequest { /// querying an account's spendable balance for a specific denom. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySpendableBalanceByDenomResponse { @@ -384,6 +402,7 @@ impl ::prost::Name for QuerySpendableBalanceByDenomResponse { } /// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalSupplyRequest { @@ -402,6 +421,7 @@ impl ::prost::Name for QueryTotalSupplyRequest { } /// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalSupplyResponse { @@ -422,6 +442,7 @@ impl ::prost::Name for QueryTotalSupplyResponse { } } /// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyOfRequest { @@ -437,6 +458,7 @@ impl ::prost::Name for QuerySupplyOfRequest { } } /// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyOfResponse { @@ -452,6 +474,7 @@ impl ::prost::Name for QuerySupplyOfResponse { } } /// QueryParamsRequest defines the request type for querying x/bank parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -463,6 +486,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse defines the response type for querying x/bank parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -477,6 +501,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomsMetadataRequest { @@ -493,6 +518,7 @@ impl ::prost::Name for QueryDenomsMetadataRequest { } /// QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomsMetadataResponse { @@ -511,6 +537,7 @@ impl ::prost::Name for QueryDenomsMetadataResponse { } } /// QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomMetadataRequest { @@ -527,6 +554,7 @@ impl ::prost::Name for QueryDenomMetadataRequest { } /// QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomMetadataResponse { @@ -544,6 +572,7 @@ impl ::prost::Name for QueryDenomMetadataResponse { /// QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, /// which queries for a paginated set of all account holders of a particular /// denomination. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomOwnersRequest { @@ -566,6 +595,7 @@ impl ::prost::Name for QueryDenomOwnersRequest { /// balance of the denominated token. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DenomOwner { @@ -586,6 +616,7 @@ impl ::prost::Name for DenomOwner { /// QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomOwnersResponse { @@ -605,6 +636,7 @@ impl ::prost::Name for QueryDenomOwnersResponse { /// QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySendEnabledRequest { @@ -626,6 +658,7 @@ impl ::prost::Name for QuerySendEnabledRequest { /// QuerySendEnabledResponse defines the RPC response of a SendEnable query. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySendEnabledResponse { @@ -644,6 +677,7 @@ impl ::prost::Name for QuerySendEnabledResponse { } } /// MsgSend represents a message to send coins from one account to another. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSend { @@ -662,6 +696,7 @@ impl ::prost::Name for MsgSend { } } /// MsgSendResponse defines the Msg/Send response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendResponse {} @@ -673,6 +708,7 @@ impl ::prost::Name for MsgSendResponse { } } /// MsgMultiSend represents an arbitrary multi-in, multi-out send message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMultiSend { @@ -691,6 +727,7 @@ impl ::prost::Name for MsgMultiSend { } } /// MsgMultiSendResponse defines the Msg/MultiSend response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMultiSendResponse {} @@ -704,6 +741,7 @@ impl ::prost::Name for MsgMultiSendResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -727,6 +765,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} @@ -744,6 +783,7 @@ impl ::prost::Name for MsgUpdateParamsResponse { /// message are left unchanged. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetSendEnabled { @@ -769,6 +809,7 @@ impl ::prost::Name for MsgSetSendEnabled { /// MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetSendEnabledResponse {} diff --git a/packages/proto/src/gen/cosmos.base.abci.v1beta1.rs b/packages/proto/src/gen/cosmos.base.abci.v1beta1.rs index a2ffdbe..d17bb8f 100644 --- a/packages/proto/src/gen/cosmos.base.abci.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.abci.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// TxResponse defines a structure containing relevant tx data and metadata. The /// tags are stringified and the log is JSON decoded. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxResponse { @@ -37,7 +38,7 @@ pub struct TxResponse { pub gas_used: i64, /// The request transaction bytes. #[prost(message, optional, tag = "11")] - pub tx: ::core::option::Option<::prost_types::Any>, + pub tx: ::core::option::Option<::pbjson_types::Any>, /// Time of the previous block. For heights > 1, it's the weighted median of /// the timestamps of the valid votes in the block.LastCommit. For height == 1, /// it's genesis time. @@ -60,6 +61,7 @@ impl ::prost::Name for TxResponse { } } /// ABCIMessageLog defines a structure containing an indexed tx ABCI message log. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciMessageLog { @@ -81,6 +83,7 @@ impl ::prost::Name for AbciMessageLog { } /// StringEvent defines en Event object wrapper where all the attributes /// contain key/value pairs that are strings instead of raw bytes. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StringEvent { @@ -98,6 +101,7 @@ impl ::prost::Name for StringEvent { } /// Attribute defines an attribute wrapper where the key and value are /// strings instead of raw bytes. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Attribute { @@ -114,6 +118,7 @@ impl ::prost::Name for Attribute { } } /// GasInfo defines tx execution gas context. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GasInfo { @@ -132,6 +137,7 @@ impl ::prost::Name for GasInfo { } } /// Result is the union of ResponseFormat and ResponseCheckTx. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Result { @@ -153,7 +159,7 @@ pub struct Result { /// /// Since: cosmos-sdk 0.46 #[prost(message, repeated, tag = "4")] - pub msg_responses: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub msg_responses: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for Result { const NAME: &'static str = "Result"; @@ -164,6 +170,7 @@ impl ::prost::Name for Result { } /// SimulationResponse defines the response generated when a transaction is /// successfully simulated. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulationResponse { @@ -181,6 +188,7 @@ impl ::prost::Name for SimulationResponse { } /// MsgData defines the data returned in a Result object during message /// execution. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgData { @@ -198,6 +206,7 @@ impl ::prost::Name for MsgData { } /// TxMsgData defines a list of MsgData. A transaction will have a MsgData object /// for each message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxMsgData { @@ -209,7 +218,7 @@ pub struct TxMsgData { /// /// Since: cosmos-sdk 0.46 #[prost(message, repeated, tag = "2")] - pub msg_responses: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub msg_responses: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for TxMsgData { const NAME: &'static str = "TxMsgData"; @@ -219,6 +228,7 @@ impl ::prost::Name for TxMsgData { } } /// SearchTxsResult defines a structure for querying txs pageable +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchTxsResult { diff --git a/packages/proto/src/gen/cosmos.base.kv.v1beta1.rs b/packages/proto/src/gen/cosmos.base.kv.v1beta1.rs index 27bc7b1..88c4648 100644 --- a/packages/proto/src/gen/cosmos.base.kv.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.kv.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// Pairs defines a repeated slice of Pair objects. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Pairs { @@ -14,6 +15,7 @@ impl ::prost::Name for Pairs { } } /// Pair defines a key/value bytes tuple. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Pair { diff --git a/packages/proto/src/gen/cosmos.base.node.v1beta1.rs b/packages/proto/src/gen/cosmos.base.node.v1beta1.rs index 182ad3c..a8e59f6 100644 --- a/packages/proto/src/gen/cosmos.base.node.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.node.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// ConfigRequest defines the request structure for the Config gRPC query. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConfigRequest {} @@ -11,6 +12,7 @@ impl ::prost::Name for ConfigRequest { } } /// ConfigResponse defines the response structure for the Config gRPC query. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConfigResponse { diff --git a/packages/proto/src/gen/cosmos.base.query.v1beta1.rs b/packages/proto/src/gen/cosmos.base.query.v1beta1.rs index e748484..c5e90a8 100644 --- a/packages/proto/src/gen/cosmos.base.query.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.query.v1beta1.rs @@ -6,6 +6,7 @@ /// Foo some_parameter = 1; /// PageRequest pagination = 2; /// } +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PageRequest { @@ -49,6 +50,7 @@ impl ::prost::Name for PageRequest { /// repeated Bar results = 1; /// PageResponse page = 2; /// } +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PageResponse { diff --git a/packages/proto/src/gen/cosmos.base.reflection.v1beta1.rs b/packages/proto/src/gen/cosmos.base.reflection.v1beta1.rs index 11d0127..32c3946 100644 --- a/packages/proto/src/gen/cosmos.base.reflection.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.reflection.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListAllInterfacesRequest {} @@ -11,6 +12,7 @@ impl ::prost::Name for ListAllInterfacesRequest { } } /// ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListAllInterfacesResponse { @@ -27,6 +29,7 @@ impl ::prost::Name for ListAllInterfacesResponse { } /// ListImplementationsRequest is the request type of the ListImplementations /// RPC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListImplementationsRequest { @@ -43,6 +46,7 @@ impl ::prost::Name for ListImplementationsRequest { } /// ListImplementationsResponse is the response type of the ListImplementations /// RPC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListImplementationsResponse { diff --git a/packages/proto/src/gen/cosmos.base.reflection.v2alpha1.rs b/packages/proto/src/gen/cosmos.base.reflection.v2alpha1.rs index 427e9af..baf7b19 100644 --- a/packages/proto/src/gen/cosmos.base.reflection.v2alpha1.rs +++ b/packages/proto/src/gen/cosmos.base.reflection.v2alpha1.rs @@ -1,5 +1,6 @@ // @generated /// AppDescriptor describes a cosmos-sdk based application +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AppDescriptor { @@ -31,6 +32,7 @@ impl ::prost::Name for AppDescriptor { } } /// TxDescriptor describes the accepted transaction type +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxDescriptor { @@ -52,6 +54,7 @@ impl ::prost::Name for TxDescriptor { } /// AuthnDescriptor provides information on how to sign transactions without relying /// on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthnDescriptor { @@ -70,6 +73,7 @@ impl ::prost::Name for AuthnDescriptor { /// NOTE(fdymylja): here we could go as far as providing an entire flow on how /// to sign a message given a SigningModeDescriptor, but it's better to think about /// this another time +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigningModeDescriptor { @@ -92,6 +96,7 @@ impl ::prost::Name for SigningModeDescriptor { } } /// ChainDescriptor describes chain information of the application +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChainDescriptor { @@ -107,6 +112,7 @@ impl ::prost::Name for ChainDescriptor { } } /// CodecDescriptor describes the registered interfaces and provides metadata information on the types +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CodecDescriptor { @@ -122,6 +128,7 @@ impl ::prost::Name for CodecDescriptor { } } /// InterfaceDescriptor describes the implementation of an interface +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceDescriptor { @@ -144,6 +151,7 @@ impl ::prost::Name for InterfaceDescriptor { } } /// InterfaceImplementerDescriptor describes an interface implementer +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceImplementerDescriptor { @@ -166,6 +174,7 @@ impl ::prost::Name for InterfaceImplementerDescriptor { } /// InterfaceAcceptingMessageDescriptor describes a protobuf message which contains /// an interface represented as a google.protobuf.Any +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceAcceptingMessageDescriptor { @@ -186,6 +195,7 @@ impl ::prost::Name for InterfaceAcceptingMessageDescriptor { } } /// ConfigurationDescriptor contains metadata information on the sdk.Config +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConfigurationDescriptor { @@ -201,6 +211,7 @@ impl ::prost::Name for ConfigurationDescriptor { } } /// MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDescriptor { @@ -216,6 +227,7 @@ impl ::prost::Name for MsgDescriptor { } } /// GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAuthnDescriptorRequest {} @@ -227,6 +239,7 @@ impl ::prost::Name for GetAuthnDescriptorRequest { } } /// GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAuthnDescriptorResponse { @@ -242,6 +255,7 @@ impl ::prost::Name for GetAuthnDescriptorResponse { } } /// GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetChainDescriptorRequest {} @@ -253,6 +267,7 @@ impl ::prost::Name for GetChainDescriptorRequest { } } /// GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetChainDescriptorResponse { @@ -268,6 +283,7 @@ impl ::prost::Name for GetChainDescriptorResponse { } } /// GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetCodecDescriptorRequest {} @@ -279,6 +295,7 @@ impl ::prost::Name for GetCodecDescriptorRequest { } } /// GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetCodecDescriptorResponse { @@ -294,6 +311,7 @@ impl ::prost::Name for GetCodecDescriptorResponse { } } /// GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetConfigurationDescriptorRequest {} @@ -305,6 +323,7 @@ impl ::prost::Name for GetConfigurationDescriptorRequest { } } /// GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetConfigurationDescriptorResponse { @@ -320,6 +339,7 @@ impl ::prost::Name for GetConfigurationDescriptorResponse { } } /// GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetQueryServicesDescriptorRequest {} @@ -331,6 +351,7 @@ impl ::prost::Name for GetQueryServicesDescriptorRequest { } } /// GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetQueryServicesDescriptorResponse { @@ -346,6 +367,7 @@ impl ::prost::Name for GetQueryServicesDescriptorResponse { } } /// GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxDescriptorRequest {} @@ -357,6 +379,7 @@ impl ::prost::Name for GetTxDescriptorRequest { } } /// GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxDescriptorResponse { @@ -373,6 +396,7 @@ impl ::prost::Name for GetTxDescriptorResponse { } } /// QueryServicesDescriptor contains the list of cosmos-sdk queriable services +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryServicesDescriptor { @@ -388,6 +412,7 @@ impl ::prost::Name for QueryServicesDescriptor { } } /// QueryServiceDescriptor describes a cosmos-sdk queryable service +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryServiceDescriptor { @@ -411,6 +436,7 @@ impl ::prost::Name for QueryServiceDescriptor { /// QueryMethodDescriptor describes a queryable method of a query service /// no other info is provided beside method name and tendermint queryable path /// because it would be redundant with the grpc reflection service +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryMethodDescriptor { diff --git a/packages/proto/src/gen/cosmos.base.snapshots.v1beta1.rs b/packages/proto/src/gen/cosmos.base.snapshots.v1beta1.rs index 0befb3c..848a9d2 100644 --- a/packages/proto/src/gen/cosmos.base.snapshots.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.snapshots.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// Snapshot contains Tendermint state sync snapshot info. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Snapshot { @@ -22,6 +23,7 @@ impl ::prost::Name for Snapshot { } } /// Metadata contains SDK-specific snapshot metadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { @@ -39,6 +41,7 @@ impl ::prost::Name for Metadata { /// SnapshotItem is an item contained in a rootmulti.Store snapshot. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotItem { @@ -49,6 +52,7 @@ pub struct SnapshotItem { /// Nested message and enum types in `SnapshotItem`. pub mod snapshot_item { /// item is the specific type of snapshot item. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Item { @@ -76,6 +80,7 @@ impl ::prost::Name for SnapshotItem { /// SnapshotStoreItem contains metadata about a snapshotted store. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotStoreItem { @@ -92,6 +97,7 @@ impl ::prost::Name for SnapshotStoreItem { /// SnapshotIAVLItem is an exported IAVL node. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotIavlItem { @@ -116,6 +122,7 @@ impl ::prost::Name for SnapshotIavlItem { /// SnapshotExtensionMeta contains metadata about an external snapshotter. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotExtensionMeta { @@ -134,6 +141,7 @@ impl ::prost::Name for SnapshotExtensionMeta { /// SnapshotExtensionPayload contains payloads of an external snapshotter. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotExtensionPayload { @@ -151,6 +159,7 @@ impl ::prost::Name for SnapshotExtensionPayload { /// /// Since: cosmos-sdk 0.46 /// Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotKvItem { @@ -170,6 +179,7 @@ impl ::prost::Name for SnapshotKvItem { /// /// Since: cosmos-sdk 0.46 /// Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SnapshotSchema { diff --git a/packages/proto/src/gen/cosmos.base.store.v1beta1.rs b/packages/proto/src/gen/cosmos.base.store.v1beta1.rs index d1b5e7e..ebf758e 100644 --- a/packages/proto/src/gen/cosmos.base.store.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.store.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// CommitInfo defines commit information used by the multi-store when committing /// a version/height. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitInfo { @@ -9,7 +10,7 @@ pub struct CommitInfo { #[prost(message, repeated, tag = "2")] pub store_infos: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "3")] - pub timestamp: ::core::option::Option<::prost_types::Timestamp>, + pub timestamp: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for CommitInfo { const NAME: &'static str = "CommitInfo"; @@ -20,6 +21,7 @@ impl ::prost::Name for CommitInfo { } /// StoreInfo defines store-specific commit information. It contains a reference /// between a store name and the commit ID. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreInfo { @@ -37,6 +39,7 @@ impl ::prost::Name for StoreInfo { } /// CommitID defines the commitment information when a specific store is /// committed. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitId { @@ -57,6 +60,7 @@ impl ::prost::Name for CommitId { /// Deletes /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreKvPair { @@ -80,6 +84,7 @@ impl ::prost::Name for StoreKvPair { } /// BlockMetadata contains all the abci event data of a block /// the file streamer dump them into files together with the state changes. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BlockMetadata { @@ -102,6 +107,7 @@ pub struct BlockMetadata { /// Nested message and enum types in `BlockMetadata`. pub mod block_metadata { /// DeliverTx encapulate deliver tx request and response. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeliverTx { diff --git a/packages/proto/src/gen/cosmos.base.tendermint.v1beta1.rs b/packages/proto/src/gen/cosmos.base.tendermint.v1beta1.rs index eb3dfe1..c83baa1 100644 --- a/packages/proto/src/gen/cosmos.base.tendermint.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.tendermint.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// Block is tendermint type Block, with the Header proposer address /// field converted to bech32 string. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Block { @@ -21,6 +22,7 @@ impl ::prost::Name for Block { } } /// Header defines the structure of a Tendermint block header. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { @@ -32,7 +34,7 @@ pub struct Header { #[prost(int64, tag = "3")] pub height: i64, #[prost(message, optional, tag = "4")] - pub time: ::core::option::Option<::prost_types::Timestamp>, + pub time: ::core::option::Option<::pbjson_types::Timestamp>, /// prev block info #[prost(message, optional, tag = "5")] pub last_block_id: ::core::option::Option<::tendermint_proto::v0_37::types::BlockId>, @@ -82,6 +84,7 @@ impl ::prost::Name for Header { } } /// GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetValidatorSetByHeightRequest { @@ -99,6 +102,7 @@ impl ::prost::Name for GetValidatorSetByHeightRequest { } } /// GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetValidatorSetByHeightResponse { @@ -118,6 +122,7 @@ impl ::prost::Name for GetValidatorSetByHeightResponse { } } /// GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestValidatorSetRequest { @@ -133,6 +138,7 @@ impl ::prost::Name for GetLatestValidatorSetRequest { } } /// GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestValidatorSetResponse { @@ -152,13 +158,14 @@ impl ::prost::Name for GetLatestValidatorSetResponse { } } /// Validator is the type for the validator-set. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validator { #[prost(string, tag = "1")] pub address: ::prost::alloc::string::String, #[prost(message, optional, tag = "2")] - pub pub_key: ::core::option::Option<::prost_types::Any>, + pub pub_key: ::core::option::Option<::pbjson_types::Any>, #[prost(int64, tag = "3")] pub voting_power: i64, #[prost(int64, tag = "4")] @@ -172,6 +179,7 @@ impl ::prost::Name for Validator { } } /// GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockByHeightRequest { @@ -186,6 +194,7 @@ impl ::prost::Name for GetBlockByHeightRequest { } } /// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockByHeightResponse { @@ -206,6 +215,7 @@ impl ::prost::Name for GetBlockByHeightResponse { } } /// GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestBlockRequest {} @@ -217,6 +227,7 @@ impl ::prost::Name for GetLatestBlockRequest { } } /// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetLatestBlockResponse { @@ -237,6 +248,7 @@ impl ::prost::Name for GetLatestBlockResponse { } } /// GetSyncingRequest is the request type for the Query/GetSyncing RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSyncingRequest {} @@ -248,6 +260,7 @@ impl ::prost::Name for GetSyncingRequest { } } /// GetSyncingResponse is the response type for the Query/GetSyncing RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetSyncingResponse { @@ -262,6 +275,7 @@ impl ::prost::Name for GetSyncingResponse { } } /// GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetNodeInfoRequest {} @@ -273,6 +287,7 @@ impl ::prost::Name for GetNodeInfoRequest { } } /// GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetNodeInfoResponse { @@ -289,6 +304,7 @@ impl ::prost::Name for GetNodeInfoResponse { } } /// VersionInfo is the type for the GetNodeInfoResponse message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VersionInfo { @@ -318,6 +334,7 @@ impl ::prost::Name for VersionInfo { } } /// Module is the type for VersionInfo +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { @@ -339,6 +356,7 @@ impl ::prost::Name for Module { } } /// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciQueryRequest { @@ -362,6 +380,7 @@ impl ::prost::Name for AbciQueryRequest { /// /// Note: This type is a duplicate of the ResponseQuery proto type defined in /// Tendermint. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbciQueryResponse { @@ -398,6 +417,7 @@ impl ::prost::Name for AbciQueryResponse { /// hash. /// /// Note: This type is a duplicate of the ProofOp proto type defined in Tendermint. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofOp { @@ -418,6 +438,7 @@ impl ::prost::Name for ProofOp { /// ProofOps is Merkle proof defined by the list of ProofOps. /// /// Note: This type is a duplicate of the ProofOps proto type defined in Tendermint. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofOps { diff --git a/packages/proto/src/gen/cosmos.base.v1beta1.rs b/packages/proto/src/gen/cosmos.base.v1beta1.rs index d48be73..ffa2af8 100644 --- a/packages/proto/src/gen/cosmos.base.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.base.v1beta1.rs @@ -3,6 +3,7 @@ /// /// NOTE: The amount field is an Int which implements the custom method /// signatures required by gogoproto. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Coin { @@ -22,6 +23,7 @@ impl ::prost::Name for Coin { /// /// NOTE: The amount field is an Dec which implements the custom method /// signatures required by gogoproto. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DecCoin { @@ -38,6 +40,7 @@ impl ::prost::Name for DecCoin { } } /// IntProto defines a Protobuf wrapper around an Int object. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IntProto { @@ -52,6 +55,7 @@ impl ::prost::Name for IntProto { } } /// DecProto defines a Protobuf wrapper around a Dec object. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DecProto { diff --git a/packages/proto/src/gen/cosmos.capability.module.v1.rs b/packages/proto/src/gen/cosmos.capability.module.v1.rs index 0cd381f..d8d1a1e 100644 --- a/packages/proto/src/gen/cosmos.capability.module.v1.rs +++ b/packages/proto/src/gen/cosmos.capability.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the capability module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.capability.v1beta1.rs b/packages/proto/src/gen/cosmos.capability.v1beta1.rs index 9645e25..234c6d3 100644 --- a/packages/proto/src/gen/cosmos.capability.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.capability.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// Capability defines an implementation of an object capability. The index /// provided to a Capability must be globally unique. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Capability { @@ -16,6 +17,7 @@ impl ::prost::Name for Capability { } /// Owner defines a single capability owner. An owner is defined by the name of /// capability and the module name. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Owner { @@ -33,6 +35,7 @@ impl ::prost::Name for Owner { } /// CapabilityOwners defines a set of owners of a single Capability. The set of /// owners must be unique. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CapabilityOwners { @@ -47,6 +50,7 @@ impl ::prost::Name for CapabilityOwners { } } /// GenesisOwners defines the capability owners with their corresponding index. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisOwners { @@ -65,6 +69,7 @@ impl ::prost::Name for GenesisOwners { } } /// GenesisState defines the capability module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { diff --git a/packages/proto/src/gen/cosmos.consensus.module.v1.rs b/packages/proto/src/gen/cosmos.consensus.module.v1.rs index 9115e2e..2e1ece7 100644 --- a/packages/proto/src/gen/cosmos.consensus.module.v1.rs +++ b/packages/proto/src/gen/cosmos.consensus.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the consensus module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.consensus.v1.rs b/packages/proto/src/gen/cosmos.consensus.v1.rs index 6408ee1..c6dc9df 100644 --- a/packages/proto/src/gen/cosmos.consensus.v1.rs +++ b/packages/proto/src/gen/cosmos.consensus.v1.rs @@ -1,5 +1,6 @@ // @generated /// QueryParamsRequest defines the request type for querying x/consensus parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -11,6 +12,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse defines the response type for querying x/consensus parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -28,6 +30,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// MsgUpdateParams is the Msg/UpdateParams request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -55,6 +58,7 @@ impl ::prost::Name for MsgUpdateParams { } /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.crisis.module.v1.rs b/packages/proto/src/gen/cosmos.crisis.module.v1.rs index c49ad59..e00fa22 100644 --- a/packages/proto/src/gen/cosmos.crisis.module.v1.rs +++ b/packages/proto/src/gen/cosmos.crisis.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the crisis module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.crisis.v1beta1.rs b/packages/proto/src/gen/cosmos.crisis.v1beta1.rs index aad32b9..7b49b0a 100644 --- a/packages/proto/src/gen/cosmos.crisis.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.crisis.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// GenesisState defines the crisis module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -16,6 +17,7 @@ impl ::prost::Name for GenesisState { } } /// MsgVerifyInvariant represents a message to verify a particular invariance. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVerifyInvariant { @@ -37,6 +39,7 @@ impl ::prost::Name for MsgVerifyInvariant { } } /// MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVerifyInvariantResponse {} @@ -50,6 +53,7 @@ impl ::prost::Name for MsgVerifyInvariantResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -71,6 +75,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.crypto.ed25519.rs b/packages/proto/src/gen/cosmos.crypto.ed25519.rs index 2ae42c8..132d07d 100644 --- a/packages/proto/src/gen/cosmos.crypto.ed25519.rs +++ b/packages/proto/src/gen/cosmos.crypto.ed25519.rs @@ -4,6 +4,7 @@ /// It must not be used in a non Tendermint key context because it doesn't implement /// ADR-28. Nevertheless, you will like to use ed25519 in app user level /// then you must create a new proto message and follow ADR-28 for Address construction. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { @@ -19,6 +20,7 @@ impl ::prost::Name for PubKey { } /// Deprecated: PrivKey defines a ed25519 private key. /// NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { diff --git a/packages/proto/src/gen/cosmos.crypto.hd.v1.rs b/packages/proto/src/gen/cosmos.crypto.hd.v1.rs index a6dad09..93749d2 100644 --- a/packages/proto/src/gen/cosmos.crypto.hd.v1.rs +++ b/packages/proto/src/gen/cosmos.crypto.hd.v1.rs @@ -1,5 +1,6 @@ // @generated /// BIP44Params is used as path field in ledger item in Record. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Bip44Params { diff --git a/packages/proto/src/gen/cosmos.crypto.keyring.v1.rs b/packages/proto/src/gen/cosmos.crypto.keyring.v1.rs index e20584a..5a072b0 100644 --- a/packages/proto/src/gen/cosmos.crypto.keyring.v1.rs +++ b/packages/proto/src/gen/cosmos.crypto.keyring.v1.rs @@ -1,5 +1,6 @@ // @generated /// Record is used for representing a key in the keyring. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Record { @@ -8,7 +9,7 @@ pub struct Record { pub name: ::prost::alloc::string::String, /// pub_key represents a public key in any format #[prost(message, optional, tag = "2")] - pub pub_key: ::core::option::Option<::prost_types::Any>, + pub pub_key: ::core::option::Option<::pbjson_types::Any>, /// Record contains one of the following items #[prost(oneof = "record::Item", tags = "3, 4, 5, 6")] pub item: ::core::option::Option, @@ -17,11 +18,12 @@ pub struct Record { pub mod record { /// Item is a keyring item stored in a keyring backend. /// Local item + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Local { #[prost(message, optional, tag = "1")] - pub priv_key: ::core::option::Option<::prost_types::Any>, + pub priv_key: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for Local { const NAME: &'static str = "Local"; @@ -31,6 +33,7 @@ pub mod record { } } /// Ledger item + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Ledger { @@ -45,6 +48,7 @@ pub mod record { } } /// Multi item + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Multi {} @@ -56,6 +60,7 @@ pub mod record { } } /// Offline item + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Offline {} @@ -67,6 +72,7 @@ pub mod record { } } /// Record contains one of the following items + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Item { diff --git a/packages/proto/src/gen/cosmos.crypto.multisig.rs b/packages/proto/src/gen/cosmos.crypto.multisig.rs index eb98de5..fc1aaa3 100644 --- a/packages/proto/src/gen/cosmos.crypto.multisig.rs +++ b/packages/proto/src/gen/cosmos.crypto.multisig.rs @@ -2,13 +2,14 @@ /// LegacyAminoPubKey specifies a public key type /// which nests multiple public keys and a threshold, /// it uses legacy amino address rules. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LegacyAminoPubKey { #[prost(uint32, tag = "1")] pub threshold: u32, #[prost(message, repeated, tag = "2")] - pub public_keys: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub public_keys: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for LegacyAminoPubKey { const NAME: &'static str = "LegacyAminoPubKey"; diff --git a/packages/proto/src/gen/cosmos.crypto.multisig.v1beta1.rs b/packages/proto/src/gen/cosmos.crypto.multisig.v1beta1.rs index 11aafe8..383867e 100644 --- a/packages/proto/src/gen/cosmos.crypto.multisig.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.crypto.multisig.v1beta1.rs @@ -2,6 +2,7 @@ /// MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. /// See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers /// signed and with which modes. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MultiSignature { @@ -19,6 +20,7 @@ impl ::prost::Name for MultiSignature { /// This is used to ensure that the encoded data takes up a minimal amount of /// space after proto encoding. /// This is not thread safe, and is not intended for concurrent usage. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompactBitArray { diff --git a/packages/proto/src/gen/cosmos.crypto.secp256k1.rs b/packages/proto/src/gen/cosmos.crypto.secp256k1.rs index 7512384..2766d64 100644 --- a/packages/proto/src/gen/cosmos.crypto.secp256k1.rs +++ b/packages/proto/src/gen/cosmos.crypto.secp256k1.rs @@ -4,6 +4,7 @@ /// if the y-coordinate is the lexicographically largest of the two associated with /// the x-coordinate. Otherwise the first byte is a 0x03. /// This prefix is followed with the x-coordinate. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { @@ -18,6 +19,7 @@ impl ::prost::Name for PubKey { } } /// PrivKey defines a secp256k1 private key. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { diff --git a/packages/proto/src/gen/cosmos.crypto.secp256r1.rs b/packages/proto/src/gen/cosmos.crypto.secp256r1.rs index 2b26211..2af0c74 100644 --- a/packages/proto/src/gen/cosmos.crypto.secp256r1.rs +++ b/packages/proto/src/gen/cosmos.crypto.secp256r1.rs @@ -1,5 +1,6 @@ // @generated /// PubKey defines a secp256r1 ECDSA public key. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubKey { @@ -16,6 +17,7 @@ impl ::prost::Name for PubKey { } } /// PrivKey defines a secp256r1 ECDSA private key. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrivKey { diff --git a/packages/proto/src/gen/cosmos.distribution.module.v1.rs b/packages/proto/src/gen/cosmos.distribution.module.v1.rs index 8077701..4659a4f 100644 --- a/packages/proto/src/gen/cosmos.distribution.module.v1.rs +++ b/packages/proto/src/gen/cosmos.distribution.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the distribution module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.distribution.v1beta1.rs b/packages/proto/src/gen/cosmos.distribution.v1beta1.rs index 6671583..416a26f 100644 --- a/packages/proto/src/gen/cosmos.distribution.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.distribution.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// Params defines the set of params for the distribution module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -37,6 +38,7 @@ impl ::prost::Name for Params { /// + number of slashes which ended the associated period (and might need to /// read that record) /// + one per validator for the zeroeth period, set on initialization +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorHistoricalRewards { @@ -55,6 +57,7 @@ impl ::prost::Name for ValidatorHistoricalRewards { /// ValidatorCurrentRewards represents current rewards and current /// period for a validator kept as a running counter and incremented /// each block as long as the validator's tokens remain constant. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorCurrentRewards { @@ -72,6 +75,7 @@ impl ::prost::Name for ValidatorCurrentRewards { } /// ValidatorAccumulatedCommission represents accumulated commission /// for a validator kept as a running counter, can be withdrawn at any time. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorAccumulatedCommission { @@ -87,6 +91,7 @@ impl ::prost::Name for ValidatorAccumulatedCommission { } /// ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards /// for a validator inexpensive to track, allows simple sanity checks. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorOutstandingRewards { @@ -104,6 +109,7 @@ impl ::prost::Name for ValidatorOutstandingRewards { /// Height is implicit within the store key. /// This is needed to calculate appropriate amount of staking tokens /// for delegations which are withdrawn after a slash has occurred. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSlashEvent { @@ -120,6 +126,7 @@ impl ::prost::Name for ValidatorSlashEvent { } } /// ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSlashEvents { @@ -134,6 +141,7 @@ impl ::prost::Name for ValidatorSlashEvents { } } /// FeePool is the global fee pool for distribution. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FeePool { @@ -155,6 +163,7 @@ impl ::prost::Name for FeePool { /// longer a need for an explicit CommunityPoolSpendProposal. To spend community /// pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov /// module via a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommunityPoolSpendProposal { @@ -180,6 +189,7 @@ impl ::prost::Name for CommunityPoolSpendProposal { /// occurred). NOTE: Even though validators are slashed to whole staking tokens, /// the delegators within the validator may be left with less than a full token, /// thus sdk.Dec is used. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegatorStartingInfo { @@ -199,6 +209,7 @@ impl ::prost::Name for DelegatorStartingInfo { } /// DelegationDelegatorReward represents the properties /// of a delegator's delegation reward. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegationDelegatorReward { @@ -216,6 +227,7 @@ impl ::prost::Name for DelegationDelegatorReward { } /// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal /// with a deposit +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommunityPoolSpendProposalWithDeposit { @@ -240,6 +252,7 @@ impl ::prost::Name for CommunityPoolSpendProposalWithDeposit { /// DelegatorWithdrawInfo is the address for where distributions rewards are /// withdrawn to by default this struct is only used at genesis to feed in /// default withdraw addresses. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegatorWithdrawInfo { @@ -258,6 +271,7 @@ impl ::prost::Name for DelegatorWithdrawInfo { } } /// ValidatorOutstandingRewardsRecord is used for import/export via genesis json. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorOutstandingRewardsRecord { @@ -277,6 +291,7 @@ impl ::prost::Name for ValidatorOutstandingRewardsRecord { } /// ValidatorAccumulatedCommissionRecord is used for import / export via genesis /// json. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorAccumulatedCommissionRecord { @@ -296,6 +311,7 @@ impl ::prost::Name for ValidatorAccumulatedCommissionRecord { } /// ValidatorHistoricalRewardsRecord is used for import / export via genesis /// json. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorHistoricalRewardsRecord { @@ -317,6 +333,7 @@ impl ::prost::Name for ValidatorHistoricalRewardsRecord { } } /// ValidatorCurrentRewardsRecord is used for import / export via genesis json. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorCurrentRewardsRecord { @@ -335,6 +352,7 @@ impl ::prost::Name for ValidatorCurrentRewardsRecord { } } /// DelegatorStartingInfoRecord used for import / export via genesis json. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegatorStartingInfoRecord { @@ -356,6 +374,7 @@ impl ::prost::Name for DelegatorStartingInfoRecord { } } /// ValidatorSlashEventRecord is used for import / export via genesis json. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSlashEventRecord { @@ -380,6 +399,7 @@ impl ::prost::Name for ValidatorSlashEventRecord { } } /// GenesisState defines the distribution module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -423,6 +443,7 @@ impl ::prost::Name for GenesisState { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -434,6 +455,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -449,6 +471,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorDistributionInfoRequest { @@ -464,6 +487,7 @@ impl ::prost::Name for QueryValidatorDistributionInfoRequest { } } /// QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorDistributionInfoResponse { @@ -486,6 +510,7 @@ impl ::prost::Name for QueryValidatorDistributionInfoResponse { } /// QueryValidatorOutstandingRewardsRequest is the request type for the /// Query/ValidatorOutstandingRewards RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorOutstandingRewardsRequest { @@ -502,6 +527,7 @@ impl ::prost::Name for QueryValidatorOutstandingRewardsRequest { } /// QueryValidatorOutstandingRewardsResponse is the response type for the /// Query/ValidatorOutstandingRewards RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorOutstandingRewardsResponse { @@ -517,6 +543,7 @@ impl ::prost::Name for QueryValidatorOutstandingRewardsResponse { } /// QueryValidatorCommissionRequest is the request type for the /// Query/ValidatorCommission RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorCommissionRequest { @@ -533,6 +560,7 @@ impl ::prost::Name for QueryValidatorCommissionRequest { } /// QueryValidatorCommissionResponse is the response type for the /// Query/ValidatorCommission RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorCommissionResponse { @@ -549,6 +577,7 @@ impl ::prost::Name for QueryValidatorCommissionResponse { } /// QueryValidatorSlashesRequest is the request type for the /// Query/ValidatorSlashes RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorSlashesRequest { @@ -574,6 +603,7 @@ impl ::prost::Name for QueryValidatorSlashesRequest { } /// QueryValidatorSlashesResponse is the response type for the /// Query/ValidatorSlashes RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorSlashesResponse { @@ -593,6 +623,7 @@ impl ::prost::Name for QueryValidatorSlashesResponse { } /// QueryDelegationRewardsRequest is the request type for the /// Query/DelegationRewards RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationRewardsRequest { @@ -612,6 +643,7 @@ impl ::prost::Name for QueryDelegationRewardsRequest { } /// QueryDelegationRewardsResponse is the response type for the /// Query/DelegationRewards RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationRewardsResponse { @@ -628,6 +660,7 @@ impl ::prost::Name for QueryDelegationRewardsResponse { } /// QueryDelegationTotalRewardsRequest is the request type for the /// Query/DelegationTotalRewards RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationTotalRewardsRequest { @@ -644,6 +677,7 @@ impl ::prost::Name for QueryDelegationTotalRewardsRequest { } /// QueryDelegationTotalRewardsResponse is the response type for the /// Query/DelegationTotalRewards RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationTotalRewardsResponse { @@ -663,6 +697,7 @@ impl ::prost::Name for QueryDelegationTotalRewardsResponse { } /// QueryDelegatorValidatorsRequest is the request type for the /// Query/DelegatorValidators RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsRequest { @@ -679,6 +714,7 @@ impl ::prost::Name for QueryDelegatorValidatorsRequest { } /// QueryDelegatorValidatorsResponse is the response type for the /// Query/DelegatorValidators RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsResponse { @@ -695,6 +731,7 @@ impl ::prost::Name for QueryDelegatorValidatorsResponse { } /// QueryDelegatorWithdrawAddressRequest is the request type for the /// Query/DelegatorWithdrawAddress RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorWithdrawAddressRequest { @@ -711,6 +748,7 @@ impl ::prost::Name for QueryDelegatorWithdrawAddressRequest { } /// QueryDelegatorWithdrawAddressResponse is the response type for the /// Query/DelegatorWithdrawAddress RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorWithdrawAddressResponse { @@ -727,6 +765,7 @@ impl ::prost::Name for QueryDelegatorWithdrawAddressResponse { } /// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCommunityPoolRequest {} @@ -739,6 +778,7 @@ impl ::prost::Name for QueryCommunityPoolRequest { } /// QueryCommunityPoolResponse is the response type for the Query/CommunityPool /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCommunityPoolResponse { @@ -755,6 +795,7 @@ impl ::prost::Name for QueryCommunityPoolResponse { } /// MsgSetWithdrawAddress sets the withdraw address for /// a delegator (or validator self-delegation). +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetWithdrawAddress { @@ -772,6 +813,7 @@ impl ::prost::Name for MsgSetWithdrawAddress { } /// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response /// type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSetWithdrawAddressResponse {} @@ -784,6 +826,7 @@ impl ::prost::Name for MsgSetWithdrawAddressResponse { } /// MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator /// from a single validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawDelegatorReward { @@ -801,6 +844,7 @@ impl ::prost::Name for MsgWithdrawDelegatorReward { } /// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward /// response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawDelegatorRewardResponse { @@ -817,6 +861,7 @@ impl ::prost::Name for MsgWithdrawDelegatorRewardResponse { } /// MsgWithdrawValidatorCommission withdraws the full commission to the validator /// address. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawValidatorCommission { @@ -832,6 +877,7 @@ impl ::prost::Name for MsgWithdrawValidatorCommission { } /// MsgWithdrawValidatorCommissionResponse defines the /// Msg/WithdrawValidatorCommission response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawValidatorCommissionResponse { @@ -848,6 +894,7 @@ impl ::prost::Name for MsgWithdrawValidatorCommissionResponse { } /// MsgFundCommunityPool allows an account to directly /// fund the community pool. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgFundCommunityPool { @@ -864,6 +911,7 @@ impl ::prost::Name for MsgFundCommunityPool { } } /// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgFundCommunityPoolResponse {} @@ -877,6 +925,7 @@ impl ::prost::Name for MsgFundCommunityPoolResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -900,6 +949,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} @@ -915,6 +965,7 @@ impl ::prost::Name for MsgUpdateParamsResponse { /// proposal with the governance module being the executing authority. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCommunityPoolSpend { @@ -937,6 +988,7 @@ impl ::prost::Name for MsgCommunityPoolSpend { /// MsgCommunityPoolSpend message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCommunityPoolSpendResponse {} diff --git a/packages/proto/src/gen/cosmos.evidence.module.v1.rs b/packages/proto/src/gen/cosmos.evidence.module.v1.rs index 4a3f959..2890db0 100644 --- a/packages/proto/src/gen/cosmos.evidence.module.v1.rs +++ b/packages/proto/src/gen/cosmos.evidence.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the evidence module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.evidence.v1beta1.rs b/packages/proto/src/gen/cosmos.evidence.v1beta1.rs index b25ef73..bd20a33 100644 --- a/packages/proto/src/gen/cosmos.evidence.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.evidence.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// Equivocation implements the Evidence interface and defines evidence of double /// signing misbehavior. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Equivocation { @@ -9,7 +10,7 @@ pub struct Equivocation { pub height: i64, /// time is the equivocation time. #[prost(message, optional, tag = "2")] - pub time: ::core::option::Option<::prost_types::Timestamp>, + pub time: ::core::option::Option<::pbjson_types::Timestamp>, /// power is the equivocation validator power. #[prost(int64, tag = "3")] pub power: i64, @@ -25,12 +26,13 @@ impl ::prost::Name for Equivocation { } } /// GenesisState defines the evidence module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { /// evidence defines all the evidence at genesis. #[prost(message, repeated, tag = "1")] - pub evidence: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub evidence: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for GenesisState { const NAME: &'static str = "GenesisState"; @@ -40,6 +42,7 @@ impl ::prost::Name for GenesisState { } } /// QueryEvidenceRequest is the request type for the Query/Evidence RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEvidenceRequest { @@ -62,12 +65,13 @@ impl ::prost::Name for QueryEvidenceRequest { } } /// QueryEvidenceResponse is the response type for the Query/Evidence RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEvidenceResponse { /// evidence returns the requested evidence. #[prost(message, optional, tag = "1")] - pub evidence: ::core::option::Option<::prost_types::Any>, + pub evidence: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for QueryEvidenceResponse { const NAME: &'static str = "QueryEvidenceResponse"; @@ -78,6 +82,7 @@ impl ::prost::Name for QueryEvidenceResponse { } /// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllEvidenceRequest { @@ -94,12 +99,13 @@ impl ::prost::Name for QueryAllEvidenceRequest { } /// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllEvidenceResponse { /// evidence returns all evidences. #[prost(message, repeated, tag = "1")] - pub evidence: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub evidence: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// pagination defines the pagination in the response. #[prost(message, optional, tag = "2")] pub pagination: ::core::option::Option, @@ -113,6 +119,7 @@ impl ::prost::Name for QueryAllEvidenceResponse { } /// MsgSubmitEvidence represents a message that supports submitting arbitrary /// Evidence of misbehavior such as equivocation or counterfactual signing. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitEvidence { @@ -121,7 +128,7 @@ pub struct MsgSubmitEvidence { pub submitter: ::prost::alloc::string::String, /// evidence defines the evidence of misbehavior. #[prost(message, optional, tag = "2")] - pub evidence: ::core::option::Option<::prost_types::Any>, + pub evidence: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for MsgSubmitEvidence { const NAME: &'static str = "MsgSubmitEvidence"; @@ -131,6 +138,7 @@ impl ::prost::Name for MsgSubmitEvidence { } } /// MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitEvidenceResponse { diff --git a/packages/proto/src/gen/cosmos.feegrant.module.v1.rs b/packages/proto/src/gen/cosmos.feegrant.module.v1.rs index 282c1ab..1ed8460 100644 --- a/packages/proto/src/gen/cosmos.feegrant.module.v1.rs +++ b/packages/proto/src/gen/cosmos.feegrant.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the feegrant module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.feegrant.v1beta1.rs b/packages/proto/src/gen/cosmos.feegrant.v1beta1.rs index ebedf60..c307466 100644 --- a/packages/proto/src/gen/cosmos.feegrant.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.feegrant.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// BasicAllowance implements Allowance with a one-time grant of coins /// that optionally expires. The grantee can use up to SpendLimit to cover fees. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BasicAllowance { @@ -11,7 +12,7 @@ pub struct BasicAllowance { pub spend_limit: ::prost::alloc::vec::Vec, /// expiration specifies an optional time when this allowance expires #[prost(message, optional, tag = "2")] - pub expiration: ::core::option::Option<::prost_types::Timestamp>, + pub expiration: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for BasicAllowance { const NAME: &'static str = "BasicAllowance"; @@ -22,6 +23,7 @@ impl ::prost::Name for BasicAllowance { } /// PeriodicAllowance extends Allowance to allow for both a maximum cap, /// as well as a limit per time period. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PeriodicAllowance { @@ -31,7 +33,7 @@ pub struct PeriodicAllowance { /// period specifies the time duration in which period_spend_limit coins can /// be spent before that allowance is reset #[prost(message, optional, tag = "2")] - pub period: ::core::option::Option<::prost_types::Duration>, + pub period: ::core::option::Option<::pbjson_types::Duration>, /// period_spend_limit specifies the maximum number of coins that can be spent /// in the period #[prost(message, repeated, tag = "3")] @@ -43,7 +45,7 @@ pub struct PeriodicAllowance { /// it is calculated from the start time of the first transaction after the /// last period ended #[prost(message, optional, tag = "5")] - pub period_reset: ::core::option::Option<::prost_types::Timestamp>, + pub period_reset: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for PeriodicAllowance { const NAME: &'static str = "PeriodicAllowance"; @@ -53,12 +55,13 @@ impl ::prost::Name for PeriodicAllowance { } } /// AllowedMsgAllowance creates allowance only for specified message types. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AllowedMsgAllowance { /// allowance can be any of basic and periodic fee allowance. #[prost(message, optional, tag = "1")] - pub allowance: ::core::option::Option<::prost_types::Any>, + pub allowance: ::core::option::Option<::pbjson_types::Any>, /// allowed_messages are the messages for which the grantee has the access. #[prost(string, repeated, tag = "2")] pub allowed_messages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, @@ -71,6 +74,7 @@ impl ::prost::Name for AllowedMsgAllowance { } } /// Grant is stored in the KVStore to record a grant with full context +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Grant { @@ -82,7 +86,7 @@ pub struct Grant { pub grantee: ::prost::alloc::string::String, /// allowance can be any of basic, periodic, allowed fee allowance. #[prost(message, optional, tag = "3")] - pub allowance: ::core::option::Option<::prost_types::Any>, + pub allowance: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for Grant { const NAME: &'static str = "Grant"; @@ -92,6 +96,7 @@ impl ::prost::Name for Grant { } } /// GenesisState contains a set of fee allowances, persisted from the store +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -106,6 +111,7 @@ impl ::prost::Name for GenesisState { } } /// QueryAllowanceRequest is the request type for the Query/Allowance RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowanceRequest { @@ -124,6 +130,7 @@ impl ::prost::Name for QueryAllowanceRequest { } } /// QueryAllowanceResponse is the response type for the Query/Allowance RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowanceResponse { @@ -139,6 +146,7 @@ impl ::prost::Name for QueryAllowanceResponse { } } /// QueryAllowancesRequest is the request type for the Query/Allowances RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowancesRequest { @@ -156,6 +164,7 @@ impl ::prost::Name for QueryAllowancesRequest { } } /// QueryAllowancesResponse is the response type for the Query/Allowances RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowancesResponse { @@ -176,6 +185,7 @@ impl ::prost::Name for QueryAllowancesResponse { /// QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowancesByGranterRequest { @@ -195,6 +205,7 @@ impl ::prost::Name for QueryAllowancesByGranterRequest { /// QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllowancesByGranterResponse { @@ -214,6 +225,7 @@ impl ::prost::Name for QueryAllowancesByGranterResponse { } /// MsgGrantAllowance adds permission for Grantee to spend up to Allowance /// of fees from the account of Granter. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgGrantAllowance { @@ -225,7 +237,7 @@ pub struct MsgGrantAllowance { pub grantee: ::prost::alloc::string::String, /// allowance can be any of basic, periodic, allowed fee allowance. #[prost(message, optional, tag = "3")] - pub allowance: ::core::option::Option<::prost_types::Any>, + pub allowance: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for MsgGrantAllowance { const NAME: &'static str = "MsgGrantAllowance"; @@ -235,6 +247,7 @@ impl ::prost::Name for MsgGrantAllowance { } } /// MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgGrantAllowanceResponse {} @@ -246,6 +259,7 @@ impl ::prost::Name for MsgGrantAllowanceResponse { } } /// MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRevokeAllowance { @@ -264,6 +278,7 @@ impl ::prost::Name for MsgRevokeAllowance { } } /// MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRevokeAllowanceResponse {} diff --git a/packages/proto/src/gen/cosmos.genutil.module.v1.rs b/packages/proto/src/gen/cosmos.genutil.module.v1.rs index cca1140..5e7a8b7 100644 --- a/packages/proto/src/gen/cosmos.genutil.module.v1.rs +++ b/packages/proto/src/gen/cosmos.genutil.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object for the genutil module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.genutil.v1beta1.rs b/packages/proto/src/gen/cosmos.genutil.v1beta1.rs index 6177de6..bfd264f 100644 --- a/packages/proto/src/gen/cosmos.genutil.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.genutil.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// GenesisState defines the raw genesis transaction in JSON. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { diff --git a/packages/proto/src/gen/cosmos.gov.module.v1.rs b/packages/proto/src/gen/cosmos.gov.module.v1.rs index 8f170ad..eeba3b3 100644 --- a/packages/proto/src/gen/cosmos.gov.module.v1.rs +++ b/packages/proto/src/gen/cosmos.gov.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the gov module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.gov.v1.rs b/packages/proto/src/gen/cosmos.gov.v1.rs index a258712..d74abf1 100644 --- a/packages/proto/src/gen/cosmos.gov.v1.rs +++ b/packages/proto/src/gen/cosmos.gov.v1.rs @@ -1,5 +1,6 @@ // @generated /// WeightedVoteOption defines a unit of vote for vote split. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WeightedVoteOption { @@ -19,6 +20,7 @@ impl ::prost::Name for WeightedVoteOption { } /// Deposit defines an amount deposited by an account address to an active /// proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Deposit { @@ -40,6 +42,7 @@ impl ::prost::Name for Deposit { } } /// Proposal defines the core field members of a governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { @@ -48,7 +51,7 @@ pub struct Proposal { pub id: u64, /// messages are the arbitrary messages to be executed if the proposal passes. #[prost(message, repeated, tag = "2")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// status defines the proposal status. #[prost(enumeration = "ProposalStatus", tag = "3")] pub status: i32, @@ -59,19 +62,19 @@ pub struct Proposal { pub final_tally_result: ::core::option::Option, /// submit_time is the time of proposal submission. #[prost(message, optional, tag = "5")] - pub submit_time: ::core::option::Option<::prost_types::Timestamp>, + pub submit_time: ::core::option::Option<::pbjson_types::Timestamp>, /// deposit_end_time is the end time for deposition. #[prost(message, optional, tag = "6")] - pub deposit_end_time: ::core::option::Option<::prost_types::Timestamp>, + pub deposit_end_time: ::core::option::Option<::pbjson_types::Timestamp>, /// total_deposit is the total deposit on the proposal. #[prost(message, repeated, tag = "7")] pub total_deposit: ::prost::alloc::vec::Vec, /// voting_start_time is the starting time to vote on a proposal. #[prost(message, optional, tag = "8")] - pub voting_start_time: ::core::option::Option<::prost_types::Timestamp>, + pub voting_start_time: ::core::option::Option<::pbjson_types::Timestamp>, /// voting_end_time is the end time of voting on a proposal. #[prost(message, optional, tag = "9")] - pub voting_end_time: ::core::option::Option<::prost_types::Timestamp>, + pub voting_end_time: ::core::option::Option<::pbjson_types::Timestamp>, /// metadata is any arbitrary metadata attached to the proposal. #[prost(string, tag = "10")] pub metadata: ::prost::alloc::string::String, @@ -99,6 +102,7 @@ impl ::prost::Name for Proposal { } } /// TallyResult defines a standard tally for a governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyResult { @@ -124,6 +128,7 @@ impl ::prost::Name for TallyResult { } /// Vote defines a vote on a governance proposal. /// A Vote consists of a proposal ID, the voter, and the vote option. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Vote { @@ -148,6 +153,7 @@ impl ::prost::Name for Vote { } } /// DepositParams defines the params for deposits on governance proposals. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DepositParams { @@ -157,7 +163,7 @@ pub struct DepositParams { /// Maximum period for Atom holders to deposit on a proposal. Initial value: 2 /// months. #[prost(message, optional, tag = "2")] - pub max_deposit_period: ::core::option::Option<::prost_types::Duration>, + pub max_deposit_period: ::core::option::Option<::pbjson_types::Duration>, } impl ::prost::Name for DepositParams { const NAME: &'static str = "DepositParams"; @@ -167,12 +173,13 @@ impl ::prost::Name for DepositParams { } } /// VotingParams defines the params for voting on governance proposals. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VotingParams { /// Duration of the voting period. #[prost(message, optional, tag = "1")] - pub voting_period: ::core::option::Option<::prost_types::Duration>, + pub voting_period: ::core::option::Option<::pbjson_types::Duration>, } impl ::prost::Name for VotingParams { const NAME: &'static str = "VotingParams"; @@ -182,6 +189,7 @@ impl ::prost::Name for VotingParams { } } /// TallyParams defines the params for tallying votes on governance proposals. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyParams { @@ -207,6 +215,7 @@ impl ::prost::Name for TallyParams { /// Params defines the parameters for the x/gov module. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -216,10 +225,10 @@ pub struct Params { /// Maximum period for Atom holders to deposit on a proposal. Initial value: 2 /// months. #[prost(message, optional, tag = "2")] - pub max_deposit_period: ::core::option::Option<::prost_types::Duration>, + pub max_deposit_period: ::core::option::Option<::pbjson_types::Duration>, /// Duration of the voting period. #[prost(message, optional, tag = "3")] - pub voting_period: ::core::option::Option<::prost_types::Duration>, + pub voting_period: ::core::option::Option<::pbjson_types::Duration>, /// Minimum percentage of total stake needed to vote for a result to be /// considered valid. #[prost(string, tag = "4")] @@ -252,7 +261,19 @@ impl ::prost::Name for Params { } } /// VoteOption enumerates the valid vote options for a given governance proposal. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum VoteOption { /// VOTE_OPTION_UNSPECIFIED defines a no-op vote option. @@ -293,7 +314,19 @@ impl VoteOption { } } /// ProposalStatus enumerates the valid statuses of a proposal. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ProposalStatus { /// PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. @@ -343,6 +376,7 @@ impl ProposalStatus { } } /// GenesisState defines the gov module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -387,6 +421,7 @@ impl ::prost::Name for GenesisState { } } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalRequest { @@ -402,6 +437,7 @@ impl ::prost::Name for QueryProposalRequest { } } /// QueryProposalResponse is the response type for the Query/Proposal RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalResponse { @@ -417,6 +453,7 @@ impl ::prost::Name for QueryProposalResponse { } } /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsRequest { @@ -442,6 +479,7 @@ impl ::prost::Name for QueryProposalsRequest { } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsResponse { @@ -460,6 +498,7 @@ impl ::prost::Name for QueryProposalsResponse { } } /// QueryVoteRequest is the request type for the Query/Vote RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteRequest { @@ -478,6 +517,7 @@ impl ::prost::Name for QueryVoteRequest { } } /// QueryVoteResponse is the response type for the Query/Vote RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteResponse { @@ -493,6 +533,7 @@ impl ::prost::Name for QueryVoteResponse { } } /// QueryVotesRequest is the request type for the Query/Votes RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesRequest { @@ -511,6 +552,7 @@ impl ::prost::Name for QueryVotesRequest { } } /// QueryVotesResponse is the response type for the Query/Votes RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesResponse { @@ -529,6 +571,7 @@ impl ::prost::Name for QueryVotesResponse { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { @@ -545,6 +588,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -577,6 +621,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryDepositRequest is the request type for the Query/Deposit RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositRequest { @@ -595,6 +640,7 @@ impl ::prost::Name for QueryDepositRequest { } } /// QueryDepositResponse is the response type for the Query/Deposit RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositResponse { @@ -610,6 +656,7 @@ impl ::prost::Name for QueryDepositResponse { } } /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsRequest { @@ -628,6 +675,7 @@ impl ::prost::Name for QueryDepositsRequest { } } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsResponse { @@ -646,6 +694,7 @@ impl ::prost::Name for QueryDepositsResponse { } } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultRequest { @@ -661,6 +710,7 @@ impl ::prost::Name for QueryTallyResultRequest { } } /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultResponse { @@ -677,12 +727,13 @@ impl ::prost::Name for QueryTallyResultResponse { } /// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary /// proposal Content. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposal { /// messages are the arbitrary messages to be executed if proposal passes. #[prost(message, repeated, tag = "1")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// initial_deposit is the deposit value that must be paid at proposal submission. #[prost(message, repeated, tag = "2")] pub initial_deposit: ::prost::alloc::vec::Vec, @@ -711,6 +762,7 @@ impl ::prost::Name for MsgSubmitProposal { } } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposalResponse { @@ -727,12 +779,13 @@ impl ::prost::Name for MsgSubmitProposalResponse { } /// MsgExecLegacyContent is used to wrap the legacy content field into a message. /// This ensures backwards compatibility with v1beta1.MsgSubmitProposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecLegacyContent { /// content is the proposal's content. #[prost(message, optional, tag = "1")] - pub content: ::core::option::Option<::prost_types::Any>, + pub content: ::core::option::Option<::pbjson_types::Any>, /// authority must be the gov module address. #[prost(string, tag = "2")] pub authority: ::prost::alloc::string::String, @@ -745,6 +798,7 @@ impl ::prost::Name for MsgExecLegacyContent { } } /// MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecLegacyContentResponse {} @@ -756,6 +810,7 @@ impl ::prost::Name for MsgExecLegacyContentResponse { } } /// MsgVote defines a message to cast a vote. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVote { @@ -780,6 +835,7 @@ impl ::prost::Name for MsgVote { } } /// MsgVoteResponse defines the Msg/Vote response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteResponse {} @@ -791,6 +847,7 @@ impl ::prost::Name for MsgVoteResponse { } } /// MsgVoteWeighted defines a message to cast a vote. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeighted { @@ -815,6 +872,7 @@ impl ::prost::Name for MsgVoteWeighted { } } /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeightedResponse {} @@ -826,6 +884,7 @@ impl ::prost::Name for MsgVoteWeightedResponse { } } /// MsgDeposit defines a message to submit a deposit to an existing proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeposit { @@ -847,6 +906,7 @@ impl ::prost::Name for MsgDeposit { } } /// MsgDepositResponse defines the Msg/Deposit response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDepositResponse {} @@ -860,6 +920,7 @@ impl ::prost::Name for MsgDepositResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -883,6 +944,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.gov.v1beta1.rs b/packages/proto/src/gen/cosmos.gov.v1beta1.rs index 1a7395e..1c31d87 100644 --- a/packages/proto/src/gen/cosmos.gov.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.gov.v1beta1.rs @@ -2,6 +2,7 @@ /// WeightedVoteOption defines a unit of vote for vote split. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WeightedVoteOption { @@ -21,6 +22,7 @@ impl ::prost::Name for WeightedVoteOption { } /// TextProposal defines a standard text proposal whose changes need to be /// manually updated in case of approval. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TextProposal { @@ -40,6 +42,7 @@ impl ::prost::Name for TextProposal { } /// Deposit defines an amount deposited by an account address to an active /// proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Deposit { @@ -61,6 +64,7 @@ impl ::prost::Name for Deposit { } } /// Proposal defines the core field members of a governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { @@ -69,7 +73,7 @@ pub struct Proposal { pub proposal_id: u64, /// content is the proposal's content. #[prost(message, optional, tag = "2")] - pub content: ::core::option::Option<::prost_types::Any>, + pub content: ::core::option::Option<::pbjson_types::Any>, /// status defines the proposal status. #[prost(enumeration = "ProposalStatus", tag = "3")] pub status: i32, @@ -80,19 +84,19 @@ pub struct Proposal { pub final_tally_result: ::core::option::Option, /// submit_time is the time of proposal submission. #[prost(message, optional, tag = "5")] - pub submit_time: ::core::option::Option<::prost_types::Timestamp>, + pub submit_time: ::core::option::Option<::pbjson_types::Timestamp>, /// deposit_end_time is the end time for deposition. #[prost(message, optional, tag = "6")] - pub deposit_end_time: ::core::option::Option<::prost_types::Timestamp>, + pub deposit_end_time: ::core::option::Option<::pbjson_types::Timestamp>, /// total_deposit is the total deposit on the proposal. #[prost(message, repeated, tag = "7")] pub total_deposit: ::prost::alloc::vec::Vec, /// voting_start_time is the starting time to vote on a proposal. #[prost(message, optional, tag = "8")] - pub voting_start_time: ::core::option::Option<::prost_types::Timestamp>, + pub voting_start_time: ::core::option::Option<::pbjson_types::Timestamp>, /// voting_end_time is the end time of voting on a proposal. #[prost(message, optional, tag = "9")] - pub voting_end_time: ::core::option::Option<::prost_types::Timestamp>, + pub voting_end_time: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for Proposal { const NAME: &'static str = "Proposal"; @@ -102,6 +106,7 @@ impl ::prost::Name for Proposal { } } /// TallyResult defines a standard tally for a governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyResult { @@ -127,6 +132,7 @@ impl ::prost::Name for TallyResult { } /// Vote defines a vote on a governance proposal. /// A Vote consists of a proposal ID, the voter, and the vote option. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Vote { @@ -156,6 +162,7 @@ impl ::prost::Name for Vote { } } /// DepositParams defines the params for deposits on governance proposals. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DepositParams { @@ -165,7 +172,7 @@ pub struct DepositParams { /// Maximum period for Atom holders to deposit on a proposal. Initial value: 2 /// months. #[prost(message, optional, tag = "2")] - pub max_deposit_period: ::core::option::Option<::prost_types::Duration>, + pub max_deposit_period: ::core::option::Option<::pbjson_types::Duration>, } impl ::prost::Name for DepositParams { const NAME: &'static str = "DepositParams"; @@ -175,12 +182,13 @@ impl ::prost::Name for DepositParams { } } /// VotingParams defines the params for voting on governance proposals. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct VotingParams { /// Duration of the voting period. #[prost(message, optional, tag = "1")] - pub voting_period: ::core::option::Option<::prost_types::Duration>, + pub voting_period: ::core::option::Option<::pbjson_types::Duration>, } impl ::prost::Name for VotingParams { const NAME: &'static str = "VotingParams"; @@ -190,6 +198,7 @@ impl ::prost::Name for VotingParams { } } /// TallyParams defines the params for tallying votes on governance proposals. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyParams { @@ -213,7 +222,19 @@ impl ::prost::Name for TallyParams { } } /// VoteOption enumerates the valid vote options for a given governance proposal. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum VoteOption { /// VOTE_OPTION_UNSPECIFIED defines a no-op vote option. @@ -254,7 +275,19 @@ impl VoteOption { } } /// ProposalStatus enumerates the valid statuses of a proposal. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ProposalStatus { /// PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. @@ -304,6 +337,7 @@ impl ProposalStatus { } } /// GenesisState defines the gov module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -337,6 +371,7 @@ impl ::prost::Name for GenesisState { } } /// QueryProposalRequest is the request type for the Query/Proposal RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalRequest { @@ -352,6 +387,7 @@ impl ::prost::Name for QueryProposalRequest { } } /// QueryProposalResponse is the response type for the Query/Proposal RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalResponse { @@ -366,6 +402,7 @@ impl ::prost::Name for QueryProposalResponse { } } /// QueryProposalsRequest is the request type for the Query/Proposals RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsRequest { @@ -391,6 +428,7 @@ impl ::prost::Name for QueryProposalsRequest { } /// QueryProposalsResponse is the response type for the Query/Proposals RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsResponse { @@ -409,6 +447,7 @@ impl ::prost::Name for QueryProposalsResponse { } } /// QueryVoteRequest is the request type for the Query/Vote RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteRequest { @@ -427,6 +466,7 @@ impl ::prost::Name for QueryVoteRequest { } } /// QueryVoteResponse is the response type for the Query/Vote RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteResponse { @@ -442,6 +482,7 @@ impl ::prost::Name for QueryVoteResponse { } } /// QueryVotesRequest is the request type for the Query/Votes RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesRequest { @@ -460,6 +501,7 @@ impl ::prost::Name for QueryVotesRequest { } } /// QueryVotesResponse is the response type for the Query/Votes RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesResponse { @@ -478,6 +520,7 @@ impl ::prost::Name for QueryVotesResponse { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { @@ -494,6 +537,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -515,6 +559,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryDepositRequest is the request type for the Query/Deposit RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositRequest { @@ -533,6 +578,7 @@ impl ::prost::Name for QueryDepositRequest { } } /// QueryDepositResponse is the response type for the Query/Deposit RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositResponse { @@ -548,6 +594,7 @@ impl ::prost::Name for QueryDepositResponse { } } /// QueryDepositsRequest is the request type for the Query/Deposits RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsRequest { @@ -566,6 +613,7 @@ impl ::prost::Name for QueryDepositsRequest { } } /// QueryDepositsResponse is the response type for the Query/Deposits RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDepositsResponse { @@ -584,6 +632,7 @@ impl ::prost::Name for QueryDepositsResponse { } } /// QueryTallyResultRequest is the request type for the Query/Tally RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultRequest { @@ -599,6 +648,7 @@ impl ::prost::Name for QueryTallyResultRequest { } } /// QueryTallyResultResponse is the response type for the Query/Tally RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultResponse { @@ -615,12 +665,13 @@ impl ::prost::Name for QueryTallyResultResponse { } /// MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary /// proposal Content. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposal { /// content is the proposal's content. #[prost(message, optional, tag = "1")] - pub content: ::core::option::Option<::prost_types::Any>, + pub content: ::core::option::Option<::pbjson_types::Any>, /// initial_deposit is the deposit value that must be paid at proposal submission. #[prost(message, repeated, tag = "2")] pub initial_deposit: ::prost::alloc::vec::Vec, @@ -636,6 +687,7 @@ impl ::prost::Name for MsgSubmitProposal { } } /// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposalResponse { @@ -651,6 +703,7 @@ impl ::prost::Name for MsgSubmitProposalResponse { } } /// MsgVote defines a message to cast a vote. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVote { @@ -672,6 +725,7 @@ impl ::prost::Name for MsgVote { } } /// MsgVoteResponse defines the Msg/Vote response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteResponse {} @@ -685,6 +739,7 @@ impl ::prost::Name for MsgVoteResponse { /// MsgVoteWeighted defines a message to cast a vote. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeighted { @@ -708,6 +763,7 @@ impl ::prost::Name for MsgVoteWeighted { /// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteWeightedResponse {} @@ -719,6 +775,7 @@ impl ::prost::Name for MsgVoteWeightedResponse { } } /// MsgDeposit defines a message to submit a deposit to an existing proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDeposit { @@ -740,6 +797,7 @@ impl ::prost::Name for MsgDeposit { } } /// MsgDepositResponse defines the Msg/Deposit response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDepositResponse {} diff --git a/packages/proto/src/gen/cosmos.group.module.v1.rs b/packages/proto/src/gen/cosmos.group.module.v1.rs index 80ee639..10dd221 100644 --- a/packages/proto/src/gen/cosmos.group.module.v1.rs +++ b/packages/proto/src/gen/cosmos.group.module.v1.rs @@ -1,12 +1,13 @@ // @generated /// Module is the config object of the group module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { /// max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec /// to execute the proposal. #[prost(message, optional, tag = "1")] - pub max_execution_period: ::core::option::Option<::prost_types::Duration>, + pub max_execution_period: ::core::option::Option<::pbjson_types::Duration>, /// max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. /// Defaults to 255 if not explicitly set. #[prost(uint64, tag = "2")] diff --git a/packages/proto/src/gen/cosmos.group.v1.rs b/packages/proto/src/gen/cosmos.group.v1.rs index 71ac56b..c164c3f 100644 --- a/packages/proto/src/gen/cosmos.group.v1.rs +++ b/packages/proto/src/gen/cosmos.group.v1.rs @@ -1,6 +1,7 @@ // @generated /// Member represents a group member with an account address, /// non-zero weight, metadata and added_at timestamp. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Member { @@ -15,7 +16,7 @@ pub struct Member { pub metadata: ::prost::alloc::string::String, /// added_at is a timestamp specifying when a member was added. #[prost(message, optional, tag = "4")] - pub added_at: ::core::option::Option<::prost_types::Timestamp>, + pub added_at: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for Member { const NAME: &'static str = "Member"; @@ -27,6 +28,7 @@ impl ::prost::Name for Member { /// MemberRequest represents a group member to be used in Msg server requests. /// Contrary to `Member`, it doesn't have any `added_at` field /// since this field cannot be set as part of requests. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MemberRequest { @@ -53,6 +55,7 @@ impl ::prost::Name for MemberRequest { /// `threshold`. /// 2. The voting and execution periods of the proposal respect the parameters /// given by `windows`. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ThresholdDecisionPolicy { @@ -77,6 +80,7 @@ impl ::prost::Name for ThresholdDecisionPolicy { /// is greater or equal than the given `percentage`. /// 2. The voting and execution periods of the proposal respect the parameters /// given by `windows`. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PercentageDecisionPolicy { @@ -96,13 +100,14 @@ impl ::prost::Name for PercentageDecisionPolicy { } } /// DecisionPolicyWindows defines the different windows for voting and execution. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DecisionPolicyWindows { /// voting_period is the duration from submission of a proposal to the end of voting period /// Within this times votes can be submitted with MsgVote. #[prost(message, optional, tag = "1")] - pub voting_period: ::core::option::Option<::prost_types::Duration>, + pub voting_period: ::core::option::Option<::pbjson_types::Duration>, /// min_execution_period is the minimum duration after the proposal submission /// where members can start sending MsgExec. This means that the window for /// sending a MsgExec transaction is: @@ -115,7 +120,7 @@ pub struct DecisionPolicyWindows { /// is empty, meaning that all proposals created with this decision policy /// won't be able to be executed. #[prost(message, optional, tag = "2")] - pub min_execution_period: ::core::option::Option<::prost_types::Duration>, + pub min_execution_period: ::core::option::Option<::pbjson_types::Duration>, } impl ::prost::Name for DecisionPolicyWindows { const NAME: &'static str = "DecisionPolicyWindows"; @@ -129,6 +134,7 @@ impl ::prost::Name for DecisionPolicyWindows { // /// GroupInfo represents the high-level on-chain information for a group. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GroupInfo { @@ -152,7 +158,7 @@ pub struct GroupInfo { pub total_weight: ::prost::alloc::string::String, /// created_at is a timestamp specifying when a group was created. #[prost(message, optional, tag = "6")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, + pub created_at: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for GroupInfo { const NAME: &'static str = "GroupInfo"; @@ -162,6 +168,7 @@ impl ::prost::Name for GroupInfo { } } /// GroupMember represents the relationship between a group and a member. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GroupMember { @@ -180,6 +187,7 @@ impl ::prost::Name for GroupMember { } } /// GroupPolicyInfo represents the high-level on-chain information for a group policy. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GroupPolicyInfo { @@ -203,10 +211,10 @@ pub struct GroupPolicyInfo { pub version: u64, /// decision_policy specifies the group policy's decision policy. #[prost(message, optional, tag = "6")] - pub decision_policy: ::core::option::Option<::prost_types::Any>, + pub decision_policy: ::core::option::Option<::pbjson_types::Any>, /// created_at is a timestamp specifying when a group policy was created. #[prost(message, optional, tag = "7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, + pub created_at: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for GroupPolicyInfo { const NAME: &'static str = "GroupPolicyInfo"; @@ -219,6 +227,7 @@ impl ::prost::Name for GroupPolicyInfo { /// for a group policy to decide upon. /// A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal /// passes as well as some optional metadata associated with the proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Proposal { @@ -238,7 +247,7 @@ pub struct Proposal { pub proposers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// submit_time is a timestamp specifying when a proposal was submitted. #[prost(message, optional, tag = "5")] - pub submit_time: ::core::option::Option<::prost_types::Timestamp>, + pub submit_time: ::core::option::Option<::pbjson_types::Timestamp>, /// group_version tracks the version of the group at proposal submission. /// This field is here for informational purposes only. #[prost(uint64, tag = "6")] @@ -264,13 +273,13 @@ pub struct Proposal { /// at this point, and the `final_tally_result`and `status` fields will be /// accordingly updated. #[prost(message, optional, tag = "10")] - pub voting_period_end: ::core::option::Option<::prost_types::Timestamp>, + pub voting_period_end: ::core::option::Option<::pbjson_types::Timestamp>, /// executor_result is the final result of the proposal execution. Initial value is NotRun. #[prost(enumeration = "ProposalExecutorResult", tag = "11")] pub executor_result: i32, /// messages is a list of `sdk.Msg`s that will be executed if the proposal passes. #[prost(message, repeated, tag = "12")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// title is the title of the proposal /// /// Since: cosmos-sdk 0.47 @@ -290,6 +299,7 @@ impl ::prost::Name for Proposal { } } /// TallyResult represents the sum of weighted votes for each vote option. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TallyResult { @@ -314,6 +324,7 @@ impl ::prost::Name for TallyResult { } } /// Vote represents a vote for a proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Vote { @@ -331,7 +342,7 @@ pub struct Vote { pub metadata: ::prost::alloc::string::String, /// submit_time is the timestamp when the vote was submitted. #[prost(message, optional, tag = "5")] - pub submit_time: ::core::option::Option<::prost_types::Timestamp>, + pub submit_time: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for Vote { const NAME: &'static str = "Vote"; @@ -341,7 +352,19 @@ impl ::prost::Name for Vote { } } /// VoteOption enumerates the valid vote options for a given proposal. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum VoteOption { /// VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will @@ -383,7 +406,19 @@ impl VoteOption { } } /// ProposalStatus defines proposal statuses. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ProposalStatus { /// An empty value is invalid and not allowed. @@ -432,7 +467,19 @@ impl ProposalStatus { } } /// ProposalExecutorResult defines types of proposal executor results. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ProposalExecutorResult { /// An empty value is not allowed. @@ -469,6 +516,7 @@ impl ProposalExecutorResult { } } /// EventCreateGroup is an event emitted when a group is created. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventCreateGroup { @@ -484,6 +532,7 @@ impl ::prost::Name for EventCreateGroup { } } /// EventUpdateGroup is an event emitted when a group is updated. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventUpdateGroup { @@ -499,6 +548,7 @@ impl ::prost::Name for EventUpdateGroup { } } /// EventCreateGroupPolicy is an event emitted when a group policy is created. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventCreateGroupPolicy { @@ -514,6 +564,7 @@ impl ::prost::Name for EventCreateGroupPolicy { } } /// EventUpdateGroupPolicy is an event emitted when a group policy is updated. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventUpdateGroupPolicy { @@ -529,6 +580,7 @@ impl ::prost::Name for EventUpdateGroupPolicy { } } /// EventSubmitProposal is an event emitted when a proposal is created. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSubmitProposal { @@ -544,6 +596,7 @@ impl ::prost::Name for EventSubmitProposal { } } /// EventWithdrawProposal is an event emitted when a proposal is withdrawn. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventWithdrawProposal { @@ -559,6 +612,7 @@ impl ::prost::Name for EventWithdrawProposal { } } /// EventVote is an event emitted when a voter votes on a proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventVote { @@ -574,6 +628,7 @@ impl ::prost::Name for EventVote { } } /// EventExec is an event emitted when a proposal is executed. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventExec { @@ -595,6 +650,7 @@ impl ::prost::Name for EventExec { } } /// EventLeaveGroup is an event emitted when group member leaves the group. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventLeaveGroup { @@ -613,6 +669,7 @@ impl ::prost::Name for EventLeaveGroup { } } /// EventProposalPruned is an event emitted when a proposal is pruned. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventProposalPruned { @@ -634,6 +691,7 @@ impl ::prost::Name for EventProposalPruned { } } /// GenesisState defines the group module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -673,6 +731,7 @@ impl ::prost::Name for GenesisState { } } /// QueryGroupInfoRequest is the Query/GroupInfo request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupInfoRequest { @@ -688,6 +747,7 @@ impl ::prost::Name for QueryGroupInfoRequest { } } /// QueryGroupInfoResponse is the Query/GroupInfo response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupInfoResponse { @@ -703,6 +763,7 @@ impl ::prost::Name for QueryGroupInfoResponse { } } /// QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupPolicyInfoRequest { @@ -718,6 +779,7 @@ impl ::prost::Name for QueryGroupPolicyInfoRequest { } } /// QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupPolicyInfoResponse { @@ -733,6 +795,7 @@ impl ::prost::Name for QueryGroupPolicyInfoResponse { } } /// QueryGroupMembersRequest is the Query/GroupMembers request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupMembersRequest { @@ -751,6 +814,7 @@ impl ::prost::Name for QueryGroupMembersRequest { } } /// QueryGroupMembersResponse is the Query/GroupMembersResponse response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupMembersResponse { @@ -769,6 +833,7 @@ impl ::prost::Name for QueryGroupMembersResponse { } } /// QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupsByAdminRequest { @@ -787,6 +852,7 @@ impl ::prost::Name for QueryGroupsByAdminRequest { } } /// QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupsByAdminResponse { @@ -805,6 +871,7 @@ impl ::prost::Name for QueryGroupsByAdminResponse { } } /// QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupPoliciesByGroupRequest { @@ -823,6 +890,7 @@ impl ::prost::Name for QueryGroupPoliciesByGroupRequest { } } /// QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupPoliciesByGroupResponse { @@ -841,6 +909,7 @@ impl ::prost::Name for QueryGroupPoliciesByGroupResponse { } } /// QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupPoliciesByAdminRequest { @@ -859,6 +928,7 @@ impl ::prost::Name for QueryGroupPoliciesByAdminRequest { } } /// QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupPoliciesByAdminResponse { @@ -877,6 +947,7 @@ impl ::prost::Name for QueryGroupPoliciesByAdminResponse { } } /// QueryProposalRequest is the Query/Proposal request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalRequest { @@ -892,6 +963,7 @@ impl ::prost::Name for QueryProposalRequest { } } /// QueryProposalResponse is the Query/Proposal response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalResponse { @@ -907,6 +979,7 @@ impl ::prost::Name for QueryProposalResponse { } } /// QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsByGroupPolicyRequest { @@ -925,6 +998,7 @@ impl ::prost::Name for QueryProposalsByGroupPolicyRequest { } } /// QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryProposalsByGroupPolicyResponse { @@ -943,6 +1017,7 @@ impl ::prost::Name for QueryProposalsByGroupPolicyResponse { } } /// QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteByProposalVoterRequest { @@ -961,6 +1036,7 @@ impl ::prost::Name for QueryVoteByProposalVoterRequest { } } /// QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVoteByProposalVoterResponse { @@ -976,6 +1052,7 @@ impl ::prost::Name for QueryVoteByProposalVoterResponse { } } /// QueryVotesByProposalRequest is the Query/VotesByProposal request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesByProposalRequest { @@ -994,6 +1071,7 @@ impl ::prost::Name for QueryVotesByProposalRequest { } } /// QueryVotesByProposalResponse is the Query/VotesByProposal response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesByProposalResponse { @@ -1012,6 +1090,7 @@ impl ::prost::Name for QueryVotesByProposalResponse { } } /// QueryVotesByVoterRequest is the Query/VotesByVoter request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesByVoterRequest { @@ -1030,6 +1109,7 @@ impl ::prost::Name for QueryVotesByVoterRequest { } } /// QueryVotesByVoterResponse is the Query/VotesByVoter response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryVotesByVoterResponse { @@ -1048,6 +1128,7 @@ impl ::prost::Name for QueryVotesByVoterResponse { } } /// QueryGroupsByMemberRequest is the Query/GroupsByMember request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupsByMemberRequest { @@ -1066,6 +1147,7 @@ impl ::prost::Name for QueryGroupsByMemberRequest { } } /// QueryGroupsByMemberResponse is the Query/GroupsByMember response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupsByMemberResponse { @@ -1084,6 +1166,7 @@ impl ::prost::Name for QueryGroupsByMemberResponse { } } /// QueryTallyResultRequest is the Query/TallyResult request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultRequest { @@ -1099,6 +1182,7 @@ impl ::prost::Name for QueryTallyResultRequest { } } /// QueryTallyResultResponse is the Query/TallyResult response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTallyResultResponse { @@ -1116,6 +1200,7 @@ impl ::prost::Name for QueryTallyResultResponse { /// QueryGroupsRequest is the Query/Groups request type. /// /// Since: cosmos-sdk 0.47.1 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupsRequest { @@ -1133,6 +1218,7 @@ impl ::prost::Name for QueryGroupsRequest { /// QueryGroupsResponse is the Query/Groups response type. /// /// Since: cosmos-sdk 0.47.1 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryGroupsResponse { @@ -1155,6 +1241,7 @@ impl ::prost::Name for QueryGroupsResponse { // /// MsgCreateGroup is the Msg/CreateGroup request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateGroup { @@ -1176,6 +1263,7 @@ impl ::prost::Name for MsgCreateGroup { } } /// MsgCreateGroupResponse is the Msg/CreateGroup response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateGroupResponse { @@ -1191,6 +1279,7 @@ impl ::prost::Name for MsgCreateGroupResponse { } } /// MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupMembers { @@ -1213,6 +1302,7 @@ impl ::prost::Name for MsgUpdateGroupMembers { } } /// MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupMembersResponse {} @@ -1224,6 +1314,7 @@ impl ::prost::Name for MsgUpdateGroupMembersResponse { } } /// MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupAdmin { @@ -1245,6 +1336,7 @@ impl ::prost::Name for MsgUpdateGroupAdmin { } } /// MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupAdminResponse {} @@ -1256,6 +1348,7 @@ impl ::prost::Name for MsgUpdateGroupAdminResponse { } } /// MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupMetadata { @@ -1277,6 +1370,7 @@ impl ::prost::Name for MsgUpdateGroupMetadata { } } /// MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupMetadataResponse {} @@ -1292,6 +1386,7 @@ impl ::prost::Name for MsgUpdateGroupMetadataResponse { // /// MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateGroupPolicy { @@ -1306,7 +1401,7 @@ pub struct MsgCreateGroupPolicy { pub metadata: ::prost::alloc::string::String, /// decision_policy specifies the group policy's decision policy. #[prost(message, optional, tag = "4")] - pub decision_policy: ::core::option::Option<::prost_types::Any>, + pub decision_policy: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for MsgCreateGroupPolicy { const NAME: &'static str = "MsgCreateGroupPolicy"; @@ -1316,6 +1411,7 @@ impl ::prost::Name for MsgCreateGroupPolicy { } } /// MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateGroupPolicyResponse { @@ -1331,6 +1427,7 @@ impl ::prost::Name for MsgCreateGroupPolicyResponse { } } /// MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupPolicyAdmin { @@ -1352,6 +1449,7 @@ impl ::prost::Name for MsgUpdateGroupPolicyAdmin { } } /// MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupPolicyAdminResponse {} @@ -1363,6 +1461,7 @@ impl ::prost::Name for MsgUpdateGroupPolicyAdminResponse { } } /// MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateGroupWithPolicy { @@ -1384,7 +1483,7 @@ pub struct MsgCreateGroupWithPolicy { pub group_policy_as_admin: bool, /// decision_policy specifies the group policy's decision policy. #[prost(message, optional, tag = "6")] - pub decision_policy: ::core::option::Option<::prost_types::Any>, + pub decision_policy: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for MsgCreateGroupWithPolicy { const NAME: &'static str = "MsgCreateGroupWithPolicy"; @@ -1394,6 +1493,7 @@ impl ::prost::Name for MsgCreateGroupWithPolicy { } } /// MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateGroupWithPolicyResponse { @@ -1412,6 +1512,7 @@ impl ::prost::Name for MsgCreateGroupWithPolicyResponse { } } /// MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupPolicyDecisionPolicy { @@ -1423,7 +1524,7 @@ pub struct MsgUpdateGroupPolicyDecisionPolicy { pub group_policy_address: ::prost::alloc::string::String, /// decision_policy is the updated group policy's decision policy. #[prost(message, optional, tag = "3")] - pub decision_policy: ::core::option::Option<::prost_types::Any>, + pub decision_policy: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for MsgUpdateGroupPolicyDecisionPolicy { const NAME: &'static str = "MsgUpdateGroupPolicyDecisionPolicy"; @@ -1433,6 +1534,7 @@ impl ::prost::Name for MsgUpdateGroupPolicyDecisionPolicy { } } /// MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupPolicyDecisionPolicyResponse {} @@ -1444,6 +1546,7 @@ impl ::prost::Name for MsgUpdateGroupPolicyDecisionPolicyResponse { } } /// MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupPolicyMetadata { @@ -1465,6 +1568,7 @@ impl ::prost::Name for MsgUpdateGroupPolicyMetadata { } } /// MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateGroupPolicyMetadataResponse {} @@ -1476,6 +1580,7 @@ impl ::prost::Name for MsgUpdateGroupPolicyMetadataResponse { } } /// MsgSubmitProposal is the Msg/SubmitProposal request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposal { @@ -1491,7 +1596,7 @@ pub struct MsgSubmitProposal { pub metadata: ::prost::alloc::string::String, /// messages is a list of `sdk.Msg`s that will be executed if the proposal passes. #[prost(message, repeated, tag = "4")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// exec defines the mode of execution of the proposal, /// whether it should be executed immediately on creation or not. /// If so, proposers signatures are considered as Yes votes. @@ -1516,6 +1621,7 @@ impl ::prost::Name for MsgSubmitProposal { } } /// MsgSubmitProposalResponse is the Msg/SubmitProposal response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitProposalResponse { @@ -1531,6 +1637,7 @@ impl ::prost::Name for MsgSubmitProposalResponse { } } /// MsgWithdrawProposal is the Msg/WithdrawProposal request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawProposal { @@ -1549,6 +1656,7 @@ impl ::prost::Name for MsgWithdrawProposal { } } /// MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgWithdrawProposalResponse {} @@ -1560,6 +1668,7 @@ impl ::prost::Name for MsgWithdrawProposalResponse { } } /// MsgVote is the Msg/Vote request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVote { @@ -1588,6 +1697,7 @@ impl ::prost::Name for MsgVote { } } /// MsgVoteResponse is the Msg/Vote response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgVoteResponse {} @@ -1599,6 +1709,7 @@ impl ::prost::Name for MsgVoteResponse { } } /// MsgExec is the Msg/Exec request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExec { @@ -1617,6 +1728,7 @@ impl ::prost::Name for MsgExec { } } /// MsgExecResponse is the Msg/Exec request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecResponse { @@ -1632,6 +1744,7 @@ impl ::prost::Name for MsgExecResponse { } } /// MsgLeaveGroup is the Msg/LeaveGroup request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgLeaveGroup { @@ -1650,6 +1763,7 @@ impl ::prost::Name for MsgLeaveGroup { } } /// MsgLeaveGroupResponse is the Msg/LeaveGroup response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgLeaveGroupResponse {} @@ -1665,7 +1779,19 @@ impl ::prost::Name for MsgLeaveGroupResponse { // /// Exec defines modes of execution of a proposal on creation or on new vote. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum Exec { /// An empty value means that there should be a separate diff --git a/packages/proto/src/gen/cosmos.ics23.v1.rs b/packages/proto/src/gen/cosmos.ics23.v1.rs index 68bb500..4cf59b2 100644 --- a/packages/proto/src/gen/cosmos.ics23.v1.rs +++ b/packages/proto/src/gen/cosmos.ics23.v1.rs @@ -19,6 +19,7 @@ /// With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field /// in the ProofSpec is valuable to prevent this mutability. And why all trees should /// length-prefix the data before hashing it. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExistenceProof { @@ -42,6 +43,7 @@ impl ::prost::Name for ExistenceProof { /// NonExistenceProof takes a proof of two neighbors, one left of the desired key, /// one right of the desired key. If both proofs are valid AND they are neighbors, /// then there is no valid proof for the given key. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NonExistenceProof { @@ -62,6 +64,7 @@ impl ::prost::Name for NonExistenceProof { } /// /// CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommitmentProof { @@ -70,6 +73,7 @@ pub struct CommitmentProof { } /// Nested message and enum types in `CommitmentProof`. pub mod commitment_proof { + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Proof { @@ -105,6 +109,7 @@ impl ::prost::Name for CommitmentProof { /// /// Then combine the bytes, and hash it /// output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LeafOp { @@ -144,6 +149,7 @@ impl ::prost::Name for LeafOp { /// Any special data, like prepending child with the length, or prepending the entire operation with /// some value to differentiate from leaf nodes, should be included in prefix and suffix. /// If either of prefix or suffix is empty, we just treat it as an empty string +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InnerOp { @@ -172,6 +178,7 @@ impl ::prost::Name for InnerOp { /// generate a given hash (by interpretting the preimage differently). /// We need this for proper security, requires client knows a priori what /// tree format server uses. But not in code, rather a configuration object. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProofSpec { @@ -204,6 +211,7 @@ impl ::prost::Name for ProofSpec { /// isLeftMost(spec: InnerSpec, op: InnerOp) /// isRightMost(spec: InnerSpec, op: InnerOp) /// isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InnerSpec { @@ -234,6 +242,7 @@ impl ::prost::Name for InnerSpec { } /// /// BatchProof is a group of multiple proof types than can be compressed +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BatchProof { @@ -248,6 +257,7 @@ impl ::prost::Name for BatchProof { } } /// Use BatchEntry not CommitmentProof, to avoid recursion +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BatchEntry { @@ -256,6 +266,7 @@ pub struct BatchEntry { } /// Nested message and enum types in `BatchEntry`. pub mod batch_entry { + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Proof { @@ -274,6 +285,7 @@ impl ::prost::Name for BatchEntry { } // ***** all items here are compressed forms ****** +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedBatchProof { @@ -290,6 +302,7 @@ impl ::prost::Name for CompressedBatchProof { } } /// Use BatchEntry not CommitmentProof, to avoid recursion +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedBatchEntry { @@ -298,6 +311,7 @@ pub struct CompressedBatchEntry { } /// Nested message and enum types in `CompressedBatchEntry`. pub mod compressed_batch_entry { + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Proof { @@ -314,6 +328,7 @@ impl ::prost::Name for CompressedBatchEntry { ::prost::alloc::format!("cosmos.ics23.v1.{}", Self::NAME) } } +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedExistenceProof { @@ -334,6 +349,7 @@ impl ::prost::Name for CompressedExistenceProof { ::prost::alloc::format!("cosmos.ics23.v1.{}", Self::NAME) } } +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CompressedNonExistenceProof { @@ -352,7 +368,19 @@ impl ::prost::Name for CompressedNonExistenceProof { ::prost::alloc::format!("cosmos.ics23.v1.{}", Self::NAME) } } -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum HashOp { /// NO_HASH is the default if no data passed. Note this is an illegal argument some places. @@ -400,7 +428,19 @@ impl HashOp { /// to include length information. After encoding the length with the given /// algorithm, the length will be prepended to the key and value bytes. /// (Each one with it's own encoded length) -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum LengthOp { /// NO_PREFIX don't include any length info diff --git a/packages/proto/src/gen/cosmos.mint.module.v1.rs b/packages/proto/src/gen/cosmos.mint.module.v1.rs index 939142f..836b35a 100644 --- a/packages/proto/src/gen/cosmos.mint.module.v1.rs +++ b/packages/proto/src/gen/cosmos.mint.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the mint module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.mint.v1beta1.rs b/packages/proto/src/gen/cosmos.mint.v1beta1.rs index 08a2708..c0d55bb 100644 --- a/packages/proto/src/gen/cosmos.mint.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.mint.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// Minter represents the minting state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Minter { @@ -18,6 +19,7 @@ impl ::prost::Name for Minter { } } /// Params defines the parameters for the x/mint module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -48,6 +50,7 @@ impl ::prost::Name for Params { } } /// GenesisState defines the mint module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -66,6 +69,7 @@ impl ::prost::Name for GenesisState { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -77,6 +81,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -92,6 +97,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// QueryInflationRequest is the request type for the Query/Inflation RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInflationRequest {} @@ -104,6 +110,7 @@ impl ::prost::Name for QueryInflationRequest { } /// QueryInflationResponse is the response type for the Query/Inflation RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInflationResponse { @@ -120,6 +127,7 @@ impl ::prost::Name for QueryInflationResponse { } /// QueryAnnualProvisionsRequest is the request type for the /// Query/AnnualProvisions RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAnnualProvisionsRequest {} @@ -132,6 +140,7 @@ impl ::prost::Name for QueryAnnualProvisionsRequest { } /// QueryAnnualProvisionsResponse is the response type for the /// Query/AnnualProvisions RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAnnualProvisionsResponse { @@ -149,6 +158,7 @@ impl ::prost::Name for QueryAnnualProvisionsResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -172,6 +182,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.nft.module.v1.rs b/packages/proto/src/gen/cosmos.nft.module.v1.rs index b7d38ff..f4f6e74 100644 --- a/packages/proto/src/gen/cosmos.nft.module.v1.rs +++ b/packages/proto/src/gen/cosmos.nft.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the nft module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.nft.v1beta1.rs b/packages/proto/src/gen/cosmos.nft.v1beta1.rs index c06528a..7c9fb2c 100644 --- a/packages/proto/src/gen/cosmos.nft.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.nft.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// EventSend is emitted on Msg/Send +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventSend { @@ -24,6 +25,7 @@ impl ::prost::Name for EventSend { } } /// EventMint is emitted on Mint +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventMint { @@ -45,6 +47,7 @@ impl ::prost::Name for EventMint { } } /// EventBurn is emitted on Burn +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventBurn { @@ -66,6 +69,7 @@ impl ::prost::Name for EventBurn { } } /// Class defines the class of the nft type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Class { @@ -89,7 +93,7 @@ pub struct Class { pub uri_hash: ::prost::alloc::string::String, /// data is the app specific metadata of the NFT class. Optional #[prost(message, optional, tag = "7")] - pub data: ::core::option::Option<::prost_types::Any>, + pub data: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for Class { const NAME: &'static str = "Class"; @@ -99,6 +103,7 @@ impl ::prost::Name for Class { } } /// NFT defines the NFT. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Nft { @@ -116,7 +121,7 @@ pub struct Nft { pub uri_hash: ::prost::alloc::string::String, /// data is an app specific data of the NFT. Optional #[prost(message, optional, tag = "10")] - pub data: ::core::option::Option<::prost_types::Any>, + pub data: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for Nft { const NAME: &'static str = "NFT"; @@ -126,6 +131,7 @@ impl ::prost::Name for Nft { } } /// GenesisState defines the nft module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -144,6 +150,7 @@ impl ::prost::Name for GenesisState { } } /// Entry Defines all nft owned by a person +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Entry { @@ -162,6 +169,7 @@ impl ::prost::Name for Entry { } } /// QueryBalanceRequest is the request type for the Query/Balance RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceRequest { @@ -180,6 +188,7 @@ impl ::prost::Name for QueryBalanceRequest { } } /// QueryBalanceResponse is the response type for the Query/Balance RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryBalanceResponse { @@ -195,6 +204,7 @@ impl ::prost::Name for QueryBalanceResponse { } } /// QueryOwnerRequest is the request type for the Query/Owner RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryOwnerRequest { @@ -213,6 +223,7 @@ impl ::prost::Name for QueryOwnerRequest { } } /// QueryOwnerResponse is the response type for the Query/Owner RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryOwnerResponse { @@ -228,6 +239,7 @@ impl ::prost::Name for QueryOwnerResponse { } } /// QuerySupplyRequest is the request type for the Query/Supply RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyRequest { @@ -243,6 +255,7 @@ impl ::prost::Name for QuerySupplyRequest { } } /// QuerySupplyResponse is the response type for the Query/Supply RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySupplyResponse { @@ -258,6 +271,7 @@ impl ::prost::Name for QuerySupplyResponse { } } /// QueryNFTstRequest is the request type for the Query/NFTs RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNfTsRequest { @@ -279,6 +293,7 @@ impl ::prost::Name for QueryNfTsRequest { } } /// QueryNFTsResponse is the response type for the Query/NFTs RPC methods +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNfTsResponse { @@ -297,6 +312,7 @@ impl ::prost::Name for QueryNfTsResponse { } } /// QueryNFTRequest is the request type for the Query/NFT RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNftRequest { @@ -315,6 +331,7 @@ impl ::prost::Name for QueryNftRequest { } } /// QueryNFTResponse is the response type for the Query/NFT RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNftResponse { @@ -330,6 +347,7 @@ impl ::prost::Name for QueryNftResponse { } } /// QueryClassRequest is the request type for the Query/Class RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClassRequest { @@ -345,6 +363,7 @@ impl ::prost::Name for QueryClassRequest { } } /// QueryClassResponse is the response type for the Query/Class RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClassResponse { @@ -360,6 +379,7 @@ impl ::prost::Name for QueryClassResponse { } } /// QueryClassesRequest is the request type for the Query/Classes RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClassesRequest { @@ -375,6 +395,7 @@ impl ::prost::Name for QueryClassesRequest { } } /// QueryClassesResponse is the response type for the Query/Classes RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClassesResponse { @@ -393,6 +414,7 @@ impl ::prost::Name for QueryClassesResponse { } } /// MsgSend represents a message to send a nft from one account to another account. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSend { @@ -417,6 +439,7 @@ impl ::prost::Name for MsgSend { } } /// MsgSendResponse defines the Msg/Send response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendResponse {} diff --git a/packages/proto/src/gen/cosmos.orm.module.v1alpha1.rs b/packages/proto/src/gen/cosmos.orm.module.v1alpha1.rs index 5680c1b..a87ab4b 100644 --- a/packages/proto/src/gen/cosmos.orm.module.v1alpha1.rs +++ b/packages/proto/src/gen/cosmos.orm.module.v1alpha1.rs @@ -2,6 +2,7 @@ /// Module defines the ORM module which adds providers to the app container for /// module-scoped DB's. In the future it may provide gRPC services for interacting /// with ORM data. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.orm.query.v1alpha1.rs b/packages/proto/src/gen/cosmos.orm.query.v1alpha1.rs index 53b25bb..ad94498 100644 --- a/packages/proto/src/gen/cosmos.orm.query.v1alpha1.rs +++ b/packages/proto/src/gen/cosmos.orm.query.v1alpha1.rs @@ -1,5 +1,6 @@ // @generated /// GetRequest is the Query/Get request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetRequest { @@ -25,13 +26,14 @@ impl ::prost::Name for GetRequest { } } /// GetResponse is the Query/Get response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetResponse { /// result is the result of the get query. If no value is found, the gRPC /// status code NOT_FOUND will be returned. #[prost(message, optional, tag = "1")] - pub result: ::core::option::Option<::prost_types::Any>, + pub result: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for GetResponse { const NAME: &'static str = "GetResponse"; @@ -41,6 +43,7 @@ impl ::prost::Name for GetResponse { } } /// ListRequest is the Query/List request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListRequest { @@ -63,6 +66,7 @@ pub struct ListRequest { /// Nested message and enum types in `ListRequest`. pub mod list_request { /// Prefix specifies the arguments to a prefix query. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Prefix { @@ -80,6 +84,7 @@ pub mod list_request { } } /// Range specifies the arguments to a range query. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Range { @@ -104,6 +109,7 @@ pub mod list_request { /// query is the query expression corresponding to the provided index. If /// neither prefix nor range is specified, the query will list all the fields /// in the index. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Query { @@ -123,12 +129,13 @@ impl ::prost::Name for ListRequest { } } /// ListResponse is the Query/List response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListResponse { /// results are the results of the query. #[prost(message, repeated, tag = "1")] - pub results: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub results: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// pagination is the pagination response. #[prost(message, optional, tag = "5")] pub pagination: ::core::option::Option, @@ -141,6 +148,7 @@ impl ::prost::Name for ListResponse { } } /// IndexValue represents the value of a field in an ORM index expression. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IndexValue { @@ -151,6 +159,7 @@ pub struct IndexValue { /// Nested message and enum types in `IndexValue`. pub mod index_value { /// value specifies the index value + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Value { @@ -176,10 +185,10 @@ pub mod index_value { Bool(bool), /// timestamp specifies a value for a timestamp index field. #[prost(message, tag = "7")] - Timestamp(::prost_types::Timestamp), + Timestamp(::pbjson_types::Timestamp), /// duration specifies a value for a duration index field. #[prost(message, tag = "8")] - Duration(::prost_types::Duration), + Duration(::pbjson_types::Duration), } } impl ::prost::Name for IndexValue { diff --git a/packages/proto/src/gen/cosmos.orm.v1.rs b/packages/proto/src/gen/cosmos.orm.v1.rs index de02cb0..0911622 100644 --- a/packages/proto/src/gen/cosmos.orm.v1.rs +++ b/packages/proto/src/gen/cosmos.orm.v1.rs @@ -1,5 +1,6 @@ // @generated /// TableDescriptor describes an ORM table. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TableDescriptor { @@ -23,6 +24,7 @@ impl ::prost::Name for TableDescriptor { } } /// PrimaryKeyDescriptor describes a table primary key. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PrimaryKeyDescriptor { @@ -72,6 +74,7 @@ impl ::prost::Name for PrimaryKeyDescriptor { } } /// PrimaryKeyDescriptor describes a table secondary index. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SecondaryIndexDescriptor { @@ -103,6 +106,7 @@ impl ::prost::Name for SecondaryIndexDescriptor { } } /// TableDescriptor describes an ORM singleton table which has at most one instance. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SingletonDescriptor { diff --git a/packages/proto/src/gen/cosmos.orm.v1alpha1.rs b/packages/proto/src/gen/cosmos.orm.v1alpha1.rs index 21d0f17..b7c911f 100644 --- a/packages/proto/src/gen/cosmos.orm.v1alpha1.rs +++ b/packages/proto/src/gen/cosmos.orm.v1alpha1.rs @@ -1,5 +1,6 @@ // @generated /// ModuleSchemaDescriptor describe's a module's ORM schema. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleSchemaDescriptor { @@ -13,6 +14,7 @@ pub struct ModuleSchemaDescriptor { /// Nested message and enum types in `ModuleSchemaDescriptor`. pub mod module_schema_descriptor { /// FileEntry describes an ORM file used in a module. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FileEntry { @@ -47,7 +49,19 @@ impl ::prost::Name for ModuleSchemaDescriptor { } } /// StorageType -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum StorageType { /// STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent diff --git a/packages/proto/src/gen/cosmos.params.module.v1.rs b/packages/proto/src/gen/cosmos.params.module.v1.rs index bd8e4b4..6a71abf 100644 --- a/packages/proto/src/gen/cosmos.params.module.v1.rs +++ b/packages/proto/src/gen/cosmos.params.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the params module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.params.v1beta1.rs b/packages/proto/src/gen/cosmos.params.v1beta1.rs index e02937e..9601ed2 100644 --- a/packages/proto/src/gen/cosmos.params.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.params.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// ParameterChangeProposal defines a proposal to change one or more parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParameterChangeProposal { @@ -19,6 +20,7 @@ impl ::prost::Name for ParameterChangeProposal { } /// ParamChange defines an individual parameter change, for use in /// ParameterChangeProposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParamChange { @@ -37,6 +39,7 @@ impl ::prost::Name for ParamChange { } } /// QueryParamsRequest is request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest { @@ -55,6 +58,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -73,6 +77,7 @@ impl ::prost::Name for QueryParamsResponse { /// subspaces and all keys for a subspace. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubspacesRequest {} @@ -87,6 +92,7 @@ impl ::prost::Name for QuerySubspacesRequest { /// registered subspaces and all keys for a subspace. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySubspacesResponse { @@ -104,6 +110,7 @@ impl ::prost::Name for QuerySubspacesResponse { /// the subspace. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Subspace { diff --git a/packages/proto/src/gen/cosmos.reflection.v1.rs b/packages/proto/src/gen/cosmos.reflection.v1.rs index 363f4f7..1e4c474 100644 --- a/packages/proto/src/gen/cosmos.reflection.v1.rs +++ b/packages/proto/src/gen/cosmos.reflection.v1.rs @@ -1,5 +1,6 @@ // @generated /// FileDescriptorsRequest is the Query/FileDescriptors request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FileDescriptorsRequest {} @@ -11,12 +12,13 @@ impl ::prost::Name for FileDescriptorsRequest { } } /// FileDescriptorsResponse is the Query/FileDescriptors response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FileDescriptorsResponse { /// files is the file descriptors. #[prost(message, repeated, tag = "1")] - pub files: ::prost::alloc::vec::Vec<::prost_types::FileDescriptorProto>, + pub files: ::prost::alloc::vec::Vec<::pbjson_types::FileDescriptorProto>, } impl ::prost::Name for FileDescriptorsResponse { const NAME: &'static str = "FileDescriptorsResponse"; diff --git a/packages/proto/src/gen/cosmos.slashing.module.v1.rs b/packages/proto/src/gen/cosmos.slashing.module.v1.rs index 79d3dc6..a048ebf 100644 --- a/packages/proto/src/gen/cosmos.slashing.module.v1.rs +++ b/packages/proto/src/gen/cosmos.slashing.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the slashing module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.slashing.v1beta1.rs b/packages/proto/src/gen/cosmos.slashing.v1beta1.rs index 89d1602..896760b 100644 --- a/packages/proto/src/gen/cosmos.slashing.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.slashing.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// ValidatorSigningInfo defines a validator's signing info for monitoring their /// liveness activity. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorSigningInfo { @@ -16,7 +17,7 @@ pub struct ValidatorSigningInfo { pub index_offset: i64, /// Timestamp until which the validator is jailed due to liveness downtime. #[prost(message, optional, tag = "4")] - pub jailed_until: ::core::option::Option<::prost_types::Timestamp>, + pub jailed_until: ::core::option::Option<::pbjson_types::Timestamp>, /// Whether or not a validator has been tombstoned (killed out of validator set). It is set /// once the validator commits an equivocation or for any other configured misbehiavor. #[prost(bool, tag = "5")] @@ -34,6 +35,7 @@ impl ::prost::Name for ValidatorSigningInfo { } } /// Params represents the parameters used for by the slashing module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -42,7 +44,7 @@ pub struct Params { #[prost(bytes = "vec", tag = "2")] pub min_signed_per_window: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "3")] - pub downtime_jail_duration: ::core::option::Option<::prost_types::Duration>, + pub downtime_jail_duration: ::core::option::Option<::pbjson_types::Duration>, #[prost(bytes = "vec", tag = "4")] pub slash_fraction_double_sign: ::prost::alloc::vec::Vec, #[prost(bytes = "vec", tag = "5")] @@ -56,6 +58,7 @@ impl ::prost::Name for Params { } } /// GenesisState defines the slashing module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -79,6 +82,7 @@ impl ::prost::Name for GenesisState { } } /// SigningInfo stores validator signing info of corresponding address. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigningInfo { @@ -98,6 +102,7 @@ impl ::prost::Name for SigningInfo { } /// ValidatorMissedBlocks contains array of missed blocks of corresponding /// address. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorMissedBlocks { @@ -116,6 +121,7 @@ impl ::prost::Name for ValidatorMissedBlocks { } } /// MissedBlock contains height and missed status as boolean. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MissedBlock { @@ -134,6 +140,7 @@ impl ::prost::Name for MissedBlock { } } /// QueryParamsRequest is the request type for the Query/Params RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -145,6 +152,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -160,6 +168,7 @@ impl ::prost::Name for QueryParamsResponse { } /// QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfoRequest { @@ -176,6 +185,7 @@ impl ::prost::Name for QuerySigningInfoRequest { } /// QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfoResponse { @@ -192,6 +202,7 @@ impl ::prost::Name for QuerySigningInfoResponse { } /// QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfosRequest { @@ -207,6 +218,7 @@ impl ::prost::Name for QuerySigningInfosRequest { } /// QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySigningInfosResponse { @@ -224,6 +236,7 @@ impl ::prost::Name for QuerySigningInfosResponse { } } /// MsgUnjail defines the Msg/Unjail request type +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnjail { @@ -238,6 +251,7 @@ impl ::prost::Name for MsgUnjail { } } /// MsgUnjailResponse defines the Msg/Unjail response type +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnjailResponse {} @@ -251,6 +265,7 @@ impl ::prost::Name for MsgUnjailResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -274,6 +289,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.staking.module.v1.rs b/packages/proto/src/gen/cosmos.staking.module.v1.rs index 71fd3cf..4463c9a 100644 --- a/packages/proto/src/gen/cosmos.staking.module.v1.rs +++ b/packages/proto/src/gen/cosmos.staking.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the staking module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.staking.v1beta1.rs b/packages/proto/src/gen/cosmos.staking.v1beta1.rs index b32548b..1eef13c 100644 --- a/packages/proto/src/gen/cosmos.staking.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.staking.v1beta1.rs @@ -2,6 +2,7 @@ /// StakeAuthorization defines authorization for delegate/undelegate/redelegate. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StakeAuthorization { @@ -19,6 +20,7 @@ pub struct StakeAuthorization { /// Nested message and enum types in `StakeAuthorization`. pub mod stake_authorization { /// Validators defines list of validator addresses. + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validators { @@ -33,6 +35,7 @@ pub mod stake_authorization { } } /// validators is the oneof that represents either allow_list or deny_list + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Policy { @@ -55,7 +58,19 @@ impl ::prost::Name for StakeAuthorization { /// AuthorizationType defines the type of staking module authorization type /// /// Since: cosmos-sdk 0.43 -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum AuthorizationType { /// AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type @@ -95,6 +110,7 @@ impl AuthorizationType { /// It is stored as part of staking module's state, which persists the `n` most /// recent HistoricalInfo /// (`n` is set by the staking module's `historical_entries` parameter). +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HistoricalInfo { @@ -112,6 +128,7 @@ impl ::prost::Name for HistoricalInfo { } /// CommissionRates defines the initial commission rates to be used for creating /// a validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommissionRates { @@ -133,6 +150,7 @@ impl ::prost::Name for CommissionRates { } } /// Commission defines commission parameters for a given validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Commission { @@ -141,7 +159,7 @@ pub struct Commission { pub commission_rates: ::core::option::Option, /// update_time is the last time the commission rate was changed. #[prost(message, optional, tag = "2")] - pub update_time: ::core::option::Option<::prost_types::Timestamp>, + pub update_time: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for Commission { const NAME: &'static str = "Commission"; @@ -151,6 +169,7 @@ impl ::prost::Name for Commission { } } /// Description defines a validator description. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Description { @@ -185,6 +204,7 @@ impl ::prost::Name for Description { /// bond shares is based on the amount of coins delegated divided by the current /// exchange rate. Voting power can be calculated as total bonded shares /// multiplied by exchange rate. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Validator { @@ -193,7 +213,7 @@ pub struct Validator { pub operator_address: ::prost::alloc::string::String, /// consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. #[prost(message, optional, tag = "2")] - pub consensus_pubkey: ::core::option::Option<::prost_types::Any>, + pub consensus_pubkey: ::core::option::Option<::pbjson_types::Any>, /// jailed defined whether the validator has been jailed from bonded status or not. #[prost(bool, tag = "3")] pub jailed: bool, @@ -214,7 +234,7 @@ pub struct Validator { pub unbonding_height: i64, /// unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. #[prost(message, optional, tag = "9")] - pub unbonding_time: ::core::option::Option<::prost_types::Timestamp>, + pub unbonding_time: ::core::option::Option<::pbjson_types::Timestamp>, /// commission defines the commission parameters. #[prost(message, optional, tag = "10")] pub commission: ::core::option::Option, @@ -238,6 +258,7 @@ impl ::prost::Name for Validator { } } /// ValAddresses defines a repeated set of validator addresses. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValAddresses { @@ -254,6 +275,7 @@ impl ::prost::Name for ValAddresses { /// DVPair is struct that just has a delegator-validator pair with no other data. /// It is intended to be used as a marshalable pointer. For example, a DVPair can /// be used to construct the key to getting an UnbondingDelegation from state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DvPair { @@ -270,6 +292,7 @@ impl ::prost::Name for DvPair { } } /// DVPairs defines an array of DVPair objects. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DvPairs { @@ -287,6 +310,7 @@ impl ::prost::Name for DvPairs { /// with no other data. It is intended to be used as a marshalable pointer. For /// example, a DVVTriplet can be used to construct the key to getting a /// Redelegation from state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DvvTriplet { @@ -305,6 +329,7 @@ impl ::prost::Name for DvvTriplet { } } /// DVVTriplets defines an array of DVVTriplet objects. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DvvTriplets { @@ -321,6 +346,7 @@ impl ::prost::Name for DvvTriplets { /// Delegation represents the bond with tokens held by an account. It is /// owned by one delegator, and is associated with the voting power of one /// validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Delegation { @@ -343,6 +369,7 @@ impl ::prost::Name for Delegation { } /// UnbondingDelegation stores all of a single delegator's unbonding bonds /// for a single validator in an time-ordered list. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnbondingDelegation { @@ -366,6 +393,7 @@ impl ::prost::Name for UnbondingDelegation { } } /// UnbondingDelegationEntry defines an unbonding object with relevant metadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnbondingDelegationEntry { @@ -374,7 +402,7 @@ pub struct UnbondingDelegationEntry { pub creation_height: i64, /// completion_time is the unix time for unbonding completion. #[prost(message, optional, tag = "2")] - pub completion_time: ::core::option::Option<::prost_types::Timestamp>, + pub completion_time: ::core::option::Option<::pbjson_types::Timestamp>, /// initial_balance defines the tokens initially scheduled to receive at completion. #[prost(string, tag = "3")] pub initial_balance: ::prost::alloc::string::String, @@ -396,6 +424,7 @@ impl ::prost::Name for UnbondingDelegationEntry { } } /// RedelegationEntry defines a redelegation object with relevant metadata. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RedelegationEntry { @@ -404,7 +433,7 @@ pub struct RedelegationEntry { pub creation_height: i64, /// completion_time defines the unix time for redelegation completion. #[prost(message, optional, tag = "2")] - pub completion_time: ::core::option::Option<::prost_types::Timestamp>, + pub completion_time: ::core::option::Option<::pbjson_types::Timestamp>, /// initial_balance defines the initial balance when redelegation started. #[prost(string, tag = "3")] pub initial_balance: ::prost::alloc::string::String, @@ -427,6 +456,7 @@ impl ::prost::Name for RedelegationEntry { } /// Redelegation contains the list of a particular delegator's redelegating bonds /// from a particular source validator to a particular destination validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Redelegation { @@ -453,12 +483,13 @@ impl ::prost::Name for Redelegation { } } /// Params defines the parameters for the x/staking module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { /// unbonding_time is the time duration of unbonding. #[prost(message, optional, tag = "1")] - pub unbonding_time: ::core::option::Option<::prost_types::Duration>, + pub unbonding_time: ::core::option::Option<::pbjson_types::Duration>, /// max_validators is the maximum number of validators. #[prost(uint32, tag = "2")] pub max_validators: u32, @@ -484,6 +515,7 @@ impl ::prost::Name for Params { } /// DelegationResponse is equivalent to Delegation except that it contains a /// balance in addition to shares which is more suitable for client responses. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelegationResponse { @@ -502,6 +534,7 @@ impl ::prost::Name for DelegationResponse { /// RedelegationEntryResponse is equivalent to a RedelegationEntry except that it /// contains a balance in addition to shares which is more suitable for client /// responses. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RedelegationEntryResponse { @@ -520,6 +553,7 @@ impl ::prost::Name for RedelegationEntryResponse { /// RedelegationResponse is equivalent to a Redelegation except that its entries /// contain a balance in addition to shares which is more suitable for client /// responses. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RedelegationResponse { @@ -537,6 +571,7 @@ impl ::prost::Name for RedelegationResponse { } /// Pool is used for tracking bonded and not-bonded token supply of the bond /// denomination. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Pool { @@ -554,6 +589,7 @@ impl ::prost::Name for Pool { } /// ValidatorUpdates defines an array of abci.ValidatorUpdate objects. /// TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ValidatorUpdates { @@ -568,7 +604,19 @@ impl ::prost::Name for ValidatorUpdates { } } /// BondStatus is the status of a validator. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum BondStatus { /// UNSPECIFIED defines an invalid validator status. @@ -605,7 +653,19 @@ impl BondStatus { } } /// Infraction indicates the infraction a validator commited. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum Infraction { /// UNSPECIFIED defines an empty infraction. @@ -638,6 +698,7 @@ impl Infraction { } } /// GenesisState defines the staking module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -675,6 +736,7 @@ impl ::prost::Name for GenesisState { } } /// LastValidatorPower required for validator set update logic. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LastValidatorPower { @@ -693,6 +755,7 @@ impl ::prost::Name for LastValidatorPower { } } /// QueryValidatorsRequest is request type for Query/Validators RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorsRequest { @@ -711,6 +774,7 @@ impl ::prost::Name for QueryValidatorsRequest { } } /// QueryValidatorsResponse is response type for the Query/Validators RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorsResponse { @@ -729,6 +793,7 @@ impl ::prost::Name for QueryValidatorsResponse { } } /// QueryValidatorRequest is response type for the Query/Validator RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorRequest { @@ -744,6 +809,7 @@ impl ::prost::Name for QueryValidatorRequest { } } /// QueryValidatorResponse is response type for the Query/Validator RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorResponse { @@ -760,6 +826,7 @@ impl ::prost::Name for QueryValidatorResponse { } /// QueryValidatorDelegationsRequest is request type for the /// Query/ValidatorDelegations RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorDelegationsRequest { @@ -779,6 +846,7 @@ impl ::prost::Name for QueryValidatorDelegationsRequest { } /// QueryValidatorDelegationsResponse is response type for the /// Query/ValidatorDelegations RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorDelegationsResponse { @@ -797,6 +865,7 @@ impl ::prost::Name for QueryValidatorDelegationsResponse { } /// QueryValidatorUnbondingDelegationsRequest is required type for the /// Query/ValidatorUnbondingDelegations RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorUnbondingDelegationsRequest { @@ -816,6 +885,7 @@ impl ::prost::Name for QueryValidatorUnbondingDelegationsRequest { } /// QueryValidatorUnbondingDelegationsResponse is response type for the /// Query/ValidatorUnbondingDelegations RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryValidatorUnbondingDelegationsResponse { @@ -833,6 +903,7 @@ impl ::prost::Name for QueryValidatorUnbondingDelegationsResponse { } } /// QueryDelegationRequest is request type for the Query/Delegation RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationRequest { @@ -851,6 +922,7 @@ impl ::prost::Name for QueryDelegationRequest { } } /// QueryDelegationResponse is response type for the Query/Delegation RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegationResponse { @@ -867,6 +939,7 @@ impl ::prost::Name for QueryDelegationResponse { } /// QueryUnbondingDelegationRequest is request type for the /// Query/UnbondingDelegation RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnbondingDelegationRequest { @@ -886,6 +959,7 @@ impl ::prost::Name for QueryUnbondingDelegationRequest { } /// QueryDelegationResponse is response type for the Query/UnbondingDelegation /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnbondingDelegationResponse { @@ -902,6 +976,7 @@ impl ::prost::Name for QueryUnbondingDelegationResponse { } /// QueryDelegatorDelegationsRequest is request type for the /// Query/DelegatorDelegations RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorDelegationsRequest { @@ -921,6 +996,7 @@ impl ::prost::Name for QueryDelegatorDelegationsRequest { } /// QueryDelegatorDelegationsResponse is response type for the /// Query/DelegatorDelegations RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorDelegationsResponse { @@ -940,6 +1016,7 @@ impl ::prost::Name for QueryDelegatorDelegationsResponse { } /// QueryDelegatorUnbondingDelegationsRequest is request type for the /// Query/DelegatorUnbondingDelegations RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorUnbondingDelegationsRequest { @@ -959,6 +1036,7 @@ impl ::prost::Name for QueryDelegatorUnbondingDelegationsRequest { } /// QueryUnbondingDelegatorDelegationsResponse is response type for the /// Query/UnbondingDelegatorDelegations RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorUnbondingDelegationsResponse { @@ -977,6 +1055,7 @@ impl ::prost::Name for QueryDelegatorUnbondingDelegationsResponse { } /// QueryRedelegationsRequest is request type for the Query/Redelegations RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRedelegationsRequest { @@ -1002,6 +1081,7 @@ impl ::prost::Name for QueryRedelegationsRequest { } /// QueryRedelegationsResponse is response type for the Query/Redelegations RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRedelegationsResponse { @@ -1020,6 +1100,7 @@ impl ::prost::Name for QueryRedelegationsResponse { } /// QueryDelegatorValidatorsRequest is request type for the /// Query/DelegatorValidators RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsRequest { @@ -1039,6 +1120,7 @@ impl ::prost::Name for QueryDelegatorValidatorsRequest { } /// QueryDelegatorValidatorsResponse is response type for the /// Query/DelegatorValidators RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorsResponse { @@ -1058,6 +1140,7 @@ impl ::prost::Name for QueryDelegatorValidatorsResponse { } /// QueryDelegatorValidatorRequest is request type for the /// Query/DelegatorValidator RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorRequest { @@ -1077,6 +1160,7 @@ impl ::prost::Name for QueryDelegatorValidatorRequest { } /// QueryDelegatorValidatorResponse response type for the /// Query/DelegatorValidator RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDelegatorValidatorResponse { @@ -1093,6 +1177,7 @@ impl ::prost::Name for QueryDelegatorValidatorResponse { } /// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHistoricalInfoRequest { @@ -1109,6 +1194,7 @@ impl ::prost::Name for QueryHistoricalInfoRequest { } /// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryHistoricalInfoResponse { @@ -1124,6 +1210,7 @@ impl ::prost::Name for QueryHistoricalInfoResponse { } } /// QueryPoolRequest is request type for the Query/Pool RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPoolRequest {} @@ -1135,6 +1222,7 @@ impl ::prost::Name for QueryPoolRequest { } } /// QueryPoolResponse is response type for the Query/Pool RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPoolResponse { @@ -1150,6 +1238,7 @@ impl ::prost::Name for QueryPoolResponse { } } /// QueryParamsRequest is request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -1161,6 +1250,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -1176,6 +1266,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// MsgCreateValidator defines a SDK message for creating a new validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateValidator { @@ -1190,7 +1281,7 @@ pub struct MsgCreateValidator { #[prost(string, tag = "5")] pub validator_address: ::prost::alloc::string::String, #[prost(message, optional, tag = "6")] - pub pubkey: ::core::option::Option<::prost_types::Any>, + pub pubkey: ::core::option::Option<::pbjson_types::Any>, #[prost(message, optional, tag = "7")] pub value: ::core::option::Option, } @@ -1202,6 +1293,7 @@ impl ::prost::Name for MsgCreateValidator { } } /// MsgCreateValidatorResponse defines the Msg/CreateValidator response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateValidatorResponse {} @@ -1213,6 +1305,7 @@ impl ::prost::Name for MsgCreateValidatorResponse { } } /// MsgEditValidator defines a SDK message for editing an existing validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgEditValidator { @@ -1237,6 +1330,7 @@ impl ::prost::Name for MsgEditValidator { } } /// MsgEditValidatorResponse defines the Msg/EditValidator response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgEditValidatorResponse {} @@ -1249,6 +1343,7 @@ impl ::prost::Name for MsgEditValidatorResponse { } /// MsgDelegate defines a SDK message for performing a delegation of coins /// from a delegator to a validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDelegate { @@ -1267,6 +1362,7 @@ impl ::prost::Name for MsgDelegate { } } /// MsgDelegateResponse defines the Msg/Delegate response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgDelegateResponse {} @@ -1279,6 +1375,7 @@ impl ::prost::Name for MsgDelegateResponse { } /// MsgBeginRedelegate defines a SDK message for performing a redelegation /// of coins from a delegator and source validator to a destination validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBeginRedelegate { @@ -1299,11 +1396,12 @@ impl ::prost::Name for MsgBeginRedelegate { } } /// MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgBeginRedelegateResponse { #[prost(message, optional, tag = "1")] - pub completion_time: ::core::option::Option<::prost_types::Timestamp>, + pub completion_time: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for MsgBeginRedelegateResponse { const NAME: &'static str = "MsgBeginRedelegateResponse"; @@ -1314,6 +1412,7 @@ impl ::prost::Name for MsgBeginRedelegateResponse { } /// MsgUndelegate defines a SDK message for performing an undelegation from a /// delegate and a validator. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUndelegate { @@ -1332,11 +1431,12 @@ impl ::prost::Name for MsgUndelegate { } } /// MsgUndelegateResponse defines the Msg/Undelegate response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUndelegateResponse { #[prost(message, optional, tag = "1")] - pub completion_time: ::core::option::Option<::prost_types::Timestamp>, + pub completion_time: ::core::option::Option<::pbjson_types::Timestamp>, } impl ::prost::Name for MsgUndelegateResponse { const NAME: &'static str = "MsgUndelegateResponse"; @@ -1348,6 +1448,7 @@ impl ::prost::Name for MsgUndelegateResponse { /// MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUnbondingDelegation { @@ -1372,6 +1473,7 @@ impl ::prost::Name for MsgCancelUnbondingDelegation { /// MsgCancelUnbondingDelegationResponse /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUnbondingDelegationResponse {} @@ -1385,6 +1487,7 @@ impl ::prost::Name for MsgCancelUnbondingDelegationResponse { /// MsgUpdateParams is the Msg/UpdateParams request type. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -1408,6 +1511,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} diff --git a/packages/proto/src/gen/cosmos.tx.config.v1.rs b/packages/proto/src/gen/cosmos.tx.config.v1.rs index 8ae6cbe..bfbaac7 100644 --- a/packages/proto/src/gen/cosmos.tx.config.v1.rs +++ b/packages/proto/src/gen/cosmos.tx.config.v1.rs @@ -1,5 +1,6 @@ // @generated /// Config is the config object of the x/auth/tx package. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Config { diff --git a/packages/proto/src/gen/cosmos.tx.signing.v1beta1.rs b/packages/proto/src/gen/cosmos.tx.signing.v1beta1.rs index f050af6..91bfcb5 100644 --- a/packages/proto/src/gen/cosmos.tx.signing.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.tx.signing.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// SignatureDescriptors wraps multiple SignatureDescriptor's. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureDescriptors { @@ -18,12 +19,13 @@ impl ::prost::Name for SignatureDescriptors { /// a signature including the public key of the signer, signing modes and the /// signature itself. It is primarily used for coordinating signatures between /// clients. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureDescriptor { /// public_key is the public key of the signer #[prost(message, optional, tag = "1")] - pub public_key: ::core::option::Option<::prost_types::Any>, + pub public_key: ::core::option::Option<::pbjson_types::Any>, #[prost(message, optional, tag = "2")] pub data: ::core::option::Option, /// sequence is the sequence of the account, which describes the @@ -35,6 +37,7 @@ pub struct SignatureDescriptor { /// Nested message and enum types in `SignatureDescriptor`. pub mod signature_descriptor { /// Data represents signature data + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Data { @@ -45,6 +48,7 @@ pub mod signature_descriptor { /// Nested message and enum types in `Data`. pub mod data { /// Single is the signature data for a single signer + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Single { @@ -66,6 +70,7 @@ pub mod signature_descriptor { } } /// Multi is the signature data for a multisig public key + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Multi { @@ -89,6 +94,7 @@ pub mod signature_descriptor { } } /// sum is the oneof that specifies whether this represents single or multi-signature data + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { @@ -126,7 +132,19 @@ impl ::prost::Name for SignatureDescriptor { /// encouraged to open a small PR against this file to add a new case /// to this SignMode enum describing their sign mode so that different /// apps have a consistent version of this enum. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum SignMode { /// SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be diff --git a/packages/proto/src/gen/cosmos.tx.v1beta1.rs b/packages/proto/src/gen/cosmos.tx.v1beta1.rs index 2395a39..6da03c9 100644 --- a/packages/proto/src/gen/cosmos.tx.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.tx.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// Tx is the standard type used for broadcasting transactions. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Tx { @@ -28,6 +29,7 @@ impl ::prost::Name for Tx { /// verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and /// the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used /// as the transaction ID. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxRaw { @@ -53,6 +55,7 @@ impl ::prost::Name for TxRaw { } } /// SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignDoc { @@ -84,6 +87,7 @@ impl ::prost::Name for SignDoc { /// SIGN_MODE_DIRECT_AUX. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignDocDirectAux { @@ -93,7 +97,7 @@ pub struct SignDocDirectAux { pub body_bytes: ::prost::alloc::vec::Vec, /// public_key is the public key of the signing account. #[prost(message, optional, tag = "2")] - pub public_key: ::core::option::Option<::prost_types::Any>, + pub public_key: ::core::option::Option<::pbjson_types::Any>, /// chain_id is the identifier of the chain this transaction targets. /// It prevents signed transactions from being used on another chain by an /// attacker. @@ -122,6 +126,7 @@ impl ::prost::Name for SignDocDirectAux { } } /// TxBody is the body of a transaction that all signers sign over. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxBody { @@ -133,7 +138,7 @@ pub struct TxBody { /// is referred to as the primary signer and pays the fee for the whole /// transaction. #[prost(message, repeated, tag = "1")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// memo is any arbitrary note/comment to be added to the transaction. /// WARNING: in clients, any publicly exposed text should not be called memo, /// but should be called `note` instead (see ). @@ -147,12 +152,12 @@ pub struct TxBody { /// when the default options are not sufficient. If any of these are present /// and can't be handled, the transaction will be rejected #[prost(message, repeated, tag = "1023")] - pub extension_options: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub extension_options: ::prost::alloc::vec::Vec<::pbjson_types::Any>, /// extension_options are arbitrary options that can be added by chains /// when the default options are not sufficient. If any of these are present /// and can't be handled, they will be ignored #[prost(message, repeated, tag = "2047")] - pub non_critical_extension_options: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub non_critical_extension_options: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for TxBody { const NAME: &'static str = "TxBody"; @@ -163,6 +168,7 @@ impl ::prost::Name for TxBody { } /// AuthInfo describes the fee and signer modes that are used to sign a /// transaction. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuthInfo { @@ -196,6 +202,7 @@ impl ::prost::Name for AuthInfo { } /// SignerInfo describes the public key and signing mode of a single top-level /// signer. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignerInfo { @@ -203,7 +210,7 @@ pub struct SignerInfo { /// that already exist in state. If unset, the verifier can use the required \ /// signer address for this position and lookup the public key. #[prost(message, optional, tag = "1")] - pub public_key: ::core::option::Option<::prost_types::Any>, + pub public_key: ::core::option::Option<::pbjson_types::Any>, /// mode_info describes the signing mode of the signer and is a nested /// structure to support nested multisig pubkey's #[prost(message, optional, tag = "2")] @@ -222,6 +229,7 @@ impl ::prost::Name for SignerInfo { } } /// ModeInfo describes the signing mode of a single or nested multisig signer. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModeInfo { @@ -235,6 +243,7 @@ pub mod mode_info { /// Single is the mode info for a single signer. It is structured as a message /// to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the /// future + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Single { @@ -250,6 +259,7 @@ pub mod mode_info { } } /// Multi is the mode info for a multisig public key + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Multi { @@ -271,6 +281,7 @@ pub mod mode_info { } /// sum is the oneof that specifies whether this represents a single or nested /// multisig signer + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Sum { @@ -292,6 +303,7 @@ impl ::prost::Name for ModeInfo { /// Fee includes the amount of coins paid in fees and the maximum /// gas to be used by the transaction. The ratio yields an effective "gasprice", /// which must be above some miminum to be accepted into the mempool. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Fee { @@ -323,6 +335,7 @@ impl ::prost::Name for Fee { /// Tip is the tip used for meta-transactions. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Tip { @@ -346,6 +359,7 @@ impl ::prost::Name for Tip { /// by the node if sent directly as-is. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AuxSignerData { @@ -375,6 +389,7 @@ impl ::prost::Name for AuxSignerData { } /// GetTxsEventRequest is the request type for the Service.TxsByEvents /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxsEventRequest { @@ -405,6 +420,7 @@ impl ::prost::Name for GetTxsEventRequest { } /// GetTxsEventResponse is the response type for the Service.TxsByEvents /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxsEventResponse { @@ -432,6 +448,7 @@ impl ::prost::Name for GetTxsEventResponse { } /// BroadcastTxRequest is the request type for the Service.BroadcastTxRequest /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BroadcastTxRequest { @@ -450,6 +467,7 @@ impl ::prost::Name for BroadcastTxRequest { } /// BroadcastTxResponse is the response type for the /// Service.BroadcastTx method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BroadcastTxResponse { @@ -466,6 +484,7 @@ impl ::prost::Name for BroadcastTxResponse { } /// SimulateRequest is the request type for the Service.Simulate /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulateRequest { @@ -489,6 +508,7 @@ impl ::prost::Name for SimulateRequest { } /// SimulateResponse is the response type for the /// Service.SimulateRPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulateResponse { @@ -508,6 +528,7 @@ impl ::prost::Name for SimulateResponse { } /// GetTxRequest is the request type for the Service.GetTx /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxRequest { @@ -523,6 +544,7 @@ impl ::prost::Name for GetTxRequest { } } /// GetTxResponse is the response type for the Service.GetTx method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTxResponse { @@ -544,6 +566,7 @@ impl ::prost::Name for GetTxResponse { /// RPC method. /// /// Since: cosmos-sdk 0.45.2 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockWithTxsRequest { @@ -564,6 +587,7 @@ impl ::prost::Name for GetBlockWithTxsRequest { /// GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. /// /// Since: cosmos-sdk 0.45.2 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetBlockWithTxsResponse { @@ -589,6 +613,7 @@ impl ::prost::Name for GetBlockWithTxsResponse { /// RPC method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxDecodeRequest { @@ -607,6 +632,7 @@ impl ::prost::Name for TxDecodeRequest { /// Service.TxDecode method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxDecodeResponse { @@ -625,6 +651,7 @@ impl ::prost::Name for TxDecodeResponse { /// RPC method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxEncodeRequest { @@ -643,6 +670,7 @@ impl ::prost::Name for TxEncodeRequest { /// Service.TxEncode method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxEncodeResponse { @@ -661,6 +689,7 @@ impl ::prost::Name for TxEncodeResponse { /// RPC method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxEncodeAminoRequest { @@ -678,6 +707,7 @@ impl ::prost::Name for TxEncodeAminoRequest { /// RPC method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxEncodeAminoResponse { @@ -695,6 +725,7 @@ impl ::prost::Name for TxEncodeAminoResponse { /// RPC method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxDecodeAminoRequest { @@ -712,6 +743,7 @@ impl ::prost::Name for TxDecodeAminoRequest { /// RPC method. /// /// Since: cosmos-sdk 0.47 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TxDecodeAminoResponse { @@ -726,7 +758,19 @@ impl ::prost::Name for TxDecodeAminoResponse { } } /// OrderBy defines the sorting order -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum OrderBy { /// ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. @@ -759,7 +803,19 @@ impl OrderBy { } } /// BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum BroadcastMode { /// zero-value for mode ordering diff --git a/packages/proto/src/gen/cosmos.upgrade.module.v1.rs b/packages/proto/src/gen/cosmos.upgrade.module.v1.rs index 8dd7a30..364452b 100644 --- a/packages/proto/src/gen/cosmos.upgrade.module.v1.rs +++ b/packages/proto/src/gen/cosmos.upgrade.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the upgrade module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module { diff --git a/packages/proto/src/gen/cosmos.upgrade.v1beta1.rs b/packages/proto/src/gen/cosmos.upgrade.v1beta1.rs index 0fa1400..6d7e8e3 100644 --- a/packages/proto/src/gen/cosmos.upgrade.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.upgrade.v1beta1.rs @@ -1,5 +1,6 @@ // @generated /// Plan specifies information about a planned upgrade and when it should occur. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Plan { @@ -17,7 +18,7 @@ pub struct Plan { /// If this field is not empty, an error will be thrown. #[deprecated] #[prost(message, optional, tag = "2")] - pub time: ::core::option::Option<::prost_types::Timestamp>, + pub time: ::core::option::Option<::pbjson_types::Timestamp>, /// The height at which the upgrade must be performed. #[prost(int64, tag = "3")] pub height: i64, @@ -30,7 +31,7 @@ pub struct Plan { /// If this field is not empty, an error will be thrown. #[deprecated] #[prost(message, optional, tag = "5")] - pub upgraded_client_state: ::core::option::Option<::prost_types::Any>, + pub upgraded_client_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for Plan { const NAME: &'static str = "Plan"; @@ -43,6 +44,7 @@ impl ::prost::Name for Plan { /// upgrade. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov /// proposals, see MsgSoftwareUpgrade. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SoftwareUpgradeProposal { @@ -67,6 +69,7 @@ impl ::prost::Name for SoftwareUpgradeProposal { /// upgrade. /// Deprecated: This legacy proposal is deprecated in favor of Msg-based gov /// proposals, see MsgCancelUpgrade. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CancelSoftwareUpgradeProposal { @@ -87,6 +90,7 @@ impl ::prost::Name for CancelSoftwareUpgradeProposal { /// ModuleVersion specifies a module and its consensus version. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ModuleVersion { @@ -106,6 +110,7 @@ impl ::prost::Name for ModuleVersion { } /// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCurrentPlanRequest {} @@ -118,6 +123,7 @@ impl ::prost::Name for QueryCurrentPlanRequest { } /// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCurrentPlanResponse { @@ -134,6 +140,7 @@ impl ::prost::Name for QueryCurrentPlanResponse { } /// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAppliedPlanRequest { @@ -150,6 +157,7 @@ impl ::prost::Name for QueryAppliedPlanRequest { } /// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAppliedPlanResponse { @@ -166,6 +174,7 @@ impl ::prost::Name for QueryAppliedPlanResponse { } /// QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateRequest { @@ -183,6 +192,7 @@ impl ::prost::Name for QueryUpgradedConsensusStateRequest { } /// QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateResponse { @@ -201,6 +211,7 @@ impl ::prost::Name for QueryUpgradedConsensusStateResponse { /// RPC method. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleVersionsRequest { @@ -221,6 +232,7 @@ impl ::prost::Name for QueryModuleVersionsRequest { /// RPC method. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryModuleVersionsResponse { @@ -238,6 +250,7 @@ impl ::prost::Name for QueryModuleVersionsResponse { /// QueryAuthorityRequest is the request type for Query/Authority /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuthorityRequest {} @@ -251,6 +264,7 @@ impl ::prost::Name for QueryAuthorityRequest { /// QueryAuthorityResponse is the response type for Query/Authority /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAuthorityResponse { @@ -267,6 +281,7 @@ impl ::prost::Name for QueryAuthorityResponse { /// MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSoftwareUpgrade { @@ -287,6 +302,7 @@ impl ::prost::Name for MsgSoftwareUpgrade { /// MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSoftwareUpgradeResponse {} @@ -300,6 +316,7 @@ impl ::prost::Name for MsgSoftwareUpgradeResponse { /// MsgCancelUpgrade is the Msg/CancelUpgrade request type. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUpgrade { @@ -317,6 +334,7 @@ impl ::prost::Name for MsgCancelUpgrade { /// MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCancelUpgradeResponse {} diff --git a/packages/proto/src/gen/cosmos.vesting.module.v1.rs b/packages/proto/src/gen/cosmos.vesting.module.v1.rs index a511dc2..2631fbf 100644 --- a/packages/proto/src/gen/cosmos.vesting.module.v1.rs +++ b/packages/proto/src/gen/cosmos.vesting.module.v1.rs @@ -1,5 +1,6 @@ // @generated /// Module is the config object of the vesting module. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Module {} diff --git a/packages/proto/src/gen/cosmos.vesting.v1beta1.rs b/packages/proto/src/gen/cosmos.vesting.v1beta1.rs index 8be1796..4afa053 100644 --- a/packages/proto/src/gen/cosmos.vesting.v1beta1.rs +++ b/packages/proto/src/gen/cosmos.vesting.v1beta1.rs @@ -1,6 +1,7 @@ // @generated /// BaseVestingAccount implements the VestingAccount interface. It contains all /// the necessary fields needed for any vesting account implementation. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BaseVestingAccount { @@ -25,6 +26,7 @@ impl ::prost::Name for BaseVestingAccount { } /// ContinuousVestingAccount implements the VestingAccount interface. It /// continuously vests by unlocking coins linearly with respect to time. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContinuousVestingAccount { @@ -44,6 +46,7 @@ impl ::prost::Name for ContinuousVestingAccount { /// DelayedVestingAccount implements the VestingAccount interface. It vests all /// coins after a specific time, but non prior. In other words, it keeps them /// locked until a specified time. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DelayedVestingAccount { @@ -58,6 +61,7 @@ impl ::prost::Name for DelayedVestingAccount { } } /// Period defines a length of time and amount of coins that will vest. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Period { @@ -76,6 +80,7 @@ impl ::prost::Name for Period { } /// PeriodicVestingAccount implements the VestingAccount interface. It /// periodically vests by unlocking coins during each specified period. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PeriodicVestingAccount { @@ -98,6 +103,7 @@ impl ::prost::Name for PeriodicVestingAccount { /// still be used for delegating and for governance votes even while locked. /// /// Since: cosmos-sdk 0.43 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PermanentLockedAccount { @@ -113,6 +119,7 @@ impl ::prost::Name for PermanentLockedAccount { } /// MsgCreateVestingAccount defines a message that enables creating a vesting /// account. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateVestingAccount { @@ -136,6 +143,7 @@ impl ::prost::Name for MsgCreateVestingAccount { } } /// MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateVestingAccountResponse {} @@ -150,6 +158,7 @@ impl ::prost::Name for MsgCreateVestingAccountResponse { /// locked account. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreatePermanentLockedAccount { @@ -170,6 +179,7 @@ impl ::prost::Name for MsgCreatePermanentLockedAccount { /// MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreatePermanentLockedAccountResponse {} @@ -184,6 +194,7 @@ impl ::prost::Name for MsgCreatePermanentLockedAccountResponse { /// account. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreatePeriodicVestingAccount { @@ -208,6 +219,7 @@ impl ::prost::Name for MsgCreatePeriodicVestingAccount { /// response type. /// /// Since: cosmos-sdk 0.46 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreatePeriodicVestingAccountResponse {} diff --git a/packages/proto/src/gen/cosmos_proto.rs b/packages/proto/src/gen/cosmos_proto.rs index 8935de6..b06a351 100644 --- a/packages/proto/src/gen/cosmos_proto.rs +++ b/packages/proto/src/gen/cosmos_proto.rs @@ -1,6 +1,7 @@ // @generated /// InterfaceDescriptor describes an interface type to be used with /// accepts_interface and implements_interface and declared by declare_interface. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterfaceDescriptor { @@ -29,6 +30,7 @@ impl ::prost::Name for InterfaceDescriptor { /// Scalars should ideally define an encoding such that there is only one /// valid syntactical representation for a given semantic meaning, /// i.e. the encoding should be deterministic. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ScalarDescriptor { @@ -57,7 +59,19 @@ impl ::prost::Name for ScalarDescriptor { ::prost::alloc::format!("cosmos_proto.{}", Self::NAME) } } -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ScalarType { Unspecified = 0, diff --git a/packages/proto/src/gen/cosmwasm.wasm.v1.rs b/packages/proto/src/gen/cosmwasm.wasm.v1.rs index 3407905..a907003 100644 --- a/packages/proto/src/gen/cosmwasm.wasm.v1.rs +++ b/packages/proto/src/gen/cosmwasm.wasm.v1.rs @@ -1,5 +1,6 @@ // @generated /// AccessTypeParam +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccessTypeParam { @@ -14,6 +15,7 @@ impl ::prost::Name for AccessTypeParam { } } /// AccessConfig access control type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccessConfig { @@ -30,6 +32,7 @@ impl ::prost::Name for AccessConfig { } } /// Params defines the set of wasm parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -46,6 +49,7 @@ impl ::prost::Name for Params { } } /// CodeInfo is data for the uploaded contract WASM code +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CodeInfo { @@ -67,6 +71,7 @@ impl ::prost::Name for CodeInfo { } } /// ContractInfo stores a WASM contract instance +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractInfo { @@ -90,7 +95,7 @@ pub struct ContractInfo { /// Extension is an extension point to store custom metadata within the /// persistence model. #[prost(message, optional, tag = "7")] - pub extension: ::core::option::Option<::prost_types::Any>, + pub extension: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for ContractInfo { const NAME: &'static str = "ContractInfo"; @@ -100,6 +105,7 @@ impl ::prost::Name for ContractInfo { } } /// ContractCodeHistoryEntry metadata to a contract. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractCodeHistoryEntry { @@ -123,6 +129,7 @@ impl ::prost::Name for ContractCodeHistoryEntry { } /// AbsoluteTxPosition is a unique transaction position that allows for global /// ordering of transactions. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AbsoluteTxPosition { @@ -142,6 +149,7 @@ impl ::prost::Name for AbsoluteTxPosition { } } /// Model is a struct that holds a KV pair +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Model { @@ -160,7 +168,19 @@ impl ::prost::Name for Model { } } /// AccessType permission types -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum AccessType { /// AccessTypeUnspecified placeholder for empty value @@ -197,7 +217,19 @@ impl AccessType { } } /// ContractCodeHistoryOperationType actions that caused a code change -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ContractCodeHistoryOperationType { /// ContractCodeHistoryOperationTypeUnspecified placeholder for empty value @@ -241,6 +273,7 @@ impl ContractCodeHistoryOperationType { } /// StoreCodeAuthorization defines authorization for wasm code upload. /// Since: wasmd 0.42 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreCodeAuthorization { @@ -257,6 +290,7 @@ impl ::prost::Name for StoreCodeAuthorization { } /// ContractExecutionAuthorization defines authorization for wasm execute. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractExecutionAuthorization { @@ -273,6 +307,7 @@ impl ::prost::Name for ContractExecutionAuthorization { } /// ContractMigrationAuthorization defines authorization for wasm contract /// migration. Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractMigrationAuthorization { @@ -288,6 +323,7 @@ impl ::prost::Name for ContractMigrationAuthorization { } } /// CodeGrant a granted permission for a single code +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CodeGrant { @@ -310,6 +346,7 @@ impl ::prost::Name for CodeGrant { } /// ContractGrant a granted permission for a single contract /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContractGrant { @@ -319,12 +356,12 @@ pub struct ContractGrant { /// Limit defines execution limits that are enforced and updated when the grant /// is applied. When the limit lapsed the grant is removed. #[prost(message, optional, tag = "2")] - pub limit: ::core::option::Option<::prost_types::Any>, + pub limit: ::core::option::Option<::pbjson_types::Any>, /// Filter define more fine-grained control on the message payload passed /// to the contract in the operation. When no filter applies on execution, the /// operation is prohibited. #[prost(message, optional, tag = "3")] - pub filter: ::core::option::Option<::prost_types::Any>, + pub filter: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for ContractGrant { const NAME: &'static str = "ContractGrant"; @@ -335,6 +372,7 @@ impl ::prost::Name for ContractGrant { } /// MaxCallsLimit limited number of calls to the contract. No funds transferable. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MaxCallsLimit { @@ -351,6 +389,7 @@ impl ::prost::Name for MaxCallsLimit { } /// MaxFundsLimit defines the maximal amounts that can be sent to the contract. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MaxFundsLimit { @@ -368,6 +407,7 @@ impl ::prost::Name for MaxFundsLimit { /// CombinedLimit defines the maximal amounts that can be sent to a contract and /// the maximal number of calls executable. Both need to remain >0 to be valid. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CombinedLimit { @@ -388,6 +428,7 @@ impl ::prost::Name for CombinedLimit { /// AllowAllMessagesFilter is a wildcard to allow any type of contract payload /// message. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AllowAllMessagesFilter {} @@ -401,6 +442,7 @@ impl ::prost::Name for AllowAllMessagesFilter { /// AcceptedMessageKeysFilter accept only the specific contract message keys in /// the json object to be executed. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AcceptedMessageKeysFilter { @@ -418,6 +460,7 @@ impl ::prost::Name for AcceptedMessageKeysFilter { /// AcceptedMessagesFilter accept only the specific raw contract messages to be /// executed. /// Since: wasmd 0.30 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AcceptedMessagesFilter { @@ -433,6 +476,7 @@ impl ::prost::Name for AcceptedMessagesFilter { } } /// GenesisState - genesis state of x/wasm +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -453,6 +497,7 @@ impl ::prost::Name for GenesisState { } } /// Code struct encompasses CodeInfo and CodeBytes +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Code { @@ -474,6 +519,7 @@ impl ::prost::Name for Code { } } /// Contract struct encompasses ContractAddress, ContractInfo, and ContractState +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Contract { @@ -494,6 +540,7 @@ impl ::prost::Name for Contract { } } /// Sequence key and value of an id generation counter +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Sequence { @@ -510,6 +557,7 @@ impl ::prost::Name for Sequence { } } /// MsgIBCSend +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgIbcSend { @@ -537,6 +585,7 @@ impl ::prost::Name for MsgIbcSend { } } /// MsgIBCSendResponse +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgIbcSendResponse { @@ -552,6 +601,7 @@ impl ::prost::Name for MsgIbcSendResponse { } } /// MsgIBCCloseChannel port and channel need to be owned by the contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgIbcCloseChannel { @@ -569,6 +619,7 @@ impl ::prost::Name for MsgIbcCloseChannel { /// an explicit StoreCodeProposal. To submit WASM code to the system, /// a simple MsgStoreCode can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreCodeProposal { @@ -613,6 +664,7 @@ impl ::prost::Name for StoreCodeProposal { /// an explicit InstantiateContractProposal. To instantiate a contract, /// a simple MsgInstantiateContract can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InstantiateContractProposal { @@ -652,6 +704,7 @@ impl ::prost::Name for InstantiateContractProposal { /// an explicit InstantiateContract2Proposal. To instantiate contract 2, /// a simple MsgInstantiateContract2 can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InstantiateContract2Proposal { @@ -698,6 +751,7 @@ impl ::prost::Name for InstantiateContract2Proposal { /// an explicit MigrateContractProposal. To migrate a contract, /// a simple MsgMigrateContract can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MigrateContractProposal { @@ -730,6 +784,7 @@ impl ::prost::Name for MigrateContractProposal { /// an explicit SudoContractProposal. To call sudo on a contract, /// a simple MsgSudoContract can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SudoContractProposal { @@ -757,6 +812,7 @@ impl ::prost::Name for SudoContractProposal { /// an explicit ExecuteContractProposal. To call execute on a contract, /// a simple MsgExecuteContract can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ExecuteContractProposal { @@ -790,6 +846,7 @@ impl ::prost::Name for ExecuteContractProposal { /// an explicit UpdateAdminProposal. To set an admin for a contract, /// a simple MsgUpdateAdmin can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateAdminProposal { @@ -817,6 +874,7 @@ impl ::prost::Name for UpdateAdminProposal { /// an explicit ClearAdminProposal. To clear the admin of a contract, /// a simple MsgClearAdmin can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClearAdminProposal { @@ -841,6 +899,7 @@ impl ::prost::Name for ClearAdminProposal { /// an explicit PinCodesProposal. To pin a set of code ids in the wasmvm /// cache, a simple MsgPinCodes can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PinCodesProposal { @@ -865,6 +924,7 @@ impl ::prost::Name for PinCodesProposal { /// an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm /// cache, a simple MsgUnpinCodes can be invoked from the x/gov module via /// a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UnpinCodesProposal { @@ -887,6 +947,7 @@ impl ::prost::Name for UnpinCodesProposal { } /// AccessConfigUpdate contains the code id and the access config to be /// applied. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AccessConfigUpdate { @@ -908,6 +969,7 @@ impl ::prost::Name for AccessConfigUpdate { /// an explicit UpdateInstantiateConfigProposal. To update instantiate config /// to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from /// the x/gov module via a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateInstantiateConfigProposal { @@ -933,6 +995,7 @@ impl ::prost::Name for UpdateInstantiateConfigProposal { /// an explicit StoreAndInstantiateContractProposal. To store and instantiate /// the contract, a simple MsgStoreAndInstantiateContract can be invoked from /// the x/gov module via a v1 governance proposal. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StoreAndInstantiateContractProposal { @@ -987,6 +1050,7 @@ impl ::prost::Name for StoreAndInstantiateContractProposal { } /// QueryContractInfoRequest is the request type for the Query/ContractInfo RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractInfoRequest { @@ -1003,6 +1067,7 @@ impl ::prost::Name for QueryContractInfoRequest { } /// QueryContractInfoResponse is the response type for the Query/ContractInfo RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractInfoResponse { @@ -1021,6 +1086,7 @@ impl ::prost::Name for QueryContractInfoResponse { } /// QueryContractHistoryRequest is the request type for the Query/ContractHistory /// RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractHistoryRequest { @@ -1041,6 +1107,7 @@ impl ::prost::Name for QueryContractHistoryRequest { } /// QueryContractHistoryResponse is the response type for the /// Query/ContractHistory RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractHistoryResponse { @@ -1060,6 +1127,7 @@ impl ::prost::Name for QueryContractHistoryResponse { } /// QueryContractsByCodeRequest is the request type for the Query/ContractsByCode /// RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractsByCodeRequest { @@ -1080,6 +1148,7 @@ impl ::prost::Name for QueryContractsByCodeRequest { } /// QueryContractsByCodeResponse is the response type for the /// Query/ContractsByCode RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractsByCodeResponse { @@ -1100,6 +1169,7 @@ impl ::prost::Name for QueryContractsByCodeResponse { } /// QueryAllContractStateRequest is the request type for the /// Query/AllContractState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllContractStateRequest { @@ -1120,6 +1190,7 @@ impl ::prost::Name for QueryAllContractStateRequest { } /// QueryAllContractStateResponse is the response type for the /// Query/AllContractState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryAllContractStateResponse { @@ -1139,6 +1210,7 @@ impl ::prost::Name for QueryAllContractStateResponse { } /// QueryRawContractStateRequest is the request type for the /// Query/RawContractState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRawContractStateRequest { @@ -1157,6 +1229,7 @@ impl ::prost::Name for QueryRawContractStateRequest { } /// QueryRawContractStateResponse is the response type for the /// Query/RawContractState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryRawContractStateResponse { @@ -1173,6 +1246,7 @@ impl ::prost::Name for QueryRawContractStateResponse { } /// QuerySmartContractStateRequest is the request type for the /// Query/SmartContractState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySmartContractStateRequest { @@ -1192,6 +1266,7 @@ impl ::prost::Name for QuerySmartContractStateRequest { } /// QuerySmartContractStateResponse is the response type for the /// Query/SmartContractState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QuerySmartContractStateResponse { @@ -1207,6 +1282,7 @@ impl ::prost::Name for QuerySmartContractStateResponse { } } /// QueryCodeRequest is the request type for the Query/Code RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCodeRequest { @@ -1222,6 +1298,7 @@ impl ::prost::Name for QueryCodeRequest { } } /// CodeInfoResponse contains code meta data from CodeInfo +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CodeInfoResponse { @@ -1243,6 +1320,7 @@ impl ::prost::Name for CodeInfoResponse { } } /// QueryCodeResponse is the response type for the Query/Code RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCodeResponse { @@ -1259,6 +1337,7 @@ impl ::prost::Name for QueryCodeResponse { } } /// QueryCodesRequest is the request type for the Query/Codes RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCodesRequest { @@ -1275,6 +1354,7 @@ impl ::prost::Name for QueryCodesRequest { } } /// QueryCodesResponse is the response type for the Query/Codes RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCodesResponse { @@ -1294,6 +1374,7 @@ impl ::prost::Name for QueryCodesResponse { } /// QueryPinnedCodesRequest is the request type for the Query/PinnedCodes /// RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPinnedCodesRequest { @@ -1311,6 +1392,7 @@ impl ::prost::Name for QueryPinnedCodesRequest { } /// QueryPinnedCodesResponse is the response type for the /// Query/PinnedCodes RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPinnedCodesResponse { @@ -1329,6 +1411,7 @@ impl ::prost::Name for QueryPinnedCodesResponse { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -1340,6 +1423,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -1356,6 +1440,7 @@ impl ::prost::Name for QueryParamsResponse { } /// QueryContractsByCreatorRequest is the request type for the /// Query/ContractsByCreator RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractsByCreatorRequest { @@ -1376,6 +1461,7 @@ impl ::prost::Name for QueryContractsByCreatorRequest { } /// QueryContractsByCreatorResponse is the response type for the /// Query/ContractsByCreator RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryContractsByCreatorResponse { @@ -1395,6 +1481,7 @@ impl ::prost::Name for QueryContractsByCreatorResponse { } } /// MsgStoreCode submit Wasm code to the system +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgStoreCode { @@ -1417,6 +1504,7 @@ impl ::prost::Name for MsgStoreCode { } } /// MsgStoreCodeResponse returns store result data. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgStoreCodeResponse { @@ -1436,6 +1524,7 @@ impl ::prost::Name for MsgStoreCodeResponse { } /// MsgInstantiateContract create a new smart contract instance for the given /// code id. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgInstantiateContract { @@ -1466,6 +1555,7 @@ impl ::prost::Name for MsgInstantiateContract { } } /// MsgInstantiateContractResponse return instantiation result data +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgInstantiateContractResponse { @@ -1485,6 +1575,7 @@ impl ::prost::Name for MsgInstantiateContractResponse { } /// MsgInstantiateContract2 create a new smart contract instance for the given /// code id with a predicable address. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgInstantiateContract2 { @@ -1522,6 +1613,7 @@ impl ::prost::Name for MsgInstantiateContract2 { } } /// MsgInstantiateContract2Response return instantiation result data +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgInstantiateContract2Response { @@ -1540,6 +1632,7 @@ impl ::prost::Name for MsgInstantiateContract2Response { } } /// MsgExecuteContract submits the given message data to a smart contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecuteContract { @@ -1564,6 +1657,7 @@ impl ::prost::Name for MsgExecuteContract { } } /// MsgExecuteContractResponse returns execution result data. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgExecuteContractResponse { @@ -1579,6 +1673,7 @@ impl ::prost::Name for MsgExecuteContractResponse { } } /// MsgMigrateContract runs a code upgrade/ downgrade for a smart contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMigrateContract { @@ -1603,6 +1698,7 @@ impl ::prost::Name for MsgMigrateContract { } } /// MsgMigrateContractResponse returns contract migration result data. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgMigrateContractResponse { @@ -1619,6 +1715,7 @@ impl ::prost::Name for MsgMigrateContractResponse { } } /// MsgUpdateAdmin sets a new admin for a smart contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateAdmin { @@ -1640,6 +1737,7 @@ impl ::prost::Name for MsgUpdateAdmin { } } /// MsgUpdateAdminResponse returns empty data +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateAdminResponse {} @@ -1651,6 +1749,7 @@ impl ::prost::Name for MsgUpdateAdminResponse { } } /// MsgClearAdmin removes any admin stored for a smart contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgClearAdmin { @@ -1669,6 +1768,7 @@ impl ::prost::Name for MsgClearAdmin { } } /// MsgClearAdminResponse returns empty data +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgClearAdminResponse {} @@ -1680,6 +1780,7 @@ impl ::prost::Name for MsgClearAdminResponse { } } /// MsgUpdateInstantiateConfig updates instantiate config for a smart contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateInstantiateConfig { @@ -1701,6 +1802,7 @@ impl ::prost::Name for MsgUpdateInstantiateConfig { } } /// MsgUpdateInstantiateConfigResponse returns empty data +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateInstantiateConfigResponse {} @@ -1714,6 +1816,7 @@ impl ::prost::Name for MsgUpdateInstantiateConfigResponse { /// MsgUpdateParams is the MsgUpdateParams request type. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParams { @@ -1737,6 +1840,7 @@ impl ::prost::Name for MsgUpdateParams { /// MsgUpdateParams message. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateParamsResponse {} @@ -1750,6 +1854,7 @@ impl ::prost::Name for MsgUpdateParamsResponse { /// MsgSudoContract is the MsgSudoContract request type. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSudoContract { @@ -1774,6 +1879,7 @@ impl ::prost::Name for MsgSudoContract { /// MsgSudoContract message. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSudoContractResponse { @@ -1791,6 +1897,7 @@ impl ::prost::Name for MsgSudoContractResponse { /// MsgPinCodes is the MsgPinCodes request type. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPinCodes { @@ -1812,6 +1919,7 @@ impl ::prost::Name for MsgPinCodes { /// MsgPinCodes message. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPinCodesResponse {} @@ -1825,6 +1933,7 @@ impl ::prost::Name for MsgPinCodesResponse { /// MsgUnpinCodes is the MsgUnpinCodes request type. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnpinCodes { @@ -1846,6 +1955,7 @@ impl ::prost::Name for MsgUnpinCodes { /// MsgUnpinCodes message. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUnpinCodesResponse {} @@ -1860,6 +1970,7 @@ impl ::prost::Name for MsgUnpinCodesResponse { /// request type. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgStoreAndInstantiateContract { @@ -1912,6 +2023,7 @@ impl ::prost::Name for MsgStoreAndInstantiateContract { /// for executing a MsgStoreAndInstantiateContract message. /// /// Since: 0.40 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgStoreAndInstantiateContractResponse { @@ -1931,6 +2043,7 @@ impl ::prost::Name for MsgStoreAndInstantiateContractResponse { } /// MsgAddCodeUploadParamsAddresses is the /// MsgAddCodeUploadParamsAddresses request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddCodeUploadParamsAddresses { @@ -1949,6 +2062,7 @@ impl ::prost::Name for MsgAddCodeUploadParamsAddresses { } /// MsgAddCodeUploadParamsAddressesResponse defines the response /// structure for executing a MsgAddCodeUploadParamsAddresses message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAddCodeUploadParamsAddressesResponse {} @@ -1961,6 +2075,7 @@ impl ::prost::Name for MsgAddCodeUploadParamsAddressesResponse { } /// MsgRemoveCodeUploadParamsAddresses is the /// MsgRemoveCodeUploadParamsAddresses request type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveCodeUploadParamsAddresses { @@ -1979,6 +2094,7 @@ impl ::prost::Name for MsgRemoveCodeUploadParamsAddresses { } /// MsgRemoveCodeUploadParamsAddressesResponse defines the response /// structure for executing a MsgRemoveCodeUploadParamsAddresses message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRemoveCodeUploadParamsAddressesResponse {} @@ -1993,6 +2109,7 @@ impl ::prost::Name for MsgRemoveCodeUploadParamsAddressesResponse { /// request type. /// /// Since: 0.42 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgStoreAndMigrateContract { @@ -2023,6 +2140,7 @@ impl ::prost::Name for MsgStoreAndMigrateContract { /// for executing a MsgStoreAndMigrateContract message. /// /// Since: 0.42 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgStoreAndMigrateContractResponse { @@ -2044,6 +2162,7 @@ impl ::prost::Name for MsgStoreAndMigrateContractResponse { } } /// MsgUpdateContractLabel sets a new label for a smart contract +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateContractLabel { @@ -2065,6 +2184,7 @@ impl ::prost::Name for MsgUpdateContractLabel { } } /// MsgUpdateContractLabelResponse returns empty data +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateContractLabelResponse {} diff --git a/packages/proto/src/gen/ibc.applications.fee.v1.rs b/packages/proto/src/gen/ibc.applications.fee.v1.rs index 0b1fe50..41e02f8 100644 --- a/packages/proto/src/gen/ibc.applications.fee.v1.rs +++ b/packages/proto/src/gen/ibc.applications.fee.v1.rs @@ -1,5 +1,6 @@ // @generated /// IncentivizedAcknowledgement is the acknowledgement format to be used by applications wrapped in the fee middleware +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IncentivizedAcknowledgement { @@ -21,6 +22,7 @@ impl ::prost::Name for IncentivizedAcknowledgement { } } /// Fee defines the ICS29 receive, acknowledgement and timeout fees +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Fee { @@ -43,6 +45,7 @@ impl ::prost::Name for Fee { } } /// PacketFee contains ICS29 relayer fees, refund address and optional list of permitted relayers +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketFee { @@ -64,6 +67,7 @@ impl ::prost::Name for PacketFee { } } /// PacketFees contains a list of type PacketFee +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketFees { @@ -79,6 +83,7 @@ impl ::prost::Name for PacketFees { } } /// IdentifiedPacketFees contains a list of type PacketFee and associated PacketId +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedPacketFees { @@ -97,6 +102,7 @@ impl ::prost::Name for IdentifiedPacketFees { } } /// GenesisState defines the ICS29 fee middleware genesis state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -124,6 +130,7 @@ impl ::prost::Name for GenesisState { } } /// FeeEnabledChannel contains the PortID & ChannelID for a fee enabled channel +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FeeEnabledChannel { @@ -142,6 +149,7 @@ impl ::prost::Name for FeeEnabledChannel { } } /// RegisteredPayee contains the relayer address and payee address for a specific channel +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisteredPayee { @@ -164,6 +172,7 @@ impl ::prost::Name for RegisteredPayee { } /// RegisteredCounterpartyPayee contains the relayer address and counterparty payee address for a specific channel (used /// for recv fee distribution) +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisteredCounterpartyPayee { @@ -185,6 +194,7 @@ impl ::prost::Name for RegisteredCounterpartyPayee { } } /// ForwardRelayerAddress contains the forward relayer address and PacketId used for async acknowledgements +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ForwardRelayerAddress { @@ -204,6 +214,7 @@ impl ::prost::Name for ForwardRelayerAddress { } /// Metadata defines the ICS29 channel specific metadata encoded into the channel version bytestring /// See ICS004: +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { @@ -222,6 +233,7 @@ impl ::prost::Name for Metadata { } } /// QueryIncentivizedPacketsRequest defines the request type for the IncentivizedPackets rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIncentivizedPacketsRequest { @@ -242,6 +254,7 @@ impl ::prost::Name for QueryIncentivizedPacketsRequest { } } /// QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPackets rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIncentivizedPacketsResponse { @@ -257,6 +270,7 @@ impl ::prost::Name for QueryIncentivizedPacketsResponse { } } /// QueryIncentivizedPacketRequest defines the request type for the IncentivizedPacket rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIncentivizedPacketRequest { @@ -275,6 +289,7 @@ impl ::prost::Name for QueryIncentivizedPacketRequest { } } /// QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPacket rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIncentivizedPacketResponse { @@ -291,6 +306,7 @@ impl ::prost::Name for QueryIncentivizedPacketResponse { } /// QueryIncentivizedPacketsForChannelRequest defines the request type for querying for all incentivized packets /// for a specific channel +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIncentivizedPacketsForChannelRequest { @@ -315,6 +331,7 @@ impl ::prost::Name for QueryIncentivizedPacketsForChannelRequest { } } /// QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryIncentivizedPacketsForChannelResponse { @@ -330,6 +347,7 @@ impl ::prost::Name for QueryIncentivizedPacketsForChannelResponse { } } /// QueryTotalRecvFeesRequest defines the request type for the TotalRecvFees rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalRecvFeesRequest { @@ -345,6 +363,7 @@ impl ::prost::Name for QueryTotalRecvFeesRequest { } } /// QueryTotalRecvFeesResponse defines the response type for the TotalRecvFees rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalRecvFeesResponse { @@ -361,6 +380,7 @@ impl ::prost::Name for QueryTotalRecvFeesResponse { } } /// QueryTotalAckFeesRequest defines the request type for the TotalAckFees rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalAckFeesRequest { @@ -376,6 +396,7 @@ impl ::prost::Name for QueryTotalAckFeesRequest { } } /// QueryTotalAckFeesResponse defines the response type for the TotalAckFees rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalAckFeesResponse { @@ -391,6 +412,7 @@ impl ::prost::Name for QueryTotalAckFeesResponse { } } /// QueryTotalTimeoutFeesRequest defines the request type for the TotalTimeoutFees rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalTimeoutFeesRequest { @@ -406,6 +428,7 @@ impl ::prost::Name for QueryTotalTimeoutFeesRequest { } } /// QueryTotalTimeoutFeesResponse defines the response type for the TotalTimeoutFees rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalTimeoutFeesResponse { @@ -422,6 +445,7 @@ impl ::prost::Name for QueryTotalTimeoutFeesResponse { } } /// QueryPayeeRequest defines the request type for the Payee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPayeeRequest { @@ -440,6 +464,7 @@ impl ::prost::Name for QueryPayeeRequest { } } /// QueryPayeeResponse defines the response type for the Payee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPayeeResponse { @@ -455,6 +480,7 @@ impl ::prost::Name for QueryPayeeResponse { } } /// QueryCounterpartyPayeeRequest defines the request type for the CounterpartyPayee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCounterpartyPayeeRequest { @@ -473,6 +499,7 @@ impl ::prost::Name for QueryCounterpartyPayeeRequest { } } /// QueryCounterpartyPayeeResponse defines the response type for the CounterpartyPayee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryCounterpartyPayeeResponse { @@ -488,6 +515,7 @@ impl ::prost::Name for QueryCounterpartyPayeeResponse { } } /// QueryFeeEnabledChannelsRequest defines the request type for the FeeEnabledChannels rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeEnabledChannelsRequest { @@ -508,6 +536,7 @@ impl ::prost::Name for QueryFeeEnabledChannelsRequest { } } /// QueryFeeEnabledChannelsResponse defines the response type for the FeeEnabledChannels rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeEnabledChannelsResponse { @@ -523,6 +552,7 @@ impl ::prost::Name for QueryFeeEnabledChannelsResponse { } } /// QueryFeeEnabledChannelRequest defines the request type for the FeeEnabledChannel rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeEnabledChannelRequest { @@ -541,6 +571,7 @@ impl ::prost::Name for QueryFeeEnabledChannelRequest { } } /// QueryFeeEnabledChannelResponse defines the response type for the FeeEnabledChannel rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryFeeEnabledChannelResponse { @@ -556,6 +587,7 @@ impl ::prost::Name for QueryFeeEnabledChannelResponse { } } /// MsgRegisterPayee defines the request type for the RegisterPayee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterPayee { @@ -580,6 +612,7 @@ impl ::prost::Name for MsgRegisterPayee { } } /// MsgRegisterPayeeResponse defines the response type for the RegisterPayee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterPayeeResponse {} @@ -591,6 +624,7 @@ impl ::prost::Name for MsgRegisterPayeeResponse { } } /// MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterCounterpartyPayee { @@ -615,6 +649,7 @@ impl ::prost::Name for MsgRegisterCounterpartyPayee { } } /// MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterCounterpartyPayeeResponse {} @@ -628,6 +663,7 @@ impl ::prost::Name for MsgRegisterCounterpartyPayeeResponse { /// MsgPayPacketFee defines the request type for the PayPacketFee rpc /// This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be /// paid for +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPayPacketFee { @@ -655,6 +691,7 @@ impl ::prost::Name for MsgPayPacketFee { } } /// MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPayPacketFeeResponse {} @@ -667,6 +704,7 @@ impl ::prost::Name for MsgPayPacketFeeResponse { } /// MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync rpc /// This Msg can be used to pay for a packet at a specified sequence (instead of the next sequence send) +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPayPacketFeeAsync { @@ -685,6 +723,7 @@ impl ::prost::Name for MsgPayPacketFeeAsync { } } /// MsgPayPacketFeeAsyncResponse defines the response type for the PayPacketFeeAsync rpc +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgPayPacketFeeAsyncResponse {} diff --git a/packages/proto/src/gen/ibc.applications.interchain_accounts.controller.v1.rs b/packages/proto/src/gen/ibc.applications.interchain_accounts.controller.v1.rs index c0cdb0d..c2d50ed 100644 --- a/packages/proto/src/gen/ibc.applications.interchain_accounts.controller.v1.rs +++ b/packages/proto/src/gen/ibc.applications.interchain_accounts.controller.v1.rs @@ -1,6 +1,7 @@ // @generated /// Params defines the set of on-chain interchain accounts parameters. /// The following parameters may be used to disable the controller submodule. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -19,6 +20,7 @@ impl ::prost::Name for Params { } } /// QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInterchainAccountRequest { @@ -38,6 +40,7 @@ impl ::prost::Name for QueryInterchainAccountRequest { } } /// QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryInterchainAccountResponse { @@ -55,6 +58,7 @@ impl ::prost::Name for QueryInterchainAccountResponse { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -69,6 +73,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -87,6 +92,7 @@ impl ::prost::Name for QueryParamsResponse { } } /// MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterInterchainAccount { @@ -108,6 +114,7 @@ impl ::prost::Name for MsgRegisterInterchainAccount { } } /// MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRegisterInterchainAccountResponse { @@ -127,6 +134,7 @@ impl ::prost::Name for MsgRegisterInterchainAccountResponse { } } /// MsgSendTx defines the payload for Msg/SendTx +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendTx { @@ -152,6 +160,7 @@ impl ::prost::Name for MsgSendTx { } } /// MsgSendTxResponse defines the response for MsgSendTx +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSendTxResponse { diff --git a/packages/proto/src/gen/ibc.applications.interchain_accounts.genesis.v1.rs b/packages/proto/src/gen/ibc.applications.interchain_accounts.genesis.v1.rs index ca4cce7..4fe091b 100644 --- a/packages/proto/src/gen/ibc.applications.interchain_accounts.genesis.v1.rs +++ b/packages/proto/src/gen/ibc.applications.interchain_accounts.genesis.v1.rs @@ -1,5 +1,6 @@ // @generated /// GenesisState defines the interchain accounts genesis state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -19,6 +20,7 @@ impl ::prost::Name for GenesisState { } } /// ControllerGenesisState defines the interchain accounts controller genesis state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ControllerGenesisState { @@ -42,6 +44,7 @@ impl ::prost::Name for ControllerGenesisState { } } /// HostGenesisState defines the interchain accounts host genesis state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HostGenesisState { @@ -66,6 +69,7 @@ impl ::prost::Name for HostGenesisState { } /// ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to /// indicate if the channel is middleware enabled +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ActiveChannel { @@ -89,6 +93,7 @@ impl ::prost::Name for ActiveChannel { } } /// RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisteredInterchainAccount { diff --git a/packages/proto/src/gen/ibc.applications.interchain_accounts.host.v1.rs b/packages/proto/src/gen/ibc.applications.interchain_accounts.host.v1.rs index 2d6c88a..d406107 100644 --- a/packages/proto/src/gen/ibc.applications.interchain_accounts.host.v1.rs +++ b/packages/proto/src/gen/ibc.applications.interchain_accounts.host.v1.rs @@ -1,6 +1,7 @@ // @generated /// Params defines the set of on-chain interchain accounts parameters. /// The following parameters may be used to disable the host submodule. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -22,6 +23,7 @@ impl ::prost::Name for Params { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -36,6 +38,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { diff --git a/packages/proto/src/gen/ibc.applications.interchain_accounts.v1.rs b/packages/proto/src/gen/ibc.applications.interchain_accounts.v1.rs index d1949f9..230e765 100644 --- a/packages/proto/src/gen/ibc.applications.interchain_accounts.v1.rs +++ b/packages/proto/src/gen/ibc.applications.interchain_accounts.v1.rs @@ -1,5 +1,6 @@ // @generated /// InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterchainAccountPacketData { @@ -18,11 +19,12 @@ impl ::prost::Name for InterchainAccountPacketData { } } /// CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CosmosTx { #[prost(message, repeated, tag = "1")] - pub messages: ::prost::alloc::vec::Vec<::prost_types::Any>, + pub messages: ::prost::alloc::vec::Vec<::pbjson_types::Any>, } impl ::prost::Name for CosmosTx { const NAME: &'static str = "CosmosTx"; @@ -33,7 +35,19 @@ impl ::prost::Name for CosmosTx { } /// Type defines a classification of message issued from a controller chain to its associated interchain accounts /// host -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum Type { /// Default zero value enumeration @@ -62,6 +76,7 @@ impl Type { } } /// An InterchainAccount is defined as a BaseAccount & the address of the account owner on the controller chain +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InterchainAccount { @@ -80,6 +95,7 @@ impl ::prost::Name for InterchainAccount { } /// Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring /// See ICS004: +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Metadata { diff --git a/packages/proto/src/gen/ibc.applications.transfer.v1.rs b/packages/proto/src/gen/ibc.applications.transfer.v1.rs index df95e34..0c4cab2 100644 --- a/packages/proto/src/gen/ibc.applications.transfer.v1.rs +++ b/packages/proto/src/gen/ibc.applications.transfer.v1.rs @@ -1,5 +1,6 @@ // @generated /// Allocation defines the spend limit for a particular port and channel +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Allocation { @@ -26,6 +27,7 @@ impl ::prost::Name for Allocation { } /// TransferAuthorization allows the grantee to spend up to spend_limit coins from /// the granter's account for ibc transfer on a specific channel +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TransferAuthorization { @@ -42,6 +44,7 @@ impl ::prost::Name for TransferAuthorization { } /// DenomTrace contains the base denomination for ICS20 fungible tokens and the /// source tracing information path. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DenomTrace { @@ -64,6 +67,7 @@ impl ::prost::Name for DenomTrace { /// NOTE: To prevent a single token from being transferred, set the /// TransfersEnabled parameter to true and then set the bank module's SendEnabled /// parameter for the denomination to false. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -84,6 +88,7 @@ impl ::prost::Name for Params { } } /// GenesisState defines the ibc-transfer genesis state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -108,6 +113,7 @@ impl ::prost::Name for GenesisState { } /// QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTraceRequest { @@ -124,6 +130,7 @@ impl ::prost::Name for QueryDenomTraceRequest { } /// QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTraceResponse { @@ -140,6 +147,7 @@ impl ::prost::Name for QueryDenomTraceResponse { } /// QueryConnectionsRequest is the request type for the Query/DenomTraces RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTracesRequest { @@ -158,6 +166,7 @@ impl ::prost::Name for QueryDenomTracesRequest { } /// QueryConnectionsResponse is the response type for the Query/DenomTraces RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomTracesResponse { @@ -178,6 +187,7 @@ impl ::prost::Name for QueryDenomTracesResponse { } } /// QueryParamsRequest is the request type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -189,6 +199,7 @@ impl ::prost::Name for QueryParamsRequest { } } /// QueryParamsResponse is the response type for the Query/Params RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsResponse { @@ -205,6 +216,7 @@ impl ::prost::Name for QueryParamsResponse { } /// QueryDenomHashRequest is the request type for the Query/DenomHash RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomHashRequest { @@ -221,6 +233,7 @@ impl ::prost::Name for QueryDenomHashRequest { } /// QueryDenomHashResponse is the response type for the Query/DenomHash RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryDenomHashResponse { @@ -236,6 +249,7 @@ impl ::prost::Name for QueryDenomHashResponse { } } /// QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEscrowAddressRequest { @@ -254,6 +268,7 @@ impl ::prost::Name for QueryEscrowAddressRequest { } } /// QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryEscrowAddressResponse { @@ -269,6 +284,7 @@ impl ::prost::Name for QueryEscrowAddressResponse { } } /// QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalEscrowForDenomRequest { @@ -283,6 +299,7 @@ impl ::prost::Name for QueryTotalEscrowForDenomRequest { } } /// QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryTotalEscrowForDenomResponse { @@ -299,6 +316,7 @@ impl ::prost::Name for QueryTotalEscrowForDenomResponse { /// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between /// ICS20 enabled chains. See ICS Spec here: /// +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTransfer { @@ -337,6 +355,7 @@ impl ::prost::Name for MsgTransfer { } } /// MsgTransferResponse defines the Msg/Transfer response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTransferResponse { diff --git a/packages/proto/src/gen/ibc.applications.transfer.v2.rs b/packages/proto/src/gen/ibc.applications.transfer.v2.rs index b8afb21..0ac7347 100644 --- a/packages/proto/src/gen/ibc.applications.transfer.v2.rs +++ b/packages/proto/src/gen/ibc.applications.transfer.v2.rs @@ -2,6 +2,7 @@ /// FungibleTokenPacketData defines a struct for the packet payload /// See FungibleTokenPacketData spec: /// +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FungibleTokenPacketData { diff --git a/packages/proto/src/gen/ibc.core.channel.v1.rs b/packages/proto/src/gen/ibc.core.channel.v1.rs index c29472d..7df4151 100644 --- a/packages/proto/src/gen/ibc.core.channel.v1.rs +++ b/packages/proto/src/gen/ibc.core.channel.v1.rs @@ -2,6 +2,7 @@ /// Channel defines pipeline for exactly-once packet delivery between specific /// modules on separate blockchains, which has at least one end capable of /// sending packets and one end capable of receiving packets. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Channel { @@ -31,6 +32,7 @@ impl ::prost::Name for Channel { } /// IdentifiedChannel defines a channel with additional port and channel /// identifier fields. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedChannel { @@ -65,6 +67,7 @@ impl ::prost::Name for IdentifiedChannel { } } /// Counterparty defines a channel end counterparty +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Counterparty { @@ -83,6 +86,7 @@ impl ::prost::Name for Counterparty { } } /// Packet defines a type that carries data across different chains through IBC +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Packet { @@ -124,6 +128,7 @@ impl ::prost::Name for Packet { /// packet commitments, acknowledgements, and receipts. /// Caller is responsible for knowing the context necessary to interpret this /// state as a commitment, acknowledgement, or a receipt. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketState { @@ -150,6 +155,7 @@ impl ::prost::Name for PacketState { /// PacketId is an identifer for a unique Packet /// Source chains refer to packets by source port/channel /// Destination chains refer to packets by destination port/channel +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketId { @@ -177,6 +183,7 @@ impl ::prost::Name for PacketId { /// The first byte of any message with this format will be the non-ASCII values /// `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: /// +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Acknowledgement { @@ -187,6 +194,7 @@ pub struct Acknowledgement { /// Nested message and enum types in `Acknowledgement`. pub mod acknowledgement { /// response contains either a result or an error and must be non-empty + #[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Response { @@ -205,7 +213,19 @@ impl ::prost::Name for Acknowledgement { } /// State defines if a channel is in one of the following states: /// CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum State { /// Default State @@ -248,7 +268,19 @@ impl State { } } /// Order defines if a channel is ORDERED or UNORDERED -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum Order { /// zero-value for channel ordering @@ -282,6 +314,7 @@ impl Order { } } /// GenesisState defines the ibc channel submodule's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -312,6 +345,7 @@ impl ::prost::Name for GenesisState { } /// PacketSequence defines the genesis type necessary to retrieve and store /// next send and receive sequences. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketSequence { @@ -330,6 +364,7 @@ impl ::prost::Name for PacketSequence { } } /// QueryChannelRequest is the request type for the Query/Channel RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelRequest { @@ -350,6 +385,7 @@ impl ::prost::Name for QueryChannelRequest { /// QueryChannelResponse is the response type for the Query/Channel RPC method. /// Besides the Channel end, it includes a proof and the height from which the /// proof was retrieved. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelResponse { @@ -371,6 +407,7 @@ impl ::prost::Name for QueryChannelResponse { } } /// QueryChannelsRequest is the request type for the Query/Channels RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelsRequest { @@ -388,6 +425,7 @@ impl ::prost::Name for QueryChannelsRequest { } } /// QueryChannelsResponse is the response type for the Query/Channels RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelsResponse { @@ -412,6 +450,7 @@ impl ::prost::Name for QueryChannelsResponse { } /// QueryConnectionChannelsRequest is the request type for the /// Query/QueryConnectionChannels RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionChannelsRequest { @@ -433,6 +472,7 @@ impl ::prost::Name for QueryConnectionChannelsRequest { } /// QueryConnectionChannelsResponse is the Response type for the /// Query/QueryConnectionChannels RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionChannelsResponse { @@ -457,6 +497,7 @@ impl ::prost::Name for QueryConnectionChannelsResponse { } /// QueryChannelClientStateRequest is the request type for the Query/ClientState /// RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelClientStateRequest { @@ -476,6 +517,7 @@ impl ::prost::Name for QueryChannelClientStateRequest { } /// QueryChannelClientStateResponse is the Response type for the /// Query/QueryChannelClientState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelClientStateResponse { @@ -499,6 +541,7 @@ impl ::prost::Name for QueryChannelClientStateResponse { } /// QueryChannelConsensusStateRequest is the request type for the /// Query/ConsensusState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelConsensusStateRequest { @@ -524,12 +567,13 @@ impl ::prost::Name for QueryChannelConsensusStateRequest { } /// QueryChannelClientStateResponse is the Response type for the /// Query/QueryChannelClientState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryChannelConsensusStateResponse { /// consensus state associated with the channel #[prost(message, optional, tag = "1")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, /// client ID associated with the consensus state #[prost(string, tag = "2")] pub client_id: ::prost::alloc::string::String, @@ -549,6 +593,7 @@ impl ::prost::Name for QueryChannelConsensusStateResponse { } /// QueryPacketCommitmentRequest is the request type for the /// Query/PacketCommitment RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentRequest { @@ -572,6 +617,7 @@ impl ::prost::Name for QueryPacketCommitmentRequest { /// QueryPacketCommitmentResponse defines the client query response for a packet /// which also includes a proof and the height from which the proof was /// retrieved +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentResponse { @@ -594,6 +640,7 @@ impl ::prost::Name for QueryPacketCommitmentResponse { } /// QueryPacketCommitmentsRequest is the request type for the /// Query/QueryPacketCommitments RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentsRequest { @@ -618,6 +665,7 @@ impl ::prost::Name for QueryPacketCommitmentsRequest { } /// QueryPacketCommitmentsResponse is the request type for the /// Query/QueryPacketCommitments RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketCommitmentsResponse { @@ -641,6 +689,7 @@ impl ::prost::Name for QueryPacketCommitmentsResponse { } /// QueryPacketReceiptRequest is the request type for the /// Query/PacketReceipt RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketReceiptRequest { @@ -664,6 +713,7 @@ impl ::prost::Name for QueryPacketReceiptRequest { /// QueryPacketReceiptResponse defines the client query response for a packet /// receipt which also includes a proof, and the height from which the proof was /// retrieved +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketReceiptResponse { @@ -686,6 +736,7 @@ impl ::prost::Name for QueryPacketReceiptResponse { } /// QueryPacketAcknowledgementRequest is the request type for the /// Query/PacketAcknowledgement RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementRequest { @@ -709,6 +760,7 @@ impl ::prost::Name for QueryPacketAcknowledgementRequest { /// QueryPacketAcknowledgementResponse defines the client query response for a /// packet which also includes a proof and the height from which the /// proof was retrieved +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementResponse { @@ -731,6 +783,7 @@ impl ::prost::Name for QueryPacketAcknowledgementResponse { } /// QueryPacketAcknowledgementsRequest is the request type for the /// Query/QueryPacketCommitments RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementsRequest { @@ -758,6 +811,7 @@ impl ::prost::Name for QueryPacketAcknowledgementsRequest { } /// QueryPacketAcknowledgemetsResponse is the request type for the /// Query/QueryPacketAcknowledgements RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryPacketAcknowledgementsResponse { @@ -781,6 +835,7 @@ impl ::prost::Name for QueryPacketAcknowledgementsResponse { } /// QueryUnreceivedPacketsRequest is the request type for the /// Query/UnreceivedPackets RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedPacketsRequest { @@ -803,6 +858,7 @@ impl ::prost::Name for QueryUnreceivedPacketsRequest { } /// QueryUnreceivedPacketsResponse is the response type for the /// Query/UnreceivedPacketCommitments RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedPacketsResponse { @@ -822,6 +878,7 @@ impl ::prost::Name for QueryUnreceivedPacketsResponse { } /// QueryUnreceivedAcks is the request type for the /// Query/UnreceivedAcks RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedAcksRequest { @@ -844,6 +901,7 @@ impl ::prost::Name for QueryUnreceivedAcksRequest { } /// QueryUnreceivedAcksResponse is the response type for the /// Query/UnreceivedAcks RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUnreceivedAcksResponse { @@ -863,6 +921,7 @@ impl ::prost::Name for QueryUnreceivedAcksResponse { } /// QueryNextSequenceReceiveRequest is the request type for the /// Query/QueryNextSequenceReceiveRequest RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNextSequenceReceiveRequest { @@ -882,6 +941,7 @@ impl ::prost::Name for QueryNextSequenceReceiveRequest { } /// QuerySequenceResponse is the request type for the /// Query/QueryNextSequenceReceiveResponse RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryNextSequenceReceiveResponse { @@ -904,6 +964,7 @@ impl ::prost::Name for QueryNextSequenceReceiveResponse { } /// MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It /// is called by a relayer on Chain A. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenInit { @@ -922,6 +983,7 @@ impl ::prost::Name for MsgChannelOpenInit { } } /// MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenInitResponse { @@ -940,6 +1002,7 @@ impl ::prost::Name for MsgChannelOpenInitResponse { /// MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel /// on Chain B. The version field within the Channel field has been deprecated. Its /// value will be ignored by core IBC. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenTry { @@ -969,6 +1032,7 @@ impl ::prost::Name for MsgChannelOpenTry { } } /// MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenTryResponse { @@ -986,6 +1050,7 @@ impl ::prost::Name for MsgChannelOpenTryResponse { } /// MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge /// the change of channel state to TRYOPEN on Chain B. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenAck { @@ -1012,6 +1077,7 @@ impl ::prost::Name for MsgChannelOpenAck { } } /// MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenAckResponse {} @@ -1024,6 +1090,7 @@ impl ::prost::Name for MsgChannelOpenAckResponse { } /// MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to /// acknowledge the change of channel state to OPEN on Chain A. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenConfirm { @@ -1047,6 +1114,7 @@ impl ::prost::Name for MsgChannelOpenConfirm { } /// MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response /// type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelOpenConfirmResponse {} @@ -1059,6 +1127,7 @@ impl ::prost::Name for MsgChannelOpenConfirmResponse { } /// MsgChannelCloseInit defines a msg sent by a Relayer to Chain A /// to close a channel with Chain B. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseInit { @@ -1077,6 +1146,7 @@ impl ::prost::Name for MsgChannelCloseInit { } } /// MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseInitResponse {} @@ -1089,6 +1159,7 @@ impl ::prost::Name for MsgChannelCloseInitResponse { } /// MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B /// to acknowledge the change of channel state to CLOSED on Chain A. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseConfirm { @@ -1112,6 +1183,7 @@ impl ::prost::Name for MsgChannelCloseConfirm { } /// MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response /// type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgChannelCloseConfirmResponse {} @@ -1123,6 +1195,7 @@ impl ::prost::Name for MsgChannelCloseConfirmResponse { } } /// MsgRecvPacket receives incoming IBC packet +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRecvPacket { @@ -1143,6 +1216,7 @@ impl ::prost::Name for MsgRecvPacket { } } /// MsgRecvPacketResponse defines the Msg/RecvPacket response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgRecvPacketResponse { @@ -1157,6 +1231,7 @@ impl ::prost::Name for MsgRecvPacketResponse { } } /// MsgTimeout receives timed-out packet +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTimeout { @@ -1179,6 +1254,7 @@ impl ::prost::Name for MsgTimeout { } } /// MsgTimeoutResponse defines the Msg/Timeout response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTimeoutResponse { @@ -1193,6 +1269,7 @@ impl ::prost::Name for MsgTimeoutResponse { } } /// MsgTimeoutOnClose timed-out packet upon counterparty channel closure. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTimeoutOnClose { @@ -1217,6 +1294,7 @@ impl ::prost::Name for MsgTimeoutOnClose { } } /// MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgTimeoutOnCloseResponse { @@ -1231,6 +1309,7 @@ impl ::prost::Name for MsgTimeoutOnCloseResponse { } } /// MsgAcknowledgement receives incoming IBC acknowledgement +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAcknowledgement { @@ -1253,6 +1332,7 @@ impl ::prost::Name for MsgAcknowledgement { } } /// MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgAcknowledgementResponse { @@ -1267,7 +1347,19 @@ impl ::prost::Name for MsgAcknowledgementResponse { } } /// ResponseResultType defines the possible outcomes of the execution of a message -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum ResponseResultType { /// Default zero value enumeration diff --git a/packages/proto/src/gen/ibc.core.client.v1.rs b/packages/proto/src/gen/ibc.core.client.v1.rs index e1a2dd1..15d8273 100644 --- a/packages/proto/src/gen/ibc.core.client.v1.rs +++ b/packages/proto/src/gen/ibc.core.client.v1.rs @@ -1,6 +1,7 @@ // @generated /// IdentifiedClientState defines a client state with an additional client /// identifier field. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedClientState { @@ -9,7 +10,7 @@ pub struct IdentifiedClientState { pub client_id: ::prost::alloc::string::String, /// client state #[prost(message, optional, tag = "2")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for IdentifiedClientState { const NAME: &'static str = "IdentifiedClientState"; @@ -20,6 +21,7 @@ impl ::prost::Name for IdentifiedClientState { } /// ConsensusStateWithHeight defines a consensus state with an additional height /// field. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusStateWithHeight { @@ -28,7 +30,7 @@ pub struct ConsensusStateWithHeight { pub height: ::core::option::Option, /// consensus state #[prost(message, optional, tag = "2")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for ConsensusStateWithHeight { const NAME: &'static str = "ConsensusStateWithHeight"; @@ -39,6 +41,7 @@ impl ::prost::Name for ConsensusStateWithHeight { } /// ClientConsensusStates defines all the stored consensus states for a given /// client. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientConsensusStates { @@ -60,6 +63,7 @@ impl ::prost::Name for ClientConsensusStates { /// client's latest consensus state is copied over to the subject client. The proposal /// handler may fail if the subject and the substitute do not match in client and /// chain parameters (with exception to latest height, frozen height, and chain-id). +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientUpdateProposal { @@ -86,6 +90,7 @@ impl ::prost::Name for ClientUpdateProposal { } /// UpgradeProposal is a gov Content type for initiating an IBC breaking /// upgrade. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpgradeProposal { @@ -102,7 +107,7 @@ pub struct UpgradeProposal { /// of the chain. This will allow IBC connections to persist smoothly across /// planned chain upgrades #[prost(message, optional, tag = "4")] - pub upgraded_client_state: ::core::option::Option<::prost_types::Any>, + pub upgraded_client_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for UpgradeProposal { const NAME: &'static str = "UpgradeProposal"; @@ -121,6 +126,7 @@ impl ::prost::Name for UpgradeProposal { /// breaking changes In these cases, the RevisionNumber is incremented so that /// height continues to be monitonically increasing even as the RevisionHeight /// gets reset +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Height { @@ -139,6 +145,7 @@ impl ::prost::Name for Height { } } /// Params defines the set of IBC light client parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -156,6 +163,7 @@ impl ::prost::Name for Params { } } /// GenesisState defines the ibc client submodule's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -186,6 +194,7 @@ impl ::prost::Name for GenesisState { } /// GenesisMetadata defines the genesis type for metadata that clients may return /// with ExportMetadata +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisMetadata { @@ -205,6 +214,7 @@ impl ::prost::Name for GenesisMetadata { } /// IdentifiedGenesisMetadata has the client metadata with the corresponding /// client id. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedGenesisMetadata { @@ -222,6 +232,7 @@ impl ::prost::Name for IdentifiedGenesisMetadata { } /// QueryClientStateRequest is the request type for the Query/ClientState RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStateRequest { @@ -239,12 +250,13 @@ impl ::prost::Name for QueryClientStateRequest { /// QueryClientStateResponse is the response type for the Query/ClientState RPC /// method. Besides the client state, it includes a proof and the height from /// which the proof was retrieved. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStateResponse { /// client state associated with the request identifier #[prost(message, optional, tag = "1")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, /// merkle proof of existence #[prost(bytes = "vec", tag = "2")] pub proof: ::prost::alloc::vec::Vec, @@ -261,6 +273,7 @@ impl ::prost::Name for QueryClientStateResponse { } /// QueryClientStatesRequest is the request type for the Query/ClientStates RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatesRequest { @@ -279,6 +292,7 @@ impl ::prost::Name for QueryClientStatesRequest { } /// QueryClientStatesResponse is the response type for the Query/ClientStates RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatesResponse { @@ -301,6 +315,7 @@ impl ::prost::Name for QueryClientStatesResponse { /// QueryConsensusStateRequest is the request type for the Query/ConsensusState /// RPC method. Besides the consensus state, it includes a proof and the height /// from which the proof was retrieved. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateRequest { @@ -327,12 +342,13 @@ impl ::prost::Name for QueryConsensusStateRequest { } /// QueryConsensusStateResponse is the response type for the Query/ConsensusState /// RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateResponse { /// consensus state associated with the client identifier at the given height #[prost(message, optional, tag = "1")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, /// merkle proof of existence #[prost(bytes = "vec", tag = "2")] pub proof: ::prost::alloc::vec::Vec, @@ -349,6 +365,7 @@ impl ::prost::Name for QueryConsensusStateResponse { } /// QueryConsensusStatesRequest is the request type for the Query/ConsensusStates /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStatesRequest { @@ -370,6 +387,7 @@ impl ::prost::Name for QueryConsensusStatesRequest { } /// QueryConsensusStatesResponse is the response type for the /// Query/ConsensusStates RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStatesResponse { @@ -391,6 +409,7 @@ impl ::prost::Name for QueryConsensusStatesResponse { } /// QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights /// RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateHeightsRequest { @@ -412,6 +431,7 @@ impl ::prost::Name for QueryConsensusStateHeightsRequest { } /// QueryConsensusStateHeightsResponse is the response type for the /// Query/ConsensusStateHeights RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConsensusStateHeightsResponse { @@ -433,6 +453,7 @@ impl ::prost::Name for QueryConsensusStateHeightsResponse { } /// QueryClientStatusRequest is the request type for the Query/ClientStatus RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatusRequest { @@ -449,6 +470,7 @@ impl ::prost::Name for QueryClientStatusRequest { } /// QueryClientStatusResponse is the response type for the Query/ClientStatus RPC /// method. It returns the current status of the IBC client. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientStatusResponse { @@ -464,6 +486,7 @@ impl ::prost::Name for QueryClientStatusResponse { } /// QueryClientParamsRequest is the request type for the Query/ClientParams RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientParamsRequest {} @@ -476,6 +499,7 @@ impl ::prost::Name for QueryClientParamsRequest { } /// QueryClientParamsResponse is the response type for the Query/ClientParams RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientParamsResponse { @@ -492,6 +516,7 @@ impl ::prost::Name for QueryClientParamsResponse { } /// QueryUpgradedClientStateRequest is the request type for the /// Query/UpgradedClientState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedClientStateRequest {} @@ -504,12 +529,13 @@ impl ::prost::Name for QueryUpgradedClientStateRequest { } /// QueryUpgradedClientStateResponse is the response type for the /// Query/UpgradedClientState RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedClientStateResponse { /// client state associated with the request identifier #[prost(message, optional, tag = "1")] - pub upgraded_client_state: ::core::option::Option<::prost_types::Any>, + pub upgraded_client_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for QueryUpgradedClientStateResponse { const NAME: &'static str = "QueryUpgradedClientStateResponse"; @@ -520,6 +546,7 @@ impl ::prost::Name for QueryUpgradedClientStateResponse { } /// QueryUpgradedConsensusStateRequest is the request type for the /// Query/UpgradedConsensusState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateRequest {} @@ -532,12 +559,13 @@ impl ::prost::Name for QueryUpgradedConsensusStateRequest { } /// QueryUpgradedConsensusStateResponse is the response type for the /// Query/UpgradedConsensusState RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryUpgradedConsensusStateResponse { /// Consensus state associated with the request identifier #[prost(message, optional, tag = "1")] - pub upgraded_consensus_state: ::core::option::Option<::prost_types::Any>, + pub upgraded_consensus_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for QueryUpgradedConsensusStateResponse { const NAME: &'static str = "QueryUpgradedConsensusStateResponse"; @@ -547,16 +575,17 @@ impl ::prost::Name for QueryUpgradedConsensusStateResponse { } } /// MsgCreateClient defines a message to create an IBC client +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateClient { /// light client state #[prost(message, optional, tag = "1")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, /// consensus state associated with the client that corresponds to a given /// height. #[prost(message, optional, tag = "2")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, /// signer address #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, @@ -569,6 +598,7 @@ impl ::prost::Name for MsgCreateClient { } } /// MsgCreateClientResponse defines the Msg/CreateClient response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgCreateClientResponse {} @@ -581,6 +611,7 @@ impl ::prost::Name for MsgCreateClientResponse { } /// MsgUpdateClient defines an sdk.Msg to update a IBC client state using /// the given client message. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateClient { @@ -589,7 +620,7 @@ pub struct MsgUpdateClient { pub client_id: ::prost::alloc::string::String, /// client message to update the light client #[prost(message, optional, tag = "2")] - pub client_message: ::core::option::Option<::prost_types::Any>, + pub client_message: ::core::option::Option<::pbjson_types::Any>, /// signer address #[prost(string, tag = "3")] pub signer: ::prost::alloc::string::String, @@ -602,6 +633,7 @@ impl ::prost::Name for MsgUpdateClient { } } /// MsgUpdateClientResponse defines the Msg/UpdateClient response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpdateClientResponse {} @@ -614,6 +646,7 @@ impl ::prost::Name for MsgUpdateClientResponse { } /// MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client /// state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpgradeClient { @@ -622,11 +655,11 @@ pub struct MsgUpgradeClient { pub client_id: ::prost::alloc::string::String, /// upgraded client state #[prost(message, optional, tag = "2")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, /// upgraded consensus state, only contains enough information to serve as a /// basis of trust in update logic #[prost(message, optional, tag = "3")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, /// proof that old chain committed to new client #[prost(bytes = "vec", tag = "4")] pub proof_upgrade_client: ::prost::alloc::vec::Vec, @@ -645,6 +678,7 @@ impl ::prost::Name for MsgUpgradeClient { } } /// MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgUpgradeClientResponse {} @@ -658,6 +692,7 @@ impl ::prost::Name for MsgUpgradeClientResponse { /// MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for /// light client misbehaviour. /// Warning: DEPRECATED +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitMisbehaviour { @@ -668,7 +703,7 @@ pub struct MsgSubmitMisbehaviour { /// misbehaviour used for freezing the light client #[deprecated] #[prost(message, optional, tag = "2")] - pub misbehaviour: ::core::option::Option<::prost_types::Any>, + pub misbehaviour: ::core::option::Option<::pbjson_types::Any>, /// signer address #[deprecated] #[prost(string, tag = "3")] @@ -683,6 +718,7 @@ impl ::prost::Name for MsgSubmitMisbehaviour { } /// MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response /// type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgSubmitMisbehaviourResponse {} diff --git a/packages/proto/src/gen/ibc.core.commitment.v1.rs b/packages/proto/src/gen/ibc.core.commitment.v1.rs index 1512ca7..ad02404 100644 --- a/packages/proto/src/gen/ibc.core.commitment.v1.rs +++ b/packages/proto/src/gen/ibc.core.commitment.v1.rs @@ -1,6 +1,7 @@ // @generated /// MerkleRoot defines a merkle root hash. /// In the Cosmos SDK, the AppHash of a block header becomes the root. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerkleRoot { @@ -17,6 +18,7 @@ impl ::prost::Name for MerkleRoot { /// MerklePrefix is merkle path prefixed to the key. /// The constructed key from the Path and the key will be append(Path.KeyPath, /// append(Path.KeyPrefix, key...)) +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerklePrefix { @@ -33,6 +35,7 @@ impl ::prost::Name for MerklePrefix { /// MerklePath is the path used to verify commitment proofs, which can be an /// arbitrary structured object (defined by a commitment type). /// MerklePath is represented from root-to-leaf +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerklePath { @@ -51,6 +54,7 @@ impl ::prost::Name for MerklePath { /// elements, verifiable in conjunction with a known commitment root. Proofs /// should be succinct. /// MerkleProofs are ordered from leaf-to-root +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MerkleProof { diff --git a/packages/proto/src/gen/ibc.core.connection.v1.rs b/packages/proto/src/gen/ibc.core.connection.v1.rs index f9a6890..ae6f30f 100644 --- a/packages/proto/src/gen/ibc.core.connection.v1.rs +++ b/packages/proto/src/gen/ibc.core.connection.v1.rs @@ -6,6 +6,7 @@ /// separate one. /// NOTE: there must only be 2 defined ConnectionEnds to establish /// a connection between two chains. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionEnd { @@ -37,6 +38,7 @@ impl ::prost::Name for ConnectionEnd { } /// IdentifiedConnection defines a connection with additional connection /// identifier field. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IdentifiedConnection { @@ -68,6 +70,7 @@ impl ::prost::Name for IdentifiedConnection { } } /// Counterparty defines the counterparty chain associated with a connection end. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Counterparty { @@ -91,6 +94,7 @@ impl ::prost::Name for Counterparty { } } /// ClientPaths define all the connection paths for a client state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientPaths { @@ -106,6 +110,7 @@ impl ::prost::Name for ClientPaths { } } /// ConnectionPaths define all the connection paths for a given client state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionPaths { @@ -125,6 +130,7 @@ impl ::prost::Name for ConnectionPaths { } /// Version defines the versioning scheme used to negotiate the IBC verison in /// the connection handshake. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Version { @@ -143,6 +149,7 @@ impl ::prost::Name for Version { } } /// Params defines the set of Connection parameters. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -161,7 +168,19 @@ impl ::prost::Name for Params { } /// State defines if a connection is in one of the following states: /// INIT, TRYOPEN, OPEN or UNINITIALIZED. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum State { /// Default State @@ -199,6 +218,7 @@ impl State { } } /// GenesisState defines the ibc connection submodule's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { @@ -221,6 +241,7 @@ impl ::prost::Name for GenesisState { } /// QueryConnectionRequest is the request type for the Query/Connection RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionRequest { @@ -238,6 +259,7 @@ impl ::prost::Name for QueryConnectionRequest { /// QueryConnectionResponse is the response type for the Query/Connection RPC /// method. Besides the connection end, it includes a proof and the height from /// which the proof was retrieved. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionResponse { @@ -260,6 +282,7 @@ impl ::prost::Name for QueryConnectionResponse { } /// QueryConnectionsRequest is the request type for the Query/Connections RPC /// method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionsRequest { @@ -277,6 +300,7 @@ impl ::prost::Name for QueryConnectionsRequest { } /// QueryConnectionsResponse is the response type for the Query/Connections RPC /// method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionsResponse { @@ -301,6 +325,7 @@ impl ::prost::Name for QueryConnectionsResponse { } /// QueryClientConnectionsRequest is the request type for the /// Query/ClientConnections RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientConnectionsRequest { @@ -317,6 +342,7 @@ impl ::prost::Name for QueryClientConnectionsRequest { } /// QueryClientConnectionsResponse is the response type for the /// Query/ClientConnections RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryClientConnectionsResponse { @@ -339,6 +365,7 @@ impl ::prost::Name for QueryClientConnectionsResponse { } /// QueryConnectionClientStateRequest is the request type for the /// Query/ConnectionClientState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionClientStateRequest { @@ -355,6 +382,7 @@ impl ::prost::Name for QueryConnectionClientStateRequest { } /// QueryConnectionClientStateResponse is the response type for the /// Query/ConnectionClientState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionClientStateResponse { @@ -378,6 +406,7 @@ impl ::prost::Name for QueryConnectionClientStateResponse { } /// QueryConnectionConsensusStateRequest is the request type for the /// Query/ConnectionConsensusState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionConsensusStateRequest { @@ -398,12 +427,13 @@ impl ::prost::Name for QueryConnectionConsensusStateRequest { } /// QueryConnectionConsensusStateResponse is the response type for the /// Query/ConnectionConsensusState RPC method +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionConsensusStateResponse { /// consensus state associated with the channel #[prost(message, optional, tag = "1")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, /// client ID associated with the consensus state #[prost(string, tag = "2")] pub client_id: ::prost::alloc::string::String, @@ -422,6 +452,7 @@ impl ::prost::Name for QueryConnectionConsensusStateResponse { } } /// QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionParamsRequest {} @@ -433,6 +464,7 @@ impl ::prost::Name for QueryConnectionParamsRequest { } } /// QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryConnectionParamsResponse { @@ -449,6 +481,7 @@ impl ::prost::Name for QueryConnectionParamsResponse { } /// MsgConnectionOpenInit defines the msg sent by an account on Chain A to /// initialize a connection with Chain B. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenInit { @@ -472,6 +505,7 @@ impl ::prost::Name for MsgConnectionOpenInit { } /// MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response /// type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenInitResponse {} @@ -484,6 +518,7 @@ impl ::prost::Name for MsgConnectionOpenInitResponse { } /// MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a /// connection on Chain B. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenTry { @@ -494,7 +529,7 @@ pub struct MsgConnectionOpenTry { #[prost(string, tag = "2")] pub previous_connection_id: ::prost::alloc::string::String, #[prost(message, optional, tag = "3")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, #[prost(message, optional, tag = "4")] pub counterparty: ::core::option::Option, #[prost(uint64, tag = "5")] @@ -529,6 +564,7 @@ impl ::prost::Name for MsgConnectionOpenTry { } } /// MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenTryResponse {} @@ -541,6 +577,7 @@ impl ::prost::Name for MsgConnectionOpenTryResponse { } /// MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to /// acknowledge the change of connection state to TRYOPEN on Chain B. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenAck { @@ -551,7 +588,7 @@ pub struct MsgConnectionOpenAck { #[prost(message, optional, tag = "3")] pub version: ::core::option::Option, #[prost(message, optional, tag = "4")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, #[prost(message, optional, tag = "5")] pub proof_height: ::core::option::Option, /// proof of the initialization the connection on Chain B: `UNITIALIZED -> @@ -580,6 +617,7 @@ impl ::prost::Name for MsgConnectionOpenAck { } } /// MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenAckResponse {} @@ -592,6 +630,7 @@ impl ::prost::Name for MsgConnectionOpenAckResponse { } /// MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to /// acknowledge the change of connection state to OPEN on Chain A. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenConfirm { @@ -614,6 +653,7 @@ impl ::prost::Name for MsgConnectionOpenConfirm { } /// MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm /// response type. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MsgConnectionOpenConfirmResponse {} diff --git a/packages/proto/src/gen/ibc.core.types.v1.rs b/packages/proto/src/gen/ibc.core.types.v1.rs index 33b06a5..3c77fdb 100644 --- a/packages/proto/src/gen/ibc.core.types.v1.rs +++ b/packages/proto/src/gen/ibc.core.types.v1.rs @@ -1,5 +1,6 @@ // @generated /// GenesisState defines the ibc module's genesis state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GenesisState { diff --git a/packages/proto/src/gen/ibc.lightclients.localhost.v2.rs b/packages/proto/src/gen/ibc.lightclients.localhost.v2.rs index 1dbaab9..a51c132 100644 --- a/packages/proto/src/gen/ibc.lightclients.localhost.v2.rs +++ b/packages/proto/src/gen/ibc.lightclients.localhost.v2.rs @@ -1,5 +1,6 @@ // @generated /// ClientState defines the 09-localhost client state +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { diff --git a/packages/proto/src/gen/ibc.lightclients.solomachine.v2.rs b/packages/proto/src/gen/ibc.lightclients.solomachine.v2.rs index c73aa33..5bfbff9 100644 --- a/packages/proto/src/gen/ibc.lightclients.solomachine.v2.rs +++ b/packages/proto/src/gen/ibc.lightclients.solomachine.v2.rs @@ -1,6 +1,7 @@ // @generated /// ClientState defines a solo machine client that tracks the current consensus /// state and if the client is frozen. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { @@ -27,12 +28,13 @@ impl ::prost::Name for ClientState { /// ConsensusState defines a solo machine consensus state. The sequence of a /// consensus state is contained in the "height" key used in storing the /// consensus state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { /// public key of the solo machine #[prost(message, optional, tag = "1")] - pub public_key: ::core::option::Option<::prost_types::Any>, + pub public_key: ::core::option::Option<::pbjson_types::Any>, /// diversifier allows the same public key to be re-used across different solo /// machine clients (potentially on different chains) without being considered /// misbehaviour. @@ -49,6 +51,7 @@ impl ::prost::Name for ConsensusState { } } /// Header defines a solo machine consensus header +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { @@ -60,7 +63,7 @@ pub struct Header { #[prost(bytes = "vec", tag = "3")] pub signature: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "4")] - pub new_public_key: ::core::option::Option<::prost_types::Any>, + pub new_public_key: ::core::option::Option<::pbjson_types::Any>, #[prost(string, tag = "5")] pub new_diversifier: ::prost::alloc::string::String, } @@ -73,6 +76,7 @@ impl ::prost::Name for Header { } /// Misbehaviour defines misbehaviour for a solo machine which consists /// of a sequence and two signatures over different messages at that sequence. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { @@ -94,6 +98,7 @@ impl ::prost::Name for Misbehaviour { } /// SignatureAndData contains a signature and the data signed over to create that /// signature. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureAndData { @@ -115,6 +120,7 @@ impl ::prost::Name for SignatureAndData { } /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimestampedSignatureData { @@ -131,6 +137,7 @@ impl ::prost::Name for TimestampedSignatureData { } } /// SignBytes defines the signed bytes used for signature verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignBytes { @@ -155,12 +162,13 @@ impl ::prost::Name for SignBytes { } } /// HeaderData returns the SignBytes data for update verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HeaderData { /// header public key #[prost(message, optional, tag = "1")] - pub new_pub_key: ::core::option::Option<::prost_types::Any>, + pub new_pub_key: ::core::option::Option<::pbjson_types::Any>, /// header diversifier #[prost(string, tag = "2")] pub new_diversifier: ::prost::alloc::string::String, @@ -173,13 +181,14 @@ impl ::prost::Name for HeaderData { } } /// ClientStateData returns the SignBytes data for client state verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientStateData { #[prost(bytes = "vec", tag = "1")] pub path: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "2")] - pub client_state: ::core::option::Option<::prost_types::Any>, + pub client_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for ClientStateData { const NAME: &'static str = "ClientStateData"; @@ -190,13 +199,14 @@ impl ::prost::Name for ClientStateData { } /// ConsensusStateData returns the SignBytes data for consensus state /// verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusStateData { #[prost(bytes = "vec", tag = "1")] pub path: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "2")] - pub consensus_state: ::core::option::Option<::prost_types::Any>, + pub consensus_state: ::core::option::Option<::pbjson_types::Any>, } impl ::prost::Name for ConsensusStateData { const NAME: &'static str = "ConsensusStateData"; @@ -207,6 +217,7 @@ impl ::prost::Name for ConsensusStateData { } /// ConnectionStateData returns the SignBytes data for connection state /// verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionStateData { @@ -225,6 +236,7 @@ impl ::prost::Name for ConnectionStateData { } /// ChannelStateData returns the SignBytes data for channel state /// verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ChannelStateData { @@ -242,6 +254,7 @@ impl ::prost::Name for ChannelStateData { } /// PacketCommitmentData returns the SignBytes data for packet commitment /// verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketCommitmentData { @@ -259,6 +272,7 @@ impl ::prost::Name for PacketCommitmentData { } /// PacketAcknowledgementData returns the SignBytes data for acknowledgement /// verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketAcknowledgementData { @@ -276,6 +290,7 @@ impl ::prost::Name for PacketAcknowledgementData { } /// PacketReceiptAbsenceData returns the SignBytes data for /// packet receipt absence verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PacketReceiptAbsenceData { @@ -291,6 +306,7 @@ impl ::prost::Name for PacketReceiptAbsenceData { } /// NextSequenceRecvData returns the SignBytes data for verification of the next /// sequence to be received. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NextSequenceRecvData { @@ -308,7 +324,19 @@ impl ::prost::Name for NextSequenceRecvData { } /// DataType defines the type of solo machine proof being created. This is done /// to preserve uniqueness of different data sign byte encodings. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[derive( + ::serde::Serialize, + ::serde::Deserialize, + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration, +)] #[repr(i32)] pub enum DataType { /// Default State diff --git a/packages/proto/src/gen/ibc.lightclients.solomachine.v3.rs b/packages/proto/src/gen/ibc.lightclients.solomachine.v3.rs index f5bed5d..6da97e7 100644 --- a/packages/proto/src/gen/ibc.lightclients.solomachine.v3.rs +++ b/packages/proto/src/gen/ibc.lightclients.solomachine.v3.rs @@ -1,6 +1,7 @@ // @generated /// ClientState defines a solo machine client that tracks the current consensus /// state and if the client is frozen. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { @@ -23,12 +24,13 @@ impl ::prost::Name for ClientState { /// ConsensusState defines a solo machine consensus state. The sequence of a /// consensus state is contained in the "height" key used in storing the /// consensus state. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { /// public key of the solo machine #[prost(message, optional, tag = "1")] - pub public_key: ::core::option::Option<::prost_types::Any>, + pub public_key: ::core::option::Option<::pbjson_types::Any>, /// diversifier allows the same public key to be re-used across different solo /// machine clients (potentially on different chains) without being considered /// misbehaviour. @@ -45,6 +47,7 @@ impl ::prost::Name for ConsensusState { } } /// Header defines a solo machine consensus header +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { @@ -53,7 +56,7 @@ pub struct Header { #[prost(bytes = "vec", tag = "2")] pub signature: ::prost::alloc::vec::Vec, #[prost(message, optional, tag = "3")] - pub new_public_key: ::core::option::Option<::prost_types::Any>, + pub new_public_key: ::core::option::Option<::pbjson_types::Any>, #[prost(string, tag = "4")] pub new_diversifier: ::prost::alloc::string::String, } @@ -66,6 +69,7 @@ impl ::prost::Name for Header { } /// Misbehaviour defines misbehaviour for a solo machine which consists /// of a sequence and two signatures over different messages at that sequence. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { @@ -85,6 +89,7 @@ impl ::prost::Name for Misbehaviour { } /// SignatureAndData contains a signature and the data signed over to create that /// signature. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignatureAndData { @@ -106,6 +111,7 @@ impl ::prost::Name for SignatureAndData { } /// TimestampedSignatureData contains the signature data and the timestamp of the /// signature. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TimestampedSignatureData { @@ -122,6 +128,7 @@ impl ::prost::Name for TimestampedSignatureData { } } /// SignBytes defines the signed bytes used for signature verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignBytes { @@ -149,12 +156,13 @@ impl ::prost::Name for SignBytes { } } /// HeaderData returns the SignBytes data for update verification. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HeaderData { /// header public key #[prost(message, optional, tag = "1")] - pub new_pub_key: ::core::option::Option<::prost_types::Any>, + pub new_pub_key: ::core::option::Option<::pbjson_types::Any>, /// header diversifier #[prost(string, tag = "2")] pub new_diversifier: ::prost::alloc::string::String, diff --git a/packages/proto/src/gen/ibc.lightclients.tendermint.v1.rs b/packages/proto/src/gen/ibc.lightclients.tendermint.v1.rs index 7fd9a2c..d2db9dc 100644 --- a/packages/proto/src/gen/ibc.lightclients.tendermint.v1.rs +++ b/packages/proto/src/gen/ibc.lightclients.tendermint.v1.rs @@ -1,6 +1,7 @@ // @generated /// ClientState from Tendermint tracks the current validator set, latest height, /// and a possible frozen height. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientState { @@ -11,13 +12,13 @@ pub struct ClientState { /// duration of the period since the LastestTimestamp during which the /// submitted headers are valid for upgrade #[prost(message, optional, tag = "3")] - pub trusting_period: ::core::option::Option<::prost_types::Duration>, + pub trusting_period: ::core::option::Option<::pbjson_types::Duration>, /// duration of the staking unbonding period #[prost(message, optional, tag = "4")] - pub unbonding_period: ::core::option::Option<::prost_types::Duration>, + pub unbonding_period: ::core::option::Option<::pbjson_types::Duration>, /// defines how much new (untrusted) header's Time can drift into the future. #[prost(message, optional, tag = "5")] - pub max_clock_drift: ::core::option::Option<::prost_types::Duration>, + pub max_clock_drift: ::core::option::Option<::pbjson_types::Duration>, /// Block height when the client was frozen due to a misbehaviour #[prost(message, optional, tag = "6")] pub frozen_height: ::core::option::Option, @@ -54,13 +55,14 @@ impl ::prost::Name for ClientState { } } /// ConsensusState defines the consensus state from Tendermint. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConsensusState { /// timestamp that corresponds to the block height in which the ConsensusState /// was stored. #[prost(message, optional, tag = "1")] - pub timestamp: ::core::option::Option<::prost_types::Timestamp>, + pub timestamp: ::core::option::Option<::pbjson_types::Timestamp>, /// commitment root (i.e app hash) #[prost(message, optional, tag = "2")] pub root: ::core::option::Option, @@ -76,6 +78,7 @@ impl ::prost::Name for ConsensusState { } /// Misbehaviour is a wrapper over two conflicting Headers /// that implements Misbehaviour interface expected by ICS-02 +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Misbehaviour { @@ -107,6 +110,7 @@ impl ::prost::Name for Misbehaviour { /// current time in order to correctly verify, and the TrustedValidators must /// hash to TrustedConsensusState.NextValidatorsHash since that is the last /// trusted validator set at the TrustedHeight. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Header { @@ -128,6 +132,7 @@ impl ::prost::Name for Header { } /// Fraction defines the protobuf message type for tmmath.Fraction that only /// supports positive values. +#[derive(::serde::Serialize, ::serde::Deserialize)] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Fraction { diff --git a/proto-build/buf.gen.yaml b/proto-build/buf.gen.yaml index c7d3ee4..323dda9 100644 --- a/proto-build/buf.gen.yaml +++ b/proto-build/buf.gen.yaml @@ -4,12 +4,21 @@ plugins: out: . opt: - extern_path=.tendermint=::tendermint_proto::v0_37 + - extern_path=.google.protobuf.Timestamp=::pbjson_types::Timestamp + - extern_path=.google.protobuf.Duration=::pbjson_types::Duration + - extern_path=.google.protobuf.Any=::pbjson_types::Any + - extern_path=.google.protobuf.FileDescriptorProto=::pbjson_types::FileDescriptorProto + - type_attribute=.=#[derive(::serde::Serialize\, ::serde::Deserialize)] - enable_type_names - file_descriptor_set - plugin: buf.build/community/neoeinstein-tonic:v0.4.0 out: . opt: - extern_path=.tendermint=::tendermint_proto::v0_37 + - extern_path=.google.protobuf.Timestamp=::pbjson_types::Timestamp + - extern_path=.google.protobuf.Duration=::pbjson_types::Duration + - extern_path=.google.protobuf.Any=::pbjson_types::Any + - extern_path=.google.protobuf.FileDescriptorProto=::pbjson_types::FileDescriptorProto - client_mod_attribute=.=#[cfg(feature = "grpc")] - client_mod_attribute=.=#[cfg_attr(docsrs\, doc(cfg(feature = "grpc")))] - server_mod_attribute=.=#[cfg(feature = "grpc")]