It converts raw object from query to typed object
const result = toKindAssetInfo({ token: { contract_addr: 'contract_addr' }})expect(result).toHaveProperty('kind', 'token')
const result = toKindAssetInfo({ cw20: 'juno_contract_addr' })expect(result).toHaveProperty('kind', 'juno_token')
Generated using TypeDoc
It converts raw object from query to typed object
Example
Example