Open adairrr opened 1 year ago
It would be great if we could generate a nice mapping between the query messages and their responses for use in libraries leveraging ts inference.
Example:
export type QueryMsg = { simulate_swap: { ask_asset: AssetEntry dex?: string | null offer_asset: AnsAsset } } export interface SimulateSwapResponse { commission: [AssetEntry, Uint128] pool: DexAssetPairing return_amount: Uint128 spread_amount: Uint128 } export type QueryMsgResponses = { simulate_swap: SimulateSwapResponse }
It would be great if we could generate a nice mapping between the query messages and their responses for use in libraries leveraging ts inference.
Example: