osmosis icon indicating copy to clipboard operation
osmosis copied to clipboard

[Transmuter] Reduce wasm code size

Open iboss-ptk opened this issue 1 year ago • 0 comments

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
  • there are macros that can be replaced with function, esp ensure_admin_authority

iboss-ptk avatar Jun 05 '24 04:06 iboss-ptk