trustwallet / trust-wallet-ios

:iphone: Trust - Ethereum Wallet and Web3 DApp Browser for iOS
https://trustwallet.com
GNU General Public License v3.0
1.52k stars 721 forks source link

How to set an ERC721 Token as a collectible within Trustwallet? #909

Open alexacostarua opened 6 years ago

alexacostarua commented 6 years ago

I've gotten an ERC721 token contract created. I have the tokenURI, the token ID, the contract, the name, and symbol. I was wondering how do I set the variables :

@objc dynamic var id: String = "" @objc dynamic var uniqueID: String = "" @objc dynamic var contract: String = "" @objc dynamic var name: String = "" @objc dynamic var category: String = "" @objc dynamic var annotation: String = "" @objc dynamic var imagePath: String = "" @objc dynamic var externalPath: String = ""

I know the id is the tokenID, the contract is the contract address, plus obviously the name, and imagepath. But how would I set the rest of the variables to make the token show up as a collectible? Thanks.