From f33ddf842470caf00ac993774f460763625eb58c Mon Sep 17 00:00:00 2001 From: Supanat Potiwarakorn Date: Mon, 16 Oct 2023 16:15:38 +0700 Subject: [PATCH 1/2] add base account and module account any serde --- packages/osmosis-std/src/shim.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/osmosis-std/src/shim.rs b/packages/osmosis-std/src/shim.rs index 5e40bfed..2633db5d 100644 --- a/packages/osmosis-std/src/shim.rs +++ b/packages/osmosis-std/src/shim.rs @@ -294,6 +294,9 @@ expand_as_any!( // balancer pool param has more fields crate::types::osmosis::gamm::v1beta1::PoolParams, crate::types::osmosis::gamm::poolmodels::stableswap::v1beta1::PoolParams, + // accounts have distincted structure + crate::types::cosmos::auth::v1beta1::BaseAccount, + crate::types::cosmos::auth::v1beta1::ModuleAccount, ); macro_rules! impl_prost_types_exact_conversion { From 5a5f346f9d3d7233ff7d91d84ded3327cabed128 Mon Sep 17 00:00:00 2001 From: Supanat Potiwarakorn Date: Tue, 17 Oct 2023 11:49:25 +0700 Subject: [PATCH 2/2] add pubkey --- packages/osmosis-std/src/shim.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/osmosis-std/src/shim.rs b/packages/osmosis-std/src/shim.rs index 2633db5d..19ae7e30 100644 --- a/packages/osmosis-std/src/shim.rs +++ b/packages/osmosis-std/src/shim.rs @@ -297,6 +297,12 @@ expand_as_any!( // accounts have distincted structure crate::types::cosmos::auth::v1beta1::BaseAccount, crate::types::cosmos::auth::v1beta1::ModuleAccount, + // pubkey required for base account + // it can't be distinced by structure + // so deserialing it back might not work properly + crate::types::cosmos::crypto::secp256k1::PubKey, + crate::types::cosmos::crypto::secp256r1::PubKey, + crate::types::cosmos::crypto::ed25519::PubKey, ); macro_rules! impl_prost_types_exact_conversion {