feat(nft): enable eth with non fungible tokens#2049
Conversation
borngraced
left a comment
There was a problem hiding this comment.
Looks great! first iteration focusing on only some codes
…s, struct update syntax, deserialize() method
|
linter fails in CI May be we have different env in CI, will revert this change |
| coin: &str, | ||
| ) -> Result<(Json, T), MmError<CoinConfWithProtocolError>> { | ||
| let conf = coin_conf(ctx, coin); | ||
| let (conf, coin_protocol) = match Chain::from_nft_ticker(coin) { |
There was a problem hiding this comment.
I think I was a bit wrong in suggesting not adding NFTs in coin configs, if moralis supported more EVM chains or we moved away from moralis for a web3 native implementation (if possible in the future), it would be easier to add new chains and their NFTs in config without requiring a PR in komodefi. I guess one way to do this in the future is to have a field in platform coin configuration for if they support NFT or not, and we enable global NFT using the platform ticker and append NFT_ prefix to it. This is not needed at all for now, but if it was requested in the future we can do it.
…upported yet!". Update CoinsContext inside update_nft_global_in_coins_ctx
507194a to
7e98ae1
Compare
…e-tokens # Conflicts: # mm2src/coins/eth.rs # mm2src/coins/eth/v2_activation.rs # mm2src/coins_activation/src/erc20_token_activation.rs # mm2src/coins_activation/src/eth_with_token_activation.rs
|
Ive reverted the name of the |
We can leave the old name for now and rename it later. |
shamardy
left a comment
There was a problem hiding this comment.
LGTM! Only a few non-blockers!
* dev: feat(indexeddb): advanced cursor filtering impl (GLEECBTC#2066) update dockerhub destination repository (GLEECBTC#2082) feat(event streaming): configurable worker path, use SharedWorker (GLEECBTC#2080) fix(hd_tests): fix test_hd_utxo_tx_history unit test (GLEECBTC#2078) feat(network): improve efficiency of known peers handling (GLEECBTC#2074) feat(nft): enable eth with non fungible tokens (GLEECBTC#2049) feat(ETH transport & heartbeats): various enhancements/features (GLEECBTC#2058)
This commit introduces the functionality to enable EVM based coin as a platform coin along with its associated Non-Fungible Tokens (NFTs) owned by user. It includes enable_nft implementation, which works same way as enable_erc20.
revert botched rebase This reverts commit bc89322.
This Pull Request introduces the functionality to enable EVM based coin as a platform coin along with its associated Non-Fungible Tokens (NFTs) owned by user.
Also PR includes
enable_nftimplementation, which works same way asenable_erc20.Main Features:
enable_eth_with_tokensPRC: now works for botherc20andnftsactivation.enable_nftRPC: re utilizesenable_token::<EthCoin>function