Closed crazybits closed 2 years ago
Hey,
Not sure the question is clear for me.
You can look how struct looks if you request it directly from API - link.
And maybe try to convert in the same way.
API returned value are json format, actually, i would like to know how the LiquidityPool struct(with generic and phantom type) save on Aptos state DB, if i wanner deserialize LiquidityPool from raw bytes into Rust struct, how to define the Rust struct of the LiquidityPool?
@crazybits i think you have to look into Aptos code base and BCS (Binary Canonical Serialization).
already solved the problem ,case closed, thanks
how can i convert the following Pontem liquidity move struct to Rust any sample for reference?so i can convert this resource to Rust struct.