MythicalGames / dgoods

A token standard for digital goods
https://dgoods.org
GNU Lesser General Public License v3.0
112 stars 41 forks source link

Question: What is the best way to query the dgoodstats table? #8

Closed dbendt closed 5 years ago

dbendt commented 5 years ago

As a contract owner, if I forget the "token name" used after I've created a dgood how am I able to look it up again?

cthacker commented 5 years ago

You can get all of the entries with a given category, and if you forget the categories you can look them up in the categoryinfo table.

dbendt commented 5 years ago

Okay, I see what my issue was. If you use a category name less than 12 characters, it doesn't appear when querying via cleos or eos-js. May want to add a check to verify valid category names.

cthacker commented 5 years ago

You can use a category name up to 12 characters a-z, 1-5 but it works with less than that as well.