cronos icon indicating copy to clipboard operation
cronos copied to clipboard

Problem: one cannot retrieve all CRC20 contract deployed

Open thomas-nguy opened this issue 4 years ago • 4 comments

It would make it easier for operations

thomas-nguy avatar Oct 07 '21 08:10 thomas-nguy

iterate the token mapping?

yihuang avatar Oct 07 '21 15:10 yihuang

maybe we should emit some events for the token mapping changes.

yihuang avatar Oct 07 '21 15:10 yihuang

I am thinking just simple msg "get-denom-contract" and return the total token mapping

thomas-nguy avatar Oct 07 '21 15:10 thomas-nguy

an enhancement is to return list of

original denom -> crc20 address

original denom is ETH erc20 contract address for gravity tokens or source denom for IBC tokens

because finding voucher ibc denom requires some computation

thomas-nguy avatar Oct 07 '21 15:10 thomas-nguy