osmosis
osmosis copied to clipboard
[Transmuter] Reduce wasm code size
Optimized wasm size for v3.0.0 is already 661 KB which will soon reach max gas. We need to hand pick unnecessary stuffs out of existing code base to reduce the code size or find other strategy for it.
- bloated mostly comes from enum deserialization code gen from serde
- so we can actually deserialize msg as
json::Value(Map<K,V>)and go from there to avoid serde derive for other type
- so we can actually deserialize msg as
- there are macros that can be replaced with function, esp
ensure_admin_authority