I was studying `utils.normalize.parse_amount()` and saw that it handles NAI inputs but checks them against a CONSTANT that currently hosts mappings to `STEEM`, `SBD` and `VESTS` NAIs. Will there be changes to how token symbols are stored in the DB? Currently, it's the actual symbol that's stored. Will this change to NAIs? Or will there be a common registry that Hivemind will pull from in the future?
post_id | 82,226,316 |
---|---|
author | imwatsi |
permlink | how-will-hivemind-handle-nais-when-smts-come-out |
category | hive-128612 |
json_metadata | {"tags":["hivemind","nai","smt"],"app":"steemit\/0.2","format":"markdown"} |
created | 2019-12-02 17:06:54 |
last_update | 2019-12-02 17:06:54 |
depth | 0 |
children | 4 |
net_rshares | 20,211,408,210,816 |
last_payout | 2019-12-09 17:06:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.810 SBD |
curator_payout_value | 2.803 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 403 |
author_reputation | 47,375,690,794,265 |
root_title | "How will Hivemind handle NAIs when SMTs come out?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tombstone | 0 | 4,488,768,033,394 | 15% | ||
boombastic | 0 | 3,614,098,610 | 30% | ||
diana.catherine | 0 | 4,440,579,399 | 30% | ||
inertia | 0 | 67,836,788,577 | 100% | ||
shadowspub | 0 | 6,548,540,485 | 7.5% | ||
dexter-k | 0 | 29,750,328,059 | 15% | ||
anomaly | 0 | 172,197,693 | 1% | ||
ansharphoto | 0 | 41,165,442,756 | 30% | ||
cardboard | 0 | 12,322,556,188 | 100% | ||
shafay | 0 | 6,387,534,235 | 30% | ||
azzurra92 | 0 | 5,160,732,340 | 30% | ||
turtle-trader | 0 | 31,461,924,662 | 30% | ||
elevator09 | 0 | 59,947,531,345 | 27% | ||
mattuk | 0 | 18,331,522,750 | 30% | ||
sarasate | 0 | 31,854,472,084 | 30% | ||
tyzzzz | 0 | 472,444,557 | 30% | ||
vannfrik | 0 | 34,762,947,027 | 24% | ||
robi | 0 | 13,551,824,031 | 30% | ||
bargolis | 0 | 4,133,803,077 | 30% | ||
sustainablyyours | 0 | 8,731,337,321 | 15% | ||
idas4you | 0 | 15,131,553,048 | 30% | ||
techken | 0 | 156,713,586 | 3% | ||
insteem | 0 | 6,064,783,902 | 30% | ||
lupo | 0 | 8,595,742,250 | 30% | ||
ccoin | 0 | 72,170,462,025 | 30% | ||
dgbtech | 0 | 0 | 100% | ||
r3ap3r | 0 | 23,632,830,748 | 30% | ||
podnikatel | 0 | 1,676,182,438 | 3% | ||
sunisa | 0 | 8,286,113,495 | 21% | ||
therealwolf | 0 | 4,706,886,946,148 | 30% | ||
szabolcs | 0 | 11,344,289,445 | 30% | ||
upme | 0 | 38,267,906,186 | 30% | ||
backtomining | 0 | 9,347,467,665 | 12% | ||
anutta | 0 | 703,126,538 | 18.9% | ||
sagarthukral | 0 | 4,441,059,231 | 30% | ||
smartsteem | 0 | 9,092,343,579,464 | 30% | ||
bebeomega | 0 | 5,202,648,622 | 30% | ||
loler555 | 0 | 2,216,046,676 | 15% | ||
zainejj | 0 | 911,008,350 | 30% | ||
smooms | 0 | 40,073,941,585 | 30% | ||
rombtc | 0 | 2,173,860,264 | 15% | ||
zipsardinia | 0 | 7,396,026,319 | 30% | ||
spiritualmax | 0 | 36,715,149,144 | 30% | ||
smartmarket | 0 | 142,632,708,692 | 30% | ||
errajesh | 0 | 9,580,662,698 | 30% | ||
cfminer | 0 | 563,930,682 | 100% | ||
nedy | 0 | 20,101,779,692 | 30% | ||
alexandersteemit | 0 | 11,501,444,052 | 30% | ||
layra | 0 | 36,009,375,048 | 30% | ||
maikuraki | 0 | 3,332,659,526 | 30% | ||
lordjames | 0 | 24,764,058,842 | 15% | ||
steemql | 0 | 1,451,007,639 | 100% | ||
ajanphoto | 0 | 6,072,941,603 | 30% | ||
minerthreat | 0 | 93,085,118,905 | 30% | ||
aro.steem | 0 | 813,864,868 | 6% | ||
steemjet | 0 | 106,079,944,797 | 15% | ||
justinmullet | 0 | 6,670,501,824 | 30% | ||
sky.nikolas20 | 0 | 5,151,967,073 | 30% | ||
profitcheck | 0 | 52,347,532,234 | 100% | ||
mrnightmare89 | 0 | 952,098,105 | 3% | ||
xmrking | 0 | 10,895,583,657 | 30% | ||
xperiment | 0 | 619,141,571 | 30% | ||
jcbit | 0 | 293,349,375,614 | 30% | ||
drfk | 0 | 20,511,708,137 | 15% | ||
laissez-faire | 0 | 52,073,411 | 100% | ||
steemscan | 0 | 4,358,376,187 | 100% | ||
cultus-forex | 0 | 17,861,310,344 | 18% | ||
steemjetmedia | 0 | 106,666,069,535 | 30% | ||
steemtank | 0 | 36,266,185,764 | 30% | ||
wolfinator | 0 | 8,973,728,981 | 30% | ||
tipu.curator | 0 | 14,860,569,621 | 50% | ||
elizabethharvey | 0 | 6,138,701,301 | 30% | ||
steemdapps | 0 | 35,237,454,466 | 30% | ||
simply-happy | 0 | 12,554,602,438 | 27% | ||
aaronkroeblinger | 0 | 13,640,870,640 | 30% | ||
epicdice | 0 | 115,776,473,716 | 9% | ||
thecryptohoarder | 0 | 12,976,443,381 | 20% | ||
lass3 | 0 | 5,935,184,226 | 30% | ||
dhanagc | 0 | 10,222,242,067 | 3% | ||
thebilpcointrain | 0 | 62,690,291 | 1% | ||
bilpcoin.pay | 0 | 190,692,629 | 1% | ||
retrikol | 0 | -4,939,160 | -10% |
There's mention of a directory for NAIs in the whitepaper, but I'm not aware of implementation, yet: https://github.com/steemit/smt-whitepaper/blob/master/smt-manual/manual.md#numerical-asset-identifiers
post_id | 82,227,054 |
---|---|
author | inertia |
permlink | q1wb33 |
category | hive-128612 |
json_metadata | {"links":["https:\/\/github.com\/steemit\/smt-whitepaper\/blob\/master\/smt-manual\/manual.md#numerical-asset-identifiers"],"app":"steemit\/0.2"} |
created | 2019-12-02 17:25:51 |
last_update | 2019-12-02 17:25:51 |
depth | 1 |
children | 1 |
net_rshares | 7,200,468,093 |
last_payout | 2019-12-09 17:25:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 204 |
author_reputation | 227,335,189,892,062 |
root_title | "How will Hivemind handle NAIs when SMTs come out?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
imwatsi | 0 | 7,200,468,093 | 100% |
Thanks @inertia. I gave it a read and it makes more sense now :) What made me ask this is that Native Ads will allow a community to set what token it accepts for ad payments. I'm thinking of storing that primarily as NAIs and then have the current Hivemind logic translate that to symbols for UIs when: 1) it scans blocks for payments 2) it parses bids This means payments can be verified to be of the correct NAI at a blockchain level (NAI found in transactions versus the NAI setting for that community)
post_id | 82,228,696 |
---|---|
author | imwatsi |
permlink | q1wd23 |
category | hive-128612 |
json_metadata | {"users":["inertia"],"app":"steemit\/0.2"} |
created | 2019-12-02 18:08:30 |
last_update | 2019-12-02 18:08:30 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2019-12-09 18:08:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 508 |
author_reputation | 47,375,690,794,265 |
root_title | "How will Hivemind handle NAIs when SMTs come out?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
`parse_amount` will need to handle arbitrary NAIs. I'm not sure yet about name mapping, but mapping a community to an NAI could simply be done by adding a new community property.
post_id | 82,253,727 |
---|---|
author | test-safari |
permlink | q1y13b |
category | hive-128612 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2019-12-03 15:45:27 |
last_update | 2019-12-03 15:45:27 |
depth | 1 |
children | 1 |
net_rshares | 7,200,468,093 |
last_payout | 2019-12-10 15:45:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 178 |
author_reputation | 1,423,420,883,864 |
root_title | "How will Hivemind handle NAIs when SMTs come out?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
imwatsi | 0 | 7,200,468,093 | 100% |
Cool :)
post_id | 82,270,941 |
---|---|
author | imwatsi |
permlink | q1zbsa |
category | hive-128612 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2019-12-04 08:33:48 |
last_update | 2019-12-04 08:33:48 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2019-12-11 08:33:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 7 |
author_reputation | 47,375,690,794,265 |
root_title | "How will Hivemind handle NAIs when SMTs come out?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |