crypto-org-chain / cronos

Cronos is the first Ethereum-compatible blockchain network built on Cosmos SDK technology. Cronos aims to massively scale the DeFi, GameFi, and overall Web3 user community by providing builders with the ability to instantly port apps and crypto assets from other chains while benefiting from low transaction fees, high throughput, and fast finality.
Other
292 stars 234 forks source link

Problem: one cannot retrieve all CRC20 contract deployed #153

Open thomas-nguy opened 3 years ago

thomas-nguy commented 3 years ago

It would make it easier for operations

yihuang commented 3 years ago

iterate the token mapping?

yihuang commented 3 years ago

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

thomas-nguy commented 3 years ago

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

thomas-nguy commented 3 years ago

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