crypto-com / defi-wallet-core-rs

Cross-platform, cross-blockchain wallet library in Rust for DeFi Wallet and other applications.
Other
48 stars 16 forks source link

Problem: missing support of nft #6

Closed leejw51crypto closed 2 years ago

leejw51crypto commented 3 years ago

add nft api

tomtau commented 2 years ago

the best will be start with transaction generation -- so a good approach may be similar to CosmRS:

e.g. see bank send: https://github.com/cosmos/cosmos-rust/blob/main/cosmrs/src/bank.rs#L37 https://github.com/cosmos/cosmos-rust/blob/main/cosmos-sdk-proto/src/prost/cosmos.bank.v1beta1.rs#L86

damoncro commented 2 years ago

I'll take care of this issue.

  1. the basic nft messages (mint, issue denom, transfer…)
  2. https://github.com/crypto-org-chain/chain-main/blob/master/proto/nft/v1/tx.proto
leejw51crypto commented 2 years ago

this is a big task, make sub tasks, start with generating nft messages with protobuf, serde_json